[issue35714] Document that the null character '\0' terminates a struct format spec

2020-05-26 Thread miss-islington
miss-islington added the comment: New changeset 5221a10dde4a3853fe7ace316d95767648055109 by Miss Islington (bot) in branch '3.9': bpo-35714: Reject null characters in struct format strings (GH-16928) https://github.com/python/cpython/commit/5221a10dde4a3853fe7ace316d95767648055109 -

[issue35714] Document that the null character '\0' terminates a struct format spec

2020-05-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Zackery, do you mind to create a backport to 3.8? -- ___ Python tracker ___ ___ Python-bugs-lis

[issue31485] Tkinter widget.unbind(sequence, funcid) unbind all bindings

2020-05-26 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: +Python 3.10 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue39301] Specification of bitshift on integers should clearly state floor division used

2020-05-26 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +19673 pull_request: https://github.com/python/cpython/pull/20414 ___ Python tracker _

[issue39301] Specification of bitshift on integers should clearly state floor division used

2020-05-26 Thread Mark Dickinson
Mark Dickinson added the comment: New changeset af7553ac95a96713be847dd45bc5a8aeb0a75955 by Zackery Spytz in branch 'master': bpo-39301: State that floor division is used for right shift operations (GH-20347) https://github.com/python/cpython/commit/af7553ac95a96713be847dd45bc5a8aeb0a75955

[issue39301] Specification of bitshift on integers should clearly state floor division used

2020-05-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +19675 pull_request: https://github.com/python/cpython/pull/20416 ___ Python tracker ___ __

[issue39301] Specification of bitshift on integers should clearly state floor division used

2020-05-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +19674 pull_request: https://github.com/python/cpython/pull/20415 ___ Python tracker ___ __

[issue39301] Specification of bitshift on integers should clearly state floor division used

2020-05-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +19676 pull_request: https://github.com/python/cpython/pull/20417 ___ Python tracker ___ __

[issue40775] Fix missing dot in sqlite3 Node type name

2020-05-26 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- components: Library (Lib) nosy: erlendaasland priority: normal severity: normal status: open title: Fix missing dot in sqlite3 Node type name versions: Python 3.10, Python 3.8, Python 3.9 ___ Python tracker

[issue40775] Fix missing dot in sqlite3 Node type name

2020-05-26 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- keywords: +patch pull_requests: +19677 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20418 ___ Python tracker _

[issue40762] Writing bytes using CSV module results in b prefixed strings

2020-05-26 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: I don't think this would be accepted but I think you could try to propose that on the python-ideas mailing list to get some feedback on your proposal. -- nosy: +skip.montanaro ___ Python tracker

[issue35714] Document that the null character '\0' terminates a struct format spec

2020-05-26 Thread Zackery Spytz
Change by Zackery Spytz : -- pull_requests: +19678 pull_request: https://github.com/python/cpython/pull/20419 ___ Python tracker ___ ___

[issue39301] Specification of bitshift on integers should clearly state floor division used

2020-05-26 Thread Mark Dickinson
Mark Dickinson added the comment: New changeset cc0f50d62c75a1d171f5de9b56caef64e79eb013 by Miss Islington (bot) in branch '3.9': bpo-39301: State that floor division is used for right shift operations (GH-20347) (GH-20414) https://github.com/python/cpython/commit/cc0f50d62c75a1d171f5de9b56c

[issue39301] Specification of bitshift on integers should clearly state floor division used

2020-05-26 Thread Mark Dickinson
Mark Dickinson added the comment: New changeset b068d892c1ba7b996e43aceb974bfadac3c577ed by Miss Islington (bot) in branch '3.7': bpo-39301: State that floor division is used for right shift operations (GH-20347) (GH-20416) https://github.com/python/cpython/commit/b068d892c1ba7b996e43aceb974

[issue39301] Specification of bitshift on integers should clearly state floor division used

2020-05-26 Thread Mark Dickinson
Mark Dickinson added the comment: New changeset c2a177adf3575d4eb81030fba851f78d7a8e3f51 by Miss Islington (bot) in branch '3.8': bpo-39301: State that floor division is used for right shift operations (GH-20347) (GH-20415) https://github.com/python/cpython/commit/c2a177adf3575d4eb81030fba85

[issue39301] Specification of bitshift on integers should clearly state floor division used

