[issue36998] distutils sdist command fails to create MANIFEST if any filenames are undecodable

2019-05-21 Thread Toshio Kuratomi
Toshio Kuratomi added the comment: Figured out the answer to my last question while looking into fixing it. The devguide documents both running tests via regrtest and running them via unittest test discovery. regrtest works: ./python -m test -v distutils.test But unittest doesn't: ./p

[issue36981] asyncio transport.write() memory out

2019-05-21 Thread viocal
viocal added the comment: thanks again the environment: filedata1<512M filedata2>512M filedata3>1G this computer-peer computer server(with asyncio)--clien(socket without asyncio) memory<512M---memory>512M read filedata1 <- success read filedata2 <- su

[issue36763] Implementation of the PEP 587

2019-05-21 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13392 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue30790] Can't use proxy to connect internet on windows

2019-05-21 Thread Cheryl Sabella
New submission from Cheryl Sabella : Please provide an example showing a scenario where this change would be needed. Also, a test case needs to be added to the pull request that would fail without the change and pass with the change. Thanks! -- nosy: +cheryl.sabella resolution: wont

[issue36799] Typo in ctypes documentation

2019-05-21 Thread Paul Monson
Change by Paul Monson : -- pull_requests: +13393 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue37004] SequenceMatcher.ratio() noncommutativity not well-documented

2019-05-21 Thread Dennis Sweeney
New submission from Dennis Sweeney : I understand that the SequenceMatcher's ratio method does not guarantee that SequenceMatcher(None, a, b).ratio() == SequenceMatcher(None, b, a).ratio(). Below is a counterexample: # Example from https://mail.python.org/pipermail/python-list/2010-Novem

[issue36997] Document that spwd is considered harmful

2019-05-21 Thread Giampaolo Rodola'
Change by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue37004] SequenceMatcher.ratio() noncommutativity not well-documented

2019-05-21 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +tim.peters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue36948] NameError in urllib.request.URLopener.retrieve

2019-05-21 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thank you David and Berker. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37004] SequenceMatcher.ratio() noncommutativity not well-documented

2019-05-21 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +13394 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue36988] zipfile: string IndexError on extract

2019-05-21 Thread KunYu Chen
KunYu Chen added the comment: Hi alter-bug-tracer, We notice about this pitfall when extracting zipbomb files. and we have discussion here https://bugs.python.org/issue36260 -- nosy: +18z ___ Python tracker __

[issue36981] asyncio transport.write() memory out

2019-05-21 Thread viocal
viocal added the comment: I have fixed it modified selector_events.py def write(self, data): if not isinstance(data, (bytes, bytearray, memoryview)): raise TypeError(f'data argument must be a bytes-like object, ' f'not {type(data).__name__!r}

[issue36981] asyncio transport.write() memory out

2019-05-21 Thread viocal
viocal added the comment: I have fixed it modified selector_events.py def write(self, data): if not isinstance(data, (bytes, bytearray, memoryview)): raise TypeError(f'data argument must be a bytes-like object, ' f'not {type(data).__name__!r}

[issue37005] bz2 module doesn't write end-of-stream marker

2019-05-21 Thread Dobatymo
New submission from Dobatymo : According to https://en.wikipedia.org/wiki/Bzip2 the reference implementation of bzip2 writes an end-of-stream marker (also called stream footer) with a magic number and a stream checksum to the file. Python does not do so. The files can still be read by all bzi

[issue37001] symtable.symtable doesn't accept bytes which leads to a mismatch from compile()

2019-05-21 Thread Dino Viehland
Change by Dino Viehland : -- keywords: +patch pull_requests: +13395 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue36997] Document that spwd is considered harmful

2019-05-21 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: > On BSD, Linux, and macOS, account and credential verification must go through > PAM. At least the part about Linux is not entirely true. If PAM is installed and used, then account and credential verification should probably go through

[issue37003] ast unparse does not support f-string new debug format.

2019-05-21 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: Just for clarification for future readers; I landed a PR that used f"{x=}" in some new functionalities, and that broke the buildbots, the buildbots do test that many of the `Lib/` files can be round-tripped ast->unparse->ast, and as ast-unparse did not

[issue34616] implement "Async exec"

2019-05-21 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- pull_requests: +13396 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue34616] implement "Async exec"

2019-05-21 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: > section to document the new flag inside "Improved Modules" category Done in https://github.com/python/cpython/pull/13484 -- ___ Python tracker __

[issue36995] tp_print -> tp_vectorcall_offset

2019-05-21 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: I see what you mean now. One bpo issue with many pull requests. I was following the CPython policy that every pull request needed an issue, but it didn't occur to me to put multiple independent PRs on one issue. -- resolution: -> duplicate stage: pa

[issue36974] Implement PEP 590

2019-05-21 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- pull_requests: +13397 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue37000] _randbelow_with_getrandbits function inefficient with powers of two

2019-05-21 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> rhettinger priority: normal -> low versions: -Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.9 ___ Python tracker ___

[issue37000] _randbelow_with_getrandbits function inefficient with powers of two

2019-05-21 Thread Mathis Hammel
Change by Mathis Hammel : -- keywords: +patch pull_requests: +13398 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue36779] time.tzname returns empty string on Windows if default codepage is a Unicode codepage

2019-05-21 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- keywords: +patch pull_requests: +13399 stage: test needed -> patch review ___ Python tracker ___ ___ P

[issue36799] Typo in ctypes documentation

2019-05-21 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- pull_requests: -13393 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue36799] Typo in ctypes documentation

2019-05-21 Thread Paul Monson
Change by Paul Monson : -- pull_requests: +13400 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue36779] time.tzname returns empty string on Windows if default codepage is a Unicode codepage

2019-05-21 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi Paul, I have added your PR at this issue, it was assigned to another bpo issue. -- nosy: +matrixise ___ Python tracker ___ __

[issue37000] _randbelow_with_getrandbits function inefficient with powers of two

2019-05-21 Thread Mark Dickinson
Mark Dickinson added the comment: > this could be avoided by directly returning 0 if n == 1 The other solution is to make `getrandbits(0)` valid, always returning `0`. -- ___ Python tracker

<    1   2   3