Vladimir Surjaninov
384b81d923
bpo-36407: Fix writing indentations of CDATA section (xml.dom.minidom). (GH-12514)
2019-03-27 07:58:49 +02:00
Andre Delfino
f760610bdd
bpo-33832: Add "magic method" glossary entry (GH-7630)
2019-03-26 21:21:27 -04:00
Terry Jan Reedy
6a258c8890
bpo-36429: Fix starting IDLE with pyshell ( #12548 )
...
Add idlelib.pyshell alias at top; remove pyshell alias at bottom.
Remove obsolete __name__=='__main__' command.
2019-03-26 19:58:19 -04:00
Victor Stinner
414b1cde93
bpo-36436: Fix _testcapi.pymem_buffer_overflow() (GH-12560)
...
Handle memory allocation failure.
2019-03-26 14:35:30 +01:00
Inada Naoki
871309c775
bpo-36433: fix confusing error messages in classmethoddescr_call (GH-12556)
...
https://bugs.python.org/issue36433
2019-03-26 02:26:33 -07:00
Łukasz Langa
9f966dfd90
Python 3.8.0a3
...
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEE4/8oOcBIslwITevpsmmV4xAlBWgFAlyZLdQACgkQsmmV4xAl
BWi6Gg/+LvFG+HLD5t80y4mIJlPAxxhyFyPQNw4AlQ9Tt6perkkLVMa0ugvBPUE4
fzwaofesW8CZEGR/wV/DGgZFACLbSNxBrrwMYD4QJ0+T/LoNeY9zGlnKOrlGbzvJ
4tQtQF5hjaIxfTMq2pH+NP4ODuUm3zuVgtVdDmK02kRqvhiCiw1RFyDGaVgrm/uM
i78NUsih5oq7uv+pfWIfrGx7Wn4hsqW/Xq+N5S9YsNAgCzqGhfVPdU2gtw8nhq/F
SBBYkSsg4aOzlrZTot4SBffMBQ66nvvoAQfiAh2Etf7/PpzpdjG5BLTVx0UHIzCS
PIhkeOf27HAi6ul9xzgnJMKQXjdpU2JinzURWqAIz/gd3Kyd7iM5TPRMoWNx0iaN
MYdJaPjmBHTiMDYS9MoiSc8XWVqzmratMHMKsIq2oQbCHzU4OV5cLFE46f69BrVD
Ml3JrxpvzT8GZhI9zTK1Su14gGdtsndv1P+nW5/eusCno4IWlDLpc9GA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0a3
2019-03-26 10:08:49 +01:00
Zackery Spytz
0523c39e77
bpo-36430: Fix a possible reference leak in itertools.count(). (GH-12551)
2019-03-26 08:05:29 +02:00
Stéphane Wirtel
360e1e4c51
bpo-36345: Add a new example in the documentation of wsgiref ( #12511 )
2019-03-25 15:52:56 -07:00
Pablo Galindo
91759d9801
bpo-36143: Regenerate Lib/keyword.py from the Grammar and Tokens file using pgen (GH-12456)
...
Now that the parser generator is written in Python (Parser/pgen) we can make use of it to regenerate the Lib/keyword file that contains the language keywords instead of parsing the autogenerated grammar files. This also allows checking in the CI that the autogenerated files are up to date.
2019-03-25 22:01:12 +00:00
Raymond Hettinger
d1e768a677
bpo-36326: Let inspect.getdoc() find docstrings for __slots__ (GH-12498)
2019-03-25 13:01:13 -07:00
Łukasz Langa
9a448855b5
v3.8.0a3
2019-03-25 20:36:40 +01:00
Zackery Spytz
5e333784f0
bpo-36421: Fix a possible double decref in _ctypes.c's PyCArrayType_new(). (GH-12530)
...
Set type_attr to NULL after the assignment to stgdict->proto (like
what is done with stgdict after the Py_SETREF() call) so that it is
not decrefed twice on error.
2019-03-25 10:07:47 +02:00
Rémi Lapeyre
dd5417afcf
bpo-36218: Fix handling of heterogeneous values in list.sort (GH-12209)
2019-03-25 00:25:37 -07:00
Raymond Hettinger
62be33870e
bpo-36401: Have help() show readonly properties separately (GH-12517)
2019-03-24 17:07:47 -07:00
Louie Lu
113d735e20
bpo-30348: IDLE: Add test_autocomplete unittest (GH-2209)
2019-03-24 19:33:12 -04:00
Terry Jan Reedy
0fe4513d9a
bpo-36405: IDLE - Restore __main__ and add tests ( #12518 )
...
Fix error in commit 2b75155
noticed by Serhiy Storchaka.
2019-03-24 17:12:28 -04:00
Zackery Spytz
3d07c1ee1d
bpo-36412: fix a possible crash in dictobject.c's new_dict() (GH-12519)
2019-03-24 11:23:29 +09:00
AraHaan
a7987e7193
bpo-32217: Correct usage of ABI tags in freeze. (GH-4719)
...
Check for sys.abiflags before using since not all platforms have it defined.
2019-03-23 12:29:49 -04:00
Inada Naoki
d3c72a223a
bpo-36381: warn when no PY_SSIZE_T_CLEAN defined (GH-12473)
...
We will remove int support from 3.10 or 4.0.
2019-03-23 21:04:40 +09:00
Cheryl Sabella
d60f658fc0
bpo-23205: IDLE: Add tests and refactor grep's findfiles (GH-12203)
...
* Add tests for grep findfiles.
* Move findfiles to module function.
* Change findfiles to use os.walk.
Based on a patch by Al Sweigart.
2019-03-23 07:33:42 -04:00
Terry Jan Reedy
2b75155590
bpo-36405: Use dict unpacking in idlelib ( #12507 )
...
Remove now unneeded imports.
2019-03-23 03:50:15 -04:00
Terry Jan Reedy
c1419578a1
bpo-36396: Remove fgBg param of idlelib.config.GetHighlight() (GH-12491)
...
This param was only used once and changed the return type.
2019-03-22 18:23:41 -04:00
Brett Cannon
5086589305
bpo-36298: Raise ModuleNotFoundError in pyclbr when a module can't be found (GH-12358)
...
Before, an `AttributeError` was raised due to trying to access an attribute that exists on specs but having received `None` instead for a non-existent module.
https://bugs.python.org/issue36298
2019-03-22 15:16:50 -07:00
Rémi Lapeyre
96831c7fcf
bpo-30670: Add pp function to the pprint module (GH-11769)
2019-03-22 10:22:20 -07:00
Kumar Akshay
b0df45e55d
bpo-21269: Provide args and kwargs attributes on mock call objects GH11807
2019-03-22 08:10:40 +00:00
Zackery Spytz
93e8012f2c
bpo-36398: Fix a possible crash in structseq_repr(). (GH-12492)
...
If the first PyUnicode_DecodeUTF8() call fails in structseq_repr(),
_PyUnicodeWriter_Dealloc() will be called on an uninitialized
_PyUnicodeWriter.
2019-03-22 09:24:34 +02:00
Pablo Galindo
9a0000d15d
bpo-36256: Fix bug in parsermodule when parsing if statements (GH-12477)
...
bpo-36256: Fix bug in parsermodule when parsing if statements
In the parser module, when validating nodes before starting the parsing with to create a ST in "parser_newstobject" there is a problem that appears when two arcs in the same DFA state has transitions with labels with the same type. For example, the DFA for if_stmt has a state with
two labels with the same type: "elif" and "else" (type NAME). The algorithm tries one by one the arcs until the label that starts the arc transition has a label with the same type of the current child label we are trying to accept. In this case, the arc for "elif" comes before the arc for "else"and passes this test (because the current child label is "else" and has the same type as "elif"). This lead to expecting a namedexpr_test (305) instead of a colon (11). The solution is to compare also the string representation (in case there is one) of the labels to see if the transition that we have is the correct one.
2019-03-21 23:33:02 +00:00
CAM Gerlach
e680c3db80
bpo-36268: Change default tar format to pax from GNU. (GH-12355)
2019-03-21 16:44:51 +02:00
sth
aa3ecb8041
bpo-36285: Fix integer overflow in the array module. (GH-12317)
2019-03-20 21:49:39 +02:00
Serhiy Storchaka
c1e2c288f4
bpo-36312: Fix decoders for some code pages. (GH-12369)
2019-03-20 21:45:18 +02:00
Zackery Spytz
9b4a1b1e23
bpo-36374: Fix a possible null pointer dereference (GH-12449)
...
https://bugs.python.org/issue36374
2019-03-20 02:16:25 -07:00
Victor Stinner
c70ab02df2
bpo-36365: Rewrite structseq_repr() using _PyUnicodeWriter (GH-12440)
...
No longer limit repr(structseq) to 512 bytes. Use _PyUnicodeWriter
for better performance and to write directly Unicode rather than
encoding repr() value to UTF-8 and then decoding from UTF-8.
2019-03-20 00:05:51 +01:00
Victor Stinner
dcf617152e
bpo-36236: Handle removed cwd at Python init (GH-12424)
...
At Python initialization, the current directory is no longer
prepended to sys.path if it has been removed.
Rename _PyPathConfig_ComputeArgv0() to
_PyPathConfig_ComputeSysPath0() to avoid confusion between argv[0]
and sys.path[0].
2019-03-19 16:09:27 +01:00
Stéphane Wirtel
943395fab9
bpo-36333: Fix leak _PyRuntimeState_Fini (GH-12400)
2019-03-19 11:51:32 +01:00
btharper
e130a07eb2
bpo-36356: Fix memory leak in _PyPreConfig_Read() (GH-12425)
...
_PyPreConfig_Read() now free 'old_old' at exit.
2019-03-19 11:50:25 +01:00
Raymond Hettinger
714c60d7ac
bpo-36324: Add inv_cdf() to statistics.NormalDist() (GH-12377)
2019-03-18 20:17:14 -07:00
Victor Stinner
faddaedd05
bpo-36352: Avoid hardcoded MAXPATHLEN size in getpath.c (GH-12423)
...
* Use Py_ARRAY_LENGTH() rather than hardcoded MAXPATHLEN in getpath.c.
* Pass string length to functions modifying strings.
2019-03-19 02:58:14 +01:00
Victor Stinner
5f9cf23502
bpo-36301: Error if decoding pybuilddir.txt fails (GH-12422)
...
Python initialization now fails if decoding pybuilddir.txt
configuration file fails at startup.
_PyPathConfig_Calculate() now reports memory allocation failure and
decoding error on decoding pybuilddir.txt content from
UTF-8/surrogateescape.
2019-03-19 01:46:25 +01:00
Raymond Hettinger
f7b57df0c0
bpo-36320: Switch typing.NamedTuple from OrderedDict to regular dict (GH-12396)
...
Also, deprecate the *_field_types* attributes which duplicated the information in *\__annotations__*.
https://bugs.python.org/issue36320
2019-03-18 09:53:56 -07:00
Pablo Galindo
0c9258a6d2
bpo-36332: Allow compile() to handle AST objects with assignment expressions (GH-12398)
2019-03-18 13:51:53 +00:00
Stéphane Wirtel
09a9f1799c
bpo-36329: Declare the version of Python to use for Tools/scripts/serve.py ( #12385 )
...
* bpo-36329: Declare the version of Python to use for Tools/scripts/serve.py
* Add the blurb entry
2019-03-18 11:47:55 +01:00
Raymond Hettinger
23581c018f
bpo-36321: Fix misspelled attribute in namedtuple() (GH-12375)
2019-03-18 00:27:39 -07:00
Inada Naoki
6a16b18224
bpo-36297: remove "unicode_internal" codec (GH-12342)
2019-03-18 15:44:11 +09:00
Harmon
6fb544d8bc
Fix "catchs" typos in NEWS entries (GH-12364)
2019-03-17 16:48:21 -07:00
Fantix King
f683f46425
bpo-34745: Fix asyncio sslproto memory issues (GH-12386)
...
* Fix handshake timeout leak in asyncio/sslproto
Refs MagicStack/uvloop#222
* Break circular ref _SSLPipe <-> SSLProtocol
* bpo-34745: Fix asyncio ssl memory leak
* Break circular ref SSLProtocol <-> UserProtocol
* Add NEWS entry
2019-03-17 18:51:10 -04:00
Cheryl Sabella
0bb5e75cf8
bpo-23216: IDLE: Add docstrings to search modules (GH-12141)
2019-03-16 19:29:33 -04:00
Pablo Galindo
7c994549dc
bpo-35493: Use Process.sentinel instead of sleeping for polling worker status in multiprocessing.Pool ( #11488 )
...
* bpo-35493: Use Process.sentinel instead of sleeping for polling worker status in multiprocessing.Pool
* Use self-pipe pattern to avoid polling for changes
* Refactor some variable names and add comments
* Restore timeout and poll
* Use reader object only on wait()
* Recompute worker sentinels every time
* Remove timeout and use change notifier
* Refactor some methods to be overloaded by the ThreadPool, document the cache class and fix typos
2019-03-16 22:34:24 +00:00
Dave Chevell
962bdeab19
bpo-35715: Liberate return value of _process_worker (GH-11514)
...
ProcessPoolExecutor workers will hold the return value of their last task in memory until the next task is received. Since the return value has already been propagated to the parent process's Future (or has been discarded by this point), the object can be safely released.
2019-03-16 22:28:51 +00:00
Yasser A
f40b4a0b62
bpo-36138: Clarify docs about converting datetime.timedelta to scalars. (GH-12137)
...
Be explicit that timedelta division converts an overall duration to the interval
units given by the denominator.
2019-03-16 13:56:58 +10:00
Eric Snow
d2fdd1fedf
bpo-36124: Add PyInterpreterState.dict. (gh-12132)
2019-03-15 17:47:43 -06:00