[issue42784] issues with object.h includes

2020-12-29 Thread Big Boss
New submission from Big Boss : using #include in header files is known to cause conflict with other projects using similar header file. Best workaround should be renaming to . Probably better to do the same thing to other header files as well. Or wrap it around with a folder. Like

[issue40137] TODO list when PEP 573 "Module State Access from C Extension Methods" will be implemented

2020-12-29 Thread hai shi
hai shi added the comment: After PR 23405 and PR 24006 merged, I think this bpo can be closed. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue40137] TODO list when PEP 573 "Module State Access from C Extension Methods" will be implemented

2020-12-29 Thread hai shi
hai shi added the comment: > I wrote PR 24006 to fix the leak. Oh, thanks for your fix, victor. -- ___ Python tracker ___ ___

[issue42763] Exposing a race in the "_warnings" resulting Python parser crash

2020-12-29 Thread Xinmeng Xia
Xinmeng Xia added the comment: Now I see. By the way, I think this case should be moved back to "cpython/Lib/test/crashers/" since the bug still exists. It is not fixed completely, the old case is outdated. I suggest we can put the new case into directory "crashers". --

[issue42717] The python interpreter crashed with "_enter_buffered_busy"

2020-12-29 Thread Xinmeng Xia
Xinmeng Xia added the comment: Thank you for your patient reply. I see now. Hoping that some one can figure out a good idea to fix this problem. -- ___ Python tracker ___

[issue42780] os.set_inheritable() fails for O_PATH file descriptors on Linux

2020-12-29 Thread cptpcrd
cptpcrd added the comment: > I like this approach! Should I put together unit tests to go with the patch? Maybe `test_os.FDInheritanceTests.test_set_inheritable_o_path()`? -- ___ Python tracker

[issue40137] TODO list when PEP 573 "Module State Access from C Extension Methods" will be implemented

2020-12-29 Thread STINNER Victor
STINNER Victor added the comment: New changeset ba0e49a4648e727d1a16b3ce479499eb39f22311 by Victor Stinner in branch 'master': bpo-40137: Fix refleak in _functools_exec() (GH-24006) https://github.com/python/cpython/commit/ba0e49a4648e727d1a16b3ce479499eb39f22311 --

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

2020-12-29 Thread STINNER Victor
STINNER Victor added the comment: > No refs leaking anymore!? Well, there is another test: $ ./python -X showrefcount -c pass [23547 refs, 6589 blocks] Python still leaks 23547 refs at exit. -- ___ Python tracker

[issue42747] Remove Py_TPFLAGS_HAVE_VERSION_TAG flag?

2020-12-29 Thread STINNER Victor
STINNER Victor added the comment: Ah, I see that there is a misunderstanding. The flag is used for two things: (*) Create/Declare a type IMO Py_TPFLAGS_HAVE_VERSION_TAG and Py_TPFLAGS_HAVE_FINALIZE are useless for that. (*) Check if a type has the flag An extension built with the stable

[issue42747] Remove Py_TPFLAGS_HAVE_VERSION_TAG flag?

2020-12-29 Thread STINNER Victor
STINNER Victor added the comment: Serhiy Storchaka: > I don't think that it was right thing to break binary compatibility. It > virtually buried the stable ABI. IMO there is a misunderstanding about the stable ABI. PyType_FromSpec() doesn't need Py_TPFLAGS_HAVE_xxx flags: this function

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

2020-12-29 Thread Paulo Henrique Silva
Paulo Henrique Silva added the comment: Repeated msg355187 testing on master[056c08211b]. --- #include void func() { Py_Initialize(); Py_Finalize(); Py_ssize_t cnt = _Py_GetRefTotal(); printf("sys.gettotalrefcount(): %zd\n", cnt); } int main(int argc, char *argv[]) {

[issue42749] test_tcl failed on 32-bit POWER6 AIX 3.9: big int issue with 9223372036854775808

