[issue33805] dataclasses: replace() give poor error message if using InitVar

2018-06-23 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset 3d70f7aef614c396f516b5fccedeebe98598714d by Eric V. Smith (Dong-hee Na) in branch 'master': bpo-33805: Improve error message of dataclasses.replace() (GH-7580) https://github.com/python/cpython/commit/3d70f7aef614c396f516b5fccedeebe98598714d

Re: translating foreign data

2018-06-23 Thread Peter J. Holzer
On 2018-06-23 16:05:49 +0200, Peter J. Holzer wrote: > I don't think that's a useful way to look at it. "Locale" in > (non-technical) English means "place" or "site". The idea behind the > locale concept is that some conventions (e.g. how to write numbers or > how to write strings) depend on the

[issue33942] IDLE: Improve Apple MacOS Tcl/Tk warning and web page

2018-06-23 Thread Jasper Trooster
Jasper Trooster added the comment: Hey, thanks for the quick response. I have to add that, when going to the download page to download site (https://www.python.org/downloads/) the big yellow button that says "Download Python 3.6.5" downloads the 64-/32-bit installer (at least, I think so as

Re: translating foreign data

2018-06-23 Thread Marko Rauhamaa
Richard Damon : > On 6/23/18 9:05 AM, Marko Rauhamaa wrote: >> Richard Damon : >> >>> On 6/23/18 8:03 AM, Marko Rauhamaa wrote: I always know my locale. The locale is tied to the human user. >>> No, it should be tied to the data you are processing. >>In computing, a locale is a set of

Re: translating foreign data

2018-06-23 Thread Peter J. Holzer
On 2018-06-23 08:41:38 -0400, Richard Damon wrote: > On 6/23/18 8:28 AM, Peter J. Holzer wrote: > > On 2018-06-23 08:12:52 -0400, Richard Damon wrote: > >> On 6/23/18 7:46 AM, Steven D'Aprano wrote: > >>> If I'm in Australia, using the en-AU locale, nevertheless I can generate > >>> a file using

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

2018-06-23 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +7482 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: translating foreign data

2018-06-23 Thread Richard Damon
On 6/23/18 9:05 AM, Marko Rauhamaa wrote: > Richard Damon : > >> On 6/23/18 8:03 AM, Marko Rauhamaa wrote: >>> I always know my locale. The locale is tied to the human user. >> No, it should be tied to the data you are processing. >In computing, a locale is a set of parameters that defines the

[issue33946] os.symlink on Windows should use the new non-admin flag

2018-06-23 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: translating foreign data

2018-06-23 Thread Marko Rauhamaa
Richard Damon : > On 6/23/18 8:03 AM, Marko Rauhamaa wrote: >> I always know my locale. The locale is tied to the human user. > No, it should be tied to the data you are processing. In computing, a locale is a set of parameters that defines the user's language, region and any special

Re: Static variables [was Re: syntax difference]

2018-06-23 Thread Ed Kellett
On 2018-06-23 06:21, Chris Angelico wrote: > Let's start finding all the edge cases that don't work, so I can work > on fixing them :) Very long functions (or, more specifically, functions with a very large number of consts) will likely prove annoying. signature.asc Description: OpenPGP

[issue33916] test_lzma: test_refleaks_in_decompressor___init__() leaks 100 handles on Windows

