[issue37929] IDLE: OK sometimes fails to close configdialog

2019-08-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +15172 pull_request: https://github.com/python/cpython/pull/15485 ___ Python tracker ___

[issue37929] IDLE: OK sometimes fails to close configdialog

2019-08-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +15171 pull_request: https://github.com/python/cpython/pull/15484 ___ Python tracker ___

[issue37929] IDLE: OK sometimes fails to close configdialog

2019-08-24 Thread Tal Einat
Tal Einat added the comment: New changeset d4b4c00b57d24f6ee2cf3a96213406bb09953df3 by Tal Einat in branch 'master': bpo-37929: IDLE: avoid Squeezer-related config dialog crashes (GH-15452) https://github.com/python/cpython/commit/d4b4c00b57d24f6ee2cf3a96213406bb09953df3 --

[issue37837] add internal _PyLong_FromUnsignedChar() function

2019-08-24 Thread Sergey Fedoseev
Sergey Fedoseev added the comment: $ gcc -v 2>&1 | grep 'gcc version' gcc version 8.3.0 (Debian 8.3.0-19) using ./configure --enable-optimizations --with-lto $ python -m perf timeit -s "from collections import deque; consume = deque(maxlen=0).extend; b = bytes(2**20)" "consume(b)"

[issue37664] Update bundled pip and setuptools

2019-08-24 Thread Pradyun Gedam
Pradyun Gedam added the comment: Made the release and the PR. -- ___ Python tracker ___

[issue37664] Update bundled pip and setuptools

2019-08-24 Thread Pradyun Gedam
Change by Pradyun Gedam : -- pull_requests: +15169 pull_request: https://github.com/python/cpython/pull/15483 ___ Python tracker ___

[issue37664] Update bundled pip and setuptools

2019-08-24 Thread Pradyun Gedam
Change by Pradyun Gedam : -- pull_requests: +15168 pull_request: https://github.com/python/cpython/pull/15482 ___ Python tracker ___

[issue15542] Documentation incorrectly suggests __init__ called after direct __new__ call

2019-08-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, the underlying code for this in Objects/typeobject.c::type_new(). -- assignee: docs@python -> rhettinger nosy: +rhettinger ___ Python tracker

[issue14619] Enhanced variable substitution for databases

2019-08-24 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue19419] Use abc.ABC in the collections ABC

2019-08-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: This was done a long time ago. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___

[issue37914] class timedelta, support the method hours and minutes in field accessors

2019-08-24 Thread hongweipeng
Change by hongweipeng : -- keywords: +patch pull_requests: +15167 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15481 ___ Python tracker ___

[issue37942] Generate correct error check for PyFloat_AsDouble

2019-08-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 21161d73d979012ec3b7247261178b3aa1555486 by Raymond Hettinger in branch '3.8': [3.8] bpo-37942: Improve argument clinic float converter (GH-15470) (GH-15480) https://github.com/python/cpython/commit/21161d73d979012ec3b7247261178b3aa1555486

[issue37942] Generate correct error check for PyFloat_AsDouble

2019-08-24 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue23061] Update pep8 to specify explicitly 'module level' imports at top of file

2019-08-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: I concur that this should be closed. -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___

[issue37942] Generate correct error check for PyFloat_AsDouble

2019-08-24 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +15166 pull_request: https://github.com/python/cpython/pull/15480 ___ Python tracker ___

[issue23061] Update pep8 to specify explicitly 'module level' imports at top of file

2019-08-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: At least some idlelib imports are delayed to avoid circular import errors, as described by Nick. The patch adds 'Module level' before 'imports'. Pro: techinically correct as only module level imports can be put at the top. Com: might be seen as giving too

[issue37942] Generate correct error check for PyFloat_AsDouble

2019-08-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset aef9ad82f7f667cd001a7112d3bc636e918626f7 by Raymond Hettinger in branch 'master': bpo-37942: Improve argument clinic float converter (GH-15470) https://github.com/python/cpython/commit/aef9ad82f7f667cd001a7112d3bc636e918626f7 --

[issue20806] os.times document points to wrong section of non-Linux manual

2019-08-24 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: I opened a PR for this. @david please review. -- nosy: +nanjekyejoannah stage: patch review -> ___ Python tracker ___

[issue20806] os.times document points to wrong section of non-Linux manual

2019-08-24 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- keywords: +patch pull_requests: +15165 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15479 ___ Python tracker

