[issue34542] [TLS] Update test certs to future proof settings

2018-08-29 Thread Christian Heimes
Christian Heimes added the comment: New changeset e6dac0077996b1e1f886f036d6f2606237fa4c85 by Christian Heimes in branch 'master': bpo-34542: Update test certs and keys (GH-8997) https://github.com/python/cpython/commit/e6dac0077996b1e1f886f036d6f2606237fa4c85 --

[issue34542] [TLS] Update test certs to future proof settings

2018-08-29 Thread miss-islington
Change by miss-islington : -- pull_requests: +8477 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34495] excess_args asserts if args == nullptr

2018-08-29 Thread Benjamin Peterson
Change by Benjamin Peterson : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue34540] shutil._call_external_zip should use subprocess

2018-08-29 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset d8b103b8b3ef9644805341216963a64098642435 by Benjamin Peterson in branch '2.7': closes bpo-34540: Convert shutil._call_external_zip to use subprocess rather than distutils.spawn. (GH-8985)

[issue34545] error in the repl due to indentation

2018-08-29 Thread Noah Haasis
New submission from Noah Haasis : Pressing the tab key in the python REPL in my command line (cmder on windows 10 32bit) causes an exception: >>> Readline internal error >>>

[issue1529353] Squeezer - squeeze large output in IDLE's shell

2018-08-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: I partly answered questions already. 1. Yes. Always show. Fix delay at 80 until we decide on something better. 2. No. Max should be enough. I once printed over 500_000 short lines to see if scrolling remained responsive. It did. I could have set min

[issue30618] readlink for pathlib paths

2018-08-29 Thread Berker Peksag
Berker Peksag added the comment: The resolve() method already solves symlinks, but I think this is a reasonable feature request. I've just reviewed PR 8285. -- nosy: +berker.peksag, pitrou versions: +Python 3.8 -Python 3.7 ___ Python tracker

[issue34529] add the option for json.dumps to return newline delimited json

2018-08-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This format is known as JSON Lines: http://jsonlines.org/. Its support in the user code is trivial -- just one or two lines of code. Writing: for item in items: json.dump(item, file) or jsondata = ''.join(json.dumps(item) for item in

[issue34528] Windows installer: Failed to run untrusted mode.

2018-08-29 Thread Steve Dower
Steve Dower added the comment: We're totally okay with you using a different installer if you want. We know and trust Anaconda, and while they do things differently, if that model works for you then it'll be fine. Python 3.7 shouldn't need any registry settings or environment variables to

[issue34544] FreeBSD: Fatal Python error: get_locale_encoding: failed to get the locale encoding: nl_langinfo(CODESET) failed

2018-08-29 Thread STINNER Victor
New submission from STINNER Victor : It seems like my recent work on Python initialization broke Python on FreeBSD. Many test_c_locale_coerce tests now fail with: "Fatal Python error: get_locale_encoding: failed to get the locale encoding: nl_langinfo(CODESET) failed" Example of failed

[issue34529] add the option for json.dumps to return newline delimited json

2018-08-29 Thread Bob Ippolito
Bob Ippolito added the comment: I think the best start would be to add a bit of documentation with an example of how you could work with newline delimited json using the existing module as-is. On the encoding side you need to ensure that it's a compact representation without embedded

[issue34535] queue.Queue(timeout=0.001) avg delay Windows:14.5ms, Ubuntu: 0.063ms

2018-08-29 Thread STINNER Victor
STINNER Victor added the comment: I dislike the idea of documentation the Windows clocks in the queue documentation, it's not the right place. I dislike the idea of documentating Windows "internals" in the Python documentation. You should see Python as a "thin wrapper" to the operating

[issue34529] add the option for json.dumps to return newline delimited json

2018-08-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: > The main difference between Json and new line delimited json is that new line > contains valid json in each line. It is up to Bob to decide whether this feature request is within the scope of the module. -- assignee: -> bob.ippolito

[issue34539] namedtuple's exec() throws segmentation fault

