Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Revert 19108 remove c element tree#20116

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

serhiy-storchaka
Copy link
Member

No description provided.

serhiy-storchakaand others added30 commitsMay 5, 2020 14:55
Move signals_pending from _PyRuntime.ceval toPyInterpreterState.ceval.
Move gil_drop_request member from _PyRuntimeState.ceval toPyInterpreterState.ceval.
…-19926)Add --with-experimental-isolated-subinterpreters build option toconfigure: better isolate subinterpreters, experimental build mode.When used, force the usage of the libc malloc() memory allocator,since pymalloc relies on the unique global interpreter lock (GIL).
`sally` is not a Simpsons characterAutomerge-Triggered-By:@gvanrossum
Move recursion_limit member from _PyRuntimeState.ceval toPyInterpreterState.ceval.* Py_SetRecursionLimit() now only sets _Py_CheckRecursionLimit  of ceval.c if the current Python thread is part of the main  interpreter.* Inline _Py_MakeEndRecCheck() into _Py_LeaveRecursiveCall().* Convert _Py_RecursionLimitLowerWaterMark() macro into a static  inline function.
_PyErr_ChainExceptions() now ensures that the first parameter is anexception type, as done by _PyErr_SetObject().* The following function now check PyExceptionInstance_Check() in an  assertion using a new _PyBaseExceptionObject_cast() helper  function:  * PyException_GetTraceback(), PyException_SetTraceback()  * PyException_GetCause(), PyException_SetCause()  * PyException_GetContext(), PyException_SetContext()* PyExceptionClass_Name() now checks PyExceptionClass_Check() with an  assertion.* Remove XXX comment and add gi_exc_state variable to _gen_throw().* Remove comment from test_generators
…GH-19933)When Python is built in the experimental isolated subinterpretersmode, disable Unicode singletons and Unicode interned strings sincethey are shared by all interpreters.Temporary workaround until these caches are made per-interpreter.
When Python is built with experimental isolated interpreters, disabletuple, dict and free free lists.Temporary workaround until these caches are made per-interpreter.Add frame_alloc() and frame_get_builtins() subfunctions to simplify_PyFrame_New_NoTrack().
In the experimental isolated subinterpreters build mode,_PyThreadState_GET() gets the autoTSSkey variable and_PyThreadState_Swap() sets the autoTSSkey variable.* Add _PyThreadState_GetTSS()* _PyRuntimeState_GetThreadState() and _PyThreadState_GET()  return _PyThreadState_GetTSS()* PyEval_SaveThread() sets the autoTSSkey variable to current Python  thread state rather than NULL.* eval_frame_handle_pending() doesn't check that  _PyThreadState_Swap() result is NULL.* _PyThreadState_Swap() gets the current Python thread state with  _PyThreadState_GetTSS() rather than  _PyRuntimeGILState_GetThreadState().* PyGILState_Ensure() no longer checks _PyEval_ThreadsInitialized()  since it cannot access the current interpreter.
Fix also code to handle init_interp_main() failure.
In the experimental isolated subinterpreters build mode, the GIL isnow per-interpreter.Move gil from _PyRuntimeState.ceval to PyInterpreterState.ceval.new_interpreter() always get the config from the main interpreter.
…-19944)In the experimental isolated subinterpreters build mode,_xxsubinterpreters.run_string() now releases the GIL.
…Dict nodes (pythonGH-19868)Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
bpo-40480:  create different regexps in the presence of multiple `*`patterns to prevent fnmatch() from taking exponential time.
When Python is built with experimental isolated interpreters, disablethe type method cache.Temporary workaround until the cache is made per-interpreter.
When Python is built with experimental isolated interpreters, agarbage collection now does nothing in an isolated interpreter.Temporary workaround until subinterpreters stop sharing Pythonobjects.
When Python is built with experimental isolated interpreters, disablethe list free list.Temporary workaround until this cache is made per-interpreter.
vstinnerand others added23 commitsMay 14, 2020 18:05
Pass PEP 573 defining_class to os.DirEntry methods. The module stateis now retrieve from defining_class rather than Py_TYPE(self), tosupport subclasses (even if DirEntry doesn't support subclasses yet).* Pass the module rather than defining_class to DirEntry_fetch_stat().* Only get the module state once in _posix_clear(),  _posix_traverse() and _posixmodule_exec().
…GH-19768)" (pythonGH-20089)* Revert "bpo-40613: Remove compiler warning from _xxsubinterpretersmodule (pythonGH-20069)"This reverts commitfa0a66e.* Revert "bpo-32604: [_xxsubinterpreters] Propagate exceptions. (pythonGH-19768)"This reverts commita1d9e0a.
Cleanup also hashtable.c.Rename _Py_hashtable_t members:* Rename entries to nentries* Rename num_buckets to nbuckets
…ythonGH-20083)This commit fixes the new parser to disallow invalid targets in thefollowing scenarios:- Augmented assignments must only accept a single target (Name,  Attribute or Subscript), but no tuples or lists.- `except` clauses should only accept a single `Name` as a target.Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
If _Py_hashtable_set() fails to grow the hash table (rehash), it nowfails rather than ignoring the error.
…20047)* Document exec symbol for codeop.compile_command* Remove extra statementsCo-authored-by: nanjekyejoannah <joannah.nanjekye@ibm.com>
…thonGH-20076)Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
…GH-20072)This fixes both the traceback.py module and the C code for formatting syntax errors (in Python/pythonrun.c). They now both consistently do the following:- Suppress caret if it points left of text- Allow caret pointing just past end of line- If caret points past end of line, clip to *just* past end of lineThe syntax error formatting code in traceback.py was mostly rewritten; small, subtle changes were applied to the C code in pythonrun.c.There's still a difference when the text contains embedded newlines. Neither handles these very well, and I don't think the case occurs in practice.Automerge-Triggered-By:@gvanrossum
Change spelling of a #define in _tkinter.c from HAVE_LIBTOMMAMTH to HAVE_LIBTOMMATH, since this is used to keep track of tclTomMath.h, not tclTomMamth.h. No other file seems to refer to this variable.
…-20095)distutils.tests now saves/restores warnings filters to leave themunchanged. Importing tests imports docutils which importspkg_resources which adds a warnings filter.
OpenSSL 3.0.0-alpha2 was released today. The FIPS_mode() function hasbeen deprecated and removed. It no longer makes sense with the newprovider and context system in OpenSSL 3.0.0.EVP_default_properties_is_fips_enabled() is good enough for our needs inunit tests. It's an internal API, too.Signed-off-by: Christian Heimes <christian@python.org>
* 1.0.2u (EOL)* 1.1.0l (EOL)* 1.1.1g* 3.0.0-alpha2 (disabled for now)Build the FIPS provider and create a FIPS configuration file for OpenSSL3.0.0.Signed-off-by: Christian Heimes <christian@python.org>Automerge-Triggered-By:@tiran
@serhiy-storchakaserhiy-storchaka merged commit35846fd intopython:revert-19108-remove-cElementTreeMay 15, 2020
@bedevere-bot
Copy link

@serhiy-storchaka: Please replace# withGH- in the commit message next time. Thanks!

@serhiy-storchakaserhiy-storchaka deleted the revert-19108-remove-cElementTree branchMay 15, 2020 18:31
@serhiy-storchakaserhiy-storchaka restored the revert-19108-remove-cElementTree branchMay 15, 2020 18:32
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

39 participants
@serhiy-storchaka@bedevere-bot@vstinner@the-knights-who-say-ni@kingbuzzman@shihai1991@zooba@curtisbucher@sweeneyde@pablogsal@tim-one@isidentical@rhettinger@lysnikolaou@naglis@corona10@encukou@ericsnowcurrently@ZackerySpytz@cjerdonek@nedbat@nanjekyejoannah@jaraco@andresdelfino@sir-sigurd@scoder@methane@bsolomon1124@hauntsaninja@guoguo12@tzabal@Jackenmen@mgraczyk@ivyl@frenzymadness@FFY00@gvanrossum@AndrewGYork@tiran

[8]ページ先頭

©2009-2025 Movatter.jp