[issue30167] site.main() does not work on Python 3.6 and superior if PYTHONSTARTUP is set

2018-06-10 Thread INADA Naoki
Change by INADA Naoki : -- pull_requests: +7238 stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue33687] uu.py calls os.path.chmod which doesn't exist

2018-06-10 Thread Poul-Henning Kamp
Poul-Henning Kamp added the comment: I was just playing with it in a prototype and noticed that it didn't work. -- ___ Python tracker ___

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

2018-06-10 Thread Ned Deily
Change by Ned Deily : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 2.7, Python 3.6 ___ Python tracker ___

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

2018-06-10 Thread Tal Einat
Tal Einat added the comment: The change is not entirely backward-compatible, so not back-porting before 3.7 seems good to me. IMO this should be closed. -- ___ Python tracker

NUL in file names verified [was Re: Why exception from os.path.exists()?]

2018-06-10 Thread Steven D'Aprano
Straight from the horse's mouth, Apple's HFS Plus volumes do indeed support NULs in file names. Quote: Indirect node files exist in a special directory called the metadata directory. This directory exists in the volume's root directory. The name of the metadata directory is four null

[issue33825] Change mentions of "magic" attributes to "special"

2018-06-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: Both terms are in common use. There is no need to elide the word "special". -- nosy: +rhettinger ___ Python tracker ___

[issue33745] 3.7.0b5 changes the line number of empty functions with docstrings

2018-06-10 Thread Ned Deily
Ned Deily added the comment: The 3.7 What's New has been updated as Nick suggested. Thanks, Nick, and thanks, Ned, for bringing it up! -- priority: deferred blocker -> resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue33745] 3.7.0b5 changes the line number of empty functions with docstrings

2018-06-10 Thread miss-islington
miss-islington added the comment: New changeset 14a190c88273fb22d9439bbed394f19f21e8a0f9 by Miss Islington (bot) in branch '3.7': bpo-33745: Add What's New for empty function docstring change. (GH-7611) https://github.com/python/cpython/commit/14a190c88273fb22d9439bbed394f19f21e8a0f9

[issue33745] 3.7.0b5 changes the line number of empty functions with docstrings

2018-06-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +7237 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33745] 3.7.0b5 changes the line number of empty functions with docstrings

2018-06-10 Thread Ned Deily
Ned Deily added the comment: New changeset 12c6cdf4d16078aa09de32a39193c8161177b39d by Ned Deily in branch 'master': bpo-33745: Add What's New for empty function docstring change. (GH-7611) https://github.com/python/cpython/commit/12c6cdf4d16078aa09de32a39193c8161177b39d --

[issue33745] 3.7.0b5 changes the line number of empty functions with docstrings

2018-06-10 Thread Ned Deily
Change by Ned Deily : -- keywords: +patch pull_requests: +7236 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue33109] argparse: make new 'required' argument to add_subparsers default to False instead of True

2018-06-10 Thread Ned Deily
Ned Deily added the comment: New changeset a73399d5963d6b1639d935968f4a8baa868c39d3 by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-33109: Remove now-obsolete What's New entry for bpo-26510. (GH-7609) (GH-7610)

[issue26510] [argparse] Add required argument to add_subparsers

2018-06-10 Thread Ned Deily
Ned Deily added the comment: New changeset a73399d5963d6b1639d935968f4a8baa868c39d3 by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-33109: Remove now-obsolete What's New entry for bpo-26510. (GH-7609) (GH-7610)

[issue33109] argparse: make new 'required' argument to add_subparsers default to False instead of True

2018-06-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +7234 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26510] [argparse] Add required argument to add_subparsers

2018-06-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +7235 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26510] [argparse] Add required argument to add_subparsers

2018-06-10 Thread Ned Deily
Ned Deily added the comment: New changeset ef057bfb06cae0718e6d708061649d2e3983e2ef by Ned Deily in branch 'master': bpo-33109: Remove now-obsolete What's New entry for bpo-26510. (GH-7609) https://github.com/python/cpython/commit/ef057bfb06cae0718e6d708061649d2e3983e2ef --

[issue33109] argparse: make new 'required' argument to add_subparsers default to False instead of True