[issue13341] Incorrect documentation for "u" PyArg_Parse format unit

2019-08-24 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: This is has taken years but am curious, are we allowed to patch Python 2 given its EOL is almost due. -- nosy: +nanjekyejoannah ___ Python tracker

[issue23061] Update pep8 to specify explicitly 'module level' imports at top of file

2019-08-24 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: Since this is a PEP related issue, it should be moved to the PEP Github repository here : https://github.com/python/peps . If it still exists. -- nosy: +nanjekyejoannah ___ Python tracker

[issue16308] Undocumented (?) behaviour change in argparse from 3.2.3 to 3.3.0

2019-08-24 Thread paul j3
paul j3 added the comment: https://bugs.python.org/issue26510 https://bugs.python.org/issue33109 There was some flip/flop over whether required should be true by default or not - the current behavior is False, (the 3.3.0) The lasting change since this issue in 2012 is that `add_subparsers`

[issue18236] str.isspace should use the Unicode White_Space property

2019-08-24 Thread Greg Price
Greg Price added the comment: > I've gone and made a patch for this change Update: * The preparatory changes in #37760 are now almost all merged; GH-15265 is the one piece remaining, and I'd be grateful for a review. It's a generally straightforward and boring change that converts the main

[issue37636] Deprecate slicing and ordering operations on sys.version

2019-08-24 Thread Anthony Sottile
Anthony Sottile added the comment: I threw together a flake8 plugin which checks for these usage patterns: https://github.com/asottile/flake8-2020 | Code | Description | ||-| | YTT101 |

[issue16308] Undocumented (?) behaviour change in argparse from 3.2.3 to 3.3.0

2019-08-24 Thread Ashwin Ramaswami
Ashwin Ramaswami added the comment: What's the status of this? Was paul.j3's patch ever reviewed? -- nosy: +epicfaace ___ Python tracker ___

[issue9253] argparse: optional subparsers

2019-08-24 Thread Ashwin Ramaswami
Change by Ashwin Ramaswami : -- nosy: +epicfaace ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15542] Documentation incorrectly suggests __init__ called after direct __new__ call

2019-08-24 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: Since this has taken long on the tracker, I just opened a PR with proposed changes from Aaron. -- nosy: +nanjekyejoannah ___ Python tracker

[issue37837] add internal _PyLong_FromUnsignedChar() function

2019-08-24 Thread Greg Price
Greg Price added the comment: > Is there a particular reason to specifically call PyLong_FromSize_t? Seems > like PyLong_FromLong is the natural default (and what we default to in the > rest of the code), and it's what this ends up calling anyway. Ah I see, the patch is meant to go on top

[issue15542] Documentation incorrectly suggests __init__ called after direct __new__ call

2019-08-24 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- keywords: +patch pull_requests: +15164 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/15478 ___ Python tracker

[issue37943] mimetypes.guess_extension() doesn’t get JPG right

2019-08-24 Thread Jens Troeger
Jens Troeger added the comment: Oops, forgot… >>> mimetypes.guess_extension("image/jpeg") # Expected ".jpg" or ".jpeg" as per referenced MDN. I personally would go with ".jpg" because that's the more common file name extension. -- ___ Python

[issue37943] mimetypes.guess_extension() doesn’t get JPG right

2019-08-24 Thread Jens Troeger
New submission from Jens Troeger : I think this one’s quite easy to reproduce: Python 3.7.4 (default, Jul 11 2019, 01:08:00) [Clang 10.0.1 (clang-1001.0.46.4)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import mimetypes >>>

[issue37837] add internal _PyLong_FromUnsignedChar() function

2019-08-24 Thread Greg Price
Greg Price added the comment: Oh also: * What compiler, and what compilation flags, are you using in your benchmarking? That seems relevant :) -- ___ Python tracker ___

[issue37837] add internal _PyLong_FromUnsignedChar() function

2019-08-24 Thread Greg Price
Greg Price added the comment: Hmm, I'm a bit confused because: * Your patch at GH-15251 replaces a number of calls to PyLong_FromLong with calls to the new _PyLong_FromUnsignedChar. * That function, in turn, just calls PyLong_FromSize_t. * And that function begins: PyObject *

[issue31956] Add start and stop parameters to the array.index()

2019-08-24 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: There is a pending PR here : https://github.com/python/cpython/pull/4435 by phaqui. @phaqui do you want to finish your PR ? -- nosy: +nanjekyejoannah ___ Python tracker

