[issue38400] Python segfaults when configured with --with-pydebug --with-trace-refs

2019-10-08 Thread STINNER Victor
STINNER Victor added the comment: Notes for myself. the visit_decref() has been updated to display repr() of the parent object, rather than display the "freed" object. Before: --- Modules/gcmodule.c:378: visit_decref: Assertion "!_PyObject_IsFreed(op)" failed Fatal Python error: _PyObject_A

[issue38392] Ensure that objects entering the GC are valid

2019-10-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I am sure this will break third-party projects. But I thing that we should not revert this change, as it completely matches the documentation. It is good that it was applied so early at development cycle. Stefan, could you please test Cython and lxml with

[issue33803] contextvars: hamt_alloc() must initialize h_root and h_count fields

2019-10-08 Thread STINNER Victor
STINNER Victor added the comment: Notes for myself. In bpo-38392, I modified PyObject_GC_Track() in debug mode to detect this bug. For example, this bug can be reproduced with this change: --- diff --git a/Python/hamt.c b/Python/hamt.c index 28b4e1ef6c..d7dd555d15 100644 --- a/Python/hamt.c +

[issue27542] Segfault in gcmodule.c:360 visit_decref

2019-10-08 Thread STINNER Victor
STINNER Victor added the comment: > Julien: I'm working on enhancement of debug traces on visit_decref(). Are you > still able to reproduce the crash in 2019? I asked him on IRC. No, he cannot reproduce the bug anymore. -- ___ Python tracker

[issue27542] Segfault in gcmodule.c:360 visit_decref

2019-10-08 Thread Julien Palard
Julien Palard added the comment: I tried again with the same version of pip and cffi on cpython 2.7.16 (no 13, I have no VM atm to compile a 2.7.13) but no segfault this time. -- ___ Python tracker

[issue38405] Nested subclasses of typing.NamedTuple are not pickleable

2019-10-08 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Example: >>> from typing import NamedTuple >>> import pickle >>> class A: ... class B(NamedTuple): ... x: int ... >>> pickle.dumps(A.B) Traceback (most recent call last): File "", line 1, in _pickle.PicklingError: Can't pickle : attribute l

[issue38405] Nested subclasses of typing.NamedTuple are not pickleable

2019-10-08 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +16226 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16641 ___ Python tracker ___

[issue38406] Missed some public names in help(typing)

2019-10-08 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Special forms NoReturn, Final, Literal and class ForwardRef are not shown in the help() output. -- components: Library (Lib) messages: 354177 nosy: gvanrossum, levkivskyi, serhiy.storchaka priority: normal severity: normal status: open title: Miss

[issue38406] Missed some public names in help(typing)

2019-10-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Sorry, I looked at wrong Python version. -- resolution: -> works for me stage: -> resolved status: open -> closed ___ Python tracker ___

[issue38407] Add docstrings for typing.SupportsXXX classes

2019-10-08 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : typing.SupportsXXX classes do not have docstrings and help() shows the docstring of the parent class instead, which is wrong ("Base class for protocol classes..."). -- components: Library (Lib) messages: 354179 nosy: gvanrossum, levkivskyi, serhi

[issue38407] Add docstrings for typing.SupportsXXX classes

2019-10-08 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +16227 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16644 ___ Python tracker ___

[issue26103] Contradiction in definition of "data descriptor" between (dotted lookup behavior/datamodel documentation) and (inspect lib/descriptor how-to)

2019-10-08 Thread hongweipeng
Change by hongweipeng : -- pull_requests: +16228 pull_request: https://github.com/python/cpython/pull/16645 ___ Python tracker ___ _

[issue26219] implement per-opcode cache in ceval

2019-10-08 Thread Inada Naoki
Inada Naoki added the comment: On Mon, Oct 7, 2019 at 9:41 PM Mark Shannon wrote: > > Mark Shannon added the comment: > > Given that > def foo(): int; str; bytes; float; int; str; bytes; float > can be trivially be rewritten as > def foo(): pass > I think that benchmark is meaningless. > Do

[issue38408] urlparse gives no method to build a url with a port

