[issue33012] Invalid function cast warnings with gcc 8 for METH_NOARGS

2018-05-28 Thread Chih-Hsuan Yen
Chih-Hsuan Yen added the comment: There are still quite a few similar warnings on git-master. Do they indicate the same problem or should I open new issues? For example: gcc -pthread -c -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes-std=c99 -Wextra -W

[issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x

2018-05-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The race condition is in tests (we can open a file before it be written in a child). The reed memory reusage is in the posix module. Didn't look at it close, but seems the content of a temporary Python object (the result of encoding/decoding) is passed to C

[issue18307] Relative path in co_filename for zipped modules

2018-05-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Only a PR for master is needed. Changes to other branches will be ported after reviewing and merging the PR for master. -- ___ Python tracker _

[issue33658] Introduce a method to concatenate regex patterns

2018-05-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is not trivial task because inline flags with global scope can be occurred in any part of the pattern (although using them not at the start of the pattern is deprecated). But starting with 3.7 you can use inline flags with local scope. This will allow

[issue33652] Improve pickling of typing types

2018-05-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +6778 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue32290] bolen-dmg-3.6: compilation failed with OSError: [Errno 23] Too many open files in system

2018-05-28 Thread STINNER Victor
STINNER Victor added the comment: > The macOS Tiger buildbot where all of these "too many files open" OS failures > occurred has been retired. macOS Tiger is still supported, since we still have x86 Tiger buildbot, it's just the dmg buildbot on Tiger which has been retired. Right? --

[issue32832] doctest should support custom ps1/ps2 prompts

2018-05-28 Thread Sergey B Kirpichev
Sergey B Kirpichev added the comment: > are people writing an entirely different shell interface. They're rare. Or just using a different shell interface. Or even different defaults for the standard shell... And they are not rare. Almost nobody in reality use CPython shell - that's defini

[issue32290] bolen-dmg-3.6: compilation failed with OSError: [Errno 23] Too many open files in system

2018-05-28 Thread Ned Deily
Ned Deily added the comment: Whether or not Tiger is supported, we no longer have any Tiger buildbots. We agreed to retire them earlier this year. -- ___ Python tracker ___ __

[issue32374] Document that m_traverse for multi-phase initialized modules can be called with m_state=NULL

2018-05-28 Thread Marcel Plch
Change by Marcel Plch : -- pull_requests: +6779 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue32458] test_asyncio: test_start_tls_server_1() fails randomly

2018-05-28 Thread STINNER Victor
STINNER Victor added the comment: I just reproduced the issue on Linux. Open 3 terminals and run the commands in parallel: (1) ./python -m test test_asyncio -m test_start_tls_server_1 -F (2) ./python -m test -j16 -r (3) ./python -m test -j16 -r It's a race condition which doesn't depend on th

[issue32374] Document that m_traverse for multi-phase initialized modules can be called with m_state=NULL

2018-05-28 Thread Petr Viktorin
Petr Viktorin added the comment: > That's a weak test: if the script fails before calling > spec.loader.create_module(), the test also pass. If the function raises an > exception but don't crash, the test pass as well. Marcel added PR 7145 for that -- it wraps things in try/except to catch P

[issue18307] Relative path in co_filename for zipped modules

2018-05-28 Thread Vitaly Murashev
Vitaly Murashev added the comment: > Only a PR for master is needed. Serhiy Storchaka, thanks for advice, I cancelled unnecessary PRs. -- ___ Python tracker ___ ___

[issue32911] Doc strings no longer stored in body of AST

2018-05-28 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue30654] signal module always overwrites SIGINT on interpreter shutdown

2018-05-28 Thread pkerling
Change by pkerling <9b6ab...@casix.org>: -- keywords: +patch pull_requests: +6780 stage: -> patch review ___ Python tracker ___ ___

[issue33665] tkinter.ttk.Scrollbar.fraction() is inaccurate, or at least inconsistent compared to the non ttk version

2018-05-28 Thread pez
New submission from pez <4coreylo...@gmail.com>: tkinter.Scrollbar(orient='horizontal').fraction() gives you an accurate representation of how far along the mouse is in the trough. The output is 0.0 when the mouse is on the first pixel of the trough. The output is 1.0 when the mouse is on the