[issue19072] classmethod doesn't honour descriptor protocol of wrapped callable

2019-08-24 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue19072] classmethod doesn't honour descriptor protocol of wrapped callable

2019-08-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 805f8f9afea116c5d4d000570e3d02ae84502f43 by Raymond Hettinger (Berker Peksag) in branch 'master': bpo-19072: Make @classmethod support chained decorators (GH-8405)

[issue37798] Add C fastpath for statistics.NormalDist.inv_cdf()

2019-08-24 Thread Dong-hee Na
Dong-hee Na added the comment: Thank you for the mentoring of this work. It was great experience for me! -- ___ Python tracker ___

[issue18153] python imaplib - error 'unexpected response'

2019-08-24 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- title: python imaplib - error 'unexpected repsonse' -> python imaplib - error 'unexpected response' ___ Python tracker ___

[issue37812] Make implicit returns explicit in longobject.c (in CHECK_SMALL_INT)

2019-08-24 Thread Greg Price
Greg Price added the comment: > May I suggest directing your efforts towards fixing known bugs or > implementing requested features. Well, I would certainly be grateful for a review on my fix to #18236. ;-) There's also a small docs bug at GH-15301. I do think there's significant value in

[issue34679] asyncio.add_signal_handler call fails if not on main thread

2019-08-24 Thread Kyle Stanley
Change by Kyle Stanley : -- keywords: +needs review -patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34679] asyncio.add_signal_handler call fails if not on main thread

2019-08-24 Thread Kyle Stanley
Change by Kyle Stanley : -- keywords: +patch pull_requests: +15163 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15477 ___ Python tracker ___

[issue34679] asyncio.add_signal_handler call fails if not on main thread

2019-08-24 Thread Kyle Stanley
Kyle Stanley added the comment: > How do we identify whether or not set_wakeup_fd() is being called from a > non-main thread? Never mind, I think I found the answer to my own question and tested a patch locally, I'll open a PR. -- ___ Python

[issue37903] IDLE Shell sidebar.

2019-08-24 Thread Tal Einat
Tal Einat added the comment: See PR GH-15474 with an implementation. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37903] IDLE Shell sidebar.

2019-08-24 Thread Tal Einat
Change by Tal Einat : -- keywords: +patch pull_requests: +15162 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/15474 ___ Python tracker

[issue34679] asyncio.add_signal_handler call fails if not on main thread

2019-08-24 Thread Kyle Stanley
Kyle Stanley added the comment: > Skipping this call for non-main thread in proactor implementation makes sense. How do we identify whether or not set_wakeup_fd() is being called from a non-main thread? -- nosy: +aeros167 ___ Python tracker

[issue37812] Make implicit returns explicit in longobject.c (in CHECK_SMALL_INT)

2019-08-24 Thread Kyle Stanley
Kyle Stanley added the comment: > May I suggest directing your efforts towards fixing known bugs or > implementing requested features. It isn't our goal to create more work for > one another There frequently is value in improving code readability, as it can improve maintainability in the

[issue37942] Generate correct error check for PyFloat_AsDouble

2019-08-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: Note, the argument clinic is already generating code like this for return values in "class double_return_converter". For example, _return_value = _statistics__normal_dist_inv_cdf_impl(module, p, mu, sigma); if ((_return_value == -1.0) &&

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

2019-08-24 Thread Batuhan
Batuhan added the comment: This bug is fixed in 3.9 (probably in 3.8 too) -- nosy: +BTaskaya ___ Python tracker ___ ___

[issue37942] Generate correct error check for PyFloat_AsDouble

2019-08-24 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +15161 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15470 ___ Python tracker

[issue37942] Generate correct error check for PyFloat_AsDouble

2019-08-24 Thread Raymond Hettinger
New submission from Raymond Hettinger : The API for PyFloat_AsDouble() returns -1.0 to indicate an error. PyErr_Occurred() should only be called if there is a -1.0 return code. This is the normal practice for those calls and it is a bit faster because it avoids unnecessary external call.

[issue14112] tutorial intro talks of "shallow copy" concept without explanation

2019-08-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks Terry. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue9634] Add timeout parameter to Queue.join()

2019-08-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: It's been 4 1/2 years since last activity. Marking as closed again due to lack of interest and due to the rarity of need. Also we know that a person can already customize join() via a subclass. -- resolution: -> out of date stage: needs patch

