[issue34767] Optimize asyncio.Lock

2019-06-04 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +13713 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13834 ___ Python tracker ___

[issue36373] Deprecate explicit loop parameter in all public asyncio APIs

2019-06-04 Thread miss-islington
miss-islington added the comment: New changeset 6d64a8f49eb321116f585c4b036c81bb976d2d5c by Miss Islington (bot) (Emmanuel Arias) in branch 'master': bpo-36373: Deprecate explicit loop parameter in all public asyncio APIs [streams] (GH-13671)

[issue36373] Deprecate explicit loop parameter in all public asyncio APIs

2019-06-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +13712 pull_request: https://github.com/python/cpython/pull/13833 ___ Python tracker ___

[issue37158] Speed-up statistics.fmean()

2019-06-04 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +13711 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13832 ___ Python tracker

[issue37159] Use copy_file_range() in shutil.copyfile() (server-side copy)

2019-06-04 Thread Giampaolo Rodola'
Change by Giampaolo Rodola' : -- title: Have shutil.copyfile() use copy_file_range() -> Use copy_file_range() in shutil.copyfile() (server-side copy) ___ Python tracker ___

[issue37159] Have shutil.copyfile() use copy_file_range()

2019-06-04 Thread Giampaolo Rodola'
Change by Giampaolo Rodola' : -- nosy: +StyXman, desbma, facundobatista, martin.panter, ncoghlan, neologix, pablogsal, petr.viktorin, vstinner ___ Python tracker ___

[issue26826] Expose new copy_file_range() syscall in os module.

2019-06-04 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: > Please open a new issue to discuss how it can used in shutil ;-) Use copy_file_range() in shutil.copyfile(): https://bugs.python.org/issue37159 -- ___ Python tracker

[issue37159] Have shutil.copyfile() use copy_file_range()

2019-06-04 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' : This is a follow up of issue33639 (zero-copy via sendfile()) and issue26828 (os.copy_file_range()). On [Linux 4.5 / glib 2.27] shutil.copyfile() will use os.copy_file_range() instead of os.sendfile(). According to my benchmarks performances are the

[issue37158] Speed-up statistics.fmean()

2019-06-04 Thread Raymond Hettinger
New submission from Raymond Hettinger : fmean() can be sped-up by converting count() from a function to a generator and by using enumerate() to do the counting. -- Baseline --- $ ./python.exe -m timeit -r11 -s 'from statistics import fmean' -s 'data=list(map(float, range(1000)))'

[issue36624] cleanup the stdlib and tests with regard to sys.platform usage

2019-06-04 Thread Tal Einat
Tal Einat added the comment: Michael, your willingness to help, and the work on this issue and PR, are greatly appreciated! Reading through the discussion here again, and the one referenced by Ned, I tend to agree with the point that having *yet another* spelling for OS checking is perhaps

[issue21872] LZMA library sometimes fails to decompress a file

2019-06-04 Thread Ma Lin
Ma Lin added the comment: fix-bug.diff fixes this bug, I will submit a PR after thoroughly understanding the problem. -- keywords: +patch Added file: https://bugs.python.org/file48391/fix-bug.diff ___ Python tracker

[issue37157] shutil: add reflink=False to file copy functions to control clone/CoW copies (use copy_file_range)

2019-06-04 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: I'm attaching an initial PoC using FICLONE on Linux and clonefile(3) on OSX. It is also possible to support Windows but it requires a ReFS partition to test against which I currently don't have. I opted for exposing reflink() as a separate function,

[issue37134] Use PEP570 syntax in the documentation

2019-06-04 Thread Grant Jenks
Grant Jenks added the comment: Pablo, I never intended disrespect toward you personally. And I am sorry my words came across that way. I would rather the feature be one of Python's more esoteric qualities. I think Carol has described the most reasonable way forward. And in particular, I

[issue35763] IDLE calltips: make positional note less obtrusive

