[issue26175] Fully implement IOBase abstract on SpooledTemporaryFile

2018-06-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Martin, the PR has one 'approved' review, not from you. You appear to be requesting changes here, but it is not clear to me which are 'maybe' and which are 'must'. It is not obvious to me whether this should be treated as enhancement or behavior issue, but

[issue33762] temp file isn't IOBase

2018-06-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Martin, I added you because this Tempfile issue is related to #26175. -- nosy: +martin.panter, terry.reedy ___ Python tracker ___ ___

[issue28557] error message for bad raw readinto

2018-06-08 Thread R. David Murray
Change by R. David Murray : -- nosy: +benjamin.peterson, stutzbach ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue31215] Add version changed notes for OpenSSL 1.1.0 compatibility

2018-06-08 Thread Mayank Singhal
Change by Mayank Singhal <17mayanksing...@gmail.com>: -- pull_requests: +7176 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue33766] Grammar Incongruence

2018-06-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: A few years ago, there was a particular case in which compile failed without a trailing newline. We fixed it so that it would work anyway. Unless we are willing for a conforming Python interpreter to fail >>> exec('print("hello")') hello The Reference Manual

[issue33799] Remove non-ordered dicts comments from FAQ

2018-06-08 Thread Ned Deily
Ned Deily added the comment: New changeset 5c7f22c2a339f23f8a236540d0ebed955637095b by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-33799: Remove non-ordered dicts comments from FAQ (GH-7520) https://github.com/python/cpython/commit/5c7f22c2a339f23f8a236540d0ebed955637095b

[issue33770] base64 throws 'incorrect padding' exception when the issue is NOT with the padding

2018-06-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Is the new message a clarification, in which case we would typically not backport, or a correction, which we usually would? -- nosy: +terry.reedy ___ Python tracker ___

[issue33770] base64 throws 'incorrect padding' exception when the issue is NOT with the padding

2018-06-08 Thread Tal Einat
Tal Einat added the comment: It is more a correction than a clarification. After looking through the module some more, I'm considering using binascii.Incomplete for this case, since it seems appropriate enough that it's worth using it rather than adding another, separate exception.

[issue33771] Module: timeit. According to documentation default_repeat should have the value 3. Has 5.

2018-06-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is a duplicate in that the 3 => 5 change was incorporated into PR 7419 for #28240. -- nosy: +terry.reedy resolution: -> duplicate stage: needs patch -> resolved status: open -> closed superseder: -> Enhance the timeit module: display average +-

[issue33800] Fix default argument for parameter dict_type of ConfigParser/RawConfigParser

2018-06-08 Thread Ned Deily
Ned Deily added the comment: New changeset 3b0b90c8c3b8161f0ae9005b83b9b6449d4a8476 by Ned Deily (Andrés Delfino) in branch 'master': bpo-33800: Fix default argument for parameter dict_type of ConfigParser/RawConfigParser (GH-7494) https://github.com/python/cpython/commit/3b0b90c8c3b8161f0ae9

[issue33800] Fix default argument for parameter dict_type of ConfigParser/RawConfigParser

2018-06-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +7177 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33800] Fix default argument for parameter dict_type of ConfigParser/RawConfigParser

2018-06-08 Thread Ned Deily
Ned Deily added the comment: Thanks, Andrés! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7 ___ Python tracker ___ __

[issue33800] Fix default argument for parameter dict_type of ConfigParser/RawConfigParser

2018-06-08 Thread Ned Deily
Ned Deily added the comment: New changeset dc20d9d1026282a2879992f4cef517a270c8a467 by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-33800: Fix default argument for parameter dict_type of ConfigParser/RawConfigParser (GH-7494) (GH-7542) https://github.com/python/cpython/commit/dc20d9

[issue33375] warnings: get filename from frame.f_code.co_filename

2018-06-08 Thread Brett Cannon
Brett Cannon added the comment: New changeset 11a896652ee98aa44e59ed25237f9efb56635dcf by Brett Cannon (Thomas Kluyver) in branch 'master': bpo-33375: Get filename for warnings from frame.f_code.co_filename (GH-6622) https://github.com/python/cpython/commit/11a896652ee98aa44e59ed25237f9efb566

