[issue34468] An always-false condition in range_repr() from Objects/rangeobject.c

2018-08-23 Thread miss-islington
miss-islington added the comment: New changeset 902f1618388280eeeb3957b273f0ccb3df938723 by Miss Islington (bot) in branch '3.6': closes bpo-34468: Objects/rangeobject.c: Fix an always-false condition in range_repr() (GH-8880) https://github.com/python/cpython/commit/902f1618388280eeeb3957b2

[issue34468] An always-false condition in range_repr() from Objects/rangeobject.c

2018-08-23 Thread miss-islington
miss-islington added the comment: New changeset d9e1abf8d36da19f074f16046c4a9b5fe54cc083 by Miss Islington (bot) in branch '3.7': closes bpo-34468: Objects/rangeobject.c: Fix an always-false condition in range_repr() (GH-8880) https://github.com/python/cpython/commit/d9e1abf8d36da19f074f1604

[issue18560] builtin_sum() doesn't check return value of PyLong_FromLong()

2018-08-23 Thread Benjamin Peterson
Benjamin Peterson added the comment: Backported to 2.7 in 67dafd5c202cd529e209bf3f35e022ce766709eb. (I messed up the commit message.) -- nosy: +benjamin.peterson versions: +Python 2.7 ___ Python tracker ___

[issue34474] Python/bltinmodule.c: Missing NULL check in builtin_sum_impl()

2018-08-23 Thread miss-islington
miss-islington added the comment: New changeset 45ee452751d095d665717bafb61cfd7c65b729b4 by Miss Islington (bot) in branch '2.7': closes bpo-34474: Python/bltinmodule.c: Add missing NULL check in builtin_sum_impl() (GH-8872) https://github.com/python/cpython/commit/45ee452751d095d665717bafb6

[issue34474] Python/bltinmodule.c: Missing NULL check in builtin_sum_impl()

2018-08-23 Thread miss-islington
miss-islington added the comment: New changeset 7d470f3f24d0c091cf1da4f13695c6bb3200a713 by Miss Islington (bot) in branch '3.6': closes bpo-34474: Python/bltinmodule.c: Add missing NULL check in builtin_sum_impl() (GH-8872) https://github.com/python/cpython/commit/7d470f3f24d0c091cf1da4f136

[issue34474] Python/bltinmodule.c: Missing NULL check in builtin_sum_impl()

2018-08-23 Thread miss-islington
miss-islington added the comment: New changeset a59036365b304d43bba0f050fa9a7d76100e0ae1 by Miss Islington (bot) in branch '3.7': closes bpo-34474: Python/bltinmodule.c: Add missing NULL check in builtin_sum_impl() (GH-8872) https://github.com/python/cpython/commit/a59036365b304d43bba0f050fa

[issue31861] add aiter() and anext() functions to operator module

2018-08-23 Thread Joshua Bronson
Joshua Bronson added the comment: Updating the issue title to reflect the decision to add these to the operator module rather than to built-ins. Submitted a PR here: https://github.com/python/cpython/pull/8895 -- title: aiter() and anext() built-in functions -> add aiter() and anext(

[issue31861] aiter() and anext() built-in functions

2018-08-23 Thread Joshua Bronson
Change by Joshua Bronson : -- keywords: +patch pull_requests: +8368 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue34477] Objects/typeobject.c: Missing NULL check in type_init()

2018-08-23 Thread miss-islington
miss-islington added the comment: New changeset ea21206626d0907e0ecfd3efbb186f14f1a8a5d4 by Miss Islington (bot) in branch '2.7': closes bpo-34477: Objects/typeobject.c: Add missing NULL check to type_init() (GH-8876) https://github.com/python/cpython/commit/ea21206626d0907e0ecfd3efbb186f14f

[issue34477] Objects/typeobject.c: Missing NULL check in type_init()

2018-08-23 Thread miss-islington
miss-islington added the comment: New changeset fbe359a5e0b22e96065d24d033bebf27cdb374be by Miss Islington (bot) in branch '3.6': closes bpo-34477: Objects/typeobject.c: Add missing NULL check to type_init() (GH-8876) https://github.com/python/cpython/commit/fbe359a5e0b22e96065d24d033bebf27c