2020-05-26 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks Zackery for the fix! Nick: is this good enough to close, or would you like to see something more here? -- ___ Python tracker ___

[issue40762] Writing bytes using CSV module results in b prefixed strings

2020-05-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It would be confusing. There would be the encoding argument for open() to encode strings to bytes and the encoding argument for csv.writer() to decode bytes to strings. The latter will be ignored in all normal cases (for strings and numbers). --

[issue35714] Document that the null character '\0' terminates a struct format spec

2020-05-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +19679 pull_request: https://github.com/python/cpython/pull/20420 ___ Python tracker ___ __

[issue35714] Document that the null character '\0' terminates a struct format spec

2020-05-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 5ff5edfef63b3dbc1abb004b3fa4b3db87e79ff9 by Zackery Spytz in branch '3.8': [3.8] bpo-35714: Reject null characters in struct format strings (GH-16928) (GH-20419) https://github.com/python/cpython/commit/5ff5edfef63b3dbc1abb004b3fa4b3db87e79ff

[issue39673] Map errno==ETIME to TimeoutError

2020-05-26 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Sigh! I misread the OP's post and thought the proposal was to add TimeoutError which I forgot existed. Sorry for the noise and please disregard my previous comment. -- ___ Python tracker

[issue35714] Document that the null character '\0' terminates a struct format spec

2020-05-26 Thread miss-islington
miss-islington added the comment: New changeset 4ea802868460fad54e40cb99eb0ca283b3b293f0 by Miss Islington (bot) in branch '3.7': [3.8] bpo-35714: Reject null characters in struct format strings (GH-16928) (GH-20419) https://github.com/python/cpython/commit/4ea802868460fad54e40cb99eb0ca283b3

[issue40776] Python 3.7.6 installation issue on mac os x 10.6.8

2020-05-26 Thread Asmi Ariv
New submission from Asmi Ariv : I am unable to install Python 3.7.6 on my Macbook with OS X 10.6.8 (Snow Leopard). I am getting the following error: The operation couldn’t be completed. (com.apple.installer.pagecontroller error -1.) Couldn't open "python-3.7.6-macosx10.6.pkg". Is it possible

[issue39321] AMD64 FreeBSD Non-Debug 3.x: out of swap space (test process killed by signal 9)

2020-05-26 Thread STINNER Victor
STINNER Victor added the comment: > Added 8gb swap disk to each BB worker Great! Thank you very much! -- ___ Python tracker ___ __

[issue40654] shutil.copyfile mutates symlink for absolute path

2020-05-26 Thread Steve Dower
Steve Dower added the comment: > how could one write the `cmd.exe` `dir` command using Python? I haven't checked, but if the dir command resolves the entire symlink chain rather than one step at a time, you'd use realpath (though that seems unlikely, tbh). Failing that, you'd add extra logi

[issue40777] _datetimemodule.c:3328:16: error: initializer element is not constant

2020-05-26 Thread Sandro Mani
New submission from Sandro Mani : Hitting this when attempting to cross-compile python-3.9 to mingw: /builddir/build/BUILD/Python-3.9.0b1/Modules/_datetimemodule.c:3328:16: error: initializer element is not constant 3328 | .tp_base = &PyTuple_Type, Indeed PyTuple_Type does not have stati

[issue40637] Allow users to disable builtin hash modules on compile time

2020-05-26 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +19680 pull_request: https://github.com/python/cpython/pull/20422 ___ Python tracker ___

[issue29882] Add an efficient popcount method for integers

2020-05-26 Thread Mark Dickinson
Mark Dickinson added the comment: PR is updated and mergeable. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue35545] asyncio.base_events.create_connection doesn't handle scoped IPv6 addresses

2020-05-26 Thread Cheryl Sabella
Change by Cheryl Sabella : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue33678] selector_events.BaseSelectorEventLoop.sock_connect should preserve socket type

2020-05-26 Thread Cheryl Sabella
Cheryl Sabella added the comment: For reference, please note the comments in https://github.com/python/cpython/pull/11403#issuecomment-633779644. -- nosy: +cheryl.sabella ___ Python tracker

[issue40637] Allow users to disable builtin hash modules on compile time