[issue32374] Document that m_traverse for multi-phase initialized modules can be called with m_state=NULL

2018-05-28 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +6781 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue33652] Improve pickling of typing types

2018-05-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +6782 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue33652] Improve pickling of typing types

2018-05-28 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: New changeset 97b523db7c79c18c48516fba9410014d9896abc4 by Ivan Levkivskyi (Serhiy Storchaka) in branch 'master': bpo-33652: Remove __getstate__ and __setstate__ methods in typing. (GH-7144) https://github.com/python/cpython/commit/97b523db7c79c18c48516fba9410

[issue31467] cElementTree behaves differently compared to ElementTree

2018-05-28 Thread twisteroid ambassador
Change by twisteroid ambassador : -- pull_requests: +6783 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue31647] asyncio: StreamWriter write_eof() after close raises mysterious AttributeError

2018-05-28 Thread twisteroid ambassador
twisteroid ambassador added the comment: I was about to write a long comment asking what the appropriate behavior should be, but then saw that _ProactorSocketTransport already handles the same issue properly, so I will just change _SelectorSocketTransport to do the same thing. -- ___

[issue33652] Improve pickling of typing types

2018-05-28 Thread miss-islington
miss-islington added the comment: New changeset 98b089e2a178a309f20ac9ff498b230407da1f47 by Miss Islington (bot) in branch '3.7': bpo-33652: Remove __getstate__ and __setstate__ methods in typing. (GH-7144) https://github.com/python/cpython/commit/98b089e2a178a309f20ac9ff498b230407da1f47 ---

[issue31467] cElementTree behaves differently compared to ElementTree

2018-05-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: -6783 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue32374] Document that m_traverse for multi-phase initialized modules can be called with m_state=NULL

2018-05-28 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset 08c5aca9d13b24b35faf89ebd26fc348ae1731b2 by Petr Viktorin (Marcel Plch) in branch 'master': bpo-32374: Ignore Python-level exceptions in test_bad_traverse (GH-7145) https://github.com/python/cpython/commit/08c5aca9d13b24b35faf89ebd26fc348ae1731b2

[issue32374] Document that m_traverse for multi-phase initialized modules can be called with m_state=NULL

2018-05-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +6784 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue33400] logging.Formatter does not default to ISO8601 date format

2018-05-28 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset eb8516becc267caeb0ca6f9c41e805d1ba1caaa3 by Vinay Sajip (Miss Islington (bot)) in branch '3.7': bpo-33400: Clarified documentation to indicate no strict adherence to ISO 8601. (GH-6702) (GH-6704) https://github.com/python/cpython/commit/eb8516becc2

[issue33400] logging.Formatter does not default to ISO8601 date format

2018-05-28 Thread Vinay Sajip
Vinay Sajip added the comment: Because the specs allow certain decisions to be taken "by mutual consent", I'm not sure anyone can be really happy. Perhaps I should just state what the format actually is, as per msg316662, refer to RFC 3339 and leave it at that. I don't have a copy of the ISO

[issue33400] logging.Formatter does not default to ISO8601 date format

2018-05-28 Thread Paul Ganssle
Paul Ganssle added the comment: I think this is more a matter of misunderstanding the fact that ISO 8601 is a larger and more complicated spec than people think. You'll note that the original complaint also seems to think that a timezone is required (it is not). You can find a copy of RFC 33

[issue32374] Document that m_traverse for multi-phase initialized modules can be called with m_state=NULL

2018-05-28 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset 983c1ba94aef945386001932c5744f8ce9757fec by Petr Viktorin (Miss Islington (bot)) in branch '3.7': bpo-32374: Ignore Python-level exceptions in test_bad_traverse (GH-7145) (GH-7150) https://github.com/python/cpython/commit/983c1ba94aef945386001932

[issue33400] logging.Formatter does not default to ISO8601 date format