2020-12-29 Thread STINNER Victor
STINNER Victor added the comment: I confirm that test_tcl pass again on POWER6 AIX 3.9. Thanks Serhiy for the fix! I checked the following build: https://buildbot.python.org/all/#/builders/330/builds/229 -- resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue40137] TODO list when PEP 573 "Module State Access from C Extension Methods" will be implemented

2020-12-29 Thread STINNER Victor
STINNER Victor added the comment: I wrote PR 24006 to fix the leak. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40137] TODO list when PEP 573 "Module State Access from C Extension Methods" will be implemented

2020-12-29 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +22848 pull_request: https://github.com/python/cpython/pull/24006 ___ Python tracker ___

[issue40137] TODO list when PEP 573 "Module State Access from C Extension Methods" will be implemented

2020-12-29 Thread STINNER Victor
STINNER Victor added the comment: The following commit introduces a reference leak: commit dd39123970892733c317f235808638ae5c0ccf04 Author: Hai Shi Date: Tue Dec 29 20:45:07 2020 +0800 bpo-40137: Convert _functools module to use PyType_FromModuleAndSpec. (GH-23405)

[issue42780] os.set_inheritable() fails for O_PATH file descriptors on Linux

2020-12-29 Thread STINNER Victor
STINNER Victor added the comment: > 2. On Linux, fall back on fcntl() if ioctl(FIOCLEX) fails with EBADF. I like this approach! -- ___ Python tracker ___

[issue42781] functools.cached_property docs should explain that it is non-overriding

2020-12-29 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: -rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27640] add the '--disable-test-suite' option to configure

2020-12-29 Thread STINNER Victor
STINNER Victor added the comment: pr23886_files.diff: see https://github.com/python/cpython/pull/23886#issuecomment-752279731 -- ___ Python tracker ___

[issue27640] add the '--disable-test-suite' option to configure

2020-12-29 Thread STINNER Victor
Change by STINNER Victor : Added file: https://bugs.python.org/file49707/pr23886_files.diff ___ Python tracker ___ ___ Python-bugs-list

[issue40052] Incorrect pointer alignment in _PyVectorcall_Function() of cpython/abstract.h

2020-12-29 Thread miss-islington
Change by miss-islington : -- pull_requests: +22847 pull_request: https://github.com/python/cpython/pull/24005 ___ Python tracker ___

[issue40052] Incorrect pointer alignment in _PyVectorcall_Function() of cpython/abstract.h

2020-12-29 Thread miss-islington
miss-islington added the comment: New changeset 056c08211b402b4dbc1530a9de9d00ad5309909f by Petr Viktorin in branch 'master': bpo-40052: Fix alignment issue in PyVectorcall_Function() (GH-23999) https://github.com/python/cpython/commit/056c08211b402b4dbc1530a9de9d00ad5309909f --

[issue42781] functools.cached_property docs should explain that it is non-overriding

2020-12-29 Thread Luciano Ramalho
Luciano Ramalho added the comment: > FYI, the usual term is "data descriptor" instead of "overriding descriptor". Yes, the Python docs are consistent in always using "data descriptor", but I've adopted "overriding descriptor" from Martelli's Python in a Nutshell--in Fluent Python I also put

[issue42560] Improve Tkinter Documentation

2020-12-29 Thread FredInChina
FredInChina added the comment: Ah, I understand now, thank you for the clear explanation @epaine, appreciated. Thanks also for the link to Pr. Shipman's docs mirror on tkdocs. It is not my place to argue what to do in such a case, but please allow me to re-emphasize the need for better

[issue42773] build.yml workflow not testing on pushes

2020-12-29 Thread Filipe Laíns
Filipe Laíns added the comment: This is due to a typo, I commented on the original PR and opened a PR fixing it. Cheers :) -- ___ Python tracker ___

[issue42773] build.yml workflow not testing on pushes

2020-12-29 Thread Filipe Laíns
Change by Filipe Laíns : -- keywords: +patch pull_requests: +22846 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24004 ___ Python tracker ___

[issue42780] os.set_inheritable() fails for O_PATH file descriptors on Linux

