[issue37149] link to official documentation tkinter failed !!!

2019-07-06 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14434
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/14620

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37149] link to official documentation tkinter failed !!!

2019-07-06 Thread miss-islington


miss-islington  added the comment:


New changeset 55270d09c212654c4f1bc9ebf9a0081c169a6d12 by Miss Islington (bot) 
in branch '2.7':
bpo-37149: Replace dead link for online Tkinter reference  (GH-14616)
https://github.com/python/cpython/commit/55270d09c212654c4f1bc9ebf9a0081c169a6d12


--
nosy: +miss-islington

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37512] Error in the documentation about string concatenation

2019-07-06 Thread Dmitriy


Dmitriy  added the comment:

Yes, optimization is really not working in case of prepending. In case of 
multiple references I couldn't get quadratic time grow.

Concerning the Windows, yes, the optimization may be not always efficient:

>>> timeit('a+="a"', setup='a=""', number=1)
0.001169099984797
>>> timeit('a+="a"', setup='a=""', number=10)
0.0111443999206
>>> timeit('a+="a"', setup='a=""', number=100)
0.1078382999739
>>> timeit('a+="a"', setup='a=""', number=1000)
5.63633749996

As I understand this is the case related to OS memory management.


But on Linux I got fairly predictable results:

>>> timeit('a+="a"', setup='a=""', number=1)
0.0006532900151796639
>>> timeit('a+="a"', setup='a=""', number=10)
0.006340583000564948
>>> timeit('a+="a"', setup='a=""', number=100)
0.06438201799755916
>>> timeit('a+="a"', setup='a=""', number=1000)
0.6354853530065157
>>> timeit('a+="a"', setup='a=""', number=1)
6.365498173021479


Also I have found the mention about optimization in PEP8
https://www.python.org/dev/peps/pep-0008/#programming-recommendations

So maybe it would be nice to add some notes or reference to the part of upper 
PEP in docs about optimizations in CPython to make it more clear.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26806] IDLE not displaying RecursionError tracebacks and hangs

2019-07-06 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14436
pull_request: https://github.com/python/cpython/pull/14622

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26806] IDLE not displaying RecursionError tracebacks and hangs

2019-07-06 Thread Tal Einat


Tal Einat  added the comment:


New changeset fcf1d003bf4f0100c9d0921ff3d70e1127ca1b71 by Tal Einat in branch 
'master':
bpo-26806: add 30 to the recursion limit in IDLE's shell (GH-13944)
https://github.com/python/cpython/commit/fcf1d003bf4f0100c9d0921ff3d70e1127ca1b71


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26806] IDLE not displaying RecursionError tracebacks and hangs

2019-07-06 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14435
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/14621

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26806] IDLE not displaying RecursionError tracebacks and hangs

2019-07-06 Thread miss-islington


miss-islington  added the comment:


New changeset d4af55391f56286ab8d478591017174a5a0a5ce2 by Miss Islington (bot) 
in branch '3.8':
bpo-26806: add 30 to the recursion limit in IDLE's shell (GH-13944)
https://github.com/python/cpython/commit/d4af55391f56286ab8d478591017174a5a0a5ce2


--
nosy: +miss-islington

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26806] IDLE not displaying RecursionError tracebacks and hangs

2019-07-06 Thread miss-islington


miss-islington  added the comment:


New changeset d666217b26c373784761e3a84f243f02682bccb1 by Miss Islington (bot) 
in branch '3.7':
bpo-26806: add 30 to the recursion limit in IDLE's shell (GH-13944)
https://github.com/python/cpython/commit/d666217b26c373784761e3a84f243f02682bccb1


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26806] IDLE not displaying RecursionError tracebacks and hangs

2019-07-06 Thread Tal Einat


Change by Tal Einat :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37514] french translation Spelling mistake on datetime python's library documentation online

2019-07-06 Thread Lanteri Jérôme

New submission from Lanteri Jérôme :

"Un objet avisé est utilisé pour représenté un moment"
corrected should be:
"Un objet avisé est utilisé pour représenter un moment"

