[issue35486] subprocess module breaks backwards compatibility with older import hooks

2018-12-13 Thread David Wilson
David Wilson added the comment: Corrected GitHub link for the commit: https://github.com/python/cpython/commit/880d42a3b24 -- ___ Python tracker <https://bugs.python.org/issue35

[issue35486] subprocess module breaks backwards compatibility with import hooks

2018-12-13 Thread David Wilson
Change by David Wilson : -- title: subprocess module breaks backwards compatibility with older import hooks -> subprocess module breaks backwards compatibility with import hooks ___ Python tracker <https://bugs.python.org/issu

[issue35486] subprocess module breaks backwards compatibility with import hooks

2018-12-13 Thread David Wilson
David Wilson added the comment: Having considered this for a few hours, it seems the following is clear: - 3.6 introduces ModuleImportError - 3.7 begins using it within importlib - 3.8 first instance of stdlib code catching it - PEP-302 and PEP-451 are the definitive specifications for how

[issue35611] open doesn't call IncrementalEncoder with final=True

2018-12-28 Thread David Haney
New submission from David Haney : The implementation of open relies on a codecs' IncrementalEncoder, however it never calls `encode` with final=True. This appears to violate the documentation for IncrementalEncoder.encode which states that the last call to encode _must_ set final=True.

[issue33084] Computing median, median_high an median_low in statistics library

2019-01-06 Thread David Mertz
David Mertz added the comment: I believe that the current behavior of `statistics.median[|_low|_high\]` is simply broken. It relies on the particular behavior of Python sorting, which only utilizes `.__lt__()` between objects, and hence does not require a total order. I can think of

[issue35486] subprocess module import hooks breaks back compatibility

2019-01-08 Thread David Wilson
David Wilson added the comment: Hi Nick, The purpose of ModuleNotFoundError is clear and unrelated to the problem documented here. The problem is that due to the introduction of ModuleNotFoundError, ImportError's semantics have been changed within a minor release in a breaking, back

[issue35715] ProcessPool workers hold onto return value of last task in memory

2019-01-11 Thread David Chevell
New submission from David Chevell : ProcessPoolExecutor workers will hold onto the return value of their last task in memory until the next task is received. Since the return value has already been propagated to the parent process's `Future` or else effectively discarded, this is ho

[issue35715] ProcessPool workers hold onto return value of last task in memory

2019-01-11 Thread David Chevell
Change by David Chevell : -- keywords: +patch pull_requests: +11075 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35715> ___ ___ Py

[issue35715] ProcessPool workers hold onto return value of last task in memory

2019-01-11 Thread David Chevell
Change by David Chevell : -- keywords: +patch, patch, patch, patch pull_requests: +11075, 11076, 11077, 11078 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue35715] ProcessPool workers hold onto return value of last task in memory

2019-01-11 Thread David Chevell
Change by David Chevell : -- keywords: +patch, patch, patch pull_requests: +11075, 11076, 11077 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue35715] ProcessPool workers hold onto return value of last task in memory

2019-01-11 Thread David Chevell
Change by David Chevell : -- keywords: +patch, patch pull_requests: +11075, 11076 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue35726] QueueHandler formating affects other handlers

2019-01-12 Thread David Ruggles
New submission from David Ruggles : ISSUE: if you add a formatter to QueueHandler any subsequently added handlers will get the formatting added to QueueHandler CAUSE: as best as I can tell, the code here: https://github.com/python/cpython/blob/d586ccb04f79863c819b212ec5b9d873964078e4/Lib

[issue35701] [uuid] 3.8 breaks weak references for UUIDs

2019-01-14 Thread David Heiberg
David Heiberg added the comment: Since there has been no objection to this yet, would it be alright for me to take this as my first PR? On top of the change you mentioned to the __slots__ list, should there also be a test written so that a similar regression doesn't happen

[issue35701] [uuid] 3.8 breaks weak references for UUIDs