[issue14112] tutorial intro talks of "shallow copy" concept without explanation

2019-08-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset a8424940b4873791fc178a9f19a7bf1779a6cf42 by Raymond Hettinger (Miss Islington (bot)) in branch '3.8': bpo-14112: Allow beginners to explore shallowness in greater depth ;-) (GH-15465) (GH-15469)

[issue24726] OrderedDict has strange behaviour when dict.__setitem__ is used.

2019-08-24 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: rhettinger -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14112] tutorial intro talks of "shallow copy" concept without explanation

2019-08-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +15160 pull_request: https://github.com/python/cpython/pull/15469 ___ Python tracker ___

[issue14112] tutorial intro talks of "shallow copy" concept without explanation

2019-08-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 69ee87e99cfe0b79389cffa92d126af868baf353 by Raymond Hettinger in branch 'master': bpo-14112: Allow beginners to explore shallowness in greater depth ;-) (GH-15465)

[issue37798] Add C fastpath for statistics.NormalDist.inv_cdf()

2019-08-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset d5a66bc56f68d0f7cc3470722a31d7f731754af6 by Raymond Hettinger (Miss Islington (bot)) in branch '3.8': bpo-37798: Test both Python and C versions in test_statistics.py (GH-15453) (GH-15467)

[issue37798] Add C fastpath for statistics.NormalDist.inv_cdf()

2019-08-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thank you again. This was nice work. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue35235] Access violation on alloc in Windows x86-64 python, pymalloc_alloc

2019-08-24 Thread Victor Milovanov
Victor Milovanov added the comment: A bit more information: pool->freeblock for the broken pool looks like this: 0xXYZ? while pool itself looks like this: 0x??XYZ000 -- ___ Python tracker

[issue37941] python -m and runpy.run_module set different __name__ by default

2019-08-24 Thread Julian Berman
New submission from Julian Berman : This seems brutally simple, to the point where I'm concerned I'm missing something (or have seen this issue filed elsewhere but can't find it), but `python -m` and `runpy.run_module` don't set the same __name__ -- specifically `runpy.run_module`, when

[issue37939] os.path.normpath change some characters of a path into kinda 'hex number'

2019-08-24 Thread Eryk Sun
Eryk Sun added the comment: >\N{name} : named character >\U : 32-bit hexadecimal ordinal (e.g. \U0010) >\u : 16-bit hexadecimal ordinal (e.g. \u) >\xXX : 8-bit hexadecimal ordinal (e.g. \xff) >\OOO : 9-bit octal ordinal (e.g. \777) >

[issue37798] Add C fastpath for statistics.NormalDist.inv_cdf()

2019-08-24 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32118] Doc for comparison of sequences with non-orderable elements

2019-08-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 0ad85681de639792751ea53ec964d87d4ad45d71 by Raymond Hettinger (Miss Islington (bot)) in branch '3.8': bpo-32118: Simplify docs for sequence comparison (GH-15450) (#15466)

[issue32118] Doc for comparison of sequences with non-orderable elements

2019-08-24 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue37798] Add C fastpath for statistics.NormalDist.inv_cdf()

2019-08-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 8ad22a42267d4ecb1c080d420933680cc126363e by Raymond Hettinger (Dong-hee Na) in branch 'master': bpo-37798: Test both Python and C versions in test_statistics.py (GH-15453)

[issue37798] Add C fastpath for statistics.NormalDist.inv_cdf()

2019-08-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +15159 pull_request: https://github.com/python/cpython/pull/15467 ___ Python tracker ___

[issue32118] Doc for comparison of sequences with non-orderable elements

2019-08-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +15158 pull_request: https://github.com/python/cpython/pull/15466 ___ Python tracker ___

[issue32118] Doc for comparison of sequences with non-orderable elements

2019-08-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset edd21129dd304e178ca8be82ba689488dfb58276 by Raymond Hettinger in branch 'master': bpo-32118: Simplify docs for sequence comparison (GH-15450) https://github.com/python/cpython/commit/edd21129dd304e178ca8be82ba689488dfb58276 --

[issue14112] tutorial intro talks of "shallow copy" concept without explanation

2019-08-24 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +15157 pull_request: https://github.com/python/cpython/pull/15465 ___ Python tracker ___

[issue37939] os.path.normpath change some characters of a path into kinda 'hex number'

