[issue27998] Bytes paths now are supported in os.scandir() on Windows

2016-11-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Proposed patch documents bytes paths support on Windows. -- keywords: +patch nosy: +Elvis.Pranskevichus, yselivanov stage: needs patch -> patch review Added file: http://bugs.python.org/file45469/doc-scandir-bytes.patch ___

[issue28682] Bytes support in os.fwalk()

2016-11-13 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: os.walk() supports string and bytes paths, but os.fwalk() always supported only string paths. Proposed patch adds support of bytes paths in os.fwalk(). -- components: Library (Lib) files: fwalk-bytes.patch keywords: patch messages: 280690 nosy: larr

[issue28681] About function renaming in the tutorial

2016-11-13 Thread Steven D'Aprano
Steven D'Aprano added the comment: > And this is aliasing: > g = f Is it only aliasing if you know that f is a function? I don't mean that as a rhetorical question -- I'm asking if we're comfortable with the idea of saying that g is an alias when f is (say) a float. -- _

[issue11437] IDLE crash on startup with typo in config-keys.cfg

2016-11-13 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue24379] Add operator.subscript as a convenience for creating slices

2016-11-13 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Here is a new patch that does not cause refleaks, I just replaced empty __slots__ with a __setattr__: it looks like __slots__ are not needed here to save memory (there is only a singleton instance), they were used just to create an immutable object.

[issue28651] Make objects with empty __slots__ GC types

2016-11-13 Thread Ivan Levkivskyi
Changes by Ivan Levkivskyi : -- nosy: +levkivskyi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue28632] configparser does not close files in read

2016-11-13 Thread Petr
Petr added the comment: Thanks for your comments, I am myself quite puzzled how is it possible that the file is not closed after having been read. I suspect this to be an OS problem, therefore I am closing the bug for now. -- resolution: -> not a bug status: open -> closed __

[issue28679] CGIHTTPServer displays raw python code when the url contains '/' after '?'

2016-11-13 Thread Xiang Zhang
Xiang Zhang added the comment: Sorry Yudai, I cannot reproduce this. Both '/index.py?value=data' and '/index.py?/' outputs 'value = None' with your index.py. -- nosy: +martin.panter, xiang.zhang ___ Python tracker

[issue28679] CGIHTTPServer displays raw python code when the url contains '/' after '?'

2016-11-13 Thread Yudai Fujiwara
Yudai Fujiwara added the comment: Thanks for your reply. I uploaded server.py. I'm using python 2.7.5 to run server.py on CentOS 7. Both server.py and index.py are located in /var/www/html. $ ls -lh -rwxr-xr-x. 1 root root 189 11月 13 11:21 index.py -rw-r--r--. 1 root root 239 11月 13 21:04 server

[issue28632] configparser does not close files in read

2016-11-13 Thread SilentGhost
Changes by SilentGhost : -- stage: -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue28679] CGIHTTPServer displays raw python code when the url contains '/' after '?'

2016-11-13 Thread Xiang Zhang
Xiang Zhang added the comment: I think this is a bug in 2.7.5 and has already been fixed. I'd suggest you get a more recent version of 2.7. :-) -- ___ Python tracker ___ ___

[issue28679] CGIHTTPServer displays raw python code when the url contains '/' after '?'

2016-11-13 Thread Yudai Fujiwara
Yudai Fujiwara added the comment: I've just installed 2.7.11 and the bug seems to be fixed. Thank you for your accurate solution! Closed. -- resolution: -> out of date status: open -> closed ___ Python tracker __

[issue28679] CGIHTTPServer displays raw python code when the url contains '/' after '?'

2016-11-13 Thread Xiang Zhang
Changes by Xiang Zhang : -- stage: -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue28635] Update What's New for 3.6

2016-11-13 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Thank you Yury and Elvis for working on this! I have few more suggestions for What's New: * collections.abc.Reversible (http://bugs.python.org/issue25987). * various ABCs in collections.abc now have means for explicit "anti-registration" by setting a corresp

[issue24379] Add operator.subscript as a convenience for creating slices

2016-11-13 Thread Guido van Rossum
Guido van Rossum added the comment: So we now have the refleak fixed. Can we apply the patch? Or is it too late for 3.6? -- nosy: +gvanrossum ___ Python tracker ___

[issue24379] Add operator.subscript as a convenience for creating slices

2016-11-13 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: The patch is small and it was initially applied before 3.6b1, I think we should ask Ned (added to nosy) if this is OK to apply the fixed version? -- nosy: +ned.deily ___ Python tracker