2018-06-10 Thread Ned Deily
Ned Deily added the comment: New changeset ef057bfb06cae0718e6d708061649d2e3983e2ef by Ned Deily in branch 'master': bpo-33109: Remove now-obsolete What's New entry for bpo-26510. (GH-7609) https://github.com/python/cpython/commit/ef057bfb06cae0718e6d708061649d2e3983e2ef --

[issue33109] argparse: make new 'required' argument to add_subparsers default to False instead of True

2018-06-10 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +7232 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26510] [argparse] Add required argument to add_subparsers

2018-06-10 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +7233 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33825] Change mentions of "magic" attributes to "special"

2018-06-10 Thread Andrés Delfino
New submission from Andrés Delfino : PR makes all documentation use the same term. -- assignee: docs@python components: Documentation messages: 319263 nosy: adelfino, docs@python priority: normal severity: normal status: open title: Change mentions of "magic" attributes to "special"

[issue33825] Change mentions of "magic" attributes to "special"

2018-06-10 Thread Andrés Delfino
Change by Andrés Delfino : -- keywords: +patch pull_requests: +7231 stage: -> patch review ___ Python tracker ___ ___

[issue30167] site.main() does not work on Python 3.6 and superior if PYTHONSTARTUP is set

2018-06-10 Thread Ned Deily
Ned Deily added the comment: As I noted in the discussion on PR 6731, I think there should be a test for this so we don't break it again. But, since it seems that the problem has affected a number of users and projects and since the fix is easy and easily testable manually, I decided to

[issue30167] site.main() does not work on Python 3.6 and superior if PYTHONSTARTUP is set

2018-06-10 Thread Ned Deily
Ned Deily added the comment: New changeset 3e121581d008a780b8a9f1bcda5966cf0c06f6d5 by Ned Deily (Miss Islington (bot)) in branch '3.6': bpo-30167: Prevent site.main() exception if PYTHONSTARTUP is set. (GH-6731) (GH-7607)

[issue30167] site.main() does not work on Python 3.6 and superior if PYTHONSTARTUP is set

2018-06-10 Thread Ned Deily
Ned Deily added the comment: New changeset ec4343c3b4c0e0a7500122fac616e6488c0ab842 by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-30167: Prevent site.main() exception if PYTHONSTARTUP is set. (GH-6731) (GH-7606)

[issue33738] PyIndex_Check conflicts with PEP 384

2018-06-10 Thread Ned Deily
Ned Deily added the comment: Sigh! I was hoping we could get this in for 3.7.0 but I think we have run out of time and we really should not be making potential user-visible API changes at this last minute. I did notice the new compile warning for the Windows non-debug build but I

Re: Why exception from os.path.exists()?

2018-06-10 Thread Chris Angelico
On Mon, Jun 11, 2018 at 11:06 AM, Steven D'Aprano wrote: > On Sun, 10 Jun 2018 23:57:35 +0200, Peter J. Holzer wrote: > >> I think this is worth keeping, and "I couldn't pass that file name to >> the OS" is a different error than "the OS told me the file doesn't >> exist", so I think it should be

Re: Why exception from os.path.exists()?

2018-06-10 Thread Steven D'Aprano
On Sun, 10 Jun 2018 23:57:35 +0200, Peter J. Holzer wrote: > I think this is worth keeping, and "I couldn't pass that file name to > the OS" is a different error than "the OS told me the file doesn't > exist", so I think it should be a different exception. What makes you think that NUL bytes are

Re: Why exception from os.path.exists()?

2018-06-10 Thread Charles Hixson
On 06/07/2018 12:45 AM, Chris Angelico wrote: On Thu, Jun 7, 2018 at 1:55 PM, Steven D'Aprano wrote: On Tue, 05 Jun 2018 23:27:16 +1000, Chris Angelico wrote: And an ASCIIZ string cannot contain a byte value of zero. The parallel is exact. Why should we, as Python programmers, care one whit

[issue30167] site.main() does not work on Python 3.6 and superior if PYTHONSTARTUP is set

2018-06-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +7230 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30167] site.main() does not work on Python 3.6 and superior if PYTHONSTARTUP is set

2018-06-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +7229 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30167] site.main() does not work on Python 3.6 and superior if PYTHONSTARTUP is set

