[issue36701] module 'urllib' has no attribute 'request'

2019-04-23 Thread Senthil Kumaran
Senthil Kumaran added the comment: I vaguely recollect the reason for this. It was done with the translation of Python2 code (which had urllib, urllib2, and urlparse, robotparser) etc, combined into a single package. We wanted to keep the import as urllib.request and urllib.response, and

[issue35824] http.cookies._CookiePattern modifying regular expressions

2019-04-23 Thread SilentGhost
Change by SilentGhost : -- nosy: +martin.panter, xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36701] module 'urllib' has no attribute 'request'

2019-04-23 Thread Piyush
New submission from Piyush : The current way to use one of `urllib.request` APIs is like this: ``` import urllib.request urllib.request.urlretrieve ``` Can we change this to: ``` import urllib urllib.request.urlretrieve ``` This will require adding 1 line at

[issue36695] Change (regression?) in v3.8.0a3 doctest output after capturing the stderr output from a raised warning

2019-04-23 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18564] Integer overflow in the socket function parsing a Bluetooth address

2019-04-23 Thread STINNER Victor
STINNER Victor added the comment: Hum, maybe I'm just confused by "integer overflow". To me, "integer overflow" means that an operation goes out of the bounds of a C integer type. But here, the problem is more than the parser accepts invalid Bluetooth addresses? Please use a better title

[issue36546] Add quantiles() to the statistics module

2019-04-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: As requested, I've made the API easily extendable to handle alternative methods if those are deemed necessary. Also, it is easy to change the default. That said, it is my hope that these two methods and the current default get kept. They have several

[issue30465] FormattedValue expressions have wrong lineno and col_offset information

2019-04-23 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12847 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36018] Add a Normal Distribution class to the statistics module

2019-04-23 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +12849 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27645] Supporting native backup facility of SQLite

2019-04-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8a9a6b443c57e47e9d10ed7775479aada4dac719 by Victor Stinner in branch '3.7': [3.7] bpo-9566: Fix compiler warnings on Windows (GH-12920) https://github.com/python/cpython/commit/8a9a6b443c57e47e9d10ed7775479aada4dac719 --

[issue36702] test_dtrace failed

2019-04-23 Thread sayno996
New submission from sayno996 : I install Python 3.7.3 on CentOS 7.6. However, when I run "make test", I got a failure on test_dtrace as: Ran 8 tests in 4.752s FAILED (failures=6, skipped=2) test test_dtrace failed test_dtrace failed == Tests result: FAILURE == 1 test failed:

[issue36546] Add quantiles() to the statistics module

2019-04-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 9013ccf6d8037f6ae78145a42d194141cb10d332 by Raymond Hettinger in branch 'master': bpo-36546: Add statistics.quantiles() (#12710) https://github.com/python/cpython/commit/9013ccf6d8037f6ae78145a42d194141cb10d332 --

[issue34155] email.utils.parseaddr mistakenly parse an email

2019-04-23 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34155] email.utils.parseaddr mistakenly parse an email

2019-04-23 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36701] module 'urllib' has no attribute 'request'

2019-04-23 Thread Berker Peksag
Berker Peksag added the comment: What about other packages in the stdlib? For example, you can see the same behavior in the email package: >>> import email >>> email.message.EmailMessage() Traceback (most recent call last): File "", line 1, in AttributeError: module 'email' has no

[issue27645] Supporting native backup facility of SQLite

2019-04-23 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12848 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36703] [Easy][Windows] test_subprocess: test_close_fds_with_stdio() has a race condition

2019-04-23 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9566] Compilation warnings under x64 Windows

2019-04-23 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12846 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9566] Compilation warnings under x64 Windows

2019-04-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8a9a6b443c57e47e9d10ed7775479aada4dac719 by Victor Stinner in branch '3.7': [3.7] bpo-9566: Fix compiler warnings on Windows (GH-12920) https://github.com/python/cpython/commit/8a9a6b443c57e47e9d10ed7775479aada4dac719 --