Comment for help French translator:
Vous pouvez tester en remplaçant le verbe suspecté par un verbe du troisième 
groupe, tel que "faire":
"Un objet avisé est utilisé pour faire..." (ça fonctionne, il n'est pas 
conjugué, par ce que on ne pourrait pas dire: "Un objet avisé est utilisé pour 
fait..."). C'est une astuce facile à retenir.

--
assignee: docs@python
components: Documentation
messages: 347432
nosy: docs@python, jerome_l
priority: normal
severity: normal
status: open
title: french translation Spelling mistake on datetime python's library 
documentation online
versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37514] french translation Spelling mistake on datetime python's library documentation online

2019-07-06 Thread SilentGhost


Change by SilentGhost :


--
nosy: +mdk

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37514] french translation Spelling mistake on datetime python's library documentation online

2019-07-06 Thread Paul Ganssle


Paul Ganssle  added the comment:

@Lanteri If you'd like you can make a pull request against the French 
documentation here: https://github.com/python/python-docs-fr

The relevant file is library/datetime.po

It also seems like the French documentation has its own issue tracker, here: 
https://github.com/python/python-docs-fr/issues

I will leave it to @mdk as to whether this issue should be migrated over there 
or not.

--
nosy: +p-ganssle

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37510] argparse removing more "--" than it should

2019-07-06 Thread Jorge L. Martinez


Jorge L. Martinez  added the comment:

> There are earlier bug/issues about the '--'.

Yes, there are:

https://bugs.python.org/issue9571
https://bugs.python.org/issue3
https://bugs.python.org/issue14364

But this one seems separate. Though they're related, they don't seem like 
duplicates, so that's why I thought I'd make this one.

> Also look at the parser code itself.  Keep in mind that parsing is done in 
> two passes - once to identify flags versus arguments ('O/A') and then to 
> allocate strings to arguments. I don't recall when '--' is being handled, 
> possibly in both.

I'm not sure what your point is here. I did take a quick look at the code, 
yesterday. I think the identification part you mention is done right. It marks 
'O/A' as you mention. Then, when it sees "--", it marks it "-", and the rest of 
the arguments are marked as "A".

I didn't look at the start of the code of the second pass or how it is 
concretely linked to the first pass. However, I did see that in the example I 
gave, _get_values() in argparse.py gets called twice (apparently once per 
argument group as determined by nargs, I guess) to remove the "--" present in 
arg_strings. The first time, arg_strings is ["foo", "--"] and the second time 
it's ["bar", "--", "baz", "--", "zap"].

So, that's what happens, and where part of the fix should probably be. I don't 
think the removal of "--" should happen in a function that gets called multiple 
times. Though I didn't spend the time to see where the code should be 
positioned, I can only imagine the correct behavior would be to remove the 
argument marked as "-" by the first pass mentioned.

I didn't mention this yesterday, because I figured there wouldn't be much value 
in sharing incomplete research like this, as opposed to a patch. I didn't want 
to influence the work of whoever chose to invest time in this for a proper fix.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37510] argparse removing more "--" than it should

2019-07-06 Thread Jorge L. Martinez


Jorge L. Martinez  added the comment:

> to remove the "--" present in arg_strings

*to remove the first "--" present...

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37515] `open("aux.txt", "w")` fails unexpectedly with FileNotFoundError on Windows

2019-07-06 Thread Carsten


New submission from Carsten :

I maintain a package which includes a package named "aux.py".
I could not install it on my windows machine via pip and others had the same 
problem also with windows.

I tracked down the problem to `io.open`. On my Windows 7 System with Python 
3.7.1 from Anaconda, the following statements all result in a FileNotFoundError:

open("aux", "w")
open("Aux", "w")
open("AUX", "w")
open("aux.py", "w")
open("aux.py", "wb")
open("aux.txt", "w")


On the other hand the following commands work as expected:

open("aaux", "w")
open("AUX1.txt", "w")
open("aux2.py", "w")

etc.


Can anybody confirm this?


On Linux (I could not reproduce the problem.)

--
components: IO
files: bug.png
messages: 347436
nosy: CarK
priority: normal
severity: normal
status: open
title: `open("aux.txt", "w")` fails unexpectedly with FileNotFoundError on 
Windows
versions: Python 3.7
Added file: https://bugs.python.org/file48459/bug.png

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37510] argparse removing more "--" than it should

