[issue32461] the first build after a change to Makefile.pre.in uses the old Makefile

2017-12-30 Thread Xavier de Gaye
New submission from Xavier de Gaye : After applying the attached Makefile.pre.in.diff that changes the text of the message printed by the 'Makefile' target, the make command gives: $ make CONFIG_FILES=Makefile.pre CONFIG_HEADERS= /bin/sh config.status config.status: creating Makefile.pre make -

[issue15112] argparse: nargs='*' positional argument doesn't accept any items if preceded by an option and another positional

2017-12-30 Thread devurandom
Change by devurandom : -- nosy: +devurandom ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue32460] don't use tentative declarations

2017-12-30 Thread Benjamin Peterson
Change by Benjamin Peterson : -- keywords: +patch pull_requests: +4937 stage: -> patch review ___ Python tracker ___ ___ Python-bugs

[issue32460] don't use tentative declarations

2017-12-30 Thread Benjamin Peterson
New submission from Benjamin Peterson : Tentative declarations (non-extern declarations without initializers) are legacy C-ism that we should eschew by ensuring all our declarations have initializers. -- components: Build messages: 309269 nosy: benjamin.peterson priority: normal severi

[issue29237] Create enum for pstats sorting options

2017-12-30 Thread Marcel Widjaja
Marcel Widjaja added the comment: I'd like to try to work on this one -- nosy: +mawidjaj ___ Python tracker ___ ___ Python-bugs-list

[issue32459] Capsule API usage docs are incompatible with module reloading (etc)

2017-12-30 Thread Nick Coghlan
New submission from Nick Coghlan : After commenting [1] on the fact that the current datetime module C API [2] is problematic due to its reliance on C level global variables, I discovered that this is actually the outcome of our recommended approach to using capsules to export a C API as funct

[issue10381] Add timezone support to datetime C API

2017-12-30 Thread Nick Coghlan
Nick Coghlan added the comment: https://bugs.python.org/issue32459 covers defining a module-reloading-friendly way of using capsules. For this issue, I now think it makes sense to just ignore that problem, and add whatever you need to the existing API. -- ___

[issue31530] Python 2.7 readahead feature of file objects is not thread safe

2017-12-30 Thread Benjamin Peterson
Change by Benjamin Peterson : -- pull_requests: +4936 stage: resolved -> patch review ___ Python tracker ___ ___ Python-bugs-list mai

[issue31530] Python 2.7 readahead feature of file objects is not thread safe

2017-12-30 Thread Benjamin Peterson
Benjamin Peterson added the comment: Unfortunately, it looks like this fix causes a regression. Some programs rely on being able to seek() and write to a file on multiple threads. For example, py.test captures the standard streams by redirecting them to a tmpfile and then truncating+seeking t

[issue23859] asyncio: document behaviour of wait() cancellation

2017-12-30 Thread Chris Jerdonek
Change by Chris Jerdonek : -- versions: +Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue23859] asyncio: document behaviour of wait() cancellation

2017-12-30 Thread Chris Jerdonek
Change by Chris Jerdonek : -- nosy: +chris.jerdonek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue10381] Add timezone support to datetime C API

2017-12-30 Thread Nick Coghlan
Nick Coghlan added the comment: On 31 December 2017 at 01:34, Paul Ganssle wrote: > That said, I think it would be really good if we could get a fast path for > timezone creation and access to the UTC singleton into the Python 3.7 > release. I think it's kind of a big disparity between the Py

[issue32424] Synchronize copy methods between Python and C implementations of xml.etree.ElementTree.Element

2017-12-30 Thread Gordon P. Hemsley
Gordon P. Hemsley added the comment: As discussed above, starting with msg309074, __deepcopy__() is being added to the Python implementation because it already exists in the C implementation. And additional tests have in fact uncovered further discrepancies between the Python and C implementa

[issue32399] _uuidmodule.c cannot build on AIX - different typedefs of uuid_t, etc..

2017-12-30 Thread Antoine Pitrou
Change by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue32399] _uuidmodule.c cannot build on AIX - different typedefs of uuid_t, etc..

2017-12-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 0d3ccb4395cccb11a50289c84c9a0dbbac03c647 by Antoine Pitrou (Michael Felt) in branch 'master': bpo-32399: Starting with AIX6.1 there is support in libc.a for uuid (RFC4122) (#4974) https://github.com/python/cpython/commit/0d3ccb4395cccb11a50289c8

[issue30861] StreamReader does not return reamaing and ready data buffer before raise the Exeption

2017-12-30 Thread pfreixes
pfreixes added the comment: Yeps, any update on this bug and the fix proposed? -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue32448] subscriptable

