[issue36323] IDLE: always display full grep path

2019-03-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: To be more exact, if 'Find in Files' is called in an unsaved editor window, including Output windows, the the entry starts as '*.py'. I presume that this is relative to the current working directory, which is initially the startup directory. But this can

[issue36315] Unable to install Python 3.7.2

2019-03-16 Thread Sujoy
Sujoy added the comment: I am using Windows 7 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36236] Python crash on macOS when CWD is invalid

2019-03-16 Thread Nick Coghlan
Nick Coghlan added the comment: Omitting it from sys.path in that case makes sense to me, but I'm not sure what sys.argv[0] should be set to. -- ___ Python tracker ___

[issue36323] IDLE: always display full grep path

2019-03-16 Thread Terry J. Reedy
New submission from Terry J. Reedy : The second line of the Find in Files dialog is In files: [] When this is opened in the startup directory, Shell or an untitled editor, the entry starts as '*.py'. When this is opened in an titled editor file, the

[issue35121] Cookie domain check returns incorrect results

2019-03-16 Thread Larry Hastings
Larry Hastings added the comment: New changeset 4749f1b69000259e23b4cc6f63c542a9bdc62f1b by larryhastings (Xtreak) in branch '3.5': [3.5] bpo-35121: prefix dot in domain for proper subdomain validation (GH-10258) (#12281)

[issue23216] IDLE grep/find/replace source code needs docstrings

2019-03-16 Thread Cheryl Sabella
Change by Cheryl Sabella : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue23216] IDLE grep/find/replace source code needs docstrings

2019-03-16 Thread miss-islington
miss-islington added the comment: New changeset b34f1aa81433d60aee7bd744352b347dd650ca84 by Miss Islington (bot) in branch '3.7': bpo-23216: IDLE: Add docstrings to search modules (GH-12141) https://github.com/python/cpython/commit/b34f1aa81433d60aee7bd744352b347dd650ca84 -- nosy:

[issue34160] ElementTree not preserving attribute order