2018-08-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: If this is only present in 3.7.0 and not in the current branches, it implies there was an exec() or ceval-loop bug in that release and it has been already fixed. This bug report may be out-of-date. -- ___

[issue34481] Different behavior of C and Python impls of datetime.strftime with non-UTF-8-encodable strings

2018-08-29 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: @p-ganssle > I'm finding it very difficult to reconcile these things. Paul, this issue was only about reconciling C and Python implementations of datetime module -- not fixing time.strftime(), which both of them delegate to. While the latter is certainly

[issue34535] queue.Queue(timeout=0.001) avg delay Windows:14.5ms, Ubuntu: 0.063ms

2018-08-29 Thread Eryk Sun
Eryk Sun added the comment: Changing the system timer resolution doesn't appear to help, given the current design combined with what looks like a bug in Windows (at least in Windows 10). We can set the system clock resolution below a millisecond via NtSetTimerResolution. I tested at 0.4882

[issue34523] Choose the filesystem encoding before Python initialization (add _PyCoreConfig.filesystem_encoding)

2018-08-29 Thread STINNER Victor
STINNER Victor added the comment: It was much more complicated than expected to implement this idea, but it seems like it's now working! I close the issue. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python

[issue34523] Choose the filesystem encoding before Python initialization (add _PyCoreConfig.filesystem_encoding)

2018-08-29 Thread STINNER Victor
STINNER Victor added the comment: New changeset fbca90856d96273fd87c0b126f6e7966af7fbf7b by Victor Stinner in branch 'master': bpo-34523: Use _PyCoreConfig instead of globals (GH-9005) https://github.com/python/cpython/commit/fbca90856d96273fd87c0b126f6e7966af7fbf7b --

[issue34528] Windows installer: Failed to run untrusted mode.

2018-08-29 Thread Cabu
Cabu added the comment: Knowing the IT department, I will receive a nice letter saying that they don't care because it is not an approved software and that I could use Java for my development needs. I wanted to develop some interesting tools in python that could be used by a lot of

[issue34523] Choose the filesystem encoding before Python initialization (add _PyCoreConfig.filesystem_encoding)

2018-08-29 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +8476 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19569] Use __attribute__((deprecated)) to warn usage of deprecated functions and macros

2018-08-29 Thread Zackery Spytz
Change by Zackery Spytz : -- nosy: +ZackerySpytz versions: +Python 3.8 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list

[issue19569] Use __attribute__((deprecated)) to warn usage of deprecated functions and macros

2018-08-29 Thread Zackery Spytz
Change by Zackery Spytz : -- pull_requests: +8475 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34523] Choose the filesystem encoding before Python initialization (add _PyCoreConfig.filesystem_encoding)

2018-08-29 Thread STINNER Victor
STINNER Victor added the comment: New changeset de427556746aa41a8b5198924ce423021bc0c718 by Victor Stinner in branch 'master': bpo-34523: Py_FileSystemDefaultEncoding NULL by default (GH-9003) https://github.com/python/cpython/commit/de427556746aa41a8b5198924ce423021bc0c718 --

[issue34007] test_gdb fails in s390x SLES buildbots

2018-08-29 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Interestingly, everything points to something special in the glibc version of the buildbot. Usually the end of the stack for threads is: (gdb) #22 0x77f82a9d in start_thread () from /usr/lib/libpthread.so.0 (gdb) #23 0x77d23a43 in

[issue34485] _PyCoreConfig: add stdio_encoding and stdio_errors

2018-08-29 Thread STINNER Victor
STINNER Victor added the comment: New changeset cf21504194927b2f22132f48effea69eb8ade751 by Victor Stinner in branch 'master': bpo-34485: Emit C locale coercion warning later (GH-9002) https://github.com/python/cpython/commit/cf21504194927b2f22132f48effea69eb8ade751 --

[issue34523] Choose the filesystem encoding before Python initialization (add _PyCoreConfig.filesystem_encoding)

2018-08-29 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +8474 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34495] excess_args asserts if args == nullptr

