[issue40085] Argument parsing option c should accept int between -128 to 255 ?

2020-04-05 Thread Dennis Sweeney
Dennis Sweeney added the comment: I think this question is about types in c, apart from any Python c API. According to https://docs.python.org/3/c-api/arg.html#numbers, the specifier is c: (bytes or bytearray of length 1) -> [char] so you should be able to write to a c variable of type

[issue39148] DatagramProtocol + IPv6 does not work with ProactorEventLoop

2020-04-05 Thread Kjell Braden
Kjell Braden added the comment: PR is up. Any chance we get this reviewed for inclusion in 3.9.0a6 / 3.8.3rc1? -- ___ Python tracker ___ __

[issue40177] Python Language Reference Documentation

2020-04-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +18747 pull_request: https://github.com/python/cpython/pull/19384 ___ Python tracker ___ __

[issue40177] Python Language Reference Documentation

2020-04-05 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +18746 pull_request: https://github.com/python/cpython/pull/19383 ___ Python tracker _

[issue40194] Document special meanings of a single underscore

2020-04-05 Thread cripitone
New submission from cripitone : The official documentation doesn't seem to cover the various meanings/uses of the single underscore "_", in different contexts (not just the interactive interpreter). See for example: https://www.datacamp.com/community/tutorials/role-underscore-python ---

[issue40177] Python Language Reference Documentation

2020-04-05 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks for the report! Now fixed. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: enhancement -> behavior ___ Python tracker __

[issue40195] multiprocessing.Queue.put can fail silently due to pickle errors

2020-04-05 Thread Sander Land
New submission from Sander Land : The multiprocessing Queue uses a thread to pickle and send the object after a call to put. When pickling fails (e.g. due to recursion depth) the exception is not returned to the caller to .put but instead dumped on the screen, leaving any multiprocessing pool

[issue40194] Document special meanings of a single underscore

2020-04-05 Thread SilentGhost
SilentGhost added the comment: Various meanings are documented in appropriate sections, ignoring and use in loops is a misunderstanding on part of the author - using underscore there is convention and doesn't have special meaning on the language level. -- nosy: +SilentGhost resolutio

[issue40194] Document special meanings of a single underscore

2020-04-05 Thread cripitone
cripitone added the comment: > Various meanings are documented in appropriate sections Uhm, you're right, though some of them are not that easy to find using the searchbar in the doc website, for example the meaning of "_" in https://docs.python.org/3.7/tutorial/introduction.html Maybe it w

[issue40174] HAVE_CLOCK_GETTIME not repected in pytime.c

2020-04-05 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +18748 pull_request: https://github.com/python/cpython/pull/19385 ___ Python tracker ___ ___

[issue22598] Add mUTF-7 codec (UTF-7 modified for IMAP)

2020-04-05 Thread Juris Kaminskis
Juris Kaminskis added the comment: Would be good to have solution for this out-of-box in Python3. Any news? -- nosy: +juris ___ Python tracker ___

[issue40196] symtable.Symbol.is_local() can be True for global symbols

2020-04-05 Thread Wolfgang Stöcher
New submission from Wolfgang Stöcher : Consider this function: def f(): global e e = 1 When inspecting symbols with symtable, symbol 'e' will be global and local, whereas is_local() should return False. See the attached file for reproducing. It will output to stdout: symbol '

[issue40196] symtable.Symbol.is_local() can be True for global symbols

2020-04-05 Thread Wolfgang Stöcher
Wolfgang Stöcher added the comment: see https://stackoverflow.com/a/61040435/1725562 for a proposed fix -- type: -> behavior ___ Python tracker ___ ___

[issue40174] HAVE_CLOCK_GETTIME not repected in pytime.c

2020-04-05 Thread Jérôme
Jérôme added the comment: Yes, I get your meaning, and I totally agree with it, I was wondering what was the best way to do it, stay close to the cause, which would allow to more easily go along with changes, or put it in the configure file and warn the user as soon as possible... It was kind

[issue40174] HAVE_CLOCK_GETTIME not repected in pytime.c