[issue35904] Add statistics.fmean(seq)

2019-04-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 7280048690244e73b13f4f68b96c244bcb5434e8 by Raymond Hettinger in branch 'master': bpo-35904: Add missing fmean() entry to the summary table (GH-12919) https://github.com/python/cpython/commit/7280048690244e73b13f4f68b96c244bcb5434e8

[issue36635] Add _testinternalcapi module

2019-04-23 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12850 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36702] test_dtrace failed

2019-04-23 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13968] Support recursive globs

2019-04-23 Thread Marc
Marc added the comment: Please review one word documentation change at https://github.com/python/cpython/pull/12918 to clarify that recursive glob ** follows symbolic links to directories. -- nosy: +marc-hb pull_requests: +12844 ___ Python

[issue36703] [Easy][Windows] test_subprocess: test_close_fds_with_stdio() has a race condition

2019-04-23 Thread STINNER Victor
New submission from STINNER Victor : test_subprocess: test_close_fds_with_stdio() pass when run alone, but fail when run in parallel. I tagged the issue as "easy" for new contributors to Python. If someone is interested to work on this issue, please contact me in private.

[issue35904] Add statistics.fmean(seq)

2019-04-23 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +12845 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30465] FormattedValue expressions have wrong lineno and col_offset information

2019-04-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8a9a6b443c57e47e9d10ed7775479aada4dac719 by Victor Stinner in branch '3.7': [3.7] bpo-9566: Fix compiler warnings on Windows (GH-12920) https://github.com/python/cpython/commit/8a9a6b443c57e47e9d10ed7775479aada4dac719 -- nosy:

[issue36018] Add a Normal Distribution class to the statistics module

2019-04-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset fb8c7d53326d137785ca311bfc48c8284da46770 by Raymond Hettinger in branch 'master': bpo-36018: Make "seed" into a keyword only argument (GH-12921) https://github.com/python/cpython/commit/fb8c7d53326d137785ca311bfc48c8284da46770 --

[issue36696] possible multiple regressions on AIX

2019-04-23 Thread STINNER Victor
STINNER Victor added the comment: > Should I open PR - or is this better fixed in the original PR? What keeps > things cleaner? I wrote PR 12922. I really hate -Ddefine syntax, but it seems like we have to use it just for AIX :-( I tried to use "-D Py_BUILD_CORE_..." in Modules/Setup, but

[issue36696] possible multiple regressions on AIX

2019-04-23 Thread Michael Felt
Michael Felt added the comment: On 22/04/2019 14:15, Inada Naoki wrote: > Inada Naoki added the comment: > > Maybe, XLC doesn't support -D name. -Dname should be used instead. Excellent hint: the diff between bot run 1013 and run 1014 reveals: diff --git a/setup.py b/setup.py index

[issue36697] inspect.getclosurevars returns wrong globals dict

2019-04-23 Thread Noitul
Noitul added the comment: Sorry for the misleading snippet above. And how about this one: >>> import inspect >>> a = 0 >>> b = 1 >>> c = 2 >>> def abc(): >>> return a.b

[issue36659] distutils UnixCCompiler: Remove standard library path from rpath

2019-04-23 Thread STINNER Victor
STINNER Victor added the comment: > ... Now, I'm confused. Is PR 12876 useless? Was distutils already fixed? My test was wrong, objdump sometimes uses "RUNPATH", sometimes "RPATH": $ objdump -a -x build/lib.linux-x86_64-*/lxml/etree.cpython-*-x86_64-linux-gnu.so|grep -i -E 'rpath|RUNPATH'

[issue31525] require sqlite3_prepare_v2

2019-04-23 Thread Charles P
Change by Charles P : -- pull_requests: +12852 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36635] Add _testinternalcapi module