2018-05-28 Thread Paul Ganssle
Paul Ganssle added the comment: Ah, actually, my mistake, RFC 3339 most assuredly *does* require a UTC offset: 4.4. Unqualified Local Time A number of devices currently connected to the Internet run their internal clocks in local time and are unaware of UTC. While the Internet do

[issue33652] Improve pickling of typing types

2018-05-28 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: I think this can be closed now. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue33666] os.errno gone AWOL

2018-05-28 Thread Miro Hrončok
New submission from Miro Hrončok : In 3.7.0b4 I see the following traceback: >>> import os >>> os.errno Traceback (most recent call last): File "", line 1, in AttributeError: module 'os' has no attribute 'errno' This was not the case for Python 3.6: >>> import os >>> os.errno os.errno mig

[issue33409] Clarify the interaction between locale coercion & UTF-8 mode

2018-05-28 Thread Nick Coghlan
Nick Coghlan added the comment: I'm aiming for this week, so with the docstring-AST-induced delay I should even meet the original rc1 goal :) -- ___ Python tracker ___ ___

[issue33667] Mock calls on mutable objects

2018-05-28 Thread Pawel
New submission from Pawel : When method of mocked object is called multiple times with mutable object as parameter and attribute of this object has been updated between calls, mock_calls is only aware of the last value. I think it unexpected behaviour, that mock doesn't track value changes. I'

[issue31467] cElementTree behaves differently compared to ElementTree

2018-05-28 Thread twisteroid ambassador
Change by twisteroid ambassador : -- pull_requests: +6786 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue31647] asyncio: StreamWriter write_eof() after close raises mysterious AttributeError

2018-05-28 Thread twisteroid ambassador
Change by twisteroid ambassador : -- keywords: +patch pull_requests: +6785 stage: -> patch review ___ Python tracker ___ ___ Python-

[issue33666] os.errno gone AWOL

2018-05-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: os.errno as well as os.sys or os.abc is an implementation detail. It can be changed without notice even in a bugfix release. Projects that depend on it are incorrect and should be fixed. -- nosy: +serhiy.storchaka resolution: -> not a bug stage: -

[issue32962] test_gdb fails in debug build with `-mcet -fcf-protection -O0`

2018-05-28 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Ping. Could someone take a look? There is a PR ready. -- ___ Python tracker ___ ___ Python-

[issue33668] Wrong behavior of help function on module

2018-05-28 Thread Oleg Oleynik
New submission from Oleg Oleynik : I write file test.py: def __getattr__(key): return None help(__name__) when I try to run it I've got error: Traceback (most recent call last): File "test.py", line 5, in help(__name__) File "C:\Program Files\Python37\lib\_sitebuiltins.py", line 103

[issue33012] Invalid function cast warnings with gcc 8 for METH_NOARGS

2018-05-28 Thread Xavier de Gaye
Xavier de Gaye added the comment: > Pedantically the correct way is to cast to a function pointer with no > prototype (empty parentheses) Thanks for raising this point Antti. This is hinted at by the gcc 8 documentation on -Wcast-function-type: "The function type void (*) (void) is special a

[issue33012] Invalid function cast warnings with gcc 8 for METH_NOARGS

2018-05-28 Thread Xavier de Gaye
Xavier de Gaye added the comment: > There are still quite a few similar warnings on git-master. Do they indicate > the same problem or should I open new issues? This is the same issue, the warning line ends with [-Wcast-function-type]. -- ___ Pytho

[issue33666] os.errno gone AWOL

2018-05-28 Thread Petr Viktorin
Petr Viktorin added the comment: I think this was closed prematurely. > Projects that depend on it are incorrect and should be fixed. That's definitely correct; no one here is arguing against it. However, there are projects out there depending on it -- it worked since around Python 2.5, and i

[issue33666] os.errno gone AWOL

2018-05-28 Thread STINNER Victor
STINNER Victor added the comment: > os.errno as well as os.sys or os.abc is an implementation detail. I agree but... > It can be changed without notice even in a bugfix release. Projects that > depend on it are incorrect and should be fixed. I don't think that it would hurt to document the r

[issue33666] os.errno gone AWOL

2018-05-28 Thread Miro Hrončok
Miro Hrončok added the comment: I can document this, yes. I've opened this issue so I could prep a PR. -- ___ Python tracker ___ ___

