[issue26093] __qualname__ different when calling generator object w/ functions.partial

2018-09-10 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34600] python3 regression ElementTree.iterparse() unable to capture comments

2018-09-10 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34475] functools.partial objects have no __qualname__ attribute

2018-09-10 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: It seems __repr__ call to partial object has qualname but I think it always returns "partial". Ref : https://github.com/python/cpython/blob/0afada163c7ef25c3a9d46ed445481fb69f2ecaf/Lib/functools.py#L276 >>> import functools >>> int.__qualname__

[issue34603] ctypes on Windows: error calling C function that returns a struct containing 3 bools

2018-09-10 Thread MatteoL
Change by MatteoL : -- nosy: +amaury.forgeotdarc, belopolsky, meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34619] Typo in docs.python.jp

2018-09-10 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. I think translations use Github issues (https://github.com/python/python-docs-ja/issues). https://www.python.org/dev/peps/pep-0545/#language-team tells me "Redirect issues posted on b.p.o to the correct GitHub issue tracker

[issue34475] functools.partial objects have no __qualname__ attribute

2018-09-10 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34616] implement "Async exec"

2018-09-10 Thread Nathaniel Smith
Nathaniel Smith added the comment: I think the first thing is to add async "modes" to compile: in particular "async-exec" and "async-single". These would be like the current "exec" and "single" modes respectively, except that they act like the code is inside an "async def", so "await" is

[issue18233] SSLSocket.getpeercertchain()

2018-09-10 Thread chaen
chaen added the comment: There is another very valid use case which is even described by an RFC: https://www.ietf.org/rfc/rfc3820.txt And openssl supports this RFC. These proxy certificates are heavily used in the world of high energy physics computing, and having the get_peer_cert_chain

[issue34621] uuid.UUID objects can't be unpickled in older Python versions (<3.7)

2018-09-10 Thread Tal Einat
New submission from Tal Einat : This affects only 3.7, where the new SafeUUID enum was introduced. This was fixed on the master branch (3.8) while implementing issue30977. Fixing this should simply require defining similar __getstate__ and __setstate__ methods as in 3.8. --

[issue22807] uuid.uuid1() should use uuid_generate_time_safe() if available

2018-09-10 Thread Tal Einat
Tal Einat added the comment: The fix for issue30977 did fix the unpickling in older versions. It was only applied to the master (i.e. 3.8) branch, though. I've created issue34621 to deal with this separately. -- ___ Python tracker

[issue5166] ElementTree and minidom don't prevent creation of not well-formed XML

2018-09-10 Thread Ben Spiller
Ben Spiller added the comment: Hi it's been a few years now since this was reported and it's still a problem, any chance of a fix for this? The API gives the impression that if you pass python strings to the XML API then the library will generate valid XML. It takes care of the

[issue34621] uuid.UUID objects can't be unpickled in older Python versions (<3.7)

2018-09-10 Thread Tal Einat
Change by Tal Einat : -- keywords: +patch pull_requests: +8585 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue34620] Octal byte literals with a decimal value > 255 are silently truncated

2018-09-10 Thread Dan Snider
New submission from Dan Snider : >>> b'\542\571\564\545\563', b'\142\171\164\145\163' (b'bytes', b'bytes') All the C compilers I know of at the very least generate a warning when one tries to assign an oct literal >= '\400' to a byte. And that's because it's nonsense when bytes have 8 bits,

[issue30977] reduce uuid.UUID() memory footprint

2018-09-10 Thread Tal Einat
Change by Tal Einat : -- pull_requests: +8586 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34421] Cannot install package with unicode module names on Windows

2018-09-10 Thread Julien Malard
Julien Malard added the comment: Thanks! Will give it a try and reference this conversation here as background. -- ___ Python tracker ___

[issue34604] Possible mojibake in pwd.getpwnam and grp.getgrnam

2018-09-10 Thread William Grzybowski
William Grzybowski added the comment: I can do it if you feel the need. Can this same issue be used? Will the new PR require another NEWS entry? -- ___ Python tracker ___

[issue30977] reduce uuid.UUID() memory footprint

2018-09-10 Thread Tal Einat
Tal Einat added the comment: New changeset 54752533b2ed1c898ffe5ec2e795c6910ee46a39 by Tal Einat in branch 'master': bpo-30977: rework code changes according to post-merge code review (GH-9106) https://github.com/python/cpython/commit/54752533b2ed1c898ffe5ec2e795c6910ee46a39 --