2020-12-29 Thread Benjamin Peterson
Benjamin Peterson added the comment: Doing two syscalls does not seem so bad. Linux may allow FIOCLEX on O_PATH in the future. -- nosy: +benjamin.peterson versions: +Python 3.6, Python 3.7 ___ Python tracker

[issue42780] os.set_inheritable() fails for O_PATH file descriptors on Linux

2020-12-29 Thread Alexey Izbyshev
Change by Alexey Izbyshev : -- components: +Library (Lib) nosy: +vstinner versions: -Python 3.6, Python 3.7 ___ Python tracker ___

[issue42762] infinite loop resulted by "yield"

2020-12-29 Thread Steve Stagg
Steve Stagg added the comment: (sorry for spam!) So, this is a retained reference issue. If I change the script to be this: --- import gc DEPTH = 100 def foo(): global DEPTH try: yield except BaseException as e: DEPTH -= 1 if DEPTH < 1:

[issue42762] infinite loop resulted by "yield"

2020-12-29 Thread Steve Stagg
Steve Stagg added the comment: That /is/ weird. I tried a few variations, and it looks like something is being stored on the exception that is stopping the loop behaviour. "except BaseException:" <- infinite loop "except BaseException as e:" <- NO loop "except BaseException as e:

[issue42742] Add abc.Mapping to dataclass

2020-12-29 Thread Anton Abrosimov
Anton Abrosimov added the comment: Link to python-ideas thread: https://mail.python.org/archives/list/python-id...@python.org/thread/XNXCUJVNOOVPAPL6LF627EOCBUUUX2DG/ -- ___ Python tracker

[issue42783] asyncio.sleep(0) idiom is not documented

2020-12-29 Thread Simon Willison
Change by Simon Willison : -- keywords: +patch pull_requests: +22845 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24002 ___ Python tracker ___

[issue42783] asyncio.sleep(0) idiom is not documented

2020-12-29 Thread Simon Willison
New submission from Simon Willison : asyncio.sleep(0) is the recommended idiom for co-operatively yielding control of the event loop to another task: https://github.com/python/asyncio/issues/284 and https://til.simonwillison.net/python/yielding-in-asyncio This isn't currently explained in

[issue42781] functools.cached_property docs should explain that it is non-overriding

2020-12-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: FYI, the usual term is "data descriptor" instead of "overriding descriptor". Normally the docs for things like property() and cached_property() don't mention the term descriptor at all. From the user point of view, that is an implementation detail.

[issue42782] shutil.move creates a new directory even on failure

2020-12-29 Thread Winson Luk
Winson Luk added the comment: To replicate: $ mkdir foo $ sudo chown root foo $ sudo touch foo/child $ python3 >>> import shutil >>> shutil.move('foo', 'bar') PermissionError $ ls foo child $ ls bar child If shutil.move() encountered a permission error and failed, bar should not have been

[issue42560] Improve Tkinter Documentation

2020-12-29 Thread E. Paine
E. Paine added the comment: > shouldn't the docs be made available for the currently maintained version of > python? Problem is the Tk version (which underpins tkinter) varies by distribution. Currently, Windows and MacOS Intel installers are packaged with 8.6.8, while MacOS Universal2 is

[issue42782] shutil.move creates a new directory even on failure

2020-12-29 Thread Winson Luk
New submission from Winson Luk : shutil.move calls shutil.copytree(), then os.rmtree() (in that order). If the user does not have permission to delete the source directory, copytree succeeds but rmtree fails. The user sees an error (Permission Denied), but the destination directory is still

[issue42782] shutil.move creates a new directory even on failure

2020-12-29 Thread Winson Luk
Change by Winson Luk : -- keywords: +patch pull_requests: +22843 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24001 ___ Python tracker ___

[issue42782] shutil.move creates a new directory even on failure

2020-12-29 Thread Winson Luk
Change by Winson Luk : -- components: Library (Lib) nosy: winsonluk priority: normal severity: normal status: open title: shutil.move creates a new directory even on failure type: behavior versions: Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9

[issue42775] __init_subclass__ should be called in __init__