[issue33623] Fix possible SIGSGV when asyncio.Future is created in __del__

2018-05-28 Thread Peter Bašista
Peter Bašista added the comment: > Can this crash be reproduced without uvloop? I am not aware of a way to reproduce this without uvloop. > What is the backtrace of the assertion failure? Without uvloop, the following exception is raised: Exception ignored in: > Traceback (most recent call las

[issue33669] str.format should raise exception when placeholder number doesn't match argument number

2018-05-28 Thread Xiang Zhang
New submission from Xiang Zhang : I'm somewhat surprised when I have code like `"hello %s".format(person)` in my project there is no exception raised and "hello %s" returned. Have several tries it seems `str.format` won't check argument number. >>> '{} {}'.format(1) Traceback (most recent call

[issue33666] os.errno gone AWOL

2018-05-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If document disappearing of os.errno, we should document disappearing of all other names in other modules in all versions. It is possible to write a script that outputs dir(mod) for all modules and compare results between different Python versions. Are you

[issue33666] os.errno gone absent without official leave (AWOL)

2018-05-28 Thread STINNER Victor
Change by STINNER Victor : -- title: os.errno gone AWOL -> os.errno gone absent without official leave (AWOL) ___ Python tracker ___

[issue33666] os.errno gone absent without official leave (AWOL)

2018-05-28 Thread STINNER Victor
STINNER Victor added the comment: > If document disappearing of os.errno, we should document disappearing of all > other names in other modules in all versions. Miro proposed to document the removal of os.errno since errno is a commonly used module, as the os module. I don't think that the r

[issue32458] test_asyncio: test_start_tls_server_1() fails randomly

2018-05-28 Thread Yury Selivanov
Yury Selivanov added the comment: > It's a race condition which doesn't depend on the OS, but on the system load. Yeah, I agree. The current timeout for the test is 5 seconds and it tries to transfer 2mb of data, which isn't that much actually. I'll bump the timeout and reduce the amount of

[issue33623] Fix possible SIGSGV when asyncio.Future is created in __del__

2018-05-28 Thread Yury Selivanov
Yury Selivanov added the comment: There's nothing specific here to uvloop except the fact that it was compiled with Cython, so module finalization/GC pattern is slightly different to that of vanilla asyncio. Serhiy, I'm merging this PR since I'd like to avoid having segfaults in 3.7.0. Feel

[issue33623] Fix possible SIGSGV when asyncio.Future is created in __del__

2018-05-28 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 35230d08e09de4e2e52658d5cb09e5b0ca965418 by Yury Selivanov in branch 'master': bpo-33623: Fix possible SIGSGV when asyncio.Future is created in __del__ (#7080) https://github.com/python/cpython/commit/35230d08e09de4e2e52658d5cb09e5b0ca965418 --

[issue33623] Fix possible SIGSGV when asyncio.Future is created in __del__

2018-05-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +6787 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue33623] Fix possible SIGSGV when asyncio.Future is created in __del__

2018-05-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +6788 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue33669] str.format should raise exception when placeholder number doesn't match argument number

2018-05-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This will break the following case: def geterrmsg(n): return ('function doesn't have arguments' if n == 0 else 'function have a single argument' if n == 1 else 'function have %d arguments') print(geterrmsg(n).format(n)) Actually

[issue31647] asyncio: StreamWriter write_eof() after close raises mysterious AttributeError

2018-05-28 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 23f587e395e41bd5e116312b036183f42bc4159b by Yury Selivanov (twisteroid ambassador) in branch 'master': bpo-31647: Fix write_eof() after close() for SelectorSocketTransport (GH-7149) https://github.com/python/cpython/commit/23f587e395e41bd5e116312

[issue33666] Document removal of os.errno

2018-05-28 Thread Petr Viktorin
Change by Petr Viktorin : -- title: os.errno gone absent without official leave (AWOL) -> Document removal of os.errno ___ Python tracker ___ __

[issue31647] asyncio: StreamWriter write_eof() after close raises mysterious AttributeError

2018-05-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +6789 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue31647] asyncio: StreamWriter write_eof() after close raises mysterious AttributeError

2018-05-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +6790 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue33669] str.format should raise exception when placeholder number doesn't match argument number