2019-10-08 Thread James Allsopp
New submission from James Allsopp : Hi, I like to build my Url's using url unparse, e.g. site_to_test = urllib.parse.urlunparse((scheme, host, page, '', '', '')) r = requests.get(site_to_test) However, we reach a lot of sites through SSH tunnels, as our network is heavily locked down, and need

[issue32996] Improve What's New in 3.7

2019-10-08 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +16229 pull_request: https://github.com/python/cpython/pull/16646 ___ Python tracker ___ ___

[issue38294] Documentation on 3.6->3.7 re.escape no longer escaping "/" or ":" should be obvious

2019-10-08 Thread Ricardo Bánffy
Change by Ricardo Bánffy : -- pull_requests: +16230 pull_request: https://github.com/python/cpython/pull/16647 ___ Python tracker ___ ___

[issue32996] Improve What's New in 3.7

2019-10-08 Thread M. Eric Irrgang
Change by M. Eric Irrgang : -- pull_requests: +16231 pull_request: https://github.com/python/cpython/pull/16648 ___ Python tracker ___ _

[issue33714] module can set an exception in tp_clear

2019-10-08 Thread miss-islington
miss-islington added the comment: New changeset d7c387384a27f37e4e3fa7890c859212c56b45b2 by Miss Islington (bot) (Serhiy Storchaka) in branch 'master': bpo-33714: Output an exception raised in module's m_clear(). (GH-16592) https://github.com/python/cpython/commit/d7c387384a27f37e4e3fa7890c85

[issue38118] Valgrind warning in PyUnicode_Decode: false alarm with GCC builtin strcmp()

2019-10-08 Thread STINNER Victor
STINNER Victor added the comment: > ==6832==at 0x4D87E9: PyUnicode_Decode (unicodeobject.c:3395) This warning is a false alarm: the GCC builtin strcmp() function seems to read past the NUL byte. When recompiling Python with -fno-builtin GCC option, the warning is gone. The valgrind warn

[issue33714] module can set an exception in tp_clear

2019-10-08 Thread Petr Viktorin
Petr Viktorin added the comment: Indeed, it can be closed. Thanks Serhiy for the better error message! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker _

[issue38368] Crash when subclassing ctypes.Union

2019-10-08 Thread Matthias Klose
Change by Matthias Klose : -- keywords: +3.7regression -patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38408] urlparse gives no method to build a url with a port

2019-10-08 Thread Amir Mohamadi
Amir Mohamadi added the comment: Hi! I'm a newbie but I'd like to work on this issue can I work on it??? -- nosy: +Amir ___ Python tracker ___

[issue38371] Tkinter: deprecate the split() method

2019-10-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset d05b000c6bcd39dba4f4b2656e45954802649562 by Serhiy Storchaka in branch 'master': bpo-38371: Tkinter: deprecate the split() method. (GH-16584) https://github.com/python/cpython/commit/d05b000c6bcd39dba4f4b2656e45954802649562 -- _

[issue36698] Shell restart when error message contains non-BMP characters

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

[issue36698] Shell restart when error message contains non-BMP characters

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

[issue36698] Shell restart when error message contains non-BMP characters

2019-10-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset b690a2759e62d9ee0b6ea1b20e8f7e4b2cdbf8bb by Serhiy Storchaka in branch 'master': bpo-36698: IDLE no longer fails when write non-encodable characters to stderr. (GH-16583) https://github.com/python/cpython/commit/b690a2759e62d9ee0b6ea1b20e8f7e

[issue38371] Tkinter: deprecate the split() method

2019-10-08 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue16623] argparse help formatter does not honor non-breaking space

2019-10-08 Thread hai shi
hai shi added the comment: I checked the help format. the help_lines' width in python2.7 is different python3. The width is more likely a hardcode in https://github.com/python/cpython/blob/2.7/Lib/argparse.py#L165. , so the help_lines = [u'This is a very long help string. ex: "--s3', u's3://

[issue36698] Shell restart when error message contains non-BMP characters