2020-05-26 Thread Christian Heimes
Christian Heimes added the comment: New changeset be63019ed726b2da045bf232782062830bb6c27d by Christian Heimes in branch 'master': bpo-40637: Fix test_pbkdf2_hmac_py for missing sha1 (#20422) https://github.com/python/cpython/commit/be63019ed726b2da045bf232782062830bb6c27d -- _

[issue40637] Allow users to disable builtin hash modules on compile time

2020-05-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +19681 pull_request: https://github.com/python/cpython/pull/20423 ___ Python tracker ___ __

[issue40637] Allow users to disable builtin hash modules on compile time

2020-05-26 Thread miss-islington
miss-islington added the comment: New changeset 66391b0c6e792236b9f487283ae161bdaf0e7ad7 by Miss Islington (bot) in branch '3.9': bpo-40637: Fix test_pbkdf2_hmac_py for missing sha1 (GH-20422) https://github.com/python/cpython/commit/66391b0c6e792236b9f487283ae161bdaf0e7ad7 --

[issue40719] Add pt-br to the language switcher at the Python 3.6 and 2.7 docs website

2020-05-26 Thread Rafael Fontenelle
Rafael Fontenelle added the comment: 3.6 applied. Since 2.7 was already "sunsetted", leave as is. Closing. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker _

[issue40763] zipfile.extractall is safe by now

2020-05-26 Thread Va
Va added the comment: > It is not obvious to me that zipfile._extract_member() together with (for windows) zipfile._sanitize_windows_name() have handled everything that could happen. What hasn't been handled then? What is the safe way to use it? I think documenting "this function is unsafe" w

[issue40763] zipfile.extractall is safe by now?

2020-05-26 Thread Va
Change by Va : -- components: +Library (Lib) title: zipfile.extractall is safe by now -> zipfile.extractall is safe by now? type: behavior -> security ___ Python tracker ___ __

[issue38580] select()'s documentation claims only sequences are accepted, but it allows all iterables

2020-05-26 Thread Tal Einat
Change by Tal Einat : -- pull_requests: +19682 pull_request: https://github.com/python/cpython/pull/20424 ___ Python tracker ___ ___

[issue40737] Fix possible reference leak for sqlite3 initialization

2020-05-26 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 5eb45d7d4e812e89d77da84cc619e9db81561a34 by Erlend Egeberg Aasland in branch 'master': bpo-40737: Fix possible reference leak for sqlite3 initialization (GH-20323) https://github.com/python/cpython/commit/5eb45d7d4e812e89d77da84cc619e9db81561a34

[issue40737] Fix possible reference leak for sqlite3 initialization

2020-05-26 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +19683 pull_request: https://github.com/python/cpython/pull/20425 ___ Python tracker _

[issue38580] select()'s documentation claims only sequences are accepted, but it allows all iterables

2020-05-26 Thread Tal Einat
Change by Tal Einat : -- pull_requests: +19684 pull_request: https://github.com/python/cpython/pull/20426 ___ Python tracker ___ ___

[issue39673] Map errno==ETIME to TimeoutError

2020-05-26 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks for clarifying, Giampaolo. I'll accept this PR once it's cleaned up. -- ___ Python tracker ___

[issue40778] Updating Py_REFCNT and Py_SIZE to use _PyObject_CAST_CONS

2020-05-26 Thread Dong-hee Na
New submission from Dong-hee Na : See: https://github.com/python/cpython/pull/20290#discussion_r430007803 -- assignee: corona10 components: C API messages: 369974 nosy: corona10, vstinner priority: normal severity: normal status: open title: Updating Py_REFCNT and Py_SIZE to use _PyObje

[issue40737] Fix possible reference leak for sqlite3 initialization

2020-05-26 Thread Dong-hee Na
Change by Dong-hee Na : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue40737] Fix possible reference leak for sqlite3 initialization

2020-05-26 Thread miss-islington
miss-islington added the comment: New changeset 7df9c41c69e2af8d0d36452c09d243b0975495af by Miss Islington (bot) in branch '3.9': bpo-40737: Fix possible reference leak for sqlite3 initialization (GH-20323) https://github.com/python/cpython/commit/7df9c41c69e2af8d0d36452c09d243b0975495af --

[issue40754] ModuleNotFoundError: No module named '_testinternalcapi' under Win10