2020-12-29 Thread Guido van Rossum
Guido van Rossum added the comment: I see this as a backwards incompatible change and it's not worth doing for what seems to me a very minor benefit. -- ___ Python tracker

[issue42781] functools.cached_property docs should explain that it is non-overriding

2020-12-29 Thread Luciano Ramalho
New submission from Luciano Ramalho : functools.cached_property is a great addition to the standard library, thanks! However, the docs do not say that @cached_property produces a non-overriding descriptor, in contrast with @property. If a user replaces a @property with a @cached_property,

[issue42762] infinite loop resulted by "yield"

2020-12-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: Even weirder, the old behavior returns if "except:" is replaced by "except BaseException as e:". def foo(): try: yield except BaseException as e: yield from foo() for m in foo(): print(i)

[issue42673] Optimize round_size for rehashing

2020-12-29 Thread Jurjen N.E. Bos
Jurjen N.E. Bos added the comment: Harsh, but fair. I'll do a better job next time! Op di 29 dec. 2020 13:42 schreef Serhiy Storchaka : > > Serhiy Storchaka added the comment: > > Since no benchmarking data was provided, I suggest to close this issue. We > do not accept optimization changes

[issue41559] Add support for PEP 612 (Parameter Specification Variables) to typing.py

2020-12-29 Thread Ken Jin
Change by Ken Jin : -- pull_requests: +22842 pull_request: https://github.com/python/cpython/pull/24000 ___ Python tracker ___ ___

[issue42780] os.set_inheritable() fails for O_PATH file descriptors on Linux

2020-12-29 Thread cptpcrd
New submission from cptpcrd : Note: I filed this bug report after seeing https://github.com/rust-lang/rust/pull/62425 and verifying that it was also reproducible on Python. Credit for discovering the underlying issue should go to Aleksa Sarai, and further discussion can be found there. #

[issue37157] shutil: add reflink=False to file copy functions to control clone/CoW copies (use copy_file_range)

2020-12-29 Thread Albert Zeyer
Albert Zeyer added the comment: Is FICLONE really needed? Doesn't copy_file_range already supports the same? I posted the same question here: https://stackoverflow.com/questions/65492932/ficlone-vs-ficlonerange-vs-copy-file-range-for-copy-on-write-support -- nosy: +Albert.Zeyer

[issue40052] Incorrect pointer alignment in _PyVectorcall_Function() of cpython/abstract.h

2020-12-29 Thread Petr Viktorin
Change by Petr Viktorin : -- nosy: +petr.viktorin nosy_count: 4.0 -> 5.0 pull_requests: +22841 pull_request: https://github.com/python/cpython/pull/23999 ___ Python tracker

[issue42762] infinite loop resulted by "yield"

2020-12-29 Thread Steve Stagg
Steve Stagg added the comment: Ok, so I now understand a bit more, and think it's not a bug! But explaining it involves some fairly deep thinking about generators. I'll try to explain my reasoning. Let's take a simple example: --- def foo(): try: yield except:

[issue42762] infinite loop resulted by "yield"

2020-12-29 Thread Steve Stagg
Steve Stagg added the comment: I'm sorry, I did get a bit confused earlier, I'd mentally switched to context managers. I agree this is a bug, and a kinda weird one! I've narrowed it down to this: If an exception causes flow to exit a for-loop that's powered by a generator, then when the

[issue42658] os.path.normcase() is inconsistent with Windows file system

2020-12-29 Thread Eryk Sun
Eryk Sun added the comment: > "lowercase two strings by means of LCMapStringEx() and then wcscmp > the two" always gives the same result as "compare the two strings > with CompareStringOrdinal()" For checking case-insensitive equality, it shouldn't matter whether names are converted to

[issue42756] smtplib.LMTP.connect() raises TypeError if `timeout` is not specified

2020-12-29 Thread Wüstengecko
Wüstengecko added the comment: Hello, I can confirm that the PR resolves the issue. Thanks for the quick fix! -- ___ Python tracker ___

[issue42763] Exposing a race in the "_warnings" resulting Python parser crash