2019-06-04 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue37089] `import Lib.os` works on windows (but shouldn't)

2019-06-04 Thread Eryk Sun
Eryk Sun added the comment: sys.prefix is usually argv0_path, but in a virtual environment argv0_path is set from "home" in pyvenv.cfg in order to find the standard library, and, if the site module is imported, sys.prefix is set to the virtual environment directory. Since for Windows

[issue35763] IDLE calltips: make positional note less obtrusive

2019-06-04 Thread miss-islington
miss-islington added the comment: New changeset 3d75bd15ac82575967db367c517d7e6e703a6de3 by Miss Islington (bot) in branch '3.7': bpo-35763: Make IDLE calltip note about '/' less obtrusive (GH-13791) https://github.com/python/cpython/commit/3d75bd15ac82575967db367c517d7e6e703a6de3

[issue35763] IDLE calltips: make positional note less obtrusive

2019-06-04 Thread miss-islington
miss-islington added the comment: New changeset 39346ff60ac14bb83521c7e4f87304d0ad6478c2 by Miss Islington (bot) in branch '3.8': bpo-35763: Make IDLE calltip note about '/' less obtrusive (GH-13791) https://github.com/python/cpython/commit/39346ff60ac14bb83521c7e4f87304d0ad6478c2

[issue35763] IDLE calltips: make positional note less obtrusive

2019-06-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 949fe976d5c62ae63ed505ecf729f815d0baccfc by Terry Jan Reedy in branch 'master': bpo-35763: Make IDLE calltip note about '/' less obtrusive (GH-13791) https://github.com/python/cpython/commit/949fe976d5c62ae63ed505ecf729f815d0baccfc

[issue35763] IDLE calltips: make positional note less obtrusive

2019-06-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +13709 pull_request: https://github.com/python/cpython/pull/13830 ___ Python tracker ___

[issue35763] IDLE calltips: make positional note less obtrusive

2019-06-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +13710 pull_request: https://github.com/python/cpython/pull/13831 ___ Python tracker ___

[issue36827] Overriding __new__ method with itself changes behaviour of the class

2019-06-04 Thread Vedran Čačić
Vedran Čačić added the comment: The point is, constructing via __new__ and initializing via __init__ are two mechanisms that aren't really orthogonal, and various heuristics are trying to guess whether the arguments you call your class with are meant for __new__ or for __init__. [Usually,

[issue36839] Support the buffer protocol in code objects

2019-06-04 Thread Inada Naoki
Inada Naoki added the comment: I'm sorry, I thought "fantasy" was good metaphor. I just meant "the estimation seems too optimistic and rough. discussion should not based on it". -- ___ Python tracker

[issue37150] Do not allow to pass FileType class object instead of instance in add_argument

2019-06-04 Thread Josh Rosenberg
Josh Rosenberg added the comment: Ah, right. It doesn't actually validate the mode string (it just stores it for when open is called, assuming open will validate it). So yeah, it silently accepts any string, not just valid mode strings. Not a contractual guarantee or anything, just how

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

2019-06-04 Thread Laurie Opperman
Change by Laurie Opperman : -- versions: +Python 3.9 -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35763] IDLE calltips: make positional note less obtrusive

2019-06-04 Thread Terry J. Reedy
Change by Terry J. Reedy : -- type: enhancement -> behavior versions: +Python 3.9 ___ Python tracker ___ ___ Python-bugs-list

[issue37150] Do not allow to pass FileType class object instead of instance in add_argument