2018-06-10 Thread Ned Deily
Ned Deily added the comment: New changeset 2487f30d5529948ace26559e274d7cac6abcd1a8 by Ned Deily (Steve Weber) in branch 'master': bpo-30167: Prevent site.main() exception if PYTHONSTARTUP is set. (GH-6731) https://github.com/python/cpython/commit/2487f30d5529948ace26559e274d7cac6abcd1a8

Re: Why exception from os.path.exists()?

2018-06-10 Thread Steven D'Aprano
On Sun, 10 Jun 2018 22:09:39 +0100, Barry Scott wrote: > Singling out os.path.exists as a special case I do think is reasonable. > All functions that take paths need to have a consistent response to data The *mere existence* of os.path.exists means that there is not a consistent response to

Re: Why exception from os.path.exists()?

2018-06-10 Thread Bev in TX
I accidentally did not send this to the list... > On Jun 10, 2018, at 7:10 PM, Bev in TX wrote: > > >> On Jun 10, 2018, at 3:10 PM, Chris Angelico > > wrote: >>> ... >> >> Can you try creating "spam:ham" and "spam/ham"? If they're both legal, >> I'd like to see what

[issue33462] reversible dict

2018-06-10 Thread INADA Naoki
INADA Naoki added the comment: My patch was quick and dirty. Please read _collections_abc module and follow the style. (you need to use temporary variables.) And new reviter types can be registered to Iterator ABC too. -- INADA Naoki -- ___

Re: Why exception from os.path.exists()?

2018-06-10 Thread Chris Angelico
On Mon, Jun 11, 2018 at 9:52 AM, Steven D'Aprano wrote: > On Mon, 11 Jun 2018 06:10:26 +1000, Chris Angelico wrote: > >> Can you try creating "spam:ham" and "spam/ham"? If they're both legal, >> I'd like to see what their file names are represented as. > > The Finder could very easily be

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

2018-06-10 Thread Steven D'Aprano
On Mon, 11 Jun 2018 06:21:31 +1000, Chris Angelico wrote: [...] > Nice work there. You trimmed key parts of my post, and then responded to > me out of context. Go back and read my actual post, then respond to what > I actually said. Thanks! I didn't trim any part of your post when I read it, but

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

2018-06-10 Thread bellcanadardp
On Sunday, 10 June 2018 17:29:59 UTC-4, Cameron Simpson wrote: > On 10Jun2018 13:04, bellcanada...@gmail.com wrote: > >here is the full error once again > >to summarize, my script works fine in python2 > >i get this error trying to run it in python3 > >plz see below after the error, my settings

Re: Why exception from os.path.exists()?

2018-06-10 Thread Steven D'Aprano
On Mon, 11 Jun 2018 06:10:26 +1000, Chris Angelico wrote: > Can you try creating "spam:ham" and "spam/ham"? If they're both legal, > I'd like to see what their file names are represented as. The Finder could very easily be substituting another character, like Konqueror (the KDE 3 file manager)

Re: FULLSCREEN and DOUBLEBUF

2018-06-10 Thread Gregory Ewing
Dennis Lee Bieber wrote: Both may be dependent upon the actual hardware graphics board and the drivers for said board. My guess is that if your surface is not fullscreen or is not a hardware surface, then you're always drawing into an ofscreen buffer that gets copied to the screen when

Re: Sorting NaNs

2018-06-10 Thread Steven D'Aprano
On Sun, 10 Jun 2018 21:28:02 +0200, Anders Munch wrote: > Richard Damon wrote: > >> The two behaviors that I have heard suggested are: >> >> 1) If any of the inputs are a NaN, the median should be a NaN. >> (Propagating the NaN as indicator of a numeric error) >> >> 2) Remove the NaNs from the

[issue22454] Adding the opposite function of shlex.split()

2018-06-10 Thread bbayles
Change by bbayles : -- nosy: +bbayles ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22454] Adding the opposite function of shlex.split()

2018-06-10 Thread bbayles
Change by bbayles : -- keywords: +patch pull_requests: +7228 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue33738] PyIndex_Check conflicts with PEP 384