2020-12-29 Thread Steve Stagg
Steve Stagg added the comment: If we take your minimal example (that /sometimes/ crashes), and look at what python is doing: import threading t = threading.Thread(target=1, daemon=True).start() --- The main thread does the following: M1. Startup interpreter, parse code M2. Import &

[issue42779] pow() of huge input does not complete

2020-12-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The computational complexity of algorithm used to convert integer to decimals is proportional to the cube of the size of the number. It is known issue. There are better algorithms (perhaps gmpy2 uses them), but they benefit only extremely large numbers,

[issue42779] pow() of huge input does not complete

2020-12-29 Thread minipython
minipython <599192...@qq.com> added the comment: oh.You are right.If i directly compute the huge result without printing,it only takes 115s.Thank you very much.I'm sorry to forget noting the print function. -- ___ Python tracker

[issue42717] The python interpreter crashed with "_enter_buffered_busy"

2020-12-29 Thread Steve Stagg
Steve Stagg added the comment: It's one of those ugly multithreading issues that's really hard to reason about unfortunately. In this case, it's not the size of the loop so much as you've discovered a way to make it very likely that the background thread is doing IO (and holding the IO

[issue42749] test_tcl failed on 32-bit POWER6 AIX 3.9: big int issue with 9223372036854775808

2020-12-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: test_tcl is passed: https://buildbot.python.org/all/#/builders/330/builds/228 . -- ___ Python tracker ___

[issue42779] pow() of huge input does not complete

2020-12-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Are you sure that this is a time of calculating pow() and not the time of calculating decimal representation of the result? On my computer: >>> t = time(); a = pow(c, 2**14+1); time()-t 11.957276344299316 >>> t = time(); a = pow(c, 2**15+1); time()-t

[issue42655] Fix subprocess extra_groups gid conversion

2020-12-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your contribution Jakub. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue42700] xml.parsers.expat.errors description of codes/messages is flipped

2020-12-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your contribution Michael. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.6, Python 3.7 ___ Python tracker

[issue41224] Document is_annotate() in symtable and update doc strings

2020-12-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The method was added in 3.6. Please backport documentation changes to 3.9 and 3.8. -- stage: resolved -> needs patch status: closed -> open versions: +Python 3.8, Python 3.9 -Python 3.10 ___ Python tracker

[issue41224] Document is_annotate() in symtable and update doc strings

2020-12-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 2edfc86f69d8a74f4821974678f664ff94a9dc22 by Andre Delfino in branch 'master': bpo-41224: Add versionadded for Symbol.is_annotated (GH-23861) https://github.com/python/cpython/commit/2edfc86f69d8a74f4821974678f664ff94a9dc22 -- nosy:

[issue40956] Use Argument Clinic in sqlite3

2020-12-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 84d79cfda947f6bc28a5aa11db8055aa40a6b03a by Erlend Egeberg Aasland in branch 'master': bpo-40956: Convert _sqlite3.Row to Argument Clinic (GH-23964) https://github.com/python/cpython/commit/84d79cfda947f6bc28a5aa11db8055aa40a6b03a

[issue42655] Fix subprocess extra_groups gid conversion

2020-12-29 Thread miss-islington
miss-islington added the comment: New changeset 3966e2ea412a5f190dc8655d9aa7a15c08c4e280 by Miss Islington (bot) in branch '3.9': bpo-42655: Fix subprocess extra_groups gid conversion (GH-23762) https://github.com/python/cpython/commit/3966e2ea412a5f190dc8655d9aa7a15c08c4e280 --

[issue23328] urllib.request fails for proxy credentials that contain a '/' character

2020-12-29 Thread Senthil Kumaran
Senthil Kumaran added the comment: Merged in 3.10 - https://github.com/python/cpython/commit/030a713183084594659aefd77b76fe30178e23c8 3.9 - https://github.com/python/cpython/commit/df794406a8803e3d6062af8404d7564833f9af28 3.8 -

[issue42779] pow() of huge input does not complete

