| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
|
|
| |
(cherry picked from commit ae342cf7deebdcf2035f4064609b32b2102dadcf)
|
|
|
|
|
|
| |
(GH-4720) (#4721)
The undecodable file name cannot be created on macOS APFS file systems.
(cherry picked from commit b3edde8dd44c878e9f039a2165d00ff075157d4b)
|
|
|
| |
(cherry picked from commit 31af650ee25f65794b75d4dfefed6fe4758781c1)
|
|
|
| |
(cherry picked from commit 24e046987b8e34bb4f1f3fd9bd31f1d605e347dc)
|
|
|
| |
(cherry picked from commit 29bc19321018ec6e58f9f4da9c18c42e9a9c580e)
|
| |
|
|
|
|
|
|
|
|
| |
When tk event handling is driven by IDLE's run loop, a confusing
and distracting queue.EMPTY traceback context is no longer added
to tk event exception tracebacks. The traceback is now the same
as when event handling is driven by user code. Patch based on
a suggestion by Serhiy Storchaka.
(cherry picked from commit 1e2fcac4972530aa2c963d7e4011021df5ba866e)
|
|
|
|
| |
Patches are in 3.7.0a3 even if this update is not.
(cherry picked from commit 21255fc3932a60c064f85c0fe68f2840f390ebe4)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The original algorithm tried to delegate the folding to the tokens so
that those tokens whose folding rules differed could specify the
differences. However, this resulted in a lot of duplicated code because
most of the rules were the same.
The new algorithm moves all folding logic into a set of functions
external to the token classes, but puts the information about which
tokens can be folded in which ways on the tokens...with the exception of
mime-parameters, which are a special case (which was not even
implemented in the old folder).
This algorithm can still probably be improved and hopefully simplified
somewhat.
Note that some of the test expectations are changed. I believe the
changes are toward more desirable and consistent behavior: in general
when (re) folding a line the canonical version of the tokens is
generated, rather than preserving errors or extra whitespace.
(cherry picked from commit 85d5c18c9d83a1d54eecc4c2ad4dce63194107c6)
|
|
|
|
|
| |
(GH-3884) (#4690)
(cherry picked from commit 29ba688034fc4eef0693b86002cf7bee55d692af)
|
|
|
|
|
|
|
|
|
| |
Previously, CO_NOFREE was set in the compiler, which meant
it could end up being set incorrectly when code objects
were created directly. Setting it in the constructor based
on freevars and cellvars ensures it is always accurate,
regardless of how the code object is defined.
(cherry picked from commit 078f1814f1a4413a2a0fdb8cf4490ee0fc98ef34)
|
|
|
|
|
|
| |
(#4683)
Also addresses doc build failures documented in bpo-32200.
(cherry picked from commit 7324b5ce8e7c031a0a3832a6a8d7c639111ae0ff)
|
|
|
| |
(cherry picked from commit a561862048555d555fa4850eaf832ae5474c7e1f)
|
|
|
|
|
|
|
| |
In _io_FileIO_readall_impl(), lseek() and _Py_fstat_noraise() were called
without releasing the GIL. This can cause all threads to hang for
unlimited time when calling FileIO.read() and the NFS server is not
accessible.
(cherry picked from commit 6a89481680b921e7b317c29877bdda9a6031e5ad)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When PyGILState_Ensure() is called in a non-Python thread before
PyEval_InitThreads(), only call PyEval_InitThreads() after calling
PyThreadState_New() to fix a crash.
Add an unit test in test_embed.
Enhance also embedded tests, backport from master:
* Add test_pre_initialization_api()
* Set PYTHONIOENCODING environment variable in
test_forced_io_encoding()
(cherry picked from commit b4d1e1f7c1af6ae33f0e371576c8bcafedb099db)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* `make tags` fixes (GH-717)
* Fix `make tags` warnings
`make tags` target tries to find C sources and headers in "Grammar" and
"Mac" folders and generates these warnings:
ctags: Warning: cannot open source file "Grammar/*.[ch]" : No such file or directory
ctags: Warning: cannot open source file "Mac/*.[ch]" : No such file or directory
This commit changes $SRCDIRS variable in configure.ac to remote these
directories. This variable is used only for tags generation.
Also, "configure" was regenerated with `autoreconf`.
* Fix `make tags` fail on non-default tag names
When ctags overrides default tags filename (e.g. `-f .tags`) `make tags`
is failed because it assumes to see default `tags` filename:
sort: cannot read: tags: No such file or directory
This commit explicitly specifies "tags" filename for tags generation.
(cherry picked from commit 8a543c0bc7347d5b333f334d157bf4a7cd33c14a)
* make tags: index also Modules/_ctypes/ (#4648)
Avoid also "cd $(srcdir)" to not change the current directory.
(cherry picked from commit 3be3b97a9709d3cd5303175ddbffa7dcca57ac3e)
|
|
|
|
|
|
|
| |
* Fixed saving bytearrays.
* Identical objects will be saved only once.
* Equal references will be load as identical objects.
* Added support for saving and loading recursive data structures.
(cherry picked from commit a897aeeef647259a938a36cb5eb6680c86021c6a)
|
|
|
|
|
|
| |
(GH-4080) (#4653)
with the persistent_id() and persistent_load() methods.
(cherry picked from commit 986375ebde0dd5ff2b7349e445a06bd28a3a8ee2)
|
|
|
|
| |
bpo-31705.
(cherry picked from commit 86afc1f2a7fb3afe00779c6426bc141bc795d9a3)
|
|
|
|
|
|
|
|
|
|
| |
* bpo-30923: Silence fall-through warnings in libexpat build. (#3205)
(cherry picked from commit 9e1e6f528f3fec16b9bd99f5ee38048ffec04a81)
* bpo-31279: Silence -Wstringop-overflow warning. (#3207)
(cherry picked from commit dce6502059f46a04f90938b9d832394c8215397b)
|
|
|
| |
Skip the test if PYTHONMALLOC environment variable is set.
|
|
|
| |
Remove a flakey test and rewrite another one for readability.
|
|
|
| |
(cherry picked from commit cc55e78acab93a495c974b9a2ea71c8bb9cc2f5d)
|
|
|
| |
(cherry picked from commit 041efd292ebff46060fc1680b0608b1d4c876a48)
|
|
|
| |
(cherry picked from commit e8f7c78a868834bb53fa0ac903fc87785112f49e)
|
|
|
| |
(cherry picked from commit fd6f8c56b9a757210e8ceaea9edc50e502dc2085)
|
|
|
|
|
|
|
| |
(#4622)
characters/bytes for non-negative n. This makes it compatible with
read() methods of other file-like objects.
(cherry picked from commit 219c2de5ad0fdac825298bed1bb251f16956c04a)
|
|
|
|
|
|
|
|
|
|
| |
* turtledemo: wait until macOS osascript command completes to not
create a zombie process
* Tools/scripts/treesync.py: declare 'default_answer' and
'create_files' as globals to modify them with the command line
arguments. Previously, -y, -n, -f and -a options had no effect.
flake8 warning: "F841 local variable 'p' is assigned to but never
used".
|
|
|
| |
(cherry picked from commit c615be5166ed338c052fa67fe781b9bfe0dfb78c)
|
|
|
| |
(cherry picked from commit 08d2b86a1058b733bb7f1ae2b55818dd9687d21c)
|
|
|
|
|
| |
Currently, two tests fail with PYTHONASYNCIODEBUG=1 (or using -X
dev).
(cherry picked from commit 92f9339a58a613a56683510499509d1b702921a8)
|
|
|
|
|
| |
It was only used on Python 3.3, now only Future._log_traceback is
used.
(cherry picked from commit c16bacec3c2f08a74e4dc282f7d84f17ec70d0d5)
|
|
|
| |
(cherry picked from commit afd055a59fe0291881fc2459215ce106e424da51)
|
|
|
| |
(cherry picked from commit c172fc5031a4035986bef0b2fcef906706d7abf3)
|
|
|
|
|
| |
- Add "version added: 3.5.2" note where it was missing.
- Remove the mention that Reversible is new in 3.5.2
(cherry picked from commit 0cd2e81bea639828d7c9a7afc61fb1da9699492c)
|
|
|
|
|
| |
detect_modules() in setup.py now also searches the sysroot paths when
cross-compiling.
(cherry picked from commit 77f5139954a878b856b0ac4c76486b27b6f4ec26)
|
|
|
|
| |
`BUILD_MAP_UNPACK_WITH_CALL` was duplicated as the opcode for both var-positional and var-keyword arguments. The opcode for the former was updated as `BUILD_TUPLE_UNPACK_WITH_CALL`.
(cherry picked from commit 0c71653cb8231f176d02140fdef3706de2e93b9f)
|
|
|
|
| |
Mention that the lower the priority number, the higher priority it represents.
(cherry picked from commit 9d5ec808de2c1359f434cc2fa8378458e4339c96)
|
|
|
|
|
|
| |
(GH-4554)
The provided code example was supposed to find repeated words, however it returned false results.
(cherry picked from commit 610e5afdcbe3eca906ef32f4e0364e20e1b1ad23)
|
|
|
|
|
|
| |
The NNTP server currently has troubles with SSL, whereas we don't
have the control on this server. This test blocks all CIs, so disable
it until a fix can be found.
(cherry picked from commit 706cb3162e15271ecfeba15909ed48a3a437009f)
|
|
|
| |
(cherry picked from commit f8802d80b32dbc64f9e0e72270695d24ac50e246)
|
|
|
|
|
|
| |
The paragraph that contains example of string literal concatenation was placed
after the section about concatenation using the '+' sign.
Moved the paragraph to the appropriate section.
(cherry picked from commit 78a5722ae950b80a4b3d13377957f3932195aef3)
|
|
|
|
|
|
|
|
|
| |
The previous behavior was to raise an exception
NotImplementedError: result of type 0
when the value of the property is VT_EMPTY.
(cherry picked from commit 19fb134185ce155bc53f517116fca73093ba55e9)
|
|
|
|
|
|
|
|
|
|
|
| |
Previously, 'msilib.OpenDatabase()' function raised a
cryptical exception message when it couldn't open or
create an MSI file. For example:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
_msi.MSIError: unknown error 6e
(cherry picked from commit 4864a619dc1cc9092780ccf5a6327e8abf66133d)
|
|
|
|
|
| |
Move footnote markers to be closer to the related terminology:
before the end of the sentence, instead of after.
(cherry picked from commit cdfe910e746e1d0fc43429b8cc3384a65a19b358)
|
|
|
| |
(cherry picked from commit 3df02dbc8e197053105f9dffeae40b04ec66766e)
|
|
|
|
|
| |
(GH-1699)
(cherry picked from commit 26248ef58dcf49619930ffa2e050ffa687a88601)
|