[issue39545] await is not supported in f-string in 3.6

2020-02-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, await was recognized only in asynchronous functions. f-strings involve a separate parsing step for subexpressions, and it is not aware that it is in an asynchronous function. Seems the fix was unintentional, but it should documented in any case.

[issue39540] Logging docs don't address the creation of multiple loggers when a hierarchy is provided

2020-02-03 Thread Vinay Sajip
Vinay Sajip added the comment: That's an internal detail. In fact loggers aren't created for all loggers in the hierarchy - PlaceHolder objects are created internally for hierarchy ancestors, and converted to loggers if needed. The printout from your linked Stack Overflow question shows

[issue14074] argparse allows nargs>1 for positional arguments but doesn't allow metavar to be a tuple

2020-02-03 Thread Cyker Way
Cyker Way added the comment: Tuple support is documented: https://github.com/python/cpython/commit/98047eb806227f11212f6a42c242030a51964e30#diff-9c4a053d29149ba40370fb3e34faR1059 https://docs.python.org/3/library/argparse.html#metavar > Providing a tuple to ``metavar`` specifies a

[issue39549] The reprlib.Repr type should permit the “fillvalue” to be set by the user

2020-02-03 Thread Alexander Böhn
Change by Alexander Böhn : -- keywords: +patch pull_requests: +17716 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18343 ___ Python tracker ___

[issue39524] Escape sequences in doc string of ast._pad_whitespace

2020-02-03 Thread mpheath
Change by mpheath : -- pull_requests: +17714 pull_request: https://github.com/python/cpython/pull/18342 ___ Python tracker ___ ___

[issue39524] Escape sequences in doc string of ast._pad_whitespace

2020-02-03 Thread mpheath
mpheath added the comment: I have submitted 2 Pull Requests. One for 3.9 and the other for 3.8. Only way I knew was to create 2 separate branches to checkout, linked to version tags to get the correct patches for ast.py. Hope is OK. -- ___ Python

[issue39549] The reprlib.Repr type should permit the “fillvalue” to be set by the user

2020-02-03 Thread Alexander Böhn
New submission from Alexander Böhn : Currently, the `reprlib.recursive_repr(…)` decorator allows a “fillvalue” parameter to be specified by the user. This is a string value that is used as a placeholder when calculating an objects’ repr – in the case of `recursive_repr(…)` the “fillvalue”

[issue39539] Improve Keccak support in hashlib including KangarooTwelve

2020-02-03 Thread Gregory P. Smith
Gregory P. Smith added the comment: Christian added the SHA3 support so is probably best to comment on this. The way our hashlib code is structured we always use the https://github.com/python/cpython/tree/master/Modules/_sha3 implementation rather than OpenSSL for these algorithms due to

[issue39524] Escape sequences in doc string of ast._pad_whitespace

2020-02-03 Thread mpheath
Change by mpheath : -- pull_requests: +17713 pull_request: https://github.com/python/cpython/pull/18341 ___ Python tracker ___ ___

[issue39514] http://sphinx.pocoo.org/

2020-02-03 Thread Berker Peksag
Berker Peksag added the comment: My PR has been merged and I've verified that the link is now point to https://www.sphinx-doc.org/. Closing this as 'fixed'. -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python

[issue39539] Improve Keccak support in hashlib including KangarooTwelve

2020-02-03 Thread Mariatta
Mariatta added the comment: Added hashlib module experts. -- nosy: +Mariatta, christian.heimes, gregory.p.smith ___ Python tracker ___

[issue39524] Escape sequences in doc string of ast._pad_whitespace

2020-02-03 Thread mpheath
Change by mpheath : -- keywords: +patch pull_requests: +17712 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/18340 ___ Python tracker

[issue39548] Request fails when 'WWW-Authenticate' header for Digest Authentication does not contain 'qop'

2020-02-03 Thread Stephen Balousek
Change by Stephen Balousek : -- keywords: +patch pull_requests: +17711 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18338 ___ Python tracker

[issue39548] Request fails when 'WWW-Authenticate' header for Digest Authentication does not contain 'qop'