2019-01-14 Thread David Heiberg
David Heiberg added the comment: Ok thanks for your input, I will work on a PR and hopefully submit one tomorrow or Wednesday depending on schedule. -- ___ Python tracker <https://bugs.python.org/issue35

[issue35701] [uuid] 3.8 breaks weak references for UUIDs

2019-01-15 Thread David Heiberg
Change by David Heiberg : -- keywords: +patch pull_requests: +11236 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue35701] [uuid] 3.8 breaks weak references for UUIDs

2019-01-15 Thread David Heiberg
Change by David Heiberg : -- keywords: +patch, patch pull_requests: +11236, 11237 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue35701] [uuid] 3.8 breaks weak references for UUIDs

2019-01-15 Thread David Heiberg
Change by David Heiberg : -- keywords: +patch, patch, patch pull_requests: +11236, 11237, 11238 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue35753] Importing call from unittest.mock directly causes ValueError

2019-01-16 Thread David Antonini
New submission from David Antonini : Ok so that's a pretty odd bug. I already had from unittest.mock import patch, mock_open so I simply modified that to from instead of doing mock.call in my test. Changing this to from unittest import mock and then mock.call fixed the error.

[issue35753] Importing call from unittest.mock directly causes ValueError

2019-01-16 Thread David Antonini
David Antonini added the comment: I'm having a problem with mock.call when I import it directly from unittest.mock. When I do: from unittest.mock import patch, mock_open, call mocked_print.assert_has_calls([ call("first print"), call("second print"),

[issue35753] Importing call from unittest.mock directly causes ValueError

2019-01-16 Thread David Antonini
David Antonini added the comment: Apologies for initial malformed message, I hit submit prematurely. -- ___ Python tracker <https://bugs.python.org/issue35

[issue35701] [uuid] 3.8 breaks weak references for UUIDs

2019-01-17 Thread David Heiberg
David Heiberg added the comment: Ahh yes of course, I will remove that from the notes. With regards to the second note, would it do any harm to leave it in? I suppose it does imply that this was possible before... -- ___ Python tracker <ht

[issue35701] [uuid] 3.8 breaks weak references for UUIDs

2019-01-17 Thread David Heiberg
David Heiberg added the comment: Should the note on arbitrary attributes also be removed? If this was documented previously then I don't see the need for it here, but if this has never been documented then maybe some other way of wording it may be sensible to in

[issue35701] [uuid] 3.8 breaks weak references for UUIDs

2019-01-18 Thread David Heiberg
David Heiberg added the comment: Agreed. I will fix the documentation and submit a PR this weekend hopefully. -- ___ Python tracker <https://bugs.python.org/issue35

[issue35701] [uuid] 3.8 breaks weak references for UUIDs

2019-01-19 Thread David Heiberg
Change by David Heiberg : -- pull_requests: +11374, 11375, 11376 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue35701] [uuid] 3.8 breaks weak references for UUIDs

2019-01-19 Thread David Heiberg
Change by David Heiberg : -- pull_requests: +11374, 11375 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issue35701> ___ ___ Py

[issue35701] [uuid] 3.8 breaks weak references for UUIDs

2019-01-19 Thread David Heiberg
Change by David Heiberg : -- pull_requests: +11374 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issue35701> ___ ___ Python-

[issue5038] urrlib2/httplib doesn't reset file position between requests

2019-01-22 Thread David Heiberg
Change by David Heiberg : -- nosy: +dheiberg ___ Python tracker <https://bugs.python.org/issue5038> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35701] [uuid] 3.8 breaks weak references for UUIDs

2019-01-28 Thread David Heiberg
David Heiberg added the comment: I have submitted a PR for the documentation. Hopefully this is enough to resolve the issue and close. -- ___ Python tracker <https://bugs.python.org/issue35

[issue13986] ValueError: cannot convert float NaN to integer

