[issue36599] doctest document says dict order is unstable

2019-04-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: Go ahead and change it to: "For example, when printing a set, Python doesn’t guarantee that the else will be printed in any particular order," -- nosy: +rhettinger ___ Python tracker

[issue36591] Should be a typing.UserNamedTuple

2019-04-11 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> levkivskyi nosy: +levkivskyi ___ Python tracker ___ ___ Python-bugs-list mailing

[issue36604] Add recipe to itertools

2019-04-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thank you for the suggestion and the nice work. I'm going to decline adding this to our docs because it isn't in the spirit of the other recipes (reasonably common task, reasonably simple, and/or showing off effective combinations of the other

[issue36457] functools.singledispatchmethod interacts poorly with subclasses

2019-04-11 Thread Tim Mitchell
Tim Mitchell added the comment: Attached is an improved implementation that does not use a module level register() function. It makes the code in the original post work as expected: The `@BaseVisitor.visit.register()` decorator on the `AVisitor` class does not modify the base class

[issue34652] never enable lchmod on Linux

2019-04-11 Thread Benjamin Peterson
Benjamin Peterson added the comment: We can take a PR to fix that. On Thu, Apr 11, 2019, at 04:42, Joshua Root wrote: > > Joshua Root added the comment: > > The follow-up fix (AC_CHECK_FUNC -> AC_CHECK_FUNCS) still needs to be > backported to 2.7. Currently the lack of it causes lchmod to

[issue36596] tarfile module considers anything starting with 512 bytes of zero bytes to be a valid tar file

2019-04-11 Thread Eitan Adler
Change by Eitan Adler : -- nosy: +eitan.adler ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36602] Recursive directory list with pathlib.Path.iterdir

2019-04-11 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > I believe `rglob("*")` is eager, while `iterdir` is lazy. rglob and glob also return a generator. Slightly related, pathlib.walk was proposed in the past in python-ideas : https://mail.python.org/pipermail/python-ideas/2017-April/045398.html

[issue16177] Typing left parenthesis in IDLE causes intermittent Cocoa Tk crash on OS X

2019-04-11 Thread Tom Goddard
Tom Goddard added the comment: This Mac Tk bug was supposedly fixed in 2016 or 2017. Details are in the following Tk ticket. http://core.tcl.tk/tk/tktview/c84f660833546b1b84e7 The previous URL to the Tk ticket no longer works. In case the above URL also goes bad, the id number

[issue29288] Lookup Error while importing idna from a worker thread

2019-04-11 Thread James Saryerwinnie
James Saryerwinnie added the comment: I ran into this as well also using the embedded distribution for windows (https://docs.python.org/3/using/windows.html#the-embeddable-package). socket.getaddrinfo() will encode unicode hostnames using idna and trigger this error if you call this

[issue34805] Explicitly specify `MyClass.__subclasses__()` returns classes in definition order

2019-04-11 Thread Cheryl Sabella
Change by Cheryl Sabella : -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue26205] Inconsistency concerning nested scopes

2019-04-11 Thread Cheryl Sabella
Cheryl Sabella added the comment: Assigning to @Mariatta for the sprints. -- assignee: docs@python -> Mariatta nosy: +Mariatta, cheryl.sabella versions: +Python 3.7, Python 3.8 -Python 2.7, Python 3.5, Python 3.6 ___ Python tracker

[issue17267] datetime.time support for '+' and '-'

2019-04-11 Thread Cheryl Sabella
Cheryl Sabella added the comment: It seems that there was interest in this enhancement a few years ago. @joar, would you be able to convert your patch to a GitHub pull request on the master branch? Thanks! -- nosy: +cheryl.sabella versions: +Python 3.8 -Python 3.4

[issue36608] Replace bundled pip and setuptools with a downloader in the ensurepip module

2019-04-11 Thread Sviatoslav Sydorenko
Change by Sviatoslav Sydorenko : -- keywords: +patch pull_requests: +12719 stage: -> patch review ___ Python tracker ___ ___