[issue21449] Replace _PyUnicode_CompareWithId with _PyUnicode_CompareWithIdEqual

2016-11-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This issue is not just about readability or performance. It is about correctness, since none of callers check for failure of _PyUnicode_CompareWithId. I just came to the same problem from other side (replacing PyUnicode_CompareWithASCII with PyUnicode_Equal

[issue28677] difficult to parse sentence structure in "When an instance attribute is referenced that isn't a data attribute"

2016-11-13 Thread R. David Murray
R. David Murray added the comment: "instance parent class" is not terminology used in our docs as far as I remember. "instance's class" would be more in line with the other docs. That would solve the pronoun reference problem more succinctly, I think. How about this version, which also impro

[issue24379] Add operator.subscript as a convenience for creating slices

2016-11-13 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Serhiy, thank you for review! Here is a corrected patch. -- Added file: http://bugs.python.org/file45473/operator_subscript_norefleak_v2.patch ___ Python tracker

[issue28635] Update What's New for 3.6

2016-11-13 Thread Elvis Pranskevichus
Elvis Pranskevichus added the comment: Patch with updates attached. Thanks for the feedback guys! -- Added file: http://bugs.python.org/file45474/0001-Issue-28635-what-s-new-in-3.6-add-a-few-more-notes-o.patch ___ Python tracker

[issue28681] About function renaming in the tutorial

2016-11-13 Thread R. David Murray
R. David Murray added the comment: I would rewrite that paragraph as follows: A function definition associates the function name with the function object in the current symbol table. The interpreter recognizes the object pointed to by that name as a user-defined function. Other nam

[issue24379] Add operator.subscript as a convenience for creating slices

2016-11-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: operator_subscript_norefleak_v2.patch LGTM. Waiting for Ned's decision about 3.6. -- assignee: -> ned.deily priority: normal -> release blocker stage: patch review -> commit review versions: +Python 3.6 ___ Python

[issue24379] Add operator.subscript as a convenience for creating slices

2016-11-13 Thread Ned Deily
Ned Deily added the comment: I don't think this is appropriate for 3.6 now. We're a little more than 4 weeks from the final release - way past the feature code cut-off - and, from the comments here, there is no longer a total consensus that this feature should go back in at all after being pu

[issue28677] difficult to parse sentence structure in "When an instance attribute is referenced that isn't a data attribute"

2016-11-13 Thread Viorel Tabara
Viorel Tabara added the comment: David, that sounds clear enough to me, thanks. However, English isn't my first language so I can't comment on the grammatical subtleties. -- ___ Python tracker

[issue28683] bind() on a unix socket raises PermissionError on Android for a non-root user

2016-11-13 Thread Xavier de Gaye
New submission from Xavier de Gaye: Tests in test_socket and test_asyncore fail on Android when bind() on a unix socket raises PermissionError for a non-root user. This occurs also in test_asyncio and this is logged in a separate issue as asyncio has its own project. Patch attached.

[issue26934] android: test_faulthandler fails

2016-11-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 66aac9676a28 by Xavier de Gaye in branch 'default': Issue #26934: Fix test_faulthandler on Android where raise() exits with 0, https://hg.python.org/cpython/rev/66aac9676a28 -- nosy: +python-dev ___ Pytho

[issue10444] A mechanism is needed to override waiting for Python threads to finish

2016-11-13 Thread Julien
Julien added the comment: `daemon` flag cannot be changed after thread is started, the documentation is right and the code of the daemon setter is actually: if self._started.is_set(): raise RuntimeError("cannot set daemon status of active thread") But still it looks like a code rev

[issue26934] android: test_faulthandler fails

2016-11-13 Thread Xavier de Gaye
Xavier de Gaye added the comment: New changeset f37ac1a003f3 in branch 3.6. New changeset 892f13827219 in branch default. -- ___ Python tracker ___ __

[issue26934] android: test_faulthandler fails

2016-11-13 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___ __

[issue26934] android: test_faulthandler fails

2016-11-13 Thread SilentGhost
SilentGhost added the comment: Buildbots fail since _ANDROID_API_LEVEL could end up being None -- nosy: +SilentGhost status: closed -> open ___ Python tracker ___ ___

[issue28684] [asyncio] bind() on a unix socket raises PermissionError on Android for a non-root user

2016-11-13 Thread Xavier de Gaye
New submission from Xavier de Gaye: Tests in test_asyncio fail on Android when bind() on a unix socket raises PermissionError for a non-root user. See the attached test_asyncio.log. See also issue 28683 and its patch(es). -- components: Tests, asyncio files: test_asyncio.log messages:

[issue26934] android: test_faulthandler fails

2016-11-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2639afcedaad by Xavier de Gaye in branch '3.6': Issue #26934: Handle _ANDROID_API_LEVEL is None on Windows https://hg.python.org/cpython/rev/2639afcedaad New changeset 4012e28539c4 by Xavier de Gaye in branch 'default': Issue #26934: Merge 3.6 https

[issue24379] Add operator.subscript as a convenience for creating slices

2016-11-13 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Maybe then it makes sense to apply this to 3.7? It looks like most people are in favour of this (also on python-ideas), only Raymond is not sure/mildly against. -- ___ Python tracker

[issue28646] Using a read-only buffer.

2016-11-13 Thread Martin Panter
Martin Panter added the comment: Issue 11427 has some discussion about this. It seems one concern was to make it hard to modify the buffer of a bytes object (which is supposed to be immutable). But I agree there should be an easy way to access read-only buffers in ctypes. Perhaps that could be

[issue28685] Optimizing list.sort() by performing safety checks in advance

2016-11-13 Thread Elliot Gorokhovsky
New submission from Elliot Gorokhovsky: When python compares two objects, there are many safety checks that have to be performed before the actual comparison can take place. These include checking the types of the two objects, as well as checking various type-specific properties, like characte

[issue28678] tarfile extract docs inconsistent naming of parameter numeric_owner or numeric_only

2016-11-13 Thread Martin Panter
Martin Panter added the comment: The offending commit is revision 6b70f16d585a. The true name is numeric_owner; numeric_only is wrong. The name also needs fixing in Doc/whatsnew/3.5.rst. -- nosy: +martin.panter ___ Python tracker

[issue24339] iso6937 encoding missing

2016-11-13 Thread Julien
Julien added the comment: Hi John, thanks for your contribution, Looks like your implementation is missing some codepoints, like "\t": >>> print("\t".encode(encoding='iso6937')) [...] UnicodeError:

[issue24379] Add operator.subscript as a convenience for creating slices

2016-11-13 Thread Guido van Rossum
Guido van Rossum added the comment: Actually I'm with Raymond -- I'm also not sure or mildly against (-0). Given how easy it is to do without and how cumbersome using the operator module is I don't see a great benefit. (IMO the operator module should be the measure of *last* resort -- it is not t

[issue28685] Optimizing list.sort() by performing safety checks in advance

2016-11-13 Thread Elliot Gorokhovsky
Changes by Elliot Gorokhovsky : -- nosy: +tim.peters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue28678] tarfile extract docs inconsistent naming of parameter numeric_owner or numeric_only

