[issue28180] sys.getfilesystemencoding() should default to utf-8

2016-12-16 Thread Nick Coghlan
Nick Coghlan added the comment: Making an explicit note of this so I remember to mention it in the draft PEP: one of the biggest problems that arises in any attempt at a Python-only solution to overriding the locale is that we can end up disagreeing with C/C++ extensions, and this is *especial

[issue28972] Document all "python -m" utilities

2016-12-16 Thread Miki Tebeka
Miki Tebeka added the comment: Eric - sorry I wasn't clear. I'm not talking about the -m behavior in general but on the modules in the standard library that can be used with it. A lot of windows are happy to know about "python -m tarfile" to they can extract tar files without installing an ext

[issue28180] sys.getfilesystemencoding() should default to utf-8

2016-12-16 Thread Nick Coghlan
Nick Coghlan added the comment: We've been discussing this further downstream in the Fedora Python SIG, and we have a draft approach that we're pretty sure will work for us (based in turn on the approach Armin Ronacher came up with for click), and we think it should work for other distros as w

[issue13051] Infinite recursion in curses.textpad.Textbox

2016-12-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue28147] Unbounded memory growth resizing split-table dicts

2016-12-16 Thread Ned Deily
Ned Deily added the comment: So now that a fix has been released with 3.6.0rc2, what else needs to be done to close this issue? Why is 3.5 selected in the applicable versions? -- ___ Python tracker __

[issue28770] Update python-gdb.py for fastcalls

2016-12-16 Thread Ned Deily
Ned Deily added the comment: [cherrypicked for 3.6.0rc2] -- priority: release blocker -> stage: -> resolved status: open -> closed ___ Python tracker ___ __

[issue28990] asyncio SSL hangs if connection is closed before handshake completed

2016-12-16 Thread Ned Deily
Ned Deily added the comment: [cherrypicked for 3.6.0rc2] -- priority: release blocker -> status: open -> closed ___ Python tracker ___ __

[issue28990] asyncio SSL hangs if connection is closed before handshake completed