2019-04-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset 574913479f26b5ff48827861bce68281be01d16e by Victor Stinner in branch 'master': bpo-36635, bpo-36696: Fix setup.py on AIX (GH-12922) https://github.com/python/cpython/commit/574913479f26b5ff48827861bce68281be01d16e --

[issue36696] possible multiple regressions on AIX

2019-04-23 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +12851 stage: -> patch review ___ Python tracker ___ ___

[issue36701] module 'urllib' has no attribute 'request'

2019-04-23 Thread Martin Panter
Martin Panter added the comment: The “urllib” package also contains “urllib.parse”, which is a lot more lightweight than “urllib.request”. In a quick experiment, importing “urllib.request” is more than 2 times slower than importing “urllib.parse” on its own. And importing “urllib” by itself

[issue36697] inspect.getclosurevars returns wrong globals dict

2019-04-23 Thread Eric V. Smith
Eric V. Smith added the comment: I think this is correct. The documentation says globals is "the function’s module globals". I suggest closing this as not a bug. https://docs.python.org/3/library/inspect.html#inspect.getclosurevars -- nosy: +eric.smith status: open -> pending type:

[issue36697] inspect.getclosurevars returns wrong globals dict

2019-04-23 Thread Eric V. Smith
Eric V. Smith added the comment: That is interesting. See these examples. I'm starting a new interpreter each time: >>> import inspect >>> def abc(): pass ... >>> inspect.getclosurevars(abc) ClosureVars(nonlocals={}, globals={}, builtins={}, unbound=set()) >>> >>> import inspect >>> def

[issue36696] possible multiple regressions on AIX

2019-04-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset 574913479f26b5ff48827861bce68281be01d16e by Victor Stinner in branch 'master': bpo-36635, bpo-36696: Fix setup.py on AIX (GH-12922) https://github.com/python/cpython/commit/574913479f26b5ff48827861bce68281be01d16e --

[issue36696] possible multiple regressions on AIX

2019-04-23 Thread STINNER Victor
Change by STINNER Victor : -- components: +Build resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8 ___ Python tracker ___

[issue36659] distutils UnixCCompiler: Remove standard library path from rpath

2019-04-23 Thread STINNER Victor
STINNER Victor added the comment: I'm also confused by the diversity of ways to declare runtime paths. I found these linker flags related to rpath: * -rpath=PATH * -rpath-link=PATH * -R FILENAME, --just-symbols=FILENAME: "Read symbol names and their addresses from FILENAME, (...). For

[issue36659] distutils UnixCCompiler: Remove standard library path from rpath

2019-04-23 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-445902 which modified distutils to use "-Wl,-R " rather than "-R ". -- ___ Python tracker ___

[issue36624] cleanup the stdlib and tests with regard to sys.platform usage

2019-04-23 Thread Michael Felt
Michael Felt added the comment: On 22/04/2019 21:14, Steve Dower wrote: > Steve Dower added the comment: > > I like this, though I don't like using the platform module here and would > prefer sys.platform to be canonical (until there's a need to differentiate - > e.g. some tests coming for

[issue36659] distutils UnixCCompiler: Remove standard library path from rpath

2019-04-23 Thread STINNER Victor
STINNER Victor added the comment: My understanding of Fedora 1-rpath.patch is that it ignores -rpath PATH option passed to the setup.py bdist command if PATH is equal to Python sysconfig LIBDIR variable. So it impacts how third party C extensions are built. On my Fedora, LIBDIR is set

[issue36659] distutils UnixCCompiler: Remove standard library path from rpath

2019-04-23 Thread Kubilay Kocak
Change by Kubilay Kocak : -- nosy: +koobs ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36704] logging.FileHandler currently hardcodes errors='strict'

2019-04-23 Thread Alan Jenkins
New submission from Alan Jenkins : ## Problem description ``` import os import logging logging.basicConfig(filename='example.log',level=logging.DEBUG) for name in os.listdir(): logging.error('Hypothetical syntax error at line 1 of file: {}'.format(name)) ``` The above program is