2017-03-04 Thread David Robins
David Robins added the comment: I saw a similar error with Python 3.6 on a MIPS (32-bit - mipsisa32r2el-axis-linux-gnu) platform, but during interpreter startup, not install (perhaps because it was cross-compiled so install on the host doesn't run the target Python). It was due to bui

[issue29792] "Fatal Python error: Cannot recover from stack overflow." from pure Python code

2017-03-11 Thread David MacIver
New submission from David MacIver: When run under Python 3.6.0 or 3.5.1 (and presumably other versions of Python 3) the attached code fails with "Fatal Python error: Cannot recover from stack overflow." then aborts with a core dump and an error code indicating it got a SIGABRT. On

[issue29792] "Fatal Python error: Cannot recover from stack overflow." from pure Python code

2017-03-11 Thread David MacIver
David MacIver added the comment: So it does. My apologies. I'll close this. -- stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.

[issue25478] Consider adding a normalize() method to collections.Counter()

2017-03-14 Thread David Mertz
David Mertz added the comment: I definitely wouldn't want a mutator that "normalized" counts for the reason Antoine mentions. It would be a common error to normalize then continue meaningless counting. One could write a `Frequency` subclass easily enough. The essential feat

[issue25478] Consider adding a normalize() method to collections.Counter()

2017-03-14 Thread David Mertz
David Mertz added the comment: Raymond wrote: > The idea is that the method would return a new counter instance > and leave the existing instance untouched. Your own first example suggested: c /= sum(c.values()) That would suggest an inplace modification. But even if it's no

[issue30126] CheckTraceCallbackContent of test_sqlite3 fails on OS X Tiger

2017-04-21 Thread David Bolen
David Bolen added the comment: No recent changes to the buildbot (I think the last was in September to bump the local python used to run the slave/build installer to 2.7). The default system sqlite (/usr/lib) is 3.0.8.6, so extremely old, but 3.6.11 is in /usr/local/{lib,include} from early

[issue30126] CheckTraceCallbackContent of test_sqlite3 fails on OS X Tiger

2017-04-21 Thread David Bolen
David Bolen added the comment: The test appears to pass against a local test build of sqlite3 3.18.0, so I'll probably just plan on updating the slave to that later tonight. Unless anyone is interested in figuring out why it fails with 3.6.11 and not 3.18.0 (e.g., does the test have a h

[issue30126] CheckTraceCallbackContent of test_sqlite3 fails on OS X Tiger

2017-04-21 Thread David Bolen
David Bolen added the comment: Ok, this should be resolved. I opted to be a bit more conservative and only upgraded to sqlite3 3.8.3.1, which is the oldest version still in use for the dmg installer packages (for 2.7). I restarted the most recent 3.x build and while it's not completely

[issue30183] [HPUX] compilation error in pytime.c with cc compiler

2017-04-26 Thread David Haney
New submission from David Haney: When compiling on HP-UX with the native cc compiler, the following compilation error occurs in pytime.c cc -Ae -c -O -O -I. -I./Include-DPy_BUILD_CORE -o Python/pytime.o Python/pytime.c "Python/pytime.c", line 723: error #2020:

[issue30183] [HPUX] compilation error in pytime.c with cc compiler

2017-04-27 Thread David Haney
David Haney added the comment: > It seems like gethrtime() is the right function to be used on HP-UX. > https://docstore.mik.ua/manuals/hp-ux/en/B2355-60130/gethrtime.3C.html Thanks, I'll work on getting a patch that leverages gethrtime() tested and submitted

[issue30173] x86 Windows7 3.x buildbot has the issue #26624 bug

2017-04-27 Thread David Bolen
David Bolen added the comment: Ok, I believe I've got the latest ucrtbased now on the Win7 buildbot (validate_ucrtbase.py reports it as 10.0.15063.137). It appears as if my Win8 and Win10 buildbots also have the older dll, so I'm guessing they're just fast enough or lucky en

[issue30173] x86 Windows7 3.x buildbot has the issue #26624 bug

2017-04-27 Thread David Bolen
David Bolen added the comment: Yeah, there were a few transient build errors while I was getting the buildbot back online. My initial attempt to fix this ticket involved using the VS 2015 installer which turned out very badly, so I had to fall back to an older VM image and start over. But

[issue30183] [HPUX] compilation error in pytime.c with cc compiler

2017-04-28 Thread David Haney
Changes by David Haney : -- pull_requests: +1463 ___ Python tracker <http://bugs.python.org/issue30183> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30212] test_ssl.py is broken in Centos7

2017-04-29 Thread david-cpi
New submission from david-cpi: To make the test pass, I added the following try statement: try: sock.sendall(buf) except: pass -- components: Tests files: test.log messages: 292608 nosy: david-cpi priority: normal severity: normal

[issue30212] test_ssl.py is broken in Centos7

2017-05-02 Thread david-cpi
david-cpi added the comment: Hi Victor, I will try during the day and get back with the logs. -- ___ Python tracker <http://bugs.python.org/issue30212> ___ ___

[issue30212] test_ssl.py is broken in Centos7

2017-05-02 Thread david-cpi
david-cpi added the comment: Hello Victor, in 3.6.1 the test passes but it's because on sub-test was removed. The one generating the issue is NetworkedBIOTests which is not found in 3.6.1. in 3.5.2: if support.is_resource_enabled('network'): tests.append

[issue30225] EBADF error on x86 Tiger 3.x buildbot

2017-05-03 Thread David Bolen
David Bolen added the comment: Hmm, I wonder if this is another race condition similar to issue 8458? I think that was thought to be related to the subprocess exiting quickly, in which case the question might be why that might happen more so than the actual descriptor error. BTW, Victor, in

[issue30225] EBADF error on x86 Tiger 3.x buildbot

2017-05-03 Thread David Bolen
David Bolen added the comment: In running the test under a local build, the issue is very repeatable, but I believe it's actually due to slow process startup rather than a quick exit. That is, adding a brief sleep after process creation and just before the Request() call seems to fi

[issue4963] mimetypes.guess_extension result changes after mimetypes.init()

2017-05-08 Thread David Hess
David Hess added the comment: Concur with @sivert – the result of guess_extension() is non-deterministic between mimetypes module initialization. $ python Python 3.4.3 (default, Nov 17 2016, 01:08:31) [GCC 4.8.4] on linux Type "help", "copyright", "credits" or

[issue4963] mimetypes.guess_extension result changes after mimetypes.init()

2017-05-08 Thread David Hess
David Hess added the comment: And the underlying problem causing this: $ python -c 'import mimetypes;print(mimetypes.guess_all_extensions("image/jpeg"))' ['.jpeg', '.jpg', '.jpe'] $ python -c 'import mimetypes;print(mimetypes.guess

[issue16865] ctypes arrays >=2GB in length causes exception

2017-05-10 Thread David Heffernan
David Heffernan added the comment: I just ran into this issue. I'm trying to write code like this: (ctypes.c_char*bufferLen).from_buffer(buffer) where buffer is a bytearray. When bufferLen is greater than 2GB I fail foul of this code in _ctypes.c long length; l

[issue16865] ctypes arrays >=2GB in length causes exception

2017-05-10 Thread David Heffernan
David Heffernan added the comment: Erik, As you can no doubt guess, this is related to the questions I have been asking on SO that you have so expertly been answering. Thank you! When I solved the latest problem, getting at the internal buffer of a bytearray, I used the code in my previous

[issue30395] deadlocked child process after forking on pystate.c's head_mutex

2017-05-17 Thread David Rothera
Changes by David Rothera : -- nosy: +David Rothera ___ Python tracker <http://bugs.python.org/issue30395> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33608] [subinterpreters] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-02-28 Thread David Bolen
David Bolen added the comment: I suspect changes for this issue may be creating test_io failures on my windows builders, most notably my x86 Windows 7 builder where test_io has been failing both attempts on almost all builds. It fails with a lock failure during interpreter shutdown, and

[issue33608] [subinterpreters] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-03-01 Thread David Bolen
David Bolen added the comment: If I can help with testing or builder access or anything just let me know. It appears that I can pretty reliably trigger the error through just the individual tests (test_daemon_threads_shutdown_std{out,err}_deadlock) in isolation, which is definitely less

[issue36279] os.wait3() leaks some uninitialized stack when no processes exist

2019-03-12 Thread David Wilson
New submission from David Wilson : Not sure if this is worth reporting.. p = os.popen('sleep 1234') os.wait3(os.WNOHANG) os.wait3(os.WNOHANG) os.wait3(os.WNOHANG) Notice struct rusage return value. When wait3() succeeds on Linux, but no child was waiting to be reaped, &ru is

[issue35473] Intel compiler (icc) does not fully support C11 Features, including atomics

2019-03-25 Thread David Chin
Change by David Chin : -- nosy: +hairygristle ___ Python tracker <https://bugs.python.org/issue35473> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36424] Pickle fails on frozen dataclass that has slots

2019-03-25 Thread David Hagen
New submission from David Hagen : If a dataclass is `frozen` and has `__slots__`, then unpickling an instance of it fails because the default behavior is to use `setattr` which `frozen` does not allow. ``` import pickle from dataclasses import dataclass @dataclass(frozen=True) class A

[issue36486] Bugs and inconsistencies in unicodedata

2019-03-30 Thread David Corbett
New submission from David Corbett : In `unicodedata`, the functions `lookup` and `name` have some bugs and inconsistencies. `lookup` matches case-insensitively, except for the algorithmic names of Hangul syllables and CJK unified ideographs, which must be in all caps. The documentation does

[issue36085] Enable better DLL resolution

2019-03-30 Thread David Bolen
David Bolen added the comment: I just wanted to acknowledge that this was breaking on my Windows 7 builder (with a bad DLL load parameter in both pythoninfo and test steps). It looks like I was missing the required KB2533625 (the machine is mostly a virgin SP1 install), so I've inst

[issue36085] Enable better DLL resolution

2019-03-30 Thread David Bolen
David Bolen added the comment: I can help with a Win7 test of the installer, but my currently available systems are all 32-bit - any chance at a 32-bit version of the installer? -- ___ Python tracker <https://bugs.python.org/issue36

[issue36085] Enable better DLL resolution

2019-03-30 Thread David Bolen
David Bolen added the comment: Ok, I've verified that on a Win7 system with SP1 but without KB2533625 I get the expected block screen at startup. On my worker (SP1 with KB2533625) it proceeds to the regular installation main dialog. I'm attaching a copy of the install log in th

[issue34028] Python 3.7.0 wont compile with SSL Support 1.1.0 > alledged missing X509_VERIFY_PARAM_set1_host() support

2019-04-04 Thread David Chin
David Chin added the comment: OS: RHEL 6.8 I installed OpenSSL 1.1.1b from source into /usr/local. Because it's RHEL, the libs are in /usr/local/lib64 (as set up by default with the OpenSSL "make install") which the configure script does not seem to know about. My wor

[issue33608] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-04-12 Thread David Bolen
David Bolen added the comment: Eric, I'm also seeing the same Win7 and Win10 worker failures with commit b75b1a350 as last time (test_multiprocessing_spawn on both, and test_io on Win7). For test_multiprocessing_spawn, it fails differently than Victor since no core file is generated,

[issue33608] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-04-12 Thread David Bolen
David Bolen added the comment: I just noticed that my last message referenced the wrong commit. My test failures were against commit f13c5c8b9401a9dc19e95d8b420ee100ac022208 (the same as Victor). -- ___ Python tracker <https://bugs.python.

[issue36718] Python 2.7 compilation fails on AMD64 Ubuntu Shared 2.7 buildbot with: relocation R_X86_64_PC32 against symbol ... can not be used ...

2019-04-25 Thread David Bolen
David Bolen added the comment: Yes, it appears most likely to be the worker environment. I did upgrade the kernel in between builds 250 (good) and 251 (bad), but reverting that still fails, even with the same commit as in build 250. My current suspicion is that a test I did recently with a

[issue36718] Python 2.7 compilation fails on AMD64 Ubuntu Shared 2.7 buildbot with: relocation R_X86_64_PC32 against symbol ... can not be used ...

2019-04-25 Thread David Bolen
David Bolen added the comment: Ok, I've resolved this, and the linker errors did actually point at the root issue. They show trying to link extensions against /usr/local/lib/libpython2.7.a which was my test static build of 2.7.16. Arguably this seems an issue in the buildbot build pr

[issue11871] test_default_timeout() of test_threading.BarrierTests failure: BrokenBarrierError

2019-04-27 Thread David Bolen
David Bolen added the comment: I should mention that a high level of test parallelism on the part of my worker might have be a contributing factor in this most recent case. The worker was recently upgraded to a faster 4-core VM, but with limited I/O. In a test run the test processes

[issue36749] PPC64 AIX 3.x: compilation issue, linker fails to locate symbols

2019-04-29 Thread David Bolen
David Bolen added the comment: I think I'm the wrong David for this... -- ___ Python tracker <https://bugs.python.org/issue36749> ___ ___ Python-bugs-list m

[issue34088] [EASY] sndhdr.what() throws exceptions on unknown files

2019-05-01 Thread david awad
david awad added the comment: It's been a while since then but I really think we can get this fix merged in the next two weeks or so. Can someone give this another look? I had a quick question for Serhiy Here: https://github.com/python/cpython/pull/8319#discussion_r273539593 If we

[issue36872] passing negative values through modules

2019-05-09 Thread David Collins
New submission from David Collins : program_data.py file contains a list import list_function str_list4 = ['i', 't'] str_list4 = list_function.insert_value(str_list4, 's', -1) print(str_list4) list_function.py file def insert_value(my_list, value, ins

[issue36872] passing negative values through modules

2019-05-09 Thread David Collins
David Collins added the comment: I have tested this in the Mac and PC versions of IDLE as well as in Spyder using Ipython. -- ___ Python tracker <https://bugs.python.org/issue36

[issue36872] passing negative values through modules

2019-05-09 Thread David Collins
David Collins added the comment: This is an issue with python On Fri, 10 May 2019 at 3:52 pm, SilentGhost wrote: > > Change by SilentGhost : > > > -- > components: -IDLE > > ___ > Python tracker > <h

[issue36872] passing negative values through modules

2019-05-09 Thread David Collins
David Collins added the comment: Not the coding On Fri, 10 May 2019 at 3:53 pm, David Collins wrote: > This is an issue with python > > On Fri, 10 May 2019 at 3:52 pm, SilentGhost > wrote: > >> >> Change by SilentGhost : >> >&

[issue36872] passing negative values through modules

2019-05-10 Thread David Collins
David Collins added the comment: So what your saying is that python is unable to pass a negative number between modules and you don’t think that this is an issue . Sent from Mail for Windows 10 From: Terry J. Reedy Sent: Friday, 10 May 2019 7:21 PM To: coldy...@gmail.com Subject

[issue36872] passing negative values through modules

2019-05-10 Thread David Collins
David Collins added the comment: Sorry for being so abrupt you are correct . The code I was working from was a university professors and not my own, I understood better thanks steve. I wasn’t passing a return value yet and the professors work was overwriting the list. I do apologise

[issue32569] Blake2 module, memory clearance update

2018-01-16 Thread David Carlier
New submission from David Carlier : Might brings a bit of "controversy" but some oses have already unoptimizable memset like functions from their libc was thinking to just use them instead. -- ___ Python tracker <https://bugs.python.o

[issue32569] Blake2 module, memory clearance update

2018-01-16 Thread David Carlier
Change by David Carlier : -- components: Library (Lib) nosy: David Carlier priority: normal pull_requests: 5056 severity: normal status: open title: Blake2 module, memory clearance update type: enhancement versions: Python 3.8 ___ Python tracker

[issue32569] Blake2 module, memory clearance update

2018-01-16 Thread David Carlier
David Carlier added the comment: Since the PR had been closed. -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue32569] Blake2 module, memory clearance update

2018-01-16 Thread David Carlier
David Carlier added the comment: No worries If I saw first it was an extra project I would not have try to submit in Cpython. Apologies. I ll see what I can do in blake2 side :-) -- ___ Python tracker <https://bugs.python.org/issue32

[issue26692] cgroups support in multiprocessing

2018-01-16 Thread David Chin
David Chin added the comment: I would like to state strong support if is.get_usable_cpu_count() I administer a typical HPC cluster which may have multiple jobs scheduled on the same physical server. The fact that multiprocessing ignores cgroups leads to bad oversubscription. -- nosy

[issue32493] UUID Module - FreeBSD build failure

2018-01-17 Thread David CARLIER
David CARLIER added the comment: Might comes from uuid1 function itself ... e.g. line 704 not setting version "field". -- nosy: +David CARLIER2 ___ Python tracker <https://bugs.python.o

[issue32579] UUID module fix, uuid1 python module function

2018-01-17 Thread David CARLIER
New submission from David CARLIER : Spotted to UUID unit tests https://bugs.python.org/issue32493 -- components: Library (Lib) messages: 310154 nosy: David CARLIER2 priority: normal pull_requests: 5068 severity: normal status: open title: UUID module fix, uuid1 python module function

[issue32493] UUID Module - FreeBSD build failure

2018-01-17 Thread David CARLIER
David CARLIER added the comment: uuid_create only I think. -- ___ Python tracker <https://bugs.python.org/issue32493> ___ ___ Python-bugs-list mailing list Unsub

[issue32493] UUID Module - FreeBSD build failure

2018-01-17 Thread David CARLIER
David CARLIER added the comment: Gives same outcome but maybe someone else can confir, -- ___ Python tracker <https://bugs.python.org/issue32493> ___ ___ Pytho

[issue32493] UUID Module - FreeBSD build failure

2018-01-23 Thread David CARLIER
David CARLIER added the comment: In OpenBSD it s even "worse", the version for each call is random (not a surprise when looking at the source). The question is, do we go back to support only AIX or do we accept somehow wro

[issue32690] Return function locals() in order of creation?

2018-01-28 Thread David Beazley
David Beazley added the comment: Some context: I noticed this while discussing (in a course) a programming trick involving instance initialization and locals() that I'd encountered in the past: def _init(locs): self = locs.pop('self') for name, va

[issue32493] UUID Module - FreeBSD build failure

2018-02-03 Thread David CARLIER
David CARLIER added the comment: Probably. Seems workable under Apple otherwise. -- ___ Python tracker <https://bugs.python.org/issue32493> ___ ___ Python-bug

[issue32810] Expose ags_gen and agt_gen in asynchronous generators

2018-02-09 Thread David Beazley
New submission from David Beazley : Libraries such as Curio and asyncio provide a debugging facility that allows someone to view the call stack of generators/coroutines. For example, the _task_get_stack() function in asyncio/base_tasks.py. This works by manually walking up the chain of

[issue32810] Expose ags_gen and agt_gen in asynchronous generators

2018-02-10 Thread David Beazley
David Beazley added the comment: I've attached a file that illustrates the issue. (Side thought: this would be nice to have in inspect or traceback) -- Added file: https://bugs.python.org/file47434/agen.py ___ Python tracker &

[issue32822] finally block doesn't re-raise exception if return statement exists inside

2018-02-11 Thread David Rebbe
New submission from David Rebbe : According to the docs: "When an exception has occurred in the try clause and has not been handled by an except clause (or it has occurred in an except or else clause), it is re-raised after the finally clause has been executed." https://docs.py

[issue32822] finally block doesn't re-raise exception if return statement exists inside

2018-02-11 Thread David Rebbe
David Rebbe added the comment: Oops I didn't realize I referenced the tutorial documentation. Maybe it would be better to mention this behavior in the tutorial documentation also. I've always assumed exception raises take priority over any return/break/continues. Behavior is back

[issue33014] Clarify doc string for str.isidentifier()

2018-03-06 Thread David Beazley
New submission from David Beazley : This is a minor nit, but the doc string for str.isidentifier() states: Use keyword.iskeyword() to test for reserved identifiers such as "def" and "class". At first glance, I thought that it meant you'd do this (doesn't wor

[issue33014] Clarify doc string for str.isidentifier()

2018-03-09 Thread David Beazley
David Beazley added the comment: That wording isn't much better in my opinion. If I'm sitting there looking at methods like str.isdigit(), str.isnumeric(), str.isascii(), and str.isidentifier(), seeing keyword.iskeyword() makes me think it's a method regardless of whether

[issue33014] Clarify doc string for str.isidentifier()

2018-03-10 Thread David Beazley
David Beazley added the comment: s = 'Some String' s.isalnum() s.isalpha() s.isdecimal() s.isdigit() s.isidentifier() s.islower() s.isnumeric() s.isprintable() s.isspace() s.istitle() s.isupper() Not really sure where I would have gotten the idea that it might be referring to s

[issue33068] Inconsistencies in parsing (evaluating?) longstrings

2018-03-13 Thread David Lukeš
New submission from David Lukeš : """ \""" """ evaluates to ' """ ' (as expected), but without the surrounding spaces, """\"""""" evaluates to '"' in

[issue33068] Inconsistencies in parsing (evaluating?) longstrings

2018-03-13 Thread David Lukeš
David Lukeš added the comment: Oh, right, of course! Sorry and thanks for taking the time to clarify that :) -- ___ Python tracker <https://bugs.python.org/issue33

[issue32822] finally block doesn't re-raise exception if return statement exists inside

2018-03-16 Thread David Rebbe
David Rebbe added the comment: I'll have to look into this as I have yet to commit anything but I'll put it on my list of things to do. -- ___ Python tracker <https://bugs.python.o

[issue32569] Blake2 module, memory clearance update

2018-03-27 Thread David CARLIER
David CARLIER added the comment: Little update it has been accepted and merged today : https://github.com/BLAKE2/libb2/commit/620681a3b15c4d7239b9323b9da5ea208a959d3d -- nosy: +David CARLIER2 ___ Python tracker <https://bugs.python.org/issue32

[issue33164] Blake 2 module update

2018-03-28 Thread David Carlier
Change by David Carlier : -- components: Extension Modules nosy: David Carlier priority: normal pull_requests: 6013 severity: normal status: open title: Blake 2 module update versions: Python 3.8 ___ Python tracker <https://bugs.python.

[issue33362] string strip() strips extra characters that it shouldn't

2018-04-25 Thread David Ghiurco
New submission from David Ghiurco : No PR is attached since the issue is pretty trivial to reproduce but important nonetheless: string = "LDA/AIC2/1919uc1b354363457" print(string) print(string.lstrip("LDA/")) the stripped string should be "AIC2/1919uc1b35436

[issue33362] string strip() strips extra characters that it shouldn't

2018-04-25 Thread David Ghiurco
David Ghiurco added the comment: Thanks guys. I should have used .replace(). My bad. -- ___ Python tracker <https://bugs.python.org/issue33362> ___ ___ Python-bug

<    7   8   9   10   11   12   13   14   15   16   >