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

2020-04-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: OK, verified issue with installed 3.9.0a5, which must have different warning settings. >From a file, 1 warning. :1: DeprecationWarning: invalid escape sequence \d Interactively, no warning. >>> compile("'\d'", "", "eval") at 0x0263842DFC90, file "",

[issue40066] Enum._convert should change __repr__ and/or __str__ to use module name instead of class name

2020-04-10 Thread Vedran Čačić
Vedran Čačić added the comment: > _in some cases when enum instances are exposed as module globals_ Yes. And repr should be inverse of eval, but it's probably too late for that. :-/ -- nosy: +veky ___ Python tracker

[issue40235] confusing documentation for IOBase.__exit__

2020-04-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Please post or attach *minimal* and complete (runnable as is) code that does not do what you expect. -- nosy: +terry.reedy ___ Python tracker

[issue40244] AIX: build: _PyObject_GC_TRACK Asstertion failure

2020-04-10 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +BTaskaya, pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2020-04-10 Thread Guido van Rossum
Guido van Rossum added the comment: That may well be correct. Do you want to submit a PR to fix it? -- ___ Python tracker ___ ___

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

2020-04-10 Thread Guido van Rossum
Guido van Rossum added the comment: But that is the tokenize.py module. It does not have 100% the same behavior as the builtin tokenizer.c module. In this case it probably doesn't. -- ___ Python tracker

[issue30140] Binary arithmetic does not always call subclasses first

2020-04-10 Thread Guido van Rossum
Guido van Rossum added the comment: Let's give up on this one. -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40208] Remove deprecated symtable.SymbolTable.has_exec

2020-04-10 Thread Guido van Rossum
Guido van Rossum added the comment: Yeah, this seems safe to remove. If somebody's code breaks, that will just help them remove some dead code. -- ___ Python tracker ___

[issue40219] ttk LabeledScale: label covered by hidden element

2020-04-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.6 only get security fixes, but your nice minimal, complete verifiable example let me verify easily on 3.9a5 with tk 8.6.9 and 3.6 with 8.6.6 and 2.7.17 with 8.5.19. The hidden element appears to be something like'||' with only part visible, depending on

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

2020-04-10 Thread Chih-Hsuan Yen
Change by Chih-Hsuan Yen : -- nosy: +yan12125 nosy_count: 5.0 -> 6.0 pull_requests: +18824 pull_request: https://github.com/python/cpython/pull/19469 ___ Python tracker ___

[issue40218] sys.executable is a false path if python is executed from gdb

2020-04-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: I shortened the title so that 'gdb' shows. I have never used gdb, but I am curious what *is* the path to the python running the python code after 'python'? Is it part of or included with gdb? If so, this seems a gdb bug, as it is the responsibility of

[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

[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:

[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)

[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)

[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)

[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

[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 ___

[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

[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

[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

[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:

[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

[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:

[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 ___

[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)

[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)

[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

[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:

[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

[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

[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

[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)

[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:

[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

[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 ___ ___

[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 ___

[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

[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 ___ ___

[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

[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

[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
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

[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

[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 ___ ___

[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

[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

[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. --

[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 ___ ___

[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 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 "",

[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 --

[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 ___

[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

[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,

[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 ___

[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

[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 ___

[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

[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

[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

[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 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'' ^

[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?

[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:

[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 ___ ___

[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
Change by hai shi : -- keywords: +patch pull_requests: +18816 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19460 ___ Python tracker ___

[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

[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

[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

[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

[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

[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: Looks like it was fixed by PR 19009 (bpo-39360)). -- ___ Python tracker ___ ___ Python-bugs-list

[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

[issue39598] Spam magnet

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

[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 ___

[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 --

[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

[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 ___

[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

[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

[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

[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 ___

[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.

[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; > >

[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

[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

[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:

[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:

[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:

[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:

[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

[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

[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 ___

[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

[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) --

[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

  1   2   >