Re: Problem finding my folder via terminal

2018-06-08 Thread Tamara Berger
Hi Cameron, Re inline style: When I hit reply, this is the window I get. I don't get my previous email with the carets appended to the beginning of the line. Before I look at the rest of your email, I'd like for you to explain how there is a mymodule folder nested within another mymodule folder.

Re: Problem finding my folder via terminal

2018-06-08 Thread Cameron Simpson
On 08Jun2018 22:55, Tamara Berger wrote: I have to answer you via email because I haven't gotten the hang of the inline style yet. I'm using email :-) We use the inline style for that, too. Just walk down the quoted previous message and insert your responses below the relevant parts with

Re: Stefan's headers [was:Names and identifiers]

2018-06-08 Thread Gregory Ewing
Chris Angelico wrote: Open source would not exist without copyright,because it is copyright law that gives license terms their meaning. That statement doesn't make any sense. If there were no copyright laws, there would be no need for licences to distribute software. You seem to be saying

Re: Stefan's headers [was:Names and identifiers]

2018-06-08 Thread Gregory Ewing
MRAB wrote: So those with the most money can buy the most protection? That's the way it works with patents... -- Greg -- https://mail.python.org/mailman/listinfo/python-list

[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

[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

[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

[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

Re: Stefan's headers [was:Names and identifiers]

2018-06-08 Thread Gregory Ewing
Gene Heskett wrote: The courts weren't amused. I don't know as any of us ever cut those patent troll turkey's a check, Patent troll turkeys: Don't cut them checks, cut their necks! (Insert suitable stock photo of a turkey about to have its head removed.) -- Greg --

[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

[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

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

Re: Problem finding my folder via terminal

2018-06-08 Thread Tamara Berger
Hi Cameron, I have to answer you via email because I haven't gotten the hang of the inline style yet. Here is the result of your suggestion: Last login: Fri Jun 8 22:43:58 on ttys001 192:~ TamaraB$ cd Desktop/mymodules/ 192:mymodules TamaraB$ ls -laR /Users/TamaraB/Desktop/mymodules total 16

Re: Sorting NaNs

2018-06-08 Thread Gregory Ewing
Peter Pearson wrote: What applications would have to worry about colliding floats? I don't know. I'm coming from cryptology, where worrying about such things becomes a reflex. If collisions are something to be feared, then you're into hash territory, where you're probably going to want

[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

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

[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

[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

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

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

[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

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

[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

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

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

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

Re: Stefan's headers [was:Names and identifiers]

2018-06-08 Thread Chris Angelico
On Sat, Jun 9, 2018 at 10:53 AM, Steven D'Aprano wrote: > On Sat, 09 Jun 2018 03:54:25 +1000, Chris Angelico wrote: >> (Whether linking to a third-party Youtube video is itself a violation of >> the original author's copyright is even more complicated. IANAL and I am >> not going to even think

Re: UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 10442: character maps to

2018-06-08 Thread Steven D'Aprano
On Sat, 09 Jun 2018 08:26:10 +1000, Cameron Simpson wrote: > It is possible that Python 2 is just glossing over the problem; Python 3 > has a more rigorous view of character data. I would say that is more than just possible, it is almost certain. -- Steven D'Aprano "Ever since I learned

Re: Stefan's headers [was:Names and identifiers]

2018-06-08 Thread Steven D'Aprano
On Sat, 09 Jun 2018 03:54:25 +1000, Chris Angelico wrote: > Right. Imagine if I write a poem, just like you say, and then I have the > words posted on a gigantic billboard. In small print in the bottom > corner of the billboard, I say "Copyright 2018 Chris Angelico. Taking > photographs of this

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

[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

Re: Stefan's headers [was:Names and identifiers]

2018-06-08 Thread Chris Angelico
On Sat, Jun 9, 2018 at 8:19 AM, Marko Rauhamaa wrote: > Chris Angelico : > >> On Sat, Jun 9, 2018 at 6:59 AM, MRAB wrote: >>> So those with the most money can buy the most protection? >> >> Yes, or more specifically, those who believe they can make the most >> money from that protection.

Django-hotsauce 0.9.4.1 is out

2018-06-08 Thread Etienne Robillard
Hi everyone, Django-hotsauce 0.9.4.1 (open source edition) is out! What's new - Maintenance bugfixes for ZODBController class (cPython, PyPy) - Minor bugfixes and updates Download - https://pypi.org/pypi/Django-hotsauce/ -

Re: Sorting NaNs

2018-06-08 Thread Steven D'Aprano
On Fri, 08 Jun 2018 17:45:58 +, Peter Pearson wrote: > What bothered me was my feeling that a "reasonable observer" > would expect the random-float population to be much larger than 2**32, > and the probably-collision-free sample size to be accordingly much > larger than 2**16, which is,

[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

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

[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)? -- ___

Re: Stefan's headers [was:Names and identifiers]

2018-06-08 Thread Gene Heskett
On Friday 08 June 2018 16:01:06 Larry Martell wrote: > On Fri, Jun 8, 2018 at 3:16 PM, Marko Rauhamaa wrote: > > At the moment nobody pays > > the government to enforce copyrights. > > No, everyone pays for what the government does, poorly. There, I fixed it for you Larry. :) -- Cheers, Gene

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

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

Re: How to install matplotlib in Debian 9

2018-06-08 Thread Jim Lee
On 06/08/2018 11:54 AM, Markos wrote: Hi, I'm starting my studies with Python 3 on Debian 9 that I just installed. I have to install the matplotlib module, but I am in doubt what is the difference of the commands: pip3 install matplotlib or apt-get install python3-matplotlib Is there

[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

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

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

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

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

Re: Stefan's headers [was:Names and identifiers]

2018-06-08 Thread Marko Rauhamaa
Chris Angelico : > On Sat, Jun 9, 2018 at 6:59 AM, MRAB wrote: >> So those with the most money can buy the most protection? > > Yes, or more specifically, those who believe they can make the most > money from that protection. Ownership becomes pay-to-win, literally. In the words of Scrooge

Re: UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 10442: character maps to

2018-06-08 Thread Cameron Simpson
On 05Jun2018 06:42, bellcanada...@gmail.com wrote: On Sunday, 3 June 2018 20:11:43 UTC-4, Steven D'Aprano wrote: Don't retype a summary of what you think the error is. "character undefieed" is not a thing, and there is no such thing as "byte 1x09". You need to COPY AND PASTE the EXACT error

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

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

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

Re: Distribution file error

2018-06-08 Thread Cameron Simpson
On 08Jun2018 07:52, Tamara Berger wrote: I’m trying to create a distribution file for my module, but got an error message. The module, including the setup and read me files, are contained within the folder “mymodules.” I typed this command (per instructions from my workbook) from within

Re: Problem finding my folder via terminal

2018-06-08 Thread Cameron Simpson
On 08Jun2018 10:23, Tamara Berger wrote: On Fri, Jun 8, 2018 at 5:35 AM Cameron Simpson wrote: On 08Jun2018 01:52, Tamara Berger wrote: >192:~ TamaraB$ cd Desktop/mymodules >192:mymodules TamaraB$ pwd >/Users/TamaraB/Desktop/mymodules >192:mymodules TamaraB$ ls >mymodules It looks like you

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

[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

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

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

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

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

[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

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

[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

RE: logging with multiprocessing

2018-06-08 Thread Schachner, Joseph
Multiprocessing, not multithreading. Different processes. This is pretty easy to do. I have done this from a Python script to run an analysis program on many sets of data, at once. To do it: 1) if there is going to be an output file, each output file must have a distinct name. 2) To use

Re: Stefan's headers [was:Names and identifiers]

2018-06-08 Thread Chris Angelico
On Sat, Jun 9, 2018 at 6:59 AM, MRAB wrote: > On 2018-06-08 19:11, Marko Rauhamaa wrote: >> >> Chris Angelico : >> >>> On Sat, Jun 9, 2018 at 3:34 AM, Marko Rauhamaa wrote: PS IMO copyright laws should be abolished altogether. At the very least one should pay for copyright

Re: Stefan's headers [was:Names and identifiers]

2018-06-08 Thread MRAB
On 2018-06-08 19:11, Marko Rauhamaa wrote: Chris Angelico : On Sat, Jun 9, 2018 at 3:34 AM, Marko Rauhamaa wrote: PS IMO copyright laws should be abolished altogether. At the very least one should pay for copyright protection. One €1 for the first year, €2 for the second, €4 for the third

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

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

[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

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

[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

[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

Re: Stefan's headers [was:Names and identifiers]

2018-06-08 Thread Larry Martell
On Fri, Jun 8, 2018 at 3:16 PM, Marko Rauhamaa wrote: > At the moment nobody pays > the government to enforce copyrights. No, everyone pays for what the government does. -- https://mail.python.org/mailman/listinfo/python-list

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

[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

Re: Stefan's headers [was:Names and identifiers]

2018-06-08 Thread Marko Rauhamaa
Gene Heskett : > On Friday 08 June 2018 13:34:44 Marko Rauhamaa wrote: >> PS IMO copyright laws should be abolished altogether. At the very >> least one should pay for copyright protection. One €1 for the first >> year, €2 for the second, €4 for the third and so on exponentially. > > I rather

[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

How to install matplotlib in Debian 9

2018-06-08 Thread Markos
Hi, I'm starting my studies with Python 3 on Debian 9 that I just installed. I have to install the matplotlib module, but I am in doubt what is the difference of the commands: pip3 install matplotlib or apt-get install python3-matplotlib Is there any difference in the packages which are

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

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

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

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

[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

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

[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

[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

[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

Re: Stefan's headers [was:Names and identifiers]

2018-06-08 Thread Gene Heskett
On Friday 08 June 2018 13:34:44 Marko Rauhamaa wrote: > Gene Heskett : > > On Friday 08 June 2018 08:18:19 Chris Angelico wrote: > >> Are news servers guaranteed to carry the X-Copyright header in all > >> transmissions? If not, the copyright notice isn't part of the > >> message, and is most

[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

[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

Re: Stefan's headers [was:Names and identifiers]

2018-06-08 Thread Marko Rauhamaa
Chris Angelico : > On Sat, Jun 9, 2018 at 3:34 AM, Marko Rauhamaa wrote: >> PS IMO copyright laws should be abolished altogether. At the very >> least one should pay for copyright protection. One €1 for the first >> year, €2 for the second, €4 for the third and so on exponentially. > > Why

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

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

Re: Stefan's headers [was:Names and identifiers]

2018-06-08 Thread Chris Angelico
On Sat, Jun 9, 2018 at 3:34 AM, Marko Rauhamaa wrote: > Gene Heskett : >> On Friday 08 June 2018 08:18:19 Chris Angelico wrote: >>> Are news servers guaranteed to carry the X-Copyright header in all >>> transmissions? If not, the copyright notice isn't part of the message, >>> and is most likely

[issue33462] reversible dict

2018-06-08 Thread Michael Selik
Michael Selik added the comment: It looks like there's general agreement on python-dev that this is appropriate for v3.8 (not v3.7). Guido van Rossum and Ramsey D'silva gave a +1. Raymond Hettinger noted some use cases. INADA Naoki raised a point about waiting for other implementations,

Re: Stefan's headers [was:Names and identifiers]

2018-06-08 Thread Thomas Jollans
On 08/06/18 14:13, Ned Batchelder wrote: > On 6/8/18 2:34 AM, Thomas Jollans wrote: >> On 07/06/18 22:36, Peter Pearson wrote: >> >>> X-Copyright: (C) Copyright 2018 Stefan Ram. All rights reserved. >>> Distribution through any means >>>    other than regular usenet channels is forbidden. It is

Re: Sorting NaNs

2018-06-08 Thread Peter Pearson
On Fri, 8 Jun 2018 02:15:02 + (UTC), Steven D'Aprano wrote: > On Thu, 07 Jun 2018 20:43:10 +, Peter Pearson wrote: [snip] >> >> But gosh, if there are only 2**32 different "random" floats, then you'd >> have about a 50% chance of finding a collision among any set of 2**16 >> samples. Is

  1   2   3   >