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

[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()") HTMLParser does not i

[issue31844] HTMLParser: undocumented not implemented method

2017-10-23 Thread Sebastian Rittau
Sebastian Rittau added the comment: The quoted code above should have used ParserBase: class ParserBase: ... def error(self, message): raise NotImplementedError( "subclasses of ParserBase must override error()") -- ___

[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 ___ ___ Python-bugs-list mailing list Unsubscribe: h

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

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

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

[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() returns an error. Leaking an e

[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 -Wno-unused-parameter -Wno-missing-fiel

[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 database filled, I do a 'copy'

[issue31572] Avoid suppressing all exceptions in PyObject_HasAttr()

2017-10-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +4051 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

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

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

[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 ___ ___ Python-bugs-list maili

[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 ___ ___ Python-bugs-lis

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

[issue28509] dict.update allocates too much

2017-10-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: -839 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

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

[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) https://github.com/python/cpython/commit/77af0a3bcab666a356eea2927a8031a7578d60

[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 respected -> PYTHONDONTWRITEBYTE

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

[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 ___ ___ Python-bugs-list mailing list Un

[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

[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 5176 at column 11: Ent

[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 restores and fixes tests. --

[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 ___ ___ Python-bugs-list mailing list Unsubs

[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) https://github.com/python/cpython/commit/aaf6a3dbbdb9754f98d480b468adfcae0f6

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

[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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[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 ___ ___ Python-bugs-list mailing list

[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 faster. I think many peo

[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 be raised. If a SSND chunk i

[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 ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[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; ... so I can always just c

[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) https://github.com/python/cpython/commit/4ffd4653a7ec9c97775472276cf5e

[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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[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 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26861] shutil.copyfile() doesn't close the opened files

2017-10-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pytho

[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

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

2017-10-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 6e45d7b90accbbdfef353c41ab0a78a3e4742803 by Serhiy Storchaka (Miss Islington (bot)) in branch '3.6': bpo-31752: Fix possible crash in timedelta constructor called with custom integers. (GH-3947) (#4086) https://github.com/python/cpython/commit

[issue31835] _PyFunction_FastCallDict and _PyFunction_FastCallKeywords: fast path not used

2017-10-23 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +4057 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue31835] _PyFunction_FastCallDict and _PyFunction_FastCallKeywords: fast path not used

2017-10-23 Thread STINNER Victor
STINNER Victor added the comment: > The fix is simple. Replace the faulty sub-expression by > (co->co_flags & (~PyCF_MASK)) == (CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE)) I proposed PR 4087 to implement this optimization. I wouldn't call it a "fix", since the "co->co_flags == (CO_OPTIMIZED | C

[issue31835] _PyFunction_FastCallDict and _PyFunction_FastCallKeywords: fast path not used

2017-10-23 Thread STINNER Victor
STINNER Victor added the comment: I reset Versions to Python 3.7. I don't consider this issue as a bug, but only as a new optimization. So it can only go into the future Python 3.7. -- versions: -Python 2.7, Python 3.6 ___ Python tracker

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

2017-10-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +4058 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue23224] LZMADecompressor object is only initialized in __init__

2017-10-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +Oren Milman versions: -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue28645] Drop __aiter__ compatibility layer from 3.7

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

[issue31833] Compile fail on gentoo for MIPS CPU of loongson 2f

2017-10-23 Thread emtone
emtone added the comment: I update the Python to 2.7.14 and It's Compile success. Here is running the command with strace: yeeloong /home/gentoo # python --version Python 2.7.14 yeeloong /home/gentoo # strace -o ./python_strace.txt python -c "import _multiprocessing" -- Added file: htt

[issue31833] Compile fail on gentoo for MIPS CPU of loongson 2f

2017-10-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: If it works with 2.7.14 then we can just close this issue. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker __

[issue28936] test_global_err_then_warn in test_syntax is no longer valid

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

[issue31849] Python/pyhash.c warning: comparison of integers of different signs

2017-10-23 Thread Xavier de Gaye
New submission from Xavier de Gaye : When built with: Android clang version 3.8.275480 (based on LLVM 3.8.275480) The following warning is emitted: ccache /pathto/android/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target x86_64-none-linux-androideabi -gcc-toolchain /pathto

[issue31849] Python/pyhash.c warning: comparison of integers of different signs

2017-10-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +easy (C) stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue5430] imaplib: must not replace LF or CR by CRLF in literals

2017-10-23 Thread Matej Cepl
Change by Matej Cepl : -- nosy: +mcepl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/

[issue30817] Abort in PyErr_PrintEx() when no memory

2017-10-23 Thread Xavier de Gaye
Xavier de Gaye added the comment: New changeset 66caacf2f0d6213b049a3097556e28e30440b900 by xdegaye in branch 'master': bpo-30817: Fix PyErr_PrintEx() when no memory (#2526) https://github.com/python/cpython/commit/66caacf2f0d6213b049a3097556e28e30440b900 --

[issue31833] Compile fail on gentoo for MIPS CPU of loongson 2f

2017-10-23 Thread emtone
emtone added the comment: OK, Thank you pitrou! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue31845] PYTHONDONTWRITEBYTECODE and PYTHONOPTIMIZE have no effect

2017-10-23 Thread Stefan Krah
Change by Stefan Krah : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue28645] Drop __aiter__ compatibility layer from 3.7

2017-10-23 Thread Yury Selivanov
Yury Selivanov added the comment: Already resolved as part of https://bugs.python.org/issue31709. Closing this one. -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> Drop support for asynchronous __aiter__ _

[issue31845] PYTHONDONTWRITEBYTECODE and PYTHONOPTIMIZE have no effect

2017-10-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

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

[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) https://github.com/python/cpython/commit/5ef883b096895a84

[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 ___ ___ Python-bugs-list mai

[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 ___ ___ Python-bugs-list mai

[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) https://github.com/python/cpython/commit/62adc55aff0b78447568f73bd1abc610d2784bf8

[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 ___ ___ Python-bugs-lis

[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 change to allow numpy to trace

[issue29084] C API of OrderedDict

2017-10-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29368] Optimize unpickling list-like objects: use extend() instead of append()

2017-10-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: -836 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[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) https://github.com/python/cpython/commit/a5f9d24c171c7e3a3715161fd16b747c7dcaf76f --

[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 -> resolved status: open -> close

[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 (test.test_nntplib.NetworkedNNTP_SSLTests) ... ok test

[issue29438] use after free in key sharing dict

2017-10-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: -960 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[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 http://buildbot.python.org/all/#/builders/3/builds/48 http://buildbot.pyth

[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 passed -- running: test_subproce

[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 ___ ___ Python-bugs-list mai

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

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

[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 _aligned_malloc() which

[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) Examples: $ docker run -ti

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

[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: christian.heimes, earon

[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: Justus Schwabedal priority:

[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 ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[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 ___ ___ Python-bugs-lis

[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 -- nosy: +haypo __

[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, patch # works: con

[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 ___ ___ Python-bugs-list mail

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

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

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

2017-10-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: -982 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[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. -- ___ 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) https://github.com/python/cpython/commit/3b66ebe7727dba68c2c6ccf0cd85a4c31255b9b4 --

[issue31847] Fix commented out tests in test_syntax

2017-10-23 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4066 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

  1   2   >