2020-05-26 Thread honglei jiang
honglei jiang added the comment: == Tests result: FAILURE == 357 tests OK. 24 tests failed: test__locale test_array test_buffer test_capi test_deque test_exceptions test_flufl test_grammar test_itertools test_locale test_memoryio test_ordered_dict test_parser test_pickle test_p

[issue38580] select()'s documentation claims only sequences are accepted, but it allows all iterables

2020-05-26 Thread Tal Einat
Tal Einat added the comment: New changeset 3f215f35bdb9d666f5a692fc60f800da1bb1e4a9 by Tal Einat in branch '3.7': [3.7] bpo-38580: Document that select() accepts iterables, not just sequences (GH-16832) https://github.com/python/cpython/commit/3f215f35bdb9d666f5a692fc60f800da1bb1e4a9 -

[issue38580] select()'s documentation claims only sequences are accepted, but it allows all iterables

2020-05-26 Thread Tal Einat
Tal Einat added the comment: New changeset e3e800f3d28881cc9de38cd9bcbcf8fbdea238a6 by Tal Einat in branch '3.8': [3.8] bpo-38580: Document that select() accepts iterables, not just sequences (GH-16832) https://github.com/python/cpython/commit/e3e800f3d28881cc9de38cd9bcbcf8fbdea238a6 -

[issue39321] AMD64 FreeBSD Non-Debug 3.x: out of swap space (test process killed by signal 9)

2020-05-26 Thread STINNER Victor
STINNER Victor added the comment: Oh. I'm not sure that it works as expected :-( AMD64 FreeBSD Non-Debug 3.x build 804, Finished 18 minutes ago: https://buildbot.python.org/all/#/builders/214/builds/804 0:33:28 load avg: 4.64 [329/425/1] test_code_module passed -- running: test_multiprocessi

[issue38580] select()'s documentation claims only sequences are accepted, but it allows all iterables

2020-05-26 Thread miss-islington
miss-islington added the comment: New changeset 500cd89ecce97750a1af32d4097d9945b7296bac by Miss Islington (bot) in branch '3.9': bpo-38580: Document that select() accepts iterables, not just sequences (GH-16832) https://github.com/python/cpython/commit/500cd89ecce97750a1af32d4097d9945b7296b

[issue38580] select()'s documentation claims only sequences are accepted, but it allows all iterables

2020-05-26 Thread Jakub Stasiak
Jakub Stasiak added the comment: Cheers for backporting this, Tal, you beat me to it! -- ___ Python tracker ___ ___ Python-bugs-lis

[issue40779] incorrect end column for single argument generator function call AST

2020-05-26 Thread Tomasz Pytel
New submission from Tomasz Pytel : When calling a function with a single argument which is an unparenthesized generator expression the end column for the AST node is incorrect, it is one greater than the start of the function call parentheses where I assume it should be one past the closing p

[issue40778] Updating Py_REFCNT and Py_SIZE to use _PyObject_CAST_CONS

2020-05-26 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +19685 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20428 ___ Python tracker ___

[issue40779] incorrect end column for single argument generator function call AST

2020-05-26 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- nosy: +BTaskaya ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue40780] str.format() handles trailing zeros inconsistently in “general” format

2020-05-26 Thread David Chambers
New submission from David Chambers : According to https://docs.python.org/3/library/string.html#format-specification-mini-language, “insignificant trailing zeros are removed from the significand” when 'g' is specified. I encountered a situation in which a trailing zero is not removed: $ p

[issue40778] Updating Py_REFCNT and Py_SIZE to use _PyObject_CAST_CONS

2020-05-26 Thread Dong-hee Na
Dong-hee Na added the comment: Victor will convert the macros to the functions. So this change will be included in his PR. -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue39573] [C API] Make PyObject an opaque structure in the limited C API

2020-05-26 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19686 pull_request: https://github.com/python/cpython/pull/20429 ___ Python tracker ___ __

[issue40779] incorrect end column for single argument generator function call AST

2020-05-26 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: What version are you using, 3.8? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue39244] multiprocessing.get_all_start_methods() wrong default on macOS

2020-05-26 Thread Tal Einat
Change by Tal Einat : -- versions: +Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue40779] incorrect end column for single argument generator function call AST

2020-05-26 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: For more context, see also bpo-39235. -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue40779] incorrect end column for single argument generator function call AST