2016-12-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset bfd4f13b478b by Yury Selivanov in branch '3.6': Merge 3.5 (issue #28990) https://hg.python.org/cpython/rev/bfd4f13b478b -- ___ Python tracker _

[issue28770] Update python-gdb.py for fastcalls

2016-12-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset b0efa88c4cf4 by Victor Stinner in branch '3.6': Issue #28770: Update python-gdb.py for fastcalls https://hg.python.org/cpython/rev/b0efa88c4cf4 -- ___ Python tracker _

[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

2016-12-16 Thread Evan
Evan added the comment: This issue is relevant to Python 2 on Windows since you need to disable the EOL conversion if you're trying to receive binary data on stdin. See: http://stackoverflow.com/questions/2850893/reading-binary-data-from-stdin -- nosy: +evan_ _

[issue28951] re.flags not documented in Module Contents as promised.

2016-12-16 Thread kevin
kevin added the comment: Ordinarily when I see a cross-reference like that "the flags are described in foo" I expect foo to have a heading "FLAGS" so I can tell I'm looking at what was promised. Not knowing much about flags, it was not clear to me that those scattered lines re.A through re.X wer

[issue28972] Document all "python -m" utilities

2016-12-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 for Miki's idea. It would be nice if there were a single page that collected together all the command-line tools (with examples). It should include a 2to3 example as well. Also, there should be some indication of which tools we guarantee to be availab

[issue28957] undefined symbol: PyUnicodeUCS2_FromUnicode when executing any command with pip2.7

2016-12-16 Thread Berker Peksag
Berker Peksag added the comment: I think there are two different Python installations in your $PATH (the one you compiled with UCS4 and the other one is compiled with UCS2 - probably the system Python) Anyway, like Terry said, this is out of scope for this tracker. -- nosy: +berker.pe

[issue28987] Remove typo in whats new entry on Descriptor Protocol Enhancements

2016-12-16 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +Elvis.Pranskevichus, yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue25782] CPython hangs on error __context__ set to the error itself

2016-12-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Issue #28962 appears to be an example of this issue. It uses 'raise e from e' to create the loop. -- nosy: +terry.reedy ___ Python tracker ___

[issue13051] Infinite recursion in curses.textpad.Textbox

2016-12-16 Thread Berker Peksag
Berker Peksag added the comment: The patch doesn't apply cleanly anymore so the next step would be to provide an updated patch. By the way, I can reproduce the first bug, but not the second one. If the second bug can't be reproducible anymore, we might need a simpler patch. -- nosy: +

[issue28927] bytes.fromhex should ignore all whitespace

2016-12-16 Thread Robert Xiao
Robert Xiao added the comment: Sorry, I should have clarified that these methods consider *ASCII whitespace* equivalent - just like my proposed patch. -- ___ Python tracker ___

[issue28927] bytes.fromhex should ignore all whitespace

2016-12-16 Thread Robert Xiao
Robert Xiao added the comment: Terry, can you elaborate what you mean by a tradeoff? I feel like such a patch makes .fromhex more consistent with other string methods like .split() and .strip() which implicitly consider all whitespace equivalent. Martin, I've updated the patch to include docum

[issue28957] undefined symbol: PyUnicodeUCS2_FromUnicode when executing any command with pip2.7

2016-12-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: PS, for future reference, 'crash' here means hanging or exiting *without* a traceback. -- ___ Python tracker ___ __

[issue28957] undefined symbol: PyUnicodeUCS2_FromUnicode when executing any command with pip2.7

2016-12-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: This tracker is for fixing Python and CPython. There are other forums (python-list, StackOverflow, for instance) for help with user errors. I believe that there are people on python-list with experience building on Ubuntu and variants, so I suggest asking th

[issue28956] return minimum of modes for a multimodal distribution instead of raising a StatisticsError

2016-12-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Srikanth, when you reply by email, please remove the quotation of the previous message. On the web page, it is just noise. The only exception should be when you reply to a specific sentence and need to quote that sentence for context. In my particular experi

[issue28995] pathlib.WindowsPath.resolve() test expects short path

2016-12-16 Thread Steve Dower
New submission from Steve Dower: With issue19717, WindowsPath.resolve() now properly resolves the filename using the Windows APIs. However, this may cause parts of the path to be replaced with their full name when provided as the 8.3 short name. The test was not updated for this: Traceback (m

[issue28994] Misc fixes and cleanups in error handling C code

2016-12-16 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed patch makes few minor changes related to handling errors in C. * Fixed possible NULL dereference in PyErr_NormalizeException(). * Fixed error checking in atexit._run_exitfuncs(). * Fixed possible memory leaks in _Py_FatalError_PrintExc(). * PyErr

[issue28929] Provide a link from documentation back to its source file

2016-12-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Nice idea. I agree with an updated sidebar link, both aesthetically and as a practical matter for doc maintainers. -- nosy: +terry.reedy ___ Python tracker __

[issue28927] bytes.fromhex should ignore all whitespace

2016-12-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am a bit dubious about this. There is a tradeoff here between convenience and bug detection. The patch is not strictly necessary. >>> bytes.fromhex('ab\ncd'.replace('\n', '')) b'\xab\xcd' Bytes (and bytearray) .fromhex already ignores spaces. Not ignoring

[issue28969] lru_cache is not threadsafe

2016-12-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: An alternative patch changes semantic of _PyDict_Pop() with deflt == NULL, but makes the code simpler. -- Added file: http://bugs.python.org/file45931/lru_cache-dict-pop-simpler-3.5.patch ___ Python tracker

[issue28991] Fix obscure lru_cache reentrancy bug

2016-12-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5ec5bfcf0089 by Raymond Hettinger in branch 'default': Issue #28991: Address comment that the __len__ call looked unattractive https://hg.python.org/cpython/rev/5ec5bfcf0089 -- ___ Python tracker

[issue28816] Document if zipimport can respect import hooks to load custom files from zip.

2016-12-16 Thread Decorater
Decorater added the comment: Well, Will there be any documentations for this before 3.6 final release or no because this would be nice to know for other people who would like to do something similar. -- ___ Python tracker

[issue28991] Fix obscure lru_cache reentrancy bug

2016-12-16 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue28991] Fix obscure lru_cache reentrancy bug

2016-12-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset c23f8614151d by Raymond Hettinger in branch '3.5': Issue #28991: Fix obscure reentrancy bug in functools.lru_cache(). https://hg.python.org/cpython/rev/c23f8614151d -- nosy: +python-dev ___ Python tracke

[issue28991] Fix obscure lru_cache reentrancy bug

2016-12-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > How does the patch look to you? It looks ugly, but technically correct. Push it if you like. -- assignee: serhiy.storchaka -> rhettinger stage: patch review -> commit review ___ Python tracker

[issue24383] consider implementing __await__ on concurrent.futures.Future

2016-12-16 Thread Yury Selivanov
Yury Selivanov added the comment: I think we should close this one. Making concurrent.futures awaitable will likely only complicate things for end-users. -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker

[issue26342] Faster bit ops for single-digit positive longs

2016-12-16 Thread Yury Selivanov
Yury Selivanov added the comment: Closing this one, as we decided to not to micro-optimize int ops. -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue28765] _sre.compile(): be more strict on types of indexgroup and groupindex