2020-12-29 Thread minipython
minipython <599192...@qq.com> added the comment: Here are my information. 1.python 3.8.6 2.windows 10(build 19042 20h2) 3. 16Gb memory 4. It doesn't complete.It takes about 30 minutes but it gives no output. 5. It takes 6.346898794174194s 6. It takes 0.3690004348754883s. -- versions:

[issue37159] Use copy_file_range() in shutil.copyfile() (server-side copy)

2020-12-29 Thread Albert Zeyer
Albert Zeyer added the comment: According to the man page of copy_file_range (https://man7.org/linux/man-pages/man2/copy_file_range.2.html), copy_file_range also should support copy-on-write: > copy_file_range() gives filesystems an opportunity to implement > "copy acceleration"

[issue42655] Fix subprocess extra_groups gid conversion

2020-12-29 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +22840 pull_request: https://github.com/python/cpython/pull/23997 ___ Python tracker

[issue42655] Fix subprocess extra_groups gid conversion

2020-12-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 0159e5efeebd12b3cf365c8569ca000eac7cb03e by Jakub Kulík in branch 'master': bpo-42655: Fix subprocess extra_groups gid conversion (GH-23762) https://github.com/python/cpython/commit/0159e5efeebd12b3cf365c8569ca000eac7cb03e -- nosy:

[issue42700] xml.parsers.expat.errors description of codes/messages is flipped

2020-12-29 Thread miss-islington
miss-islington added the comment: New changeset cc7f745e80bc177dfc746b057e1c7656b78382e5 by Miss Islington (bot) in branch '3.9': bpo-42700: Swap descriptions in pyexpat.errors (GH-23876) https://github.com/python/cpython/commit/cc7f745e80bc177dfc746b057e1c7656b78382e5 --

[issue40137] TODO list when PEP 573 "Module State Access from C Extension Methods" will be implemented

2020-12-29 Thread miss-islington
miss-islington added the comment: New changeset dd39123970892733c317f235808638ae5c0ccf04 by Hai Shi in branch 'master': bpo-40137: Convert _functools module to use PyType_FromModuleAndSpec. (GH-23405) https://github.com/python/cpython/commit/dd39123970892733c317f235808638ae5c0ccf04

[issue42700] xml.parsers.expat.errors description of codes/messages is flipped

2020-12-29 Thread miss-islington
miss-islington added the comment: New changeset 70ced2dd27ee59abee9af6926e9ce7d93f06f885 by Miss Islington (bot) in branch '3.8': bpo-42700: Swap descriptions in pyexpat.errors (GH-23876) https://github.com/python/cpython/commit/70ced2dd27ee59abee9af6926e9ce7d93f06f885 --

[issue42673] Optimize round_size for rehashing

2020-12-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Since no benchmarking data was provided, I suggest to close this issue. We do not accept optimization changes without evidences of performance boost. -- status: open -> pending ___ Python tracker

[issue42778] Add follow_symlinks=True parameter to both os.path.samefile() and Path.samefile()

2020-12-29 Thread Ross Rhodes
Ross Rhodes added the comment: Hi Tom, Thanks for raising this issue. I've opened a PR to permit us to set `follow_symlinks` in both os.path and pathlib. Feel free to leave feedback. -- ___ Python tracker

[issue42778] Add follow_symlinks=True parameter to both os.path.samefile() and Path.samefile()

2020-12-29 Thread Ross Rhodes
Change by Ross Rhodes : -- keywords: +patch nosy: +trrhodes nosy_count: 1.0 -> 2.0 pull_requests: +22839 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23996 ___ Python tracker

[issue41224] Document is_annotate() in symtable and update doc strings

2020-12-29 Thread Andrés Delfino
Change by Andrés Delfino : -- nosy: +adelfino nosy_count: 2.0 -> 3.0 pull_requests: +22838 pull_request: https://github.com/python/cpython/pull/23861 ___ Python tracker ___

[issue42700] xml.parsers.expat.errors description of codes/messages is flipped

2020-12-29 Thread miss-islington
Change by miss-islington : -- pull_requests: +22837 pull_request: https://github.com/python/cpython/pull/23995 ___ Python tracker ___

[issue42700] xml.parsers.expat.errors description of codes/messages is flipped

2020-12-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 84402eb11086f97d31164aaa23e7238da3464f41 by Michael Wayne Goodman in branch 'master': bpo-42700: Swap descriptions in pyexpat.errors (GH-23876) https://github.com/python/cpython/commit/84402eb11086f97d31164aaa23e7238da3464f41 --

[issue42700] xml.parsers.expat.errors description of codes/messages is flipped

2020-12-29 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +22836 pull_request: https://github.com/python/cpython/pull/23994 ___ Python tracker

[issue42728] Typo in documentation: importlib.metadata

2020-12-29 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +brett.cannon, eric.snow, ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue23328] urllib.request fails for proxy credentials that contain a '/' character