2019-08-24 Thread Eryk Sun
Eryk Sun added the comment: As Karthikeyan noted, in a regular string literal, backslash is an escape character that's used in the following escape sequences: \N{name} : named character \U : 32-bit hexadecimal ordinal (e.g. \U0010) \u : 16-bit hexadecimal

[issue37754] Consistency of Unix's shared_memory implementation with windows

2019-08-24 Thread Vinay Sharma
Vinay Sharma added the comment: Also, shm_open returns an integer file descriptor. And when this file descriptor is passed too fcntl.flock (in macOS) it throws the following error: OSError: [Errno 45] Operation not supported Whereas, the same code works fine on linux. Therefore, I have

[issue37812] Make implicit returns explicit in longobject.c (in CHECK_SMALL_INT)

2019-08-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 5e63ab05f114987478a21612d918a1c0276fe9d2 by Raymond Hettinger (Greg Price) in branch 'master': bpo-37812: Convert CHECK_SMALL_INT macro to a function so the return is explicit. (GH-15216)

[issue37812] Make implicit returns explicit in longobject.c (in CHECK_SMALL_INT)

2019-08-24 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue37754] Consistency of Unix's shared_memory implementation with windows

2019-08-24 Thread Vinay Sharma
Vinay Sharma added the comment: Hi, I just opened a PR implementing a fix very similar to your suggestions. I am using advisory locking using fcntl.flock. And I am locking on file descriptors. If you see my PR, in resource tracker I am opening a file "/dev/shm/", and trying to acquire

[issue37812] Make implicit returns explicit in longobject.c (in CHECK_SMALL_INT)

2019-08-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I noticed a very similar story in CHECK_BINOP. How about we don't do any more of these :-) I understand the desire to have an explicit return but don't think these minor aesthetics are worth it. The existing code was correct. The patches increase the

[issue37940] Add xml.tool to pretty print XML like json.tool

2019-08-24 Thread Stefan Behnel
Stefan Behnel added the comment: Sounds like a good idea to add something like this. Have a look here for some more ideas: https://github.com/lxml/lxml/blob/master/tools/xpathgrep.py ElementTree should be able to provide most of these features as well these days. -- stage: -> needs

[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2019-08-24 Thread Srinivas Nyayapati
Change by Srinivas Nyayapati : -- pull_requests: +15156 pull_request: https://github.com/python/cpython/pull/15170 ___ Python tracker ___

[issue37772] zipfile.Path.iterdir() outputs sub directories many times or not at all

2019-08-24 Thread Jason R. Coombs
Jason R. Coombs added the comment: Thanks very much shireenrao for the PR, which is now merged with Python 3.8+. I've additionally backported the fix to zipp in 0.6.0. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8

[issue37772] zipfile.Path.iterdir() outputs sub directories many times or not at all

2019-08-24 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset c410f381bf66c48d84812e19e3ba7c2878511a3e by Jason R. Coombs (Miss Islington (bot)) in branch '3.8': bpo-37772: fix zipfile.Path.iterdir() outputs (GH-15170) (#15461)

[issue37772] zipfile.Path.iterdir() outputs sub directories many times or not at all

2019-08-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +15155 pull_request: https://github.com/python/cpython/pull/15461 ___ Python tracker ___

[issue37772] zipfile.Path.iterdir() outputs sub directories many times or not at all

2019-08-24 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset a4e2991bdc993b60b6457c8a38d6e4a1fc845781 by Jason R. Coombs (shireenrao) in branch 'master': bpo-37772: fix zipfile.Path.iterdir() outputs (GH-15170) https://github.com/python/cpython/commit/a4e2991bdc993b60b6457c8a38d6e4a1fc845781

[issue37939] os.path.normpath change some characters of a path into kinda 'hex number'

2019-08-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I guess '\f' translates to \x0c and using raw string helps with this. >>> ord('\f') 12 >>> '\f' '\x0c' >>> var = "d:\stuff\morestuff\furtherdown\THEFILE.txt" >>> var 'd:\\stuff\\morestuff\x0curtherdown\\THEFILE.txt' >>> print(os.path.normpath(var))

[issue37754] Persistence of Shared Memory Segment after process exits

2019-08-24 Thread Vinay Sharma
Change by Vinay Sharma : -- keywords: +patch pull_requests: +15154 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15460 ___ Python tracker ___

[issue37940] Add xml.tool to pretty print XML like json.tool

2019-08-24 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : Now that XML has pretty print option with issue14465 would it be handy to add a command line tool pretty printer similar to json.tool? This can be written as one-liner similar to json pretty printing but I think it's a good option and having a

[issue37939] os.path.normpath change some characters of a path into kinda 'hex number'

2019-08-24 Thread Yugi
New submission from Yugi : I was trying to handle path to work on both '/' and '\' but when I tried to run the code like they said on: https://stackoverflow.com/questions/3167154/how-to-split-a-dos-path-into-its-components-in-python I have no idea why the terminal on my PC doesnt have the

[issue37797] Add name attribute to NameError

2019-08-24 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: -15147 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19867] pickletools.OpcodeInfo.code is a string

2019-08-24 Thread Batuhan
Batuhan added the comment: What should we do then, close? -- nosy: +BTaskaya ___ Python tracker ___ ___ Python-bugs-list mailing

[issue37925] --embed not included in python3.8-config usage/--help

2019-08-24 Thread Batuhan
Change by Batuhan : -- keywords: +patch pull_requests: +15153 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15458 ___ Python tracker ___

[issue37664] Update bundled pip and setuptools

2019-08-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Added lukasz since last beta is by Monday. -- nosy: +lukasz.langa ___ Python tracker ___

[issue37938] refactor PyLong_As*() functions

2019-08-24 Thread Sergey Fedoseev
New submission from Sergey Fedoseev : PyLong_As*() functions have a lot of duplicated code, creating draft PR with attempt to deduplicate them. -- components: Interpreter Core messages: 350367 nosy: sir-sigurd priority: normal severity: normal status: open title: refactor PyLong_As*()

[issue36946] Possible signed integer overflow in slice handling

2019-08-24 Thread Batuhan
Batuhan added the comment: Should we close this? -- nosy: +BTaskaya ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37938] refactor PyLong_As*() functions