2018-05-28 Thread Xiang Zhang
Xiang Zhang added the comment: Yes, this is a breaking change. A currently working piece of code suddenly raises an exception. But, please note Serhiy in your example you have the same bug as me, you've gotten an oversight bug in it: it's {:d} not %s. That's why I want the improvement.

[issue33623] Fix possible SIGSGV when asyncio.Future is created in __del__

2018-05-28 Thread miss-islington
miss-islington added the comment: New changeset 51d0a2c8ddcb9f58d71ff0a62be4e31a1af3f139 by Miss Islington (bot) in branch '3.7': bpo-33623: Fix possible SIGSGV when asyncio.Future is created in __del__ (GH-7080) https://github.com/python/cpython/commit/51d0a2c8ddcb9f58d71ff0a62be4e31a1af3f13

[issue32832] doctest should support custom ps1/ps2 prompts

2018-05-28 Thread Tim Peters
Tim Peters added the comment: You missed my point about IPython: forget "In/Out arrays, etc". What you suggest is inadequate for _just_ changing PS1/PS2 for IPython. Again, read their `parse()` function. They support _more than one_ set of PS1/PS2 conventions. So the code changes you sug

[issue32374] Document that m_traverse for multi-phase initialized modules can be called with m_state=NULL

2018-05-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +6791 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue33670] Use errorlevel of Sphinx main() in Doc\make.bat

2018-05-28 Thread Andrés Delfino
New submission from Andrés Delfino : Doc\make.bat is exiting without exposing Sphinx's main() return value, showing weird things like: C:\Users\adelfino\Desktop\Personal\repos\cpython\Doc>make venv Using py -3.6 (found with py.exe) Merging Misc/NEWS with py -3.6 -m blurb Running Sphinx v1.7.4

[issue33670] Use errorlevel of Sphinx main() in Doc\make.bat

2018-05-28 Thread Andrés Delfino
Change by Andrés Delfino : -- keywords: +patch pull_requests: +6792 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue32458] test_asyncio: test_start_tls_server_1() fails randomly

2018-05-28 Thread Yury Selivanov
Yury Selivanov added the comment: > If the purpose is to detect when the test hangs: use a timeout of 5 minutes, > or at least 1 minute (60 seconds). OK, sounds good, will do that. -- ___ Python tracker ___

[issue32458] test_asyncio: test_start_tls_server_1() fails randomly

2018-05-28 Thread STINNER Victor
STINNER Victor added the comment: > Yeah, I agree. The current timeout for the test is 5 seconds and it tries to > transfer 2mb of data, which isn't that much actually. I'll bump the timeout > and reduce the amount of data transferred in > https://github.com/python/cpython/pull/7130 What is

[issue32458] test_asyncio: test_start_tls_server_1() fails randomly

2018-05-28 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +6793 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue32458] test_asyncio: test_start_tls_server_1() fails randomly

2018-05-28 Thread STINNER Victor
STINNER Victor added the comment: > OK, sounds good, will do that. Race condition! I created https://github.com/python/cpython/pull/7157 to increase the timeout from 5 seconds to 60 seconds. -- ___ Python tracker

[issue32458] test_asyncio: test_start_tls_server_1() fails randomly

2018-05-28 Thread Giampaolo Rodola'
Change by Giampaolo Rodola' : -- nosy: -giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue33670] Use errorlevel of Sphinx main() in Doc\make.bat

2018-05-28 Thread Andrés Delfino
Andrés Delfino added the comment: After the PR: C:\Users\adelfino\Desktop\Personal\repos\cpython\Doc>make venv Using py -3.6 (found with py.exe) Merging Misc/NEWS with py -3.6 -m blurb Running Sphinx v1.7.4 Sphinx error: Builder name venv not registered or available through entry point Build

[issue33257] Race conditions in Tkinter with non-threaded Tcl