2020-05-26 Thread Tomasz Pytel
Tomasz Pytel added the comment: I am on 3.8.1 and you are right this is the same as #39235 so please disregard. -- ___ Python tracker ___ _

[issue40781] Remove sys._debugmallocstats() function and PYTHONMALLOCSTATS environment variable

2020-05-26 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +19687 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20430 ___ Python tracker ___ _

[issue40781] Remove sys._debugmallocstats() function and PYTHONMALLOCSTATS environment variable

2020-05-26 Thread STINNER Victor
STINNER Victor added the comment: INADA-san, Antoine, Serhiy, Pablo: did any of you used this feature recently? Is it useful for your hacks? -- nosy: +inada.naoki, pablogsal, pitrou, serhiy.storchaka ___ Python tracker

[issue39244] multiprocessing.get_all_start_methods() wrong default on macOS

2020-05-26 Thread Tal Einat
Tal Einat added the comment: New changeset db098bc1f05bd0773943e59f83489f05f28dedf8 by idomic in branch 'master': bpo-39244: multiprocessing return default start method first on macOS (GH-18625) https://github.com/python/cpython/commit/db098bc1f05bd0773943e59f83489f05f28dedf8 -- __

[issue39244] multiprocessing.get_all_start_methods() wrong default on macOS

2020-05-26 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +19688 pull_request: https://github.com/python/cpython/pull/20431 ___ Python tracker _

[issue39244] multiprocessing.get_all_start_methods() wrong default on macOS

2020-05-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +19689 pull_request: https://github.com/python/cpython/pull/20432 ___ Python tracker ___ __

[issue39244] multiprocessing.get_all_start_methods() wrong default on macOS

2020-05-26 Thread Tal Einat
Tal Einat added the comment: Thanks for fixing this, Ido! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue40756] Second argument of LoggerAdapter.__init__ should default to None

2020-05-26 Thread miss-islington
miss-islington added the comment: New changeset 8ad052464a4e0aef9a11663b80f187087b773592 by Arturo Escaip in branch 'master': bpo-40756: Default second argument of LoggerAdapter.__init__ to None (GH-20362) https://github.com/python/cpython/commit/8ad052464a4e0aef9a11663b80f187087b773592 ---

[issue39724] IDLE threading + stdout/stdin observed blocking behavior

2020-05-26 Thread Tal Einat
Tal Einat added the comment: This seems to be at least partly intentional: When waiting for user input, IDLE starts a nested Tk mainloop (!), which is stopped by the end-of-line handler. It seems to me that this is what is causing displaying other outputs to be delayed. --

[issue40781] Remove sys._debugmallocstats() function and PYTHONMALLOCSTATS environment variable

2020-05-26 Thread STINNER Victor
STINNER Victor added the comment: "Recent" changes in builtin Python debug tools. * In Python 3.9, I removed the "COUNT_ALLOCS" special build: bpo-39489. * Debug build of Python 3.8 is now ABI compatible with release build: I disabled Py_TRACE_REFS macro by default in --with-pydebug build. T

[issue39724] IDLE threading + stdout/stdin observed blocking behavior

2020-05-26 Thread Tal Einat
Tal Einat added the comment: Can someone talk about the reasoning behind the nested Tk mainloop? I haven't managed to find anything useful in code comments and such. Guido? -- ___ Python tracker ___

[issue40781] Remove sys._debugmallocstats() function and PYTHONMALLOCSTATS environment variable

2020-05-26 Thread STINNER Victor
New submission from STINNER Victor : I never used sys._debugmallocstats() function or PYTHONMALLOCSTATS environment variable, whereas I spend significant time on optimizing memory allocators and free lists. The output is written into stderr which is very convenient to process these data. I o

[issue40780] str.format() handles trailing zeros inconsistently in “general” format

2020-05-26 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue40780] str.format() handles trailing zeros inconsistently in “general” format

2020-05-26 Thread Eric V. Smith
Eric V. Smith added the comment: FWIW, which is probably not much with ".g" formatting, this is how Decimal behaves: >>> from decimal import Decimal as D >>> format(D(1504), '.3g') '1.50e+3' >>> format(D(1505), '.3g') '1.50e+3' >>> format(D(1506), '.3g') '1.51e+3' >>> format(D(1504.0), '.3g')

[issue40780] str.format() handles trailing zeros inconsistently in “general” format