2018-06-10 Thread Ned Deily
Ned Deily added the comment: New changeset 8398713cea0eb17b013f25f86bef47c7e5e63139 by Ned Deily (Christian Tismer) in branch 'master': bpo-33738: Address review comments in GH #7477 (GH-7585) https://github.com/python/cpython/commit/8398713cea0eb17b013f25f86bef47c7e5e63139 --

Re: your mail

2018-06-10 Thread Bob Gailer
On Jun 10, 2018 12:44 PM, "Karsten Hilbert" wrote: > > On Sun, Jun 10, 2018 at 06:58:17PM +0530, sagar daya wrote: > > > Couldn't install any module from pip > > Plz help??? The only help I can give at this point is to suggest that you tell us what you tried and how it failed. Please copy and

Re: Multiprocessing on a remote host

2018-06-10 Thread Peter J. Holzer
On 2018-03-21 09:27:37 -0400, Larry Martell wrote: > Yeah, I saw that and I wasn't trying to reinvent the wheel. On this > page https://docs.python.org/2/library/multiprocessing.html it says > this: > > The multiprocessing package offers both local and remote concurrency, > effectively

[issue33738] PyIndex_Check conflicts with PEP 384

2018-06-10 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +7227 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2018-06-10 Thread Peter J. Holzer
On 2018-06-11 06:35:27 +1000, Chris Angelico wrote: > Back in the 90s, my family sold books, many of them imported and/or > exported. We had a few books by Earl Rodd, all looking like books and > behaving like books. And we also had the "Rodd Papers", which are > individual photocopied leaflets

[issue33818] Make PyExceptionClass_Name returning a const string

2018-06-10 Thread Ned Deily
Ned Deily added the comment: While I think the change makes sense aesthetically, I do not see a compelling reason why such a user interface change should be introduced to 3.7 at literally the last moment. Let's do it for 3.8, please. -- versions: -Python 3.7

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

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

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

2018-06-10 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: New changeset 1d4089b5d208ae6f0bd256304fd77f04c0b4fd41 by Alexander Belopolsky (Miss Islington (bot)) in branch '3.6': bpo-33812: Corrected astimezone for naive datetimes. (GH-7578) (GH-7601)

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

2018-06-10 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: New changeset 037e9125527d4a55af566f161c96a61b3c3fd998 by Alexander Belopolsky (Miss Islington (bot)) in branch '3.7': bpo-33812: Corrected astimezone for naive datetimes. (GH-7578) (GH-7600)

Re: Why exception from os.path.exists()?

2018-06-10 Thread Peter J. Holzer
On 2018-06-11 00:28:11 +0300, Marko Rauhamaa wrote: > Barry Scott : > > Singling out os.path.exists as a special case I do think is > > reasonable. > > I don't think anyone has proposed that. While I brought up > os.path.exists() in my bug report, os.path.isfile(), os.path.isdir() etc > should

[issue33748] test_discovery_failed_discovery in test_unittest modifies sys.path

2018-06-10 Thread Ned Deily
Ned Deily added the comment: Backported for 3.7.0rc1 and 3.6.6rc1. Thanks, all! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue33748] test_discovery_failed_discovery in test_unittest modifies sys.path

2018-06-10 Thread Ned Deily
Ned Deily added the comment: New changeset 040d4a7b5899b9635c6997c5ecb91f8299f0b352 by Ned Deily (Miss Islington (bot)) in branch '3.6': bpo-33748: fix tests altering sys.path and sys.modules (GH-7433) (GH-7603)

[issue33748] test_discovery_failed_discovery in test_unittest modifies sys.path

