[issue32947] Support OpenSSL 1.1.1

2018-08-14 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +8237 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue32947] Support OpenSSL 1.1.1

2018-08-14 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +8236 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue34398] Docs search does not index glossary

2018-08-14 Thread Jonathan Fine
New submission from Jonathan Fine : The docs contain a very useful page https://docs.python.org/3.5/glossary.html. However, the search feature does not index the glossary. Thus, the search https://docs.python.org/3.5/search.html?q=iterable does not produce the helpful glossary entry === itera

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

2018-08-14 Thread Christian Heimes
New submission from Christian Heimes : Downstream vendors have started to tighten security. 1024 bits RSA and DH params are no longer considered as secure. Python 3.7 and master already use 2048 bits RSA keys for some tests (bpo-32602). 3.6 and 2.7 don't have 1024bit keys. DH params and some

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

2018-08-14 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +8238 stage: -> patch review ___ Python tracker ___ ___ Python-bugs

[issue34400] Undefined behavior in Parser/parsetok.c

2018-08-14 Thread Zackery Spytz
New submission from Zackery Spytz : In parsetok(), null pointers are used in pointer arithmetic. -- components: Interpreter Core messages: 323505 nosy: ZackerySpytz priority: normal severity: normal status: open title: Undefined behavior in Parser/parsetok.c type: behavior versions: Pyt

[issue34400] Undefined behavior in Parser/parsetok.c

2018-08-14 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +8239 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue34395] memory leaks in error handling in csv and pickle modules

2018-08-14 Thread Sergey Fedoseev
Sergey Fedoseev added the comment: > Could you elaborate a bit more on how/where the leak happens? It happens when PyMem_Resize() fails. It was used like this: Py_UCS4 *field = self->field; self->field = PyMem_Resize(field, Py_UCS4, self->field_size); The last statement changes both self->fi

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

2018-08-14 Thread Christian Heimes
Christian Heimes added the comment: New changeset 88bfd0bce05043f658e50addd21366f317995e35 by Christian Heimes in branch 'master': bpo-34399: 2048 bits RSA keys and DH params (#8762) https://github.com/python/cpython/commit/88bfd0bce05043f658e50addd21366f317995e35 -- __

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

2018-08-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +8240 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue34401] Make test_gdb work on HP-UX

2018-08-14 Thread Michael Osipov
New submission from Michael Osipov <1983-01...@gmx.net>: Regex in test_gdb.py needs to be changed and test can continue, though will be skipped due to old version. -- components: Tests files: test_gdb.patch keywords: patch messages: 323508 nosy: michael-o priority: normal severity: nor

[issue34401] Make test_gdb work on HP-UX

2018-08-14 Thread Michael Osipov
Change by Michael Osipov <1983-01...@gmx.net>: -- type: -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue34387] Deletion of attributes in dataclass is buggy

2018-08-14 Thread Eric V. Smith
Eric V. Smith added the comment: I assume this is the behavior you're seeing: >>> @dataclass ... class C: ... i: int = 0 ... >>> c = C(10) >>> c C(i=10) >>> del c.i >>> c C(i=0) >>> del c.i Traceback (most recent call last): File "", line 1, in AttributeError: i >>> If so, that's the exp

[issue18709] SSL module fails to handle NULL bytes inside subjectAltNames general names (CVE-2013-4238)

2018-08-14 Thread Anuj
Anuj added the comment: Do we have patch for 3.1 version, or 3.2 patch will be also OK? -- nosy: +Anuj ___ Python tracker ___ ___ P

[issue15258] argparse documentation: Improve optparse section regarding allow_interspersed_args

2018-08-14 Thread Berker Peksag
Berker Peksag added the comment: ArgumentParser.parse_intermixed_arg() has been added in https://github.com/python/cpython/commit/0f6b9d230674da784ca79a0cf1a03d2af5a8b6a8 (Issue 14191) and the "Upgrading optparse code" section now has the following item: * Replace optparse.OptionParser.disa

[issue34402] [SOLUTION] strftime fails on HP-UX

2018-08-14 Thread Michael Osipov
New submission from Michael Osipov <1983-01...@gmx.net>: strftime() fails on HP-UX. It is mapped to wcsftime(3). It has a quirk on HP-UX that is does not conform to POSIX. To enable POSIX compat one has to do (excerpt from manpage): > APPLICATION USAGE > The "Unix Standards Only" prototy

[issue34402] [SOLUTION] strftime fails on HP-UX

2018-08-14 Thread Michael Osipov
Michael Osipov <1983-01...@gmx.net> added the comment: The worst thing about wcsftime(3) is that it silently fails by not writing to output buffer. timemodule.c allocates more and more memory and then gives up. -- ___ Python tracker

[issue34401] [solution] Make test_gdb work on HP-UX

2018-08-14 Thread Michael Osipov
Change by Michael Osipov <1983-01...@gmx.net>: -- title: Make test_gdb work on HP-UX -> [solution] Make test_gdb work on HP-UX ___ Python tracker ___ __

[issue18709] SSL module fails to handle NULL bytes inside subjectAltNames general names (CVE-2013-4238)

2018-08-14 Thread Christian Heimes
Christian Heimes added the comment: These Python versions no longer receive security updates. Please update. -- ___ Python tracker ___

[issue34393] json.dumps - allow compression

2018-08-14 Thread Eric V. Smith
Eric V. Smith added the comment: There are too many types of compression for this to be built-in to json. There's zlib, gzip, bzip, zip, and no doubt dozens of others. How would we chose one, or several? Which to leave out? How to pass in the many parameters to all of these compression algor

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

2018-08-14 Thread Michael Osipov
New submission from Michael Osipov <1983-01...@gmx.net>: Running from 3.7 branch on HP-UX 11.31 ia64, 32 bit, big endian. The test output is: > Re-running failed tests in verbose mode > Re-running test 'test_utf8_mode' in verbose mode > test_cmd_line (test.test_utf8_mode.UTF8ModeTests) ... FAIL

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

2018-08-14 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +8241 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue34393] json.dumps - allow compression

2018-08-14 Thread liad
liad added the comment: True there are endless versions of compression just like there are endless version of file formats. Still there are some build-ins like conversion from string to json. For example you don't support of json to orc file. Same argument could have been raise here : how wo

[issue33451] Start pyc file lock the file

2018-08-14 Thread Berker Peksag
Berker Peksag added the comment: All PRs have been merged (commit message from the 3.6 branch doesn't listed here but PR 7889 has been merged in https://github.com/python/cpython/commit/8f8ad2c38237caf5ee48f690289e8c811d245455) Closing this as 'fixed'. Please reopen if this issue needs to st

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

2018-08-14 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +8242 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue34404] test_time incorrectly defined

2018-08-14 Thread Michael Osipov
New submission from Michael Osipov <1983-01...@gmx.net>: I see a test failure on HP-UX: > test_negative (test.test_time.TestStrftime4dyear) ... FAIL > == > FAIL: test_negative (test.test_time.TestStrftime4dyear) > --

[issue34393] json.dumps - allow compression

2018-08-14 Thread Eric V. Smith
Eric V. Smith added the comment: If you really want to see this added to Python, then I suggest you put together a proposal on what the API would be, what options you would or wouldn't support, and post that on python-ideas. But I'll warn you that your chances of success are low. Your bette

[issue34405] Upgrade to OpenSSL 1.1.0i / 1.0.2p

2018-08-14 Thread Christian Heimes
New submission from Christian Heimes : 1.0.2p and 1.1.0i were released today. Please update the Windows and macOS installers. -- components: Windows, macOS messages: 323521 nosy: christian.heimes, ned.deily, paul.moore, ronaldoussoren, steve.dower, tim.golden, zach.ware priority: norm

[issue34393] json.dumps - allow compression

2018-08-14 Thread liad
liad added the comment: I'm sure I will find a work-around. I posted it for other who will face the same issue as me. There are many who uses cloud storage but not many work with PB size files. This will likely to change in the near future as more and more company start to process huge amount

[issue34404] test_time incorrectly defined

2018-08-14 Thread Michael Osipov
Michael Osipov <1983-01...@gmx.net> added the comment: The proper format for int < 0 must be "%05d". -- ___ Python tracker ___ ___ P

[issue34390] arparse.ArgumentParser misparses list arguments followed by undefined arguments

2018-08-14 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pyt

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

2018-08-14 Thread Christian Heimes
Christian Heimes added the comment: New changeset e3228a3f44e382b6cdd2b5e001b651347013a7d3 by Christian Heimes (Miss Islington (bot)) in branch '3.7': bpo-34399: 2048 bits RSA keys and DH params (GH-8762) (GH-8763) https://github.com/python/cpython/commit/e3228a3f44e382b6cdd2b5e001b651347013a

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

2018-08-14 Thread Christian Heimes
Christian Heimes added the comment: New changeset 1f34aece28d143edb94ca202e661364ca394dc8c by Christian Heimes in branch '2.7': [2.7] bpo-34399: 2048 bits RSA keys and DH params (GH-8762) (GH-8765) https://github.com/python/cpython/commit/1f34aece28d143edb94ca202e661364ca394dc8c --

[issue32947] Support OpenSSL 1.1.1

2018-08-14 Thread Christian Heimes
Christian Heimes added the comment: New changeset 2a4ee8aa01d61b6a9c8e9c65c211e61bdb471826 by Christian Heimes in branch '3.6': bpo-32947: Fixes for TLS 1.3 and OpenSSL 1.1.1 (GH-8761) https://github.com/python/cpython/commit/2a4ee8aa01d61b6a9c8e9c65c211e61bdb471826 --

[issue34406] Type in documentation

2018-08-14 Thread Alisue Lambda
New submission from Alisue Lambda : https://docs.python.org/3.8/using/windows.html#removing-the-max-path-limitation Current > HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem@LongPathsEnabled Should be > HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem\LongPathsEnab

[issue34406] Typo in documentation

2018-08-14 Thread Alisue Lambda
Change by Alisue Lambda : -- title: Type in documentation -> Typo in documentation ___ Python tracker ___ ___ Python-bugs-list maili

[issue34398] Docs search does not index glossary

2018-08-14 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Hmm the search is built-in functionality in Sphinx, and I don't think we have any way to control or customize that. -- nosy: +Mariatta resolution: -> third party status: open -> pending versions: -Python 2.7, Python 3.4, Python 3.5 ___

[issue34398] Docs search does not index glossary

2018-08-14 Thread Jonathan Fine
Jonathan Fine added the comment: Good discovery. The glossary uses the RST glossary directive. https://github.com/python/cpython/blob/master/Doc/glossary.rst The Sphinx docs have a glossary, which is indexed by its search. http://www.sphinx-doc.org/en/master/search.html?q=domain So maybe Sphi

[issue34405] Upgrade to OpenSSL 1.1.0i / 1.0.2p

2018-08-14 Thread Steve Dower
Steve Dower added the comment: I've pushed the new sources for the Windows build, and am about to do the new binaries. If someone else gets to updating the references in the CPython repo before I do, that's fine by me. -- ___ Python tracker

[issue34407] datetime.time.isoformat function has inconsistent behavior with timezone

2018-08-14 Thread Maksym Shalenyi (Enkidulan)
New submission from Maksym Shalenyi (Enkidulan) : In some cases datetime.time.isoformat shows timezone info, but in some does not. Consider the example below. import datetime import pytz t = dict(hour=12, minute=31, second=21, microsecond=213456) # `datetime.time.isoformat` has inconsistent

[issue19050] [Windows] fflush called on pointer to potentially closed file