2020-02-03 Thread Stephen Balousek
New submission from Stephen Balousek : When making an HTTP request using an opener with an attached HTTPDigestAuthHandler, the request causes a crash when the returned 'WWW-Authenticate' header for the 'Digest' domain does not return the optional 'qop' value. Response headers:

[issue39547] hmac.new() default parameter change not mentioned in changelog

2020-02-03 Thread Will Bond
New submission from Will Bond : When running code on Python 3.8 that previous was running 3.3, I ran into the issue that the default value for the digestmod parameter of hmac.new() has been changed to backwards-incompatible value. I generally would have expected such a break to show up in

[issue39280] Don't allow datetime parsing to accept non-Ascii digits

2020-02-03 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8912] `make patchcheck` should check the whitespace of .c/.h files

2020-02-03 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: -mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19683] test_minidom has many empty tests

2020-02-03 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: -mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39108] random needs doc for "gauss" versus "normalvariate"

2020-02-03 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: -mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8627] Unchecked PyErr_WarnPy3k return value in Objects/typeobject.c

2020-02-03 Thread Mark Dickinson
Mark Dickinson added the comment: Let's close. This was only ever an issue in Python 2. -- resolution: -> out of date stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue39088] test_concurrent_futures crashed with python.core core dump on AMD64 FreeBSD Shared 3.x

2020-02-03 Thread Kyle Stanley
Kyle Stanley added the comment: In GH-18228, an unrelated failure in test_concurrent_futures occurred (same as the one above): Ran 354 tests in 496.802s OK (skipped=35) Warning -- files was modified by test_multiprocessing_spawn Before: [] After: ['python.core'] Full test logs:

[issue26967] argparse: allow_abbrev=False stops -vv from working

2020-02-03 Thread Kyle Meyer
Change by Kyle Meyer : -- pull_requests: +17710 pull_request: https://github.com/python/cpython/pull/18337 ___ Python tracker ___

[issue39546] argparse: allow_abbrev=False is ignored for alternative prefix characters

2020-02-03 Thread Kyle Meyer
Change by Kyle Meyer : -- keywords: +patch pull_requests: +17709 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18337 ___ Python tracker ___

[issue39546] argparse: allow_abbrev=False is ignored for alternative prefix characters

2020-02-03 Thread Kyle Meyer
New submission from Kyle Meyer : As of Python v3.8.0 (specifically commit b1e4d1b603), specifying `allow_abbrev=False` does not disable abbreviation for prefix characters other than '-'. --8<---cut here---start->8--- import argparse parser =

[issue10572] Move test sub-packages to Lib/test

2020-02-03 Thread Brett Cannon
Brett Cannon added the comment: Someone probably needs to go through the stdlib to find which modules have tests outside of Lib/test/, and then figure out if there is still any justification for that. If there isn't then they should be moved to Lib/test. --

[issue39527] Update doc of argparse.rst

2020-02-03 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue39480] referendum reference is needlessly annoying

2020-02-03 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue38628] Issue with ctypes in AIX

2020-02-03 Thread David Edelsohn
David Edelsohn added the comment: How was Python compiled? With GCC? Which version of GCC? I assume that Python was built as a 64 bit application based on libc loading the 64 bit member shr_64.o. Does the testcase work in 32 bit mode? Does the testcase work if Python is compiled by XLC?

[issue39502] test_zipfile fails on AIX due to time.localtime

2020-02-03 Thread David Edelsohn
David Edelsohn added the comment: I think that Victor means AIX kernel and filesystems are not prepared for Y2038. -- nosy: +David.Edelsohn ___ Python tracker ___

[issue39545] await is not supported in f-string in 3.6

2020-02-03 Thread Mariatta
Mariatta added the comment: The answer I got from Yury before was: "Before 3.7 async and await were not proper keywords, so the interpreter did not recognize them in some contexts." -- nosy: +Mariatta ___ Python tracker

[issue39480] referendum reference is needlessly annoying

2020-02-03 Thread Mark Dickinson
Mark Dickinson added the comment: Speaking as a British, UK-based Python contributor who's unhappy with recent political developments in the UK, I say let's close this. -- nosy: +mark.dickinson ___ Python tracker