[issue18372] _Pickler_New() doesn't call PyObject_GC_Track(self)

2019-04-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +12853 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36659] distutils UnixCCompiler: Remove standard library path from rpath

2019-04-23 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- nosy: +cstratak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36701] module 'urllib' has no attribute 'request'

2019-04-23 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36705] Unexpected Behaviour of pprint.pprint

2019-04-23 Thread Gavin D'souza
Gavin D'souza added the comment: if pprint is called without parameters, it returns a TypeError >>> pprint() Traceback (most recent call last): File "", line 1, in TypeError: pprint() missing 1 required positional argument: 'object' it would be beneficial however to return an empty string

[issue36659] distutils UnixCCompiler: Remove standard library path from rpath

2019-04-23 Thread Florian Weimer
Florian Weimer added the comment: Note that linking with -Wl,-rpath,/usr/lib64 (even if it's redundant) disables part of the ld.so cache on Linux. Instead, paths under /usr/lib64 are probed explicitly. This can add quite a few failing open/openat system calls to the process startup.

[issue36659] distutils UnixCCompiler: Remove standard library path from rpath

2019-04-23 Thread STINNER Victor
STINNER Victor added the comment: I'm confused between RPATH and RUNPATH which are *different*. When I configure Python using LDFLAGS="-Wl,-rpath=/opt/py38/lib/" (Python configure and Makefile), Python, libpython, and dynamic libraries ELF of C extensions get a RPATH. When I use setup.py

[issue18372] _Pickler_New() doesn't call PyObject_GC_Track(self)

2019-04-23 Thread Inada Naoki
Inada Naoki added the comment: New changeset 359bd4f61b9e1493081f4f67882554247b53926a by Inada Naoki (Zackery Spytz) in branch 'master': bpo-18372: Add missing PyObject_GC_Track() calls in the pickle module (GH-8505)

[issue36705] Unexpected Behaviour of pprint.pprint

2019-04-23 Thread Gavin D'souza
New submission from Gavin D'souza : For a simple string input, pprint would be expected to return an output similar to print. However, the functionality differs ### Code: import time from pprint import pprint start = time.time() time.sleep(0.5) object_made = time.time() time.sleep(0.5) done

[issue36706] Python script on startup stucks at import

2019-04-23 Thread serge g
New submission from serge g : I am not sure if it is python's issue (correct me if this is wrong place for report). But sometimes (probably every 3-4 attempt) when I run script, interpreter just stucks for some time (0.5-3 minutes) and then actually runs the script normally. To figure out

[issue36705] Unexpected Behaviour of pprint.pprint

2019-04-23 Thread Eric V. Smith
Eric V. Smith added the comment: pprint.pprint is not designed to be a drop-in replacement for print. At this point, we cannot break existing code to change how pprint works. I suggest you make a pprint.pprint wrapper that does what you want, or maybe subclass pprint.PrettyPrinter.

[issue36659] distutils UnixCCompiler: Remove standard library path from rpath

2019-04-23 Thread STINNER Victor
STINNER Victor added the comment: > Since 2010, the Fedora packages of Python are using a patch on distutils > UnixCCompiler to remove standard library path from rpath. The patch has been > written by David Malcolm for Python 2.6.4: >

[issue36659] distutils UnixCCompiler: Remove standard library path from rpath

2019-04-23 Thread STINNER Victor
STINNER Victor added the comment: In 2015, Robert Kuska proposed to remove the patch from Fedora: "This check should be covered by rpmlint which MUST be run during the review so I propose to drop this patch." https://bugzilla.redhat.com/show_bug.cgi?id=1287566#c1 But Toshio Ernie Kuratomi

[issue36704] logging.FileHandler currently hardcodes errors='strict'

2019-04-23 Thread SilentGhost
Change by SilentGhost : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18372] _Pickler_New() doesn't call PyObject_GC_Track(self)

