[issue40238] os.stat() on Windows succeeds for nonexistent paths with trailing spaces

2020-04-10 Thread gaborbernat
gaborbernat added the comment: While I agree that Windows is safe to transform paths as he wishes to, the bug reported here is that os.stat/os.path.isdir behaves differently than os.scandir. Can we make them behave the same? -- nosy: +gaborbernat

[issue40244] AIX: build: _PyObject_GC_TRACK Asstertion failure

2020-04-10 Thread Michael Felt
New submission from Michael Felt : Calling this a compile error - as it seems to be compiler dependent. In other projects - when I have experienced issues as this it has been an uninitiated variable - somewhere. I would appreciate some suggestions on how to best debug this - as it seems to o

[issue39533] Use `statx(2)` system call on Linux for extended `os.stat` information

2020-04-10 Thread slow franklin
Change by slow franklin : -- nosy: +slow franklin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue40230] Itertools.product() Out of Memory Errors

2020-04-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: > when I moved to testing on non-trivial graphs, I immediately had > Out of Memory Errors. I'm going to hazard a guess that the input to product() was a graph traversal iterator that got trapped in an undetected cycle. Feeding an infinite iterator into

[issue40244] AIX: build: _PyObject_GC_TRACK Asstertion failure

2020-04-10 Thread Michael Felt
Michael Felt added the comment: dbx output: Again: help appreciated. (dbx) run -X tracemalloc Objects/genobject.c:127: _PyObject_GC_TRACK: Assertion "!(((PyGC_Head *)(op)-1)->_gc_next != 0)" failed: object already tracked by the garbage collector Enable tracemalloc to get the memory block

[issue20074] open() of read-write non-seekable streams broken

2020-04-10 Thread pavlix
pavlix added the comment: > A non-seekable read/write stream doesn't really make sense (think about it). How does it help the issue to ask the reporter to "think" when the have already provided an easily reproducable use case? > What purpose does that constraint serve? Is there any reason it

[issue36281] OSError: handle is closed for ProcessPoolExecutor and run_in_executor