2019-07-06 Thread paul j3


paul j3  added the comment:

I looked at this issue way back, in 2013:

https://bugs.python.org/issue13922

I probably shouldn't have tacked this on to a closed issue.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37515] `open("aux.txt", "w")` fails unexpectedly with FileNotFoundError on Windows

2019-07-06 Thread SilentGhost


SilentGhost  added the comment:

aux is one of the reserved filenames on windows: 
https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file#naming-conventions

I don't think Python can do anything about that.

--
components: +Windows -IO
nosy: +SilentGhost, paul.moore, steve.dower, tim.golden, zach.ware
resolution:  -> third party
stage:  -> resolved
status: open -> closed
type:  -> behavior

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37515] `open("aux.txt", "w")` fails unexpectedly with FileNotFoundError on Windows

2019-07-06 Thread Carsten


Carsten  added the comment:

This is a good explanation. Indeed Windows complains if I manually want to 
create a file "aux.txt" ("This device name is not allowed").

If I want to copy-paste such a file from within a zip-file (Windows Explorer 
can open zip files) I get an "Unexpected Error".


I think a descriptive error message would be very helpful here. The best 
mechanism would be if this was generated on system level and then just passed 
through by io.open to the generated Exception. But just throwing a 
"FileNotFoundError" without any hint is potentially frustrating.

Suggestion for a better Error message: "Could neither open nor create the 
desired file. Maybe the filename is not allowed by the underlying os".

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37515] `open("aux.txt", "w")` fails unexpectedly with FileNotFoundError on Windows

2019-07-06 Thread Eryk Sun


Eryk Sun  added the comment:

DOS device names are reserved in the final component of DOS drive-letter paths. 
"AUX" (plus an optional colon, spaces, or extension) becomes "\\.\AUX", which 
is "\??\AUX" in the NT object namespace. By default, "\??\AUX" is a link to 
"\??\COM1", which, if it exists, is typically a link to "\Device\Serial0". If 
there's no "COM1", then the kernel returns STATUS_OBJECT_NAME_NOT_FOUND, which 
the Windows API translates to ERROR_FILE_NOT_FOUND, which the C runtime 
translates to ENOENT, and finally Python raises FileNotFoundError.

Accessing a DOS device name requires using a device path (prefixed by "\\.\" or 
"\\?\", and forward slash is okay, e.g. "//./C:/Temp/aux.py") or a UNC path 
(e.g. "//localhost/C$/Temp/aux.py"). That said, if we create a file like this, 
programs that use regular drive-letter paths won't be able to access it. It's 
better to sanitize reserved DOS device names. This includes "CONIN$" and 
"CONOUT$", even though Microsoft's documentation overlooks these two.

--
nosy: +eryksun

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37507] multiprocessing: Add a stop() method to ForkServer

2019-07-06 Thread Antoine Pitrou


Antoine Pitrou  added the comment:

There is no reason to expose "stop the forkserver" to users. How the forkserver 
process works, what tasks it handles, is an implementation detail. If users 
start "stopping the forkserver" in their applications for no good to reason, 
they might get bugs now or later that they wouldn't get otherwise.

Side note: if you're modifying multiprocessing, asking for a review doesn't 
hurt ;-)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37510] argparse removing more "--" than it should

2019-07-06 Thread Jorge L. Martinez


Jorge L. Martinez  added the comment:

Maybe I can find the time to make a patch this weekend (either today or 
tomorrow). I hope I'm not underestimating this somehow, but I don't think this 
would take too long. The only issue I can foresee is in disagreement of what 
the correct behavior should be, which is why I gave my opinion that a single 
call of parse_args() should only ever remove a single "--".

If I don't submit a patch by Monday (PDT), everyone should assume I decided not 
to tackle this.

By the way, does this issue tracking platform support submitting to the issue 
thread by email? Maybe, I'll try that.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37516] buid error - test_asyncio fails during make

2019-07-06 Thread Gordon R. Burgess


New submission from Gordon R. Burgess :