2018-06-10 Thread Ned Deily
Ned Deily added the comment: New changeset 298eb07faa66da9c588bd82db14a6eef64167ede by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-33748: fix tests altering sys.path and sys.modules (GH-7433) (#7604) https://github.com/python/cpython/commit/298eb07faa66da9c588bd82db14a6eef64167ede

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

2018-06-10 Thread Ned Deily
Ned Deily added the comment: I backported Tal's fix for 3.7.0rc1. I am less certain about backporting to 3.6 and 2.7 at this stage of their lives but I don't have a strong feeling about it so I'll leave the issue open for that. -- ___ Python

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

2018-06-10 Thread Ned Deily
Ned Deily added the comment: New changeset 053d6c5ce246e6ba9c046467b02a0b6ba4abb8bf by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-33770: improve base64 exception message for encoded inputs of invalid length (GH-7416) (GH-7602)

Re: Posting warning message

2018-06-10 Thread Cameron Simpson
On 10Jun2018 11:26, John Ladasky wrote: On Sunday, June 10, 2018 at 7:47:01 AM UTC-7, T Berger wrote: When I go to post a reply, I get a warning asking if I want my email address (or other email addresses listed) visible to all, and do I want to edit my post. What should I do? Are you

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

2018-06-10 Thread Chris Angelico
On Mon, Jun 11, 2018 at 12:25 AM, Peter J. Holzer wrote: > But with online distribution (not necessarily github) the boundaries > become very fluid. When Debian still contained the Roxen webserver, it > comprised over 100 packages: The maintainer had put every plugin into a > separate package. I

Re: Why exception from os.path.exists()?

2018-06-10 Thread Marko Rauhamaa
Barry Scott : > Singling out os.path.exists as a special case I do think is > reasonable. I don't think anyone has proposed that. While I brought up os.path.exists() in my bug report, os.path.isfile(), os.path.isdir() etc should obviously be addressed simultaneously. It may even be that the fix

Re: Posting warning message

2018-06-10 Thread Chris Angelico
On Mon, Jun 11, 2018 at 4:26 AM, John Ladasky wrote: > On Sunday, June 10, 2018 at 7:47:01 AM UTC-7, T Berger wrote: >> When I go to post a reply, I get a warning asking if I want my email address >> (or other email addresses listed) visible to all, and do I want to edit my >> post. What should

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

2018-06-10 Thread Cameron Simpson
On 10Jun2018 13:04, bellcanada...@gmail.com wrote: here is the full error once again to summarize, my script works fine in python2 i get this error trying to run it in python3 plz see below after the error, my settings for python 2 and python 3 for me it seems i need to change some settings to

[issue33748] test_discovery_failed_discovery in test_unittest modifies sys.path

2018-06-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +7226 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2018-06-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +7224 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33748] test_discovery_failed_discovery in test_unittest modifies sys.path

2018-06-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +7225 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Why exception from os.path.exists()?

2018-06-10 Thread Barry Scott
> On 10 Jun 2018, at 21:10, Chris Angelico wrote: > > On Mon, Jun 11, 2018 at 12:45 AM, Bev in TX wrote: >>> * One with an embedded / in the file name >> >> This is easily done in Finder, where I created a folder named "my/slash”. >> When I list it at the command line in Terminal, this shows

[issue13153] IDLE 3.x on Windows crashes when pasting non-BMP unicode

2018-06-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: AFAIK, the big new feature of tcl/tk 9.0 is intended to be full unicode support. We can hope that 9.0 appears in time to be included in the 3.8 installers. Until then, I think filenames, user program output, and clipboard content should be checked for the

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

2018-06-10 Thread Peter J. Holzer
On 2018-06-10 15:24:38 +, Steven D'Aprano wrote: > On Sun, 10 Jun 2018 16:25:24 +0200, Peter J. Holzer wrote: > > Personally, I would let the author decide what constitutes one work. > > Ah yes... > > Star Wars, Empire Strikes Back, Return of the Jedi, Phantom Menace, > Attack of the

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

2018-06-10 Thread Jon Ribbens
On 2018-06-10, Ben Bacarisse wrote: > Jon Ribbens writes: > >> I'd suggest that since the processes he's purporting to disallow are >> entirely standard and automated and he knows full well they exist and >> that there is no mechanism by which they could be affected by his >> notice, the notice

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

2018-06-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +7223 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33462] reversible dict