[issue34468] An always-false condition in range_repr() from Objects/rangeobject.c

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

[issue34468] An always-false condition in range_repr() from Objects/rangeobject.c

2018-08-23 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 7ecae3ca0bda3cacf3b0125bae0bc718a17cc071 by Benjamin Peterson (Alexey Izbyshev) in branch 'master': closes bpo-34468: Objects/rangeobject.c: Fix an always-false condition in range_repr() (GH-8880) https://github.com/python/cpython/commit/7ec

[issue34468] An always-false condition in range_repr() from Objects/rangeobject.c

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

[issue34477] Objects/typeobject.c: Missing NULL check in type_init()

2018-08-23 Thread miss-islington
miss-islington added the comment: New changeset 609062a23f018f4ffc180a88435d61f871165518 by Miss Islington (bot) in branch '3.7': closes bpo-34477: Objects/typeobject.c: Add missing NULL check to type_init() (GH-8876) https://github.com/python/cpython/commit/609062a23f018f4ffc180a88435d61f87

[issue18560] builtin_sum() doesn't check return value of PyLong_FromLong()

2018-08-23 Thread Benjamin Peterson
Change by Benjamin Peterson : -- pull_requests: +8365 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue34474] Python/bltinmodule.c: Missing NULL check in builtin_sum_impl()

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

[issue34474] Python/bltinmodule.c: Missing NULL check in builtin_sum_impl()

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

[issue34474] Python/bltinmodule.c: Missing NULL check in builtin_sum_impl()

2018-08-23 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 2b824b2538c4a5f9f520c5de8a1eae5a0c181a94 by Benjamin Peterson (Alexey Izbyshev) in branch 'master': closes bpo-34474: Python/bltinmodule.c: Add missing NULL check in builtin_sum_impl() (GH-8872) https://github.com/python/cpython/commit/2b824

[issue34474] Python/bltinmodule.c: Missing NULL check in builtin_sum_impl()

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

[issue34477] Objects/typeobject.c: Missing NULL check in type_init()

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

[issue34477] Objects/typeobject.c: Missing NULL check in type_init()

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

[issue34477] Objects/typeobject.c: Missing NULL check in type_init()

2018-08-23 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset f6247aac08c1a79d0479145a405718bb76dba434 by Benjamin Peterson (Alexey Izbyshev) in branch 'master': closes bpo-34477: Objects/typeobject.c: Add missing NULL check to type_init() (GH-8876) https://github.com/python/cpython/commit/f6247aac08c1

[issue34477] Objects/typeobject.c: Missing NULL check in type_init()

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

[issue34465] ipaddress should accept bytearray in addition to bytes

2018-08-23 Thread Prudvi RajKumar Maddala
Prudvi RajKumar Maddala added the comment: I think it should be supported too. How about a list of bytes? eg : [127,0,0,1].. Should that be supported as well? -- nosy: +prudvinit ___ Python tracker

[issue34483] eval() raises NameError: name '...' is not defined

2018-08-23 Thread Steven D'Aprano
Change by Steven D'Aprano : -- nosy: +steven.daprano ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue34483] eval() raises NameError: name '...' is not defined

2018-08-23 Thread Eric V. Smith
Eric V. Smith added the comment: I believe you're seeing this: https://docs.python.org/3/reference/executionmodel.html#naming-and-binding See the paragraph that starts with "Class definition blocks and arguments to exec() and eval() are special in the context of name resolution", and the ex

[issue26467] Add async magic method support to unittest.mock.Mock

2018-08-23 Thread Julian Mehnle
Change by Julian Mehnle : -- nosy: +jmehnle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue28069] signalmodule.c does "is" comparisons for SIG_IGN and SIG_DFL

2018-08-23 Thread Berker Peksag
Change by Berker Peksag : -- components: +Library (Lib) nosy: +berker.peksag ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue28206] signal.Signals not documented

2018-08-23 Thread Berker Peksag
Change by Berker Peksag : -- nosy: +berker.peksag type: -> enhancement versions: +Python 3.7, Python 3.8 -Python 3.5 ___ Python tracker ___ ___