2018-08-14 Thread ppperry
Change by ppperry : -- title: [Python 2, Windows] fflush called on pointer to potentially closed file -> [Windows] fflush called on pointer to potentially closed file ___ Python tracker _

[issue34356] Add support for args and kwargs in logging.conf

2018-08-14 Thread Vinay Sajip
Vinay Sajip added the comment: There aren't any changes planned to the fileConfig code, other than bug fixes. If you need improved functionality, you can use dictConfig, which already supports improved configuration features when compared to fileConfig. The fileConfig API was present when th

[issue11192] test_socket error on AIX

2018-08-14 Thread Michael Felt
Michael Felt added the comment: The original error reported was fixed by AIX - in AIX 6.1. It will remain unresolved in AIX 5.3. There are currently two other errors in test_socket. FAIL: test_getnameinfo_ipv6_scopeid_symbolic (test.test_socket.GeneralModuleTests) --

[issue34406] Typo in documentation

2018-08-14 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Isn't this saying that LongPathsEnabled is a value on the path HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem? -- nosy: +pablogsal ___ Python tracker ___

[issue34406] Typo in documentation

2018-08-14 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I am not sure how people usually refer to the Windows register but this seems that the current line is differentiating from the path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem and the value LongPathsEnabled -- _

[issue34381] Make tests with outbound connection optional

2018-08-14 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: You can run all the tests except the ones that require external network (like SSL for sockets) using: ./python -m test -uall,network or you can exclude tests using the -x flag. -- nosy: +pablogsal ___ Pyth

[issue34381] Make tests with outbound connection optional

2018-08-14 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- Removed message: https://bugs.python.org/msg323536 ___ Python tracker ___ ___ Python-bugs-list

[issue34381] Make tests with outbound connection optional

2018-08-14 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: You can run all the tests except the ones that require external network (like SSL for sockets) using: ./python -m test -uall,-network or you can exclude tests using the -x flag. -- ___ Python tracker

[issue34408] possible null pointer dereference in pystate.c

2018-08-14 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : The problem occurs here: https://github.com/python/cpython/blob/master/Python/pystate.c#L185 If _PyRuntime.interpreters.next_id < 0 then interp is set to NULL and it will be dereferenced later: interp -- components: Interpreter Core messag

[issue34408] possible null pointer dereference in pystate.c

2018-08-14 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +8243 stage: -> patch review ___ Python tracker ___ ___ Python

[issue34392] Add sys.isinterned()

2018-08-14 Thread Brett Cannon
Brett Cannon added the comment: I agree with Christian; this is an implementation detail so it should be flagged as private/internal somehow. -- nosy: +brett.cannon ___ Python tracker __

[issue34397] remove redundant overflow checks in tuple and list implementations

2018-08-14 Thread Tim Peters
Tim Peters added the comment: I agree there's pointless code now, but don't understand why the patch replaces it with mysterious asserts. For example, what's the point of this? assert(Py_SIZE(a) <= PY_SSIZE_T_MAX / sizeof(PyObject*)); assert(Py_SIZE(b) <= PY_SSIZE_T_MAX / sizeof(PyObject*));

[issue34397] remove redundant overflow checks in tuple and list implementations

2018-08-14 Thread Tim Peters
Tim Peters added the comment: Bah - the relevant thing to assert is really assert((size_t)Py_SIZE(a) + (size_t)Py_SIZE(b) <= (size_t)PY_SSIZE_T_MAX); C sucks ;-) -- ___ Python tracker _

[issue32485] Multiprocessing dict sharing between forked processes

2018-08-14 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

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

2018-08-14 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue34409] Add a way to customize iteration over fields in asdict() for the nested dataclasses

2018-08-14 Thread mkurnikov
New submission from mkurnikov : Suppose I have two dataclasses: @dataclass class NestedDataclass(object): name: str options: Dict[str, Any] = field(default_factory=dict) @dataclass class RootDataclass(object): nested_list: List[NestedDataclass] I want a dict under the key "options