2019-10-08 Thread miss-islington
miss-islington added the comment: New changeset a1f45008f190b0d340ec0eac623f05ef98e6b4c9 by Miss Islington (bot) in branch '3.8': bpo-36698: IDLE no longer fails when write non-encodable characters to stderr. (GH-16583) https://github.com/python/cpython/commit/a1f45008f190b0d340ec0eac623f05e

[issue16623] argparse help formatter does not honor non-breaking space

2019-10-08 Thread hai shi
hai shi added the comment: oh, typo error. the help_lines' width in python2.7 is different python3.-->the help_lines' width in python2.7 is different with python3.x -- ___ Python tracker ___

[issue36698] Shell restart when error message contains non-BMP characters

2019-10-08 Thread miss-islington
miss-islington added the comment: New changeset 4f962ecfa1aadc45facc250841208f6dd2ce690f by Miss Islington (bot) in branch '3.7': bpo-36698: IDLE no longer fails when write non-encodable characters to stderr. (GH-16583) https://github.com/python/cpython/commit/4f962ecfa1aadc45facc250841208f6

[issue38401] Make dataclass attribute docstrings accessible

2019-10-08 Thread Eric V. Smith
Eric V. Smith added the comment: Note that those strings are not docstrings, per se. They're just strings, and aren't available in the class definition for the dataclass decorator to see. It's really no different from: class X: x: int 3 That 3 just gets evaluated and thrown away, li

[issue36698] Shell restart when error message contains non-BMP characters

2019-10-08 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue22742] IDLE shows traceback when printing non-BMP character

2019-10-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And with PR 16583 it is now completely fixed. I.e. it can only fail in cases when the regular interactive interpreter fails too. -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___

[issue37879] Segfaults in C heap type subclasses

2019-10-08 Thread Petr Viktorin
Petr Viktorin added the comment: Thanks to Stéphane and Eddie for fixing the refleak! -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue38140] Py_tp_dictoffset / Py_tp_finalize are unsettable in stable API

2019-10-08 Thread Petr Viktorin
Petr Viktorin added the comment: Thank you all! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue38408] urlparse gives no method to build a url with a port

2019-10-08 Thread Eric V. Smith
Eric V. Smith added the comment: One way I can think of doing this in a backward compatible way is to add keyword parameters to urlunparse, like: def urlunparse(components, *, username=None, password=None, hostname=None, port=None): Which would make your call: site_to_test = urllib.parse.ur

[issue38118] Valgrind warning in PyUnicode_Decode: false alarm with GCC builtin strcmp()

2019-10-08 Thread STINNER Victor
STINNER Victor added the comment: The valgrind false alarm on GCC builtin strcmp() has been reported to the Valgrind bug tracker in 2011, with an update in 2012 and... nothing :-( https://bugs.kde.org/show_bug.cgi?id=264936 curl worked around the issue by disabling valgrind on the impacted te

[issue36253] Use after free in ctypes test suite

2019-10-08 Thread Ben Harper
Ben Harper added the comment: Changes merged -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue33803] contextvars: hamt_alloc() must initialize h_root and h_count fields

2019-10-08 Thread Yury Selivanov
Yury Selivanov added the comment: > In bpo-38392, I modified PyObject_GC_Track() in debug mode to detect this bug. Awesome!!! -- ___ Python tracker ___ __

[issue36356] Failure to build with address sanitizer

2019-10-08 Thread Ben Harper
Ben Harper added the comment: The default build of python with ASAN builds successfully. Test suite and PGO build are currently blocked, but that can be separated if it makes more sense to handle them individually. Would it make sense to add an ASAN build to the CI pipeline to make detection

[issue36356] Failure to build with address sanitizer

2019-10-08 Thread Yury Selivanov
Change by Yury Selivanov : -- nosy: -yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue36356] Failure to build with address sanitizer