2017-12-30 Thread R. David Murray
R. David Murray added the comment: Well, in that case having 'organizer' in the error message wouldn't help you untangle your code ;) -- ___ Python tracker ___ ___

[issue32452] Brackets and Parentheses used in an ambiguous way

2017-12-30 Thread R. David Murray
R. David Murray added the comment: "round brackets" would require just as much thought (if not more...it's not a thing at all in American typographical language) for an American to understand as the unadorned bracket does for the rest of you, so the best compromise is "parenthesis instead of

[issue32451] python -m venv activation issue when using cygwin on windows

2017-12-30 Thread R. David Murray
R. David Murray added the comment: cygwin in not currently fully supported (there are people working on it, though). Can you determine if this is a bug in cygwin's bash support, or something else? It certainly works with bash shell on unix. I would presume that from cygwin one would want t

[issue8231] Unable to run IDLE without write-access to home directory

2017-12-30 Thread Ned Deily
Ned Deily added the comment: > Ned diagnosed #32447 as likely due to the space in the user name. Actually, that's not what the primary problem was. It was a severely misconfigured home directory, both permissions and groups. I'm not sure how that situation was created (possibly through inadv

[issue32458] test_asyncio failures on Windows

2017-12-30 Thread Yury Selivanov
Yury Selivanov added the comment: Please keep this issue open. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue32458] test_asyncio failures on Windows

2017-12-30 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 0c36bed1c46d07ef91d3e02e69e974e4f3ecd31a by Yury Selivanov in branch 'master': bpo-32458: Temporarily mask start-tls proactor test on Windows (#5054) https://github.com/python/cpython/commit/0c36bed1c46d07ef91d3e02e69e974e4f3ecd31a --

[issue32458] test_asyncio failures on Windows

2017-12-30 Thread Yury Selivanov
Yury Selivanov added the comment: I'm leaving on a two-weeks vacation today. To avoid risking breaking the workflow, I'll mask this tests on AppVeyor. I'll investigate this when I get back. -- assignee: -> yselivanov components: +asyncio -Library (Lib), Tests priority: normal -> hi

[issue32248] Port importlib_resources (module and ABC) to Python 3.7

2017-12-30 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Next up - implementing the ResourceReader ABC. -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue32458] test_asyncio failures on Windows

2017-12-30 Thread Yury Selivanov
Change by Yury Selivanov : -- keywords: +patch pull_requests: +4935 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue32447] IDLE shell won't open on Mac OS 10.13.1

2017-12-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: The Mac issue is the inability to add .xyz directories to the home directory. You can test a fix by entering 'mkdir .idlerc' at the terminal prompt. The IDLE issue is that IDLE quits when it cannot create .idlerc. In this respect, this is a duplicate of #823

[issue32248] Port importlib_resources (module and ABC) to Python 3.7