[issue34485] _PyCoreConfig: add stdio_encoding and stdio_errors

2018-08-23 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +8358 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue34485] _PyCoreConfig: add stdio_encoding and stdio_errors

2018-08-23 Thread STINNER Victor
New submission from STINNER Victor : Currently, the code to select the encoding and error handler of sys.stdin, sys.stdout and sys.stderr is run later in Py_Initialize(). I propose to move most of this code into _PyCoreConfig_Read() and add stdio_encoding and stdio_errors to _PyCoreConfig to

[issue34468] An always-false condition in range_repr() from Objects/rangeobject.c

2018-08-23 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: Thank you, Brett, I've submitted a PR. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue34468] An always-false condition in range_repr() from Objects/rangeobject.c

2018-08-23 Thread Alexey Izbyshev
Change by Alexey Izbyshev : -- keywords: +patch pull_requests: +8357 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue34484] Unicode HOWTO incorrectly refers to Private Use Area for surrogateescape

2018-08-23 Thread Mark Dickinson
Mark Dickinson added the comment: Whoops. Sorry, that should be #4153. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34484] Unicode HOWTO incorrectly refers to Private Use Area for surrogateescape

2018-08-23 Thread Mark Dickinson
Mark Dickinson added the comment: For history, this text was introduced as a result of issue #4163. -- ___ Python tracker ___ ___ P

[issue34484] Unicode HOWTO incorrectly refers to Private Use Area for surrogateescape

2018-08-23 Thread Mark Dickinson
New submission from Mark Dickinson : The Unicode HOWTO currently has contains this text in the "Files in an Unknown Encoding" section [1]: > The surrogateescape error handler will decode any non-ASCII bytes as code > points in the Unicode Private Use Area ranging from U+DC80 to U+DCFF. These >

[issue30717] Add unicode grapheme cluster break algorithm

2018-08-23 Thread Paul Ganssle
Change by Paul Ganssle : -- nosy: +p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue27195] Crash when RawIOBase.write(b) evaluates b.format

2018-08-23 Thread Stefan Krah
Stefan Krah added the comment: PyBUF_RECORDS pulls in PyBUF_STRIDES, which should IMO not be done in a stable release. Maybe (PyBUF_CONTIG_RO|PyBUF_FORMAT), but I'm uneasy even about that. The potential for breakage is huge. -- ___ Python tracker

[issue26901] Argument Clinic test is broken

2018-08-23 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +8356 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue27195] Crash when RawIOBase.write(b) evaluates b.format

2018-08-23 Thread Zackery Spytz
Zackery Spytz added the comment: Ping. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue33187] Document ElementInclude (XInclude) support in ElementTree

2018-08-23 Thread Stefan Behnel
Change by Stefan Behnel : -- versions: +Python 3.4, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___ ___ Python-bugs-list m

[issue34468] An always-false condition in range_repr() from Objects/rangeobject.c

2018-08-23 Thread Brett Cannon
Brett Cannon added the comment: I think your second proposal sounds about right, Alexey. -- nosy: +brett.cannon ___ Python tracker ___

[issue34473] pip is unusable on Windows 10 1803 - SHA-1 certificates are untrusted

2018-08-23 Thread Matt Tuttle
Matt Tuttle added the comment: Yep. You are right it is a firewall issue. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

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

2018-08-23 Thread Paul Ganssle
Change by Paul Ganssle : -- nosy: +p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue34423] Overflow when casting from double to time_t, and_PyTime_t.

2018-08-23 Thread Paul Ganssle
Change by Paul Ganssle : -- nosy: +p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue32876] HTMLParser raises exception on some inputs

2018-08-23 Thread Berker Peksag
Berker Peksag added the comment: Issue 34480 is another relevant issue. The HTMLParse method doesn't have an error() method and it doesn't raise any exceptions, but its base class still does. I think there is a compatibility problem between html.parser.HTMLParser() and _markupbase.ParserBase

[issue34473] pip is unusable on Windows 10 1803 - SHA-1 certificates are untrusted

2018-08-23 Thread Matt Tuttle
Matt Tuttle added the comment: Thanks Steve, you were right it is a firewall issue that impacted both pip and conda simultaneously. ☹ -- ___ Python tracker ___ ___