2020-05-26 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue39244] multiprocessing.get_all_start_methods() wrong default on macOS

2020-05-26 Thread miss-islington
miss-islington added the comment: New changeset 285ff63351bb5a42099527c283f65434e761be83 by Miss Islington (bot) in branch '3.8': bpo-39244: multiprocessing return default start method first on macOS (GH-18625) https://github.com/python/cpython/commit/285ff63351bb5a42099527c283f65434e761be83

[issue39244] multiprocessing.get_all_start_methods() wrong default on macOS

2020-05-26 Thread miss-islington
miss-islington added the comment: New changeset 1c88bf8541e6fa292f1578144add17d3672c5fcf by Miss Islington (bot) in branch '3.9': bpo-39244: multiprocessing return default start method first on macOS (GH-18625) https://github.com/python/cpython/commit/1c88bf8541e6fa292f1578144add17d3672c5fcf

[issue40601] [C API] Hide static types from the limited C API

2020-05-26 Thread STINNER Victor
STINNER Victor added the comment: > Technically, it is not, see > https://www.python.org/dev/peps/pep-0384/#structures > Structures like PyLong_Type are *not* part of the limited API. The symbol is exported by libpython: $ objdump -T /lib64/libpython3.8.so.1.0|grep PyLong_Type 0030de

[issue38605] [typing] PEP 563: Postponed evaluation of annotations: enable it by default in Python 3.10

2020-05-26 Thread STINNER Victor
STINNER Victor added the comment: Is there anyone interested to implement this change in Python 3.10? -- ___ Python tracker ___ ___

[issue38605] [typing] PEP 563: Postponed evaluation of annotations: enable it by default in Python 3.10

2020-05-26 Thread STINNER Victor
Change by STINNER Victor : -- versions: +Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue19500] ftplib: Add client-side SSL session resumption

2020-05-26 Thread Florian Wickert
Florian Wickert added the comment: Using vsftpd 3.0.3 with ssl_enable=YES and require_ssl_reuse=YES I get the following error when I try to upload a file with conn.storbinary(): FTP command: Client "192.168.178.115", "STOR something.bin" FTP response: Client "192.168.178.115", "150 Ok to send

[issue40780] str.format() handles trailing zeros inconsistently in “general” format

2020-05-26 Thread Mark Dickinson
Mark Dickinson added the comment: Very interesting. Agreed that this looks like a bug. It affects old-style formatting, too: >>> "%.3g" % 1503 '1.5e+03' >>> "%.3g" % 1504 '1.5e+03' >>> "%.3g" % 1505 '1.50e+03' -- versions: +Python 3.10, Python 3.7, Python 3.8, Python 3.9 ___

[issue38605] [typing] PEP 563: Postponed evaluation of annotations: enable it by default in Python 3.10

2020-05-26 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: I'm starting it if anyone else already prepared a patch. -- ___ Python tracker ___ ___ Python-bu

[issue37999] No longer use implicit convertion to int with loss

2020-05-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 578c3955e0222ec7b3146197467fbb0fcfae12fe by Serhiy Storchaka in branch 'master': bpo-37999: No longer use __int__ in implicit integer conversions. (GH-15636) https://github.com/python/cpython/commit/578c3955e0222ec7b3146197467fbb0fcfae12fe -

[issue40782] AbstactEventLoop.run_in_executor is listed as an async method, but should actually return a Futrue

2020-05-26 Thread James Barrett
New submission from James Barrett : As discussed in < https://github.com/python/typeshed/issues/3999#issuecomment-634097968 > the type of `AbstractEventLoop.run_in_executor` is defined at < https://github.com/python/cpython/blob/master/Lib/asyncio/events.py#L286 > as follows: ``` async def

[issue40217] The garbage collector doesn't take in account that objects of heap allocated types hold a strong reference to their type

2020-05-26 Thread Petr Viktorin
Change by Petr Viktorin : -- pull_requests: +19690 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/20433 ___ Python tracker ___ ___

[issue40780] str.format() handles trailing zeros inconsistently in “general” format

2020-05-26 Thread Mark Dickinson
Mark Dickinson added the comment: This appears to go all the way down to _Py_dg_dtoa, which in mode 3 is supposed to suppress trailing zeros. I'll dig in and see if I can find a fix. (Assigning to me so that I don't forget it, but I also don't want to block anyone else - if anyone else feels