2016-11-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4aca14dbb66d by Martin Panter in branch '3.5': Issue #28678: Fix references to numeric_owner parameter https://hg.python.org/cpython/rev/4aca14dbb66d New changeset 5efa1a39ee59 by Martin Panter in branch '3.6': Issue #28678: Merge parameter name fro

[issue28678] tarfile extract docs inconsistent naming of parameter numeric_owner or numeric_only

2016-11-13 Thread Martin Panter
Martin Panter added the comment: Thanks Lewis -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___ __

[issue24459] Mention PYTHONFAULTHANDLER in the man page

2016-11-13 Thread Joshua Jay Herman
Joshua Jay Herman added the comment: ping -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue23839] Clear caches after every test

2016-11-13 Thread Martin Panter
Martin Panter added the comment: When I run the tests with -Werror (or any other -W option), I now get 2 tests altered the execution environment: test___all__ test_warnings -- nosy: +martin.panter ___ Python tracker

[issue8840] truncate() semantics changed in 3.1.2

2016-11-13 Thread Martin Panter
Martin Panter added the comment: In general I agree with the doc strings giving the main details, and leaving smaller details for the reference documentation. Maybe for concrete implementations like BytesIO, it is not worth saying the expanded contents are undefined. One other way to make them

[issue24459] Mention PYTHONFAULTHANDLER in the man page

2016-11-13 Thread Antony Lee
Changes by Antony Lee : -- nosy: -Antony.Lee ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue24339] iso6937 encoding missing

2016-11-13 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +xiang.zhang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue28629] Emit ResourceWarning when implicitly terminating a suspended frame?