[issue34473] pip is unusable on Windows 10 1803 - SHA-1 certificates are untrusted

2018-08-23 Thread Matt Tuttle
Matt Tuttle added the comment: It was a firewall issue that affected pip and conda in the same way. -- stage: -> resolved status: open -> closed ___ Python tracker ___ __

[issue31844] HTMLParser: undocumented not implemented method

2018-08-23 Thread Berker Peksag
Change by Berker Peksag : -- stage: patch review -> test needed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue31844] HTMLParser: undocumented not implemented method

2018-08-23 Thread Berker Peksag
Berker Peksag added the comment: After triaging issue 34480, I realized that we can't simply remove the error() method because the _markupbase.ParserBase() class still uses it. I've just closed PR 8562. -- ___ Python tracker

[issue34480] _markupbase.py fails with UnboundLocalError on invalid keyword in marked section

2018-08-23 Thread Berker Peksag
Change by Berker Peksag : -- status: -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue34480] _markupbase.py fails with UnboundLocalError on invalid keyword in marked section

2018-08-23 Thread Berker Peksag
Change by Berker Peksag : -- Removed message: https://bugs.python.org/msg323967 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue34482] datetime: Tests for potential crashes due to non-UTF-8-encodable strings

2018-08-23 Thread Alexey Izbyshev
Change by Alexey Izbyshev : -- pull_requests: +8355 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue34482] datetime: Tests for potential crashes due to non-UTF-8-encodable strings

2018-08-23 Thread Alexey Izbyshev
Change by Alexey Izbyshev : -- keywords: +patch pull_requests: +8353 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue34454] datetime: NULL dereference in fromisoformat() on PyUnicode_AsUTF8AndSize() failure

2018-08-23 Thread Alexey Izbyshev
Change by Alexey Izbyshev : -- pull_requests: +8354 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue34483] eval() raises NameError: name '...' is not defined

2018-08-23 Thread Alex
New submission from Alex : Builtin eval() function raises NameError on a valid expression: --- example of bug on Python 3.4 Python 3.4.5 (default, May 29 2017, 15:17:55) [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] on linux Type "help", "copyright", "credits" or "license" for more information. >>>

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

2018-08-23 Thread Alexey Izbyshev
New submission from Alexey Izbyshev : The C datetime implementation uses PyUnicode_AsUTF8AndSize() in wrap_strftime() and rejects strings containing surrogate code points (0xD800 - 0xDFFF) since they can't be encoded in UTF-8. On the other hand, the pure-Python datetime implementation doesn't

[issue34482] datetime: Tests for potential crashes due to non-UTF-8-encodable strings

2018-08-23 Thread Alexey Izbyshev
New submission from Alexey Izbyshev : This is a follow-up of #34454. 'datetime' extension module attempts to encode input strings into UTF-8 in several places, which requires special care because some valid Python strings can't be represented in UTF-8. It makes sense to add more tests for met

[issue34347] AIX: test_utf8_mode.test_cmd_line fails

2018-08-23 Thread Michael Felt
Michael Felt added the comment: On 23/08/2018 12:51, STINNER Victor wrote: > STINNER Victor added the comment: > > Your issue is about decoding command line argument which is done from main() > function. It doesn't use Python codecs, but functions like Py_DecodeLocale(). This is beyond my und

[issue34454] datetime: NULL dereference in fromisoformat() on PyUnicode_AsUTF8AndSize() failure

2018-08-23 Thread Tal Einat
Tal Einat added the comment: Thanks for the report and initial patch, Alexey! Thanks for the followup and final PR, Paul! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue34423] Overflow when casting from double to time_t, and_PyTime_t.

2018-08-23 Thread Michał Radwański
Michał Radwański added the comment: Although you're right - this issue is specific to pytime.c, when _Py_InIntegralTypeRange() is used with a double, it is actually true that _Py_InIntegralTypeRange() is used with double, in pytime.c only (as a quick recursive grep discovers). Perhaps the ma

[issue34454] datetime: NULL dereference in fromisoformat() on PyUnicode_AsUTF8AndSize() failure

2018-08-23 Thread miss-islington
miss-islington added the comment: New changeset 89b1654e0bc7bc69709dca86dd4c92eb7122ac7e by Miss Islington (bot) in branch '3.7': bpo-34454: fix .fromisoformat() methods crashing on inputs with surrogate code points (GH-8862) https://github.com/python/cpython/commit/89b1654e0bc7bc69709dca86d

[issue34473] pip is unusable on Windows 10 1803 - SHA-1 certificates are untrusted

2018-08-23 Thread Steve Dower
Steve Dower added the comment: Can you be more precise about which versions are affected and any other system configuration you have (firewalls, network security software, enterprise configs, etc.)? I have been using pip quite happily on 1803, so it's certainly not widespread enough to just

[issue34479] ArgumentParser subparser error display at the wrong level

2018-08-23 Thread Siming Yuan
New submission from Siming Yuan : If you take the example from https://docs.python.org/3/library/argparse.html#argparse.ArgumentParser.add_subparsers # create the top-level parser parser = argparse.ArgumentParser(prog='PROG') parser.add_argument('--foo', action='store_true', help='foo help') su

[issue34478] Possibly misleading/wrong documentation about PyModuleDef.m_free

2018-08-23 Thread Segev Finer
New submission from Segev Finer : This section in the documentation https://docs.python.org/3.7/howto/cporting.html#module-initialization-and-state shows how to implement an extension module that works for both Python 2 and 3. It also shows how to use m_size to manage module state instead of

[issue34454] datetime: NULL dereference in fromisoformat() on PyUnicode_AsUTF8AndSize() failure

2018-08-23 Thread Tal Einat
Tal Einat added the comment: New changeset 096329f0b2bf5e3f0a16363aa631d993ce078737 by Tal Einat (Paul Ganssle) in branch 'master': bpo-34454: fix .fromisoformat() methods crashing on inputs with surrogate code points (GH-8862) https://github.com/python/cpython/commit/096329f0b2bf5e3f0a16363

[issue34454] datetime: NULL dereference in fromisoformat() on PyUnicode_AsUTF8AndSize() failure

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

[issue11192] test_socket error on AIX

2018-08-23 Thread Michael Felt
Michael Felt added the comment: I nearly have a patch - to resolve all the remaining test_socket() issues with AIX. However, this (new?) issue remains: f = lambda a: inet_pton(AF_INET6, a) assertInvalid = lambda a: self.assertRaises( (OSError, ValueError), f, a

[issue34448] incomplete/missing message from configure.ac for usable wchar_t

2018-08-23 Thread Berker Peksag
Berker Peksag added the comment: The message is a bit more descriptive if wchar_t isn't usable: > checking whether wchar_t is signed... yes > no usable wchar_t found I'm not sure if it's worth to backport to 3.6, but it's a nice improvement for 3.7 and master branches. Also, it simplifies th

[issue34477] Objects/typeobject.c: Missing NULL check in type_init()

2018-08-23 Thread Alexey Izbyshev
Change by Alexey Izbyshev : -- keywords: +patch pull_requests: +8351 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue34477] Objects/typeobject.c: Missing NULL check in type_init()

2018-08-23 Thread Alexey Izbyshev
New submission from Alexey Izbyshev : The return value of PyTuple_GetSlice() at https://github.com/python/cpython/blob/48ce4897f8f8d91d948ecd1241ffab002df2be9e/Objects/typeobject.c#L2297 is not checked for NULL and then dereferenced. Reported by Svace static analyzer. Currently, PyTuple_GetS

[issue34476] asyncio.sleep(0) not documented

2018-08-23 Thread Hrvoje Nikšić
Hrvoje Nikšić added the comment: Also, the "Create a coroutine ..." wording in the current documentation is a bit strange - sleep() is already marked as a coroutine, and documentation of other coroutines simply state their effect in imperative. --

[issue34476] asyncio.sleep(0) not documented

2018-08-23 Thread Hrvoje Nikšić
New submission from Hrvoje Nikšić : Looking at the implementation and at the old issue at https://github.com/python/asyncio/issues/284 shows that asyncio.sleep special-cases asyncio.sleep(0) to mean "yield control to the event loop" without incurring additional overhead of sleeping. However, t

[issue34474] Python/bltinmodule.c: Missing NULL check in builtin_sum_impl()

2018-08-23 Thread Berker Peksag
Berker Peksag added the comment: Personally I wouldn't bother fixing 2.7, but let's see what other core devs think. -- ___ Python tracker ___

[issue34475] functools.partial objects have no __qualname__ attribute

2018-08-23 Thread Chris Jerdonek
New submission from Chris Jerdonek : functools.partial objects have no __qualname__ attribute. This means, for example, that code expecting a callable that logs the __qualname__ attribute can break when passed a functools.partial object. Example: >>> import functools >>> int.__qualname__ 'in

[issue34474] Python/bltinmodule.c: Missing NULL check in builtin_sum_impl()

2018-08-23 Thread Alexey Izbyshev
Change by Alexey Izbyshev : -- keywords: +patch pull_requests: +8350 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue34474] Python/bltinmodule.c: Missing NULL check in builtin_sum_impl()

2018-08-23 Thread Alexey Izbyshev
New submission from Alexey Izbyshev : The return value of PyFloat_FromDouble() at https://github.com/python/cpython/blob/48ce4897f8f8d91d948ecd1241ffab002df2be9e/Python/bltinmodule.c#L2403 is not checked for NULL and then dereferenced. Reported by Svace static analyzer. A similar issue in an

[issue34473] pip is unusable on Windows 10 1803 - SHA-1 certificates are untrusted

2018-08-23 Thread Matt Tuttle
New submission from Matt Tuttle : Running pip install ANYTHING results in an SSL failure on Windows 10 1803 because SHA-1 certificates are untrusted. -- components: Installation, Windows messages: 323945 nosy: mtuttle, paul.moore, steve.dower, tim.golden, zach.ware priority: normal sev

[issue34412] strsignal(3) does not exist on HP-UX

2018-08-23 Thread Berker Peksag
Change by Berker Peksag : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue34412] strsignal(3) does not exist on HP-UX

2018-08-23 Thread Berker Peksag
Berker Peksag added the comment: New changeset 48ce4897f8f8d91d948ecd1241ffab002df2be9e by Berker Peksag (Michael Osipov) in branch 'master': bpo-34412: Make signal.strsignal() work on HP-UX (GH-8786) https://github.com/python/cpython/commit/48ce4897f8f8d91d948ecd1241ffab002df2be9e

[issue34472] zipfile: does not include optional descriptor signature

2018-08-23 Thread Silas Sewell
Change by Silas Sewell : -- keywords: +patch pull_requests: +8348 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-lis

[issue34472] zipfile: does not include optional descriptor signature

2018-08-23 Thread Silas Sewell
New submission from Silas Sewell : When adding a fileobj that is not seekable to a zip using the zipfile module, the optional signature value 0x08074b50 is not included. This breaks certain zip implementations, including the builtin MacOS Archive Utility. See https://pkware.cachefly.net/webdo

[issue34347] AIX: test_utf8_mode.test_cmd_line fails

2018-08-23 Thread STINNER Victor
STINNER Victor added the comment: Your issue is about decoding command line argument which is done from main() function. It doesn't use Python codecs, but functions like Py_DecodeLocale(). > Question 1: why is windows excluded? Because it does not use UTF-8 as it's > default (it's default is

[issue34347] AIX: test_utf8_mode.test_cmd_line fails

2018-08-23 Thread STINNER Victor
STINNER Victor added the comment: I fixed bpo-34207. -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue34170] Py_Initialize(): computing path configuration must not have side effect (PEP 432)

2018-08-23 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue34207] test_cmd_line test_utf8_mode test_warnings fail in all FreeBSD 3.x (3.8) buildbots

2018-08-23 Thread STINNER Victor
STINNER Victor added the comment: The regression should now be fixed in 3.7 and master branches. -- ___ Python tracker ___ ___ Pyth

[issue34207] test_cmd_line test_utf8_mode test_warnings fail in all FreeBSD 3.x (3.8) buildbots