2020-04-05 Thread pmp-p
Change by pmp-p : -- nosy: +pmpp ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mail

[issue40197] Add microseconds to timing table in What's new python 3.8

2020-04-05 Thread Morten Hels
New submission from Morten Hels : It is not immediately obvious to me what the units are in the timing table here: https://docs.python.org/3/whatsnew/3.8.html#demos-and-tools Clicking through to https://bugs.python.org/issue35884 shows that the unit is microseconds, but I think it would be hel

[issue39511] [subinterpreters] Per-interpreter singletons (None, True, False, etc.)

2020-04-05 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue40197] Add microseconds to timing table in What's new python 3.8

2020-04-05 Thread STINNER Victor
Change by STINNER Victor : -- assignee: docs@python -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mail

[issue40197] Add microseconds to timing table in What's new python 3.8

2020-04-05 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +18749 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19386 ___ Python tracker __

[issue40197] Add nanoseconds to timing table in What's new python 3.8

2020-04-05 Thread Raymond Hettinger
Change by Raymond Hettinger : -- title: Add microseconds to timing table in What's new python 3.8 -> Add nanoseconds to timing table in What's new python 3.8 ___ Python tracker __

[issue40198] macOS Python builds from Python.org ignore DYLD_LIBRARY_PATH due to hardened runtime

2020-04-05 Thread dgelessus
New submission from dgelessus : Recent Python.org versions of Python for macOS no longer respect the DYLD_LIBRARY_PATH environment variable for extending the dynamic library search path, and the envvar is completely invisible to the Python process. This is the case since at least Python 3.7.7

[issue40199] Invalid escape sequence DeprecationWarnings don't trigger by default

2020-04-05 Thread Michal Laboš
New submission from Michal Laboš : The current warning filter seems to filter out the compile time DeprecationWarnings that get triggered on invalid escape sequences: import warnings compile("'\d'", "", "eval") warnings.resetwarnings() compile("'\d'", "", "eval") results in one :1: Deprecati

[issue40199] Invalid escape sequence DeprecationWarnings don't trigger by default

2020-04-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I get it printed two times. Actually I get it printed four times: two time when compile the test script (use r"'\d'" or "'\\d'" to get rid of them), and other two times when call compile() inside a script. $ ./python issue40199.py issue40199.py:3: Deprec

[issue40200] count 0 crash

2020-04-05 Thread Talha Demirsoy
New submission from Talha Demirsoy : Dear Python Developers, I made a program that finds how many 0's at the end of the number But when I enter number has 23 zero its okay but when I enter number has 24 zero its crash -- components: Build files: howmany0.py messages: 365827 nosy: tal

[issue40200] count 0 crash

2020-04-05 Thread Furkan Onder
Furkan Onder added the comment: Can i see the program code? -- nosy: +furkanonder ___ Python tracker ___ ___ Python-bugs-list maili

[issue40200] count 0 crash

2020-04-05 Thread Talha Demirsoy
Talha Demirsoy added the comment: I shared but I write again. sayac = 0 fakto = 100 while True: if fakto % 10 == 0: sayac += 1 fakto = fakto / 10 elif fakto % 10 > 0: break print(sayac) -- ___ Pyt

[issue40200] count 0 crash

2020-04-05 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi Talha, you are using floating points division which convert its operands to floats so it loose precision for large numbers. The syntax for integer division in Python 3 is // and it will not change the type of its operands. Notice the difference below: >>> 1

[issue40200] count 0 crash

2020-04-05 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: Closing issue since it is not a bug, at least a bug of python itself. Feel free to post any questions to python-list mailing list. https://mail.python.org/mailman/listinfo/python-list -- nosy: +BTaskaya resolution: -> not a bug stage: -> resolved

[issue40199] Invalid escape sequence DeprecationWarnings don't trigger by default

2020-04-05 Thread Numerlor
Numerlor added the comment: In what environment was that ran in? The issue seems to exist in all the different environments that are easily available to me (win7, win10, linux under docker and on repl.it) -- ___ Python tracker