[issue40781] Remove sys._debugmallocstats() function and PYTHONMALLOCSTATS environment variable

2020-05-26 Thread STINNER Victor
STINNER Victor added the comment: > I use it often when I investigate memory usage. Oh. If you use it, we should keep the feature :-) -- ___ Python tracker ___ __

[issue40781] Remove sys._debugmallocstats() function and PYTHONMALLOCSTATS environment variable

2020-05-26 Thread Inada Naoki
Inada Naoki added the comment: I use it often when I investigate memory usage. It provides some useful information even in release Python build. For example: * Which size class is most allocated? * How many block are allocated? * Which size class have most free blocks? (e.g. Inner fragmentatio

[issue38605] [typing] PEP 563: Postponed evaluation of annotations: enable it by default in Python 3.10

2020-05-26 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- keywords: +patch pull_requests: +19691 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/20434 ___ Python tracker _

[issue40780] str.format() handles trailing zeros inconsistently in “general” format

2020-05-26 Thread Eric V. Smith
Eric V. Smith added the comment: For completeness, here's the output using just format, which I prefer over str.format because there's less going on: it removes all of the str.format machinery and basically directly calls obj.__format__. >>> format(1504, '.3g') '1.5e+03' >>> format(1505, '.3

[issue40778] Updating Py_REFCNT and Py_SIZE to use _PyObject_CAST_CONS

2020-05-26 Thread STINNER Victor
STINNER Victor added the comment: Should be fixed by https://github.com/python/cpython/pull/20429 -- ___ Python tracker ___ ___ Pyt

[issue40771] python3 fromtimestamp generates OSError

2020-05-26 Thread Jim Carroll
Jim Carroll added the comment: My bad. I read the docs, but mistakenly believed platform support meant OS. I figured since Windows maketh then Windows should taketh. I've spent the day studying the _datetimemodule.c code and now realize my error. Question -- it seems to me an unnecessary lim

[issue40780] str.format() handles trailing zeros inconsistently in “general” format

2020-05-26 Thread Mark Dickinson
Change by Mark Dickinson : -- keywords: +patch pull_requests: +19692 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20435 ___ Python tracker ___ _

[issue40780] str.format() handles trailing zeros inconsistently in “general” format

2020-05-26 Thread Mark Dickinson
Mark Dickinson added the comment: Created a PR with a tentative fix. It still needs regression tests; working on those. -- ___ Python tracker ___

[issue40781] Remove sys._debugmallocstats() function and PYTHONMALLOCSTATS environment variable

2020-05-26 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Please, don't remove these as I use them often to track down memory usage in a similar way as Inada-san. -- ___ Python tracker ___ __

[issue40783] test_interpreters test_interpreters leaked [216, 216, 216] references

2020-05-26 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : https://buildbot.python.org/all/#/builders/394/builds/94 .. test_interpreters leaked [216, 216, 216] references, sum=648 test_interpreters leaked [84, 84, 84] memory blocks, sum=252 1 test failed again: test_interpreters -- components

[issue40783] test_interpreters test_interpreters leaked [216, 216, 216] references

2020-05-26 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- assignee: -> nanjekyejoannah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue40783] test_interpreters test_interpreters leaked [216, 216, 216] references

2020-05-26 Thread STINNER Victor
STINNER Victor added the comment: Issue already reported at https://bugs.python.org/issue32604#msg369454 -- ___ Python tracker ___

[issue40781] Remove sys._debugmallocstats() function and PYTHONMALLOCSTATS environment variable

2020-05-26 Thread STINNER Victor
STINNER Victor added the comment: > Please, don't remove these as I use them often to track down memory usage in > a similar way as Inada-san. Ok, sure. I close my issue and I closed my PR. Note: Maybe your advanced usage of statistics on memory allocators should be documented somewhere in

[issue40783] test_interpreters test_interpreters leaked [216, 216, 216] references

2020-05-26 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: Yes, We can track it under here: https://bugs.python.org/issue32604#msg369454 Following up when my schedule improves this week. -- ___ Python tracker

[issue40783] test_interpreters test_interpreters leaked [216, 216, 216] references

2020-05-26 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Ok, closing as duplicate although I prefer to track the leaks in different issues for organizational pourposes. -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker

  1   2   >