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

2017-10-28 Thread Nathaniel Smith
Nathaniel Smith added the comment: Given the complexities here, and that the Track/Untrack functions are public now, I do wonder if the actual aligned allocation routines should just be an internal API (i.e., not exposed in Python.h). -- ___ Python

[issue31304] Update doc for starmap_async error_back kwarg

2017-10-28 Thread Berker Peksag
Change by Berker Peksag : -- keywords: +easy stage: -> needs patch versions: +Python 3.7 ___ Python tracker ___ ___ Python-bugs-list

[issue31065] Documentation for Popen.poll is unclear

2017-10-28 Thread Berker Peksag
Berker Peksag added the comment: I've backported 006617ff7d6df3fdedcfe53e94ee2c52cc796437 to 3.6. I think this can be closed now, thank you! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> enhancement versions: -Python 2.7 __

[issue31065] Documentation for Popen.poll is unclear

2017-10-28 Thread Berker Peksag
Berker Peksag added the comment: New changeset 0f1973d06e2116deafb19bbb9443b138187803c7 by Berker Peksag in branch '3.6': bpo-31065: Add doc about Popen.poll returning None. (GH-3169) https://github.com/python/cpython/commit/0f1973d06e2116deafb19bbb9443b138187803c7 -- nosy: +berker.p

[issue31065] Documentation for Popen.poll is unclear

2017-10-28 Thread Berker Peksag
Change by Berker Peksag : -- pull_requests: +4130 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue30987] Support for ISO-TP protocol in SocketCAN

2017-10-28 Thread Berker Peksag
Berker Peksag added the comment: PR 2956 has been merged. Christian, can this issue be closed now? -- nosy: +berker.peksag ___ Python tracker ___ __

[issue1447222] tkinter Dialog fails when more than four buttons are used

2017-10-28 Thread Berker Peksag
Berker Peksag added the comment: I ported OP's example to Python 3 and I agree with Cheryl that this is fixed now. -- nosy: +berker.peksag resolution: -> out of date stage: patch review -> resolved status: open -> closed Added file: https://bugs.python.org/file47244/example.py __

[issue22671] Typo in class io.BufferedIOBase docs

2017-10-28 Thread Martin Panter
Martin Panter added the comment: I’m unlikely to soon, but I don’t mind if someone else uses my patch. -- ___ Python tracker ___ ___

[issue31273] Unicode support in TestCase.skip

2017-10-28 Thread Berker Peksag
Change by Berker Peksag : -- components: +Library (Lib) -Tests, Unicode nosy: +michael.foord, rbcollins stage: -> needs patch type: crash -> behavior ___ Python tracker ___ ___

[issue20479] Efficiently support weight/frequency mappings in the statistics module

2017-10-28 Thread Nick Coghlan
Nick Coghlan added the comment: Thinking back to my signal processing days, I have to agree that our weightings (filter definitions) were usually separate from our data (live signals). Similarly, systems engineering trade studies all maintained feature weights separately from the assessments

[issue28197] range.index mismatch with documentation

2017-10-28 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: rhettinger -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue20047] bytearray partition bug

2017-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset a2314283ff87c65e1745a42c2f2b716b1a209128 by Serhiy Storchaka in branch 'master': bpo-20047: Make bytearray methods partition() and rpartition() rejecting (#4158) https://github.com/python/cpython/commit/a2314283ff87c65e1745a42c2f2b716b1a209128

[issue31095] Checking all tp_dealloc with Py_TPFLAGS_HAVE_GC

2017-10-28 Thread Berker Peksag
Berker Peksag added the comment: > Should we backport the fix to Python 3.3 and 3.4 as well? > > I don't think so. I agree with Victor. Closing this as all PRs have been merged. Thank you, all (especially for the documentation update!) -- nosy: +berker.peksag resolution: -> fixed st

[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2017-10-28 Thread Tal Einat
Tal Einat added the comment: Regarding the select module, the existing patch moves typedefs and object type declarations to the top of the file with the #include clinic/selectmodule.c.h statement can come afterwards. Should I keep it this way, or instead move the method list and type definiti

[issue30696] infinite loop in PyRun_InteractiveLoopFlags()

2017-10-28 Thread Xavier de Gaye
Change by Xavier de Gaye : -- versions: -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue20047] bytearray partition bug

2017-10-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: To answer Mark, even though no longer nosy: In general, sequence methods .count, .index, and .__contains__ take sequence members and only members as arguments. Unicode sequences are exceptional because codepoints are not Python objects, so string subsequence

[issue30696] infinite loop in PyRun_InteractiveLoopFlags()

2017-10-28 Thread Xavier de Gaye
Change by Xavier de Gaye : -- pull_requests: +4129 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue20479] Efficiently support weight/frequency mappings in the statistics module

2017-10-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: My recommendation is to have *weights* as an optional argument: statistics.mean(values, weights=None) While it is tempting to special case dicts and counters, I got feedback from Jake Vanderplas and Wes McKinney that in practice it is more common to ha

[issue16994] collections.Counter.least_common

2017-10-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thank you for the suggestion, but I'm going to mark it as rejected for the reasons listed in the other posts. -- resolution: -> rejected stage: patch review -> resolved status: pending -> closed ___ Python track

[issue31890] Please define the flag METH_STACKLESS for Stackless Python

2017-10-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue31890] Please define the flag METH_STACKLESS for Stackless Python

2017-10-28 Thread Anselm Kruis
Change by Anselm Kruis : -- keywords: +patch pull_requests: +4128 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue31890] Please define the flag METH_STACKLESS for Stackless Python