2018-08-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The third argument of tp_new() should be a dict or NULL. -- ___ Python tracker ___ ___

[issue34485] _PyCoreConfig: add stdio_encoding and stdio_errors

2018-08-29 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +8473 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34523] Choose the filesystem encoding before Python initialization (add _PyCoreConfig.filesystem_encoding)

2018-08-29 Thread STINNER Victor
STINNER Victor added the comment: New changeset 3d4226a832cabc630402589cc671cc4035d504e5 by Victor Stinner in branch 'master': bpo-34523: Support surrogatepass in locale codecs (GH-8995) https://github.com/python/cpython/commit/3d4226a832cabc630402589cc671cc4035d504e5 --

[issue34495] excess_args asserts if args == nullptr

2018-08-29 Thread Tatyana
Tatyana added the comment: So, user has to do PyObject *empty_args = PyTuple_New(0); inst = PyBaseObject_Type.tp_new(type_obj, empty_args, Py_None); Py_DECREF(empty_args); when type_obj doesn't require arguments for constructing? --

[issue34522] PyTypeObject's tp_base initialization bug

2018-08-29 Thread Ronald Oussoren
Ronald Oussoren added the comment: Eddie, I have read the thread and still don't see why breaking existing code is a good thing to do. As I wrote earlier there are two issues you're trying to address with one patch: 1) Not all types in the CPython tree are initialised using PyType_Ready

[issue34538] Remove encouragement to author a base class for all Exception subclasses in a module

2018-08-29 Thread Brett Cannon
Brett Cannon added the comment: I think the question is how often in real code to people want to catch all exceptions produced by a package or module but not any others. Perhaps it would be better to re-word the advice that when there are many related exceptions that it is suggested you

[issue34535] queue.Queue(timeout=0.001) avg delay Windows:14.5ms, Ubuntu: 0.063ms

2018-08-29 Thread Paul Overing
Paul Overing added the comment: Thank you to everyone for looking at my issue esp Josh.r for the detailed response. I now understand the issue and I just wanted to bring it to the group's attention for everyone's benefit. Vstinner is correct; Linux is my solution as it is my production

[issue34535] queue.Queue(timeout=0.001) avg delay Windows:14.5ms, Ubuntu: 0.063ms

2018-08-29 Thread Josh Rosenberg
Josh Rosenberg added the comment: Victor, that was a little overboard. By that logic, there doesn't need to be a Windows version of Python. That said, Paul doesn't seem to understand that the real resolution limit isn't 1 ms; that's the lower limit on arguments to the API, but the real

[issue34543] _struct.Struct: calling functions without calling __init__ results in SystemError

2018-08-29 Thread DeKrain
DeKrain added the comment: (I wrote that I'm importing from _struct just for this issue.) I've seen that tp_new of PyStructType is set to s_new in Modules/_struct.c. And that crash is most likely caused by access to uninitialized memory, so it is not guaranteed. --

[issue32560] [EASY C] inherit the py launcher's STARTUPINFO

2018-08-29 Thread Shiva Saxena
Shiva Saxena added the comment: I am a new contributor, and happy to take this issue as my first contribution in cpython. I have sent a PR for the same. Please let me know if anything needs to be change. -- nosy: +GeekyShacklebolt ___ Python

[issue34523] Choose the filesystem encoding before Python initialization (add _PyCoreConfig.filesystem_encoding)

2018-08-29 Thread STINNER Victor
STINNER Victor added the comment: New changeset c5989cd87659acbfd4d19dc00dbe99c3a0fc9bd2 by Victor Stinner in branch 'master': bpo-34523: Py_DecodeLocale() use UTF-8 on Windows (GH-8998) https://github.com/python/cpython/commit/c5989cd87659acbfd4d19dc00dbe99c3a0fc9bd2 --

[issue34543] _struct.Struct: calling functions without calling __init__ results in SystemError

2018-08-29 Thread Steven D'Aprano
Steven D'Aprano added the comment: _struct is a private implementation detail. You shouldn't use it. You shouldn't care where the implementation "really is" in your Python code, because it could move without warning. There are no backwards-compatibility guarantees for private modules like

[issue34481] Different behavior of C and Python impls of datetime.strftime with non-UTF-8-encodable strings

2018-08-29 Thread STINNER Victor
STINNER Victor added the comment: > Because caring of surrogates, Before* -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue34481] Different behavior of C and Python impls of datetime.strftime with non-UTF-8-encodable strings

2018-08-29 Thread STINNER Victor
STINNER Victor added the comment: Because caring of surrogates, I would prefer to first fix time.strftime() and time.strptime() for legit time zone names. Currently, Python uses the C function strfime() because the string produced by wcsftime() cannot be parsed later. We should use the

[issue32560] [EASY C] inherit the py launcher's STARTUPINFO

2018-08-29 Thread Shiva Saxena
Change by Shiva Saxena : -- keywords: +patch pull_requests: +8472 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue34543] _struct.Struct: calling functions without calling __init__ results in SystemError

2018-08-29 Thread DeKrain
DeKrain added the comment: Well, sometimes when i do >>> b = bytearray() >>> s.pack_into(b) application crashes (because it checks arg #1, which is not initialized). Also, I imported from _struct, because it's where implementation of Struct really is. --

[issue34541] pathlib.Path.iterdir doesn't throw an exception until you start iterating

2018-08-29 Thread Prudvi RajKumar Maddala
Prudvi RajKumar Maddala added the comment: Made changes, pathlib.Path('.').iterdir() now throws a FileNotFoundError if the path is not valid. -- nosy: +prudvinit ___ Python tracker

[issue34541] pathlib.Path.iterdir doesn't throw an exception until you start iterating

2018-08-29 Thread Paul Pinterits
Paul Pinterits added the comment: As an afterthought, I'd like to suggest an alternative solution: If changing the `iterdir` behavior is not possible or not desirable for some reason, please add a `Path.listdir` method that returns a list instead of an iterator. Lazy file system operations

[issue34541] pathlib.Path.iterdir doesn't throw an exception until you start iterating

2018-08-29 Thread Prudvi RajKumar Maddala
Change by Prudvi RajKumar Maddala : -- pull_requests: +8470 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34403] test_utf8_mode.test_cmd_line() fails on HP-UX due to false assumptions

2018-08-29 Thread Michael Felt
Michael Felt added the comment: On 28/08/2018 20:43, Michael Felt wrote: > Attached is the output with LC_ALL=C in the prefix. If you were hoping > for "dangling processes - your hopes are affirmed. Previous mail ended with: == Tests result: FAILURE == 375 tests OK. 13 tests failed:    

[issue34403] test_utf8_mode.test_cmd_line() fails on HP-UX due to false assumptions

2018-08-29 Thread Michael Felt
Michael Felt added the comment: On 28/08/2018 13:20, STINNER Victor wrote: > I updated my PR 8969 to implement properly my idea. With this PR, on HP-UX > with C or POSIX locale, Python now uses ASCII for its "filesystem encoding": > sys.getfilesystemencoding() returns "ascii". > > Michael:

[issue34523] Choose the filesystem encoding before Python initialization (add _PyCoreConfig.filesystem_encoding)

2018-08-29 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +8469 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34542] [TLS] Update test certs to future proof settings

2018-08-29 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +8468 stage: test needed -> patch review ___ Python tracker ___ ___

[issue34541] pathlib.Path.iterdir doesn't throw an exception until you start iterating

2018-08-29 Thread Prudvi RajKumar Maddala
Change by Prudvi RajKumar Maddala : -- keywords: +patch pull_requests: +8467 stage: -> patch review ___ Python tracker ___ ___

[issue34543] _struct.Struct: calling functions without calling __init__ results in SystemError

2018-08-29 Thread Steven D'Aprano
Steven D'Aprano added the comment: This exception goes back to at least Python 2.6 (if not older) but I'm not convinced it is a bug. Calling __new__ alone is not guaranteed to initialise a new instance completely. The public API for creating an instance is to call the class object: s =

[issue34543] _struct.Struct: calling functions without calling __init__ results in SystemError

2018-08-29 Thread DeKrain
New submission from DeKrain : >>> from _struct import Struct >>> s = Struct.__new__(Struct) >>> s.unpack_from(b'asdf') Traceback (most recent call last): File "", line 1, in SystemError: /Objects/tupleobject.c:84: Bad argument to internal function In Modules/_struct.c: static PyObject *

[issue34481] Different behavior of C and Python impls of datetime.strftime with non-UTF-8-encodable strings

2018-08-29 Thread Paul Ganssle
Paul Ganssle added the comment: I'm finding it very difficult to reconcile these things. I'm not entirely sure, but we may need to take a performance hit in normal strftime if we want to make this work with surrogate characters, which really does not appeal to me (though we can certainly

[issue34535] queue.Queue(timeout=0.001) avg delay Windows:14.5ms, Ubuntu: 0.063ms

2018-08-29 Thread STINNER Victor
STINNER Victor added the comment: > It makes the windows queue.Queue implementations with timeouts unusable in > low latency environments and should be documented as such. As it is slow and > highly variable. Well, it seems like you have a solution which is called Linux, no? --

[issue34528] Windows installer: Failed to run untrusted mode.

2018-08-29 Thread Steve Dower
Steve Dower added the comment: Unfortunately, I don't have any better suggestion than trying to get your company policy changed :( The "clean room" feature of our installer is not configurable (and also not in our code, so we can't change it without going through the upstream project). You

[issue34523] Choose the filesystem encoding before Python initialization (add _PyCoreConfig.filesystem_encoding)

2018-08-29 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +8466 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34522] PyTypeObject's tp_base initialization bug

2018-08-29 Thread Eddie Elizondo
Eddie Elizondo added the comment: @ronaldoussoren * This change currently works for all CPython. If you are using this pattern then you probably want to be using PyType_FromSpec rather than having a static PyTypeObject as discussed in PEP384: https://www.python.org/dev/peps/pep-0384. In

[issue34399] [TLS] Update test keys to >= 2048bit

2018-08-29 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +8465 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34539] namedtuple's exec() throws segmentation fault

2018-08-29 Thread Álvaro Justen
Álvaro Justen added the comment: I've cloned the cpython git repository and made fresh builds here: On v.3.6.6 (4cf1f54eb764f856fda5a394d8598c0c90d69d77) it works: $ git checkout v3.6.6 && ./configure && make && ./python --version && ./python namedtuple_bug.py [...compilation lines

[issue34542] [TLS] Update test certs to future proof settings

2018-08-29 Thread Christian Heimes
New submission from Christian Heimes : In bug #34399, I updated all RSA keys to 2048. However that not sufficient for future proof settings. Fedora's FUTURE crypto policy requires 3072bit RSA keys. Further more, I forgot to update the signature algorithm, too. * RSA >= 3072bits * finite

[issue34403] test_utf8_mode.test_cmd_line() fails on HP-UX due to false assumptions

2018-08-29 Thread STINNER Victor
STINNER Victor added the comment: > Please close, issue fixed. Thank you very much. You're welcome ;-) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue34403] test_utf8_mode.test_cmd_line() fails on HP-UX due to false assumptions

2018-08-29 Thread Michael Osipov
Michael Osipov <1983-01...@gmx.net> added the comment: Please close, issue fixed. Thank you very much. -- ___ Python tracker ___

[issue34489] subprocess: execution of batch-files (.cmd/.bat) is vulnerable in python for windows / insufficient escape

2018-08-29 Thread Sergey G. Brester
Sergey G. Brester added the comment: > Would you consider adding your test suite into the regression tests as well? Sure. Done. > Right now, this is a well known issue on all platforms Really? I can't imagine this for something else as windows (and it is currently fixed also for windows

[issue34535] queue.Queue(timeout=0.001) avg delay Windows:14.5ms, Ubuntu: 0.063ms

2018-08-29 Thread Paul Overing
Paul Overing added the comment: Thank you for your quick response. But 1ms resolution or not, 14.5ms does not seem reasonable given that in Ubuntu it is 0.049ms. Ubuntu is on average 295x faster. Also the variability in times is much higher in Windows max/avg = 9.547, avg/min = 8.69.

[issue34523] Choose the filesystem encoding before Python initialization (add _PyCoreConfig.filesystem_encoding)

2018-08-29 Thread STINNER Victor
STINNER Victor added the comment: New changeset 70fead25e503a742ad4c919b151b9b2b5facee36 by Victor Stinner in branch 'master': bpo-34523: Fix config_init_fs_encoding() (GH-8991) https://github.com/python/cpython/commit/70fead25e503a742ad4c919b151b9b2b5facee36 --

[issue34523] Choose the filesystem encoding before Python initialization (add _PyCoreConfig.filesystem_encoding)

2018-08-29 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +8464 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34523] Choose the filesystem encoding before Python initialization (add _PyCoreConfig.filesystem_encoding)

2018-08-29 Thread STINNER Victor
STINNER Victor added the comment: New changeset b2457efc78b74a1d6d1b77d11a939e886b8a4e2c by Victor Stinner in branch 'master': bpo-34523: Add _PyCoreConfig.filesystem_encoding (GH-8963) https://github.com/python/cpython/commit/b2457efc78b74a1d6d1b77d11a939e886b8a4e2c --

[issue34222] Email message serialization enters an infinite loop when folding non-ASCII headers with long words

2018-08-29 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +8463 stage: -> patch review ___ Python tracker ___ ___

[issue34538] Remove encouragement to author a base class for all Exception subclasses in a module

2018-08-29 Thread INADA Naoki
INADA Naoki added the comment: > Also, it mirrors practices in the standard library (decimal.DecimalException > and sqlite3.DatabaseError). As Nathaniel said, "it's good idea in the particular circumstances of a particular module's implementation, but generally not." (I removed "very"

[issue34485] _PyCoreConfig: add stdio_encoding and stdio_errors

2018-08-29 Thread STINNER Victor
STINNER Victor added the comment: Oh wow, I didn't expect that it would be so complicated to "just" get the encoding of sys.stdout... I had to fix many bugs to be able to do that! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue34485] _PyCoreConfig: add stdio_encoding and stdio_errors

2018-08-29 Thread STINNER Victor
STINNER Victor added the comment: New changeset dfe0dc74536dfb6f331131d9b2b49557675bb6b7 by Victor Stinner in branch 'master': bpo-34485: Add _PyCoreConfig.stdio_encoding (GH-8881) https://github.com/python/cpython/commit/dfe0dc74536dfb6f331131d9b2b49557675bb6b7 --

[issue34539] namedtuple's exec() throws segmentation fault

2018-08-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: The works for me. Can you try it on a fresh build or install of Python 3.7? -- nosy: +rhettinger ___ Python tracker ___

[issue34443] enum repr should use __qualname__

2018-08-29 Thread Danish Prakash
Danish Prakash added the comment: Serhiy, why should __qualname__ always be used together with __module__? I can't seem to find a valid reason, I've been through the pep. -- nosy: +prakashdanish ___ Python tracker

[issue34443] enum repr should use __qualname__

2018-08-29 Thread Danish Prakash
Change by Danish Prakash : -- keywords: +patch pull_requests: +8462 stage: -> patch review ___ Python tracker ___ ___

[issue34538] Remove encouragement to author a base class for all Exception subclasses in a module

2018-08-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: I think the advice should stay as-is. In my experience as a teacher, the possibility doesn't usually occur to people without it having been suggested. Also, it mirrors practices in the standard library (decimal.DecimalException and

[issue34485] _PyCoreConfig: add stdio_encoding and stdio_errors

2018-08-29 Thread STINNER Victor
STINNER Victor added the comment: New changeset 177d921c8c03d30daa32994362023f777624b10d by Victor Stinner in branch 'master': bpo-34485, Windows: LC_CTYPE set to user preference (GH-8988) https://github.com/python/cpython/commit/177d921c8c03d30daa32994362023f777624b10d --

[issue34485] _PyCoreConfig: add stdio_encoding and stdio_errors

2018-08-29 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +8461 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34527] On FreeBSD, Python 3 doesn't support support the POSIX locale