0:02:03 load avg: 3.08 [ 26/423] test_asyncio
Unknown child process pid 30234, will report returncode 255
Child watcher got an unexpected pid: 30234
Traceback (most recent call last):
  File "/home/gordon/Images/Python/Python-3.8.0b2/Lib/asyncio/unix_events.py", 
line 1213, in _do_waitpid
loop, callback, args = self._callbacks.pop(pid)
KeyError: 30234

(first issue I've logged here, so thanks for your patience!  This system is 
Debian 9.9 - a 3.7 make was running at the same time but had completed all of 
the tests before I kicked 3.8 off)

--
components: Installation
messages: 347443
nosy: gburgess
priority: normal
severity: normal
status: open
title: buid error - test_asyncio fails during make
type: compile error
versions: Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37487] PyList_GetItem() document regarding index

2019-07-06 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
keywords: +patch
pull_requests: +14437
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/14623

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37487] PyList_GetItem() document: index can be 0

2019-07-06 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
assignee: docs@python -> terry.reedy
stage: patch review -> commit review
title: PyList_GetItem() document regarding index -> PyList_GetItem() document: 
index can be 0
versions: +Python 2.7, Python 3.7, Python 3.8, Python 3.9 -Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37487] PyList_GetItem() document: index can be 0

2019-07-06 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset f8709e804d16ec5d44b1d2f00d59a0f78df7b792 by Terry Jan Reedy in 
branch 'master':
bpo-37487: Fix PyList_GetItem index description. (GH-14623)
https://github.com/python/cpython/commit/f8709e804d16ec5d44b1d2f00d59a0f78df7b792


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37487] PyList_GetItem() document: index can be 0

2019-07-06 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14438
stage: commit review -> patch review
pull_request: https://github.com/python/cpython/pull/14624

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37487] PyList_GetItem() document: index can be 0

2019-07-06 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14439
pull_request: https://github.com/python/cpython/pull/14625

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37487] PyList_GetItem() document: index can be 0

2019-07-06 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14440
pull_request: https://github.com/python/cpython/pull/14626

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37456] FAQ says positional arguments aren't a thing

2019-07-06 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I will remove the sentence.

--
assignee: docs@python -> terry.reedy
nosy: +terry.reedy
stage:  -> commit review
type:  -> behavior
versions: +Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37456] FAQ says positional arguments aren't a thing

2019-07-06 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
keywords: +patch
pull_requests: +14441
stage: commit review -> patch review
pull_request: https://github.com/python/cpython/pull/14627

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37487] PyList_GetItem() document: index can be 0

2019-07-06 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 9c930d076a7225694b369d30636a29acb556c2be by Terry Jan Reedy (Miss 
Islington (bot)) in branch '3.7':
bpo-37487: Fix PyList_GetItem index description. (GH-14623) (GH-14625)
https://github.com/python/cpython/commit/9c930d076a7225694b369d30636a29acb556c2be


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37487] PyList_GetItem() document: index can be 0

2019-07-06 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset ad3720359faa933d04bde3d3222fd54e73ee7feb by Terry Jan Reedy (Miss 
Islington (bot)) in branch '3.8':
bpo-37487: Fix PyList_GetItem index description. (GH-14623) (GH-14624)
https://github.com/python/cpython/commit/ad3720359faa933d04bde3d3222fd54e73ee7feb


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37487] PyList_GetItem() document: index can be 0

2019-07-06 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset dd3862e167d573b6e9a3348c365229ca958d1f1f by Terry Jan Reedy (Miss 
Islington (bot)) in branch '2.7':
bpo-37487: Fix PyList_GetItem index description. (GH-14623) (GH-14626)
https://github.com/python/cpython/commit/dd3862e167d573b6e9a3348c365229ca958d1f1f


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37487] PyList_GetItem() document: index can be 0

2019-07-06 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37456] FAQ says positional arguments aren't a thing

2019-07-06 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14442
pull_request: https://github.com/python/cpython/pull/14628

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37456] FAQ says positional arguments aren't a thing

2019-07-06 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 6f2a8c08573c71b78d2f6e2bfaf31641a0cd092b by Terry Jan Reedy in 
branch 'master':
bpo-37456: Slash ('/') is now part of syntax. (GH-14627)
https://github.com/python/cpython/commit/6f2a8c08573c71b78d2f6e2bfaf31641a0cd092b


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37478] Docs: Method os.chdir() does not mention errors that can be raised

