[issue32391] Add StreamWriter.wait_closed()

2018-01-24 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue18533] Avoid error from repr() of recursive dictview

2018-01-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Not ready to merge. 1. We need the Appveyer test to pass or special action from the gateway gods. 2. After a month, the PR needed to be updated and retested anyway. I pulled, updated, pushed the update (which will trigger Travis and AV), and tested on my Wind

[issue18533] Avoid error from repr() of recursive dictview

2018-01-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Hold the failure comment. I forgot that I have to recompile when patch changes .c files. -- ___ Python tracker ___ _

[issue18533] Avoid error from repr() of recursive dictview

2018-01-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: OK, test_dictviews and test_ordered_dict now pass for me, and Appveyor already ran entire suite and says OK to all. -- ___ Python tracker ___

[issue32658] Metacharacter (\) documentation suggestion

2018-01-24 Thread Kevin Raeder
New submission from Kevin Raeder : I've found the Regular Expression HOWTO to be very helpful (https://docs.python.org/3/howto/regex.html?highlight=regular%20expressions). One inconsistency I noticed is that the intro to metacharacters says "Metacharacters are not active inside classes. " But fa

[issue17852] Built-in module _io can lose data from buffered files at exit

2018-01-24 Thread Neil Schemenauer
Neil Schemenauer added the comment: Using atexit is not the solution because the data can be lost even while the program is running, not just at interpreter shutdown. The problem occurs if the buffered file object and the underlying file object are both part of a reference cycle. Then, when

[issue32623] Resize dict on del/pop

2018-01-24 Thread INADA Naoki
INADA Naoki added the comment: > Should we make sure that all dicts have at least MINSIZE entries? I don't think so. I think "allocate on first insert" is good idea for dict.clear() And I think it's good idea for new dict too: https://github.com/python/cpython/pull/1080 -- _

[issue32659] Solaris "stat" should support "st_fstype"

2018-01-24 Thread Jesús Cea Avión
New submission from Jesús Cea Avión : Solaris has an extra "st_fstype" in the "stat" structure: """ st_fstype A null-teminated string that uniquely identifies the type of the filesystem that contains the file. """ Supporting this should be trivia

[issue29708] support reproducible Python builds

2018-01-24 Thread Brett Cannon
Change by Brett Cannon : -- pull_requests: +5153 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue32660] Solaris should support constants like termios' FIONREAD

2018-01-24 Thread Jesús Cea Avión
New submission from Jesús Cea Avión : Solaris supports termios constants like FIONREAD with an appropiate "#include" in the C code. The main issue is that some names conflicts between System V and BSD personalities. I could evaluate the situation and do a patch proposal for Python 3.7. We are

[issue29708] support reproducible Python builds

2018-01-24 Thread Brett Cannon
Brett Cannon added the comment: New changeset cab0b2b053970982b760048acc3046363615a8dd by Brett Cannon in branch 'master': bpo-29708: Add What's New entries for SOURCE_DATE_EPOCH and py_compile (GH-5306) https://github.com/python/cpython/commit/cab0b2b053970982b760048acc3046363615a8dd --

[issue32513] dataclasses: make it easier to use user-supplied special methods

2018-01-24 Thread Guido van Rossum
Guido van Rossum added the comment: Raising for order=True if one of the ordering dunders exists sounds fine. I am confused by the corner case for hash. Your table: """ eq=?frozen=?__hash__ False False do not generate __hash__ False Truedo not generate __h

[issue32623] Resize dict on del/pop

2018-01-24 Thread INADA Naoki
INADA Naoki added the comment: I think I understand #17563, and I should fix GROWTH_RATE. Before compact-ordered dict, we can avoid resizing in "the number of deletions is on a par with the number of insertions." scenario, by large GROWTH_RATE. That's because new entry can reuse dummy entries.

[issue32659] Solaris "stat" should support "st_fstype"

2018-01-24 Thread Jesús Cea Avión
Change by Jesús Cea Avión : -- keywords: +patch pull_requests: +5154 stage: needs patch -> patch review ___ Python tracker ___ ___ Py

[issue32661] ProactorEventLoop locks up on close call

2018-01-24 Thread Roger Taylor
New submission from Roger Taylor : The following problem only occurs when I use ProactorEventLoop. If I use 'asyncio.get_event_loop()' it exits normally, rather than infinite looping in IOCP land. 1. I run the attached 'bug.py' script in a DOS window. It is a slightly modified version of th

[issue32628] Add configurable DirectoryIndex to http.server

2018-01-24 Thread Erik Paulson
Change by Erik Paulson : -- keywords: +patch pull_requests: +5155 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue12706] timeout sentinel in ftplib and poplib documentation

2018-01-24 Thread Marcel Widjaja
Change by Marcel Widjaja : -- pull_requests: +5156 stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mai

[issue31972] Inherited docstrings for pathlib classes are confusing

2018-01-24 Thread Chason Chaffin
Change by Chason Chaffin : -- pull_requests: +5157 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue27505] Missing documentation for setting module __class__ attribute

2018-01-24 Thread Nick Coghlan
Nick Coghlan added the comment: I think the only thing missing for the 3.7 docs now would be a pair of "versionchanged" notes indicating that __class__ has been settable since 3.5, while module level __dir__ and __getattr__ support is new in 3.7. It would also be desirable to add the __class_

[issue32662] Implement Server.serve_forever and corresponding APIs

2018-01-24 Thread Yury Selivanov
New submission from Yury Selivanov : As discussed, we want to make Server objects more usable in async/await code and more compatible with asyncio.run. This is also needed to handle a use case when two or more servers are created and need to start listening at the same time. We propose to: 1

[issue32662] Implement Server.serve_forever and corresponding APIs

2018-01-24 Thread Yury Selivanov
Change by Yury Selivanov : -- keywords: +patch pull_requests: +5158 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue32657] Mutable Objects in SMTP send_message Signature

2018-01-24 Thread Steven D'Aprano
Steven D'Aprano added the comment: Hi Kenny, and thanks, but I'm not sure what your point is. Are you claiming this is a bug in the code or the documentation? For what it is worth... mutable defaults *are* a "gotcha", so the documentation isn't wrong. And mutable defaults are *not* illegal no

[issue17852] Built-in module _io can lose data from buffered files at exit

2018-01-24 Thread Nathaniel Smith
Nathaniel Smith added the comment: > I attempted to implement my weakref idea (i.e. raw file keeps a weakref to > the buffered file, calls flush before the raw file gets closed). That > doesn't work either because the GC clears the weakref before calling __del__. This may be a bit of a left-

[issue32657] Mutable Objects in SMTP send_message Signature

2018-01-24 Thread Chason Chaffin
Chason Chaffin added the comment: Hi Steven, I have nothing to do with the original submitter but this bug did catch my eye. Does using mutable variables in the SMTP library serve a purpose? Looking through the code, I wasn't able to spot anything obvious, and I did spot a place with a poten

[issue29708] support reproducible Python builds

2018-01-24 Thread Alexandru Ardelean
Change by Alexandru Ardelean : -- pull_requests: +5159 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

<    1   2