[issue33082] multiprocessing docs bury very important 'callback=' args

2018-06-08 Thread Ned Deily
Ned Deily added the comment: These doc changes have been languishing. We have a difference of opinion about adding a callback example. I don't have a strong feeling one way or the other. Davin or anyone else, what say you? -- nosy: +ned.deily _

[issue33770] base64 throws 'incorrect padding' exception when the issue is NOT with the padding

2018-06-08 Thread R. David Murray
R. David Murray added the comment: I think that would move it even more into the realm of a bugfix, then, since code that cared about specific binascii exceptions could be looking for that one already. -- ___ Python tracker

[issue33770] base64 throws 'incorrect padding' exception when the issue is NOT with the padding

2018-06-08 Thread Tal Einat
Tal Einat added the comment: Code using only a2b_base64() would likely not be expecting this exception. We have at least one such example in the stdlib: decode_b() in Lib/email/_encoded_words.py (which needs to be fixed regardless; see #27397). -- ___

[issue24622] tokenize.py: missing EXACT_TOKEN_TYPES

2018-06-08 Thread Stefan Krah
Stefan Krah added the comment: Yikes, I wasn't aware that we are that late in the 3.6 release cycle. Perhaps it would be unusual to change it now, even though it is a bug fix. What do others think? -- ___ Python tracker

[issue33770] base64 throws 'incorrect padding' exception when the issue is NOT with the padding

2018-06-08 Thread Tal Einat
Tal Einat added the comment: PR is ready with an improved exception message and raising binascii.Incomplete rather than binascii.Error. A final review would be welcome! -- ___ Python tracker ___

[issue30805] asyncio: race condition with debug and subprocess

2018-06-08 Thread Ned Deily
Ned Deily added the comment: @yselivanov, @asvetlov: ping on the languishing PR -- nosy: +asvetlov, ned.deily ___ Python tracker ___ __

[issue24622] tokenize.py: missing EXACT_TOKEN_TYPES

2018-06-08 Thread Ned Deily
Ned Deily added the comment: > What do others think? +1 for adding a mention in the 3.7 What's New doc (anyone willing to produce a PR for (master Doc/whatsnew/3.7.rst ?) -1 for backporting to 3.6. Since 3.6 has been out there so long and is nearing the end of its maintenance life, it seem

[issue24622] tokenize.py: missing EXACT_TOKEN_TYPES

2018-06-08 Thread Stefan Krah
Stefan Krah added the comment: I agree, it would be strange to backport now. -- stage: backport needed -> versions: +Python 3.7 -Python 3.6 ___ Python tracker ___ ___

[issue33799] Remove non-ordered dicts comments from FAQ

2018-06-08 Thread Andrés Delfino
Change by Andrés Delfino : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> enhancement ___ Python tracker ___ _

[issue32718] Install PowerShell activation scripts for venv for all platforms

2018-06-08 Thread Brett Cannon
Brett Cannon added the comment: Looks like there is some PowerShell Core compatibility issues to work through first. Primarily the prompt seems the venv prompt additions show up twice but then disappear if you arrow up. There is also an issue of path separators needing to be updated appropri

[issue30805] asyncio: race condition with debug and subprocess

2018-06-08 Thread Yury Selivanov
Change by Yury Selivanov : -- keywords: +patch pull_requests: +7178 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue33801] Remove non-ordered dict comment from plistlib

2018-06-08 Thread Ned Deily
Ned Deily added the comment: New changeset 1cbdb2208aa309cf288ee0b53f0ecd85279bb934 by Ned Deily (Andrés Delfino) in branch 'master': bpo-33801: Remove non-ordered dict comment from plistlib doc (GH-7495) https://github.com/python/cpython/commit/1cbdb2208aa309cf288ee0b53f0ecd85279bb934 -

[issue33801] Remove non-ordered dict comment from plistlib

2018-06-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +7179 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33810] Remove unused code in datetime module