[issue39544] Pathlib PureWindowsPath sorting incorrect (is not natural sort)

2020-02-03 Thread Eryk Sun
Change by Eryk Sun : -- components: +Library (Lib), Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___

[issue39544] Pathlib PureWindowsPath sorting incorrect (is not natural sort)

2020-02-03 Thread Eryk Sun
Eryk Sun added the comment: > Right now PureWindowsPath does probably something like NTFS sorting, > but NTFS is not Windows and from a function called 'WindowsPath' I > expect a path that would be given in Windows Explorer. NTFS stores the names in a directory as a btree that's sorted

[issue30825] csv.Sniffer does not detect lineterminator

2020-02-03 Thread Max Vorobev
Change by Max Vorobev : -- keywords: +patch pull_requests: +17708 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/18336 ___ Python tracker

[issue39484] time_ns() and time() cannot be compared on windows

2020-02-03 Thread Vincent Michel
Change by Vincent Michel : Added file: https://bugs.python.org/file48883/comparing_conversions.py ___ Python tracker ___ ___

[issue39484] time_ns() and time() cannot be compared on windows

2020-02-03 Thread Vincent Michel
Vincent Michel added the comment: @mark.dickinson > To be clear: the following is flawed as an accuracy test, because the > *multiplication* by 1e9 introduces additional error. Interesting, I completely missed that! But did you notice that the full conversion might still perform better

[issue39400] pydoc: Use of MANPAGER variable is incorrect

2020-02-03 Thread Ronan Pigott
Ronan Pigott added the comment: Any reason a change like this could not be added to a 3.8.x release? Like I pointed out in the PR, pydoc's use of MANPAGER is undocumented and, as far as I'm concerned, incorrect. A lot of software references idiosyncratic _PAGER vars, but pydoc reuses

[issue39480] referendum reference is needlessly annoying

2020-02-03 Thread Aurora
Change by Aurora : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39545] await is not supported in f-string in 3.6

2020-02-03 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The following code is compiled in 3.7, but is a syntax error in 3.6. async def f(x): f"{await x}" I have not found mentioning this change in What's New, and it looks grammatically correct. It looks as a bug in 3.6. It may be too later to fix it in

[issue39484] time_ns() and time() cannot be compared on windows

2020-02-03 Thread Mark Dickinson
Mark Dickinson added the comment: To be clear: the following is flawed as an accuracy test, because the *multiplication* by 1e9 introduces additional error. # int/int: int.__truediv__(int) >>> abs(t - int(t/10**9 * 1e9)) 172 Try this instead, which uses the Fractions module to get the exact

[issue39544] Pathlib PureWindowsPath sorting incorrect (is not natural sort)

2020-02-03 Thread tegavu
New submission from tegavu : Wrong behavior in pathlib.PureWindowsPath - sorting does not use natural sort. Everything below was written based on W7x64 & Python 3.8.1 (tags/v3.8.1:1b293b6, Dec 18 2019, 23:11:46) [MSC v.1916 64 bit (AMD64)] on win32. The documentation

[issue39484] time_ns() and time() cannot be compared on windows

2020-02-03 Thread Mark Dickinson
Mark Dickinson added the comment: > int/int is less accurate than float/float for t=1580301619906185300 No, int/int is more accurate here. If a and b are ints, a / b is always correctly rounded on an IEEE 754 system, while float(a) / float(b) will not necessarily give a correctly rounded

[issue38558] Data Structures documentation out of sync with new Walrus operator

2020-02-03 Thread miss-islington
miss-islington added the comment: New changeset d01ae1b22330992eadc7b2a0842ead544f7e507d by Miss Islington (bot) in branch '3.8': bpo-38558: Link to further docs from walrus operator mention in tutorial (GH-16973)

[issue38558] Data Structures documentation out of sync with new Walrus operator

2020-02-03 Thread miss-islington
Change by miss-islington : -- pull_requests: +17707 pull_request: https://github.com/python/cpython/pull/18335 ___ Python tracker ___

[issue38558] Data Structures documentation out of sync with new Walrus operator