2020-12-29 Thread Senthil Kumaran
Change by Senthil Kumaran : -- versions: +Python 3.8, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue42779] pow() of huge input does not complete

2020-12-29 Thread Steven D'Aprano
Change by Steven D'Aprano : -- components: +Interpreter Core -C API title: Pow compute can only available in python3.7 -> pow() of huge input does not complete versions: +Python 3.6, Python 3.9 -Python 3.7 ___ Python tracker

[issue38435] Start the deprecation cycle for subprocess preexec_fn

2020-12-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Would not be more consistent with other parameters to name the new parameter "pgid" or "process_group"? And why not use None as default, like for user and group? -- nosy: +serhiy.storchaka ___ Python tracker

[issue23328] urllib.request fails for proxy credentials that contain a '/' character

2020-12-29 Thread miss-islington
Change by miss-islington : -- pull_requests: +22835 pull_request: https://github.com/python/cpython/pull/23993 ___ Python tracker ___

[issue23328] urllib.request fails for proxy credentials that contain a '/' character

2020-12-29 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +22834 pull_request: https://github.com/python/cpython/pull/23992 ___ Python tracker

[issue42779] Pow compute can only available in python3.7

2020-12-29 Thread Steven D'Aprano
Steven D'Aprano added the comment: I cannot replicate that. On my computer, I can compute pow(c, e) in approximately two minutes using Python 3.9: >>> from time import time >>> t = time(); a = pow(c, e); time()-t 122.07566785812378 >>> math.log10(a) 50473921.44753242 Can you give more

[issue40633] json.dumps() should encode float number NaN to null

2020-12-29 Thread Luca Barba
Luca Barba added the comment: I agree with arjanstaring This implementation is not standard compliant and breaks interoperability with every ECMA compliant Javascript deserializer. Technically is awful of course but interoperability and standardization come before than technical

[issue41781] Typos in typing.py

2020-12-29 Thread hai shi
hai shi added the comment: Thanks Patrick for your PR. Thanks Serhiy for your merge. -- nosy: +shihai1991 resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue41781] Typos in typing.py

2020-12-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset c1af128f5a5893839536453dcc8b2ed7b95b3c3a by Ross in branch 'master': bpo-41781: Fix typo in internal function name in typing (GH-23957) https://github.com/python/cpython/commit/c1af128f5a5893839536453dcc8b2ed7b95b3c3a -- nosy:

[issue16396] Importing ctypes.wintypes on Linux gives a ValueError instead of an ImportError

2020-12-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 71d73900ebd4a93a64dae9d2fbef4337fa975e66 by Miss Islington (bot) in branch '3.9': bpo-16396: fix BPO number in changelog (GH-23951) (GH-23956) https://github.com/python/cpython/commit/71d73900ebd4a93a64dae9d2fbef4337fa975e66 --

[issue42779] Pow compute can only available in python3.7

2020-12-29 Thread minipython
minipython <599192...@qq.com> added the comment: The issue is that if i use function pow(c,e),it can be computed in python37 in 3 minutes.But it cannot be computed in python36 or python39.Without gmpy2 library,i find the bug. -- ___ Python tracker