2016-12-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Hum, sorry, I don't understand what is the issue with adding a few addition > checks in the constructor? Is it a matter of speed? It is a matter of readability and maintainability. Additional checks adds 21 lines of the code, and they hardcode error messag

[issue28969] lru_cache is not threadsafe

2016-12-16 Thread Ned Deily
Ned Deily added the comment: Before it could be considered for 3.6.0, it needs to be reviewed, pushed to the 3.6 branch for 3.6.1, and have some buildbot exposure. 3.6.0rc2 is in the process of manufacturing already. Since this is a fairly extensive change, I think it would not be appropriat

[issue28969] lru_cache is not threadsafe

2016-12-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: Ned, can this be considered for inclusion in Python 3.6? ISTM that this problematic in that it may already be causing hard-to-diagnose bugs in existing applications. -- nosy: +ned.deily ___ Python tracker

[issue28986] Docs should say set.update takes iterable

2016-12-16 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> not a bug status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue28991] Fix obscure lru_cache reentrancy bug

2016-12-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: It is effortless to make this change and is consistent with all the other efforts taken to to protect against reentrancy, so yes, I think it should be done. It isn't so much that I want this to be a use case, I would just like the implementation to be as s

[issue28936] test_global_err_then_warn in test_syntax is no longer valid

2016-12-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't know what should we do with this. Is there a bug that needs to be fixed? Or maybe the test can be just removed? -- ___ Python tracker ___

[issue28879] smtplib send_message should add Date header if it is missing, per RFC5322

2016-12-16 Thread R. David Murray
R. David Murray added the comment: The signature of send_message cannot be changed for backward compatibility reasons. It's signature was not intended to be an extension of the sendmail signature. send_message cannot accept a dictionary, as then it would have to know how to format that dicti

[issue28993] math.ceil() python 2.7

2016-12-16 Thread Zachary Ware
Zachary Ware added the comment: The `/` operator in Python 2 does integer division. `math.ceil(10/3)` in Python 2 is equivalent to `math.ceil(3)`. -- nosy: +zach.ware resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tr

[issue28993] math.ceil() python 2.7

2016-12-16 Thread femi
New submission from femi: math.ceil(10/3) python 2.7.12 returns 3 -- messages: 283434 nosy: akinfemi09 priority: normal severity: normal status: open title: math.ceil() python 2.7 versions: Python 2.7 ___ Python tracker

[issue28992] Use bytes.fromhex()

2016-12-16 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed patch makes the code and tests using bytes.fromhex(). The benefit of bytes.fromhex() over manual converting hexadecimals to bytes: 1. This is the one obvious way to do it. 2. This is the fastest way to do it. -- components: Library (Lib)

