[issue33975] IDLE: adjust DPI before Tk() for htests.

2018-06-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Both PRs have been merged. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue33975] IDLE: adjust DPI before Tk() for htests.

2018-06-26 Thread miss-islington
miss-islington added the comment: New changeset 5d2d9d7c08819c7fbdfd7906858609e5070c20dd by Miss Islington (bot) in branch '3.6': bpo-33975: Avoid small type when running IDLE's htests. (GH-7944) https://github.com/python/cpython/commit/5d2d9d7c08819c7fbdfd7906858609e5070c20dd --

[issue33975] IDLE: adjust DPI before Tk() for htests.

2018-06-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +7560 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33975] IDLE: adjust DPI before Tk() for htests.

2018-06-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +7559 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33975] IDLE: adjust DPI before Tk() for htests.

2018-06-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 3c8043d8fac4c0d05c0ba9e4e555e2f3165f2fe0 by Terry Jan Reedy in branch 'master': bpo-33975: Avoid small type when running IDLE's htests. (GH-7944) https://github.com/python/cpython/commit/3c8043d8fac4c0d05c0ba9e4e555e2f3165f2fe0 --

[issue33976] Enums don't support nested classes

2018-06-26 Thread Edward Wang
Change by Edward Wang : -- keywords: +patch pull_requests: +7557 stage: -> patch review ___ Python tracker ___ ___

[issue32475] Add ability to query number of buffered bytes available on buffered I/O

2018-06-26 Thread Josh Snyder
Josh Snyder added the comment: I've opened PR #7947 with another approach to this issue. In my use-case, an HTTP client makes a request and uses buffered I/O to parse the response headers. I would like to hand off the response socket to an extension module for use with raw I/O syscalls. The

[issue33976] Enums don't support nested classes

2018-06-26 Thread Edward Wang
New submission from Edward Wang : Methods defined in Enums behave 'normally' but classes defined in Enums get mistaken for regular values and can't be used as classes out of the box. ```python class Outer(Enum): a = 1 b = 2 class Inner(Enum): foo = 10 bar = 11 ```

[issue32475] Add ability to query number of buffered bytes available on buffered I/O

2018-06-26 Thread Josh Snyder
Change by Josh Snyder : -- pull_requests: +7556 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue33956] update vendored expat to 2.2.5

2018-06-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 468f97b4640e69b237a707a0ef9152d1c023f701 by Benjamin Peterson in branch '2.7': [2.7] closes bpo-33956: update vendored expat to 2.2.5 (GH-7925) https://github.com/python/cpython/commit/468f97b4640e69b237a707a0ef9152d1c023f701 --

[issue29514] Add a test case that prevents magic number changes in minor releases

2018-06-26 Thread Ned Deily
Ned Deily added the comment: New changeset f79386f669c22199e3ce99cfba2e5945c73beb47 by Ned Deily in branch '2.7': bpo-29514: Make magic number test work for candidates (GH-7946) https://github.com/python/cpython/commit/f79386f669c22199e3ce99cfba2e5945c73beb47 --

[issue29514] Add a test case that prevents magic number changes in minor releases

2018-06-26 Thread Ned Deily
Ned Deily added the comment: New changeset 57389dbaa897fadc97de78af67d5e555e28be60b by Ned Deily in branch '3.6': bpo-29514: Make magic number test work for candidates (GH-7945) https://github.com/python/cpython/commit/57389dbaa897fadc97de78af67d5e555e28be60b --

[issue29514] Add a test case that prevents magic number changes in minor releases

2018-06-26 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +7555 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29514] Add a test case that prevents magic number changes in minor releases

2018-06-26 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +7554 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29514] Add a test case that prevents magic number changes in minor releases

2018-06-26 Thread Ned Deily
Ned Deily added the comment: New changeset 8511b448a55929f15aa5730c9e30cbb654978ea4 by Ned Deily in branch '3.7': bpo-29514: Make magic number test work for candidates https://github.com/python/cpython/commit/8511b448a55929f15aa5730c9e30cbb654978ea4 --

[issue33975] IDLE: adjust DPI before Tk() for htests.