2020-02-03 Thread Julien Palard
Julien Palard added the comment: New changeset 5807efd4c396d5718325e21f5a14e324a77ff77c by Adorilson Bezerra in branch 'master': bpo-38558: Link to further docs from walrus operator mention in tutorial (GH-16973)

[issue29988] with statements are not ensuring that __exit__ is called if __enter__ succeeds

2020-02-03 Thread Mark Shannon
Change by Mark Shannon : -- keywords: +patch pull_requests: +17706 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/18334 ___ Python tracker

[issue39543] Py_DECREF(): use inlined _Py_Dealloc()

2020-02-03 Thread STINNER Victor
New submission from STINNER Victor : In bpo-35059, I converted Py_DECREF() macro to a static inline function (commit 2aaf0c12041bcaadd7f2cc5a54450eefd7a6ff12). Then in bpo-35134, I moved _Py_Dealloc() macro to the newly created Include/cpython/object.h header file (commit

[issue39542] Cleanup object.h header

2020-02-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset 49932fec62c616ec88da52642339d83ae719e924 by Victor Stinner in branch 'master': bpo-39542: Simplify _Py_NewReference() (GH-18332) https://github.com/python/cpython/commit/49932fec62c616ec88da52642339d83ae719e924 --

[issue39484] time_ns() and time() cannot be compared on windows

2020-02-03 Thread Vincent Michel
Vincent Michel added the comment: @serhiy.storchaka > 1580301619906185300/10**9 is more accurate than 1580301619906185300/1e9. I don't know exactly what `F` represents in your example but here is what I get: >>> r = 1580301619906185300 >>>

[issue39484] time_ns() and time() cannot be compared on windows

2020-02-03 Thread STINNER Victor
STINNER Victor added the comment: I compare nanoseconds (int): >>> t=1580301619906185300 # int/int: int.__truediv__(int) >>> abs(t - int(t/10**9 * 1e9)) 172 # int/float: float.__rtruediv__(int) >>> abs(t - int(t/1e9 * 1e9)) 84 # float/int: float.__truediv__(int) >>> abs(t -

[issue39542] Cleanup object.h header

2020-02-03 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +17705 pull_request: https://github.com/python/cpython/pull/18332 ___ Python tracker ___

[issue39542] Cleanup object.h header

2020-02-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4b524161a0f9d50d782e739a3708434ffd4e94a5 by Victor Stinner in branch 'master': bpo-39542: Move object.h debug functions to internal C API (GH-18331) https://github.com/python/cpython/commit/4b524161a0f9d50d782e739a3708434ffd4e94a5 --

[issue39484] time_ns() and time() cannot be compared on windows

2020-02-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: >>> 1580301619906185300/10**9 1580301619.9061854 >>> 1580301619906185300/1e9 1580301619.9061852 >>> float(F(1580301619906185300/10**9) * 10**9 - 1580301619906185300) 88.5650634765625 >>> float(F(1580301619906185300/1e9) * 10**9 - 1580301619906185300)

[issue39542] Cleanup object.h header

2020-02-03 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +17704 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18331 ___ Python tracker ___

[issue39540] Logging docs don't address the creation of multiple loggers when a hierarchy is provided

2020-02-03 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39542] Cleanup object.h header

2020-02-03 Thread STINNER Victor
New submission from STINNER Victor : In bpo-39489, I removed the COUNT_ALLOCS special build. The object.h header can now be cleaned up to simplify the code. -- components: C API messages: 361305 nosy: vstinner priority: normal severity: normal status: open title: Cleanup object.h

[issue35108] inspect.getmembers passes exceptions from object's properties through

2020-02-03 Thread Tom Augspurger
Change by Tom Augspurger : -- keywords: +patch pull_requests: +17703 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18330 ___ Python tracker ___

[issue30256] Adding a SyncManager Queue proxy to a SyncManager dict or Namespace proxy raises an exception

2020-02-03 Thread Philipp Rehs
Change by Philipp Rehs : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39484] time_ns() and time() cannot be compared on windows

2020-02-03 Thread STINNER Victor
STINNER Victor added the comment: I'm not sure which kind of problem you are trying to solve here. time.time() does lose precision because it uses the float type. Comparing time.time() and time.time_ns() tricky because of that. If you care of nanosecond precision, avoid float whenever