[issue28982] multiprocessing.Queue.get(block=True, timeout=0) always raises queue.Empty

2016-12-16 Thread Ryan Brindley
Ryan Brindley added the comment: In addition, queue.Queue supports timeout value of 0 and its documentation says "non-negative number". -- ___ Python tracker ___ ___

[issue28879] smtplib send_message should add Date header if it is missing, per RFC5322

2016-12-16 Thread Eric Lafontaine
Eric Lafontaine added the comment: Hi all, I was looking at the code of the function and also noticed multiple "itching". 1- Why raise an error when 2 resent-date exist? it may exist and completely legitimate as per RFC5322. The code should always take the first one it sees as per the RFC.

[issue28971] nntplib is broken when responses are longer than _MAXLINE

2016-12-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1386795d266e by Xavier de Gaye in branch '3.5': Issue #28971: Temporarily skip test_over until a permanent solution is found https://hg.python.org/cpython/rev/1386795d266e New changeset a33047e08711 by Xavier de Gaye in branch '3.6': Issue #28971: M

[issue28971] nntplib is broken when responses are longer than _MAXLINE

2016-12-16 Thread Xavier de Gaye
Xavier de Gaye added the comment: > I'd be in favor of temporarily skipping the affected tests with a message > that points back to here until we have a permanent solution. I am working on it. -- ___ Python tracker

[issue22135] allow to break into pdb with Ctrl-C for all the commands that resume execution

2016-12-16 Thread Chun-Yu Tseng
Chun-Yu Tseng added the comment: Appreciate for your quick response. I have already left the reply in Rietveld. I have uploaded a new patch with revised tests. In fact, the tests I wrote in the first patch are based on the style of `test_pdb2.py` in #7245 . But I am sure that now the new tests

[issue28991] Fix obscure lru_cache reentrancy bug

2016-12-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Wrapping len() in an lru_cache is bad idea, because this brakes len() of lists, dicts and other non-hashable collections. Should we support this doubtful case? -- ___ Python tracker

[issue28991] Fix obscure lru_cache reentrancy bug

2016-12-16 Thread Raymond Hettinger
New submission from Raymond Hettinger: Call __len__ directly inside the LRU cache code rather than using len(). This helps further encapsulate the cache internals making it less dependent on parts of the environment that are subject to change. -- assignee: serhiy.storchaka components:

[issue28971] nntplib is broken when responses are longer than _MAXLINE

2016-12-16 Thread Christian Heimes
Christian Heimes added the comment: A larger limit is totally fine. The check protects against DoS with hundreds of MB. I'm currently travelling and won't be available much until next week. Am 16. Dezember 2016 19:37:03 MEZ, schrieb Xiang Zhang : > >Xiang Zhang added the comment: > >Xavier's p

[issue28971] nntplib is broken when responses are longer than _MAXLINE

2016-12-16 Thread Xiang Zhang
Xiang Zhang added the comment: Xavier's plan sounds good. We could increase the line length limitation to 64K and add another limitation of the maximum lines a multi-line block could contain. Any limitation is violated the connection is refused. This situation seems quite similar to http.clien

[issue28909] Adding LTTng-UST tracing support

2016-12-16 Thread Francis Deslauriers
Changes by Francis Deslauriers : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue28971] nntplib is broken when responses are longer than _MAXLINE

2016-12-16 Thread Zachary Ware
Zachary Ware added the comment: This is causing all buildbots to fail again; I'd be in favor of temporarily skipping the affected tests with a message that points back to here until we have a permanent solution. -- keywords: +buildbot priority: normal -> high _

[issue28982] multiprocessing.Queue.get(block=True, timeout=0) always raises queue.Empty

2016-12-16 Thread Ryan Brindley
Ryan Brindley added the comment: So, the code handles timeout = 0 on systems where time.time() returns an int. Look at the following snippet and consider 2 assumptions: (1) time.time() returns an int, and (2) self._rlock.acquire call takes less than a second if block:

[issue14061] Misc fixes and cleanups in archiving code in shutil and test_shutil

2016-12-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Martin for your review. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue18896] Remove namedtuple 255 arguments restriction

2016-12-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Raymond for your review. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue18896] Remove namedtuple 255 arguments restriction

2016-12-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7454ca88aacb by Serhiy Storchaka in branch 'default': Issue #18896: Python function can now have more than 255 parameters. https://hg.python.org/cpython/rev/7454ca88aacb -- nosy: +python-dev ___ Python tr

[issue28180] sys.getfilesystemencoding() should default to utf-8

2016-12-16 Thread Chi Hsuan Yen
Changes by Chi Hsuan Yen : -- nosy: +Chi Hsuan Yen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue23262] webbrowser module broken with Firefox 36+

2016-12-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: serhiy.storchaka -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14061] Misc fixes and cleanups in archiving code in shutil and test_shutil

2016-12-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 929c2d076a85 by Serhiy Storchaka in branch '3.5': Issue #14061: Misc fixes and cleanups in archiving code in shutil. https://hg.python.org/cpython/rev/929c2d076a85 New changeset 268d3763bb07 by Serhiy Storchaka in branch '3.6': Issue #14061: Misc fi

[issue28990] asyncio SSL hangs if connection is closed before handshake completed

2016-12-16 Thread Yury Selivanov
Yury Selivanov added the comment: Ned, would you be able to cherry-pick this in 3.6.0? Guido approved this. -- resolution: -> fixed stage: -> resolved type: -> behavior ___ Python tracker __

[issue28990] asyncio SSL hangs if connection is closed before handshake completed

2016-12-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset fcba55d649ea by Yury Selivanov in branch '3.5': Issue #28990: Fix SSL hanging if connection is closed before handshake completed. https://hg.python.org/cpython/rev/fcba55d649ea New changeset fcc642bf88c1 by Yury Selivanov in branch '3.6': Merge 3.5

[issue28990] asyncio SSL hangs if connection is closed before handshake completed

2016-12-16 Thread Yury Selivanov
New submission from Yury Selivanov: Upstream link: https://github.com/python/asyncio/pull/476 -- ___ Python tracker ___ ___ Python-bug

[issue28989] .dll files missing

2016-12-16 Thread Brendan Donegan
Brendan Donegan added the comment: This more likely to be a system misconfiguration issue than a Python one. Following http://stackoverflow.com/questions/33265663/api-ms-win-crt-runtime-l1-1-0-dll-is-missing-when-opening-microsoft-office-file will probably fix the issue for you. -- no

[issue28990] asyncio SSL hangs if connection is closed before handshake completed

2016-12-16 Thread Yury Selivanov
Changes by Yury Selivanov : -- Removed message: http://bugs.python.org/msg283413 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue28990] asyncio SSL hangs if connection is closed before handshake completed

2016-12-16 Thread Yury Selivanov
New submission from Yury Selivanov: Resolved: https://github.com/python/asyncio/issues/472 -- assignee: yselivanov components: asyncio messages: 283413 nosy: gvanrossum, larry, ned.deily, yselivanov priority: release blocker severity: normal status: open title: asyncio SSL hangs if conne

[issue28989] .dll files missing

2016-12-16 Thread Ned Deily
Changes by Ned Deily : -- nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue28879] smtplib send_message should add Date header if it is missing, per RFC5322

2016-12-16 Thread Henning von Bargen
Henning von Bargen added the comment: OK, I understand the arguments. If I understand correctly, this will be fixed in one way or another in Python 3.6 or 3.7. For Python 2.7, this will not be fixed (so I have to work around this somehow, should be quite easy). I think that at least the docume

[issue28989] .dll files missing

2016-12-16 Thread Gabriel Lopez
New submission from Gabriel Lopez: Every time I try loading Python 3.5, it says "The program can't start because api-ms-win-crt-runtime-l1-1-0.dll is missing from your computer." How can I fix this? -- messages: 283411 nosy: Gabriel Lopez priority: normal severity: normal status: open