[issue42776] The string find method shows the problem

2020-12-29 Thread Eric V. Smith
Eric V. Smith added the comment: 'abcddd'.find('a', start=0) would appear to be allowed from the help text, but it isn't legal. This is because .find() does not allow keyword arguments. It looks like find could be documented as find(self, sub, start=None, end=None, /) Although it doesn't

[issue42779] Pow compute can only available in python3.7

2020-12-29 Thread Steven D'Aprano
Steven D'Aprano added the comment: What error are you getting? Can you demonstrate the error without gmpy2, as that is a third-party library and nothing to do with us. -- nosy: +steven.daprano ___ Python tracker

[issue42759] Take into acount a Tcl interpreter when compare variables and fonts

2020-12-29 Thread miss-islington
miss-islington added the comment: New changeset 578caafabe1de652a8f31dbeb8cc660e1ed725eb by Miss Islington (bot) in branch '3.9': bpo-42759: Fix equality comparison of Variable and Font in Tkinter (GH-23968) https://github.com/python/cpython/commit/578caafabe1de652a8f31dbeb8cc660e1ed725eb

[issue42749] test_tcl failed on 32-bit POWER6 AIX 3.9: big int issue with 9223372036854775808

2020-12-29 Thread miss-islington
miss-islington added the comment: New changeset 7bdb3e08251894b49e7893db1dc4868e2656b342 by Miss Islington (bot) in branch '3.9': bpo-42749: Use dynamic version to test for unsupported bignum in Tk (GH-23966) https://github.com/python/cpython/commit/7bdb3e08251894b49e7893db1dc4868e2656b342

[issue42749] test_tcl failed on 32-bit POWER6 AIX 3.9: big int issue with 9223372036854775808

2020-12-29 Thread miss-islington
miss-islington added the comment: New changeset 323cbb5531eb72527d0e3b02f28c1cdc5b7fce92 by Miss Islington (bot) in branch '3.8': bpo-42749: Use dynamic version to test for unsupported bignum in Tk (GH-23966) https://github.com/python/cpython/commit/323cbb5531eb72527d0e3b02f28c1cdc5b7fce92

[issue42759] Take into acount a Tcl interpreter when compare variables and fonts

2020-12-29 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 1.0 -> 2.0 pull_requests: +22833 pull_request: https://github.com/python/cpython/pull/23991 ___ Python tracker

[issue42759] Take into acount a Tcl interpreter when compare variables and fonts

2020-12-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 1df56bc0597a051c13d53514e120e9b6764185f8 by Serhiy Storchaka in branch 'master': bpo-42759: Fix equality comparison of Variable and Font in Tkinter (GH-23968) https://github.com/python/cpython/commit/1df56bc0597a051c13d53514e120e9b6764185f8

[issue42749] test_tcl failed on 32-bit POWER6 AIX 3.9: big int issue with 9223372036854775808

2020-12-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 156b7f7052102ee1633a18e9a136ad8c38f66db0 by Serhiy Storchaka in branch 'master': bpo-42749: Use dynamic version to test for unsupported bignum in Tk (GH-23966) https://github.com/python/cpython/commit/156b7f7052102ee1633a18e9a136ad8c38f66db0

[issue42749] test_tcl failed on 32-bit POWER6 AIX 3.9: big int issue with 9223372036854775808

2020-12-29 Thread miss-islington
Change by miss-islington : -- pull_requests: +22831 pull_request: https://github.com/python/cpython/pull/23989 ___ Python tracker ___

[issue42749] test_tcl failed on 32-bit POWER6 AIX 3.9: big int issue with 9223372036854775808

2020-12-29 Thread miss-islington
Change by miss-islington : -- pull_requests: +22832 pull_request: https://github.com/python/cpython/pull/23990 ___ Python tracker ___

[issue42747] Remove Py_TPFLAGS_HAVE_VERSION_TAG flag?

2020-12-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't think that it was right thing to break binary compatibility. It virtually buried the stable ABI. -- nosy: +serhiy.storchaka ___ Python tracker

  1   2   >