2016-11-13 Thread Martin Panter
Martin Panter added the comment: This would be hard to get right, but maybe not impossible. If the frame is suspended, and will do special handling of GeneratorExit, a ResourceWarning would be nice in most cases. But if the frame will not catch any exception, there should be no ResourceWarning

[issue14119] Ability to adjust queue size in Executors

2016-11-13 Thread Vinay Anantharaman
Vinay Anantharaman added the comment: I did a code reading myself and I noticed that task_done is not called as well. Is there a reason? -- nosy: +Vinay Anantharaman ___ Python tracker

[issue27050] Demote run() below the high level APIs in subprocess docs

2016-11-13 Thread Nick Coghlan
Nick Coghlan added the comment: The introduction of run() and its presentation as the preferred interface has effectively reversed much of the progress that had been made in actually making the subprocess module approachable for the simplest use cases like https://twitter.com/fuzzychef/status/

[issue21449] Replace _PyUnicode_CompareWithId with _PyUnicode_CompareWithIdEqual

2016-11-13 Thread Xiang Zhang
Xiang Zhang added the comment: > The name _PyUnicode_CompareWithIdEqual looks too long to me. What about > _PyUnicode_EqualToId? +1. I think this name is more clear. Serhiy's idea on the implementation sounds good. As for _PyUnicode_FROM_ID, I think it's better for another issue. --

[issue28000] Build fails on AIX with _LINUX_SOURCE_COMPAT flag

2016-11-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7598e65a924e by Martin Panter in branch '3.5': Issue #28000: Fix gethostbyname_r() usage on AIX with _LINUX_SOURCE_COMPAT https://hg.python.org/cpython/rev/7598e65a924e New changeset 77cb8fa47138 by Martin Panter in branch '2.7': Issue #28000: Fix g

[issue28016] test_fileio fails on AIX

2016-11-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset a2ba15f05ed1 by Martin Panter in branch '3.5': Issue #28016: Skip /dev/tty seekable() test on AIX https://hg.python.org/cpython/rev/a2ba15f05ed1 New changeset b1f99e09bd77 by Martin Panter in branch '2.7': Issue #28016: Skip /dev/tty seekable() test

[issue27050] Demote run() below the high level APIs in subprocess docs

2016-11-13 Thread Thomas Kluyver
Thomas Kluyver added the comment: I still feel that having one function with various options is easier to explain than three separate functions with awkward names and limited use cases (e.g. no capturing output without checking the exit code). The tweeter you replied to said he didn't like sub

[issue28595] shlex.shlex should not augment wordchars

2016-11-13 Thread Evan
Evan added the comment: I have some additional concerns with the changes introduced in http://bugs.python.org/issue1521950: 1. The fact that posix defaults to False in shlex.shlex (but not in shlex.split) is a huge beginner trap. If users are expecting to use this for "compatibility with the

[issue21449] Replace _PyUnicode_CompareWithId with _PyUnicode_CompareWithIdEqual

2016-11-13 Thread Xiang Zhang
Changes by Xiang Zhang : Added file: http://bugs.python.org/file45480/_PyUnicode_EqualToId_v2.patch ___ Python tracker ___ ___ Python-bugs-lis

[issue28016] test_fileio fails on AIX

2016-11-13 Thread Martin Panter
Changes by Martin Panter : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 2.7, Python 3.7 ___ Python tracker ___ __

[issue28000] Build fails on AIX with _LINUX_SOURCE_COMPAT flag

2016-11-13 Thread Martin Panter
Martin Panter added the comment: I committed your patches for 3.5+ and 2.7. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7 ___ Python tracker _

[issue28629] Emit ResourceWarning when implicitly terminating a suspended frame?

2016-11-13 Thread STINNER Victor
STINNER Victor added the comment: > del gen # Like deleting a plain iterator; no ResourceWarning expected Hum, wait, I'm not sure that I got the whole point of this issue. If the generator uses "with obj:", "del gen" will not call obj.__exit__(). Do you consider that "del gen" is better to cl

[issue28629] Emit ResourceWarning when implicitly terminating a suspended frame?

2016-11-13 Thread Martin Panter
Martin Panter added the comment: Perhaps I shouldn’t have mentioned “del gen”. That was meant to represent the garbage collector running and calling gen.__del__() or equivalent. Basically what I was trying to say is I think there will be two classes of generators: 1. Simple generators just imp

[issue26934] android: test_faulthandler fails

2016-11-13 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m