2018-06-08 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : Since implementation of issue 25283, the objects returned by time.localtime always have tm_zone and tm_gmtoff attributes, but the datetime module still has code that anticipates these attributes to be missing. [1] [1]: https://github.com/python/cpyt

[issue33801] Remove non-ordered dict comment from plistlib

2018-06-08 Thread Ned Deily
Ned Deily added the comment: Thanks for the PR! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: enhancement -> ___ Python tracker ___ __

[issue33642] IDLE: Display up to maxlines non-blank lines for Code Context

2018-06-08 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue33810] Remove unused code in datetime module

2018-06-08 Thread Alexander Belopolsky
Change by Alexander Belopolsky : -- components: -Extension Modules ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue33801] Remove non-ordered dict comment from plistlib

2018-06-08 Thread Ned Deily
Ned Deily added the comment: New changeset 416fbe41b783d5686b9cb7ff7f8af94b41dc16b8 by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-33801: Remove non-ordered dict comment from plistlib doc (GH-7495) (GH-7546) https://github.com/python/cpython/commit/416fbe41b783d5686b9cb7ff7f8af94b41

[issue30805] asyncio: race condition with debug and subprocess

2018-06-08 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 12f482e0ae33021c04264294f33fa6baa9617cec by Yury Selivanov in branch 'master': bpo-30805: Avoid race condition with debug logging (GH-7545) https://github.com/python/cpython/commit/12f482e0ae33021c04264294f33fa6baa9617cec -- _

[issue30805] asyncio: race condition with debug and subprocess

2018-06-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +7180 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue30805] asyncio: race condition with debug and subprocess

2018-06-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +7181 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue30805] asyncio: race condition with debug and subprocess

2018-06-08 Thread miss-islington
miss-islington added the comment: New changeset 21f4c780a1de99bdb37abf57445f0c942449b45b by Miss Islington (bot) in branch '3.7': bpo-30805: Avoid race condition with debug logging (GH-7545) https://github.com/python/cpython/commit/21f4c780a1de99bdb37abf57445f0c942449b45b -- nosy: +

[issue33810] Remove unused code in datetime module

2018-06-08 Thread Alexander Belopolsky
Change by Alexander Belopolsky : -- keywords: +patch pull_requests: +7182 stage: needs patch -> patch review ___ Python tracker ___

[issue30805] asyncio: race condition with debug and subprocess

2018-06-08 Thread miss-islington
miss-islington added the comment: New changeset 234b53f8b5d0615051025be26cf8adecbc346c57 by Miss Islington (bot) in branch '3.6': bpo-30805: Avoid race condition with debug logging (GH-7545) https://github.com/python/cpython/commit/234b53f8b5d0615051025be26cf8adecbc346c57 -- __

[issue25283] Make tm_gmtoff and tm_zone available on all platforms

2018-06-08 Thread Alexander Belopolsky
Change by Alexander Belopolsky : -- pull_requests: +7183 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue30805] asyncio: race condition with debug and subprocess

2018-06-08 Thread Yury Selivanov
Change by Yury Selivanov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue33811] asyncio accepting connection limit

2018-06-08 Thread Lisa Guo
New submission from Lisa Guo : https://bugs.python.org/issue27906 describes a situation where accept rate of connection is too slow for use cases where spikes of incoming connection warrants fast accept. The fix for that was to accept socket connection in a tight loop until it reaches "backlo

[issue33810] Remove unused code in datetime module

2018-06-08 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: New changeset bcb032e4acdebc043a7659a06e6037fe71020860 by Alexander Belopolsky in branch 'master': bpo-33810 Remove unused code from datetime.py. (GH-7549) https://github.com/python/cpython/commit/bcb032e4acdebc043a7659a06e6037fe71020860 -- _

[issue25283] Make tm_gmtoff and tm_zone available on all platforms

2018-06-08 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: New changeset bcb032e4acdebc043a7659a06e6037fe71020860 by Alexander Belopolsky in branch 'master': bpo-33810 Remove unused code from datetime.py. (GH-7549) https://github.com/python/cpython/commit/bcb032e4acdebc043a7659a06e6037fe71020860 -- _