[issue34409] Add a way to customize iteration over fields in asdict() for the nested dataclasses

2018-08-14 Thread Eric V. Smith
Eric V. Smith added the comment: Could you show some example dataclass instances? Also, show the output you get with asdict(), and show what output you'd like to get instead. I'm not sure I understand it correctly from the description you've given. Thanks! -- nosy: +eric.smith versi

[issue34409] Add a way to customize iteration over fields in asdict() for the nested dataclasses

2018-08-14 Thread Eric V. Smith
Change by Eric V. Smith : -- assignee: -> eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue34409] Add a way to customize iteration over fields in asdict() for the nested dataclasses

2018-08-14 Thread mkurnikov
mkurnikov added the comment: from pprint import pprint from typing import List, Any, Dict import dataclasses from dataclasses import field def service_interface_dict_factory(obj: Any) -> Dict[str, Any]: print(type(obj)) # <- type(obj) here is a list, but there's no way to understand whe

[issue34392] Add sys.isinterned()

2018-08-14 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Agreed it should be non-public, but can we please call it sys._is_interned()? -- nosy: +barry ___ Python tracker ___ ___

[issue34410] Segfault/TimeoutError: itertools.tee of multiprocessing.pool.imap_unordered

2018-08-14 Thread Carlo Rosati
New submission from Carlo Rosati : Hello, When I run the attached code, I encounter a segmentation fault. Thanks, Carlo -- files: 3.py messages: 323546 nosy: carlorosati priority: normal severity: normal status: open title: Segfault/TimeoutError: itertools.tee of multiprocessing.poo

[issue34370] Tkinter scroll issues on macOS

2018-08-14 Thread Kevin Walzer
Kevin Walzer added the comment: I just committed http://core.tcl.tk/tk/info/26a029b4a88ff97f, which fixes the scrolling issue in Tk. Running the test scripts here indicate the behavior is now correct; clicking several pixels below the bottom part of the scroll button causes the scroll to jum

[issue34400] Undefined behavior in Parser/parsetok.c

2018-08-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +8245 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue34400] Undefined behavior in Parser/parsetok.c

2018-08-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +8244 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue34400] Undefined behavior in Parser/parsetok.c

2018-08-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 7c4ab2afb17b99eb3f61f9c73cbd548b5e0ad2c0 by Benjamin Peterson (Zackery Spytz) in branch 'master': closes bpo-34400: Fix undefined behavior in parsetok(). (GH-4439) https://github.com/python/cpython/commit/7c4ab2afb17b99eb3f61f9c73cbd548b5e0ad

[issue34400] Undefined behavior in Parser/parsetok.c

2018-08-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +8246 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue34400] Undefined behavior in Parser/parsetok.c

2018-08-14 Thread miss-islington
miss-islington added the comment: New changeset 2275b773ebfacb94f6a9c81d6a8b9d54771a68e8 by Miss Islington (bot) in branch '3.7': closes bpo-34400: Fix undefined behavior in parsetok(). (GH-4439) https://github.com/python/cpython/commit/2275b773ebfacb94f6a9c81d6a8b9d54771a68e8 -- no

[issue34406] Typo in documentation

2018-08-14 Thread Ammar Askar
Ammar Askar added the comment: For what its worth, window's reg command also makes a distinction between the registry key and value: C:\Users\ammar>reg.exe QUERY HKLM\Software\Microsoft\.NETFramework\Enable64Bit ERROR: The system was unable to find the specified registry key or value. C:\Us

[issue34400] Undefined behavior in Parser/parsetok.c

2018-08-14 Thread miss-islington
miss-islington added the comment: New changeset 00aebabc7139741fadfe877372c733a2160c7dbd by Miss Islington (bot) in branch '2.7': closes bpo-34400: Fix undefined behavior in parsetok(). (GH-4439) https://github.com/python/cpython/commit/00aebabc7139741fadfe877372c733a2160c7dbd -- _