2018-05-28 Thread Ivan Pozdeev
Ivan Pozdeev added the comment: Found yet another race condition -- when creating multiple Tk()s. Attached example (loops indefinitely inside Tcl: some internal list becomes circular for some reason). The obvious fix by wrapping Tcl calls with locks in Tkapp_New doesn't fix it -- must be so

[issue32533] SSLSocket read/write thread-unsafety

2018-05-28 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +6794 stage: needs patch -> patch review ___ Python tracker ___ ___ Python

[issue33666] Document removal of os.errno

2018-05-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a list of all names removed in 3.7 (except modules that was removed as a whole): abc.WeakSet argparse._collections argparse._copy argparse._ensure_value argparse._textwrap ast._NUM_TYPES asyncio.async asyncio.base_events.compat asyncio.base_events.co

[issue31647] asyncio: StreamWriter write_eof() after close raises mysterious AttributeError

2018-05-28 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 1f21ae710d83a37c872355612b58958cef4d5f95 by Yury Selivanov (Miss Islington (bot)) in branch '3.7': bpo-31647: Fix write_eof() after close() for SelectorSocketTransport (GH-7149) (GH-7153) https://github.com/python/cpython/commit/1f21ae710d83a37c

[issue31467] cElementTree behaves differently compared to ElementTree

2018-05-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: -6786 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue33671] Efficient efficient zero-copy syscalls for shutil.copy* functions (Linux, OSX and Win)

2018-05-28 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' : Patch in attachment uses platform specific zero-copy syscalls on Linux and Solaris (os.sendfile(2)), Windows (CopyFileW) and OSX (fcopyfile(2)) speeding up shutil.copyfile() and other functions using it (copy(), copy2(), copytree(), move()). Average spe

[issue31647] asyncio: StreamWriter write_eof() after close raises mysterious AttributeError

2018-05-28 Thread Yury Selivanov
Change by Yury Selivanov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue31647] asyncio: StreamWriter write_eof() after close raises mysterious AttributeError

2018-05-28 Thread Yury Selivanov
Yury Selivanov added the comment: Merged, thanks for looking into this! BTW, if you have any other bugfixes in mind, today is pretty much last chance to get them into 3.7.0 -- ___ Python tracker ___

[issue33671] Efficient zero-copy for shutil.copy* functions (Linux, OSX and Win)

2018-05-28 Thread Giampaolo Rodola'
Change by Giampaolo Rodola' : -- title: Efficient efficient zero-copy syscalls for shutil.copy* functions (Linux, OSX and Win) -> Efficient zero-copy for shutil.copy* functions (Linux, OSX and Win) ___ Python tracker

[issue33671] Efficient zero-copy for shutil.copy* functions (Linux, OSX and Win)

2018-05-28 Thread Giampaolo Rodola'
Change by Giampaolo Rodola' : -- pull_requests: +6795 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue33671] Efficient zero-copy for shutil.copy* functions (Linux, OSX and Win)

2018-05-28 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: PR: https://github.com/python/cpython/pull/7160 -- ___ Python tracker ___ ___ Python-bugs-list

[issue33666] Document removal of os.errno

2018-05-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And here is a list of names removed in 3.6: asynchat.fifo asyncio.coroutines.futures asyncio.futures.Error asyncio.futures.reprlib asyncio.tasks.linecache asyncio.tasks.traceback copy.builtins copy._copy_with_constructor copy._copy_with_copy_method copy._Empt

[issue33639] Use high-performance os.sendfile() in shutil.copy*

2018-05-28 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Closing as duplicate of #33671. -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> Efficient zero-copy for shutil.copy* functions (Linux, OSX and Win) ___ Python t

[issue33639] Use high-performance os.sendfile() in shutil.copy*

2018-05-28 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Closing as duplicate of #33671. -- stage: resolved -> patch review ___ Python tracker ___ ___ P

[issue33672] Fix Task.__repr__ crash when trying to format Cython's bogus coroutines

2018-05-28 Thread Yury Selivanov
Change by Yury Selivanov : -- components: asyncio nosy: asvetlov, yselivanov priority: normal severity: normal status: open title: Fix Task.__repr__ crash when trying to format Cython's bogus coroutines type: behavior versions: Python 3.6, Python 3.7, Python 3.8