[issue36608] Replace bundled pip and setuptools with a downloader in the ensurepip module

2019-04-11 Thread Sviatoslav Sydorenko
New submission from Sviatoslav Sydorenko : Hi, I've noticed that there's an idea to not pollute Git tree with vendored blobs. In particular, `ensurepip` is one of the components doing this. Such a wish was expressed here: https://bugs.python.org/issue35277#msg330098 So I thought I'd take a

[issue36602] Recursive directory list with pathlib.Path.iterdir

2019-04-11 Thread Paul Ganssle
Paul Ganssle added the comment: > Is the behaviour you're proposing any different from using Path.rglob('*')? I believe `rglob("*")` is eager, while `iterdir` is lazy. @Epic_Wink: > This would be trivial to implement as 'iterdir' can simply yield from > subdirectories' 'iterdir'. One thing

[issue20582] socket.getnameinfo() does not document flags

2019-04-11 Thread miss-islington
miss-islington added the comment: New changeset 3993ccb6820d4239ce3d9e1c5d31f13b86eb by Miss Islington (bot) (Emmanuel Arias) in branch 'master': bpo-20582: add link for manpage for flags on getnameinfo() (GH-11977)

[issue36389] Add gc.enable_object_debugger(): detect corrupted Python objects in the GC

2019-04-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9e23f0a27cb8bf6e4ea1d2aef36a91502282bbc9 by Victor Stinner in branch '3.7': [3.7] bpo-36389: _PyObject_IsFreed() now also detects uninitialized memory (GH-12770) (GH-12788)