2017-10-28 Thread Anselm Kruis
New submission from Anselm Kruis : The header Include/methodobject.h defines ml_flags METH_xxx. Stackless Python adds the flag METH_STACKLESS. Traditionally Stackless used bit 0x0080 for METH_STACKLESS, but starting with C-Python 3.6 bit 0x0080 is used for METH_FASTCALL. In order to prevent

[issue20047] bytearray partition bug

2017-10-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +4127 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue20047] bytearray partition bug

2017-10-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: -> serhiy.storchaka versions: +Python 2.7, Python 3.6, Python 3.7 -Python 3.3, Python 3.4 ___ Python tracker ___ _

[issue31626] Writing in freed memory in _PyMem_DebugRawRealloc() after shrinking a memory block

2017-10-28 Thread Stefan Krah
Stefan Krah added the comment: Ah sorry, you mean it cannot write the special bytes. -- ___ Python tracker ___ ___ Python-bugs-list

[issue31626] Writing in freed memory in _PyMem_DebugRawRealloc() after shrinking a memory block

2017-10-28 Thread Stefan Krah
Stefan Krah added the comment: > realloc() must not touch the original buffer on failure I don't understand this: If realloc() fails, the original buffer is perfectly valid. -- nosy: +skrah ___ Python tracker __

[issue19891] Exiting Python REPL prompt with user without home directory throws error in atexit._run_exitfuncs

2017-10-28 Thread Andreas Krüger
Andreas Krüger added the comment: I can easily reproduce the problem with Docker, and it does seem to be a permission problem: $ docker run -ti --rm --user=":" python:3.6.3-jessie bash -c "python3" Python 3.6.3 (default, Oct 10 2017, 02:29:16) [GCC 4.9.2] on linux Type

[issue20479] Efficiently support weight/frequency mappings in the statistics module

2017-10-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: -serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue31860] IDLE: Make font sample editable

2017-10-28 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: -4125 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue18534] State clearly that open() 'file' param is "name" attr of the result

2017-10-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue1243730] Big speedup in email message parsing

2017-10-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

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

2017-10-28 Thread Stefan Krah
Stefan Krah added the comment: > The ways we've discussed using aligned allocation in numpy wouldn't follow > this requirement without special checking. Which isn't necessarily a big > deal, and numpy won't necessarily use this API anyway. But I would suggest > being very clear about exactly

[issue31775] Support unbuffered TextIOWrapper

2017-10-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue22671] Typo in class io.BufferedIOBase docs

2017-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Do you mind to create a PR Martin? -- assignee: docs@python -> martin.panter nosy: +serhiy.storchaka versions: +Python 3.6, Python 3.7 -Python 3.4, Python 3.5 ___ Python tracker

[issue17418] Documentation links for io.open

2017-10-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue15606] re.VERBOSE whitespace behavior not completely documented

2017-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Steven, would you mind to update your patch according to review comments and create a pull request on GitHub? -- stage: patch review -> needs patch versions: +Python 2.7, Python 3.6, Python 3.7 -Python 3.3 ___ Pyt

[issue31836] test_code_module fails after test_idle

2017-10-28 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue31836] test_code_module fails after test_idle

2017-10-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 8ed5644f78e57cd59813097b35906ad6f1775f95 by Terry Jan Reedy (Miss Islington (bot)) in branch '3.6': bpo-31836: Test_code_module now passes with sys.ps1, ps2 set (GH-4070) (#4156) https://github.com/python/cpython/commit/8ed5644f78e57cd59813097b35

[issue16994] collections.Counter.least_common

2017-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This proposition was discussed also on Python-Ideas (https://mail.python.org/pipermail/python-ideas/2017-March/045215.html). I think it should be rejected. In general this doesn't make sense. In rare cases when you want to to get the least common items in t

[issue1617161] Instance methods compare equal when their self's are equal

2017-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Armin, do you mind to create a pull request on GitHub? -- type: enhancement -> behavior versions: +Python 3.6, Python 3.7 -Python 3.4 ___ Python tracker _

[issue11383] compilation seg faults on insanely large expressions

2017-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If someone will backport an issue5765 patch to 2.7, he can open a new issue or reopen issue5765. -- stage: -> resolved status: open -> closed ___ Python tracker _

[issue31626] Writing in freed memory in _PyMem_DebugRawRealloc() after shrinking a memory block

2017-10-28 Thread Xavier de Gaye
Change by Xavier de Gaye : -- nosy: +xdegaye ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue31889] difflib SequenceMatcher ratio() still have unpredictable behavior

2017-10-28 Thread Simon Descarpentries
New submission from Simon Descarpentries : I, it's my 1st post here. I'm a French computer-science engineer with 10 years XP and manager at Acoeuro.com SSLL compagny. I suggested a better regexp integration on python-ideas a few months ago failing to convince getting things done. Despite issu

[issue31871] Support for file descriptor params in os.path

2017-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Éric, see https://docs.python.org/3/library/os.html#files-and-directories. Yes, now some os.path functions can accept a file descriptor as a path. I don't think this is intentional. And this may not work on all platforms. >>> os.path.isdir(1) False >>> os.p

[issue25612] nested try..excepts don't work correctly for generators

2017-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The problem I mentioned in msg304117 has been resolved in backward direction: "raise" outside of an except block don't raise a RuntimeError. -- status: closed -> open ___ Python tracker

[issue25612] nested try..excepts don't work correctly for generators

2017-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Note that removing exc_type, exc_value and exc_traceback from PyThreadState breaks Cython. -- nosy: +scoder ___ Python tracker ___

[issue31888] Creating a UUID with a list throws bad exception

2017-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a consequence of duck-typing and is common in Python. If you pass a value of wrong type, it is expected that you can get an AttributeError. Explicit type checks clutter and slow down the code, and make it less flexible. You can test an explicit type