2018-06-10 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi INADA thanks for the benchmark, I did both of them too and got the same results (though I had to apply https://github.com/python/performance/pull/41 to get the performance module working). Should I apply your patch in PR 6827? --

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

2018-06-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +7222 stage: commit review -> patch review ___ Python tracker ___ ___ Python-bugs-list

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

2018-06-10 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: New changeset 877b23202b7e7d4f57b58504fd0eb886e8c0b377 by Alexander Belopolsky in branch 'master': bpo-33812: Corrected astimezone for naive datetimes. (GH-7578) https://github.com/python/cpython/commit/877b23202b7e7d4f57b58504fd0eb886e8c0b377

[issue32493] UUID Module - FreeBSD build failure

2018-06-10 Thread Michael Felt
Michael Felt added the comment: I was not aware that _uuid was new to python3-3.7. I thought it had been around for a long time. Bpo-28009 goes back two years and i was unaware of uuid_create(). Would it be easier to split it into 3 issues? One for unixdll, one for netstat, and one for

Re: Why exception from os.path.exists()?

2018-06-10 Thread Peter J. Holzer
On 2018-06-10 09:45:06 -0500, Bev in TX wrote: > On Jun 10, 2018, at 5:49 AM, Peter J. Holzer wrote: > > On 2018-06-07 12:47:15 +, Steven D'Aprano wrote: > >> But it doesn't do that. "Pathnames cannot contain NUL" is a falsehood > >> that programmers wrongly believe about paths. HFS Plus and

Re: Why exception from os.path.exists()?

2018-06-10 Thread Chris Angelico
On Mon, Jun 11, 2018 at 6:22 AM, Marko Rauhamaa wrote: > Chris Angelico : >> Can you try creating "spam:ham" and "spam/ham"? If they're both legal, >> I'd like to see what their file names are represented as. > > I think Bev already explained it. At Unix level, you can't have slashes > in

Re: Sorting NaNs

2018-06-10 Thread Richard Damon
On 6/10/18 3:28 PM, Anders Munch wrote: > Richard Damon wrote: > >> The two behaviors that I have heard suggested are: >> >> 1) If any of the inputs are a NaN, the median should be a NaN. >> (Propagating the NaN as indicator of a numeric error) >> >> 2) Remove the NaNs from the input set and

[issue23831] tkinter canvas lacks of moveto method.

2018-06-10 Thread Matthias Kievernagel
Change by Matthias Kievernagel : -- nosy: +mkiever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Why exception from os.path.exists()?

2018-06-10 Thread Marko Rauhamaa
Chris Angelico : > Can you try creating "spam:ham" and "spam/ham"? If they're both legal, > I'd like to see what their file names are represented as. I think Bev already explained it. At Unix level, you can't have slashes in filenames. At GUI level, you can't have colons in filenames. Unix

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

2018-06-10 Thread Chris Angelico
On Sun, Jun 10, 2018 at 11:03 PM, Gregory Ewing wrote: > Chris Angelico wrote: >> >> You cannot, to >> my knowledge, publish a game for the PS4 or Xbox 360 without >> permission from Nintendo or Microsoft. > > > That's because, since we *do* have copyright laws, the > manufacturers of the

[issue33610] IDLE: Make multiple improvements to CodeContext

2018-06-10 Thread miss-islington
miss-islington added the comment: New changeset 08a1b133925f50903691c77fa9c23b618abc89f2 by Miss Islington (bot) in branch '3.6': bpo-33610: Update IDLE Code Context doc entry (GH-7597) https://github.com/python/cpython/commit/08a1b133925f50903691c77fa9c23b618abc89f2 --

Re: Why exception from os.path.exists()?

2018-06-10 Thread Chris Angelico
On Mon, Jun 11, 2018 at 12:45 AM, Bev in TX wrote: >> * One with an embedded / in the file name > > This is easily done in Finder, where I created a folder named "my/slash”. > When I list it at the command line in Terminal, this shows up as "my:slash”, > with the slash shown as a colon. > If I

[issue33610] IDLE: Make multiple improvements to CodeContext

2018-06-10 Thread miss-islington
miss-islington added the comment: New changeset 2adfeef1853262b207a1993e523f0f3ba708dd9f by Miss Islington (bot) in branch '3.7': bpo-33610: Update IDLE Code Context doc entry (GH-7597) https://github.com/python/cpython/commit/2adfeef1853262b207a1993e523f0f3ba708dd9f -- nosy:

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

2018-06-10 Thread Chris Angelico
On Mon, Jun 11, 2018 at 2:49 AM, wrote: > > excuse but sorry > i took the time to manually write the code error from the traceback as you > said > and thats because i cant seem to find a way to attach files here..which would > make it so easier for me and also i could attach snippets of the

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

2018-06-10 Thread bellcanadardp
On Friday, 8 June 2018 18:26:28 UTC-4, Cameron Simpson wrote: > 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