[issue36605] make tags should also parse Modules/_io/*.c and Modules/_io/*.h

2019-04-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset 21a74a9d77c5ac628808b9faace18b824ca056f7 by Victor Stinner in branch 'master': bpo-36605: make tags: parse Modules/_io directory (GH-12789) https://github.com/python/cpython/commit/21a74a9d77c5ac628808b9faace18b824ca056f7 --

[issue36432] Running python test suite fails on macOS 10.14.4 with resource.RLIMIT_STACK error

2019-04-11 Thread Dmitrii Pasechnik
Change by Dmitrii Pasechnik : -- nosy: +dimpase ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22454] Adding the opposite function of shlex.split()

2019-04-11 Thread Paul Ganssle
Change by Paul Ganssle : -- nosy: +p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34249] Full set of format codes applies to strftime only

2019-04-11 Thread Paul Ganssle
Paul Ganssle added the comment: To clarify, as far as I know, this note *does* apply to both strftime and strptime, as CPython doesn't have its own implementation of either. I'm not sure if any guarantees are made that the supported formatting codes will be the same between the two.

[issue36598] mock side_effect should be checked for iterable not callable

2019-04-11 Thread Gregory Ronin
Gregory Ronin added the comment: You are right. I was not calling generator the right way in mock. After I tried your suggestion it works. -- ___ Python tracker ___

[issue36607] asyncio.all_tasks() crashes if asyncio is used in multiple threads

2019-04-11 Thread Nick Davies
New submission from Nick Davies : This problem was identified in https://bugs.python.org/issue34970 but I think the fix might have been incorrect. The theory in issue34970 was that GC was causing the weakrefset for `all_tasks` to change during iteration. However Weakset provides an

[issue24011] Add error checks to PyInit_signal()

2019-04-11 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: @berkerpeksag I made the requested changes on the PR. PTAL. -- nosy: +nanjekyejoannah ___ Python tracker ___

[issue32308] Replace empty matches adjacent to a previous non-empty match in re.sub()

2019-04-11 Thread Matthew Barnett
Matthew Barnett added the comment: It's now consistent with Perl, PCRE and .Net (C#), as well as re.split(), re.sub(), re.findall() and re.finditer(). -- ___ Python tracker

[issue36606] calling super() causes __class__ to be not defined when sys.settrace(trace) is set

2019-04-11 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : I came across this issue in issue36593 where MagicMock had a custom __class__ attribute set and one of the methods used super() which caused __class__ not to be set. This seems to have been fixed in the past with issue12370 and a workaround to

[issue36593] Trace function interferes with MagicMock isinstance?

2019-04-11 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- stage: -> patch review type: -> behavior ___ Python tracker ___ ___ Python-bugs-list

[issue36593] Trace function interferes with MagicMock isinstance?

2019-04-11 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Copying my comment from GitHub : This issue occurs only when the mock module import and code are executed under tracing. In order to test this I have tried patching sys.modules to remove unittest.mock in order to trigger an import under tracing.

[issue36598] mock side_effect should be checked for iterable not callable

2019-04-11 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: -12717 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36593] Trace function interferes with MagicMock isinstance?

2019-04-11 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- keywords: +patch pull_requests: +12718 stage: -> patch review ___ Python tracker ___ ___

[issue36598] mock side_effect should be checked for iterable not callable

2019-04-11 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- keywords: +patch pull_requests: +12717 stage: -> patch review ___ Python tracker ___ ___

[issue36605] make tags should also parse Modules/_io/*.c and Modules/_io/*.h

2019-04-11 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +12716 stage: -> patch review ___ Python tracker ___ ___

[issue36605] make tags should also parse Modules/_io/*.c and Modules/_io/*.h

2019-04-11 Thread STINNER Victor
New submission from STINNER Victor : Attached PR fix the issue. -- components: Build messages: 339986 nosy: vstinner priority: normal severity: normal status: open title: make tags should also parse Modules/_io/*.c and Modules/_io/*.h versions: Python 3.8

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

2019-04-11 Thread Andrew Stanton
Andrew Stanton added the comment: I dont think this is a Cygwin only problem, as this is happening to me when running WSL (Windows subsystem for Linux). I can run Scripts\Activate.ps1 from powershell, Scripts\activate.bat from cmd, but running scripts/activate from wsl reports this same

[issue36603] should pty.openpty() set pty/tty inheritable?

2019-04-11 Thread Hugh Redelmeier
Change by Hugh Redelmeier : -- nosy: +hugh ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36604] Add recipe to itertools

2019-04-11 Thread SilentGhost
Change by SilentGhost : -- assignee: -> docs@python components: +Documentation -Extension Modules nosy: +docs@python, rhettinger versions: +Python 3.7, Python 3.8 ___ Python tracker

[issue36604] Add recipe to itertools

2019-04-11 Thread Bjorn Madsen
New submission from Bjorn Madsen : I would like to add a recipe to the itertools documentation (if it belongs there?) The recipe presents a method to generate set(powerset([iterable])) in a fraction of the runtime. I thought others might find this method helpful and pushed it to github

[issue36389] Add gc.enable_object_debugger(): detect corrupted Python objects in the GC

2019-04-11 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12715 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36588] change sys.platform() to just "aix" for AIX

2019-04-11 Thread Michael Felt
Change by Michael Felt : -- keywords: +patch pull_requests: +12714 stage: -> patch review ___ Python tracker ___ ___

[issue36603] should pty.openpty() set pty/tty inheritable?

2019-04-11 Thread SilentGhost
Change by SilentGhost : -- nosy: +twouters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36588] change sys.platform() to just "aix" for AIX

2019-04-11 Thread Michael Felt
Michael Felt added the comment: Was: root@x064:[/data/prj/python/python3-3.8]./python Python 3.8.0a3+ (heads/bpo-28009-2-dirty:2fb2bc81c3, Apr 11 2019, 07:09:55) [C] on aix6 Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> sys.platform 'aix6' >>>

[issue36603] should pty.openpty() set pty/tty inheritable?

2019-04-11 Thread cagney
New submission from cagney : pty.openpty(), on systems with a working os.openpty() / openpty(3) executes: if (openpty(_fd, _fd, NULL, NULL, NULL) != 0) goto posix_error; if (_Py_set_inheritable(master_fd, 0, NULL) < 0) goto error; if (_Py_set_inheritable(slave_fd,

[issue19770] NNTP: add post_message wrapper to post Email Message objects

2019-04-11 Thread Cheryl Sabella
Cheryl Sabella added the comment: Thanks David! If someone is looking for an issue to work on, I'll keep this one in mind with the caveat that it won't be reviewed during the sprints. And if no one works on it at that time, then it might be a good first issue afterwards. I'm updating the

[issue13927] Document time.ctime format

2019-04-11 Thread Cheryl Sabella
Cheryl Sabella added the comment: I guess what I'm thinking of `Www Mmm dd hh:mm:ss ` as representing isn't so much a format, but rather a literal replacement of where each value has a placeholder in the string (that is, a pattern). So, even if `Www` doesn't mean anything, to me it

[issue18748] io.IOBase destructor silence I/O error on close() by default

2019-04-11 Thread STINNER Victor
Change by STINNER Victor : -- title: libgcc_s.so.1 must be installed for pthread_cancel to work -> io.IOBase destructor silence I/O error on close() by default ___ Python tracker

[issue18748] libgcc_s.so.1 must be installed for pthread_cancel to work

2019-04-11 Thread STINNER Victor
STINNER Victor added the comment: I looked at this old issue. First of all, "bug.py" filename is accurate: this program contains a bug, but it's non-obvious. * the main thread opens a file which gets the file descriptor 3 * a new thread is spawns which indirectly closes this file descriptor

[issue34788] ipaddress module fails on rfc4007 scoped IPv6 addresses

2019-04-11 Thread Jeremy McMillan
Jeremy McMillan added the comment: I think the code in SaltStack to handle scoped IPv6 addresses is mature, so please look at these examples. https://github.com/saltstack/salt/blob/2085cb1078f187adf82a0cf19b39d350ff1bbd50/salt/_compat.py#L125 --

[issue18748] libgcc_s.so.1 must be installed for pthread_cancel to work

2019-04-11 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +12713 stage: resolved -> patch review ___ Python tracker ___ ___

[issue22377] %Z in strptime doesn't match EST and others

2019-04-11 Thread SilentGhost
SilentGhost added the comment: PR on github, Alex -- nosy: +SilentGhost ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36600] re-enable test in nntplib

2019-04-11 Thread SilentGhost
Change by SilentGhost : -- components: +Tests nosy: +vstinner type: -> behavior versions: +Python 3.7, Python 3.8 ___ Python tracker ___

[issue2281] Enhanced cPython profiler with high-resolution timer

2019-04-11 Thread Inada Naoki
Inada Naoki added the comment: I think https://bugs.python.org/issue36575 fixed this. -- nosy: +inada.naoki resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue13927] Document time.ctime format

2019-04-11 Thread Harmandeep Singh
Harmandeep Singh added the comment: This is not python compatible format, I want something like "%a %b %d %H:%M:%S %Y" to explain it. -- ___ Python tracker ___

[issue36378] Add support to load from paths to json.load

2019-04-11 Thread Inada Naoki
Inada Naoki added the comment: I close this because PR is closed already, and same idea was discussed on -ideas ML. -- nosy: +inada.naoki resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue18697] Unify arguments names in Unicode object C API documentation

2019-04-11 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13927] Document time.ctime format

2019-04-11 Thread Cheryl Sabella
Cheryl Sabella added the comment: I would like to help get this issue merged as it's already been approved by a core developer. Does anyone object to the change? Victor made a suggestion on the PR for alternative wording and I wanted to give others a chance to comment on that. Also,

[issue16712] collections.abc.Sequence should not provide __reversed__

2019-04-11 Thread Inada Naoki
Inada Naoki added the comment: I close this issue because Reversible ABC was added. It's sad that Sequnce.__reversed__ is just makes reversed() slow without any benefit. But removing it without breaking backward compatibility is not easy for now. -- resolution: -> wont fix stage:

[issue35232] Add `module`/`qualname` arguments to make_dataclass for picklability

2019-04-11 Thread Antony Lee
Change by Antony Lee : -- nosy: -Antony.Lee ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32616] Significant performance problems with Python 2.7 built with clang 3.x or 4.x

2019-04-11 Thread Inada Naoki
Inada Naoki added the comment: https://github.com/Homebrew/homebrew-core/blob/b2aff6271caa04508fb1529fdd5edbb22f4e7f21/Formula/python%402.rb#L75-L82 Homebrew checks compiler version too. I don't think it's worth enough to add more code to avoid this trouble. -- resolution: -> wont

[issue32616] Significant performance problems with Python 2.7 built with clang 3.x or 4.x

2019-04-11 Thread Inada Naoki
Inada Naoki added the comment: I'm using Mojave. I don't have regression. $ /usr/local/bin/python2 x.py # Homebrew python@2 1.681729 $ /usr/bin/python x.py # System python2 1.891549 Could someone using High Sierra or Sierra test it? x.py is test script in

[issue35232] Add `module`/`qualname` arguments to make_dataclass for picklability

2019-04-11 Thread Cheryl Sabella
Change by Cheryl Sabella : -- type: -> enhancement versions: +Python 3.8 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list

[issue36602] Recursive directory list with pathlib.Path.iterdir

2019-04-11 Thread SilentGhost
SilentGhost added the comment: Is the behaviour you're proposing any different from using Path.rglob('*')? -- nosy: +SilentGhost ___ Python tracker ___

[issue34652] never enable lchmod on Linux

2019-04-11 Thread Joshua Root
Joshua Root added the comment: The follow-up fix (AC_CHECK_FUNC -> AC_CHECK_FUNCS) still needs to be backported to 2.7. Currently the lack of it causes lchmod to be disabled on all platforms, not just Linux. -- nosy: +jmr ___ Python tracker

[issue35070] test_posix fails on macOS 10.14 Mojave

2019-04-11 Thread Dave Page
Dave Page added the comment: I'm seeing what appears to my uneducated eyes to be the same failure on Mojave, on a brand new machine which is entirely standalone: 12:16:00 0:00:07 load avg: 4.24 [133/416/1] test_posix failed 12:16:00 test test_posix failed -- Traceback (most recent call

[issue36389] Add gc.enable_object_debugger(): detect corrupted Python objects in the GC

2019-04-11 Thread STINNER Victor
STINNER Victor added the comment: Currently, I'm using the following patch to try to detect bpo-33803 bug using my GC object debugger. It's still a work-in-progress. diff --git a/Lib/site.py b/Lib/site.py index ad1146332b..e184080b19 100644 --- a/Lib/site.py +++ b/Lib/site.py @@ -638,3

[issue36560] test_functools leaks randomly 1 memory block

2019-04-11 Thread STINNER Victor
STINNER Victor added the comment: Patch making check on memory block leaks stricter: diff --git a/Lib/test/libregrtest/refleak.py b/Lib/test/libregrtest/refleak.py index 235d6bfd3a..dfadabdef6 100644 --- a/Lib/test/libregrtest/refleak.py +++ b/Lib/test/libregrtest/refleak.py @@ -130,7 +130,7

[issue36602] Recursive directory list with pathlib.Path.iterdir

2019-04-11 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36593] Trace function interferes with MagicMock isinstance?

2019-04-11 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I think I got to this. See issue12370 (Use of super overwrites use of __class__ in class namespace) . msg138712 suggests a workaround to alias super at the module level. unittest.mock has the below line and NonCallableMock has __class__ defined as

[issue36602] Recursive directory list with pathlib.Path.iterdir

2019-04-11 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +12712 stage: -> patch review ___ Python tracker ___ ___

[issue1583] Patch for signal.set_wakeup_fd

2019-04-11 Thread STINNER Victor
STINNER Victor added the comment: Please don't discuss on closed issues. Either reopen the issue or open a new issue. -- nosy: +vstinner ___ Python tracker ___

[issue1583] Patch for signal.set_wakeup_fd

2019-04-11 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > signalmodule.c has a hack to limit it to the main thread. The Python signal handler always runs in the main thread, but the signal can be caught by any thread. In other words, trip_signal() can be run by any thread. --

[issue36601] signals can be caught by any thread

2019-04-11 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: Also note that the documentation of the signal module already has the correct wording: Python signal handlers are always executed in the main Python thread, even if the signal was received in another thread. --

[issue36389] Add gc.enable_object_debugger(): detect corrupted Python objects in the GC

2019-04-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4c409beb4c360a73d054f37807d3daad58d1b567 by Victor Stinner in branch 'master': bpo-36389: Change PyMem_SetupDebugHooks() constants (GH-12782) https://github.com/python/cpython/commit/4c409beb4c360a73d054f37807d3daad58d1b567 --

[issue34060] regrtest: log "CPU usage" on Windows

2019-04-11 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36601] signals can be caught by any thread

2019-04-11 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- keywords: +patch pull_requests: +12711 stage: -> patch review ___ Python tracker ___ ___

[issue36602] Recursive directory list with pathlib.Path.iterdir

2019-04-11 Thread Laurie Opperman
New submission from Laurie Opperman : Currently, 'pathlib.Path.iterdir' can only list the contents of the instance directory. It is common to also want the contents of subdirectories recursively. The proposal is for 'pathlib.Path.iterdir' to have an argument 'recursive' which when 'True'

[issue32949] Simplify "with"-related opcodes

2019-04-11 Thread Inada Naoki
Change by Inada Naoki : -- nosy: +inada.naoki ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36601] signals can be caught by any thread

2019-04-11 Thread Jeroen Demeyer
New submission from Jeroen Demeyer : Because of some discussion that is happening on #1583 I noticed this bit of code in the OS-level signal handler (set by the C function sigaction() or signal()): static void signal_handler(int sig_num) { /* See NOTES section above */ if (getpid() ==

[issue36597] Travis CI: doctest failure

2019-04-11 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36389] Add gc.enable_object_debugger(): detect corrupted Python objects in the GC