2019-08-24 Thread Sergey Fedoseev
Change by Sergey Fedoseev : -- keywords: +patch pull_requests: +15152 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15457 ___ Python tracker ___

[issue37664] Update bundled pip and setuptools

2019-08-24 Thread Pradyun Gedam
Pradyun Gedam added the comment: There's a need for a pip 19.2.3, since there's a bug in wheel tagging logic hasn't been updated for CPython 3.8's new tags. I'll be cutting that release, and filing a PR for updating bundled pip & setuptools, sometime in the next 24 hours. (I just got back

[issue37830] continue and break in finally with return in try results with segfault

2019-08-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: For forbidding 'break', 'continue' and 'return' in the 'finally' clause please open a topic on Python-Dev. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue37830] continue and break in finally with return in try results with segfault

2019-08-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset ed146b52a3b6537689324e3bd9952055f9c6b43d by Serhiy Storchaka in branch '3.8': [3.8] bpo-37830: Fix compilation of break and continue in finally. (GH-15320) (GH-15456)

[issue28269] [MinGW] Can't compile Python/dynload_win.c due to static strcasecmp

2019-08-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your PR Minmin. It was decided to not backport it to 3.7. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8, Python 3.9 ___ Python tracker

[issue29535] datetime hash is deterministic in some cases

2019-08-24 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: -> docs@python components: +Documentation nosy: +docs@python resolution: -> fixed stage: patch review -> resolved status: open -> closed type: security -> behavior versions: -Python 3.5, Python 3.6, Python 3.7

[issue37908] Add an example of ArgumentParser.exit()

2019-08-24 Thread hai shi
Change by hai shi : -- nosy: +bethard ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28269] [MinGW] Can't compile Python/dynload_win.c due to static strcasecmp

2019-08-24 Thread miss-islington
miss-islington added the comment: New changeset 920ec4b7763d64b3742d7ddd339ad11cdbec62e9 by Miss Islington (bot) in branch '3.8': bpo-28269: Replace strcasecmp with system function _stricmp. (GH-13095) https://github.com/python/cpython/commit/920ec4b7763d64b3742d7ddd339ad11cdbec62e9

[issue29535] datetime hash is deterministic in some cases

2019-08-24 Thread miss-islington
miss-islington added the comment: New changeset 076d0b9f5def35aeb0f8e8aadf658dc35aace81d by Miss Islington (bot) in branch '3.8': bpo-29535: Remove promize about hash randomization of datetime objects. (GH-15269)

  1   2   >