2018-08-29 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-34485. Example: New changeset 0b9ea4b211b24464c7d38f63e45e51c275c52dcd by Victor Stinner in branch '3.7': [3.7] bpo-34485: stdout uses surrogateescape on POSIX locale (GH-8986) (GH-8987)

[issue34485] _PyCoreConfig: add stdio_encoding and stdio_errors

2018-08-29 Thread STINNER Victor
STINNER Victor added the comment: New changeset 0b9ea4b211b24464c7d38f63e45e51c275c52dcd by Victor Stinner in branch '3.7': [3.7] bpo-34485: stdout uses surrogateescape on POSIX locale (GH-8986) (GH-8987) https://github.com/python/cpython/commit/0b9ea4b211b24464c7d38f63e45e51c275c52dcd

[issue34535] queue.Queue(timeout=0.001) avg delay Windows:14.5ms, Ubuntu: 0.063ms

2018-08-29 Thread STINNER Victor
STINNER Victor added the comment: > Victor or Steve, do you know the resolution of perf_counter() and monotonic() > on Windows? You can use: >>> time.get_clock_info('perf_counter') namespace(adjustable=False, implementation='clock_gettime(CLOCK_MONOTONIC)', monotonic=True,

[issue34541] pathlib.Path.iterdir doesn't throw an exception until you start iterating

2018-08-29 Thread Paul Pinterits
New submission from Paul Pinterits : The fact that `Path.iterdir()` only throws exceptions once you start iterating over it makes it very difficult to write correct code. Let's look at an example: We'll iterate over all children of a directory and print their file size. If we try to do it

[issue34485] _PyCoreConfig: add stdio_encoding and stdio_errors

2018-08-29 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +8460 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34485] _PyCoreConfig: add stdio_encoding and stdio_errors

2018-08-29 Thread STINNER Victor
STINNER Victor added the comment: New changeset 315877dc361d554bec34b4b62c270479ad36a1be by Victor Stinner in branch 'master': bpo-34485: stdout uses surrogateescape on POSIX locale (GH-8986) https://github.com/python/cpython/commit/315877dc361d554bec34b4b62c270479ad36a1be --

[issue34485] _PyCoreConfig: add stdio_encoding and stdio_errors

2018-08-29 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +8459 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34529] add the option for json.dumps to return newline delimited json

2018-08-29 Thread ron
ron added the comment: Raymond Hettinger answer is incorrect. The main difference between Json and new line delimited json is that new line contains valid json in each line. Meaning you can do to line #47 and what you will have in this line is a valid json. Unlike the regular json where if

[issue34522] PyTypeObject's tp_base initialization bug

2018-08-29 Thread Ronald Oussoren
Ronald Oussoren added the comment: BTW. And that -1 was even before considering that PyVarObject_HEAD_INIT is not a type-object specific macro, but a macro to staticky initialize values of PyVarObject. -- ___ Python tracker

[issue34522] PyTypeObject's tp_base initialization bug

2018-08-29 Thread Ronald Oussoren
Ronald Oussoren added the comment: I was also talking about static C types, it is possible to write types with custom meta types in C code (even if that is even less common than using meta types in the first place). I have extensions where I use PyVarObject_HEAD_INIT without the first

[issue34538] Remove encouragement to author a base class for all Exception subclasses in a module

2018-08-29 Thread INADA Naoki
INADA Naoki added the comment: I agree with you. -- nosy: +inada.naoki ___ Python tracker ___ ___ Python-bugs-list mailing list