Re: Distributing a Python module as .rpm and .deb packages across major distributions

2018-06-10 Thread Barry
> On 8 Jun 2018, at 18:04, adam.pre...@gmail.com wrote: > > I have a situation where internally I need to distribute some Python code > using Linux packages rather than simply relying on wheel files. This seems to > be a solved problem because a lot of Python modules clearly get distributed

[issue33610] IDLE: Make multiple improvements to CodeContext

2018-06-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: General Update: We have done 1, 3, 7, 8, 9, 11, 17, 21. Very nice. A re-organized list of the remainder (with old numbers). Docs: D1: idle.rst subsection on Code Context (19, see #33642). D2: What's New in 3.6.6 and 3.7.0 (20). Menu M1: put Code Context

[issue33610] IDLE: Make multiple improvements to CodeContext

2018-06-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +7220 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33610] IDLE: Make multiple improvements to CodeContext

2018-06-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +7221 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33610] IDLE: Make multiple improvements to CodeContext

2018-06-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset af4b0130d44bf8a1ff4f7b46195d1dc79add444a by Terry Jan Reedy in branch 'master': bpo-33610: Update IDLE Code Context doc entry (GH-7597) https://github.com/python/cpython/commit/af4b0130d44bf8a1ff4f7b46195d1dc79add444a --

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

2018-06-10 Thread Gene Heskett
On Sunday 10 June 2018 14:42:02 Rick Johnson wrote: > Gene Heskett wrote: > > I rather like that idea. Unforch, who would be in charge of keeping > > the books uptodate? The USTPO? Of course that would expand another > > guvmnt agencies payroll x10, and its a waste of taxpayer dollars > > since

[issue33824] Settign LANG=C modifies the --version behavior

2018-06-10 Thread Ned Deily
Ned Deily added the comment: Odd. I see the same behavior with the python.org macOS builds so it's not just Fedora. -- nosy: +ned.deily ___ Python tracker ___

[issue33824] Settign LANG=C modifies the --version behavior

2018-06-10 Thread Miro Hrončok
New submission from Miro Hrončok : On 3.6, setting LANG to C did not affect the --version behavior: $ python3.6 --version Python 3.6.5 $ LANG=C python3.6 --version Python 3.6.5 On 3.7.0b5 it does. $ python3.7 --version Python 3.7.0b5 $ LANG=C python3.7 --version Python 3.7.0b5 (default, Jun

[issue33820] IDLE subsection of What's New 3.6

2018-06-10 Thread miss-islington
miss-islington added the comment: New changeset 969759e11ecfbd662642ba4fb23159faf56ee859 by Miss Islington (bot) in branch '3.6': bpo-33820: Fix IDLE What's New typo (GH-7594) https://github.com/python/cpython/commit/969759e11ecfbd662642ba4fb23159faf56ee859 --

Re: Sorting NaNs

2018-06-10 Thread Anders Munch
Richard Damon wrote: The two behaviors that I have heard suggested are: 1) If any of the inputs are a NaN, the median should be a NaN. (Propagating the NaN as indicator of a numeric error) 2) Remove the NaNs from the input set and process what is left. If nothing, then return a NaN (treating

[issue33820] IDLE subsection of What's New 3.6

2018-06-10 Thread miss-islington
miss-islington added the comment: New changeset 3da01813c83d23922798b398bc00f465593c80da by Miss Islington (bot) in branch '3.7': bpo-33820: Fix IDLE What's New typo (GH-7594) https://github.com/python/cpython/commit/3da01813c83d23922798b398bc00f465593c80da --

Re: user defined modules

2018-06-10 Thread Rick Johnson
Sharan Basappa wrote: > Is there a specific location where user defined modules > need to be kept? My advice is that any location is a good location so long as the location you chose is _not_ a part of the PythonXY directory tree. For example, on a windoze machine (and in Python2.x at least),

[issue33610] IDLE: Make multiple improvements to CodeContext

2018-06-10 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +7219 stage: -> patch review ___ Python tracker ___ ___

[issue33820] IDLE subsection of What's New 3.6

2018-06-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +7218 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33820] IDLE subsection of What's New 3.6

2018-06-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +7217 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

  1   2   >