2019-03-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 06e1e688228013f411aca6309562ef80df6ce5d3 by Raymond Hettinger (Diego Rojas) in branch 'master': bpo-34160: Update news entry for XML order attributes (#12335) https://github.com/python/cpython/commit/06e1e688228013f411aca6309562ef80df6ce5d3

[issue35647] Cookie path check returns incorrect results

2019-03-16 Thread Larry Hastings
Larry Hastings added the comment: New changeset 382981b25092b5e9285f1e4894142af1e8f2ca86 by larryhastings (Xtreak) in branch '3.5': bpo-35647: Fix path check in cookiejar (#11436) (#12277) https://github.com/python/cpython/commit/382981b25092b5e9285f1e4894142af1e8f2ca86 --

[issue23216] IDLE grep/find/replace source code needs docstrings

2019-03-16 Thread miss-islington
Change by miss-islington : -- pull_requests: +12336 stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue23216] IDLE grep/find/replace source code needs docstrings

2019-03-16 Thread Cheryl Sabella
Cheryl Sabella added the comment: New changeset 0bb5e75cf8bc9b197ffb91cba6f30543ed502708 by Cheryl Sabella in branch 'master': bpo-23216: IDLE: Add docstrings to search modules (GH-12141) https://github.com/python/cpython/commit/0bb5e75cf8bc9b197ffb91cba6f30543ed502708 --

[issue35121] Cookie domain check returns incorrect results

2019-03-16 Thread Larry Hastings
Larry Hastings added the comment: New changeset 42ad4101d3ba7ca3c371dadf0f8880764c9f15fb by larryhastings (Xtreak) in branch '3.4': [3.4] bpo-35121: prefix dot in domain for proper subdomain validation (GH-10258) (#12279)

[issue35647] Cookie path check returns incorrect results

2019-03-16 Thread Larry Hastings
Larry Hastings added the comment: New changeset e260f092cd0d8975c777e73ca6fb549d59b5d452 by larryhastings (Xtreak) in branch '3.4': bpo-35647: Fix path check in cookiejar (#11436) (#12278) https://github.com/python/cpython/commit/e260f092cd0d8975c777e73ca6fb549d59b5d452 --

[issue34160] ElementTree not preserving attribute order

2019-03-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Raymond, it sounds like your end-user didn't agree that > "sorting is no longer necessary or desirable." Sorry for being unclear. The user needed to *overcome* the sorting behavior so that they could produce an ordering of their own choosing. The

[issue35493] multiprocessing.Pool._worker_handler(): use SIGCHLD to be notified on worker exit

2019-03-16 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35493] multiprocessing.Pool._worker_handler(): use SIGCHLD to be notified on worker exit

2019-03-16 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 7c994549dcffd0d9d3bb37475e6374f356e7240e by Pablo Galindo in branch 'master': bpo-35493: Use Process.sentinel instead of sleeping for polling worker status in multiprocessing.Pool (#11488)

[issue36322] Argument typo in dbm.ndbm.open

2019-03-16 Thread Marco Rougeth
Change by Marco Rougeth : -- title: Argument typo in dam.ndbm.open -> Argument typo in dbm.ndbm.open ___ Python tracker ___ ___

[issue35715] ProcessPool workers hold onto return value of last task in memory

2019-03-16 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 962bdeab191ee64459caa199209331005797ea7a by Pablo Galindo (Dave Chevell) in branch 'master': bpo-35715: Liberate return value of _process_worker (GH-11514) https://github.com/python/cpython/commit/962bdeab191ee64459caa199209331005797ea7a

[issue35715] ProcessPool workers hold onto return value of last task in memory

2019-03-16 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34160] ElementTree not preserving attribute order

2019-03-16 Thread Stefan Behnel
Stefan Behnel added the comment: :) The coolest thing about it is: it's not a hack at all. It's simply making use of the new feature in a suitable way. -- ___ Python tracker

[issue34160] ElementTree not preserving attribute order

2019-03-16 Thread Ned Batchelder
Ned Batchelder added the comment: Thanks for the suggestion. My problem has already been fixed with my own hack workaround. Your idea is a good one to leave here so that other frustrated users will have code to copy for their hack workaround. --

[issue34160] ElementTree not preserving attribute order

2019-03-16 Thread Stefan Behnel
Stefan Behnel added the comment: Something like this: def sort_attributes(root): for el in root.iter(): attrib = el.attrib if len(attrib) > 1: attribs = sorted(attrib.items()) attrib.clear() attrib.update(attribs) --

[issue34160] ElementTree not preserving attribute order

2019-03-16 Thread Stefan Behnel
Stefan Behnel added the comment: Ned, would it solve your problem to write a helper function that walks the tree and sorts the attrib dicts? That would also work in all existing CPython versions (because they already sort attributes anyway), for both ElementTree and lxml, and you wouldn't

[issue34160] ElementTree not preserving attribute order

2019-03-16 Thread Ned Batchelder
Ned Batchelder added the comment: I'm a bit mystified why people are still opposed to providing sorting control, even after people are resorting to "hack work-arounds." The (two) pull requests that provide the control are simple, easy to understand, and easy to test. Raymond, it sounds

[issue36276] Python urllib CRLF injection vulnerability

2019-03-16 Thread Senthil Kumaran
Senthil Kumaran added the comment: Marking this as duplicate of issue30458. Thanks for the discussion. -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker

[issue34160] ElementTree not preserving attribute order

2019-03-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, this issue arose from an end-user problem. She had a hard requirement to show a security clearance level as the first attribute. We did find a work around but it was hack. -- ___ Python tracker

[issue36321] Fix misspelled attribute name in namedtuple()

2019-03-16 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +12335 stage: -> patch review ___ Python tracker ___ ___

[issue36322] Argument typo in dam.ndbm.open

2019-03-16 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- nosy: +remi.lapeyre ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36322] Argument typo in dam.ndbm.open