2020-04-10 Thread Bas Nijholt
Bas Nijholt added the comment: Using `git bisect` I've discovered the commit (b713adf27a) (https://github.com/python/cpython/commit/b713adf27a) that broke the code. I've used one script: ```test.py import sys sys.path.append("/Users/basnijholt/Downloads/cpython/Lib/concurrent/futures/") from

[issue38501] multiprocessing.Pool hangs atexit (and garbage collection sometimes)

2020-04-10 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch nosy: +pablogsal nosy_count: 6.0 -> 7.0 pull_requests: +18808 stage: -> patch review pull_request: https://github.com/python/cpython/pull/11488 ___ Python tracker

[issue20074] open() of read-write non-seekable streams broken

2020-04-10 Thread pavlix
pavlix added the comment: Okay, let me help the situation a bit. The “workaround” of using `buffering=0` works perfect with `rb+` and `wb+` and I'm pretty sure I used this in the past. I don't know how well this is documented. I would usually need to disable buffering for any real-time binary

[issue40244] AIX: build: _PyObject_GC_TRACK Asstertion failure

2020-04-10 Thread Stefan Krah
Stefan Krah added the comment: Since I just had a similar incident with the Intel compiler, I just want to point out that compiling CPython still requires -fwrapv. I've mentioned this before in AIX issues, and no one has pointed out the corresponding xlc flag. https://gcc.gnu.org/legacy-ml/g

[issue40244] AIX: build: _PyObject_GC_TRACK Asstertion failure

2020-04-10 Thread STINNER Victor
STINNER Victor added the comment: The assertion failure occurs in _PyObject_GC_TRACK() at: static void gen_dealloc(PyGenObject *gen) { PyObject *self = (PyObject *) gen; _PyObject_GC_UNTRACK(gen); if (gen->gi_weakreflist != NULL) PyObject_ClearWeakRefs(self); _PyObje

[issue40238] os.stat() on Windows succeeds for nonexistent paths with trailing spaces

2020-04-10 Thread Eryk Sun
Eryk Sun added the comment: > While I agree that Windows is safe to transform paths as he wishes to, > the bug reported here is that os.stat/os.path.isdir behaves > differently than os.scandir. Can we make them behave the same? os.listdir and os.scandir can be modified to behave like os.stat

[issue40244] AIX: build: _PyObject_GC_TRACK Asstertion failure

2020-04-10 Thread Michael Felt
Michael Felt added the comment: After git bisect - comes down to: Bisecting: 0 revisions left to test after this (roughly 0 steps) [0003c2dc1d4cf5b122e73e83177fd274fa9a9913] bpo-40096: Support __attribute__((__noreturn__)) on xlc (GH-19204) -- ___

[issue40244] AIX: build: _PyObject_GC_TRACK Asstertion failure

2020-04-10 Thread Michael Felt
Michael Felt added the comment: It is only XLC-v16 that fails. XLC-v11 and XLC-v13 work fine. Am digging to see which version (< v16, or >= v16) is not working as expected. -- ___ Python tracker ___

[issue39939] PEP 616: Add str methods to remove prefix or suffix

2020-04-10 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18809 pull_request: https://github.com/python/cpython/pull/19455 ___ Python tracker ___ __

[issue40238] os.stat() on Windows succeeds for nonexistent paths with trailing spaces

2020-04-10 Thread David Strobach
David Strobach added the comment: Hi Eryk, thanks for your time and for the explanation. > The Windows file API normalizes paths to replace forward slashes with > backslashes; resolve relative paths and "." and ".." components; strip > trailing spaces and dots from the final component; and m

[issue37596] Reproducible pyc: frozenset is not serialized in a deterministic order

2020-04-10 Thread Chih-Hsuan Yen
Chih-Hsuan Yen added the comment: issue34722 also talks about frozenset, nondeterministic order and sorting. Maybe this ticket and that one are for the same issue? -- nosy: +yan12125 ___ Python tracker

[issue34033] distutils is not reproducible

2020-04-10 Thread Chih-Hsuan Yen
Change by Chih-Hsuan Yen : -- nosy: +yan12125 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue40237] Test code coverage (C) job of Travis CI fails on test_distutils which creates _configtest.gcno file

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

[issue39943] Meta: Clean up various issues in C internals

2020-04-10 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue40221] Use new _at_fork_reinit() lock method in multiprocessing

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

[issue40238] os.stat() on Windows succeeds for nonexistent paths with trailing spaces

2020-04-10 Thread Eryk Sun
Eryk Sun added the comment: > I'd say os.path.normpath() should perform the same (GetFullPathNameW?) > normalization as os.stat() and friends do. ntpath.abspath calls GetFullPathNameW (i.e. nt._getfullpathname) in Windows, but ntpath.normpath is pure Python. I agree that normpath should trim

[issue39598] Spam magnet

2020-04-10 Thread Zachary Ware
Zachary Ware added the comment: Maybe I'm just paranoid, but this whole issue reads like spam to me. It's at least a spam magnet; changing the title accordingly and clearing the nosy list. -- nosy: -Sahurkhan, gustavoxo, judiction, nows, paul.moore, steve.dower, tim.golden, xtreak

[issue40244] AIX: build: _PyObject_GC_TRACK Asstertion failure

2020-04-10 Thread Michael Felt
Michael Felt added the comment: On 10/04/2020 14:01, STINNER Victor wrote: > STINNER Victor added the comment: > > The assertion failure occurs in _PyObject_GC_TRACK() at: > > static void > gen_dealloc(PyGenObject *gen) > { > PyObject *self = (PyObject *) gen; > > _PyObject_GC_UNTRACK(g

[issue40242] zmq mysql core dump

2020-04-10 Thread Eric V. Smith
Eric V. Smith added the comment: I'm going to close this. If you can provide information on how to reproduce this and/or what you observe in the segfault dump, we will happily reopen it. I think the best "resolution" tag is to call this "third party", but I'm not sure it matters too much. -

[issue37266] Daemon threads must be forbidden in subinterpreters

2020-04-10 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18811 pull_request: https://github.com/python/cpython/pull/19456 ___ Python tracker ___ __

[issue40234] Disallow daemon threads in subinterpreters optionally.

2020-04-10 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +18810 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/19456 ___ Python tracker __

[issue40234] Disallow daemon threads in subinterpreters optionally.

2020-04-10 Thread STINNER Victor
STINNER Victor added the comment: Well, this large problem sounds very complex and is made of multiple small issues. Let's start with something simple: revert my commit 066e5b1a917ec2134e8997d2cadd815724314252. When I wrote it, I expected that nobody was spawning daemon threads in subinterp

[issue40244] AIX: build: _PyObject_GC_TRACK Asstertion failure

2020-04-10 Thread STINNER Victor
STINNER Victor added the comment: > [0003c2dc1d4cf5b122e73e83177fd274fa9a9913] bpo-40096: Support > __attribute__((__noreturn__)) on xlc (GH-19204) The fix looks simple: revert this change, no? -- ___ Python tracker

[issue40243] Unicode 3.2 numeric uses decimal_changed instead of numeric_changed

2020-04-10 Thread William Meehan
Change by William Meehan : -- keywords: +patch pull_requests: +18812 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19457 ___ Python tracker ___ _

[issue39285] PurePath.match indicates case-sensitive nature and presents a case-insensitive example

2020-04-10 Thread Tim Lo
Change by Tim Lo : -- keywords: +patch nosy: +timlo nosy_count: 4.0 -> 5.0 pull_requests: +18814 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19458 ___ Python tracker _

[issue39481] Implement PEP 585 (Type Hinting Generics In Standard Collections)

2020-04-10 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 0361556537686f857f1025ead75e6af4ca7cc94a by Batuhan Taşkaya in branch 'master': bpo-39481: PEP 585 for a variety of modules (GH-19423) https://github.com/python/cpython/commit/0361556537686f857f1025ead75e6af4ca7cc94a -- _

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-04-10 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +18815 pull_request: https://github.com/python/cpython/pull/19459 ___ Python tracker ___ ___

[issue39598] Spam magnet

2020-04-10 Thread Zachary Ware
Change by Zachary Ware : -- nosy: -zach.ware ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue40230] Itertools.product() Out of Memory Errors

2020-04-10 Thread Henry Carscadden
Henry Carscadden added the comment: @Tim Peters For example, the following should reproduce the error: many_arguments = [[1,2] for i in range(50)] for term in product(*many_arguments): print(term) In my application, I was taking the Cartesian product of the sets of all simple path to sever

[issue38501] multiprocessing.Pool hangs atexit (and garbage collection sometimes)

2020-04-10 Thread Stefano Rivera
Stefano Rivera added the comment: Looks like it was fixed by PR 19009 (bpo-39360)). -- ___ Python tracker ___ ___ Python-bugs-list

[issue38501] multiprocessing.Pool hangs atexit (and garbage collection sometimes)

2020-04-10 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: >Looks like it was fixed by PR 19009 (bpo-39360)). Can we close the issue then? If not, could yo provide a reproducer and also check if the big is fixed on master or 3.8 HEAD? Thanks! -- ___ Python tracker

[issue38501] multiprocessing.Pool hangs atexit (and garbage collection sometimes)

2020-04-10 Thread Stefano Rivera
Stefano Rivera added the comment: On Linux, the reproducer in https://bugs.python.org/issue38501#msg354813 fails on ac10e0c93218627d1a639db0b7b41714c5f6a883^ and passes on ac10e0c93218627d1a639db0b7b41714c5f6a883, which is why I say PR 19009 fixes it. Not sure if there are any special consid

[issue38501] multiprocessing.Pool hangs atexit (and garbage collection sometimes)

2020-04-10 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Not sure if there are any special considerations for Windows here. It should not be anything windows specific here. Also notice that although "it works", the reproducer in https://bugs.python.org/issue38501#msg354813 is out of contract because is no

[issue38501] multiprocessing.Pool hangs atexit (and garbage collection sometimes)

2020-04-10 Thread Eric Larson
Eric Larson added the comment: If that's out of contract, perhaps there should probably a big, visible warning at the top of the multiprocessning docs stating that creating one of these objects requires either using a context manager or ensuring manual `.close()`ing? 1. It either used to be

[issue40245] Add description meta tags to docs.python.org

2020-04-10 Thread Andrew Zhou
New submission from Andrew Zhou : This isn't a particularly high priority, but it would be nice to have the first paragraph of docs pages show up when searched or posted in Slack, Discord, Twitter, etc. This is done through the description meta tag, as well as Open Graph, etc. As the descript

[issue40230] Itertools.product() Out of Memory Errors

2020-04-10 Thread Tim Peters
Tim Peters added the comment: Henry, no, I see no problem while running your example. It's been running on my box for over 5 minutes now, and memory use remains trivial. Note that in the code I posted for you, instead of [1, 2] I used range(100), and instead of 50 I used a million: the sam

[issue40237] Test code coverage (C) job of Travis CI fails on test_distutils which creates _configtest.gcno file

2020-04-10 Thread hai shi
Change by hai shi : -- keywords: +patch pull_requests: +18816 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19460 ___ Python tracker ___

[issue40237] Test code coverage (C) job of Travis CI fails on test_distutils which creates _configtest.gcno file

2020-04-10 Thread hai shi
hai shi added the comment: > Maybe CFLAGS_NODIST should be used instead of CFLAGS. Looks like it worked. > Python is built GCC with -ftest-coverage option. More exact description is: Python is built GCC with --coverage option, --coverage option including -ftest-coverage option. -- _

[issue40237] Test code coverage (C) job of Travis CI fails on test_distutils which creates _configtest.gcno file

2020-04-10 Thread hai shi
hai shi added the comment: > Looks like it worked. Oh, sorry, I checked the wrong gate. -- ___ Python tracker ___ ___ Python-bugs-l

[issue40245] Add description meta tags to docs.python.org

2020-04-10 Thread Andy Lester
Change by Andy Lester : -- nosy: +petdance ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue38501] multiprocessing.Pool hangs atexit (and garbage collection sometimes)

2020-04-10 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > If that's out of contract, perhaps there should probably a big, visible > warning at the top of the multiprocessning docs stating that creating one of > these objects requires either using a context manager or ensuring manual > `.close()`ing? Why?

[issue40246] Different error messages for same error - invalid string prefixes

2020-04-10 Thread Lysandros Nikolaou
New submission from Lysandros Nikolaou : While testing pegen, we found this out: Python 3.9.0a5+ (heads/pegen:502dfb719e, Apr 10 2020, 20:57:05) [GCC 9.2.1 20191008] on linux Type "help", "copyright", "credits" or "license" for more information. >>> fur'' File "", line 1 fur'' ^ S

[issue40230] Itertools.product() Out of Memory Errors

2020-04-10 Thread Henry Carscadden
Henry Carscadden added the comment: Tim, I'm guessing it was a misdiagnosis then. In any case, something changed about my codebase that alleviated the problem. Thanks for looking into it. -- ___ Python tracker

[issue40246] Different error messages for same error - invalid string prefixes

2020-04-10 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue40246] Different error messages for same error - invalid string prefixes

2020-04-10 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- nosy: +gvanrossum, pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38501] multiprocessing.Pool hangs atexit (and garbage collection sometimes)

2020-04-10 Thread Eric Larson
Eric Larson added the comment: > Why? This is a resource like any other and it requires proper resource > management. Would you also put a big warning on "open()" stating that opening > a file requires either using a context manager or ensure a manual close()? One potential reason would be t

[issue40230] Itertools.product() Out of Memory Errors

2020-04-10 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> not a bug stage: test needed -> resolved status: open -> closed ___ Python tracker ___

[issue40246] Different error messages for same error - invalid string prefixes

2020-04-10 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: After some investigating, I found out that this is happening because when we execute `fur''` in the interactive interpreter there is an implicit newline, which means that EOF does not get reached. OTOH there is no newline when passing it as a string insi

[issue40241] [C API] Make PyGC_Head structure opaque, or even move it to the internal C API

2020-04-10 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +18817 pull_request: https://github.com/python/cpython/pull/19461 ___ Python tracker ___ ___

[issue38501] multiprocessing.Pool hangs atexit (and garbage collection sometimes)

2020-04-10 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > One potential reason would be that the consequences of bad resource > management in this case are different than in the open() case, i.e., here the > interpreter hangs -- or Travis runs for your repo (SciPy) get stuck with > over-50-minute errors, w

[issue40178] Convert the remaining os funtions to Argument Clinic

2020-04-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: #37206 changed the signature "pop(self, key, default=None, /)" back to "D.pop(k[,d]) -> v", taken from dict.pop.__doc__. However, the incorrect version that got reverted correctly added the positional-only indicator '/'. Docstrings with signatures for such

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

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

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

2020-04-10 Thread miss-islington
miss-islington added the comment: New changeset 1bf7dee8d35cb19db7ee98229dd2e5726e6c7606 by Miss Islington (bot) in branch '3.8': bpo-40197: Better describe the benchmark results table (GH-19386) https://github.com/python/cpython/commit/1bf7dee8d35cb19db7ee98229dd2e5726e6c7606 -- _

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

2020-04-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: On Win 10, with recently compiled 3.7.7+ and 3.9.0a5+, I get 4 warnings also. >>> import warnings >>> compile("'\d'", "", "eval") :1: DeprecationWarning: invalid escape sequence \d :1: DeprecationWarning: invalid escape sequence \d at 0x00A65DC0, file "", lin

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

2020-04-10 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

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

2020-04-10 Thread Numerlor
Numerlor added the comment: The newest 64 bit release from python.org via the executable installer. -- ___ Python tracker ___ ___ P

[issue40170] [C API] Make PyTypeObject structure an opaque structure in the public C API

2020-04-10 Thread STINNER Victor
STINNER Victor added the comment: /* Test if an object has a GC head */ #define PyObject_IS_GC(o) \ (PyType_IS_GC(Py_TYPE(o)) \ && (Py_TYPE(o)->tp_is_gc == NULL || Py_TYPE(o)->tp_is_gc(o))) This macro should be converted to an opaque function. --

[issue40247] Logged out of user when running Tkinter

2020-04-10 Thread J
New submission from J : Whenever I run a python script with any Tkinter command, I get instantly logged out of my user. I have been using Tkinter for weeks now and it was running just fine until yesterday when I clicked the demo button in the default taskbar that shows up when launching a Tki

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

2020-04-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Raymond, I finished the backporting and assume that your patch was meant to be a complete fix. -- nosy: +terry.reedy versions: +Python 3.9 ___ Python tracker __

[issue40170] [C API] Make PyTypeObject structure an opaque structure in the public C API

2020-04-10 Thread hai shi
hai shi added the comment: > This macro should be converted to an opaque function Can I try it? -- ___ Python tracker ___ ___ Pytho

[issue40203] Warn about invalid PYTHONUSERBASE

2020-04-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: I marked this for 'interpreter Core' because it affects imports and nothing else seemed better. I marked this for 3.9 because it is too late to change 2.7. But I don't know whether PYTHONUSERBASE is still treated (or not treated) the same. Volker, I assume

[issue40248] Proposed class for collections: dynamicdict

2020-04-10 Thread Steele Farnsworth
New submission from Steele Farnsworth : I have implemented a class in the C code of the collections module which has similar behavior to the defaultdict class. This class, dynamicdict, supplies values for keys that have not yet been added using a default factory callable, but unlike defaultdi

[issue40248] Proposed class for collections: dynamicdict

2020-04-10 Thread Eric V. Smith
Eric V. Smith added the comment: You probably want to bring this up on the python-ideas mailing list for discussion. Features like this typically get discussed there first. -- nosy: +eric.smith ___ Python tracker

[issue40248] Proposed class for collections: dynamicdict

2020-04-10 Thread Steele Farnsworth
Steele Farnsworth added the comment: Thank you, I have done so. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue40249] __import__ doesn't honour globals

2020-04-10 Thread Stefan Seefeld
New submission from Stefan Seefeld : I'm trying to import custom scripts that expect the presence of certain variables in the global namespace. It seems `__import__('script', globals=dict(foo='bar'))` doesn't have the expected effect of injecting "foo" into the namespace and making it accessib

[issue40170] [C API] Make PyTypeObject structure an opaque structure in the public C API

2020-04-10 Thread hai shi
Change by hai shi : -- pull_requests: +18819 pull_request: https://github.com/python/cpython/pull/19464 ___ Python tracker ___ ___ P

[issue40249] __import__ doesn't honour globals

2020-04-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: globals is only used when level > 0, to resolve relative names like in `import ..foo`. You have to set keys __package__ and __spec__ or __name__ and __path__ in this case. -- nosy: +serhiy.storchaka ___ Python t

[issue29255] selects.KqueueSelector behaves incorrectly when no fds are registered

2020-04-10 Thread Russell Davis
Russell Davis added the comment: This looks like it's the cause of https://bugs.python.org/issue25680 -- nosy: +russelldavis ___ Python tracker ___ ___

[issue25680] Selector.select() hangs when there is nothing to select

2020-04-10 Thread Russell Davis
Russell Davis added the comment: Looks like this is caused by #29255 -- nosy: +russelldavis ___ Python tracker ___ ___ Python-bugs-

[issue40246] Different error messages for same error - invalid string prefixes

2020-04-10 Thread Guido van Rossum
Guido van Rossum added the comment: So a slightly shorter example uses ru''. This is an error because you can't combine the r prefix and the u prefix (in fact you can't combine anything with the r prefix). I declare that this is a bug to report EOF here and the code should *first* check for

[issue40246] Different error messages for same error - invalid string prefixes

2020-04-10 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: At the moment, if the prefix is invalid, it gets tokenized as a NAME node and the string following is tokenized as a STRING node with no prefix. ╰─ echo "ur''" | ./python -m tokenize 1,0-1,2:NAME 'ur' 1,2-1,4:ST

[issue40250] unable to comment out r'\u' string with triple quote marks

2020-04-10 Thread Elmar Bucher
New submission from Elmar Bucher : When I try to comment out this little code by triple quotation, I run into SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 29-30: truncated \u escape ls_tex = [] ls_tex.append(r'\usepackage{mathtools}') print(ls_tex) Ba

[issue26571] turtle regression in 3.5

2020-04-10 Thread Furkan Onder
Change by Furkan Onder : -- keywords: +patch nosy: +furkanonder nosy_count: 4.0 -> 5.0 pull_requests: +18820 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/19465 ___ Python tracker

[issue40251] selectors.KqueueSelector hangs on EOF, unlike other selectors

2020-04-10 Thread Russell Davis
New submission from Russell Davis : Repro (on macOS): from selectors import KqueueSelector, EVENT_READ with open('/tmp/foo', 'w') as f: f.write("bar") sel = KqueueSelector() sel.register(f, EVENT_READ) sel.select() The above code will hang on the last li

[issue40252] selectors.KqueueSelector should not be the default selector

2020-04-10 Thread Russell Davis
New submission from Russell Davis : There are at least two outstanding bugs where KqueueSelector behaves differently than the other selectors: #40251 #25680 This breaks the abstraction of being able to rely on DefaultSelector() to provide consistent behavior. At least on macOS, PollSelector

[issue40250] unable to comment out r'\u' string with triple quote marks

2020-04-10 Thread Elmar Bucher
Change by Elmar Bucher : -- type: -> compile error ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue40250] unable to comment out r'\u' string with triple quote marks

2020-04-10 Thread Eric V. Smith
Eric V. Smith added the comment: This basically comes down to """\u""" not being a valid string. I'm not sure why you'd expect this to work: triple quoted strings are not designed as a general purpose "comment out" facility, and as you've discovered, they don't work that way. What's inside a

[issue40241] [C API] Make PyGC_Head structure opaque, or even move it to the internal C API

2020-04-10 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset f13072b8a89a922285737988b086beb4b06c6648 by Pablo Galindo in branch 'master': bpo-40241: Add PyObject_GC_IsTracked and PyObject_GC_IsFinalized to the public C-API (GH-19461) https://github.com/python/cpython/commit/f13072b8a89a9222857379

[issue40240] Expose public spelling of _PyGC_FINALIZED and _PyGC_SET_FINALIZED?

2020-04-10 Thread STINNER Victor
STINNER Victor added the comment: New changeset f13072b8a89a922285737988b086beb4b06c6648 by Pablo Galindo in branch 'master': bpo-40241: Add PyObject_GC_IsTracked and PyObject_GC_IsFinalized to the public C-API (GH-19461) https://github.com/python/cpython/commit/f13072b8a89a922285737988b086be

[issue38501] multiprocessing.Pool hangs atexit (and garbage collection sometimes)

2020-04-10 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +18821 pull_request: https://github.com/python/cpython/pull/19466 ___ Python tracker ___ ___

[issue40204] Docs build error with Sphinx 3.0 due to invalid C declaration

2020-04-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: A few days ago, 3.8 backports failed while 3.7 backports merged. Thank you for the fix, even if temporary. I just noticed that the doc main page ends with "Created using Sphinx 2.3.1." I plan to switch my local sphinx to that version. -- nosy: +ter

[issue40205] Profile 'builtins' parameter documentation missing

2020-04-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: I verified the statements and notice that profile.Profile has many methods not in cProfile.Profile. Neither is a complete replacement for the other. -- nosy: +terry.reedy ___ Python tracker

[issue40207] Expose NCURSES_EXT_FUNCS under curses

2020-04-10 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +twouters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue40248] Proposed class for collections: dynamicdict

2020-04-10 Thread Steven D'Aprano
Steven D'Aprano added the comment: This feature is already provided by just supplying a `__missing__` dunder: py> class MyDict(dict): ... def __missing__(self, key): ... return "The key is {}".format(key) ... py> d = MyDict() py> d[1234] 'The key is 1234' I'm closing this tic

[issue40250] unable to comment out r'\u' string with triple quote marks

2020-04-10 Thread Vedran Čačić
Vedran Čačić added the comment: This "bug" is reported at least once a year, by different people. Maybe we should put something in the documentation, to the effect that a) as Eric said, triple-quoted strings are not (meant to be used as) comments b) if you nonetheless really want to use them

[issue40208] Remove deprecated symtable.SymbolTable.has_exec

2020-04-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: https://docs.python.org/3/library/symtable.html#symtable.SymbolTable.has_exec merely says "Return True if the block uses exec." This never happens since https://github.com/python/cpython/blob/3.8/Lib/symtable.py#L87 is "return False". I presume 'exec' refers

[issue40208] Remove deprecated symtable.SymbolTable.has_exec

2020-04-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Answer: no. The 2006 patch already removed OPT_EXEC and OPT_BARE_EXEC. -- ___ Python tracker ___ ___

[issue38501] multiprocessing.Pool hangs atexit (and garbage collection sometimes)

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

[issue38501] multiprocessing.Pool hangs atexit (and garbage collection sometimes)

2020-04-10 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 7.0 -> 8.0 pull_requests: +18822 pull_request: https://github.com/python/cpython/pull/19467 ___ Python tracker _

[issue38501] multiprocessing.Pool hangs atexit (and garbage collection sometimes)

2020-04-10 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 7ec43a73092d43c6c95e7dd2669f49d54b57966f by Pablo Galindo in branch 'master': bpo-38501: Add a warning section to multiprocessing.Pool docs about resource managing (GH-19466) https://github.com/python/cpython/commit/7ec43a73092d43c6c95e7

[issue38501] multiprocessing.Pool hangs atexit (and garbage collection sometimes)

2020-04-10 Thread miss-islington
miss-islington added the comment: New changeset 2e49b5254aa0888dd21a7929be14b6cfe03d56ef by Miss Islington (bot) in branch '3.7': bpo-38501: Add a warning section to multiprocessing.Pool docs about resource managing (GH-19466) https://github.com/python/cpython/commit/2e49b5254aa0888dd21a7929

[issue38501] multiprocessing.Pool hangs atexit (and garbage collection sometimes)

2020-04-10 Thread miss-islington
miss-islington added the comment: New changeset ceba0648d70524ec4ebb7a46d5d1162d4938c7ba by Miss Islington (bot) in branch '3.8': bpo-38501: Add a warning section to multiprocessing.Pool docs about resource managing (GH-19466) https://github.com/python/cpython/commit/ceba0648d70524ec4ebb7a46

[issue40249] __import__ doesn't honour globals

2020-04-10 Thread Stefan Seefeld
Stefan Seefeld added the comment: OK, thanks for the clarification. I think this is obscure enough to warrant at least a paragraph or two to clarify the semantics of these arguments. I changed the issue "components" and "type" to reflect that. -- assignee: -> docs@python components:

[issue40210] ttk.Combobox focus-out event inheritage

2020-04-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: What OS and what tcl/tk patch version? (IDLE Help => About IDLE will show this). 3.5 only gets security patches. On Windows, it came with a slightly older version of tk. That might possibly be a problem. One cannot place widgets 'in a treeview', so you ar

  1   2   >