2019-07-06 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Please ask your questions about doc conventions, both about exceptions and 
function/method.  Either someone will point to something in the devguide, or we 
might get a discussion about something that should be added.  I would not merge 
more extensive changes without some feedback.

--
assignee: docs@python -> terry.reedy
stage: patch review -> commit review
versions: +Python 3.7, Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37456] FAQ says positional arguments aren't a thing

2019-07-06 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 90631f9bc5f78ec6cdc2096d5c5ae26e41e5f150 by Terry Jan Reedy (Miss 
Islington (bot)) in branch '3.8':
bpo-37456: Slash ('/') is now part of syntax. (GH-14627) (GH-14628)
https://github.com/python/cpython/commit/90631f9bc5f78ec6cdc2096d5c5ae26e41e5f150


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37516] buid error - test_asyncio fails during make

2019-07-06 Thread Gordon R. Burgess


Gordon R. Burgess  added the comment:

Ran this on a different laptop (Debian 9.9, Lenovo w540) and it passed, so (as 
I'd expect) this is an intermittent issue.  (The ticket was opened with an 
error on a Lenovo w510)  Both systems have been reimaged in the last 6-8 months.

0:00:34 load avg: 1.18 [ 26/423] test_asyncio

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37516] buid error - test_asyncio fails during make

2019-07-06 Thread Gordon R. Burgess


Gordon R. Burgess  added the comment:

I got excited prematurely - this is farther down in the log on the second build:

...
0:16:09 load avg: 0.84 [341/423] test_sys_settrace
unhandled exception during asyncio.run() shutdown
task: ()> exception=RuntimeError("can't send non-None value to a 
just-started coroutine")>
RuntimeError: can't send non-None value to a just-started coroutine
unhandled exception during asyncio.run() shutdown
task: ()> exception=RuntimeError("can't send non-None value to a 
just-started coroutine")>
RuntimeError: can't send non-None value to a just-started coroutine
0:16:10 load avg: 0.84 [342/423] test_sysconfig
...

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37491] IndexError in get_bare_quoted_string

2019-07-06 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

An Python exception is not a crash; a crash is the program stopping without an 
exception and proper cleanup.

If s is a string (rather than, for instance, None),
s and (s[0] == char) is equivalent to s[0:1] == char

--
nosy: +terry.reedy
type: crash -> behavior

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37515] `open("aux.txt", "w")` fails unexpectedly with FileNotFoundError on Windows

2019-07-06 Thread Steven D'Aprano


Steven D'Aprano  added the comment:

For future reference, please don't post screen shots of plain text, as they 
make it unnecessarily difficult for blind or visually impaired developers to 
contribute (and yes, they do exist, I've worked with some, and at least one 
core developer). Copy the relevant text (including the exception traceback) and 
paste them into the bug report.

Thank you.

--
nosy: +steven.daprano
resolution: third party -> not a bug

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37517] Improve error messages for Windows reserved file names

2019-07-06 Thread Steven D'Aprano


New submission from Steven D'Aprano :

See #37515.

Perhaps Windows builds can check for reserved file names and give a more 
descriptive error message in the event of IO error?

(Eryksun also mentions two reserved names which Microsoft apparently does not 
document: "CONIN$" and "CONOUT$".)

--
components: Windows
messages: 347456
nosy: CarK, SilentGhost, eryksun, paul.moore, steve.dower, steven.daprano, 
tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Improve error messages for Windows reserved file names
versions: Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37480] add ptpython to list of alternate interpreters

2019-07-06 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

My problems with this chapter are that it mostly ignores Windows, omits IDLE 
which has most of the 'advanced features' discussed, and some others (I could 
fix this), confuses a bit 'interpreter' as code executor versus 'interactive 
interpreter' as interface to an interpreter (Shell), and seems seems to mention 
a somewhat arbitrary subset of alternative shells.

Other than the fact that bpython and ptpython cross list each other (and 
IPython), what evidence do you have that ptpython is 'both mature and popular 
enough to merit inclusion'?  (I know, difficult question given no visible 
criteria.)