2019-03-16 Thread Marco Rougeth
New submission from Marco Rougeth : Reading the documentation for `dbm.gnu.open` I noticed that there were a typo in the `flags` argument, it was documented as `flag`, in plural form. The same typo was present for `dbm.ndbm.open`, but in this case, `flag` makes more sense than `flags`, since

[issue36321] Fix misspelled attribute name in namedtuple()

2019-03-16 Thread Raymond Hettinger
New submission from Raymond Hettinger : The attribute name, '_fields_defaults' was misspelled and should have been ''_field_defaults'. The namedtuple documentation uses both spellings. The typing.NamedTuple class consistently uses the latter spelling. The intent was the both would be

[issue36320] typing.NamedTuple to switch from OrderedDict to regular dict

2019-03-16 Thread Raymond Hettinger
Change by Raymond Hettinger : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36320] typing.NamedTuple to switch from OrderedDict to regular dict

2019-03-16 Thread Raymond Hettinger
New submission from Raymond Hettinger : Suggestions: * Deprecate _field_types in favor of __annotations__. * Convert __annotations__ from OrderedDict to a regular dict. This will make the API cleaner. The first one will also remove a difference between NamedTuple and namedtuple(). The second

[issue36298] Lib/pyclbr.py crashes when the package spec cannot be determined by importlib

2019-03-16 Thread mental
mental added the comment: Thanks :) I've submitted a review for the patch. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue36319] Erro 0xC0000374 on windows 10

2019-03-16 Thread Андрей Казанцев
New submission from Андрей Казанцев : On windows 10 python falls after evaluate this code ``` import time import locale locale.setlocale(locale.LC_ALL, 'Russian_Russia.utf8') time.localtime(1552753806.2363703) ``` What tools would you recommend for getting more information? --

[issue36318] Adding support for setting the "disabled" attribute of loggers from logging.config.dictConfig

2019-03-16 Thread Géry
New submission from Géry : In the logging Python library, one can completely disable logging (for all levels) for a particular logger either by setting its `disabled` attribute to `True`, or by adding to it a `lambda record: False` filter, or by adding to it a `logging.NullHandler()` handler

[issue36318] Adding support for setting the "disabled" attribute of loggers from logging.config.dictConfig

2019-03-16 Thread Géry
Change by Géry : -- keywords: +patch pull_requests: +12334 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue36316] Provide SHA256 checksums for installers

2019-03-16 Thread Benjamin Peterson
Benjamin Peterson added the comment: MD5 isn't a security measure. It's provided for a quick check of integrity. -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker

[issue36127] Argument Clinic: inline parsing code for functions with keyword parameters

2019-03-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 1b0393d5b7842dcd9e933117d2d5404d15e2ad00 by Serhiy Storchaka in branch 'master': bpo-36127: Fix compiler warning in _PyArg_UnpackKeywords(). (GH-12353) https://github.com/python/cpython/commit/1b0393d5b7842dcd9e933117d2d5404d15e2ad00

[issue36315] Unable to install Python 3.7.2

2019-03-16 Thread Cheryl Sabella
Cheryl Sabella added the comment: I believe support has been removed for Windows Vista. -- nosy: +cheryl.sabella ___ Python tracker ___

[issue31062] socket.makefile does not handle line buffering