[issue33672] Fix Task.__repr__ crash when trying to format Cython's bogus coroutines

2018-05-28 Thread Yury Selivanov
Change by Yury Selivanov : -- keywords: +patch pull_requests: +6796 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue33667] Mock calls on mutable objects

2018-05-28 Thread Lady Red
Lady Red added the comment: To have the behavior that you are expecting, I believe the mock would have to store a deep copy of every mutable object that is passed in to any of it's calls, in case that object later mutates. That would really expand the memory and time footprint of working wit

[issue33671] Efficient zero-copy for shutil.copy* functions (Linux, OSX and Win)

2018-05-28 Thread Giampaolo Rodola'
Change by Giampaolo Rodola' : -- nosy: +SilentGhost, StyXman, asvetlov, desbma, facundobatista, gps, josh.r, martin.panter, ncoghlan, neologix, petr.viktorin, pitrou, python-dev, r.david.murray, tarek, vstinner, yselivanov ___ Python tracker

[issue32374] Document that m_traverse for multi-phase initialized modules can be called with m_state=NULL

2018-05-28 Thread miss-islington
miss-islington added the comment: New changeset 6ec325d48348fb52a421354ba563ff9c1f368054 by Miss Islington (bot) in branch '3.6': bpo-32374: Ignore Python-level exceptions in test_bad_traverse (GH-7145) https://github.com/python/cpython/commit/6ec325d48348fb52a421354ba563ff9c1f368054 ---

[issue31096] asyncio.stream.FlowControlMixin._drain_helper may lead to a blocking behavior

2018-05-28 Thread Yury Selivanov
Yury Selivanov added the comment: Documenting this would be a great first step. -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue23749] asyncio missing wrap_socket (starttls)

2018-05-28 Thread Yury Selivanov
Change by Yury Selivanov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue33505] Optimize asyncio.ensure_future by reordering if conditions

2018-05-28 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset e549c4be5fb010f5faf12236af8faa720a1429be by Yury Selivanov (jimmylai) in branch 'master': bpo-33505: Optimize asyncio.ensure_future by reordering if conditions (GH-6836) https://github.com/python/cpython/commit/e549c4be5fb010f5faf12236af8faa720a1

[issue33469] RuntimeError after closing loop that used run_in_executor

2018-05-28 Thread Yury Selivanov
Yury Selivanov added the comment: Hopefully asyncio.run() in Python 3.7 will handle this case correctly. -- ___ Python tracker ___ _

[issue33505] Optimize asyncio.ensure_future by reordering if conditions

2018-05-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +6797 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue32591] Deprecate sys.set_coroutine_wrapper and replace it with more focused API(s)

2018-05-28 Thread Yury Selivanov
Change by Yury Selivanov : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mail

[issue33469] RuntimeError after closing loop that used run_in_executor

2018-05-28 Thread Yury Selivanov
Yury Selivanov added the comment: Ah, I see, the callback that tracks the state of the wrapped concurrent.Future doesn't check that the loop is closed and its future has been cancelled. I think this is a bug. -- ___ Python tracker

[issue33669] str.format should raise exception when placeholder number doesn't match argument number

2018-05-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If issue28308 be implemented, it may be that the Python compiler itself will emit a warning. -- ___ Python tracker ___ ___

[issue33673] Install python-docs-theme even if Sphinx is already installed

2018-05-28 Thread Andrés Delfino
New submission from Andrés Delfino : python-docs-theme is being installed only if Sphinx is not installed too. PR fixes this. -- components: Demos and Tools messages: 317892 nosy: adelfino priority: normal severity: normal status: open title: Install python-docs-theme even if Sphinx is

[issue33673] Install python-docs-theme even if Sphinx is already installed

2018-05-28 Thread Andrés Delfino
Change by Andrés Delfino : -- keywords: +patch pull_requests: +6798 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue33673] Install python-docs-theme even if Sphinx is already installed

2018-05-28 Thread Andrés Delfino
Andrés Delfino added the comment: This applies to Windows's make.bat. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

  1   2   3   >