2019-10-08 Thread STINNER Victor
STINNER Victor added the comment: > The default build of python with ASAN builds successfully. Test suite and PGO > build are currently blocked, but that can be separated if it makes more sense > to handle them individually. Yeah, please open one issue per ASAN issue (try to group similar wa

[issue38118] Valgrind warning in PyUnicode_Decode: false alarm with GCC builtin strcmp()

2019-10-08 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +16234 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/16651 ___ Python tracker _

[issue38118] Valgrind warning in PyUnicode_Decode: false alarm with GCC builtin strcmp()

2019-10-08 Thread STINNER Victor
STINNER Victor added the comment: It seems like Python 2.7 is not affected. -- versions: +Python 3.7, Python 3.8 ___ Python tracker ___ ___

[issue38407] Add docstrings for typing.SupportsXXX classes

2019-10-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 8252c52e57283515ace5d4251584255dc5c60eb5 by Serhiy Storchaka in branch 'master': bpo-38407: Add docstrings for typing.SupportsXXX classes. (GH-16644) https://github.com/python/cpython/commit/8252c52e57283515ace5d4251584255dc5c60eb5 -

[issue38405] Nested subclasses of typing.NamedTuple are not pickleable

2019-10-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 13abda41003daf599587991d8291f0dacf6e9519 by Serhiy Storchaka in branch 'master': bpo-38405: Make nested subclasses of typing.NamedTuple pickleable. (GH-16641) https://github.com/python/cpython/commit/13abda41003daf599587991d8291f0dacf6e9519

[issue38118] Valgrind warning in PyUnicode_Decode: false alarm with GCC builtin strcmp()

2019-10-08 Thread STINNER Victor
STINNER Victor added the comment: New changeset 03ab6b4fc6f59a4452756e7a3a46310ce30ec4b2 by Victor Stinner in branch 'master': bpo-38118: Ignore Valgrind false alarm in PyUnicode_Decode() (GH-16651) https://github.com/python/cpython/commit/03ab6b4fc6f59a4452756e7a3a46310ce30ec4b2 --

[issue38118] Valgrind warning in PyUnicode_Decode: false alarm with GCC builtin strcmp()

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

[issue38118] Valgrind warning in PyUnicode_Decode: false alarm with GCC builtin strcmp()

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

[issue38118] Valgrind warning in PyUnicode_Decode: false alarm with GCC builtin strcmp()

2019-10-08 Thread miss-islington
miss-islington added the comment: New changeset 364532fb4962991d278da6470c3aec4e443e533d by Miss Islington (bot) in branch '3.8': bpo-38118: Ignore Valgrind false alarm in PyUnicode_Decode() (GH-16651) https://github.com/python/cpython/commit/364532fb4962991d278da6470c3aec4e443e533d ---

[issue38118] Valgrind warning in PyUnicode_Decode: false alarm with GCC builtin strcmp()

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

[issue38405] Nested subclasses of typing.NamedTuple are not pickleable

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

[issue38407] Add docstrings for typing.SupportsXXX classes

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

[issue38118] Valgrind warning in PyUnicode_Decode: false alarm with GCC builtin strcmp()

2019-10-08 Thread miss-islington
miss-islington added the comment: New changeset 98043b4fcd80bdfa8cc2be1730fa2a4cf4950958 by Miss Islington (bot) in branch '3.7': bpo-38118: Ignore Valgrind false alarm in PyUnicode_Decode() (GH-16651) https://github.com/python/cpython/commit/98043b4fcd80bdfa8cc2be1730fa2a4cf4950958 ---

[issue38118] Valgrind warning in PyUnicode_Decode: false alarm with GCC builtin strcmp()

2019-10-08 Thread STINNER Victor
STINNER Victor added the comment: Ok, the issue has been fixed in 3.7, 3.8 and master branches. Ensure that you use Valgrind with Misc/valgrind.supp. Example: $ echo|PYTHONMALLOC=malloc valgrind --suppressions=Misc/valgrind-python.supp ./python Lib/tokenize.py (...) ==12923== ERROR SUMMARY:

[issue38409] Typo in doc string for str.strip

2019-10-08 Thread Bob Dowling
New submission from Bob Dowling : The doc string for str.strip() has a typo: the "d" at the end of "removed" is missing. help(str.strip) Currently: Return a copy of the string with leading and trailing whitespace remove. Should be: Return a copy of the string with leading and trailing whites

[issue38409] Typo in doc string for str.strip

2019-10-08 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +newcomer friendly ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue38410] Possible fatal errors due to _PyEval_SetAsyncGen{Finalizer, Firstiter}()

2019-10-08 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +16240 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16657 ___ Python tracker ___ __

[issue38405] Nested subclasses of typing.NamedTuple are not pickleable

2019-10-08 Thread miss-islington
miss-islington added the comment: New changeset 10b475a151dc35c8ca4047331d591130973e914d by Miss Islington (bot) in branch '3.8': bpo-38405: Make nested subclasses of typing.NamedTuple pickleable. (GH-16641) https://github.com/python/cpython/commit/10b475a151dc35c8ca4047331d591130973e914d -

[issue38407] Add docstrings for typing.SupportsXXX classes

2019-10-08 Thread miss-islington
miss-islington added the comment: New changeset 7162440a7247f77d22cd937143f358fd5ac85af4 by Miss Islington (bot) in branch '3.8': bpo-38407: Add docstrings for typing.SupportsXXX classes. (GH-16644) https://github.com/python/cpython/commit/7162440a7247f77d22cd937143f358fd5ac85af4 --

[issue38379] finalizer resurrection in gc

2019-10-08 Thread Tim Peters
Change by Tim Peters : -- keywords: +patch pull_requests: +16241 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/16658 ___ Python tracker __

[issue38379] finalizer resurrection in gc

2019-10-08 Thread Tim Peters
Tim Peters added the comment: PR 16658 aims to repair the stats reported. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue36075] python 2to3 conversion tool is generating file with extra line for every input line

2019-10-08 Thread Mark Dickinson
Mark Dickinson added the comment: Looks like a duplicate of #34108 -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-

[issue38410] Possible fatal errors due to _PyEval_SetAsyncGen{Finalizer, Firstiter}()

2019-10-08 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +steve.dower ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue38409] Typo in doc string for str.strip

2019-10-08 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the patch and report. CPython now accepts GitHub pull requests https://devguide.python.org/pullrequest/ -- nosy: +xtreak ___ Python tracker ___

[issue37531] Fix regrtest timeout for subprocesses: regrtest -jN --timeout=SECONDS

2019-10-08 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16242 pull_request: https://github.com/python/cpython/pull/16659 ___ Python tracker ___ __

[issue38207] subprocess: On Windows, Popen.kill() + Popen.communicate() is blocking until all processes using the pipe close the pipe

2019-10-08 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +16243 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16659 ___ Python tracker ___ _

[issue38202] A fatal error in test_dictviews

2019-10-08 Thread Dong-hee Na
Dong-hee Na added the comment: Can you finalize the PR 16241 by adding the unit test which @serhiy.storchaka suggested? -- nosy: +corona10 ___ Python tracker ___

[issue36075] python 2to3 conversion tool is generating file with extra line for every input line

2019-10-08 Thread Mark Dickinson
Mark Dickinson added the comment: Closing as duplicate. @sabakauser: if you update to a recent Python 3.7 (anything more recent than 3.7.1 should be enough), you should find that this is fixed. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> 2t

[issue38411] SQLITE_MISUSE race condition in sqlite3 is misleadingly raised as a binding error

2019-10-08 Thread Jack Robison
New submission from Jack Robison : There is a race condition in the sqlite3 module that is misleadingly raised as sqlite3.InterfaceError('Error binding parameter 0 - probably unsupported type.') There are two issues here, one is the incorrectly raise error (https://bugs.python.org/issue16379)

[issue38410] Possible fatal errors due to _PyEval_SetAsyncGen{Finalizer, Firstiter}()

2019-10-08 Thread Zackery Spytz
New submission from Zackery Spytz : _PyEval_SetAsyncGenFinalizer() and _PyEval_SetAsyncGenFirstiter() don't include proper error handling for their PySys_Audit() calls. This could lead to leaked exceptions and fatal errors. -- components: Interpreter Core messages: 354210 nosy: Zacker

[issue38395] proxy_contains (weakref.proxy) can access an object with 0 refcount

2019-10-08 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 10cd00a9e3c22af37c748ea5a417f6fb66601e21 by Pablo Galindo in branch 'master': bpo-38395: Fix ownership in weakref.proxy methods (GH-16632) https://github.com/python/cpython/commit/10cd00a9e3c22af37c748ea5a417f6fb66601e21 -- ___

[issue38410] Possible fatal errors due to _PyEval_SetAsyncGen{Finalizer, Firstiter}()

2019-10-08 Thread Steve Dower
Steve Dower added the comment: You're right, they need either your patch or PyErr_WriteUnraisable(NULL) before returning. Łukasz - this needs a fix in 3.8, but we don't have to necessarily change the (internal, but exposed) ABI. For 3.9, we'll fix it properly, but for 3.8 I'll let you make t

[issue38395] proxy_contains (weakref.proxy) can access an object with 0 refcount

2019-10-08 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +16244 pull_request: https://github.com/python/cpython/pull/16661 ___ Python tracker ___ ___

[issue38395] proxy_contains (weakref.proxy) can access an object with 0 refcount

2019-10-08 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +16245 pull_request: https://github.com/python/cpython/pull/16662 ___ Python tracker ___ ___

[issue38395] proxy_contains (weakref.proxy) can access an object with 0 refcount

2019-10-08 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +16246 pull_request: https://github.com/python/cpython/pull/16663 ___ Python tracker ___ ___

[issue38411] SQLITE_MISUSE race condition in sqlite3 is misleadingly raised as a binding error

2019-10-08 Thread Jack Robison
Change by Jack Robison : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue38294] Documentation on 3.6->3.7 re.escape no longer escaping "/" or ":" should be obvious

2019-10-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 43f5c0c4d0a608c04c3978adb45117f3943203b7 by Serhiy Storchaka (Ricardo Bánffy) in branch '3.7': [3.7] bpo-38294: Add list of no-longer-escaped chars to re.escape documentation. (GH-16442) (GH-16647) https://github.com/python/cpython/commit/43f5

[issue38207] subprocess: On Windows, Popen.kill() + Popen.communicate() is blocking until all processes using the pipe close the pipe

2019-10-08 Thread STINNER Victor
STINNER Victor added the comment: New changeset 0ec618af98ac250a91ee9c91f8569e6df6772758 by Victor Stinner in branch 'master': bpo-37531: regrtest ignores output on timeout (GH-16659) https://github.com/python/cpython/commit/0ec618af98ac250a91ee9c91f8569e6df6772758 -- _

[issue37531] Fix regrtest timeout for subprocesses: regrtest -jN --timeout=SECONDS

2019-10-08 Thread STINNER Victor
STINNER Victor added the comment: New changeset 0ec618af98ac250a91ee9c91f8569e6df6772758 by Victor Stinner in branch 'master': bpo-37531: regrtest ignores output on timeout (GH-16659) https://github.com/python/cpython/commit/0ec618af98ac250a91ee9c91f8569e6df6772758 -- _

[issue38412] csv.reader failed to split string with spaces and quoted delimiter

2019-10-08 Thread belegnar
New submission from belegnar : ``` >>> list(csv.reader(['param1,"param21,param22",param3'])) [['param1', 'param21,param22', 'param3']] >>> list(csv.reader(['param1, "param21,param22", param3'])) [['param1', ' "param21', 'param22"', ' param3']] ``` version 3.7.4 on linux -- components:

[issue38216] Fix for issue30458 (HTTP Header Injection) prevents crafting invalid requests