[issue39502] test_zipfile fails on AIX due to time.localtime

2020-02-03 Thread Michael Felt
Michael Felt added the comment: Not sure I understand what bug I am supposed to report. I apologize if my message https://bugs.python.org/issue39502#msg361116. I assume your comment re: time.localtime(91301504) comes from this bit of the test message (mtime_ns=913015040). Assuming

[issue34972] json dump silently converts int keys to string

2020-02-03 Thread Facundo Batista
Facundo Batista added the comment: I understand (and agree with) the merits of automatically converting the int to str when dumping to a string. However, this result really surprised me: >>> json.dumps({1:2, "1":3}) '{"1": 2, "1": 3}' Is it a valid JSON? -- nosy: +facundobatista

[issue39484] time_ns() and time() cannot be compared on windows

2020-02-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: But they are not single-digit integers. And more, int(float(a)) != a. -- ___ Python tracker ___

[issue39484] time_ns() and time() cannot be compared on windows

2020-02-03 Thread Larry Hastings
Larry Hastings added the comment: > The problem is that there is a double rounding in > time = float(time_ns) / 1e9 > 1. When convert time_ns to float. > 2. When divide it by 1e9. I'm pretty sure that in Python 3, if you say c = a / b and a and b are both "single-digit" integers, it

[issue39541] distutils: Remove bdist_wininst (Windows .exe installers) in favor of bdist_wheel (.whl)

2020-02-03 Thread Paul Ganssle
Paul Ganssle added the comment: Per my reasoning in the discourse thread, I disagree with this move. I think that this should be handled in setuptools, which is where we tend to handle breaking changes or even enhancements to distutils. If we do this in setuptools, we'll get a backport of

[issue36034] Suprise halt caused by -Werror=implicit-function-declaration in ./Modules/posixmodule.c

2020-02-03 Thread Michael Felt
Michael Felt added the comment: closing. Will open a new issue with a correct description of the issue at hand. The problem is related to 64-bit mode (which was not mentioned before) and minor() major() macro definitions. -- stage: -> resolved status: open -> closed

[issue39489] Remove COUNT_ALLOCS special build

2020-02-03 Thread STINNER Victor
STINNER Victor added the comment: Done, I remove COUNT_ALLOCS macro and all associated code. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue39484] time_ns() and time() cannot be compared on windows