2018-06-26 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: IDLE: adjust DPI before Tk() -> IDLE: adjust DPI before Tk() for htests. ___ Python tracker ___

[issue33975] IDLE: adjust DPI before Tk()

2018-06-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Because of import caching, subsequent pyshell imports, after the first, do not re-call the Windows API. Apparently, 'root.destroy()' undoes a previous 'root = Tk()', but not a previous pyshell import. Since IDLE unittests always destroy roots, a unittest

[issue33975] IDLE: adjust DPI before Tk()

2018-06-26 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +7553 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue33956] update vendored expat to 2.2.5

2018-06-26 Thread miss-islington
miss-islington added the comment: New changeset 5dc3f23b5fb0b510926012cb3732dae63cddea60 by Miss Islington (bot) in branch '3.6': bpo-33956: update vendored expat to 2.2.5 (GH-7925) https://github.com/python/cpython/commit/5dc3f23b5fb0b510926012cb3732dae63cddea60 --

[issue33956] update vendored expat to 2.2.5

2018-06-26 Thread miss-islington
miss-islington added the comment: New changeset fb17b81fc90cb8f64fcffbada2cadb6736f6d7fd by Miss Islington (bot) in branch '3.7': bpo-33956: update vendored expat to 2.2.5 (GH-7925) https://github.com/python/cpython/commit/fb17b81fc90cb8f64fcffbada2cadb6736f6d7fd -- nosy:

[issue33975] IDLE: adjust DPI before Tk()

2018-06-26 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: IDLE: only adjust DPI before Tk() -> IDLE: adjust DPI before Tk() ___ Python tracker ___ ___

[issue29514] Add a test case that prevents magic number changes in minor releases

2018-06-26 Thread Ned Deily
Ned Deily added the comment: New changeset e7d3cccd8e0da93a15ca80f4b6aac2ca3435fd06 by Ned Deily in branch 'master': bpo-29514: Make magic number test work for candidates https://github.com/python/cpython/commit/e7d3cccd8e0da93a15ca80f4b6aac2ca3435fd06 -- nosy: +ned.deily

[issue33956] update vendored expat to 2.2.5

2018-06-26 Thread Benjamin Peterson
Change by Benjamin Peterson : -- pull_requests: +7552 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33956] update vendored expat to 2.2.5

2018-06-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +7551 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33956] update vendored expat to 2.2.5

2018-06-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +7550 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33956] update vendored expat to 2.2.5

2018-06-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 4e21100fa7bf66e0b32146d3f46ae16afc73fee1 by Benjamin Peterson in branch 'master': bpo-33956: update vendored expat to 2.2.5 (GH-7925) https://github.com/python/cpython/commit/4e21100fa7bf66e0b32146d3f46ae16afc73fee1 --

[issue33975] IDLE: only adjust DPI before Tk()

2018-06-26 Thread Terry J. Reedy
New submission from Terry J. Reedy : #33656 patched PyShell to call SetProcessDpiAwareness on Windows nearly first thing, *at module level*, well before calling tkinter.Tk(). The Microsoft docs warn that making the Windows API call after starting the graphics system may not work as

[issue24137] Force not using _default_root in IDLE

2018-06-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: The net effect of this issue: pyshell.main calls NoDefaultRoot() when running normally, when using a subprocess and testing is not set. It does not call it when in -n mode since that would affect users. idle_test.htest calls NoDefaultRoot()

[issue33973] HTTP request-line parsing splits on Unicode whitespace

2018-06-26 Thread STINNER Victor
STINNER Victor added the comment: isspace() is also true for another non-ASCII character: U+0085 (b'\x85'). >>> ''.join(chr(i) for i in range(256) if chr(i).isspace()) '\t\n\x0b\x0c\r\x1c\x1d\x1e\x1f \x85\xa0' -- ___ Python tracker

[issue33966] test_multiprocessing_spawn.WithProcessesTestPool.test_traceback() leaks 4 handles on Windows

2018-06-26 Thread STINNER Victor
STINNER Victor added the comment: > * dump() indirectly calls reduce_connection() (ex: for SimpleQueue._reader) > of multiprocessing.connection > * reduce_connection() duplicates the pipe handle Sorry, it's reduce_pipe_connection(), not reduce_connection(). > It's unclear to me who is