2019-04-23 Thread miss-islington
miss-islington added the comment: New changeset c0f6f5370325459cadd90010530b1d300dce514e by Miss Islington (bot) in branch '3.7': bpo-18372: Add missing PyObject_GC_Track() calls in the pickle module (GH-8505) https://github.com/python/cpython/commit/c0f6f5370325459cadd90010530b1d300dce514e

[issue18372] _Pickler_New() doesn't call PyObject_GC_Track(self)

2019-04-23 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36705] Unexpected Behaviour of pprint.pprint

2019-04-23 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: Eric nailed it; pprint was not designed as a replacement for print, and was never intended to serve that purpose. Rejecting as out of scope. -- resolution: -> rejected stage: -> resolved status: open -> closed

[issue36659] distutils UnixCCompiler: Remove standard library path from rpath

2019-04-23 Thread Florian Weimer
Change by Florian Weimer : -- nosy: +fweimer ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36704] logging.FileHandler currently hardcodes errors='strict'

2019-04-23 Thread Alan Jenkins
Alan Jenkins added the comment: > [**] dnf developers did not appear to work on the correctness issue they > found. It might be a bug in gettext. Nitpick: sorry, I read too quickly. dnf *did* fix the specific correctness issue, as well as setting raiseExceptions = false. It is explained

[issue36706] Python script on startup stucks at import

2019-04-23 Thread STINNER Victor
STINNER Victor added the comment: It seems like you are using Linux. Please using strace to trace system calls to see where Python is stuck: strace -tt -o trace python3 script.py Once you reproduce the issue using strace, attach created "trace" file to this issue. "-tt" adds timestamp with

[issue36635] Add _testinternalcapi module

2019-04-23 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36701] module 'urllib' has no attribute 'request'

2019-04-23 Thread Brett Cannon
Brett Cannon added the comment: I'm -1 on pulling `request` up to implicitly be part of the `urllib` namespace without an import. `os.path` is the only exception that I know of in the stdlib and that's historical (it predates packages existing in the language). Otherwise the proposed change

[issue36695] Change (regression?) in v3.8.0a3 doctest output after capturing the stderr output from a raised warning

2019-04-23 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I did some more debugging. doctest patches linecache which does some regex matching when filename is of the form [examplenumber]> to return example source. Before the commit seems absolute path was present in warning and hence this regex didn't

[issue36624] cleanup the stdlib and tests with regard to sys.platform usage

2019-04-23 Thread Steve Dower
Steve Dower added the comment: > Being 'runtime' rather than 'buildtime' seemed more precise - tests that > are not meant to be build-time dependent use run-time status while > leaving sys.platform for concerns that are directly related to builds This is a good point - perhaps we need both?

[issue22107] tempfile module misinterprets access denied error on Windows

2019-04-23 Thread Billy McCulloch
Billy McCulloch added the comment: I stand by the patch file I previously submitted on 2016-05-04. A more detailed analysis / description of my reasoning follows. Change 1 in _get_default_tempdir: A PermissionError is thrown on Windows if you attempt to create a file whose filename matches

[issue36700] base64 has old references that should be updated

2019-04-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See issue16995. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36658] Py_Initialze() throws error 'unable to load the file system encoding' when calling Py_SetPath with a path to a directory

2019-04-23 Thread RimacV
RimacV added the comment: As you said, I just had to set all paths, when using Py_SetPath. >From my side this issue could be closed. Thank you! :-) -- components: +Library (Lib) -Windows ___ Python tracker

[issue36659] distutils UnixCCompiler: Remove standard library path from rpath

2019-04-23 Thread STINNER Victor
STINNER Victor added the comment: To come back to RPATH vs RUNPATH: these 2 are very different in term of priorities in search (see other comments). distutils uses an heuristic to opt-in for RUNPATH using GNU ld --enable-new-dtags option. This option is only used if the following 3

[issue36700] base64 has old references that should be updated