[issue40197] Add nanoseconds to timing table in What's new python 3.8

2020-04-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset c63629e7c09da80a6b7d0253d04a9b3f57f88eff by Raymond Hettinger in branch 'master': bpo-40197: Better describe the benchmark results table (GH-19386) https://github.com/python/cpython/commit/c63629e7c09da80a6b7d0253d04a9b3f57f88eff --

[issue40197] Add nanoseconds to timing table in What's new python 3.8

2020-04-05 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +18750 pull_request: https://github.com/python/cpython/pull/19387 ___ Python tracker _

[issue40201] Last digit count error

2020-04-05 Thread Talha Demirsoy
New submission from Talha Demirsoy : When I try to enter 10^23 or less its gives me ture but when I tried 10^24 and more its give me just 1 -- files: howmany0.py messages: 365834 nosy: talha.demirsoy priority: normal severity: normal status: open title: Last digit count error type: cr

[issue40201] Last digit count error

2020-04-05 Thread Talha Demirsoy
Talha Demirsoy added the comment: sorry delete pls -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue40201] Last digit count error

2020-04-05 Thread Josh Rosenberg
Josh Rosenberg added the comment: Your script is using "true" division with / , (that produces potentially inaccurate float results) not floor division with // , (which gets int results). When the inputs vastly exceed the integer representational capabilities of floats (52-53 bits, where 10

[issue40201] Last digit count error

2020-04-05 Thread Talha Demirsoy
Change by Talha Demirsoy : Removed file: https://bugs.python.org/file49039/howmany0.py ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue40197] Add nanoseconds to timing table in What's new python 3.8

2020-04-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +18751 pull_request: https://github.com/python/cpython/pull/19388 ___ Python tracker ___ __

[issue39414] Multiprocessing resolving object as None

2020-04-05 Thread Talley Lambert
Talley Lambert added the comment: FYI, this bug was an issue with dask: https://github.com/dask/dask/issues/5806 and has been fixed in dask as of (I believe) v2.11.0 -- nosy: +Talley Lambert ___ Python tracker _

[issue40198] macOS Python builds from Python.org ignore DYLD_LIBRARY_PATH due to hardened runtime

2020-04-05 Thread Ned Deily
Change by Ned Deily : -- assignee: -> ned.deily versions: +Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue40147] Move checking for duplicated keywords to the compiler

2020-04-05 Thread Zackery Spytz
Change by Zackery Spytz : -- nosy: +ZackerySpytz nosy_count: 2.0 -> 3.0 pull_requests: +18752 pull_request: https://github.com/python/cpython/pull/19389 ___ Python tracker ___

[issue34972] json dump silently converts int keys to string

2020-04-05 Thread Stub
Stub added the comment: Similarly, keys can be lost entirely: >>> json.dumps({1:2, 1.0:3}) '{"1": 3}' -- nosy: +Stub2 ___ Python tracker ___ _

[issue40197] Add nanoseconds to timing table in What's new python 3.8

2020-04-05 Thread Morten Hels
Morten Hels added the comment: It turns out I was wrong about microseconds. The output in https://bugs.python.org/issue35884 does show microseconds, but the output is before this commit https://github.com/python/cpython/commit/9da3583e78603a81b1839e17a420079f734a75b0 that fixes a typo (that

[issue34972] json dump silently converts int keys to string

2020-04-05 Thread Stuart Bishop
Stuart Bishop added the comment: (sorry, my example is normal Python behavior. {1:1, 1.0:2} == {1:2} , {1.0:1} == {1:1} ) -- nosy: +stub ___ Python tracker ___ __

[issue40147] Move checking for duplicated keywords to the compiler

2020-04-05 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 08050e959e6c40839cd2c9e5f6a4fd1513e3d605 by Zackery Spytz in branch 'master': bpo-40147: Fix a compiler warning on Windows in Python/compile.c (GH-19389) https://github.com/python/cpython/commit/08050e959e6c40839cd2c9e5f6a4fd1513e3d605