[issue33810] Remove unused code in datetime module

2018-06-08 Thread Alexander Belopolsky
Change by Alexander Belopolsky : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue33811] asyncio accepting connection limit

2018-06-08 Thread Yury Selivanov
Yury Selivanov added the comment: In principle this sounds good, but I'm not sure how the API and implementation would look like. Maybe you can share a bit more details? -- components: +asyncio nosy: +asvetlov, yselivanov ___ Python tracker

[issue26698] Tk DPI awareness

2018-06-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Westly, #31500 changed font scaling for IDLE on high DPI screens. It also removed some hard-coding of frame sizes in terms of pixels. Does anything look better for you with current IDLE (3.6.5, 3.7.0)? -- ___ Py

[issue33812] Different behavior betwee

2018-06-08 Thread Alexander Belopolsky
Change by Alexander Belopolsky : -- nosy: belopolsky priority: normal severity: normal status: open title: Different behavior betwee ___ Python tracker ___

[issue33812] Different behavior between datetime.py and its C accelerator

2018-06-08 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : Consider the following code: $ cat bug.py import sys if len(sys.argv) > 1: sys.modules['_datetime'] = None from datetime import tzinfo, datetime, timezone class TZ(tzinfo): def utcoffset(self, t): pass print(datetime(2000,1,1,tzinfo=T

[issue33812] Different behavior between datetime.py and its C accelerator

2018-06-08 Thread Tim Peters
Tim Peters added the comment: The message isn't confusing - the definition of "aware" is confusing ;-) """ A datetime object d is aware if d.tzinfo is not None and d.tzinfo.utcoffset(d) does not return None. If d.tzinfo is None, or if d.tzinfo is not None but d.tzinfo.utcoffset(d) returns No

[issue33615] test__xxsubinterpreters crashed on x86 Gentoo Refleaks 3.x

2018-06-08 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +7184 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue11874] argparse assertion failure with brackets in metavars

2018-06-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +7185 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue24089] argparse crashes with AssertionError

2018-06-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +7186 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue14046] argparse: assertion failure if optional argument has square/round brackets in metavar

2018-06-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +7187 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue24089] argparse crashes with AssertionError

2018-06-08 Thread miss-islington
miss-islington added the comment: New changeset 4e6bd247aa955056626bf0cf8dc1c65a587b871f by Miss Islington (bot) in branch '2.7': bpo-11874: fix assertion failure in argparse metavar handling (GH-1826) https://github.com/python/cpython/commit/4e6bd247aa955056626bf0cf8dc1c65a587b871f ---

[issue25058] Right square bracket argparse metavar

2018-06-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +7188 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue14046] argparse: assertion failure if optional argument has square/round brackets in metavar

2018-06-08 Thread miss-islington
miss-islington added the comment: New changeset 4e6bd247aa955056626bf0cf8dc1c65a587b871f by Miss Islington (bot) in branch '2.7': bpo-11874: fix assertion failure in argparse metavar handling (GH-1826) https://github.com/python/cpython/commit/4e6bd247aa955056626bf0cf8dc1c65a587b871f ---

[issue26698] Tk DPI awareness

2018-06-08 Thread Eric Fahlgren
Eric Fahlgren added the comment: Still blurry with 3.6.5 on Win 10 with a 2560x1600 monitor at 125% scaling (I compared it to 2.7.15, they looked identical). If I go to the Windows properties for pythonw.exe and turn on "Override high DPI scaling behavior" it's nice and sharp. -- n

[issue11874] argparse assertion failure with brackets in metavars

2018-06-08 Thread Nick Coghlan
Nick Coghlan added the comment: Thanks for the PR, and your patience! The change has now been merged for all active 3.x versions. It turns out the 2.7 argparse code is still close enough to the 3.x code for the automated backport to work, so the CI for that is currently running. --

[issue11874] argparse assertion failure with brackets in metavars

