[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 ___ ___

[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__

[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 ___ ___

[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

[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

[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,

[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)

[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:

[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')

[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 ___

[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

[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

[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. --

[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

[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,

[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

[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

[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 ___

[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:

[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

[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:

[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:

[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

[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 ___

[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:

[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

[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

[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

[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 ___ ___

[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:

[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

[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)

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

2018-08-23 Thread Conrad

New submission from Conrad :

$ pip freeze | grep beautifulsoup4
beautifulsoup4==4.6.3

$ python
Python 3.7.0 (default, Jul 23 2018, 20:24:19)
[Clang 9.0.0 (clang-900.0.39.2)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from 

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

2018-08-23 Thread Berker Peksag

Berker Peksag  added the comment:

Thanks for the report.

HTMLParser.error() was supposed to raise an exception, but the BeautifulSoup 
project just prints a warning here:

def error(self, msg):
warnings.warn(msg)



[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

[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. >>>

[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

[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

[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:

[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:

[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:

[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:

[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)

[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:

[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:

[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:

[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)

[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:

[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)

[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

[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:

[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

[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 ___

[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:

[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:

[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

[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)

[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:

[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)

[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 ___ ___

[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)

[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

[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)

[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:

[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

[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)

[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)

[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)

[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)

[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 ___ ___

[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

[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

[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

[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

[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

[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 ___ ___

[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 ___

[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:

[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 ___ ___

[issue34436] Overallocation is never disabled in _PyBytes_FormatEx()

2018-08-23 Thread STINNER Victor
STINNER Victor added the comment: I ran a microbenchmark on PR 8826: ./python -m perf timeit -s 'fmt=b"%s%s"; args=(b"1", b"x"*(1024*1024))' 'fmt % args' -v -o patch.json $ python3 -m perf compare_to ref.json patch.json Mean +- std dev: [ref] 325 us +- 7 us -> [patch] 36.2 us +- 1.1 us:

[issue34436] Overallocation is never disabled in _PyBytes_FormatEx()

2018-08-23 Thread miss-islington
miss-islington added the comment: New changeset 042082692b7fab7361a8c9d0fb792532bb77e293 by Miss Islington (bot) in branch '3.7': bpo-34436: Fix check that disables overallocation for the last fmt specifier (GH-8826)

[issue34436] Overallocation is never disabled in _PyBytes_FormatEx()

2018-08-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset ccd99752675042bd5f67d332c5b0ed85ba1f2da3 by Victor Stinner (Alexey Izbyshev) in branch 'master': bpo-34436: Fix check that disables overallocation for the last fmt specifier (GH-8826)

[issue34436] Overallocation is never disabled in _PyBytes_FormatEx()

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

[issue34436] Overallocation is never disabled in _PyBytes_FormatEx()

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

[issue34436] Overallocation is never disabled in _PyBytes_FormatEx()

2018-08-23 Thread STINNER Victor
STINNER Victor added the comment: bytes % args has been optimized using the _PyBytesWriter API in bpo-25349: commit fa7762ec066aa3632a25b6a52bb7597b8f17c2f3. I converted my old benchmark from bpo-25349 to my new perf module:

[issue34436] Overallocation is never disabled in _PyBytes_FormatEx()

2018-08-23 Thread miss-islington
miss-islington added the comment: New changeset 945771b3c7a08f0b2b875905d517a1566477bfaf by Miss Islington (bot) in branch '3.6': bpo-34436: Fix check that disables overallocation for the last fmt specifier (GH-8826)

[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:

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

2018-08-23 Thread STINNER Victor
STINNER Victor added the comment: I'm not sure that the pytime.c change in commit a853a8ba7850381d49b284295dd6f0dc491dbe44 is correct: diff --git a/Python/pytime.c b/Python/pytime.c index 8979adc219..f3c913226c 100644 --- a/Python/pytime.c +++ b/Python/pytime.c @@ -276,7 +278,6 @@ static int

[issue6700] inspect.getsource() returns incorrect source lines at the module level

2018-08-23 Thread Tal Einat
Change by Tal Einat : -- versions: +Python 3.8 -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6700] inspect.getsource() returns incorrect source lines at the module level

2018-08-23 Thread Tal Einat
Change by Tal Einat : -- versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2018-08-23 Thread STINNER Victor
STINNER Victor added the comment: It seems like a regression introduced by: commit a853a8ba7850381d49b284295dd6f0dc491dbe44 Author: Benjamin Peterson Date: Thu Sep 7 11:13:59 2017 -0700 bpo-31373: fix undefined floating-point demotions (#3396) --

[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 : -- keywords: +patch pull_requests: +8341 stage: -> patch review ___ Python tracker ___ ___

[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:

[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

[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:

[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 ___

[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:

[issue34436] Overallocation is never disabled in _PyBytes_FormatEx()

2018-08-23 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: Thank you for benchmarking and merging, 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: 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 --

  1   2   >