2017-12-30 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset deae6b451fefd5fd3143dd65051e1d341e5a5f84 by Barry Warsaw in branch 'master': bpo-32248 - Implement importlib.resources (#4911) https://github.com/python/cpython/commit/deae6b451fefd5fd3143dd65051e1d341e5a5f84 -- __

[issue8231] Unable to run IDLE without write-access to home directory

2017-12-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ned diagnosed #32447 as likely due to the space in the user name. What matters for this issue is that a) someone can do that and b) IDLE likely could continue running anyway. There might then be problems with saving files from the editor, so any warning mess

[issue32457] Windows Python cannot handle an early PATH entry containing ".." and python.exe

2017-12-30 Thread Eryk Sun
Eryk Sun added the comment: Here's a way to trigger this error that's unrelated to the PATH environment variable: >>> subprocess.call('python', executable=r'C:\Program Files\Python36\.\python.exe') Fatal Python error: Py_Initialize: unable to load the file system codec ModuleNotFo

[issue32447] IDLE shell won't open on Mac OS 10.13.1

2017-12-30 Thread Ned Deily
Ned Deily added the comment: P.S. You might consider creating a new account without the embedded space and moving your files there; it will probably cause other problems for you in the future. I notice that the current System Preferences -> Users & Groups interface won't even let you create

[issue8231] Unable to run IDLE without write-access to home directory

2017-12-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Another duplicate: #32411, MacOS 10.3.1, user apparently cannot write to home dir. Starting IDLE in terminal results in Warning: unable to create user config directory /Users/Steve Margetts/.idlerc Check path and permissions. Exiting! --

[issue32447] IDLE shell won't open on Mac OS 10.13.1

2017-12-30 Thread Ned Deily
Ned Deily added the comment: OK, that confirms that your home directory permissions are incorrect. Not sure how that happened, possibly by an inadvertent chown command. Note that you need to be careful when using shell commands because your user name has a space character in it, so you have

[issue28494] is_zipfile false positives

2017-12-30 Thread John Jolly
John Jolly added the comment: Fix submitted that evaluates the ECD structure and validates the first CD entry. The fix also handles empty zipfiles. IMO the purpose of this API is to *quickly* verify that the file is a valid zipfile. With this fix, the API only reads another 46 bytes of data (

[issue32458] test_asyncio failures on Windows

2017-12-30 Thread Antoine Pitrou
New submission from Antoine Pitrou : It seems test_asyncio fails sporadically on AppVeyor: https://ci.appveyor.com/project/python/cpython/build/3.7.0a0.10081#L2650 == ERROR: test_start_tls_server_1 (test.test_asyncio.test_sslpr

[issue32457] Windows Python cannot handle an early PATH entry containing ".." and python.exe

2017-12-30 Thread Ray Donnelly
Ray Donnelly added the comment: .. though I will also ask the scons people to change this to use pushd and %CD% instead. Even if you were to make Python capable of handling such bad input, who knows what other programs will fail, and build systems should be extra careful not to mess the envir

[issue32457] Windows Python cannot handle an early PATH entry containing ".." and python.exe

2017-12-30 Thread Ray Donnelly
New submission from Ray Donnelly : Over on the Anaconda Distribution we received a (private) bug report about a crash when trying to use scons. I thought initially it was due to one of our patches but I tested it out with official CPython and also with WinPython and ran into the same crash. T

[issue28494] is_zipfile false positives

2017-12-30 Thread John Jolly
Change by John Jolly : -- pull_requests: +4934 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue32418] Implement Server.get_loop() method

2017-12-30 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue32418] Implement Server.get_loop() method

2017-12-30 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset ffcb4c0165827d0a48ea973cc88bc134c74879fb by Andrew Svetlov in branch 'master': bpo-32418: Postfix, raise NotImplementdError and close resources in tests (#5052) https://github.com/python/cpython/commit/ffcb4c0165827d0a48ea973cc88bc134c74879fb

[issue32448] subscriptable

2017-12-30 Thread Alexander Mohr
Alexander Mohr added the comment: oh for second example I meant something like this: >>> class Foo: pass >>> Foo.organizer = None >>> Foo.blah = Foo >>> Foo.blah.organizer = None >>> Foo.blah.organizer[0] ya this is just a pie in the sky request :) --

[issue32447] IDLE shell won't open on Mac OS 10.13.1

2017-12-30 Thread Steve Margetts
Steve Margetts added the comment: Including tilde... Last login: Sat Dec 30 10:47:07 on ttys001 mkdir: /Users/Steve Margetts/.bash_sessions: Permission denied touch: /Users/Steve Margetts/.bash_sessions/8B76B0D2-2C88-4FE0-A8F6-C7FB8C13A2A8.historynew: No such file or directory iMac:~ Steve Ma

[issue32447] IDLE shell won't open on Mac OS 10.13.1

2017-12-30 Thread Ned Deily
Ned Deily added the comment: Just to be sure, please try again with the command as Ronald requested, i.e. include the tilde "~": ls -led ~ -- ___ Python tracker ___ _

[issue32456] PYTHONIOENCODING=undefined doesn't work in Python 3

2017-12-30 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : In Python 2.7 setting PYTHONIOENCODING=undefined mostly works as expected. $ PYTHONIOENCODING=undefined python -c 'print(123)' 123 $ PYTHONIOENCODING=undefined python -c 'print("abc")' abc $ PYTHONIOENCODING=undefined python -c 'print(u"abc")' Traceback (mo

[issue32418] Implement Server.get_loop() method

2017-12-30 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +4933 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue15045] Make textwrap.dedent() consistent with str.splitlines(True) and str.strip()

2017-12-30 Thread Sanyam Khurana
Change by Sanyam Khurana : -- pull_requests: +4932 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue23749] asyncio missing wrap_socket (starttls)

2017-12-30 Thread Yury Selivanov
Yury Selivanov added the comment: > I think the feature is significant enough for a What's New entry. Sure, Elvis and I will go through all NEWS items when it's time for what's new ;) -- ___ Python tracker

[issue23749] asyncio missing wrap_socket (starttls)