2019-03-16 Thread Vincent Michel
Vincent Michel added the comment: I ran into this issue too so I went ahead and created a pull request (https://github.com/python/cpython/pull/12370). -- nosy: +vxgmichel versions: +Python 3.7, Python 3.8 ___ Python tracker

[issue31062] socket.makefile does not handle line buffering

2019-03-16 Thread Vincent Michel
Change by Vincent Michel : -- keywords: +patch pull_requests: +12333 stage: -> patch review ___ Python tracker ___ ___

[issue36314] Pivot_Table Docstring Error

2019-03-16 Thread Steven D'Aprano
Steven D'Aprano added the comment: Prakhar, for future reference, please don't submit unnecessary screenshots to report bugs. Screen shots are hostile to the blind or visually impaired, who may be reading this with a screen-reader, and they make it impossible for us to copy your code to run

[issue10641] kill_python sometimes fails to kill processes on buildbots

2019-03-16 Thread Zachary Ware
Zachary Ware added the comment: As kill_python.exe has been removed from PCbuild/ and this hasn't been a problem in recent years, I'm going to go ahead and close the issue. -- resolution: -> out of date stage: -> resolved status: open -> closed

[issue36317] Typo in documentation of _PyObject_FastCallDict

2019-03-16 Thread Rémi Lapeyre
New submission from Rémi Lapeyre : Return result is documented as: > Return the result on success. Raise an exception on return NULL on error. I'm not absolutely sure but shouldn't that be "Raise an exception and return NULL on error."? Or should it be "Raise an exception or return NULL on

[issue36312] Invalid flag for some code page decoders

2019-03-16 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +12332 stage: -> patch review ___ Python tracker ___ ___

[issue21269] Provide args and kwargs attributes on mock call objects

2019-03-16 Thread Kumar Akshay
Kumar Akshay added the comment: ping.. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36316] Provide SHA256 checksums for installers

2019-03-16 Thread SilentGhost
Change by SilentGhost : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36316] Provide SHA256 checksums for installers

2019-03-16 Thread fazl
New submission from fazl : Python is widely used and should use more trustworthy checksums than MD5. Even the successor to MD5 (SHA-1) was considered insecure in 2017. From https://nakedsecurity.sophos.com/2017/02/23/bang-sha-1-collides-at-38762cf7f55934b34d179ae6a4c80cadccbb7f0a/ : "For

[issue36315] Unable to install Python 3.7.2

2019-03-16 Thread Sujoy
New submission from Sujoy : Getting the following error while trying to install Python 3.7.2 0x80070002- The system can not find the file specified. Log file has been attached. -- components: Installation files: Python 3.7.2 (32-bit)_log.txt messages: 338082 nosy: ecesu...@gmail.com

[issue35967] Better platform.processor support

2019-03-16 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 08.03.2019 18:50, Jason R. Coombs wrote: > >> It's also easy to bypass that by simply seeding the global cache >> for uname(): _uname_cache. >> Or you could monkey-patch the platform module >> in your utility to work around the circular reference. >

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-03-16 Thread Paul Moore
Paul Moore added the comment: The referenced PR isn't working - in the nuget package, python.props still says to exclude venv (and indeed venv is still missing). There's a PC/layout/support/props.py file that includes the offending "remove venv" line. Does that need modifying too? BTW,

[issue15822] installed python may fail incorrectly trying to rebuild lib2to3 grammar pickles

2019-03-16 Thread Bun Hin
Bun Hin added the comment: I have similar problem with python 3.7.0 or 3.7.2, how to fix my installation to get it work? please help Thanks -- nosy: +bunhin ___ Python tracker

[issue36314] Pivot_Table Docstring Error

2019-03-16 Thread SilentGhost
Change by SilentGhost : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36314] Pivot_Table Docstring Error

2019-03-16 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: By np I hope you mean numpy which is not a part of CPython and also pivot_table is part of pandas and could get a better resolution reporting on their repo. -- nosy: +xtreak ___ Python tracker

[issue36314] Pivot_Table Docstring Error

2019-03-16 Thread Prakhar
New submission from Prakhar : In the docstring of Pivot_table,np.median function should be used instead of np.mean. File attached for reference. -- files: Screenshot 2019-03-16 at 4.15.25 PM.png messages: 338077 nosy: prakharb priority: normal severity: normal status: open title:

[issue35100] urllib.parse.unquote_to_bytes: needs "escape plus" option

2019-03-16 Thread andrew-g
Change by andrew-g : -- keywords: +patch pull_requests: +12331 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-03-16 Thread Paul Moore
Change by Paul Moore : -- keywords: +patch pull_requests: +12330 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue13670] Increase test coverage for pstats.py

2019-03-16 Thread andrea crotti
andrea crotti added the comment: It has been a long time but if it's still useful sure. I can see some tests have been added in commit 863b1e4d0e95036bca4e97c1b8b2ca72c19790fb but if these are still relevant I'm happy to go ahead. -- ___ Python

[issue35773] test_bdb fails on AIX bot (regression)

2019-03-16 Thread SilentGhost
Change by SilentGhost : -- nosy: +David.Edelsohn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue3905] subprocess failing in GUI applications on Windows

2019-03-16 Thread Eryk Sun
Eryk Sun added the comment: > A current test on a Win 7 machine similar to what I did > would still be good. Python 3.8 is the last version to support Windows 7 (i.e. NT 6.1). It should get bug fixes through Spring 2021, so we have a couple more years to fix this. We should constrain

[issue9030] ctypes variable limits

2019-03-16 Thread SilentGhost
SilentGhost added the comment: Is this enhancement still relevant for ctypes or can the issue be closed as "won't fix"? -- nosy: +SilentGhost, amaury.forgeotdarc, belopolsky, meador.inge ___ Python tracker

[issue36313] error: [Errno 13] Permission denied: '/usr/local/lib/python3.7/lib2to3/Grammar3.7.2.final.0.pickle'

2019-03-16 Thread Bun Hin
Bun Hin added the comment: is there any better way to configure other than as root? because this python3.7 may be used by other user too in a more strict environment, compile it other than root (sudo) may not be allowed also. using a user may have permission issue as well right? i am

[issue16961] No regression tests for -E and individual environment vars

2019-03-16 Thread SilentGhost
SilentGhost added the comment: Nick, please re-open if you feel this issue is still relevant. -- nosy: +SilentGhost resolution: -> out of date stage: -> resolved ___ Python tracker

[issue10514] configure does not create accurate Makefile on AIX

2019-03-16 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +Michael.Felt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36312] Invalid flag for some code page decoders

2019-03-16 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36313] error: [Errno 13] Permission denied: '/usr/local/lib/python3.7/lib2to3/Grammar3.7.2.final.0.pickle'

2019-03-16 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: configure and make run as root might cause this. See also issue15317 that is a similar report for source install. -- nosy: +xtreak ___ Python tracker

[issue10514] configure does not create accurate Makefile on AIX

2019-03-16 Thread SilentGhost
Change by SilentGhost : -- nosy: +David.Edelsohn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue3905] subprocess failing in GUI applications on Windows

2019-03-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since Win 10 was released a year after Jun 2014, I must have still been on Win 7 when I saw the failure. I believe there have some patches to filenos and subprocess since, but I don't know the relation between filenos and file handles. A current test on a

[issue36313] error: [Errno 13] Permission denied: '/usr/local/lib/python3.7/lib2to3/Grammar3.7.2.final.0.pickle'

2019-03-16 Thread Bun Hin
New submission from Bun Hin : I get this error while installing some packages with pip3 inside an environment using centOS 7 with python 3.7.2 as parallel install. step to reproduce: (dependancies are installed) rm -rf /usr/local/lib/python3.7 cd /root/ wget

[issue22587] os.path.abspath(None) behavior is inconsistent between platforms

2019-03-16 Thread SilentGhost
SilentGhost added the comment: I'm closing this bug as fixed as TypeError is being raised on Linux on 3.7.2 (I think it was fixed for all platforms, due to work on path-like interface in 3.6). I don't think it's worth implementing this in 2.7 at this stage. -- nosy: +SilentGhost

[issue36312] Invalid flag for some code page decoders

2019-03-16 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : >From >https://docs.microsoft.com/en-us/windows/desktop/api/stringapiset/nf-stringapiset-multibytetowidechar: For the code pages listed below, dwFlags must be set to 0. Otherwise, the function fails with ERROR_INVALID_FLAGS. 50220 50221