[issue28446] pyvenv generates malformed hashbangs for scripts

2016-12-16 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Seems there are quite a few typos/copy-paste errors in the original steps-to-reproduce. Here are my steps on macOS: $ ./python-build/python.exe -m venv 'aaa bbb' $ source ./aaa\ bbb/bin/activate $ pip zsh: /Users/yen/tmp/aaa bbb/bin/pip: bad interpreter: "/Users

[issue28180] sys.getfilesystemencoding() should default to utf-8

2016-12-16 Thread STINNER Victor
STINNER Victor added the comment: > I believe Victor put quite a bit of time into trying to get more selective > approaches to work reliably and eventually gave up. Yeah, it just doesn't work to use more than one encoding per process. You should use the same encoding for the whole lifetime of

[issue28180] sys.getfilesystemencoding() should default to utf-8

2016-12-16 Thread STINNER Victor
STINNER Victor added the comment: Victor>> I proposed to add "-X utf8" command line option for UNIX to force utf8 encoding. Would it work for you? Jan Niklas Hasse> Unfortunately no, as this would mean I'll have to change all my python invocations in my scripts and it wouldn't work for executa

[issue28770] Update python-gdb.py for fastcalls

2016-12-16 Thread Ned Deily
Ned Deily added the comment: Please leave this open until the cherry picking is completed. -- status: closed -> open ___ Python tracker ___ __

[issue28959] Add a macro for dict size

2016-12-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: After further analysis I conclude that instance dict can be only NULL or a dict. Therefore PyDict_Size() is correctly used in typeobject.c and _datetimemodule.c. It never fails, and additional PyDict_Check() is not needed. Committed changes don't include swi

[issue28988] Switch dict and set structures to PyVarObject

2016-12-16 Thread STINNER Victor
STINNER Victor added the comment: Copy/paste of my msg283176: > dict doesn't end with array. Right, but... Recently I looked at dict internals. As a newcomer, I have to confess that it's currently really hard to understand the purpose of each dict field: they are many "sizes": size of the ha

[issue28988] Switch dict and set structures to PyVarObject

2016-12-16 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: In issue28959 Raymond said that a dict structure can be switched to PyVarObject. Victor guessed that it makes sense to switch a set structure too. Proposed patch implements this. The layout of a dict structure is not changed. The number of used and filled

[issue28838] Using consistent naming for arguments of "call" functions (C API)

2016-12-16 Thread STINNER Victor
STINNER Victor added the comment: I consider that the cleanup itself is done, so I close the issue. For further enhancements, I will open new issues. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue28770] Update python-gdb.py for fastcalls

2016-12-16 Thread STINNER Victor
STINNER Victor added the comment: The change was cherry-picked in Python 3.6.0RC2. The issue is now fixed, so I close the issue. -- status: open -> closed ___ Python tracker ___

[issue28987] Remove typo in whats new entry on Descriptor Protocol Enhancements

2016-12-16 Thread Jim Fasarakis-Hilliard
New submission from Jim Fasarakis-Hilliard: Attached patch removes small typo ('has') from text: extends the descriptor protocol has to include the new optional -- assignee: docs@python components: Documentation files: whatsnew_typo.patch keywords: patch messages: 283401 nosy: Jim F

[issue28959] Add a macro for dict size

2016-12-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset dbf72357cb4a by Serhiy Storchaka in branch 'default': Issue #28959: Added private macro PyDict_GET_SIZE for retrieving the size of dict. https://hg.python.org/cpython/rev/dbf72357cb4a -- nosy: +python-dev __

[issue28986] Docs should say set.update takes iterable

2016-12-16 Thread R. David Murray
R. David Murray added the comment: update([iterable]) is a specific case of update(*others). udpate([1, 2], [3, 4]) is another specific case. -- nosy: +r.david.murray ___ Python tracker __

[issue25658] PyThread assumes pthread_key_t is an integer, which is against POSIX