2020-02-03 Thread Vincent Michel
Vincent Michel added the comment: > The problem is that there is a double rounding in [...] Actually `float(x) / 1e9` and `x / 1e9` seems to produce the same results: ``` import time import itertools now = time.time_ns()

[issue32542] memory not freed, aka memory leak continues...

2020-02-03 Thread Michael Felt
Michael Felt added the comment: Not an issue in 3.9, so, closing: "not relevant" -- stage: -> resolved status: open -> closed ___ Python tracker ___

[issue39489] Remove COUNT_ALLOCS special build

2020-02-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset c6e5c1123bac6cbb4c85265155af5349dcea522e by Victor Stinner in branch 'master': bpo-39489: Remove COUNT_ALLOCS special build (GH-18259) https://github.com/python/cpython/commit/c6e5c1123bac6cbb4c85265155af5349dcea522e --

[issue28290] BETA report: Python-3.6 build messages to stderr: AIX and "not GCC"

2020-02-03 Thread Michael Felt
Michael Felt added the comment: Closing, as not longer relevant. -- stage: -> resolved status: open -> closed ___ Python tracker ___

[issue39484] time_ns() and time() cannot be compared on windows

2020-02-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The problem is that there is a double rounding in time = float(time_ns) / 1e9 1. When convert time_ns to float. 2. When divide it by 1e9. The formula time = time_ns / 10**9 may be more accurate. -- nosy: +lemburg, mark.dickinson,

[issue39541] distutils: Remove bdist_wininst (Windows .exe installers) in favor of bdist_wheel (.whl)

2020-02-03 Thread STINNER Victor
STINNER Victor added the comment: I created a topic in the Packaging discourse to announce this removal: https://discuss.python.org/t/remove-distutils-bdist-wininst-command/3115 I plan to merge my PR at the end of the week, except if someone speaks out to request to keep the deprecated

[issue39541] distutils: Remove bdist_wininst (Windows .exe installers) in favor of bdist_wheel (.whl)

2020-02-03 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +17702 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18329 ___ Python tracker ___

[issue39541] distutils: Remove bdist_wininst (Windows .exe installers) in favor of bdist_wheel (.whl)

2020-02-03 Thread STINNER Victor
New submission from STINNER Victor : The distutils bdist_wininst has been deprecated in Python 3.8 by bpo-37481 in favor of bdist_wheel. See "Deprecate bdist_wininst" discussion: https://discuss.python.org/t/deprecate-bdist-wininst/1929 I now propose to remove it from the Python code base to

[issue39524] Escape sequences in doc string of ast._pad_whitespace

2020-02-03 Thread Amir Mohamadi
Amir Mohamadi added the comment: But in both cases the 'Output' will contain '\\': "Replace all chars except '\\f\\t' in a line with spaces." -- nosy: +Amir ___ Python tracker

[issue39491] Import PEP 593 (Flexible function and variable annotations) support already implemented in typing_extensions

2020-02-03 Thread Jakub Stasiak
Change by Jakub Stasiak : -- nosy: +levkivskyi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39491] Import PEP 593 (Flexible function and variable annotations) support already implemented in typing_extensions

2020-02-03 Thread Jakub Stasiak
Change by Jakub Stasiak : -- nosy: +gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39484] time_ns() and time() cannot be compared on windows

2020-02-03 Thread STINNER Victor
STINNER Victor added the comment: Yeah, time.time(), time.monotonic() and time.perf_counter() can benefit of a note suggestion to use time.time_ns(), time.monotonic_ns() or time.perf_counter_ns() to better precision. -- ___ Python tracker

[issue39540] Logging docs don't address the creation of multiple loggers when a hierarchy is provided

2020-02-03 Thread Alexander McFarlane
New submission from Alexander McFarlane : If `logger_name` is a hierarchy format (e.g. `logger_name = 'parent.child'`) and the logger name `'parent'` has not been created, the function call `logging.getLogger(logger_name)` will create all loggers in the hierarchy (in this instance two

[issue39484] time_ns() and time() cannot be compared on windows

2020-02-03 Thread Vincent Michel
Vincent Michel added the comment: Thanks for your answers, that was very informative! > >>> a/10**9 > 1580301619.9061854 > >>> a/1e9 > 1580301619.9061852 > > I'm not sure which one is "correct". Originally, I thought `a/10**9` was more precise because I ran into the following case while

[issue39484] time_ns() and time() cannot be compared on windows

2020-02-03 Thread Vincent Michel
Change by Vincent Michel : Added file: https://bugs.python.org/file48881/comparing_errors.py ___ Python tracker ___ ___ Python-bugs-list

[issue39087] [C API] No efficient C API to get UTF-8 string from unicode object.

2020-02-03 Thread Inada Naoki
Inada Naoki added the comment: Attached patch is the benchmark function I used in previous post. -- Added file: https://bugs.python.org/file48879/bench-asutf8.patch ___ Python tracker

[issue39087] [C API] No efficient C API to get UTF-8 string from unicode object.

2020-02-03 Thread Inada Naoki
Inada Naoki added the comment: I am still not sure about we should add new API only for avoiding cache. * PyUnicode_AsUTF8String : When we need bytes or want to avoid cache. * PyUnicode_AsUTF8AndSize : When we need C string, and cache is acceptable. With PR-18327, PyUnicode_AsUTF8AndSize

[issue19237] Proposal : LCM function to complement GCD

2020-02-03 Thread Mark Dickinson
Mark Dickinson added the comment: See renewed discussion in #39479, which may lead to math.lcm being added in 3.9. -- ___ Python tracker ___

[issue39536] Datetime strftime: %Y exports years < 1000 with 3 digits instead of 4 on Linux

2020-02-03 Thread Mark Dickinson
Change by Mark Dickinson : -- superseder: -> datetime.strftime("%Y") not consistent for years < 1000 ___ Python tracker ___ ___

[issue39536] Datetime strftime: %Y exports years < 1000 with 3 digits instead of 4 on Linux

2020-02-03 Thread Mark Dickinson
Mark Dickinson added the comment: > if you disagree with the resolution of that issue Sorry, my mistake. That issue is still open. -- ___ Python tracker ___

[issue39536] Datetime strftime: %Y exports years < 1000 with 3 digits instead of 4 on Linux

2020-02-03 Thread Mark Dickinson
Mark Dickinson added the comment: Closing as a duplicate of #13305. Feel free to add to the discussion there if you disagree with the resolution of that issue. -- nosy: +mark.dickinson resolution: -> duplicate stage: -> resolved status: open -> closed

[issue39087] [C API] No efficient C API to get UTF-8 string from unicode object.

2020-02-03 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +17701 pull_request: https://github.com/python/cpython/pull/18327 ___ Python tracker ___

[issue17659] no way to determine First weekday (based on locale)

2020-02-03 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +17700 pull_request: https://github.com/python/cpython/pull/18327 ___ Python tracker ___

[issue39537] Change line number table format

2020-02-03 Thread Mark Shannon
Change by Mark Shannon : -- keywords: +patch pull_requests: +17699 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18326 ___ Python tracker ___

[issue39539] Improve Keccak support in hashlib including KangarooTwelve

2020-02-03 Thread Gilles Van Assche
New submission from Gilles Van Assche : Dear all, I think it would be nice if hashlib would include the support of Keccak with a chosen suffix, as well as the fast instance KangarooTwelve (K12). 1) Currently, hashlib's interface for Keccak only supports the 6 instances of FIPS 202 (SHA3-*

[issue39538] SystemError when set Element.attrib to non-dict

2020-02-03 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The C implementation raises a SystemError after setting Element.attrib to non-dict. >>> from xml.etree import ElementTree as ET >>> e = ET.Element('a') >>> e.attrib = 1 >>> e.get('x') Traceback (most recent call last): File "", line 1, in SystemError:

[issue37404] asyncio sock_recv blocks on ssl sockets.

2020-02-03 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue38691] [easy] importlib: PYTHONCASEOK should be ignored when using python3 -E

2020-02-03 Thread Dong-hee Na
Dong-hee Na added the comment: @Ido Michael I left review comments for you :) Thanks for the contribution. -- nosy: +corona10 ___ Python tracker ___

[issue39537] Change line number table format

2020-02-03 Thread Mark Shannon
Change by Mark Shannon : -- nosy: +nedbat, pablogsal, skip.montanaro -Mark.Shannon ___ Python tracker ___ ___ Python-bugs-list

[issue39537] Change line number table format

2020-02-03 Thread Mark Shannon
New submission from Mark Shannon : The current line number table format has two issues that need to be addressed. 1. There is no way to express that a bytecode does not have have a line number. The `END_ASYNC_FOR` bytecode, bytecodes for cleaning up the variable used to store exceptions in

[issue36051] Drop the GIL during large bytes.join operations?

2020-02-03 Thread Inada Naoki
Change by Inada Naoki : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue36051] Drop the GIL during large bytes.join operations?

2020-02-03 Thread Inada Naoki
Inada Naoki added the comment: New changeset 869c0c99b94ff9527acc1ca060164ab3d1bdcc53 by Inada Naoki in branch 'master': bpo-36051: Fix compiler warning. (GH-18325) https://github.com/python/cpython/commit/869c0c99b94ff9527acc1ca060164ab3d1bdcc53 --

[issue39535] multiprocessing.Process file descriptor resource leak

2020-02-03 Thread Robert Pierce
Robert Pierce added the comment: It appears as if the problem is the sentinel FIFO opened by (for example) multiprocessing.popen_fork.Popen._launch(). It registers a finalization class to close the sentinel on garbage collection. Instead, it should be closed in poll() or wait() when the

[issue39536] Datetime strftime: %Y exports years < 1000 with 3 digits instead of 4 on Linux

2020-02-03 Thread pmp-p
Change by pmp-p : -- nosy: +pmpp ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

  1   2   >