2019-10-08 Thread Larry Hastings
Larry Hastings added the comment: New changeset 2784e78dc3445c6dd59e915d86c336374c1fa09a by larryhastings (Jason R. Coombs) in branch '3.5': [3.5] bpo-38216, bpo-36274: Allow subclasses to separately override validation and encoding behavior (GH-16448) (#16475) https://github.com/python/cpyt

[issue36274] http.client cannot send non-ASCII request lines

2019-10-08 Thread Larry Hastings
Larry Hastings added the comment: New changeset 2784e78dc3445c6dd59e915d86c336374c1fa09a by larryhastings (Jason R. Coombs) in branch '3.5': [3.5] bpo-38216, bpo-36274: Allow subclasses to separately override validation and encoding behavior (GH-16448) (#16475) https://github.com/python/cpyt

[issue38216] Fix for issue30458 (HTTP Header Injection) prevents crafting invalid requests

2019-10-08 Thread Larry Hastings
Change by Larry Hastings : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue1724822] provide a shlex.split alternative for Windows shell syntax

2019-10-08 Thread Eli Schwartz
Change by Eli Schwartz : -- nosy: +eschwartz ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue31722] _io.IncrementalNewlineDecoder doesn't inherit codecs.IncrementalDecoder

2019-10-08 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +16247 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/16664 ___ Python tracker ___ __

[issue31722] _io.IncrementalNewlineDecoder doesn't inherit codecs.IncrementalDecoder

2019-10-08 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue38109] Missing constants in Lib/stat.py

2019-10-08 Thread Ronan Lamy
Change by Ronan Lamy : -- keywords: +patch pull_requests: +16248 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16665 ___ Python tracker ___ _

[issue38307] Provide Class' end line in readmodule module

2019-10-08 Thread Aviral
Change by Aviral : -- keywords: +patch pull_requests: +16249 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16466 ___ Python tracker ___ _

[issue38413] Remove or change "Multithreading" section

2019-10-08 Thread Vladimir Ryabtsev
New submission from Vladimir Ryabtsev : This is regarding the page https://docs.python.org/3.7/library/sqlite3.html. I believe this section on the very bottom of the page has been kept here for pretty long time, during that both SQLite and the sqlite3 module evolved and improved. Now the cont

[issue38307] Provide Class' end line in readmodule module

2019-10-08 Thread Brandt Bucher
Change by Brandt Bucher : -- nosy: +brandtbucher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue38414] Ordering a nested dictionary in python with json format

2019-10-08 Thread Umar Asghar
New submission from Umar Asghar : Python does not preserve ordering in JSON format. I have tested it out but it's not working. Here is my code. # Python3 code to demonstrate # Sort nested dictionary by key # using OrderedDict() + sorted() from collections import OrderedDict from operator i

[issue38414] Ordering a nested dictionary in python with json format

2019-10-08 Thread Umar Asghar
Umar Asghar added the comment: I guess it exists in all Python versions. I have tested in both Python 2 and Python 3. Python 2.7.15+ (default, Jul 9 2019, 16:51:35) [GCC 7.4.0] on linux2 Python 3.6.8 (default, Aug 20 2019, 17:12:48) [GCC 8.3.0] on linux -- versions: +Python 3.9

[issue38109] Missing constants in Lib/stat.py

2019-10-08 Thread Brandt Bucher
Change by Brandt Bucher : -- nosy: +brandtbucher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue38414] Ordering a nested dictionary in python with json format

2019-10-08 Thread Umar Asghar
Change by Umar Asghar : Added file: https://bugs.python.org/file48649/test.py ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue38414] Ordering a nested dictionary in python with json format

2019-10-08 Thread Umar Asghar
Umar Asghar added the comment: I have recently attached the file, please review it as a code reference. -- ___ Python tracker ___ _

[issue38409] Typo in doc string for str.strip

2019-10-08 Thread Hansraj Das
Change by Hansraj Das : -- nosy: +hansrajdas ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue38414] Ordering a nested dictionary in python with json format

2019-10-08 Thread Umar Asghar
Change by Umar Asghar : -- versions: +Python 2.7 -Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38395] proxy_contains (weakref.proxy) can access an object with 0 refcount

2019-10-08 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 526ef856dd598fd3cefdfadeb18ede7a8e57aa41 by Pablo Galindo in branch '3.8': [3.8] bpo-38395: Fix ownership in weakref.proxy methods (GH-16632) (GH-16662) https://github.com/python/cpython/commit/526ef856dd598fd3cefdfadeb18ede7a8e57aa41 -

  1   2   >