[issue32400] inspect.isdatadescriptor false negative

2018-06-10 Thread Dong-hee Na
Dong-hee Na added the comment: @Serhiy Storchaka This issue can be closed due to PR 1959 -- keywords: +patch nosy: +corona10, serhiy.storchaka pull_requests: +7206 stage: -> patch review ___ Python tracker

[issue33741] UnicodeEncodeError onsmtplib.login(MAIL_USER, MAIL_PASSWORD)

2018-06-10 Thread Tal Einat
Tal Einat added the comment: Is this a bug? Are passwords containing non-ASCII characters supposed to be supported? If so, which encoding should be assumed for the password? Since it needs to be base64-encoded, it must be encoded into bytes. -- nosy: +taleinat

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

2018-06-10 Thread Peter J. Holzer
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 Apple File > System support NULs in paths. [...] > But in the spirit of compromise, okay, let's ignore the

[issue33818] Make PyExceptionClass_Name returning a const string

2018-06-10 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +7204 stage: -> patch review ___ Python tracker ___ ___

[issue33818] Make PyExceptionClass_Name returning a const string

2018-06-10 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- Removed message: https://bugs.python.org/msg319200 ___ Python tracker ___ ___ Python-bugs-list

[issue33805] dataclasses: replace() give poor error message if using InitVar

2018-06-10 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +7203 stage: -> patch review ___ Python tracker ___ ___

[issue33818] Make PyExceptionClass_Name returning a const string

2018-06-10 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : PyExceptionClass_Name() returns just the tp_name field, a pointer to immutable char array. tp_name had type "char *" in old Python versions, but it was changed to "const char *" in revision af68c874a6803b4e90b616077a602c0593719a1d. But

[issue33818] Make PyExceptionClass_Name returning a const string

2018-06-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PyExceptionClass_Name() returns just the tp_name field, a pointer to immutable char array. tp_name had type "char *" in old Python versions, but it was changed to "const char *" in revision af68c874a6803b4e90b616077a602c0593719a1d. But

[issue33748] test_discovery_failed_discovery in test_unittest modifies sys.path

2018-06-10 Thread Tal Einat
Tal Einat added the comment: New changeset 4ab4695388fb9ec03a14d93e90ce50d832a920ec by Tal Einat in branch 'master': bpo-33748: fix tests altering sys.path and sys.modules (GH-7433) https://github.com/python/cpython/commit/4ab4695388fb9ec03a14d93e90ce50d832a920ec --

[issue33462] reversible dict

2018-06-10 Thread INADA Naoki
INADA Naoki added the comment: I confirmed the cost is negligible. python_startup_no_site == Mean +- std dev: [master] 7.31 ms +- 0.39 ms -> [reverse] 7.41 ms +- 0.44 ms: 1.01x slower (+1%) Mean +- std dev: [master] 7.31 ms +- 0.39 ms -> [register] 7.20 ms +- 0.28 ms:

[issue32400] inspect.isdatadescriptor false negative

2018-06-10 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: -7206 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2018-06-10 Thread Marko Rauhamaa
Chris Angelico : > It's important to pin down the true cause of the problem, and not > blame something for doing the proper Pythonic thing. So could you tell me what the proper Pythonic fix for the example server in Python's documentation would be? Here's the code in question:

[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: New changeset 1b85c71a2136d3fa6a1da05b27b1fe4e4b8ee45e by Tal Einat in branch 'master': bpo-33770: improve base64 exception message for encoded inputs of invalid length (#7416) https://github.com/python/cpython/commit/1b85c71a2136d3fa6a1da05b27b1fe4e4b8ee45e

[issue27397] email.message.Message.get_payload(decode=True) raises AssertionError that "should never happen"

2018-06-10 Thread Tal Einat
Change by Tal Einat : -- keywords: +patch pull_requests: +7205 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue33817] PyString_FromFormatV() fails to build empty strings

2018-06-10 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka versions: -Python 3.4, Python 3.5 ___ Python tracker ___

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

2018-06-10 Thread Jon Ribbens
On 2018-06-08, Chris Angelico wrote: > Yes, this is true. It's not copyright that is unenforceable, but the > copyright notice in his message. Nobody is denying that he owns his > own words; but by posting them on a public forum, he - like everyone > else here - is implicitly granting us the

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

2018-06-10 Thread Chris Angelico
On Sun, Jun 10, 2018 at 7:06 PM, Marko Rauhamaa wrote: > Chris Angelico : >> It's important to pin down the true cause of the problem, and not >> blame something for doing the proper Pythonic thing. > > So could you tell me what the proper Pythonic fix for the example server > in Python's

[issue32400] inspect.isdatadescriptor false negative

2018-06-10 Thread Berker Peksag
Change by Berker Peksag : -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> Contradiction in definition of "data descriptor" between (dotted lookup behavior/datamodel documentation) and (inspect lib/descriptor how-to)

[issue33738] PyIndex_Check conflicts with PEP 384

2018-06-10 Thread Christian Tismer
Christian Tismer added the comment: @Victor I cannot test on Windows because I'm in vacation. But it is very likely similar to bpo-33614 . The three missing symbols which are listed in python3.def do clearly come into existence when the limited API is active. --

[issue29750] smtplib doesn't handle unicode passwords

2018-06-10 Thread R. David Murray
R. David Murray added the comment: Note: it is definitely the case, regardless of what the RFC says, that binary passwords need to be supported. utf-8 should probably be used as the default encoding for string passwords, rather than ascii. See also #33741. --

[issue33822] IDLE subsection of What's New 3.8

2018-06-10 Thread Terry J. Reedy
New submission from Terry J. Reedy : Following #33821, master issue for IDLE entries in Doc/whatsnew/3.8.rst. This doc has a section 'Improved Modules' with a subsection 'idlelib and IDLE'. The initial unlabeled subsubsection includes important enhancements to IDLE since 3.7.0. Because of

[issue33820] IDLE subsection of What's New 3.6

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

[issue33820] IDLE subsection of What's New 3.6

2018-06-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset e226eb71575ad22a6779b02941377665831cfff2 by Terry Jan Reedy in branch 'master': bpo-33820: Update idlelib subsection of What's New 3.6 (GH-7589) https://github.com/python/cpython/commit/e226eb71575ad22a6779b02941377665831cfff2 --

[issue33820] IDLE subsection of What's New 3.6

2018-06-10 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +7216 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

[issue33738] PyIndex_Check conflicts with PEP 384

2018-06-10 Thread STINNER Victor
STINNER Victor added the comment: It seems like the change broke compilation on Windows, but I'm not sure: http://buildbot.python.org/all/#/builders/12/builds/959 (Link target) -> python3.def : error LNK2001: unresolved external symbol PyExceptionClass_Name

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

2018-06-10 Thread STINNER Victor
STINNER Victor added the comment: > It looks like the module has never set the file mode, at least since it was > added to Python in 1994. I suggest just remove the dead code and fix the > documentation. You cannot just remove the mode parameter without a deprecation period. Right now, the

[issue32561] Add API to io objects for non-blocking reads/writes

2018-06-10 Thread Nathaniel Smith
Nathaniel Smith added the comment: The idea here is *not* to avoid using a thread pool in general. When the data is on disk, using a thread pool is (a) unavoidable, because of how operating system kernels are written, and (b) basically fine anyway, because the overhead added by threads is

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 07:42:34 UTC-4, Steven D'Aprano wrote: > On Fri, 08 Jun 2018 03:35:12 -0700, bellcanadardp wrote: > > > hello steven are you there?? > > i posted the full error message... > > No you didn't. > > I saw your post, and ignored it, because you didn't follow instructions. >

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

2018-06-10 Thread Gregory Ewing
Chris Angelico wrote: I doubt very much that anyone other than hobbyists would write software that they're unable to sell. Or, maybe, people who *use* the machines as part of their livelihood, and have an incentive to produce good, reliable software that does what they need. I'm also not

[issue33821] IDLE subsection of What's New 3.7

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

[issue33823] A BUG in concurrent/asyncio

2018-06-10 Thread Python++
Change by Python++ : Added file: https://bugs.python.org/file47637/BUG for concurrent.futures(Found by william).py ___ Python tracker ___

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

2018-06-10 Thread Rick Johnson
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 Albert > retired anyway. What century are you trapped in pal?

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

2018-06-10 Thread Steven D'Aprano
On Sun, 10 Jun 2018 13:36:34 +1000, Chris Angelico wrote: >> That's all speculation. It's impossible to say how things would have >> turned out if copyrights didn't apply to software. Certainly different, >> but not necessarily worse. >> >> In the early days, computer manufacturers didn't worry

[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2018-06-10 Thread STINNER Victor
STINNER Victor added the comment: > pause_reading and resume_reading became idempotent only in 3.7 Do you consider that it's a new feature or a bugfix? Should we backport this change to 3.6? Currently, race.py fails with an error because of the 3.6 behaviour. (I modified asyncio to be able

[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2018-06-10 Thread Yury Selivanov
Yury Selivanov added the comment: Since it a minor change we can reconsider it as s bug fix. Feel free to make a pr. -- ___ Python tracker ___

[issue33741] UnicodeEncodeError onsmtplib.login(MAIL_USER, MAIL_PASSWORD)

2018-06-10 Thread R. David Murray
R. David Murray added the comment: Duplicate of #29750. TLDR: smtplib needs to be fixed to handle binary passwords, and probably to use utf-8 as the default encoding for unicode passwords. -- nosy: +r.david.murray resolution: -> duplicate stage: -> resolved status: open -> closed

[issue29750] smtplib doesn't handle unicode passwords

2018-06-10 Thread R. David Murray
Change by R. David Murray : -- nosy: +JustAnother1, giampaolo.rodola, taleinat ___ Python tracker ___ ___ Python-bugs-list mailing

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 10:23:47 UTC-4, Steven D'Aprano wrote: > Do you enjoy wasting your own time (as well as ours) by failing to follow > instructions? > > We can't read your mind to see the code you are using, and I am getting > frustrated from telling you the same thing again and again. >

[issue33817] PyString_FromFormatV() fails to build empty strings

2018-06-10 Thread Tey
Tey added the comment: BTW, problem does appear in 3.4 as it's only been fixed in 3.5+ as a fix for issue #25270 -- ___ Python tracker ___

[issue33821] IDLE subsection of What's New 3.7

2018-06-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 222f7f40339238b3d2c803849c75e682725449d7 by Terry Jan Reedy in branch 'master': bpo-33821: Update idlelib subsection of What's New 3.7 (#7590) https://github.com/python/cpython/commit/222f7f40339238b3d2c803849c75e682725449d7 --

[issue33820] IDLE subsection of What's New 3.6

2018-06-10 Thread miss-islington
miss-islington added the comment: New changeset 953d300ffad108b036f483307b04b09872b162d9 by Miss Islington (bot) in branch '3.7': bpo-33820: Update idlelib subsection of What's New 3.6 (GH-7589) https://github.com/python/cpython/commit/953d300ffad108b036f483307b04b09872b162d9 --

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

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

[issue32561] Add API to io objects for non-blocking reads/writes

2018-06-10 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Gotcha. Thanks for clarifying. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2018-06-10 Thread Peter J. Holzer
On 2018-06-09 10:15:43 +1000, Chris Angelico wrote: > 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

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

2018-06-10 Thread Steven D'Aprano
Do you enjoy wasting your own time (as well as ours) by failing to follow instructions? We can't read your mind to see the code you are using, and I am getting frustrated from telling you the same thing again and again. PLEASE PLEASE PLEASE PLEASE help us to help you. Start by reading this:

Re: (no subject)

2018-06-10 Thread Rick Johnson
sagar daya wrote: > Couldn't install any module from pip > Plz help??? As with most actions, an algorithm is required. (shocking, i know!) What methodology have you implemented thus far to achieve your goal of "installing modules from PIP"? Please enumerate the steps you chose to take, and then

Re: Re: Re: FULLSCREEN and DOUBLEBUF

2018-06-10 Thread Paul St George
Paul St George wrote: So... print pygame.display.get_surface() gives and print screen.get_flags() gives -2147483648 To recap: this thread started with a question. How do I know whether DOUBLEBUF has been set with: screen = pygame.display.set_mode((720,480), pygame.DOUBLEBUF |

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

2018-06-10 Thread Alexander Belopolsky
Change by Alexander Belopolsky : -- stage: patch review -> commit review versions: +Python 3.6 ___ Python tracker ___ ___

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

2018-06-10 Thread Rick Johnson
On Friday, June 8, 2018 at 12:34:58 PM UTC-5, 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 like your idea of

[issue33820] IDLE subsection of What's New 3.6

2018-06-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 820c53ac612e9c4b3cb3e831537a15d5e953bbc0 by Terry Jan Reedy in branch 'master': bpo-33820: Fix IDLE What's New typo (#7594) https://github.com/python/cpython/commit/820c53ac612e9c4b3cb3e831537a15d5e953bbc0 --

[issue33741] UnicodeEncodeError onsmtplib.login(MAIL_USER, MAIL_PASSWORD)

2018-06-10 Thread Lars Pötter
Lars Pötter added the comment: I wanted to login to an existing account so the password works OK in Thunderbird. Here in Germany it is recommended for safe passwords to use the German umlauts(ßÄÖÜäöü). So code page 437 vs 850 or UTF-8 ? If I could pass in the bytes then I could figure out

[issue33587] inspect.getsource performs unnecessary filesystem stat call

2018-06-10 Thread Tal Einat
Tal Einat added the comment: Moving the linecache check up before the two others seems like a simple and safe optimization. On the other hand, I'm not sure calling getmodule() before checking if the file exists would be faster in many cases. Pankaj, could you also include the script you ran

[issue33819] Mention "ordered mapping" instead of "ordered dictionary" in email module

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

[issue33819] Mention "ordered mapping" instead of "ordered dictionary" in email module

2018-06-10 Thread Andrés Delfino
New submission from Andrés Delfino : IMHO, we should replace the "ordered dictionary" with "ordered mapping" now that regular dictionaries are ordered. I'm proposing "ordered mapping" instead of "dictionary" because there's no actual dictionary behind; it's just a "conceptual model". PR

[issue29750] smtplib doesn't handle unicode passwords

2018-06-10 Thread R. David Murray
Change by R. David Murray : -- stage: -> needs patch versions: +Python 3.8 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list

Re: Re: FULLSCREEN and DOUBLEBUF

2018-06-10 Thread Peter Otten
Paul St George wrote: > So... > > print pygame.display.get_surface() > gives > > > and > print screen.get_flags() > gives > -2147483648 > To recap: this thread started with a question. How do I know whether > DOUBLEBUF has been set with: > > screen =

[no subject]

2018-06-10 Thread sagar daya
Couldn't install any module from pip Plz help??? -- https://mail.python.org/mailman/listinfo/python-list

[issue33821] IDLE subsection of What's New 3.7

2018-06-10 Thread Terry J. Reedy
New submission from Terry J. Reedy : Following #33820, master issue for future IDLE entries in Doc/whatsnew/3.7.rst. This doc has a section 'Improved Modules' with a subsection 'idlelib and IDLE'. The initial unlabeled subsubsection includes important enhancements to IDLE since 3.6.0.

[issue33820] IDLE subsection of What's New 3.6

2018-06-10 Thread Terry J. Reedy
New submission from Terry J. Reedy : Master issue for future IDLE entries in Doc/whatsnew/3.6.rst. This doc has a section 'Improved Modules' with a subsection 'idlelib and IDLE' with subsubsections 'New in 3.6.z:'. This issue starts with 3.6.6. It will close after the last 3.6 maintenance

[issue33820] IDLE subsection of What's New 3.6

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

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

2018-06-10 Thread Ben Bacarisse
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 has little effect. The Copyright notice is

[issue33820] IDLE subsection of What's New 3.6

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

[issue33823] A BUG in concurrent/asyncio

2018-06-10 Thread Yury Selivanov
Yury Selivanov added the comment: > which results in the resulting statistics of the last code run cannot be > promised to be separated. I'm sorry but I cannot parse your message and the attached code snippet. Please try to formulate the actual bug/feature request more clearly. --

[issue33821] IDLE subsection of What's New 3.7

2018-06-10 Thread miss-islington
miss-islington added the comment: New changeset 1ed8294924a9a47fb6f98f88cc7340a5512c75c3 by Miss Islington (bot) in branch '3.7': bpo-33821: Update idlelib subsection of What's New 3.7 (GH-7590) https://github.com/python/cpython/commit/1ed8294924a9a47fb6f98f88cc7340a5512c75c3 --

[issue33820] IDLE subsection of What's New 3.6

2018-06-10 Thread miss-islington
miss-islington added the comment: New changeset 8ecd7f6d528703242b3c77aba5c91df13abe863c by Miss Islington (bot) in branch '3.6': bpo-33820: Update idlelib subsection of What's New 3.6 (GH-7589) https://github.com/python/cpython/commit/8ecd7f6d528703242b3c77aba5c91df13abe863c --

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

Re: Re: FULLSCREEN and DOUBLEBUF

2018-06-10 Thread Paul St George
To recap: this thread started with a question. How do I know whether DOUBLEBUF has been set with:     screen = pygame.display.set_mode((720,480), pygame.DOUBLEBUF | pygame.FULLSCREEN) On 09/06/2018 22:04, Mark Lawrence wrote: On 09/06/18 20:31, Paul St George wrote: print

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

2018-06-10 Thread Chris Angelico
On Sun, Jun 10, 2018 at 9:08 PM, Steven D'Aprano wrote: > On Sun, 10 Jun 2018 13:36:34 +1000, Chris Angelico wrote: > >>> That's all speculation. It's impossible to say how things would have >>> turned out if copyrights didn't apply to software. Certainly different, >>> but not necessarily worse.

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

2018-06-10 Thread Martin Panter
Martin Panter added the comment: What is your use case, Poul-Henning? It looks like the module has never set the file mode, at least since it was added to Python in 1994. I suggest just remove the dead code and fix the documentation. At least you shouldn’t make this change in bug fix

[issue32493] UUID Module - FreeBSD build failure

2018-06-10 Thread STINNER Victor
STINNER Victor added the comment: > As noted on PR 7511 and PR 7567, I have merged Michael's configure.ac fixes > for testing for uuid_enc_be availability (independent of platform) that were > incorrect in earlier commits for this issue. Merged for 3.7.0rc1 and master > (3.8). Thanks,

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

2018-06-10 Thread Gregory Ewing
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 consoles are able to make money by selling the software as well as the hardware

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

2018-06-10 Thread Steven D'Aprano
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 Clones, Revenge of the Sith, Rogue One, Force Awakens, Last Jedi,

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

2018-06-10 Thread Marko Rauhamaa
Steven D'Aprano : > 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 Clones, Revenge of the Sith, Rogue One,

[issue33817] PyString_FromFormatV() fails to build empty strings

2018-06-10 Thread Tey
Tey added the comment: For the record, it does not fail on 3.x because _PyBytes_Resize() checks if the "string" needs to be resized (and returns if not) before checking its ref count. Maybe something similar should be done in _PyString_Resize() for 2.x. --

Re: Posting warning message

2018-06-10 Thread John Ladasky
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 posting through Google Groups? Sometimes I

Re:

2018-06-10 Thread Timo Furrer
Can you be more specific. What did you try? In which environment? What was the error message you got? On Sun, Jun 10, 2018 at 6:32 PM sagar daya wrote: > Couldn't install any module from pip > Plz help??? > -- > https://mail.python.org/mailman/listinfo/python-list > -- *Timo Furrer*

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

[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

[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

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

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

[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

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

[issue32561] Add API to io objects for non-blocking reads/writes

2018-06-10 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: os.preadv() and os.pwritev() are great but to my understanding one essential piece is still missing in order to effectively do non-blocking file IO and avoid using a thread pool: being notified when the file fd is readable/writable. select() and epoll()

[issue33741] UnicodeEncodeError onsmtplib.login(MAIL_USER, MAIL_PASSWORD)

2018-06-10 Thread Tal Einat
Tal Einat added the comment: We definitely need an expert to weigh in on this. -- nosy: +giampaolo.rodola ___ Python tracker ___

[issue33738] PyIndex_Check conflicts with PEP 384

2018-06-10 Thread Christian Tismer
Change by Christian Tismer : -- pull_requests: +7207 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33573] statistics.median does not work with ordinal scale, add doc

2018-06-10 Thread Tal Einat
Tal Einat added the comment: PR ready for review. -- nosy: +taleinat ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue33573] statistics.median does not work with ordinal scale, add doc

2018-06-10 Thread Tal Einat
Change by Tal Einat : -- keywords: +patch pull_requests: +7209 stage: needs patch -> patch review ___ Python tracker ___ ___

Posting warning message

2018-06-10 Thread T Berger
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? -- https://mail.python.org/mailman/listinfo/python-list

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

2018-06-10 Thread Marko Rauhamaa
Chris Angelico : > It's easy to look back NOW and say "even if software had no copyright, > this could still exist". It's not so easy to see that such things > would have come about. [...] I doubt very much that anyone other than > hobbyists would write software that they're unable to sell. A lot

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

2018-06-10 Thread Bev in TX
> 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 Apple File >> System support NULs in paths. >

  1   2   >