I looked at the history of the last paragraph and it seems that is was added 
8/13/2009 by Georg Brandl in c5605dffdb226e85f415bd6edb441dad714fbc0c, which 
merged about 16 revisions from the py3k branch.  The only change since was 
markup.

It seems to me that the wiki might be a better place for a list of alternate 
shells, if not one already.  I believe there is already a page for editors or 
IDEs.

--
nosy: +terry.reedy
versions: +Python 3.9 -Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37517] Improve error messages for Windows reserved file names

2019-07-06 Thread Steven D'Aprano


Change by Steven D'Aprano :


--
type:  -> enhancement

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37478] Docs: Method os.chdir() does not mention errors that can be raised

2019-07-06 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 0717b4d9b3899c5c2ca13031e4ff619a15a4d368 by Terry Jan Reedy (Kyle 
Stanley) in branch 'master':
bpo-37478: Specify possible exceptions for os.chdir() (GH-14611)
https://github.com/python/cpython/commit/0717b4d9b3899c5c2ca13031e4ff619a15a4d368


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37478] Docs: Method os.chdir() does not mention errors that can be raised

2019-07-06 Thread miss-islington


Change by miss-islington :


--
pull_requests: +1
pull_request: https://github.com/python/cpython/pull/14630

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37478] Docs: Method os.chdir() does not mention errors that can be raised

2019-07-06 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14443
stage: commit review -> patch review
pull_request: https://github.com/python/cpython/pull/14629

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37478] Docs: Method os.chdir() does not mention errors that can be raised

2019-07-06 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 4e6bfc4c605d92d2395fbcded9cf45cdd1ced810 by Terry Jan Reedy (Miss 
Islington (bot)) in branch '3.8':
bpo-37478: Specify possible exceptions for os.chdir() (GH-14611) (GH-14629)
https://github.com/python/cpython/commit/4e6bfc4c605d92d2395fbcded9cf45cdd1ced810


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37478] Docs: Method os.chdir() does not mention errors that can be raised

2019-07-06 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 1dd65075955337183ba2f78cb11a1eec2466dc74 by Terry Jan Reedy (Miss 
Islington (bot)) in branch '3.7':
bpo-37478: Specify possible exceptions for os.chdir() (GH-14611) (GH-14630)
https://github.com/python/cpython/commit/1dd65075955337183ba2f78cb11a1eec2466dc74


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37478] Docs: Method os.chdir() does not mention errors that can be raised

2019-07-06 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests: +14445
pull_request: https://github.com/python/cpython/pull/14631

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37478] Docs: Method os.chdir() does not mention errors that can be raised

2019-07-06 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset a9b40e4546ca631e5ab41376b5b72e8f296f557d by Terry Jan Reedy in 
branch 'master':
bpo-37478: Add missing 'and'. (GH-14631)
https://github.com/python/cpython/commit/a9b40e4546ca631e5ab41376b5b72e8f296f557d


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37478] Docs: Method os.chdir() does not mention errors that can be raised

2019-07-06 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14446
pull_request: https://github.com/python/cpython/pull/14632

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37518] Python-2.7.16 fails to build with --enable-shared

2019-07-06 Thread Willie Lopez


New submission from Willie Lopez :

When building Python-2.7.16 on CentOS-7.4, building with --enable-shared 
through ./configure will cause Python to fail its build without errors and will 
install python-2.7.5, the wrong version. If Python is built without 
--enable-shared, other compilations that need Python will fail with the cryptic 
error in the following. Recompiling the app such as Apache will continue fail 
even when explicitly defining -fPIC in CFLAGS. However, trying to build Python 
with the shared flag appears to succeed, but in fact it fails and installs 
Python-2.7.5, the wrong version. 

/bin/ld: /usr/local/lib/libz.a(crc32.o): relocation R_X86_64_32 against 
.rodata' can not be used when making a shared object; recompile with -fPIC 

I have tried to build manually build Python with the following:
./buildconf (with and without running buildconf)
CFLAGS='-fPIC -g -O2' ./configure --prefix=$HOME/tools 
make
make altinstall %{buildroot}%{prefix} 