[issue14934] generator objects can clear their weakrefs before being resurrected

2019-03-16 Thread SilentGhost
Change by SilentGhost : -- versions: +Python 3.8 -Python 3.4, Python 3.5, Python 3.6 ___ Python tracker ___ ___ Python-bugs-list

[issue3905] subprocess failing in GUI applications on Windows

2019-03-16 Thread Eryk Sun
Eryk Sun added the comment: > I am closing this as out of date because the problem seems to have been > fixed elsewise. This is a problem only in Windows 7, which we should have addressed years ago. It's common enough that we shouldn't leave it as just an unresolved third-party issue. I

[issue34160] ElementTree not preserving attribute order

2019-03-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is not PR 12354 a duplicate of PR 10452? -- ___ Python tracker ___ ___ Python-bugs-list

[issue14189] Documentation for some C APIs is missing clear specification of the type of reference they return

2019-03-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This may be fixed recently (see issue18085, issue32077, issue35475 etc). Just check that this is true for all reported functions. -- nosy: +serhiy.storchaka ___ Python tracker

[issue34160] ElementTree not preserving attribute order

2019-03-16 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: @scoder ok, we can close my PR and I will submit a patch to docutils. -- ___ Python tracker ___

[issue14189] Documentation for some C APIs is missing clear specification of the type of reference they return

2019-03-16 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: I would like to work on this issue. -- nosy: +matrixise versions: +Python 3.8 -Python 2.7 ___ Python tracker ___

[issue36311] Flaw in Windows code page decoder for large input

2019-03-16 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : There is a flaw in PyUnicode_DecodeCodePageStateful() (exposed as _codecs.code_page_decode() at Python level). Since MultiByteToWideChar() takes the size of the input as C int, it can not be used for decoding more than 2 GiB. Large input is split on

[issue34160] ElementTree not preserving attribute order

2019-03-16 Thread Stefan Behnel
Stefan Behnel added the comment: FWIW, I second Raymond's opposition against a new option. It's really not something that users should care about. Instead of us providing a new "sort or not" option, and people adding it (conditionally!) to their code to "fix" previous or future behaviour of

[issue4071] ntpath.abspath fails for long str paths

2019-03-16 Thread Eryk Sun
Eryk Sun added the comment: I'm closing this as a resolved issue. Python 2 is approaching end of life, and I don't see a pressing need for my suggestion in msg237007. We should be using unicode for paths in Windows anyway since its file systems are natively Unicode. -- stage: ->

[issue15286] normpath does not work with local literal paths

2019-03-16 Thread Eryk Sun
Eryk Sun added the comment: For issue 7909, ntpath.normpath was modified to return the path unchanged if it begins with exactly either ".\\" or "?\\". Normalization is not skipped, however, if the prefix has one or more forward slashes instead of all backslashes. In this case, we

[issue14934] generator objects can clear their weakrefs before being resurrected

2019-03-16 Thread Windson Yang
Windson Yang added the comment: In the docs https://docs.python.org/3/extending/newtypes.html#weak-reference-support points out: > /* Clear weakrefs first before calling any destructors */ So maybe we should also update the docs after fix this bug. Anyway, I will try to understand/fix

[issue3905] subprocess failing in GUI applications on Windows

2019-03-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: I reran test with IDLE started 4 ways: I am closing this as out of date because the problem seems to have been fixed elsewise. 3.8.0a2+ 32 bit debug python, built today, opened from python icon, then idle started with 'import idlelib.idle' 3.8.0a2 64 bit

[issue36287] Make ast.dump() not output optional default fields

2019-03-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: None can not be ignored in Constant(value=None). [] can not be ignored in Tuple(elts=[]). There is also a problem with using ast.dump() with annotate_fields=False: >>> from ast import * >>> dump(Raise(cause=Name(id='B', ctx=Load())),