[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/5ff5edfef63b3dbc1abb004b3fa4b3db87e79ff9


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/4ea802868460fad54e40cb99eb0ca283b3b293f0


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 for you to provide .dmg file for the same or any higher version 
compatible with Mac OS X 10.6.8 (Snow Leopard). Many thanks!

Regards
Asmi Ariv

--
components: Installation
messages: 369962
nosy: AsmiAriv
priority: normal
severity: normal
status: open
title: Python 3.7.6 installation issue on mac os x 10.6.8
type: compile error
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 logic to prepare the path for display to the 
user, and then you _would not_ use that prepared display path to resolve the 
link.

readlink() is intended for resolving links, not for displaying links. That's 
why it doesn't prepare them for display, but preserves the most accurate 
information possible. (We chose a more pragmatic route with realpath(), by 
checking that the nicer path resolves to the same target as the accurate one, 
and only then returning the nicer one.)

Really, for dir, you'd read the print name and display it when it's in the 
contents of the target. But you'd use the substitute name to resolve the target 
when "dir " is called. We _could_ add a new API to Python for this, 
but it wouldn't be cross-platform and it doesn't solve a correctness issue, so 
we didn't. Feel free to request it, bearing in mind that it would be 
Windows-only (AFAIK).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 static storage, so I suppose this [1] applies.

[1] https://stackoverflow.com/a/3025106/1338788

--
components: Build
messages: 369965
nosy: smani
priority: normal
severity: normal
status: open
title: _datetimemodule.c:3328:16: error: initializer element is not constant
type: compile error
versions: Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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" without suggesting a replacement 
or a safe way to use it isn't very constructive: as a developer, I want to 
extract a zip archive, but the only function supposed to do the job tells me 
"this is unsafe". Ok, so what am I supposed to do to be safe?

That's what documentation should tell me, not let me puzzled with doubt.

> May I suggest that out of caution we leave it as it is?

I don't think the situation should stay like this.

- either the documentation should be more precise on what are the problems that 
can occur, and how to handle those problems
- or better, the function should be fixed and made fully safe, so all programs 
using it are safe (and the warning can be removed)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--
nosy: +corona10

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 _PyObject_CAST_CONS
type: enhancement
versions: Python 3.10

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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_positional_only_arg test_string_literals test_struct
test_syntax test_sys test_traceback test_urllib test_urllib2
test_urllib2_localnet test_xml_etree_c

43 tests skipped:
test_asdl_parser test_check_c_globals test_clinic test_curses
test_dbm_gnu test_dbm_ndbm test_devpoll test_epoll test_fcntl
test_fork1 test_gdb test_grp test_ioctl test_kqueue
test_multiprocessing_fork test_multiprocessing_forkserver test_nis
test_openpty test_ossaudiodev test_pipes test_poll test_posix
test_pty test_pwd test_readline test_resource test_smtpnet
test_socketserver test_spwd test_syslog test_threadsignals
test_timeout test_tix test_tk test_ttk_guionly test_urllib2net
test_urllibnet test_wait3 test_wait4 test_winsound test_xmlrpc_net
test_xxtestfuzz test_zipfile64

Zachary Ware  于2020年5月26日周二 上午3:33写道:

>
> Zachary Ware  added the comment:
>
> At a guess, it looks like we're not including that module in the Windows
> installer.  And indeed, it looks like it's left out of
> Tools/msi/test/test_files.wxs if you would like to provide a PR :)
>
> On the other hand, I'm not sure that test (and any other depending on that
> module) shouldn't be skipped if _testinternalcapi is missing.
>
> --
> components: +Installation, Windows
> nosy: +paul.moore, steve.dower, tim.golden, zach.ware
> versions: +Python 3.10
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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_multiprocessing_forkserver (2 min 13 sec)
*** Signal 9

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/500cd89ecce97750a1af32d4097d9945b7296bac


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

This call:

func(i for i in range(3))

Generates the following node for the generator expression (line:col_offset -> 
end_line:end_col_offset):

<_ast.GeneratorExp object at 0x7f3ba61f78c0> .. 1:4 -> 1:5

--
components: Interpreter Core
messages: 369982
nosy: Tomasz Pytel
priority: normal
severity: normal
status: open
title: incorrect end column for single argument generator function call AST
versions: Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