What am I missing? What am I doing wrong in the build?

--
components: Build
messages: 347461
nosy: lo...@ucar.edu
priority: normal
severity: normal
status: open
title: Python-2.7.16 fails to build with --enable-shared
type: behavior
versions: Python 2.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37478] Docs: Method os.chdir() does not mention errors that can be raised

2019-07-06 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14447
pull_request: https://github.com/python/cpython/pull/14633

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37478] Docs: Method os.chdir() does not mention errors that can be raised

2019-07-06 Thread miss-islington


miss-islington  added the comment:


New changeset e841a54206c65770aeb2b936cdc830dd4ed8bf9e by Miss Islington (bot) 
in branch '3.7':
bpo-37478: Add missing 'and'. (GH-14631)
https://github.com/python/cpython/commit/e841a54206c65770aeb2b936cdc830dd4ed8bf9e


--
nosy: +miss-islington

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37478] Docs: Method os.chdir() does not mention errors that can be raised

2019-07-06 Thread miss-islington


miss-islington  added the comment:


New changeset e414aa9cb002427a39dfd157cdad156336f93ca9 by Miss Islington (bot) 
in branch '3.8':
bpo-37478: Add missing 'and'. (GH-14631)
https://github.com/python/cpython/commit/e414aa9cb002427a39dfd157cdad156336f93ca9


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37517] Improve error messages for Windows reserved file names

2019-07-06 Thread Eryk Sun


Eryk Sun  added the comment:

> Perhaps Windows builds can check for reserved file names and give a
> more descriptive error message in the event of IO error?

An operation on a reserved DOS device name can also succeed with unexpected 
results. For example, a script may unintentionally write to the active console 
screen buffer, "conout$":

>>> open('C:/conout$::. .::.dat', 'w').write('spam\n')
spam
5 

There's also the issue of normalization that removes trailing spaces and dots 
from the final path component. All paths get normalized, except for device 
paths that begin with exactly "\\?\" (i.e. extended paths) in a create or open 
context. For example, say a script creates a file with the reserved name "spam. 
. .":

>>> open(r'\\?\C:\Temp\spam. . .', 'w').close()

Then later, it generically uses os.walk('C:/Temp'), without the "\\?\" prefix, 
and tries to remove the file:

>>> os.remove('C:/Temp/spam. . .')
Traceback (most recent call last):
  File "", line 1, in 
FileNotFoundError: [WinError 2] The system cannot find the file specified: 
'C:/Temp/spam. . .'

Without an extended path, "spam. . ." gets normalized as "spam". The script 
would need to use os.walk(r'\\?\C:\Temp'). Should we special case this error as 
well to suggest using an extended path?

> Eryksun also mentions two reserved names which Microsoft apparently 
> does not document: "CONIN$" and "CONOUT$".

The system's behavior with these two names depends on the Windows version. In 
Windows 7 and earlier, "CONIN$" and "CONOUT$" are special cased by CreateFileW, 
and only when it's just the bare names (case insensitive) without trailing 
colons, spaces, or an extension, and never in a directory. In Windows 8+, as 
part of updating the internal console implementation to use an I/O device (i.e. 
"\Device\ConDrv"), "CONIN$" and "CONOUT$" were added to the system runtime 
library's list of DOS devices, so they behave the same as other DOS device 
names, including "NUL", "CON", "AUX", "PRN", "COM<1-9>", and "LPT<1-9>". This 
change is undocumented.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37478] Docs: Method os.chdir() does not mention errors that can be raised

2019-07-06 Thread Kyle Stanley


Kyle Stanley  added the comment:

Exceptions for os.chdir() have been added to the docs.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37478] Specify possible exceptions for os.chdir()

2019-07-06 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Spinoff issues should be separate.

--
title: Docs: Method os.chdir() does not mention errors that can be raised -> 
Specify possible exceptions for os.chdir()

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37516] buid error - test_asyncio fails during make

2019-07-06 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
components: +asyncio
nosy: +asvetlov, yselivanov

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21120] PyArena type is used in headers from the limited API

2019-07-06 Thread Zackery Spytz


Change by Zackery Spytz :


--
keywords: +patch
pull_requests: +14448
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/14634

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com