2019-06-04 Thread Demid
Demid added the comment: If you will run `python test.py hello.txt, where test.py is: import argparse parser = argparse.ArgumentParser() parser.add_argument('echo', type=argparse.FileType) args = parser.parse_args() print(args.echo) You will receive: FileType('hello.txt') I think that can

[issue37150] Do not allow to pass FileType class object instead of instance in add_argument

2019-06-04 Thread Michele Angrisano
Michele Angrisano added the comment: Yes, I meant that. Thanks! :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37134] Use PEP570 syntax in the documentation

2019-06-04 Thread STINNER Victor
STINNER Victor added the comment: Tim Peters: "I haven't looked at anything in this PR, so just popping in to confirm that the first time I saw stuff like: len(obj, /) in the docs I had no idea at all what it was trying to say. I thought it was a typo. (...)" Carol Willing: "I confess that

[issue37134] Use PEP570 syntax in the documentation

2019-06-04 Thread Julien Palard
Julien Palard added the comment: FWIW here's my feedback (as a Python teacher and doc guy): I find that newcomers are good to ignore what they don't understand, so a newcomer exposed to "foo(a, b, /)" will no run away nor cry, he will just ignore the slash and understand that "foo takes two

[issue37134] [EASY] Use PEP570 syntax in the documentation

2019-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > FWIW, there is precedent. We have type annotations in the language but don't > use them throughout the docs. Although there is some distance between both cases, I think this is an extremely good point to take into account that I have not thought

[issue37134] Use PEP570 syntax in the documentation

2019-06-04 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- title: [EASY] Use PEP570 syntax in the documentation -> Use PEP570 syntax in the documentation ___ Python tracker ___

[issue37134] Use PEP570 syntax in the documentation

2019-06-04 Thread STINNER Victor
Change by STINNER Victor : -- keywords: -easy title: [EASY] Use PEP570 syntax in the documentation -> Use PEP570 syntax in the documentation ___ Python tracker ___

[issue15474] Differentiate decorator and decorator factory in docs

2019-06-04 Thread Andrés Delfino
Andrés Delfino added the comment: Great! I'll definitely give it a look. I prefer not to make a PR until everything is in its place. You can check the status though: https://github.com/andresdelfino/cpython/tree/decorators-howto Fred was very helpful with his insight :) --

[issue37134] [EASY] Use PEP570 syntax in the documentation

2019-06-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: Language features don't have rights. People do. :-) FWIW, there is precedent. We have type annotations in the language but don't use them throughout the docs. In the end, all that matters is usability. If a notion fails a usability test, then we

[issue37157] shutil: add reflink=False to file copy functions to control clone/CoW copies (use copy_file_range)

2019-06-04 Thread STINNER Victor
STINNER Victor added the comment: Random notes. Extract of Linux manual page of "cp": --reflink[=WHEN] control clone/CoW copies. See below When --reflink[=always] is specified, perform a lightweight copy, where the data blocks are copied only when

[issue37134] [EASY] Use PEP570 syntax in the documentation

2019-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > If that premise turns out to be false, we should think seriously about > whether this makes the docs less approachable for everyday users. We have not done such a thing for any other feature of the language. I think that since this is now a part

[issue26826] Expose new copy_file_range() syscall in os module.

2019-06-04 Thread STINNER Victor
STINNER Victor added the comment: I created bpo-37157: "shutil: add reflink=False to file copy functions to control clone/CoW copies (use copy_file_range)". -- The new os.copy_file_range() should be documented at: https://docs.python.org/dev/whatsnew/3.8.html#os --

[issue37157] shutil: add reflink=False to file copy functions to control clone/CoW copies (use copy_file_range)

2019-06-04 Thread STINNER Victor
New submission from STINNER Victor : bpo-26826 added a new os.copy_file_range() function: https://docs.python.org/dev/library/os.html#os.copy_file_range As os.sendfile(), this new Linux syscall avoids memory copies between kernel space and user space. It matters for performance, especially

[issue37134] [EASY] Use PEP570 syntax in the documentation

2019-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Pablo, Sure thing. I believe that a Sphinx extension (possibly existing > sphinx-tabs as suggested by @bskinn in the Steering Council issue or one we > develop/find) could give us both a "technically accurate" view and > "simplified" view. I wasn't

[issue37134] [EASY] Use PEP570 syntax in the documentation

2019-06-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: I don't think inclusion in 3.9 should be automatic. The purpose of the deferment is to evaluate the premise, "the only reason people have found this notation confusing was that it wasn't yet valid syntax available for use in their own code." If that

[issue37134] [EASY] Use PEP570 syntax in the documentation

2019-06-04 Thread STINNER Victor
STINNER Victor added the comment: Python has many parameter types: positional-only, positional-or-keyword, keyword only, etc. Even if we don't add "/", it would be nice to have hints when we put the mouse cursor on a function parameter. Something like: function: demo(arg1, *, arg2,

[issue15474] Differentiate decorator and decorator factory in docs

2019-06-04 Thread Ezio Melotti
Ezio Melotti added the comment: If you want some early feedback I believe you can already create a PR and mark it as work-in-progress/don't-merge. If you need some material you can find the slides of a talk about decorators that I did at

[issue36889] Merge StreamWriter and StreamReader into just asyncio.Stream

2019-06-04 Thread STINNER Victor
STINNER Victor added the comment: Can this issue be closed now? -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list

[issue34282] Enum._convert shadows members named _convert

2019-06-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset 19a1e1eb86115db66c1faae5927f87e3a12692fc by Victor Stinner (Zachary Ware) in branch 'master': bpo-34282: Remove deprecated enum _convert method (GH-13823) https://github.com/python/cpython/commit/19a1e1eb86115db66c1faae5927f87e3a12692fc

[issue37134] [EASY] Use PEP570 syntax in the documentation

2019-06-04 Thread Carol Willing
Carol Willing added the comment: > Could you extend your thoughts regarding this concern that I have with > respect of not including the trailing / in 3.8 but doing it in 3.9: Pablo, Sure thing. I believe that a Sphinx extension (possibly existing sphinx-tabs as suggested by @bskinn in the

[issue37130] pathlib.with_name() doesn't like unnamed files.

2019-06-04 Thread N.P. Khelili
N.P. Khelili added the comment: in the definition of the name property https://github.com/python/cpython/blob/9ab2fb1c68a75115da92d51b8c40b74f60f88561/Lib/pathlib.py#L792 : if len(parts) == (1 if (self._drv or self._root) else 0): return '' could also become if self.parent == self

[issue37150] Do not allow to pass FileType class object instead of instance in add_argument

2019-06-04 Thread Josh Rosenberg
Josh Rosenberg added the comment: The docs specify what argparse.FileType() does via the default parameters: https://docs.python.org/3/library/argparse.html#argparse.FileType If you mean what does it do when you fail to call it at all (passing type=argparse.FileType), the answer is the same

[issue37134] [EASY] Use PEP570 syntax in the documentation

2019-06-04 Thread Brian Skinn
Change by Brian Skinn : -- nosy: +bskinn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34282] Enum._convert shadows members named _convert

2019-06-04 Thread Zachary Ware
Change by Zachary Ware : -- pull_requests: +13708 pull_request: https://github.com/python/cpython/pull/13823 ___ Python tracker ___

[issue37156] Fix libssl DLL tag in Tools/msi project

2019-06-04 Thread Steve Dower
New submission from Steve Dower : Mostly a note to self to fix the tag. Right now the x64 build gets an extra suffix, which is incorrect and causes installer builds to fail. -- assignee: steve.dower components: Windows messages: 344638 nosy: paul.moore, steve.dower, tim.golden,

[issue37152] Add AF_LOCAL alias for AF_UNIX

2019-06-04 Thread Christian Heimes
Christian Heimes added the comment: The socket type is known as AF_UNIX, AF_LOCAL, Unix domain socket, and IPC (inter process communication) socket. The man page unix(7) http://man7.org/linux/man-pages/man7/unix.7.html uses three of those four terms to explain the socket type: The

[issue35047] Better error messages in unittest.mock

2019-06-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset 001d63cefaa9d84d6d59aa9db8bac66040c8f0ee by Victor Stinner (Petter Strandmark) in branch 'master': bpo-35047: Update whatsnew/3.8 for better mock error message (GH-13746)

[issue37150] Do not allow to pass FileType class object instead of instance in add_argument

2019-06-04 Thread Michele Angrisano
Michele Angrisano added the comment: Reading the examples in the doc, it's clear the behavior when FileType takes an argument. What's the behavior of FileType when is called without any argument? -- nosy: +mangrisano ___ Python tracker

[issue37145] collections.abc.MappingView mixins rely on undocumented _mapping

2019-06-04 Thread Geoffrey Sneddon
Geoffrey Sneddon added the comment: Like, where in the documentation can I learn that MappingView's initializer takes an argument "mapping"? -- ___ Python tracker ___

[issue37145] collections.abc.MappingView mixins rely on undocumented _mapping

2019-06-04 Thread Geoffrey Sneddon
Geoffrey Sneddon added the comment: You've missed my point: the arguments that MappingView.__init__ takes are undocumented. Nowhere mentions class MappingView(mapping), as I would expect from how initializers are documented elsewhere. -- ___

[issue36964] `python3 -m venv NAME`: virtualenv is not portable

2019-06-04 Thread Marco Sulla
Marco Sulla added the comment: Furthermore, if you destroy an old virtual env and recreate it with the new method, it continues to work as before, since VIRTUAL_ENV points to the same folder. We don't force to change the code if they continues to use the virtual environments as now.

[issue36964] `python3 -m venv NAME`: virtualenv is not portable

2019-06-04 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37089] `import Lib.os` works on windows (but shouldn't)

2019-06-04 Thread Guido van Rossum
Guido van Rossum added the comment: I doubt it's meant as a feature. I don't recall anything about it. I suspect it's got to do with limitations of the Windows installer (at the time). Maybe there are other things that are siblings of "Lib" that must be importable, e.g. DLLs? I recommend

[issue26826] Expose new copy_file_range() syscall in os module.

2019-06-04 Thread STINNER Victor
STINNER Victor added the comment: Please open a new issue to discuss how it can used in shutil ;-) -- ___ Python tracker ___ ___

[issue36964] `python3 -m venv NAME`: virtualenv is not portable

2019-06-04 Thread Marco Sulla
Marco Sulla added the comment: The previous post was for Laurie Opperman "upset people with requiring everyone to update their code" I don't know why they have to be upset. Until now they can't move the folder. They want to move the folder? They have to change their code. Now they have no

[issue37153] test_venv: test_multiprocessing() hangs randomly on x86 Windows7 3.x

2019-06-04 Thread STINNER Victor
STINNER Victor added the comment: I hope that my change will prevent the random failure. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue37153] test_venv: test_multiprocessing() hangs randomly on x86 Windows7 3.x

2019-06-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset 5f8443eec9d54e1f74b69aa547e6810da6afa90b by Victor Stinner (Miss Islington (bot)) in branch '3.7': bpo-37153: test_venv.test_mutiprocessing() calls pool.terminate() (GH-13816) (GH-13819)

[issue36964] `python3 -m venv NAME`: virtualenv is not portable

2019-06-04 Thread Marco Sulla
Marco Sulla added the comment: Well, I repeat, not with #!/usr/bin/env python3 -- ___ Python tracker ___ ___ Python-bugs-list

[issue37140] ctypes change made clang fail to build

2019-06-04 Thread Paul Monson
Paul Monson added the comment: I added a unittest to the PR that illustrates the problem. It doesn't pass yet. -- ___ Python tracker ___

[issue36964] `python3 -m venv NAME`: virtualenv is not portable

2019-06-04 Thread Brett Cannon
Brett Cannon added the comment: "if you coded bad and it doesn't work, it's your fault." I disagree. Your request changes what VIRTUAL_ENV gets set to, correct? Changing it suddenly for users doesn't mean their code was bad, it means we changed something on them. Now we can do that with a

[issue36742] urlsplit doesn't accept a NFKD hostname with a port number

2019-06-04 Thread Ned Deily
Ned Deily added the comment: New changeset fd1771dbdd28709716bd531580c40ae5ed814468 by Ned Deily (Miss Islington (bot)) in branch '3.6': bpo-36742: Corrects fix to handle decomposition in usernames (GH-13812) (GH-13814)

[issue36839] Support the buffer protocol in code objects

2019-06-04 Thread Brett Cannon
Brett Cannon added the comment: Let's please keep this respectful. Saying people are basing things "on fantasy" or that "people need to develop reading skills" is not helpful. -- ___ Python tracker

[issue37149] link to official documentation tkinter failed !!!

2019-06-04 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +gpolo, serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37134] [EASY] Use PEP570 syntax in the documentation

2019-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Thank you Carol for your comment! Regarding your proposal, I find it it attractive as a compromise in order to make more gentle the introduction of the feature to users. I really appreciate the effort to balance all the different aspects and

[issue30835] AttributeError when parsing multipart email with invalid non-decodable Content-Transfer-Encoding

2019-06-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +13706 pull_request: https://github.com/python/cpython/pull/13820 ___ Python tracker ___

[issue30835] AttributeError when parsing multipart email with invalid non-decodable Content-Transfer-Encoding

2019-06-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +13707 pull_request: https://github.com/python/cpython/pull/13821 ___ Python tracker ___

[issue30835] AttributeError when parsing multipart email with invalid non-decodable Content-Transfer-Encoding

2019-06-04 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset aa79707262f893428665ef45b5e879129abca4aa by Barry Warsaw (Abhilash Raj) in branch 'master': bpo-30835: email: Fix AttributeError when parsing invalid CTE (GH-13598)

[issue37145] collections.abc.MappingView mixins rely on undocumented _mapping

2019-06-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: Hit too early. In Python, the norm is that the class name is documented. When you call the class, the __init__() method gets called automatically (as documented in the language reference and in the tutorial). For example: >>> class A:

[issue37134] [EASY] Use PEP570 syntax in the documentation

2019-06-04 Thread Carol Willing
Carol Willing added the comment: I echo Pablo's comment about thoughtful discourse as this is discussed. For library maintainers that are writing APIs that involve workflows across multiple projects maintained by different people, better information and documentation is very important. We

[issue37153] test_venv: test_multiprocessing() hangs randomly on x86 Windows7 3.x

2019-06-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +13705 pull_request: https://github.com/python/cpython/pull/13819 ___ Python tracker ___

[issue37145] collections.abc.MappingView mixins rely on undocumented _mapping

2019-06-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Then I guess what I consider a bug is "__init__ is undocumented". No, this just how Python works. -- ___ Python tracker ___

[issue37144] tarfile.open: improper handling of path-like object

2019-06-04 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This was documented in c45cd167d403d7d98078d5fc4a37b16195dc7a35 but it seems a test for opening gzip file with 'w|gz' mode as in the original report was missing. -- nosy: +lars.gustaebel, serhiy.storchaka, xtreak versions: +Python 3.8

[issue35805] email package folds msg-id identifiers using RFC2047 encoded words where it must not

2019-06-04 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset 46d88a113142b26c01c95c93846a89318ba87ffc by Barry Warsaw (Abhilash Raj) in branch 'master': bpo-35805: Add parser for Message-ID email header. (GH-13397) https://github.com/python/cpython/commit/46d88a113142b26c01c95c93846a89318ba87ffc

[issue37150] Do not allow to pass FileType class object instead of instance in add_argument

2019-06-04 Thread paul j3
paul j3 added the comment: I don't see an easy way around this. FileType is a class, and thus is a callable. add_argument checks that the 'type' parameter is a callable (or a string in the registry). Otherwise it gives the programmer a lot of freedom regarding this parameter. --

[issue36402] test_threading: test_threads_join_2() failed with "Fatal Python error: Py_EndInterpreter: not the last thread" on AMD64 FreeBSD CURRENT Shared 3.x

2019-06-04 Thread STINNER Victor
STINNER Victor added the comment: In the same build: https://buildbot.python.org/all/#builders/168/builds/1154 0:28:57 load avg: 12.93 [208/423/1] test_threading crashed (Exit code 1) -- running: test_lib2to3 (7 min 9 sec), test_multiprocessing_spawn (1 min 36 sec) Timeout (0:25:00)! Thread

[issue37155] test_asyncio: test_stdin_broken_pipe() failed on AMD64 FreeBSD CURRENT Shared 3.x

2019-06-04 Thread STINNER Victor
New submission from STINNER Victor : See also bpo-33531 and bpo-30382. AMD64 FreeBSD CURRENT Shared 3.x: https://buildbot.python.org/all/#/builders/168/builds/1154 == FAIL: test_stdin_broken_pipe

[issue36402] test_threading: test_threads_join_2() failed with "Fatal Python error: Py_EndInterpreter: not the last thread" on AMD64 FreeBSD CURRENT Shared 3.x

2019-06-04 Thread STINNER Victor
STINNER Victor added the comment: New failure: AMD64 FreeBSD CURRENT Shared 3.x: https://buildbot.python.org/all/#/builders/168/builds/1154 ... test_thread_leak (test.test_threading.PyRLockTests) ... ok test_timeout (test.test_threading.PyRLockTests) ... ok test_try_acquire

[issue37134] [EASY] Use PEP570 syntax in the documentation

2019-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Thank you, everyone, for expressing clearly your different opinions and concerns. Without disregarding any of the arguments so far I want to make some further clarifications on some points and why I still think this is important. > FWIW, I would

[issue36894] test_multiprocessing_spawn regression on Windows

2019-06-04 Thread Łukasz Langa
Łukasz Langa added the comment: Can this be closed? -- nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue33725] Python crashes on macOS after fork with no exec

2019-06-04 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Jun 4, 2019, at 08:11, STINNER Victor wrote: > Ned Deily: >> No, it has *always* been unsafe. What's new as of 10.13/14 is that macOS >> tries much harder at runtime to detect such cases and more predictably cause >> an error rather than letter than let

[issue37154] test_utf8_mode: test_env_var() fails on AMD64 Fedora Rawhide Clang Installed 3.7

2019-06-04 Thread STINNER Victor
STINNER Victor added the comment: Related failure on "AMD64 Fedora Rawhide Clang Installed 2.7": https://buildbot.python.org/all/#/builders/186/builds/23 ERROR: test_setlocale_unicode (test.test_locale.TestMiscellaneous) --

[issue37153] test_venv: test_multiprocessing() hangs randomly on x86 Windows7 3.x

2019-06-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset bc6469f79ca13217b784fb47da7ec83484a3debe by Victor Stinner in branch 'master': bpo-37153: test_venv.test_mutiprocessing() calls pool.terminate() (GH-13816) https://github.com/python/cpython/commit/bc6469f79ca13217b784fb47da7ec83484a3debe

[issue37154] test_utf8_mode: test_env_var() fails on AMD64 Fedora Rawhide Clang Installed 3.7

2019-06-04 Thread STINNER Victor
STINNER Victor added the comment: glibc-all-langpacks was already installed, but glibc-langpack-en was not installed. I installed glibc-langpack-en: it worked around the issue. -- ___ Python tracker

[issue37154] test_utf8_mode: test_env_var() fails on AMD64 Fedora Rawhide Clang Installed 3.7

2019-06-04 Thread STINNER Victor
STINNER Victor added the comment: It seems like this buildbot has no locale, maybe they have been removed: vstinner@python-builder-rawhide$ locale -a locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or

[issue37154] test_utf8_mode: test_env_var() fails on AMD64 Fedora Rawhide Clang Installed 3.7

2019-06-04 Thread STINNER Victor
New submission from STINNER Victor : AMD64 Fedora Rawhide Clang Installed 3.7: https://buildbot.python.org/all/#/builders/195/builds/104 FAIL: test_env_var (test.test_utf8_mode.UTF8ModeTests) -- Traceback (most recent call

[issue37144] tarfile.open: improper handling of path-like object

2019-06-04 Thread Demid
Change by Demid : -- keywords: +patch pull_requests: +13703 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13817 ___ Python tracker ___

[issue26826] Expose new copy_file_range() syscall in os module.

2019-06-04 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Actually "man copy_file_range" claims it can do server-side copy, meaning no network traffic between client and server if *src* and *dst* live on the same network fs. So I agree copy_file_range() should be preferred over sendfile() after all. =) I have a

[issue36742] urlsplit doesn't accept a NFKD hostname with a port number

2019-06-04 Thread Steve Dower
Steve Dower added the comment: New changeset f61599b050c621386a3fc6bc480359e2d3bb93de by Steve Dower in branch '2.7': bpo-36742: Corrects fix to handle decomposition in usernames (GH-13812) https://github.com/python/cpython/commit/f61599b050c621386a3fc6bc480359e2d3bb93de --

[issue37144] tarfile.open: improper handling of path-like object

2019-06-04 Thread Demid
Change by Demid : -- nosy: +dm ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37144] tarfile.open: improper handling of path-like object

2019-06-04 Thread Demid
Change by Demid : -- nosy: +zygocephalus -dm ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37153] test_venv: test_multiprocessing() hangs randomly on x86 Windows7 3.x

2019-06-04 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +13702 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13816 ___ Python tracker ___

[issue37153] test_venv: test_multiprocessing() hangs randomly on x86 Windows7 3.x

2019-06-04 Thread STINNER Victor
New submission from STINNER Victor : x86 Windows7 3.x: https://buildbot.python.org/all/#/builders/58/builds/2573 0:42:21 load avg: 4.40 [283/423/1] test_venv crashed (Exit code 1) Timeout (0:35:00)! Thread 0x00c0 (most recent call first): File

[issue33762] temp file isn't IOBase

2019-06-04 Thread Greg Lindahl
Greg Lindahl added the comment: This is breaking aiohttp client file multipart uploads from temporary files. I'd be willing to bet that a lot of libraries do isinstance(foo, io.IOBase) deep in their guts. -- nosy: +wumpus ___ Python tracker

[issue36421] A possible double decref in _ctypes.c's PyCArrayType_new()

2019-06-04 Thread STINNER Victor
STINNER Victor added the comment: > just one question, how did you detect this bug? I bet that Zackery Spytz used Svace static analyzer: http://www.ispras.ru/en/technologies/svace/ See also: https://python-security.readthedocs.io/security.html#static-analysers-of-cpython-code-base

[issue36742] urlsplit doesn't accept a NFKD hostname with a port number

2019-06-04 Thread miss-islington
miss-islington added the comment: New changeset 250b62acc59921d399f0db47db3b462cd6037e09 by Miss Islington (bot) in branch '3.7': bpo-36742: Corrects fix to handle decomposition in usernames (GH-13812) https://github.com/python/cpython/commit/250b62acc59921d399f0db47db3b462cd6037e09

  1   2   >