2019-04-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: base64 supports RFC 3548, but not RFC 4648. = 13. Changes Since RFC 3548 Added the "base32 extended hex alphabet", needed to preserve sort order of encoded data. Referenced IMAP

[issue22135] allow to break into pdb with Ctrl-C for all the commands that resume execution

2019-04-23 Thread Chun-Yu Tseng
Chun-Yu Tseng added the comment: My bad, I totally forget this patch. Need to spend some time to retest my code and catch up with current development flow. Thanks for reminding. -- ___ Python tracker

[issue36454] test_time: test_monotonic() failed on AMD64 FreeBSD 10-STABLE Non-Debug 3.7

2019-04-23 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +12854 stage: -> patch review ___ Python tracker ___ ___

[issue36658] Py_Initialze() throws error 'unable to load the file system encoding' when calling Py_SetPath with a path to a directory

2019-04-23 Thread Steve Dower
Steve Dower added the comment: Glad to hear it. Hopefully as we redesign the embedding initialization APIs this kind of problem will become easier to solve (it's certainly one of my concerns with the current API). -- resolution: -> not a bug stage: -> resolved status: open ->

[issue36659] distutils UnixCCompiler: Remove standard library path from rpath

2019-04-23 Thread STINNER Victor
STINNER Victor added the comment: Ratione from my colleague Carlos O'Donell: "The intent of this patch is to remove the default search paths of the dynamic loader from DT_RPATH/DT_RUNPATH. This allows the default system paths to be searched last as is expected by most programs, and enables

[issue36639] Provide list.rindex()

2019-04-23 Thread 林自均
林自均 added the comment: >From the discussion in >https://mail.python.org/pipermail/python-ideas/2019-April/056416.html, Guido >said: > Some use cases for rindex() on strings that I found in a large codebase here include searching a pathname for the final slash, a list of comma-separated items

[issue36639] Provide list.rindex()

2019-04-23 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36454] test_time: test_monotonic() failed on AMD64 FreeBSD 10-STABLE Non-Debug 3.7

2019-04-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +12855 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36707] The "m" ABI flag of SOABI for pymalloc is no longer needed

2019-04-23 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +12856 stage: -> patch review ___ Python tracker ___ ___

[issue36707] The "m" ABI flag of SOABI for pymalloc is no longer needed

2019-04-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If --with-pymalloc does not impact the API, why we need this option? -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue36695] Change (regression?) in v3.8.0a3 doctest output after capturing the stderr output from a raised warning

2019-04-23 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the update and report, Brian. -- ___ Python tracker ___ ___

[issue36707] The "m" ABI flag of SOABI for pymalloc is no longer needed

2019-04-23 Thread STINNER Victor
New submission from STINNER Victor : In Python 2.7, the WITH_PYMALLOC define (defined by ./configure --with-pymalloc which is the default) modified the Python API. For example, PyObject_MALLOC() is a macro replaced with PyObject_Malloc() with pymalloc but replaced with PyMem_MALLOC() without

[issue36707] The "m" ABI flag of SOABI for pymalloc is no longer needed

2019-04-23 Thread STINNER Victor
STINNER Victor added the comment: I modified PyObject_MALLOC and other macros when I implemented the PEP 445 "Add new APIs to customize Python memory allocators": https://www.python.org/dev/peps/pep-0445/ ABI tags are defined by the PEP 3149:

[issue36465] Make release and debug ABI compatible

2019-04-23 Thread STINNER Victor
Change by STINNER Victor : -- title: No longer enable Py_TRACE_REFS by default in debug build -> Make release and debug ABI compatible ___ Python tracker ___

[issue5215] change value of local variable in debug

2019-04-23 Thread daniel hahler
daniel hahler added the comment: @Andrei That is something different, caused by "y" only being defined later. But it would be nice if it would work. Should be a separate/new issue though. -- nosy: +blueyed ___ Python tracker