$ python3
Python 3.7.7 (default, Mar 10 2020, 15:43:03)
[Clang 11.0.0 (clang-1100.0.33.17)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> '{0:.3g}'.format(1504)
'1.5e+03'
>>> '{0:.3g}'.format(1505)
'1.50e+03'
>>> '{0:.3g}'.format(1506)
'1.51e+03'

Is this behaviour intentional? If so, why is the trailing zero in 1.50 
considered significant for 1505 but insignificant for 1504?

--
messages: 369983
nosy: davidchambers
priority: normal
severity: normal
status: open
title: str.format() handles trailing zeros inconsistently in “general” format
type: behavior

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--
nosy: +miss-islington

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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. There is a new 
opt-in --with-trace-refs option for configure. We have a dedicated buildbot to 
ensure that the feature continue to work.

* In Python 3.8, I modified the debug hooks on Python memory allocators to omit 
the serial number by default. It reduces the memory footprint when these hooks 
are used (1 size_t per memory block). Extract of Objects/obmalloc.c:

/* Uncomment this define to add the "serialno" field */
/* #define PYMEM_DEBUG_SERIALNO */

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 only "re"-discovered recently this debug feature when writing PR 20247 "Make 
tuple free list per-interpreter": I had to update _PyTuple_DebugMallocStats().

Removing this debug feature reduces the maintenance burden.

Attached PR removes all code related to the sys._debugmallocstats() function 
and the PYTHONMALLOCSTATS environment variable.

If someone wants to hack Python memory allocators or free lists, I suggest to 
add temporary code to dump some stats. But I don't think that it's worth it to 
keep the feature for all uses in Python.

People who worry about the memory usage of their application don't have to go 
into this low level of details, but care more about memory peak, where the 
memory was allocated (ex: tracemalloc module), RSS memory, etc.

--
components: Interpreter Core
messages: 369987
nosy: vstinner
priority: normal
severity: normal
status: open
title: Remove sys._debugmallocstats() function and PYTHONMALLOCSTATS 
environment variable
versions: Python 3.10

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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')
'1.50e+3'
>>> format(D(1505.0), '.3g')
'1.50e+3'
>>> format(D(1506.0), '.3g')
'1.51e+3'
>>> format(D("1504.0"), '.3g')
'1.50e+3'
>>> format(D("1505.0"), '.3g')
'1.50e+3'
>>> format(D("1506.0"), '.3g')
'1.51e+3'

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
0030de00 gDO .data  01a0  BasePyLong_Type

A C extension can use a reference to PyLong_Type.

> I don't think it's necessary here.

Did you read my rationale (first message)? Do you mean that per-interpreter GIL 
is not worth it?

--

A first step would be to expose "CheckExact" macros as function calls in the 
limited C API.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 data."
FTP response: Client "x.x.x.x", "150 Ok to send data."
DEBUG: Client "x.x.x.x", "DATA connection terminated without SSL shutdown. 
Buggy client! Integrity of upload cannot be asserted."
FTP response: Client "x.x.x.x", "426 Failure reading network stream."

This also happens when SSL reuse is disabled on the server side.
Uploading with FileZilla works and there is basically no difference in the log 
until the error happens.

--
nosy: +Florian Wickert

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 run_in_executor(self, executor, func, *args):
raise NotImplementedError
```

However all concrete implementations of this method are actually not async 
methods but rather synchronous methods which return a Future object.

Logically this appears to make sense: at base `run_in_executor` is not a 
coroutine, since it doesn't create an object representing code which will be 
executed when the object is awaited, rather it returns an object representing 
code which is running asynchronously elsewhere (on another thread) and which 
can be awaited to wait for that other thread to complete its task. Which seems 
to be a perfect match to what a Future object is supposed to be.

As such it seems that the current definition of the method as a coroutine is 
possibly a mistake.

Alternatively if some feel that it is important to allow concrete 
implementations to implement it as a coroutine if they need to then perhaps it 
could be specified to be a method returning an Awaitable, since that would 
cover both options?

--
components: Library (Lib)
messages: 370005
nosy: jamesba
priority: normal
severity: normal
status: open
title: AbstactEventLoop.run_in_executor is listed as an async method, but 
should actually return a Futrue
type: behavior
versions: Python 3.10, Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 
3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
like working on this, please do go ahead.)

--
assignee:  -> mark.dickinson

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 fragmentation)
* Combined with tracing application to stderr, which part of the application 
increase memory usage?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, '.3g')
'1.50e+03'
>>> format(1506, '.3g')
'1.51e+03'

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 limitation.  If someone were willing 
to submit a platform neutral version of localtime/gmtime that worked 
identically on all platforms, would this be met with eagerness? Or more of a 
shoulder shrug?

It's a fair amount of effort, and I'm willing to commit to it, but if the issue 
only matters to me, I can work around it.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: Tests
messages: 370014
nosy: eric.snow, nanjekyejoannah, pablogsal, vstinner
priority: normal
severity: normal
status: open
title: test_interpreters test_interpreters leaked [216, 216, 216] references
type: behavior
versions: Python 3.10

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 https://devguide.python.org/.

--
resolution:  -> not a bug
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   >