[issue34068] traceback.clear_frames(): Objects/typeobject.c:3086: _PyType_Lookup: Assertion `!PyErr_Occurred()' failed.

2018-09-10 Thread Benjamin Peterson
Change by Benjamin Peterson : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue34588] traceback formatting can drop a frame

2018-09-10 Thread miss-islington
miss-islington added the comment: New changeset afb25bc2b5767ac3a83bc8c4d2826e8fdcb6b0e7 by Miss Islington (bot) in branch '3.6': bpo-34588: Fix an off-by-one error in traceback formatting. (GH-9077) https://github.com/python/cpython/commit/afb25bc2b5767ac3a83bc8c4d2826e8fdcb6b0e7

[issue34282] Enum._convert shadows members named _convert

2018-09-10 Thread Ethan Furman
Ethan Furman added the comment: New changeset c0d63bf73b35df374e6e66c08b0e297fb828d744 by Ethan Furman (orlnub123) in branch '3.7': [3.7] bpo-34282: Fix Enum._convert method shadowing members named _convert (GH-9034)

[issue34588] traceback formatting can drop a frame

2018-09-10 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset d545869d084e70d4838310e79b52a25a72a1ca56 by Benjamin Peterson in branch 'master': bpo-34588: Fix an off-by-one error in traceback formatting. (GH-9077) https://github.com/python/cpython/commit/d545869d084e70d4838310e79b52a25a72a1ca56

[issue34588] traceback formatting can drop a frame

2018-09-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +8587 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34588] traceback formatting can drop a frame

2018-09-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +8588 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23354] Loading 2 GiLOC file which raises exception causes wrong traceback

2018-09-10 Thread Benjamin Peterson
Change by Benjamin Peterson : -- resolution: works for me -> status: closed -> open ___ Python tracker ___ ___ Python-bugs-list

[issue34621] uuid.UUID objects can't be unpickled in older Python versions (<3.7)

2018-09-10 Thread Tal Einat
Change by Tal Einat : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue34588] traceback formatting can drop a frame

2018-09-10 Thread Benjamin Peterson
Change by Benjamin Peterson : -- nosy: -miss-islington resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34588] traceback formatting can drop a frame

2018-09-10 Thread miss-islington
miss-islington added the comment: New changeset 49020174305ca3dc90a811b03a05f44873297c61 by Miss Islington (bot) in branch '3.7': bpo-34588: Fix an off-by-one error in traceback formatting. (GH-9077) https://github.com/python/cpython/commit/49020174305ca3dc90a811b03a05f44873297c61

[issue34598] How to fix? Error in Kali linux python 2.7 - Collecting pip From cffi callback : Traceback (most recent call last): File "/usr/local/lib/pytho

2018-09-10 Thread Benjamin Peterson
Benjamin Peterson added the comment: This seems likely to be a bug in the Kali distribution. -- nosy: +benjamin.peterson resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker

[issue23354] Loading 2 GiLOC file which raises exception causes wrong traceback

2018-09-10 Thread Benjamin Peterson
Benjamin Peterson added the comment: We would need to know what test.py was actually doing to fix this bug. -- resolution: -> works for me stage: -> resolved status: open -> closed ___ Python tracker

[issue23354] Loading 2 GiLOC file which raises exception causes wrong traceback

2018-09-10 Thread SoniEx2
SoniEx2 added the comment: test.py is the result of `"\n" * (2**31) + "assert False"`, written to a file. On Mon, Sep 10, 2018, 13:14 Benjamin Peterson wrote: > > Benjamin Peterson added the comment: > > We would need to know what test.py was actually doing to fix this bug. > > --

[issue6531] atexit_callfuncs() crashing within Py_Finalize() when using multiple interpreters.

2018-09-10 Thread Petr Viktorin
Change by Petr Viktorin : -- stage: patch review -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue34616] implement "Async exec"

2018-09-10 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: > I think the first thing is to add async "modes" to compile: in particular > "async-exec" and "async-single". These would be like the current "exec" and > "single" modes respectively, except that they act like the code is inside an > "async def", so

[issue34621] uuid.UUID objects can't be unpickled in older Python versions (<3.7)

2018-09-10 Thread Tal Einat
Tal Einat added the comment: New changeset d53f1cabe8837697df4acb70c9c6537461b5eeda by Tal Einat in branch '3.7': [3.7] bpo-34621: fix uuid.UUID (un)pickling compatbility with older Python versions (<3.7) (GH-9133)

[issue24696] Don't use None as sentinel for traceback

2018-09-10 Thread Benjamin Peterson
Benjamin Peterson added the comment: 3.4 is out of bugfix support. -- nosy: +benjamin.peterson resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue23855] Missing Sanity Check for malloc() in PC/_msi.c

2018-09-10 Thread miss-islington
miss-islington added the comment: New changeset 8a0c254fdd68cfafede168356fc5c5c3e372bc3f by Miss Islington (bot) in branch '3.6': bpo-23855: Add missing NULL checks for malloc() in _msi.c (GH-9038) https://github.com/python/cpython/commit/8a0c254fdd68cfafede168356fc5c5c3e372bc3f --

[issue23855] Missing Sanity Check for malloc() in PC/_msi.c

2018-09-10 Thread miss-islington
miss-islington added the comment: New changeset f51a46631f8dcca596c08a934a766da9afe93c06 by Miss Islington (bot) in branch '2.7': bpo-23855: Add missing NULL checks for malloc() in _msi.c (GH-9038) https://github.com/python/cpython/commit/f51a46631f8dcca596c08a934a766da9afe93c06 --

[issue34525] smtplib's authobject return value wrongly documented

2018-09-10 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 78deb7f33227972987722bc3fed5bcb45fae869e by Benjamin Peterson (Sebastian Rittau) in branch 'master': closes bpo-34525: Fix smtplib's authobject() documentation (GH-8965)

[issue34580] sqlite doc: clarify the scope of the context manager

2018-09-10 Thread Daniel Jakots
Daniel Jakots added the comment: LGTM -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34525] smtplib's authobject return value wrongly documented

2018-09-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +8589 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33217] x in enum.Flag member is True when x is not a Flag

2018-09-10 Thread Ethan Furman
Ethan Furman added the comment: New changeset 9430652535f88125d8003f342a8884d34885d876 by Ethan Furman (Rahul Jha) in branch 'master': bpo-33217: Raise TypeError for non-Enum lookups in Enums (GH-6651) https://github.com/python/cpython/commit/9430652535f88125d8003f342a8884d34885d876

[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2018-09-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 3286ce4adee85c5ce8ab3ee3089f3cd44a017fd7 by Raymond Hettinger (Tal Einat) in branch 'master': bpo-20180: itertools.groupby Argument Clinic conversion (GH-4170) https://github.com/python/cpython/commit/3286ce4adee85c5ce8ab3ee3089f3cd44a017fd7

[issue34487] enum _sunder_ names mix metaclass and enum class attributes

2018-09-10 Thread Ethan Furman
Change by Ethan Furman : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue31577] crash in os.utime() in case of a bad ns argument

2018-09-10 Thread Zachary Ware
Zachary Ware added the comment: We definitely can't make that change to PyNumber_Divmod in 3.7 at this point, I'm sure someone somewhere is relying on being able to get arbitrary information out of their objects with `divmod(crazy_object)`. I don't know enough math to say whether there

[issue33604] HMAC default to MD5 marked as to be removed in 3.6

2018-09-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 51a4743d19abd016f0772a57fb31df7af9220e18 by Gregory P. Smith (Matthias Bussonnier) in branch 'master': bpo-33604: Remove deprecated HMAC default value marked for removal in 3.8 (GH-7063)

[issue34525] smtplib's authobject return value wrongly documented

2018-09-10 Thread miss-islington
miss-islington added the comment: New changeset 011141f312f11b35ac163d9d52fe48e4bb61a814 by Miss Islington (bot) in branch '3.7': closes bpo-34525: Fix smtplib's authobject() documentation (GH-8965) https://github.com/python/cpython/commit/011141f312f11b35ac163d9d52fe48e4bb61a814

[issue34525] smtplib's authobject return value wrongly documented

2018-09-10 Thread miss-islington
miss-islington added the comment: New changeset c0db8177dc9a7f79941551576e1faea9724e027d by Miss Islington (bot) in branch '3.6': closes bpo-34525: Fix smtplib's authobject() documentation (GH-8965) https://github.com/python/cpython/commit/c0db8177dc9a7f79941551576e1faea9724e027d

[issue26502] traceback.extract_tb breaks compatibility by returning FrameSummary

2018-09-10 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset 9797b7ae4496627836c55333765e10201a9840e3 by Petr Viktorin (Berker Peksag) in branch 'master': bpo-26502: Implement FrameSummary.__len__() (GH-8632) https://github.com/python/cpython/commit/9797b7ae4496627836c55333765e10201a9840e3 --

[issue34525] smtplib's authobject return value wrongly documented

2018-09-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +8590 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34619] Typo in docs.python.jp

2018-09-10 Thread Brett Cannon
Brett Cannon added the comment: Karthikeyan is right that translation bugs should be reported on the GitHub project for the translation. -- nosy: +brett.cannon resolution: -> third party stage: -> resolved status: open -> closed ___ Python

[issue31577] crash in os.utime() in case of a bad ns argument

2018-09-10 Thread Zachary Ware
Zachary Ware added the comment: Adding Ned and marking as release blocker as this is a crasher in 3.7.0. -- nosy: +ned.deily priority: normal -> release blocker ___ Python tracker

[issue31801] vars() manipulation encounters problems with Enum

2018-09-10 Thread Ethan Furman
Change by Ethan Furman : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue34604] Possible mojibake in pwd.getpwnam and grp.getgrnam

2018-09-10 Thread STINNER Victor
STINNER Victor added the comment: > I can do it if you feel the need. Can this same issue be used? Will the new > PR require another NEWS entry? Sure, reuse the same bpo number. You can modify the NEWS entry that you added ;-) -- ___ Python

[issue34622] Extract asyncio exceptions into a separate file

2018-09-10 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +8591 stage: -> patch review ___ Python tracker ___ ___

[issue33649] asyncio docs overhaul

2018-09-10 Thread Yury Selivanov
Change by Yury Selivanov : -- keywords: +patch pull_requests: +8592 stage: -> patch review ___ Python tracker ___ ___

[issue25083] Python can sometimes create incorrect .pyc files

2018-09-10 Thread Petr Viktorin
Change by Petr Viktorin : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue33609] Document that dicts preserve insertion order

2018-09-10 Thread Eric Atkin
Eric Atkin added the comment: It seems the note at the bottom for `object.__hash__(self)` [1] should be updated as well. [1] https://docs.python.org/3/reference/datamodel.html#object.__hash__ -- nosy: +Eric Atkin ___ Python tracker

[issue27777] cgi.FieldStorage can't parse simple body with Content-Length and no Content-Disposition

2018-09-10 Thread Jack Jansen
Change by Jack Jansen : -- nosy: +jackjansen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25083] Python can sometimes create incorrect .pyc files

2018-09-10 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset f64c813de84011a84ca21d75a294861a9cc2dfdc by Petr Viktorin (tzickel) in branch '2.7': bpo-25083: Python can sometimes create incorrect .pyc files (GH-8449) https://github.com/python/cpython/commit/f64c813de84011a84ca21d75a294861a9cc2dfdc

[issue34622] Extract asyncio exceptions into a separate file

2018-09-10 Thread Andrew Svetlov
New submission from Andrew Svetlov : Their public import paths are still the same, e.g. `asyncio.CancelledError`. The change pursuits a better asyncio internal code structure. -- messages: 324952 nosy: asvetlov priority: normal severity: normal status: open title: Extract asyncio

[issue34622] Extract asyncio exceptions into a separate file

2018-09-10 Thread Andrew Svetlov
Change by Andrew Svetlov : -- components: +asyncio nosy: +yselivanov versions: +Python 3.8 ___ Python tracker ___ ___

[issue33604] HMAC default to MD5 marked as to be removed in 3.6

2018-09-10 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> fixed stage: patch review -> commit review status: open -> closed type: -> behavior versions: -Python 3.6 ___ Python tracker

[issue33217] x in enum.Flag member is True when x is not a Flag

2018-09-10 Thread Ethan Furman
Ethan Furman added the comment: Thank you, Rahul! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue8110] subprocess.py doesn't correctly detect Windows machines

2018-09-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: lets call this fixed. if and only if another Python implementation pipes up as happier if this exists in an older than 3.8 version we can consider backporting the same refactoring to that code. -- resolution: -> fixed stage: patch review ->

[issue34624] -W option does not accept module regexes

2018-09-10 Thread Thomas Gläßle
New submission from Thomas Gläßle : Hi, This command does not report a warning, while it should: python -c 'import warnings; warnings.warn("This should show up")' -Wi -W'default:::.*' If the regex `.*` is replaced by `__main__` it works as expected. Same applies for regexes in

[issue34623] _elementtree.c doesn't call XML_SetHashSalt()

2018-09-10 Thread Benjamin Peterson
Benjamin Peterson added the comment: Note we compile expat with -DXML_POOR_ENTROPY on the assumption that Python always initializes the entropy itself. -- nosy: +benjamin.peterson ___ Python tracker

[issue32236] open() shouldn't silently ignore buffering=1 in binary mode

2018-09-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: My problem with a warning is the standard one: People who see a warning are often end users of python applications (who don't even have to know what Python is, let alone know anything about the code). For that reason, never add a warning to a stable

[issue34623] _elementtree.c doesn't call XML_SetHashSalt()

2018-09-10 Thread STINNER Victor
STINNER Victor added the comment: > Note we compile expat with -DXML_POOR_ENTROPY on the assumption that Python > always initializes the entropy itself. Oh. I forgot this thing. So it seems like we have to backport this change to 2.7, 3.6 and newer versions. What about Python 3.4 and 3.5?

[issue18307] Relative path in co_filename for zipped modules

2018-09-10 Thread Brett Cannon
Brett Cannon added the comment: So it sounds like that maybe we need to decide if we are going to replace zipimport with Serhiy's Python version. And if we do decide to go with the Python code then it should get updated to use _imp._fix_co_filename(). Regardless of the decision, obviously

[issue34625] update to expat 2.2.6

2018-09-10 Thread Benjamin Peterson
New submission from Benjamin Peterson : libexpat 2.2.6 has been released. We should update our vendorized version. -- components: XML messages: 324967 nosy: benjamin.peterson priority: normal severity: normal status: open title: update to expat 2.2.6 versions: Python 2.7, Python 3.6,

[issue32270] subprocess closes redirected fds even if they are in pass_fds

2018-09-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +8595 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34625] update to expat 2.2.6

2018-09-10 Thread Benjamin Peterson
Change by Benjamin Peterson : -- keywords: +patch pull_requests: +8597 stage: -> patch review ___ Python tracker ___ ___

[issue32270] subprocess closes redirected fds even if they are in pass_fds

2018-09-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +8596 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33437] Defining __init__ in enums

2018-09-10 Thread Ethan Furman
Change by Ethan Furman : -- pull_requests: +8593 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34623] _elementtree.c doesn't call XML_SetHashSalt()

2018-09-10 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +8594 stage: -> patch review ___ Python tracker ___ ___

[issue34605] Avoid master/slave terminology

2018-09-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Indeed, "master" in itself is used in a wide range of contexts and can have quite positive connotations (I master Python programming). The word "slave" I agree with removing if used gratuitously. If its use reflects an established convention which we do not

[issue8110] subprocess.py doesn't correctly detect Windows machines

2018-09-10 Thread Zachary Ware
Zachary Ware added the comment: Do we want to bother backporting anything, or call it fixed in 3.8 and move on? -- ___ Python tracker ___

[issue8110] subprocess.py doesn't correctly detect Windows machines

2018-09-10 Thread Zachary Ware
Zachary Ware added the comment: New changeset 880d42a3b247306f67837aa95e23f7c3471a30a3 by Zachary Ware in branch 'master': bpo-8110: Refactor platform detection in subprocess (GH-9053) https://github.com/python/cpython/commit/880d42a3b247306f67837aa95e23f7c3471a30a3 --

[issue8110] subprocess.py doesn't correctly detect Windows machines

2018-09-10 Thread Zachary Ware
Change by Zachary Ware : -- versions: -Python 2.7, Python 3.6, Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34624] -W option does not accept module regexes

2018-09-10 Thread Thomas Gläßle
Thomas Gläßle added the comment: Very sorry, the example command above should read: python -Wi -W'default:::.*' -c 'import warnings; warnings.warn("This should show up")' -- ___ Python tracker

[issue34586] collections.ChainMap should have a get_where method

2018-09-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: I've discussed this with other core devs and spent a good deal of time evaluating this proposal. I'm going to pass on the this one but do think it was a inspired suggestion. Thank you for the proposal. -- Note, the original get_where() recipe

[issue34623] _elementtree.c doesn't call XML_SetHashSalt()

2018-09-10 Thread Christian Heimes
Christian Heimes added the comment: Dang, it's a security bug after all. :( 3.5 has 2.2.4, so it's fine. 2.2.2 had a bug in salt initialization. -- type: behavior -> security versions: +Python 3.6, Python 3.7 ___ Python tracker

[issue32270] subprocess closes redirected fds even if they are in pass_fds

2018-09-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset ce34410b8b67f49d8275c05d51b3ead50cf97f48 by Gregory P. Smith in branch 'master': bpo-32270: Don't close stdin/out/err in pass_fds (GH-6242) https://github.com/python/cpython/commit/ce34410b8b67f49d8275c05d51b3ead50cf97f48 --

[issue34465] ipaddress should accept bytearray in addition to bytes

2018-09-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: This isn't limited to just IPv4Address, the Network classes and the IPv6 classes that accept bytes should also be updated for consistency if we're going to do this. (bytes, bytearray, memoryview) make sense to support, and explicitly test in unittests.

[issue34609] Idle Unitest

2018-09-10 Thread Cheryl Sabella
Cheryl Sabella added the comment: Following up, I was able to recreate under 3.8 using pdb in powershell, so it's not just in IDLE. Traceback (most recent call last): File "N:\projects\cpython\lib\pdb.py", line 1697, in main pdb._runscript(mainpyfile) File

[issue34623] _elementtree.c doesn't call XML_SetHashSalt()

2018-09-10 Thread Christian Heimes
New submission from Christian Heimes : The pyexpat module calls XML_SetHashSalt(self->itself, (unsigned long)_Py_HashSecret.expat.hashsalt) to initialize the salt for hash randomization of the XML_Parser struct. The _elementree C accelerator doesn't call XML_SetHashSalt().

[issue34213] Frozen dataclass __init__ fails for "object" property"

2018-09-10 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8 ___ Python tracker ___

[issue34363] dataclasses.asdict() mishandles dataclass instance attributes that are instances of subclassed typing.NamedTuple

2018-09-10 Thread Eric V. Smith
Change by Eric V. Smith : -- pull_requests: +8598 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33487] BZ2File(buffering=None) does not emit deprecation warning, deprecation version not documented.

2018-09-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset ffa198c642f9c67b84ef192bf0f7016c4249e570 by Gregory P. Smith (Matthias Bussonnier) in branch 'master': bpo-33487: improve BZ2File Deprecation and documentation. (GH-6785)

[issue33487] BZ2File(buffering=None) does not emit deprecation warning, deprecation version not documented.

2018-09-10 Thread Gregory P. Smith
Change by Gregory P. Smith : -- versions: +Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34082] EnumMeta.__new__ should use enum_class.__new__

2018-09-10 Thread Ethan Furman
Ethan Furman added the comment: The solution to 29577 will also fix this. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Enum: mixin classes don't mix well with already mixed Enums ___ Python tracker

[issue34626] PEP 384's PyType_Spec and PyType_Slot are not documented

2018-09-10 Thread Petr Viktorin
New submission from Petr Viktorin : The documentation of PyType_FromSpec and PyType_FromSpecWithBases is currently not very useful. In particular, PyType_Spec and PyType_Slot are only documented in pep-0384, not in the Python docs. -- messages: 324975 nosy: petr.viktorin priority:

[issue34626] PEP 384's PyType_Spec and PyType_Slot are not documented

2018-09-10 Thread Petr Viktorin
Change by Petr Viktorin : -- keywords: +patch pull_requests: +8600 stage: -> patch review ___ Python tracker ___ ___

[issue32027] argparse allow_abbrev option also controls short flag combinations

2018-09-10 Thread paul j3
paul j3 added the comment: The PR 4396 should be closed. -- nosy: +paul.j3 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue33460] "..." is used to confusingly indicate many different things in chapter 3

2018-09-10 Thread miss-islington
miss-islington added the comment: New changeset 037582eb7f4d61604ef2dcc72f896117588eeb3c by Miss Islington (bot) in branch '3.7': bpo-33460: remove ellipsis that look like continuation prompts (GH-7851) https://github.com/python/cpython/commit/037582eb7f4d61604ef2dcc72f896117588eeb3c

[issue34363] dataclasses.asdict() mishandles dataclass instance attributes that are instances of subclassed typing.NamedTuple

2018-09-10 Thread Eric V. Smith
Eric V. Smith added the comment: I like GH-9151 better because it changes only the namedtuple case, not other classes that are derived from list or tuple. But, I might copy some of the tests from 9151 before I'm done with this. -- ___ Python

[issue33460] "..." is used to confusingly indicate many different things in chapter 3

2018-09-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset f019579828ed62653e2d41c95278308fa076ccaf by Gregory P. Smith (Lew Kurtz) in branch 'master': bpo-33460: remove ellipsis that look like continuation prompts (GH-7851)

[issue33460] "..." is used to confusingly indicate many different things in chapter 3

2018-09-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +8599 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33487] BZ2File(buffering=None) does not emit deprecation warning, deprecation version not documented.

2018-09-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: thanks! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34625] update to expat 2.2.6

2018-09-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +8602 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34625] update to expat 2.2.6

2018-09-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +8601 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

  1   2   >