2019-04-11 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12709 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36600] re-enable test in nntplib

2019-04-11 Thread Marcin Niemira
Change by Marcin Niemira : -- keywords: +patch pull_requests: +12710 stage: -> patch review ___ Python tracker ___ ___

[issue36597] Travis CI: doctest failure

2019-04-11 Thread Inada Naoki
Inada Naoki added the comment: New changeset ac31da8f3710f9f9b8dbb4c36b2108fb1e5b4a48 by Inada Naoki in branch '3.7': bpo-36597: fix random doctest failure (GH-12778) https://github.com/python/cpython/commit/ac31da8f3710f9f9b8dbb4c36b2108fb1e5b4a48 --

[issue36593] Trace function interferes with MagicMock isinstance?

2019-04-11 Thread Ned Batchelder
Ned Batchelder added the comment: BTW, this started as a bug against coverage.py: https://github.com/nedbat/coveragepy/issues/795 There are some more details there, including the fact that it must be a Python trace function; a C trace function seems not to cause the problem. --

[issue36600] re-enable test in nntplib

2019-04-11 Thread Marcin Niemira
New submission from Marcin Niemira : Disabled test in not failing anymore. ```./python -m test -u all -v test_nntplib -m test_article_head_body == CPython 3.8.0a3+ (heads/feature/pep-572-improvement-in-smtplib-dirty:f4efa312d1, Apr 8 2019, 21:0) [GCC 7.3.0] ==

[issue36416] bytes.rpartition bug in online documentation

2019-04-11 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36416] bytes.rpartition bug in online documentation

2019-04-11 Thread miss-islington
miss-islington added the comment: New changeset 04b114eede82c7ffd7b3d9b40e8bf707780b022b by Miss Islington (bot) in branch '3.7': bpo-36416: Correct bytes.rpartition documentation (GH-12543) https://github.com/python/cpython/commit/04b114eede82c7ffd7b3d9b40e8bf707780b022b -- nosy:

[issue36599] doctest document says dict order is unstable

2019-04-11 Thread Inada Naoki
Change by Inada Naoki : -- title: weakref document says dict order is unstable -> doctest document says dict order is unstable ___ Python tracker ___

[issue36416] bytes.rpartition bug in online documentation

2019-04-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +12708 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36575] Use _PyTime_GetPerfCounter() in lsprof

2019-04-11 Thread Inada Naoki
Inada Naoki added the comment: New changeset 536a35b3f14888999f1ffa5be7239d0c26b73d7a by Inada Naoki in branch 'master': bpo-36575: lsprof: Use _PyTime_GetPerfCounter() (GH-8378) https://github.com/python/cpython/commit/536a35b3f14888999f1ffa5be7239d0c26b73d7a --

[issue36575] Use _PyTime_GetPerfCounter() in lsprof

2019-04-11 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36599] weakref document says dict order is unstable

2019-04-11 Thread Inada Naoki
New submission from Inada Naoki : https://docs.python.org/3/library/doctest.html#warnings "For example, when printing a dict, Python doesn’t guarantee that the key-value pairs will be printed in any particular order," This example should be rewritten with set. -- assignee:

[issue36597] Travis CI: doctest failure

2019-04-11 Thread Inada Naoki
Inada Naoki added the comment: New changeset b3c92c6ae923ffb2b9ac5f80b28ecd689de48662 by Inada Naoki in branch 'master': bpo-36597: fix weakref example code (GH-12779) https://github.com/python/cpython/commit/b3c92c6ae923ffb2b9ac5f80b28ecd689de48662 --

[issue32308] Replace empty matches adjacent to a previous non-empty match in re.sub()

2019-04-11 Thread Anders Hovmöller
Anders Hovmöller added the comment: Just as a comparison, sed does the 3.6 thing: > echo foo | sed 's/\(.*\)/x\1y/g' xfooy -- ___ Python tracker ___

[issue32308] Replace empty matches adjacent to a previous non-empty match in re.sub()

2019-04-11 Thread Anders Hovmöller
Anders Hovmöller added the comment: This was a really bad idea in my opinion. We just found this and we have no way to know how this will impact production. It's really absurd that re.sub('(.*)', r'foo', 'asd') is "foo" in python 1 to 3.6 but 'foofoo' in python 3.7. -- nosy:

[issue36389] Add gc.enable_object_debugger(): detect corrupted Python objects in the GC

2019-04-11 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12707 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36389] Add gc.enable_object_debugger(): detect corrupted Python objects in the GC

2019-04-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset 2b00db68554422ec37faba2a80179a0172df6349 by Victor Stinner in branch 'master': bpo-36389: _PyObject_IsFreed() now also detects uninitialized memory (GH-12770) https://github.com/python/cpython/commit/2b00db68554422ec37faba2a80179a0172df6349

[issue36597] Travis CI: doctest failure

2019-04-11 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +12706 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36469] Stuck during interpreter exit, attempting to take the GIL

2019-04-11 Thread Remy Noel
Remy Noel added the comment: @eric.snow Unless you confirm there is no way to figure out which thread is/was holding the GIL from a debugging session on the running process, I'll get rid of it at the end of the week. Should i close the ticket then or will you do it ? Thanks. --

[issue36597] Travis CI: doctest failure

2019-04-11 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +12705 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36597] Travis CI: doctest failure

2019-04-11 Thread Inada Naoki
Inada Naoki added the comment: New changeset 57b1a2862a99677f09614e9e456d36aae9ddd87c by Inada Naoki in branch 'master': bpo-36597: fix random doctest failure (GH-12776) https://github.com/python/cpython/commit/57b1a2862a99677f09614e9e456d36aae9ddd87c --

[issue36597] Travis CI: doctest failure

2019-04-11 Thread Inada Naoki
Inada Naoki added the comment: I think PR-12776 fixed "obj dead or exiting" error. https://travis-ci.org/python/cpython/jobs/518656385 -- ___ Python tracker ___

  1   2   >