[issue5215] change value of local variable in debug

2019-04-23 Thread daniel hahler
daniel hahler added the comment: This works however (Python 3.7), but is just buggy in pdbpp (another project). -- ___ Python tracker ___

[issue36695] Change (regression?) in v3.8.0a3 doctest output after capturing the stderr output from a raised warning

2019-04-23 Thread Brian Skinn
Brian Skinn added the comment: Thank you for taking the time to dig into it so deeply! -- ___ Python tracker ___ ___

[issue36454] test_time: test_monotonic() failed on AMD64 FreeBSD 10-STABLE Non-Debug 3.7

2019-04-23 Thread miss-islington
miss-islington added the comment: New changeset e1a6cf2824acb43dc80473e0d938db99856daa97 by Miss Islington (bot) in branch '3.7': bpo-36454: Fix test_time.test_monotonic() (GH-12929) https://github.com/python/cpython/commit/e1a6cf2824acb43dc80473e0d938db99856daa97 -- nosy:

[issue36454] test_time: test_monotonic() failed on AMD64 FreeBSD 10-STABLE Non-Debug 3.7

2019-04-23 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36465] No longer enable Py_TRACE_REFS by default in debug build

2019-04-23 Thread STINNER Victor
STINNER Victor added the comment: Since my goal here is to support a C extension compiled in release mode on a Python compiled in debug mode, Py_TRACE_REFS should be a new separated ABI since it modify Py_INCREF/Py_DECREF. Maybe a new configure option should be added to opt-in for

[issue36695] Change (regression?) in v3.8.0a3 doctest output after capturing the stderr output from a raised warning

2019-04-23 Thread Brian Skinn
Change by Brian Skinn : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36454] test_time: test_monotonic() failed on AMD64 FreeBSD 10-STABLE Non-Debug 3.7

2019-04-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset d246a6766b9d8cc625112906299c4cb019944300 by Victor Stinner in branch 'master': bpo-36454: Fix test_time.test_monotonic() (GH-12929) https://github.com/python/cpython/commit/d246a6766b9d8cc625112906299c4cb019944300 --

[issue36695] Change (regression?) in v3.8.0a3 doctest output after capturing the stderr output from a raised warning

2019-04-23 Thread Brian Skinn
Brian Skinn added the comment: It looks to me like it's a standard feature of the CPython string rendering routines, where if single and double quotes are present in any string, the preferred rendering is enclosure with single quotes with escaped internal single quotes. On 3.6.6,

[issue36700] base64 has old references that should be updated

2019-04-23 Thread Paul Hoffman
Paul Hoffman added the comment: We can update the references without supporting every mode given in the new document. It is common for people to support RFC X without supporting every possible option of RFC X. Having said that, I think adding extended hex makes good sense, if possible.

[issue36465] No longer enable Py_TRACE_REFS by default in debug build

2019-04-23 Thread STINNER Victor
STINNER Victor added the comment: I started a thread on python-dev to discuss this issue: "[Python-Dev] Use C extensions compiled in release mode on a Python compiled in debug mode" https://mail.python.org/pipermail/python-dev/2019-April/157178.html It's a follow-up of my previous thread:

[issue36697] inspect.getclosurevars returns wrong globals dict

2019-04-23 Thread Noitul
Noitul added the comment: Look at this https://github.com/python/cpython/blob/3.6/Lib/inspect.py#L1412 We are taking names from func.__code__.co_names, which also contains names of object's attributes we visited. As a result, we may get more names unexpectedly in 'globals', 'builtins', and

[issue9633] pdb go stack up/down

2019-04-23 Thread daniel hahler
Change by daniel hahler : -- nosy: +blueyed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36689] docs: os.path.commonpath raises ValueError for different drives

2019-04-23 Thread Patrick Artman
Patrick Artman added the comment: If this isn't taken I'd be happy to give it a go as my first contribution -- nosy: +pjartman ___ Python tracker ___