[issue36482] let struct's internal cache use FIFO policy

2019-03-29 Thread Ma Lin
Ma Lin added the comment: FYI, re module's cache is using FIFO policy: https://github.com/python/cpython/blob/v3.8.0a3/Lib/re.py#L288-L293 -- ___ Python tracker ___ _

[issue36467] IDLE to help with invisible characters

2019-03-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: With respect to Shell, this is a request that IDLE move further away from strictly imitating Python running in a dumb terminal and better help users with intelligent action and information. I want both to improve editing and make entry of a statement in Sh

[issue36411] Python 3 f.tell() gets out of sync with file pointer in binary append+read mode

2019-03-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: 'Python 3.9' does not exist yet. This choice is for patches that should only be applied to 3.9 when available (like future deprecations or removals). -- nosy: +terry.reedy versions: -Python 3.9 ___ Python tracker

[issue35224] PEP 572: Assignment Expressions

2019-03-29 Thread Vedran Čačić
Vedran Čačić added the comment: Carol, if you're willing to go into the lion's den that is Python-ideas with this, you have my eternal gratitude. :-) Steven, sorry, there really is no rush. I really don't think I ever said there is. However, I think it would be much easier to change the behav

[issue36426] exec() issue when used inside function

2019-03-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is not a bug; the behavior is covered in the docs. I am surprised that this works in 2.7, as it has the same warning as 3.7: " locals() Update and return a dictionary representing the current local symbol table. Free variables are returned by locals

[issue36438] Python 3.5.7 import error on Cross compile

2019-03-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: Python 3.5 and 3.6 only get security fixes. Please test on 3.7 or even better 3.8. Your questions should be directed to python-list. -- nosy: +terry.reedy ___ Python tracker

[issue17110] sys.argv docs should explaining how to handle encoding issues

2019-03-29 Thread Inada Naoki
Inada Naoki added the comment: New changeset 38f4e468d4b1e135c67337c18ae142193ba8 by Inada Naoki in branch 'master': bpo-17110: doc: add note how to get bytes from sys.argv (GH-12602) https://github.com/python/cpython/commit/38f4e468d4b1e135c67337c18ae142193ba8 -- nosy: +ina

[issue17110] sys.argv docs should explaining how to handle encoding issues

2019-03-29 Thread miss-islington
Change by miss-islington : -- pull_requests: +12559 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue17110] sys.argv docs should explaining how to handle encoding issues

2019-03-29 Thread miss-islington
miss-islington added the comment: New changeset 5b80cb5584a72044424f2d82d0ae79c720f24c47 by Miss Islington (bot) in branch '3.7': bpo-17110: doc: add note how to get bytes from sys.argv (GH-12602) https://github.com/python/cpython/commit/5b80cb5584a72044424f2d82d0ae79c720f24c47 -- n

[issue24214] UTF-8 incremental decoder doesn't support surrogatepass correctly

2019-03-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 7a465cb5ee7e298cae626ace1fc3e7d97df79f2e by Serhiy Storchaka in branch 'master': bpo-24214: Fixed the UTF-8 incremental decoder. (GH-12603) https://github.com/python/cpython/commit/7a465cb5ee7e298cae626ace1fc3e7d97df79f2e -- ___

[issue17110] sys.argv docs should explaining how to handle encoding issues

2019-03-29 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7, Python 3.8 -Python 3.2, Python 3.3, Python 3.4 ___ Python tracker ___

[issue24214] UTF-8 incremental decoder doesn't support surrogatepass correctly

2019-03-29 Thread miss-islington
Change by miss-islington : -- pull_requests: +12560 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36434] Zipfile breaks if signalled during write()

2019-03-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 2524fdefc9bb2a97b99319190aeb23703079ad4c by Serhiy Storchaka in branch 'master': bpo-36434: Properly handle writing errors in ZIP files. (GH-12559) https://github.com/python/cpython/commit/2524fdefc9bb2a97b99319190aeb23703079ad4c --

[issue36434] Zipfile breaks if signalled during write()

2019-03-29 Thread miss-islington
Change by miss-islington : -- pull_requests: +12561 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue22831] Use "with" to avoid possible fd leaks

2019-03-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset afbb7a371fb44edc731344eab5b474ad8f7b57d7 by Serhiy Storchaka in branch 'master': bpo-22831: Use "with" to avoid possible fd leaks in tools (part 1). (GH-10926) https://github.com/python/cpython/commit/afbb7a371fb44edc731344eab5b474ad8f7b57d7

[issue22831] Use "with" to avoid possible fd leaks

2019-03-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 172bb39452ae8b3ccdf5d1f23ead46f44200cd49 by Serhiy Storchaka in branch 'master': bpo-22831: Use "with" to avoid possible fd leaks in tools (part 2). (GH-10927) https://github.com/python/cpython/commit/172bb39452ae8b3ccdf5d1f23ead46f44200cd49

[issue22831] Use "with" to avoid possible fd leaks

2019-03-29 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36482] let struct's internal cache use FIFO policy

2019-03-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: I don't know that FIFO makessense in the context of how the struct module is typically used. Also rebuilding structs in cheap so there is very little need for further optimization. As far as I can tell, no user has ever reported a performance issue with

<    1   2