[issue33917] Fix and document idlelib/idle_test/template.py

2018-06-26 Thread Ned Deily
Ned Deily added the comment: FTR, the problem change was merged/backported after 3.7.0rc1 and 3.6.6rc1 so doko must have been working from a development branch and not a release tag. The original and its fix will first be officially released in 3.7.1 and 3.6.7 so there's really no need for

[issue24567] random.choice IndexError due to double-rounding

2018-06-26 Thread Tim Peters
Tim Peters added the comment: [Victor] > This method [shuffle()] has a weird API. What is > the point of passing a random function, > ... I proposed to deprecate this argument and remove it later. I don't care here. This is a bug report. Making backward-incompatible API changes does

[issue33966] test_multiprocessing_spawn.WithProcessesTestPool.test_traceback() leaks 4 handles on Windows

2018-06-26 Thread STINNER Victor
STINNER Victor added the comment: * Pool._repopulate_pool() creates processes with args=(self._inqueue, ...) * Pool._inqueue is a multiprocessing.queues.SimpleQueue * Process.__init__() of multiprocessing.popen_spawn_win32 calls reduction.dump(process_obj, to_child) which indirectly contains

[issue25007] Add support of copy protocol to zlib compressors and decompressors

2018-06-26 Thread Zackery Spytz
Change by Zackery Spytz : -- nosy: +ZackerySpytz versions: +Python 3.8 -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list

[issue25007] Add support of copy protocol to zlib compressors and decompressors

2018-06-26 Thread Zackery Spytz
Change by Zackery Spytz : -- pull_requests: +7549 stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue33873] False positives when running leak tests with -R 1:1

2018-06-26 Thread STINNER Victor
STINNER Victor added the comment: Pablo Galindo Salgado fixed the bug in master, I backported his fix to 2.7, 3.6 and 3.7 branches. Thanks Pablo! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 2.7, Python 3.6, Python 3.7

[issue33718] Enhance regrtest: meta-ticket for multiple changes

2018-06-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1d55888a78bcefed3723fb7e48df2a75b4f0adb0 by Victor Stinner in branch '3.6': bpo-33873: Backport regrtest from master to 3.7 (GH-7935) (GH-7937) https://github.com/python/cpython/commit/1d55888a78bcefed3723fb7e48df2a75b4f0adb0 --

[issue33873] False positives when running leak tests with -R 1:1

2018-06-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1d55888a78bcefed3723fb7e48df2a75b4f0adb0 by Victor Stinner in branch '3.6': bpo-33873: Backport regrtest from master to 3.7 (GH-7935) (GH-7937) https://github.com/python/cpython/commit/1d55888a78bcefed3723fb7e48df2a75b4f0adb0 --

[issue24567] random.choice IndexError due to double-rounding