2018-06-08 Thread miss-islington
miss-islington added the comment: New changeset 4e6bd247aa955056626bf0cf8dc1c65a587b871f by Miss Islington (bot) in branch '2.7': bpo-11874: fix assertion failure in argparse metavar handling (GH-1826) https://github.com/python/cpython/commit/4e6bd247aa955056626bf0cf8dc1c65a587b871f ---

[issue25058] Right square bracket argparse metavar

2018-06-08 Thread miss-islington
miss-islington added the comment: New changeset 4e6bd247aa955056626bf0cf8dc1c65a587b871f by Miss Islington (bot) in branch '2.7': bpo-11874: fix assertion failure in argparse metavar handling (GH-1826) https://github.com/python/cpython/commit/4e6bd247aa955056626bf0cf8dc1c65a587b871f ---

[issue31215] Add version changed notes for OpenSSL 1.1.0 compatibility

2018-06-08 Thread Nick Coghlan
Nick Coghlan added the comment: Merged for 2.7 in https://github.com/python/cpython/commit/458ed1b237150f5c59b6ab3e1a5241a672ac8cbd Thank you for the PRs, Mayank! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___

[issue33656] IDLE: Turn on DPI awareness on Windows

2018-06-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Elisha wrote and I quoted: '[the call] sets DPI awareness'. After reading https://msdn.microsoft.com/en-us/library/windows/desktop/dn280512(v=vs.85).aspx PROCESS_DPI_AWARENESS, what the call sets is the system's idea of what DPI awareness the app/process ha

[issue33812] Different behavior between datetime.py and its C accelerator

2018-06-08 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: So you are suggesting that my datetime(2000,1,1,tzinfo=TZ()) should behave as a naive instance, right? Well, this would be a third behavior different from both current C and Python implementations: >>> print(datetime(2000,1,1).astimezone(timezone.utc)

[issue33812] Different behavior between datetime.py and its C accelerator

2018-06-08 Thread Alexander Belopolsky
Change by Alexander Belopolsky : -- assignee: -> belopolsky components: +Extension Modules, Library (Lib) stage: -> needs patch type: -> behavior versions: +Python 3.7, Python 3.8 ___ Python tracker __

[issue26698] Tk DPI awareness

2018-06-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Do any of the Windows experts know what "Override high DPI scaling behavior" on properties does? Does it call SetProcessDpiAwareness? It seems so. The answer would have implications for #33656 (which is about fixing this issue in IDLE, as Westly originally

[issue26698] Tk DPI awareness

2018-06-08 Thread Eric Fahlgren
Eric Fahlgren added the comment: I used the default Application setting. -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue33812] Different behavior between datetime.py and its C accelerator

2018-06-08 Thread Tim Peters
Tim Peters added the comment: I copy/pasted the definitions of "aware" and "naive" from the docs. Your TZ's .utcoffset() returns None, so, yes, any datetime using an instance of that for its tzinfo is naive. In print(datetime(2000,1,1).astimezone(timezone.utc)) the docs for astimezone say

[issue33331] Clean modules in the reversed order

2018-06-08 Thread Nick Coghlan
Nick Coghlan added the comment: I think the key concern here is that we *don't* consistently add modules to sys.modules in the order their bodies are executed: we add them in a kind of sawtooth order based on the imports from __main__, and the order of import statements in the imported modul

[issue33331] Clean modules in the reversed order

2018-06-08 Thread Nick Coghlan
Nick Coghlan added the comment: It also occurred to me to ask whether or not moving modules to the end of sys.modules each time they're successfully imported would help solve the problem (albeit at the expense of making import cache hits more expensive). I don't think it does, though, since

[issue33409] Clarify the interaction between locale coercion & UTF-8 mode

2018-06-08 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset 1bcb8a636857e3383d65aaf196f93edb949f2e79 by Nick Coghlan in branch 'master': bpo-33409: Clarify PEP 538/540 relationship (GH-7534) https://github.com/python/cpython/commit/1bcb8a636857e3383d65aaf196f93edb949f2e79 --

<    1   2