2017-12-30 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: @yselivanov - thanks for adding this, it's a huge win. I think the feature is significant enough for a What's New entry. -- ___ Python tracker _

[issue10381] Add timezone support to datetime C API

2017-12-30 Thread Paul Ganssle
Paul Ganssle added the comment: @Nick I'm certainly fine with re-configuring my PR to center around a new capsule module with deprecation of the old C API (though if you have any examples of what you have in mind that would be helpful to me). Certainly the "C global needs to be initiated" pr

[issue19678] smtpd.py: channel should be passed to process_message

2017-12-30 Thread Sanyam Khurana
Change by Sanyam Khurana : -- keywords: +patch pull_requests: +4931 stage: needs patch -> patch review ___ Python tracker ___ ___ Pyt

[issue32455] PyCompile_OpcodeStackEffect() and dis.stack_effect() are not particularly useful

2017-12-30 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The information provided by PyCompile_OpcodeStackEffect() and dis.stack_effect() (added in issue19722) is not enough for practical use. 1. Some opcodes (like JUMP_IF_TRUE_OR_POP or FOR_ITER) have different stack effect when when execution is continued fro

[issue32447] IDLE shell won't open on Mac OS 10.13.1

2017-12-30 Thread Steve Margetts
Steve Margetts added the comment: OK, those commands give: iMac:~ Steve Margetts$ ls -led drwxr-xr-x 21 501 staff 714 30 Dec 10:40 . iMac:~ Steve Margetts$ id uid=503(Steve Margetts) gid=20(staff) groups=20(staff),12(everyone),61(localaccounts),79(_appserverusr),80(admin),81(_appserveradm),

[issue32453] shutil.rmtree can have O(n^2) performance on large dirs

2017-12-30 Thread Serhiy Storchaka
Change by Serhiy Storchaka : Added file: https://bugs.python.org/file47355/bench_rmtree.py ___ Python tracker ___ ___ Python-bugs-list mailin

[issue32453] shutil.rmtree can have O(n^2) performance on large dirs

2017-12-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have tested shutil.rmtree() with a large number of files using modified benchmark from issue28564. For 40 files it takes less than 5 seconds. From the comment to the coreutils benchmark (http://git.savannah.gnu.org/cgit/coreutils.git/commit/?id=24412e

[issue32443] Add Linux's signalfd() to the signal module

2017-12-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Regardless, it'd be nice to have it available in the stdlib so it could be > used if deemed useful. Agreed. > Signals are process global state, no thread compatible library can rightfully > take ownership of a one. But then is the signalfd() idea for subp

[issue32447] IDLE shell won't open on Mac OS 10.13.1

2017-12-30 Thread Ronald Oussoren
Ronald Oussoren added the comment: There appears to be a permission issue with the home directory. What's the output of the following commands in a terminal window: $ ls -led ~ $ id The home directory should be owned by the "uid" shown by the second command, and should be writable by the use

[issue32454] Add socket.close(fd) function

2017-12-30 Thread Antoine Pitrou
Change by Antoine Pitrou : -- nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___ ___ Python-bugs-list maili

[issue32453] shutil.rmtree can have O(n^2) performance on large dirs

2017-12-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: I don't think filesystem-specific optimizations belong in the Python stdlib. Python is compatible with multiple operating systems, including Windows, macOS, Android, many POSIX variants. It would be much better if this were fixed in the kernel... -

[issue32447] IDLE shell won't open on Mac OS 10.13.1

2017-12-30 Thread Steve Margetts
Steve Margetts added the comment: Thanks for the help. I've installed ActiveTCL 8.5.18.0 as per the Python recommendation. Running from terminal: Last login: Fri Dec 29 16:46:22 on ttys001 mkdir: /Users/Steve Margetts/.bash_sessions: Permission denied touch: /Users/Steve Margetts/.bash_sessio

[issue28134] socket.socket(fileno=fd) does not work as documented

2017-12-30 Thread Christian Heimes
Christian Heimes added the comment: Issue #32454 adds socket.close(fd) function. -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue32454] Add socket.close(fd) function

2017-12-30 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +4930 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue32454] Add socket.close(fd) function

2017-12-30 Thread Christian Heimes
New submission from Christian Heimes : os.close(fd) of a socket fd does not work some platforms, e.g. Windows. In the past we have used socket.socket(fileno=fd).close() to close a socket in a platform independent way. With #28134 it may no longer work in all cases, most noticeable when the soc

[issue32439] Clean up the code for compiling comparison expressions

2017-12-30 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _