[issue2651] Strings passed to KeyError do not round trip

2017-10-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: A new Stackoverflow question gives a better illustration of how special-casing KeyError can be a nuisance. https://stackoverflow.com/questions/46892261/new-line-on-error-message-in-idle-python-3-3/46899120#46899120 >From a current repository

[issue28936] test_global_err_then_warn in test_syntax is no longer valid

2017-10-23 Thread Guido van Rossum
Guido van Rossum added the comment: Am I needed here? -- nosy: -Jeremy.Hylton ___ Python tracker ___

[issue31856] Unexpected behavior of re module when VERBOSE flag is set

2017-10-23 Thread Bob Kline
New submission from Bob Kline : According to the documentation of the re module, "When this flag [re.VERBOSE] has been specified, whitespace within the RE string is ignored, except when the whitespace is in a character class or preceded by an unescaped backslash; this

[issue31856] Unexpected behavior of re module when VERBOSE flag is set

2017-10-23 Thread Matthew Barnett
Matthew Barnett added the comment: Your verbose examples put the pattern into raw triple-quoted strings, which is OK, but their first character is a backslash, which makes the next character (a newline) an escaped literal whitespace character. Escaped whitespace is

[issue31856] Unexpected behavior of re module when VERBOSE flag is set

2017-10-23 Thread Bob Kline
Bob Kline added the comment: I had been under the impression that "escaped" in this context meant that an escape character (the backslash) was part of the string value for the regular expression (there's a little bit of overloading going on with that word). Thanks for

[issue31857] Make the behavior of USE_STACKCHECK deterministic

2017-10-23 Thread pdox
New submission from pdox : USE_STACKCHECK is a Windows-only feature which provides additional safety against C stack overflow by periodically calling PyOS_CheckStack to determine whether the current thread is too close to the end of the stack. The way USE_STACKCHECK ensures

[issue31857] Make the behavior of USE_STACKCHECK deterministic

2017-10-23 Thread pdox
Change by pdox : -- keywords: +patch pull_requests: +4069 stage: -> patch review ___ Python tracker ___

[issue31800] datetime.strptime: Support for parsing offsets with a colon

2017-10-23 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Note that #5288 relaxed the whole number of minutes restriction on UTC offsets. Since the goal is to be able to parse the output of .isoformat(), I think %z should accept sub-minute offsets. -- nosy: +belopolsky

[issue18835] Add aligned memory variants to the suite of PyMem functions/macros

2017-10-23 Thread Nathaniel Smith
Nathaniel Smith added the comment: There's also aligned calloc, which no native APIs support but is still quite useful. -- ___ Python tracker

[issue31854] Add mmap.ACCESS_DEFAULT to namespace

2017-10-23 Thread Justus Schwabedal
New submission from Justus Schwabedal : I propose to add mmap.ACCESS_DEFAULT into the namespace. Accessing the default value might be necessary, if one needs to overwrite an `ACCESS` keyword argument. -- components: Extension Modules messages: 304839 nosy:

[issue31853] Use super().method instead of socket.method in SSLSocket

2017-10-23 Thread Erik Aronesty
New submission from Erik Aronesty : I asked on #python-dev and was told that it's most likely due to legacy reasons that the class has things like `socket.__init__` instead of `super().__init__` -- assignee: christian.heimes components: SSL messages: 304838 nosy:

[issue27141] Fix collections.UserList shallow copy

2017-10-23 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4065 stage: needs patch -> patch review ___ Python tracker ___

[issue18835] Add aligned memory variants to the suite of PyMem functions/macros

2017-10-23 Thread Stefan Krah
Stefan Krah added the comment: On Mon, Oct 23, 2017 at 09:16:08PM +, Antoine Pitrou wrote: > > The Arrow memory format for example recommends 64 bit alignment. > > I presume you mean 64 bytes? Yes, I was typing too fast. --

[issue31653] Don't release the GIL if we can acquire a multiprocessing semaphore immediately

2017-10-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset 828ca59208af0b1b52a328676c5cc0c5e2e999b0 by Victor Stinner in branch 'master': bpo-31653: Remove deadcode in semlock_acquire() (#4091) https://github.com/python/cpython/commit/828ca59208af0b1b52a328676c5cc0c5e2e999b0

[issue27141] Fix collections.UserList shallow copy

2017-10-23 Thread Bar Harel
Bar Harel added the comment: Done :-) Seems like I forgot to edit the news though, I'll try to edit it. -- ___ Python tracker ___

[issue28253] calendar.prcal(9999) output has a problem

2017-10-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: -982 ___ Python tracker ___ ___

[issue31847] Fix commented out tests in test_syntax

2017-10-23 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4066 ___ Python tracker ___

[issue31854] Add mmap.ACCESS_DEFAULT to namespace

2017-10-23 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +4064 stage: -> patch review ___ Python tracker ___

[issue31855] mock_open is not compatible with read(n) (and pickle.load)

2017-10-23 Thread Ron Rothman
New submission from Ron Rothman : mock.mock_open works as expected when reading the entire file (read()) or when reading a single line (readline()), but it seems to not support reading a number of bytes (read(n)). These work as expected: from mock import mock_open,

[issue18835] Add aligned memory variants to the suite of PyMem functions/macros

2017-10-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: By the way: > The Arrow memory format for example recommends 64 bit alignment. I presume you mean 64 bytes? -- ___ Python tracker

[issue31853] Use super().method instead of socket.method in SSLSocket

2017-10-23 Thread Mads Jensen
Change by Mads Jensen : -- nosy: +madsjensen -earonesty ___ Python tracker ___ ___

[issue31847] Fix commented out tests in test_syntax

2017-10-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 3b66ebe7727dba68c2c6ccf0cd85a4c31255b9b4 by Serhiy Storchaka in branch 'master': bpo-31847: Fix commented out tests in test_syntax. (#4084)

[issue31855] mock_open is not compatible with read(n) (and pickle.load)

2017-10-23 Thread Ron Rothman
Ron Rothman added the comment: Confirmed that the behavior exists in Python 3.6 as well. -- versions: +Python 3.6 ___ Python tracker

[issue31828] Support Py_tss_NEEDS_INIT outside of static initialisation

2017-10-23 Thread Masayuki Yamamoto
Change by Masayuki Yamamoto : -- keywords: +patch pull_requests: +4067 stage: -> patch review ___ Python tracker ___

[issue28936] test_global_err_then_warn in test_syntax is no longer valid

2017-10-23 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- pull_requests: +4068 stage: -> patch review ___ Python tracker ___

[issue31847] Fix commented out tests in test_syntax

2017-10-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset d7604f5d0621c23d037455acd682d0d489455d54 by Serhiy Storchaka (Miss Islington (bot)) in branch '3.6': bpo-31847: Fix commented out tests in test_syntax. (GH-4084) (#4095)

[issue28936] test_global_err_then_warn in test_syntax is no longer valid

2017-10-23 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: OK, I made a PR with the fix and a test that checks the line number for syntax error (so that the original purpose test_global_err_then_warn is preserved). -- ___ Python tracker

[issue29202] Improve dict iteration

2017-10-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: This doesn't meet our criteria for backports. -- assignee: rhettinger -> serhiy.storchaka versions: -Python 3.6 ___ Python tracker

[issue31856] Unexpected behavior of re module when VERBOSE flag is set

2017-10-23 Thread Bob Kline
Bob Kline added the comment: The light finally comes on. I actually *was* putting a backslash into the string value, with the raw flag (which is, of course, what you were trying to tell me). Thanks for your patience. :-) --

[issue28143] ASDL compatibility with Python 3 system interpreter

2017-10-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Do you mind to create a pull request on GitHub Malthe? -- stage: -> needs patch ___ Python tracker

[issue21720] "TypeError: Item in ``from list'' not a string" message

2017-10-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is it all with this issue? -- status: open -> pending ___ Python tracker ___

[issue28509] dict.update allocates too much

2017-10-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: -839 ___ Python tracker ___ ___

[issue27141] Fix collections.UserList shallow copy

2017-10-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I prefer issue27141_patch_rev1_opt1.patch. But now we use GitHub. Do you mind to create a pull request Bar? -- stage: -> needs patch versions: -Python 3.2, Python 3.3, Python 3.4, Python 3.5

[issue28143] ASDL compatibility with Python 3 system interpreter

2017-10-23 Thread Malthe Borch
Change by Malthe Borch : -- pull_requests: +4052 stage: needs patch -> patch review ___ Python tracker ___

[issue28506] Multiprocessing Pool starmap - struct.error: 'i' format requires -2e10<=n<=2e10

2017-10-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Closed as a duplicate of issue17560. -- stage: -> resolved status: open -> closed ___ Python tracker

[issue31845] Envvar PYTHONDONTWRITEBYTECODE is not respected

2017-10-23 Thread Sviatoslav Abakumov
New submission from Sviatoslav Abakumov : Setting PYTHONDONTWRITEBYTECODE doesn't seem to have an effect in Python 3.7.0a2: $ python -V Python 3.7.0a2 $ env PYTHONDONTWRITEBYTECODE=1 python -c 'import sys; print(sys.dont_write_bytecode)' False

[issue31572] Avoid suppressing all exceptions in PyObject_HasAttr()

2017-10-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: hasattr() can return True, False, or raise an exception. But PyObject_HasAttr() just returns an integer: 0 for False, not 0 for True. There is no way to return an error, and existing code doesn't expect that PyObject_HasAttr()

[issue31546] PyOS_InputHook is not called when waiting for input() in Windows

2017-10-23 Thread Lam Yuen Hei
Lam Yuen Hei added the comment: As the fix seems simple, any chance this bug can be fixed in next python 3.6 maintenance release? It is the major roadblock for my application to upgrade to python 3.6. Thanks -- ___ Python

[issue28416] defining persistent_id in _pickle.Pickler subclass causes reference cycle

2017-10-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +4050 stage: -> patch review ___ Python tracker ___

[issue31817] Compilation Error with Python 3.6.1/3.6.3 with Tkinter

2017-10-23 Thread Josh Cullum
Josh Cullum added the comment: Hi Ned, Please see the make logs for _tkinter below: building '_tkinter' extension gcc -pthread -fPIC -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -std=c99 -Wextra -Wno-unused-result

[issue27645] Supporting native backup facility of SQLite

2017-10-23 Thread Cédric Krier
Cédric Krier added the comment: I'm using sqlitebck which provides similar functionality but instead of using a file name to store the backup it uses connection instances. I find it very useful. Here is my use case: to run tests of an application that requires a

[issue26123] http.client status code constants incompatible with Python 3.4

2017-10-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Sebastian. -- ___ Python tracker ___

[issue28416] defining persistent_id in _pickle.Pickler subclass causes reference cycle

2017-10-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 4080 converts bound methods into unbound methods if possible. -- ___ Python tracker

[issue31572] Avoid suppressing all exceptions in PyObject_HasAttr()

2017-10-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +4051 ___ Python tracker ___ ___

[issue31847] Fix commented out tests in test_syntax

2017-10-23 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Two doctest tests in test_syntax are commented out because SyntaxWarning was expected, but doctests couldn't be used for testing them. But now SyntaxError is raised in these cases instead of SyntaxWarning. The proposed PR

[issue31847] Fix commented out tests in test_syntax

2017-10-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +4054 ___ Python tracker ___

[issue28028] Convert warnings to SyntaxWarning in parser

2017-10-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Closed because I don't see ways to do this. -- resolution: -> wont fix stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue30695] add a nomemory_allocator to the _testcapi module

2017-10-23 Thread Xavier de Gaye
Xavier de Gaye added the comment: New changeset aaf6a3dbbdb9754f98d480b468adfcae0f66e3a2 by xdegaye (Miss Islington (bot)) in branch '3.6': [3.6] bpo-30695: Add set_nomemory(start, stop) to _testcapi (GH-2406) (#4083)

[issue31845] PYTHONDONTWRITEBYTECODE and PYTHONOPTIMIZE have no effect

2017-10-23 Thread Sviatoslav Abakumov
Sviatoslav Abakumov added the comment: Looks like PYTHONOPTIMIZE has no effect either: $ python -V Python 3.7.0a2 $ env PYTHONOPTIMIZE=1 python -c 'import sys; print(sys.flags.optimize)' 0 -- title: Envvar PYTHONDONTWRITEBYTECODE is not

[issue30695] add a nomemory_allocator to the _testcapi module

2017-10-23 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4053 stage: -> patch review ___ Python tracker ___

[issue31846] Error in 3.6.3 epub docs

2017-10-23 Thread Nathan Henrie
New submission from Nathan Henrie : I routinely download the epub version of the docs to my computer and mobile devices as an offline copy. The 3.6.3 version reports a big error on the first (and many other pages): > This page contains the following errors: error on line

[issue31572] Avoid suppressing all exceptions in PyObject_HasAttr()

2017-10-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 77af0a3bcab666a356eea2927a8031a7578d60d2 by Serhiy Storchaka in branch '3.6': [3.6] bpo-31572: Get rid of using _PyObject_HasAttrId() in pickle. (GH-3729). (#4081)

[issue30695] add a nomemory_allocator to the _testcapi module

2017-10-23 Thread Xavier de Gaye
Xavier de Gaye added the comment: Test cases in issues #30697 and #30817, back ported to 3.6, need _testcapi.set_nomemory(). -- versions: +Python 3.6 ___ Python tracker

[issue31845] PYTHONDONTWRITEBYTECODE and PYTHONOPTIMIZE have no effect

2017-10-23 Thread Sviatoslav Abakumov
Sviatoslav Abakumov added the comment: It seems 1abcf67[1] is the first bad commit. [1]https://github.com/python/cpython/commit/1abcf6700b4da6207fe859de40c6c1bada6b4fec -- ___ Python tracker

[issue30695] add a nomemory_allocator to the _testcapi module

2017-10-23 Thread Xavier de Gaye
Change by Xavier de Gaye : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue30817] Abort in PyErr_PrintEx() when no memory

2017-10-23 Thread Xavier de Gaye
Change by Xavier de Gaye : -- stage: -> patch review versions: -Python 3.5 ___ Python tracker ___

[issue28564] shutil.rmtree is inefficient due to listdir() instead of scandir()

2017-10-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +4055 ___ Python tracker ___ ___

[issue18835] Add aligned memory variants to the suite of PyMem functions/macros

2017-10-23 Thread Stefan Krah
Stefan Krah added the comment: I need this too. I would like to set this https://github.com/plures/ndtypes/commit/c260fdbae707da0dfefef499621a0a9f37a3e509#diff-2402fff6223084b74d97237c0d620b29R50 to something line PyMem_AlignedAlloc(), because the Python allocator is

[issue31848] "aifc" module does not always initialize "Aifc_read._ssnd_chunk"

2017-10-23 Thread Stephen Paul Chappell
New submission from Stephen Paul Chappell : When Aifc_read runs initfp, it conditionally sets self._ssnd_chunk and is not guaranteed to do so. At the bottom of the method, a check is made to see if the attribute has a false value; and if so, an error is supposed to

[issue18835] Add aligned memory variants to the suite of PyMem functions/macros

2017-10-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Do you need aligned allocation even on small objects? The Python allocator doesn't handle allocations > 512 bytes. -- ___ Python tracker

[issue28660] TextWrapper break_long_words=True, break_on_hyphens=True on long words

2017-10-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is because the current algorithm of breaking on hyphens allows to break only between letters. This prevents breaking dates and times. Perhaps it should be made more lenient in the case of too long word. --

[issue27142] Default int value with xmlrpclib / xmlrpc.client

2017-10-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___

[issue18835] Add aligned memory variants to the suite of PyMem functions/macros

2017-10-23 Thread Stefan Krah
Stefan Krah added the comment: Yes, I think it is partly convenience. I want to set ... ndt_mallocfunc = PyMem_Malloc; ndt_alignedallocfunc = PyMem_AlignedAlloc; ndt_callocfunc = PyMem_Calloc; ndt_reallocfunc = PyMem_Realloc; ndt_freefunc = PyMem_Free; ...

[issue31752] Assertion failure in timedelta() in case of bad __divmod__

2017-10-23 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4056 ___ Python tracker ___

[issue31752] Assertion failure in timedelta() in case of bad __divmod__

2017-10-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 4ffd4653a7ec9c97775472276cf5e159e2366bb2 by Serhiy Storchaka in branch 'master': bpo-31752: Fix possible crash in timedelta constructor called with custom integers. (#3947)

[issue31841] Several methods of collections.UserString do not return instances of UserString or its subclasses

2017-10-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: I would support changing format() and format_map(). The join() method has been around for a long time, so changing it might do more harm than good. -- assignee: -> lisroach nosy: +lisroach, rhettinger versions:

[issue31855] mock_open is not compatible with read(n) (and pickle.load)

2017-10-23 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> michael.foord nosy: +michael.foord ___ Python tracker ___

[issue31847] Fix commented out tests in test_syntax

2017-10-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue27141] Fix collections.UserList shallow copy

2017-10-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: Either of the patches looks fine. I lean a bit towards the opt1 patch. -- assignee: rhettinger -> serhiy.storchaka ___ Python tracker

[issue31858] IDLE: cleanup use of sys.ps1 and never set it.

2017-10-23 Thread Terry J. Reedy
New submission from Terry J. Reedy : This issue is about cleaning up IDLE's use of sys.ps1 for its prompt (sys.ps2 is not used). A. This will make for cleaner code and fix some bugs. B. This will be better for testing. (Some possible changes to pyshell might make sys.ps1

[issue18835] Add aligned memory variants to the suite of PyMem functions/macros

2017-10-23 Thread Benjamin Peterson
Benjamin Peterson added the comment: Having the ability to allocated aligned memory could help avoid some undefined behavior. See #27987 (though, we only need 16-byte alignment there) -- nosy: +benjamin.peterson ___ Python

[issue31653] Don't release the GIL if we can acquire a multiprocessing semaphore immediately

2017-10-23 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +4061 ___ Python tracker ___ ___

[issue30722] Tools/demo/redemo.py broken

2017-10-23 Thread Berker Peksag
Berker Peksag added the comment: New changeset a5f9d24c171c7e3a3715161fd16b747c7dcaf76f by Berker Peksag (Miss Islington (bot)) in branch '3.6': bpo-30722: Make redemo work with Python 3.6+ (GH-2311)

[issue31850] test_nntplib failed with "nntplib.NNTPDataError: line too long"

2017-10-23 Thread STINNER Victor
STINNER Victor added the comment: It also failed on Travis CI: https://mail.python.org/pipermail/python-committers/2017-October/004910.html Other buildbot failures: http://buildbot.python.org/all/#builders/80/builds/17

[issue31822] Document that urllib.parse.{Defrag, Split, Parse}Result are namedtuples

2017-10-23 Thread Éric Araujo
Éric Araujo added the comment: I suggest using :term:`named tuple` for the link (+ an example of using _replace as Mike said) -- ___ Python tracker

[issue31852] Crashes with lines of the form "async \"

2017-10-23 Thread Alexandre Hamelin
New submission from Alexandre Hamelin : Hi. Python 3.6.2 crashes when interpreting lines with the text "async \" (future keyword 'async' and ending with a backslash). Tested in a docker environment (debian jessie). (see github.com/0xquad/docker-python36 if needed)

[issue30722] Tools/demo/redemo.py broken

2017-10-23 Thread Berker Peksag
Berker Peksag added the comment: Thank you, Christoph. I wasn't aware of Tools/demo/redemo.py and I must say it was fun to play with while reviewing PR 2311. -- components: +Demos and Tools -Regular Expressions resolution: -> fixed stage: patch review ->

[issue29438] use after free in key sharing dict

2017-10-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: -960 ___ Python tracker ___ ___

[issue31851] test_subprocess hangs randomly on x86 Windows7 3.x

2017-10-23 Thread STINNER Victor
New submission from STINNER Victor : test_subprocess hanged on the build 46 of x86 Windows7 3.x: http://buildbot.python.org/all/#/builders/58/builds/46 (...) 1:29:55 [405/407] test_cmath passed -- running: test_subprocess (1249 sec) 1:29:58 [406/407] test_pstats

[issue31850] test_nntplib failed with "nntplib.NNTPDataError: line too long"

2017-10-23 Thread STINNER Victor
New submission from STINNER Victor : test_nntplib failed on many buildbots yesterday with the "line too long" error. It may be related to bpo-28971. Example: http://buildbot.python.org/all/#/builders/12/builds/52 (...) test_with_statement

[issue25041] document AF_PACKET socket address format

2017-10-23 Thread Cheryl Sabella
Change by Cheryl Sabella : -- pull_requests: +4062 stage: needs patch -> patch review ___ Python tracker ___

[issue31822] Document that urllib.parse.{Defrag, Split, Parse}Result are namedtuples

2017-10-23 Thread Éric Araujo
Change by Éric Araujo : -- keywords: +easy nosy: +eric.araujo stage: -> needs patch versions: +Python 3.7 ___ Python tracker ___

[issue31822] Document that urllib.parse.{Defrag, Split, Parse}Result are namedtuples

2017-10-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: collections.namedtuples is not a class. -- nosy: +serhiy.storchaka ___ Python tracker

[issue18835] Add aligned memory variants to the suite of PyMem functions/macros

2017-10-23 Thread Stefan Krah
Stefan Krah added the comment: On Mon, Oct 23, 2017 at 05:16:53PM +, STINNER Victor wrote: > Memory allocated by PyMem_AlignedAlloc() must be freed with > PyMem_AlignedFree(). > > We cannot reuse PyMem_Free(). On Windows, PyMem_AlignedAlloc() is implemented > with

[issue18835] Add aligned memory variants to the suite of PyMem functions/macros

2017-10-23 Thread Antoine Pitrou
Change by Antoine Pitrou : -- versions: +Python 3.7 -Python 3.5 ___ Python tracker ___ ___

[issue30817] Abort in PyErr_PrintEx() when no memory

2017-10-23 Thread Xavier de Gaye
Xavier de Gaye added the comment: Removing 2.7 as the problem cannot be reproduced here. PyEval_CallObjectWithKeywords() does not assert on PyErr_Occurred(). -- versions: -Python 2.7 ___ Python tracker

[issue31845] PYTHONDONTWRITEBYTECODE and PYTHONOPTIMIZE have no effect

2017-10-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +ncoghlan ___ Python tracker ___ ___

[issue23699] Add a macro to ease writing rich comparisons

2017-10-23 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: PR has been rebased on top of master and also blurbified. -- ___ Python tracker ___

[issue31752] Assertion failure in timedelta() in case of bad __divmod__

2017-10-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 5ef883b096895a84123760859f0f34ad37bf2277 by Serhiy Storchaka in branch '2.7': [2.7] bpo-31752: Fix possible crash in timedelta constructor called with custom integers. (GH-3947) (#4088)

[issue31752] Assertion failure in timedelta() in case of bad __divmod__

2017-10-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue30549] ProcessPoolExecutor hangs forever if the object raises on __getstate__

2017-10-23 Thread Berker Peksag
Change by Berker Peksag : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Deadlocks in `concurrent.futures.ProcessPoolExecutor` ___ Python tracker

[issue31826] Misleading __version__ attribute of modules in standard library

2017-10-23 Thread Éric Araujo
Éric Araujo added the comment: The version in distutils is derived from sys.version and should be left as is too. Thanks! -- nosy: +eric.araujo ___ Python tracker

[issue29202] Improve dict iteration

2017-10-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Do you mind to create a pull request Raymond? -- ___ Python tracker ___

[issue18835] Add aligned memory variants to the suite of PyMem functions/macros

2017-10-23 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +4059 stage: needs patch -> patch review ___ Python tracker ___

[issue30722] Tools/demo/redemo.py broken

2017-10-23 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +4060 stage: -> patch review ___ Python tracker ___

[issue30722] Tools/demo/redemo.py broken

2017-10-23 Thread Berker Peksag
Berker Peksag added the comment: New changeset 62adc55aff0b78447568f73bd1abc610d2784bf8 by Berker Peksag (Christoph Sarnowski) in branch 'master': bpo-30722: Make redemo work with Python 3.6+ (GH-2311)

[issue18835] Add aligned memory variants to the suite of PyMem functions/macros

2017-10-23 Thread STINNER Victor
STINNER Victor added the comment: I added _PyTraceMalloc_Track() and _PyTraceMalloc_Untrack() private functions to the C API in Python 3.6. These functions were made public in Python 3.7: renamed to PyTraceMalloc_Track() and PyTraceMalloc_Untrack(). I made this

[issue26123] http.client status code constants incompatible with Python 3.4

2017-10-23 Thread Sebastian Rittau
Sebastian Rittau added the comment: I take the liberty of closing this "wont fix". Changing the behaviour would most likely do more harm than good. If one of the maintainers disagrees, please reopen. :) -- resolution: -> wont fix stage: -> resolved status: open

[issue31826] Misleading __version__ attribute of modules in standard library

2017-10-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: Please do leave version in the decimal module where it has a precise meaning, tracking a particular version of the spec that was implemented and tested. -- ___ Python tracker

[issue31844] HTMLParser: undocumented not implemented method

2017-10-23 Thread Sebastian Rittau
New submission from Sebastian Rittau : HTMLParser derives from _markupbase.ParserBase, which has the following method: class HTMLParser: ... def error(self, message): raise NotImplementedError( "subclasses of ParserBase must override error()")

  1   2   >