2016-12-16 Thread Nick Coghlan
Changes by Nick Coghlan : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue28518] execute("begin immediate") throwing OperationalError

2016-12-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a little simplified version. No need to handle a single "begin". -- Added file: http://bugs.python.org/file45923/sqlite-explicit-begin2.patch ___ Python tracker _

[issue20191] resource.prlimit(int, int, str) crashs

2016-12-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13051] Infinite recursion in curses.textpad.Textbox

2016-12-16 Thread David Andersen
David Andersen added the comment: Any progress on this? Its Dec 2016 and this bug is still around. There's a patch and a patch with tests. The problem is well-understood. I'm not sure what the holdup is, but it would be great to get fixed! -- nosy: +rxcomm

[issue28984] json.dump + indent creates trailing extra spaces

2016-12-16 Thread Knut
Knut added the comment: sorry, I missed that point in the docs. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue28147] Unbounded memory growth resizing split-table dicts

2016-12-16 Thread STINNER Victor
STINNER Victor added the comment: > Oh, I'm sorry. It seems I had failed to push the commit yesterday. No problem. Thanks for your fix! I prefer to not see the bug in Python 3.6.0 final! -- ___ Python tracker ___

[issue28986] Docs should say set.update takes iterable

2016-12-16 Thread Nick Evans
New submission from Nick Evans: The docs say that set.update takes *args: update(*others) But actually set.update takes an optional iterable: update([iterable]) -- assignee: docs@python components: Documentation messages: 283394 nosy: docs@python, nre3976 priority: normal severity

[issue28977] Document PyObject_CallFunction() special case more explicitly

2016-12-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > All other format codes are illegal for single argument. I was wrong. PyObject_CallFunction() handles correctly a single non-tuple argument. The problem is only with tuple result of Py_BuildValue(). > What do you mean exactly by deprecating the feature? Emi

[issue28147] Unbounded memory growth resizing split-table dicts

2016-12-16 Thread INADA Naoki
INADA Naoki added the comment: Oh, I'm sorry. It seems I had failed to push the commit yesterday. -- ___ Python tracker ___ ___ Pytho

[issue28770] Update python-gdb.py for fastcalls

2016-12-16 Thread Ned Deily
Changes by Ned Deily : -- status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue28770] Update python-gdb.py for fastcalls

2016-12-16 Thread Ned Deily
Changes by Ned Deily : -- nosy: +ned.deily priority: normal -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue28977] Document PyObject_CallFunction() special case more explicitly

2016-12-16 Thread STINNER Victor
STINNER Victor added the comment: If the behaviour of PyObject_CallFunction(func, "O", arg) is changed, an application relying on the current behaviour would have to replace: res = PyObject_CallFunction(func, "O", arg); with: /* code working on any Python version */ if (PyTuple_Check

[issue28977] Document PyObject_CallFunction() special case more explicitly

2016-12-16 Thread STINNER Victor
STINNER Victor added the comment: Serhiy: "O" is not the only special case. "S" and "N" unpack a tuple argument too. "O&" converter should return a tuple, otherwise it is an error. All other format codes are illegal for single argument. Oh, I didn't know. I should update my documentation. Se

[issue28968] xml rpc server fails with connection reset by peer error no 104

2016-12-16 Thread Manish Singh
Manish Singh added the comment: Hi David Murray, Please refer this link, http://stackoverflow.com/questions/383738/104-connection-reset-by-peer-socket-error-or-when-does-closing-a-socket-resu -- ___ Python tracker

[issue28091] Document PEP 525 & 530

2016-12-16 Thread Ned Deily
Ned Deily added the comment: [cherrypicked for 3.6.0rc2] -- priority: deferred blocker -> ___ Python tracker ___ ___ Python-bugs-list

[issue28900] update 'docs for other versions'

2016-12-16 Thread Ned Deily
Ned Deily added the comment: [cherrypicked for 3.6.0rc2] -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue28900] update 'docs for other versions'

2016-12-16 Thread Ned Deily
Changes by Ned Deily : -- priority: release blocker -> resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___ _