2018-06-23 Thread STINNER Victor
STINNER Victor added the comment: It seems like Python 2.7 is inaffected by the bug: static int BZ2File_init(BZ2FileObject *self, PyObject *args, PyObject *kwargs) { ... #ifdef WITH_THREAD if (!self->lock) { self->lock = PyThread_allocate_lock(); } if (!self->lock) {

[issue33916] test_lzma: test_refleaks_in_decompressor___init__() leaks 100 handles on Windows

2018-06-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1094891b2e3eafef464819acd4cd04cfd2b59661 by Victor Stinner in branch '3.6': bpo-33916: Fix bz2 and lzma init when called twice (GH-7843) (GH-7872) https://github.com/python/cpython/commit/1094891b2e3eafef464819acd4cd04cfd2b59661 --

[issue33947] Dataclasses can raise RecursionError in __repr__

2018-06-23 Thread Eric V. Smith
New submission from Eric V. Smith : >>> @dataclass ... class C: ... f: "C" ... >>> c = C(None) >>> c.f = c >>> c Traceback (most recent call last): File "", line 1, in File "", line 2, in __repr__ File "", line 2, in __repr__ File "", line 2, in __repr__ [Previous line repeated 328

Re: Static variables [was Re: syntax difference]

2018-06-23 Thread Bart
On 23/06/2018 04:51, Steven D'Aprano wrote: On Wed, 20 Jun 2018 14:18:19 +1000, Chris Angelico wrote: Ah. Yeah, that would be a plausible feature to add to Python. But in C, a static variable is basically the same thing as a global variable, except that its name is scoped to the function.

Re: translating foreign data

2018-06-23 Thread Richard Damon
On 6/23/18 8:28 AM, Peter J. Holzer wrote: > On 2018-06-23 08:12:52 -0400, Richard Damon wrote: >> On 6/23/18 7:46 AM, Steven D'Aprano wrote: >>> On Sat, 23 Jun 2018 06:26:22 -0400, Richard Damon wrote: If you know the Locale, then you do know what the decimal separator is, as that is

Re: translating foreign data

2018-06-23 Thread Richard Damon
On 6/23/18 8:03 AM, Marko Rauhamaa wrote: > Richard Damon : >> If you know the Locale, then you do know what the decimal separator >> is, as that is part of what a locale defines. > I don't know what that sentence means. When you set the locale > >> The issue is that if you just know the encoding,

Re: translating foreign data

2018-06-23 Thread Peter J. Holzer
On 2018-06-23 08:12:52 -0400, Richard Damon wrote: > On 6/23/18 7:46 AM, Steven D'Aprano wrote: > > On Sat, 23 Jun 2018 06:26:22 -0400, Richard Damon wrote: > >> If you know the Locale, then you do know what the decimal separator is, > >> as that is part of what a locale defines. > > A locale

Re: translating foreign data

2018-06-23 Thread Richard Damon
On 6/23/18 7:46 AM, Steven D'Aprano wrote: > On Sat, 23 Jun 2018 06:26:22 -0400, Richard Damon wrote: > >> If you know the Locale, then you do know what the decimal separator is, >> as that is part of what a locale defines. > A locale defines a set of common cultural conventions. It doesn't

Re: translating foreign data

2018-06-23 Thread Marko Rauhamaa
Richard Damon : > If you know the Locale, then you do know what the decimal separator > is, as that is part of what a locale defines. I don't know what that sentence means. > The issue is that if you just know the encoding, you don't necessarily > know the locale. I always know my locale. The

Re: translating foreign data

2018-06-23 Thread Steven D'Aprano
On Sat, 23 Jun 2018 06:26:22 -0400, Richard Damon wrote: > If you know the Locale, then you do know what the decimal separator is, > as that is part of what a locale defines. A locale defines a set of common cultural conventions. It doesn't mandate the actual conventions in use in any specific

[issue33695] Have shutil.copytree(), copy() and copystat() use cached scandir() stat()s

2018-06-23 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: > I re-ran benchmarks since shutil code changed after #33695. Sorry, I meant #33671. -- ___ Python tracker ___

[issue33695] Have shutil.copytree(), copy() and copystat() use cached scandir() stat()s

2018-06-23 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: PR at: https://github.com/python/cpython/pull/7874. I re-ran benchmarks since shutil code changed after #33695. Linux went from +13.5% to 8.8% and Windows went from +17% to 20.7%. In the PR I explicitly avoided using a context manager around os.scandir()

[issue33695] Have shutil.copytree(), copy() and copystat() use cached scandir() stat()s

2018-06-23 Thread Giampaolo Rodola'
Change by Giampaolo Rodola' : -- pull_requests: +7481 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: translating foreign data

2018-06-23 Thread Richard Damon
On 6/22/18 11:21 PM, Steven D'Aprano wrote: > On Fri, 22 Jun 2018 20:06:35 +0100, Ben Bacarisse wrote: > >> Steven D'Aprano writes: >> >>> On Fri, 22 Jun 2018 11:14:59 +0100, Ben Bacarisse wrote: >>> >> The code page remark is curious. Will some "code pages" have digits >> that are not

[issue33569] dataclasses InitVar does not maintain any type info

2018-06-23 Thread Eric V. Smith
Change by Eric V. Smith : -- assignee: -> eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33927] Allow json.tool to have identical infile and outfile

2018-06-23 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi, I proposed a path in https://github.com/python/cpython/pull/7865, I'm not sure if I can apply the label `skip news` or if only a reviewer can. -- ___ Python tracker

[issue33897] Add a restart option to logging.basicConfig()

2018-06-23 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +7480 stage: -> patch review ___ Python tracker ___ ___

[issue33916] test_lzma: test_refleaks_in_decompressor___init__() leaks 100 handles on Windows

2018-06-23 Thread miss-islington
miss-islington added the comment: New changeset efc6bf66a58e96c12116d65984ac69b0f36f85de by Miss Islington (bot) in branch '3.7': bpo-33916: Fix bz2 and lzma init when called twice (GH-7843) https://github.com/python/cpython/commit/efc6bf66a58e96c12116d65984ac69b0f36f85de -- nosy:

[issue33916] test_lzma: test_refleaks_in_decompressor___init__() leaks 100 handles on Windows

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

[issue33916] test_lzma: test_refleaks_in_decompressor___init__() leaks 100 handles on Windows

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

[issue33916] test_lzma: test_refleaks_in_decompressor___init__() leaks 100 handles on Windows

2018-06-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9b7cf757213cf4d7ae1d436d86ad53f5ba362d55 by Victor Stinner in branch 'master': bpo-33916: Fix bz2 and lzma init when called twice (GH-7843) https://github.com/python/cpython/commit/9b7cf757213cf4d7ae1d436d86ad53f5ba362d55 --

[issue33919] Expose _PyCoreConfig structure to Python

2018-06-23 Thread STINNER Victor
STINNER Victor added the comment: > We could make the hash_seed 64 bits. On my 64-bit Linux, _Py_HashSecret_t takes 24 bytes (192 bits). -- ___ Python tracker ___

Re: ironpython not support py3.6

2018-06-23 Thread Peter J. Holzer
On 2018-06-22 17:20:29 -0700, denis.akhiya...@gmail.com wrote: > Either wait for IronPython 3.6, use COM interop, pythonnet, > subprocess, or things like gRPC. Based on PyPy experience, it is > probably 1-2 years of sponsored development to get a working > IronPython 3.6. What is the current

[issue32568] Fix handling of sizehint=-1 in select.epoll()

2018-06-23 Thread Giampaolo Rodola'
Change by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33934] locale.getlocale() seems wrong when the locale is yet unset (python3 on linux)

2018-06-23 Thread Nicolas Hainaux
Nicolas Hainaux added the comment: Sorry, I did not realize that using the word "unset" was completely misleading: I only meant "before any use of locale.setlocale() in python". So I'll rephrase this all, and add details about the python versions and platforms in this message. So, first, I

[issue33939] Raise OverflowError in __length_hint__ for consistently infinite iterators

2018-06-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also a meta-issue issue29833. If use OverflowError as a sign of infinite iterator in __length_hint__, this should be documented as a legitimate use case for OverflowError. itertools.repeat.__length_hint__() and reversed.__length_hint__() currently

<    1   2