2018-08-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset 80a0ebaa8385988b1d2d71ed1f548fc32ad7 by Victor Stinner in branch '3.7': bpo-34207: Fix pymain_read_conf() for UTF-8 Mode (GH-8868) (GH-8870) https://github.com/python/cpython/commit/80a0ebaa8385988b1d2d71ed1f548fc32ad7 --

[issue34170] Py_Initialize(): computing path configuration must not have side effect (PEP 432)

2018-08-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset 80a0ebaa8385988b1d2d71ed1f548fc32ad7 by Victor Stinner in branch '3.7': bpo-34207: Fix pymain_read_conf() for UTF-8 Mode (GH-8868) (GH-8870) https://github.com/python/cpython/commit/80a0ebaa8385988b1d2d71ed1f548fc32ad7 --

[issue34207] test_cmd_line test_utf8_mode test_warnings fail in all FreeBSD 3.x (3.8) buildbots

2018-08-23 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +8346 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue34170] Py_Initialize(): computing path configuration must not have side effect (PEP 432)

2018-08-23 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +8347 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue34207] test_cmd_line test_utf8_mode test_warnings fail in all FreeBSD 3.x (3.8) buildbots

2018-08-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset 89487f51b8d6ba8a55f5de0ed689e46fefe73cc9 by Victor Stinner in branch 'master': bpo-34207: Fix pymain_read_conf() for UTF-8 Mode (GH-8868) https://github.com/python/cpython/commit/89487f51b8d6ba8a55f5de0ed689e46fefe73cc9 -- ___

[issue34170] Py_Initialize(): computing path configuration must not have side effect (PEP 432)

2018-08-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset 89487f51b8d6ba8a55f5de0ed689e46fefe73cc9 by Victor Stinner in branch 'master': bpo-34207: Fix pymain_read_conf() for UTF-8 Mode (GH-8868) https://github.com/python/cpython/commit/89487f51b8d6ba8a55f5de0ed689e46fefe73cc9 -- ___

[issue34207] test_cmd_line test_utf8_mode test_warnings fail in all FreeBSD 3.x (3.8) buildbots

2018-08-23 Thread STINNER Victor
STINNER Victor added the comment: I wrote PR 8867 but it doesn't fix all cases, so I abandonned it. Then I wrote PR 8868 which sets Py_UTF8Mode in pymain_read_conf() and should fix the issue. The root issue is that we have C functions which depend on the global configuration variables like

[issue34471] _datetime: Missing NULL check in tzinfo_from_isoformat_results()

2018-08-23 Thread Alexey Izbyshev
Change by Alexey Izbyshev : -- keywords: +patch pull_requests: +8345 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue34471] _datetime: Missing NULL check in tzinfo_from_isoformat_results()

2018-08-23 Thread Alexey Izbyshev
New submission from Alexey Izbyshev : The return value of new_delta() is not checked for NULL at https://github.com/python/cpython/blob/ccd99752675042bd5f67d332c5b0ed85ba1f2da3/Modules/_datetimemodule.c#L1292 and then dereferenced. Reported by Svace static analyzer. -- components: Ex

[issue34466] socket.settimeout working incorrectly for connect() method of AF_UNIX socket

2018-08-23 Thread Fedor Korotkiy
Fedor Korotkiy added the comment: Hello Benjamin. That would be appropriate workaround. Maybe we should update docs to mention it? -- ___ Python tracker ___

[issue34207] test_cmd_line test_utf8_mode test_warnings fail in all FreeBSD 3.x (3.8) buildbots

2018-08-23 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +8343 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue34170] Py_Initialize(): computing path configuration must not have side effect (PEP 432)

2018-08-23 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +8344 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue34207] test_cmd_line test_utf8_mode test_warnings fail in all FreeBSD 3.x (3.8) buildbots

2018-08-23 Thread STINNER Victor
STINNER Victor added the comment: I confirm that "LC_ALL= LANG= LC_CTYPE= ./python -m test -v test_cmd_line -m test_non_ascii" fails on FreeBSD on the master branch, whereas it pass before commit d19d8d5279f156bc8f6736b5f16f069879b9519b. This commit introduced the regression. Thanks for th

[issue34170] Py_Initialize(): computing path configuration must not have side effect (PEP 432)

2018-08-23 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +8342 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

  1   2   >