2018-06-26 Thread STINNER Victor
STINNER Victor added the comment: Let me see random_double_round.diff. In master: def shuffle(self, x, random=None): """Shuffle list x in place, and return None. Optional argument random is a 0-argument function returning a random float in [0.0, 1.0); if it is

[issue5978] cProfile and profile don't work with pygtk/pyqt and sys.exit(0)

2018-06-26 Thread Andrés Delfino
Change by Andrés Delfino : -- nosy: +adelfino versions: +Python 2.7, Python 3.6, Python 3.7 ___ Python tracker ___ ___

[issue5978] cProfile and profile don't work with pygtk/pyqt and sys.exit(0)

2018-06-26 Thread Andrés Delfino
Change by Andrés Delfino : -- keywords: +patch pull_requests: +7548 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue33929] test_multiprocessing_spawn: WithProcessesTestProcess.test_many_processes() leaks 5 handles on Windows

2018-06-26 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-33966: test_multiprocessing_spawn.WithProcessesTestPool.test_traceback() leaks 4 handles on Windows. -- ___ Python tracker

[issue24567] random.choice IndexError due to double-rounding

2018-06-26 Thread Tim Peters
Tim Peters added the comment: Victor, look at Raymond's patch. In Python 3, `randrange()` and friends already use the all-integer `getrandbits()`. He's changing three other lines, where some variant of `int(random() * someinteger)` is being used in an inner loop for speed. Presumably the

[issue33718] Enhance regrtest: meta-ticket for multiple changes

2018-06-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 5430c14aba319f83b18879575244ba429e8c1d81 by Victor Stinner in branch '2.7': [2.7] bpo-33873: Backport regrtest from master (GH-7936) https://github.com/python/cpython/commit/5430c14aba319f83b18879575244ba429e8c1d81 --

[issue33873] False positives when running leak tests with -R 1:1

2018-06-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 5430c14aba319f83b18879575244ba429e8c1d81 by Victor Stinner in branch '2.7': [2.7] bpo-33873: Backport regrtest from master (GH-7936) https://github.com/python/cpython/commit/5430c14aba319f83b18879575244ba429e8c1d81 --

[issue24567] random.choice IndexError due to double-rounding

2018-06-26 Thread STINNER Victor
STINNER Victor added the comment: The error goes avoid if we stop using floating point number to generate random integers. Can't we drop/deprecate support of RNG only providing getrandom() but not getrandbits()? I'm talking about the master branch. Things are simpler when you only

[issue33873] False positives when running leak tests with -R 1:1

2018-06-26 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +7546 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33718] Enhance regrtest: meta-ticket for multiple changes

2018-06-26 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +7547 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33718] Enhance regrtest: meta-ticket for multiple changes

2018-06-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset d1f9481b7a2d31c40fca1347ef99d819eb656ce7 by Victor Stinner in branch '3.7': bpo-33873: Backport regrtest from master to 3.7 (GH-7935) https://github.com/python/cpython/commit/d1f9481b7a2d31c40fca1347ef99d819eb656ce7 --

[issue33873] False positives when running leak tests with -R 1:1

2018-06-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset d1f9481b7a2d31c40fca1347ef99d819eb656ce7 by Victor Stinner in branch '3.7': bpo-33873: Backport regrtest from master to 3.7 (GH-7935) https://github.com/python/cpython/commit/d1f9481b7a2d31c40fca1347ef99d819eb656ce7 --

[issue33718] Enhance regrtest: meta-ticket for multiple changes

2018-06-26 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +7545 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33873] False positives when running leak tests with -R 1:1

2018-06-26 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +7544 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33974] _stringify handles quoted strings incorrectly

2018-06-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: How did you find this bug? -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka ___ Python tracker ___

[issue33466] Distutils does not support the compilation of Objective-C++ (“.mm”) files

2018-06-26 Thread Ronald Oussoren
Ronald Oussoren added the comment: Eric, Thanks. See the pull request for why this might qualify for a back port: other parts of distutils recognise '.mm' as a valid extension, but '.mm' doesn't work yet because UnixCCompiler doesn't support this yet. On the other hand this is

[issue24567] random.choice IndexError due to double-rounding

2018-06-26 Thread Tim Peters
Tim Peters added the comment: [Mark] > If we do this, can we also persuade Guido to Pronounce that > Python implementations assume IEEE 754 format and semantics > for floating-point? On its own, I don't think a change to force 53-bit precision _on_ 754 boxes would justify that. That's just

[issue33873] False positives when running leak tests with -R 1:1

2018-06-26 Thread STINNER Victor
STINNER Victor added the comment: Since I didn't backport yet the commit 4ffe9c2b251f6e027b26250b7a2618e78d4edd22 (format duration) from master to other branches, I will backport the commit 58ed7307ea0b5c5aa052291ebc3030f314f938d8 (-R fix) manually to other branches with other recent

[issue33718] Enhance regrtest: meta-ticket for multiple changes

2018-06-26 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +7543 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33873] False positives when running leak tests with -R 1:1

2018-06-26 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +7542 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33873] False positives when running leak tests with -R 1:1

2018-06-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +7541 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33873] False positives when running leak tests with -R 1:1

2018-06-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +7540 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33930] Segfault with deep recursion into object().__dir__

2018-06-26 Thread Ronald Oussoren
Ronald Oussoren added the comment: @victor: thanks for confirming my analysis. The trashcan API does fix this issue, although I did have to change "_PyObject_GC_UNTRACK(m);" to "PyObject_GC_UnTrack(m);" as well. I haven't checked yet why that's necessary. --

[issue33973] HTTP request-line parsing splits on Unicode whitespace

2018-06-26 Thread Tim Burke
Change by Tim Burke : -- keywords: +patch pull_requests: +7539 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue27777] cgi.FieldStorage can't parse simple body with Content-Length and no Content-Disposition

2018-06-26 Thread Chris Eykamp
Chris Eykamp added the comment: I don't know if you've read the dialog on the PR (there was also some offline between Ned and myself), but the patch breaks a test when running under a fresh build of Python. I can't reproduce it here without setting up a build system, which I haven't had

[issue33973] HTTP request-line parsing splits on Unicode whitespace

2018-06-26 Thread Tim Burke
New submission from Tim Burke : This causes (admittedly, buggy) clients that would work with a Python 2 server to stop working when the server upgrades to Python 3. To demonstrate, run `python2.7 -m SimpleHTTPServer 8027` in one terminal and `curl -v http://127.0.0.1:8027/你好` in another --

[issue33974] _stringify handles quoted strings incorrectly

2018-06-26 Thread Gauchj
New submission from Gauchj : _stringify escapes special characters so they can be processed by tcl/tk. To that end, two different escaping techniques are implemented: put a backslash in front of every special character or put the entire string in curly braces. However, a string like the

[issue21914] Create unit tests for Turtle guionly

2018-06-26 Thread Lita Cho
Lita Cho added the comment: Feel free. On Tue, Jun 26, 2018, 3:21 AM RAJALAKSHMI V wrote: > > RAJALAKSHMI V added the comment: > > Hey, I am a new contributor here. Could I take this issue up? > > -- > nosy: +RAJALAKSHMI V > > ___ > Python

[issue33930] Segfault with deep recursion into object().__dir__

2018-06-26 Thread Alistair Buxton
Alistair Buxton added the comment: I found this while chatting on IRC about the implementation details of objects - specifically, since objects have a dict of attributes, and dict subclasses object, it seems like every dict will have another dict inside it. (Eventually someone explained

[issue27777] cgi.FieldStorage can't parse simple body with Content-Length and no Content-Disposition

2018-06-26 Thread Bert JW Regeer
Bert JW Regeer added the comment: I'll take a look and see if I can get the other fixes from WebOb and add them to a patch, and create a follow-up PR. If I can stop carrying a monkey patch for the standard library I am all for it! Thanks for running with this! -- nosy: +Bert JW

[issue33871] Possible integer overflow in iov_setup()

2018-06-26 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +7538 stage: -> patch review ___ Python tracker ___ ___

[issue24567] random.choice IndexError due to double-rounding

2018-06-26 Thread Tim Peters
Tim Peters added the comment: Mark, ya, I agree it's most prudent to let sleeping dogs lie. In the one "real" complaint we got (issue 24546) the cause was never determined - but double rounding was ruled out in that specific case, and no _plausible_ cause was identified (short of transient

[issue33962] IDLE: use ttk.spinbox

2018-06-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: ttk.Spinbox inherits from ttk.Entry. My option list left out the options for Entry, which is one of the ttk widget not in the doc. The additional entry options include exportselection, justify, show, state, textvariable, and width.

[issue17496] OS X test for Tk availability in runtktests.py doesn't work

2018-06-26 Thread Mark Roseman
Mark Roseman added the comment: Just to note, this remains a PITA. To run gui tests on macOS from a terminal window seems to require commenting out the SetFrontProcess() call. A better replacement is needed as noted in the previous discussion, as well this call was deprecated in OS X 10.9

[issue33962] IDLE: use ttk.spinbox

2018-06-26 Thread Mark Roseman
Mark Roseman added the comment: For now, using a (likely very minimal) subset of commands/options common to both classic and ttk spinbox versions in IDLE sounds good. I was originally thinking stick with "-textvariable" for setting (which works on both) but I like your idea of adding "set"

[issue33968] os.makedirs and empty string

2018-06-26 Thread Emily Morehouse
Emily Morehouse added the comment: I'll defer to Serhiy's os.path expertise, but from what I know -- os.dirname is essentially a helper function for returning the first item of split. What I'm gathering is that you're looking for a more advanced way of parsing a file path -- say

[issue33968] os.makedirs and empty string

2018-06-26 Thread Carl Andersson
Carl Andersson added the comment: I can see the point in keeping the behaviour close to the OS-level commands, but the discrepancy between os.mkdir (or os.makedirs) and os.path.dirname is not resolved. I still think that >>> os.makedirs(os.path.dirname(filename), exist_ok=True) should be

[issue33466] Distutils does not support the compilation of Objective-C++ (“.mm”) files

2018-06-26 Thread Éric Araujo
Éric Araujo added the comment: In short: - Approve the PR (the bots will remove label «core review needed» and add «waiting for merge» - Do not add «backport» labels as this is a new feature - Push the squash and merge button - edit the commit message first line to have GH-123 instead of

[issue33968] os.makedirs and empty string

2018-06-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Concur with Emily. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list

[issue33972] AttributeError in email.message.iter_attachments()

2018-06-26 Thread Sven Krohlas
New submission from Sven Krohlas : Hello everyone, Today I stumbled over unexpected behaviour when parsing emails with Python 3.5. mail is of type: Traceback (most recent call last): File "XXX", line YYY, in ZZZ for attachment in mail.iter_attachments(): File

[issue33968] os.makedirs and empty string

2018-06-26 Thread Emily Morehouse
Emily Morehouse added the comment: This is an interesting behavior to note. I think the current behavior makes the most sense, as it corresponds to the OS-level errors that you get from running the same operations. Interestingly, at least on Unix-based file systems, we get different error

[issue33873] False positives when running leak tests with -R 1:1

2018-06-26 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 58ed7307ea0b5c5aa052291ebc3030f314f938d8 by Pablo Galindo in branch 'master': bpo-33873: Fix bug in `runtest.py` and add checks for invalid `-R` parameters (GH-7735)

[issue33965] [Windows WSL] Fatal Python error: _Py_InitializeMainInterpreter: can't initialize time, after year 2038

2018-06-26 Thread Steve Dower
Steve Dower added the comment: Also please include your sys.version. It is possible to launch Windows applications from WSL, which means we need to know if you ran the Linux version or the Windows version (though it sounds like it was a Linux version which means MS_WINDOWS is not defined).

[issue33971] os.mknod is subject to "umask"

2018-06-26 Thread James Stevens
New submission from James Stevens : As per the underlying "libc" call, the node created with "mknod" is subjected to the user's current umask setting. This is not made clear in the Python documentation, but the "libc" documentation makes this clear (see attached). -- assignee:

[issue33970] bugs.python.org silently refuses registrations

2018-06-26 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Thanks for the report. As you have found out, the issue tracker for the bug tracker itself is not here. It seems to be a problem in upstream roundup. If you can help with fixing this issue, please see the discussion in

[issue33970] bugs.python.org silently refuses registrations

2018-06-26 Thread James Stevens
New submission from James Stevens : bugs.python.org silently refuses registration if the user's "homepage" does not match some undisclosed URL validation test. The fact of the validation failure of the "homepage" is not disclosed at any time, including both the initial registration and at

[issue33969] "copytree" refuses to copy to a mount point

2018-06-26 Thread James Stevens
New submission from James Stevens : Even if the mount-point directory is empty, "copytree" refuses to copy to a it becuase it will not perform a copy if the destination directory already exists - although it will accept any of the parents of destination existing, or not. Therefore,

[issue33968] os.makedirs and empty string

2018-06-26 Thread Carl Andersson
New submission from Carl Andersson : os.makedirs does not handle the empty string the same way as the os.path.XX functions does. This is (to me) unexpected behaviour, since calls like `os.makedirs(os.path.dirname(filename), exist_ok=True)` raises an exception if `filename` does not contain

[issue33967] functools.singledispatch: Misleading exception when calling without arguments

2018-06-26 Thread Walter Dörwald
New submission from Walter Dörwald : When I call a function decorated with functools.singledispatch without an argument, I get the following: $ python Python 3.6.5 (default, Jun 17 2018, 12:13:06) [GCC 4.2.1 Compatible Apple LLVM 9.1.0 (clang-902.0.39.2)] on darwin Type "help", "copyright",

[issue33966] test_multiprocessing_spawn.WithProcessesTestPool.test_traceback() leaks 4 handles on Windows

2018-06-26 Thread STINNER Victor
New submission from STINNER Victor : Using my PR 7827, the following command shows a leak of 4 Windows handles per run: python -m test -R 3:3 test_multiprocessing_spawn -v -m test.test_multiprocessing_spawn.WithProcessesTestPool.test_traceback See also bpo-33929: test_multiprocessing_spawn:

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

2018-06-26 Thread desbma
Change by desbma : -- nosy: -desbma ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21914] Create unit tests for Turtle guionly

2018-06-26 Thread RAJALAKSHMI V
RAJALAKSHMI V added the comment: Hey, I am a new contributor here. Could I take this issue up? -- nosy: +RAJALAKSHMI V ___ Python tracker ___

[issue33957] use standard term than generic wording

2018-06-26 Thread miss-islington
miss-islington added the comment: New changeset 829b7669f070a6228bba5c7a10a05b12891a95fd by Miss Islington (bot) in branch '3.7': bpo-33957: Doc: Use better wording (GH-7912) https://github.com/python/cpython/commit/829b7669f070a6228bba5c7a10a05b12891a95fd -- nosy: +miss-islington

[issue33957] use standard term than generic wording

2018-06-26 Thread INADA Naoki
Change by INADA Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.6 ___ Python tracker ___

[issue33957] use standard term than generic wording

2018-06-26 Thread miss-islington
Change by miss-islington : -- keywords: +patch pull_requests: +7537 stage: -> patch review ___ Python tracker ___ ___

[issue33958] Unused variable in pure embedding example

2018-06-26 Thread Philip Kendall
Philip Kendall added the comment: Thanks thatiparthy :-) -- title: Unused variable in pur embedding example -> Unused variable in pure embedding example ___ Python tracker

[issue24567] random.choice IndexError due to double-rounding

2018-06-26 Thread Mark Dickinson
Mark Dickinson added the comment: Some relevant notes from Vincent Lefèvre here: http://www.vinc17.net/research/extended.en.html -- ___ Python tracker ___

[issue33930] Segfault with deep recursion into object().__dir__

2018-06-26 Thread STINNER Victor
STINNER Victor added the comment: C traceback in gdb: Program received signal SIGSEGV, Segmentation fault. 0x004812a8 in meth_dealloc ( m=) at Objects/methodobject.c:86 86 { (gdb) where #0 0x004812a8 in meth_dealloc ( m=) at Objects/methodobject.c:86 #1

[issue33965] [Windows WSL] Fatal Python error: _Py_InitializeMainInterpreter: can't initialize time, after year 2038

2018-06-26 Thread STINNER Victor
STINNER Victor added the comment: Petter S: * What is your Windows version? * Which operating system are you running on WSL? Name and version? * In WSL: can you copy/paste the output of "uname -a"? What is your compiler version? Are you compiling in 32-bit or 64-bit mode? Maybe the

[issue33965] [Windows WSL] Fatal Python error: _Py_InitializeMainInterpreter: can't initialize time, after year 2038

2018-06-26 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +Petter S ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25155] Windows: datetime.datetime.now() raises an OverflowError for date after year 2038

2018-06-26 Thread STINNER Victor
STINNER Victor added the comment: I created bpo-33965: [Windows WSL] Fatal Python error: _Py_InitializeMainInterpreter: can't initialize time, after year 2038. -- ___ Python tracker

[issue33965] [Windows WSL] Fatal Python error: _Py_InitializeMainInterpreter: can't initialize time, after year 2038

2018-06-26 Thread STINNER Victor
New submission from STINNER Victor : Petter S commented the closed bpo-25155, so I open a new issue. Copy of messages starting at https://bugs.python.org/issue25155#msg320431: msg320431 - (view) Author: Petter S (Petter S) * Date: 2018-06-25 17:52 I get this error when starting the

  1   2   >