[issue37936] gitignore file is too broad

2019-08-24 Thread Greg Price
New submission from Greg Price : There are a number of files that we track in the repo, but are nevertheless covered by `.gitignore`. This *mostly* doesn't change anything, because Git itself only cares what `.gitignore` has to say about files that aren't already tracked. But: * It affects

[issue37936] gitignore file is too broad

2019-08-24 Thread Greg Price
Change by Greg Price : -- keywords: +patch pull_requests: +15143 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15451 ___ Python tracker ___ _

[issue37935] Improve performance of pathlib.scandir()

2019-08-24 Thread SilentGhost
Change by SilentGhost : -- nosy: +pitrou stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue37929] IDLE: OK sometimes fails to close configdialog

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

[issue37929] IDLE: OK sometimes fails to close configdialog

2019-08-24 Thread Tal Einat
Tal Einat added the comment: See PR GH-15452 with a fix. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37797] Add name attribute to NameError

2019-08-24 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +15145 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15453 ___ Python tracker ___

[issue37797] Add name attribute to NameError

2019-08-24 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: -15145 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

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

2019-08-24 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +15146 pull_request: https://github.com/python/cpython/pull/15453 ___ Python tracker ___ _

[issue37797] Add name attribute to NameError

2019-08-24 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +15147 pull_request: https://github.com/python/cpython/pull/15453 ___ Python tracker ___ _

[issue37934] Docs: Clarify NotImplemented use cases

2019-08-24 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- nosy: +jdemeyer ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue29535] datetime hash is deterministic in some cases

2019-08-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset e9c90aa43144b0be1e4e393e8cb549573437a5da by Serhiy Storchaka in branch 'master': bpo-29535: Remove promize about hash randomization of datetime objects. (GH-15269) https://github.com/python/cpython/commit/e9c90aa43144b0be1e4e393e8cb549573437a

[issue29535] datetime hash is deterministic in some cases

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

[issue37937] Mention ``frame.f_trace`` in :func:`sys.settrace` docs.

2019-08-24 Thread Ram Rachum
Change by Ram Rachum : -- assignee: docs@python components: Documentation nosy: cool-RR, docs@python priority: normal pull_requests: 15149 severity: normal status: open title: Mention ``frame.f_trace`` in :func:`sys.settrace` docs. type: enhancement versions: Python 3.9 ___

[issue37884] Optimize Fraction() and statistics.mean()

2019-08-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > I'm with Raymond here; I don't think this change is desirable for the math > module, either with or without the leading underscore in the name. Could you please explain what is wrong in adding a helper function which will help to convert different types

[issue37908] Add some examples of ArgumentParser.exit()

2019-08-24 Thread hai shi
Change by hai shi : -- keywords: +patch pull_requests: +15150 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15455 ___ 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 ef61c524ddeeb56da3858b86e349e7288d68178e by Serhiy Storchaka in branch 'master': bpo-37830: Fix compilation of break and continue in finally. (GH-15320) https://github.com/python/cpython/commit/ef61c524ddeeb56da3858b86e349e7288d68178e --

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

2019-08-24 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +15151 pull_request: https://github.com/python/cpython/pull/15456 ___ Python tracker ___

[issue37908] Add some examples of ArgumentParser.exit()

2019-08-24 Thread hai shi
hai shi added the comment: Adding an example of ArgumentParser.exit(), because some user would like cathing errors manually or consider exit progress or not when an error occurs. I have not add example of ArgumentParser.error(), because i can not think some user scenarios:( --

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

2019-08-24 Thread hai shi
Change by hai shi : -- title: Add some examples of ArgumentParser.exit() -> Add an example of ArgumentParser.exit() type: -> resource usage ___ Python tracker ___ ___

[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) https://github.com/python/cpython/commit/076d0b9f5def35aeb0f8e8aadf658dc35aace8

[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 ---

[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: https://mail.python.org

[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 ___

[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

[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) https://github.com/python/cpython/commit/ed146b52a3b6537689324e3bd9952055f9

[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

[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 fr

[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 ___

[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 Unsubs

[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 ___ __

[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 ___

[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 li

[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: https://mai

[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 same

[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 co

[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 ___ ___

[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)) d

[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 --

[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 c410f381bf66c48d84812e19e3ba7c2878511a3e by Jason R. Coombs (Miss Islington (bot)) in branch '3.8': bpo-37772: fix zipfile.Path.iterdir() outputs (GH-15170) (#15461) https://github.com/python/cpython/commit/c410f381bf66c48d84812e19e3ba7c2878511

[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 __

[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 ___ __

[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

[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

[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 exclusi

[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) https://github.com/python/cpython/commit/5e63ab05f114

[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: 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 doubt

[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 ord

[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 ___ ___

[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 -- ___

[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 ___ __

[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 ___ __

[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) https://github.com/python/cpython/commit/8ad22a42267d4ecb1c080d4209336

[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 ___ ___

[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) https://github.com/python/cpython/commit/0ad85681de639792751ea53ec964d

[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: htt

[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) >

[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 given

[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 ___

[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 _

[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) https://github.com/python/cpython/commit/d5a66bc56f6

[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) https://github.com/python/cpython/commit/69ee87e99cfe0b79389cffa92d126af868ba

[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 ___ __

[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: htt

[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) https://github.com/python/cpython/commit/a8424

[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 -

[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. -

[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 __

[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 ___ ___ Python-bugs

[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) && PyErr_Occ

[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 l

[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

[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 ___

[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 Un

[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 trac

[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
Change by Kyle Stanley : -- keywords: +needs review -patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[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 m

[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 ___

[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 ___ ___

[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) https://github.com/python/cpython/commit/805f8f9afea116c5d4d000570e3d02ae84502

[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 _

[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 * PyLong_FromSi

[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 ___ ___

[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 >>> mimetypes.guess_ext

[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 tr

[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

[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 of

[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 __

[issue9253] argparse: optional subparsers

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

[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 ___ __

[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 | `sys.version

[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

[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`

[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

[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 ___

  1   2   >