[issue29354] Python 2.7.12: pydoc.help(lambda (a, ): lambda x: a) raises IndexError

2017-01-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Proposed patch fixes the issue. -- keywords: +patch nosy: +serhiy.storchaka stage: -> patch review Added file: http://bugs.python.org/file46402/inspect_argtuple_unpack_cellvars.patch ___ Python tracker

[issue29357] New NamedTuple syntax silently ignores method definitions

2017-01-23 Thread Elazar Gershuni
New submission from Elazar Gershuni: The following does not work as expected: ``` from typing import NamedTuple class A(NamedTuple): a: int def __repr__(self): return 'some A' def spam(self): print('spam!') >>> a = A(5) >>> repr(a) # should be 'some A' 'A(a=5)'

[issue29338] Output the text signature in the help of a class

2017-01-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue29338] Output the text signature in the help of a class

2017-01-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset b74a6a7d4389 by Serhiy Storchaka in branch 'default': Issue #29338: Fix test_enum. https://hg.python.org/cpython/rev/b74a6a7d4389 -- ___ Python tracker

[issue29273] test___all__ alters utf8 locale setting

2017-01-23 Thread Martin Panter
Changes by Martin Panter : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue29182] Remove the warning in urllib docs that it doesn't do certificate validate by default.

2017-01-23 Thread Senthil Kumaran
Senthil Kumaran added the comment: Here is the updated patch that addresses the comment. -- Added file: http://bugs.python.org/file46401/issue29182_docs_fix.patch ___ Python tracker

[issue29339] Interactive: Move to same indentation level as previous line

2017-01-23 Thread Emily Morehouse
Changes by Emily Morehouse : -- nosy: +emilyemorehouse ___ Python tracker ___ ___

[issue29354] Python 2.7.12: pydoc.help(lambda (a, ): lambda x: a) raises IndexError

2017-01-23 Thread Emily Morehouse
Emily Morehouse added the comment: Yury, thanks for the encouragement to continue on this patch. I think it will be a good exercise to dive a bit deeper into Python's bytecode and put some knowledge to use. I believe that tuple argument unpacking is handled appropriately, but there is an

[issue29341] Missing accepting path-like object in docstrings of os module functions

2017-01-23 Thread Xiang Zhang
Xiang Zhang added the comment: I don't mean to sync the docstring and the documentation totally. But just like os.chown, there are some functions explicitly mention the acceptable types of path parameter in their docstrings. I think since they already mention the types, then make the list

[issue29189] Broken indentation in FancyURLopener documentation

2017-01-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset fb2885f9b4dd by Martin Panter in branch '2.7': Issue #29189: Fix indentation in RST markup https://hg.python.org/cpython/rev/fb2885f9b4dd New changeset 75e341d79c99 by Martin Panter in branch '3.5': Issue #29189: Fix indentation in RST markup

[issue29341] Missing accepting path-like object in docstrings of os module functions

2017-01-23 Thread Emily Morehouse
Emily Morehouse added the comment: I see that path-like objects are indeed mentioned in the documentation (Doc/library/os.rst), simply stating "Changed in version 3.6: Supports a path-like object." Other methods, such as os.chroot, also mention such a change. Comparing the docs mentioned

[issue29338] Output the text signature in the help of a class

2017-01-23 Thread Nick Coghlan
Nick Coghlan added the comment: Enum's interaction with the help subsystem has always been somewhat fragile: http://bugs.python.org/issue18693 In this case, I think a reasonable quick fix would be to add the new text to the expected output for enum instances (allowing this issue to be closed

[issue29338] Output the text signature in the help of a class

2017-01-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is easy to fix the test by adding missed lines. But I'm not sure that output the (correct) signature of enum classes makes the help better. Color(value, names=None, *, module=None, qualname=None, type=None, start=1) Ethan, what are your thoughts?

[issue24363] httplib fails to handle semivalid HTTP headers

2017-01-23 Thread Martin Panter
Martin Panter added the comment: Just a minor update with an extra get_payload() test I missed before -- versions: +Python 3.7 Added file: http://bugs.python.org/file46400/policy-flag.v2.patch ___ Python tracker

[issue28556] typing.py upgrades

2017-01-23 Thread Martin Panter
Martin Panter added the comment: ERROR: test_annotation_usage_with_methods (test.test_typing.NamedTupleTests) -- Traceback (most recent call last): File "/home/proj/python/cpython/Lib/test/test_typing.py", line 2058, in

[issue29349] Update old Python 2 code in Docs/tools/extensions/patchlevel.py

2017-01-23 Thread Martin Panter
Martin Panter added the comment: Is it okay to only fix this in 3.5+? 3.4 only gets security fixes now. Either way, the “with” statement changes is not a bug fix and should only go into 3.7. -- nosy: +martin.panter stage: -> commit review ___

[issue29273] test___all__ alters utf8 locale setting

2017-01-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 154757703c98 by Martin Panter in branch '3.5': Issue #29273: Remove unneeded workaround to restore locale https://hg.python.org/cpython/rev/154757703c98 New changeset 146f7ec82f93 by Martin Panter in branch '3.6': Issues #29273: Merge test___all__

[issue29356] TypeError by typing for Ellipsis

2017-01-23 Thread Ádám Szieberth
New submission from Ádám Szieberth: I would expect Ellipsis the same behavior as None in type hints instead of: TypeError: Union[arg, ...]: each arg must be a type. Got Ellipsis. ... would be much nicer than type(...) there. -- messages: 286134 nosy: Ádám Szieberth priority: normal

[issue29347] Python 2.7.8 is crashing while creating weakref for a given object.

2017-01-23 Thread Saida Dhanavath
Saida Dhanavath added the comment: Hi Christian Heimes, Please ignore typos in the previous post. I have written some code to simulate and test PyWeakReference struct instantiation and then hit segfault based on the flag passed to C code. Here I am trying to execute some of the operations

[issue29343] sock.close() raises OSError EBADF when socket's fd is closed

2017-01-23 Thread Yury Selivanov
Yury Selivanov added the comment: Christian, how did you find this (i.e. what module/package is broken because of this)? I'm still not entirely sure that raising EBADF in socket.close() is a good thing. -- nosy: +yselivanov ___ Python tracker

[issue29354] Python 2.7.12: pydoc.help(lambda (a, ): lambda x: a) raises IndexError

2017-01-23 Thread Yury Selivanov
Yury Selivanov added the comment: Hi Emily! Python 2.7 is in a maintenance-only mode at this point and mostly receives security-related patches. The problem with accepting other kind of patches is that we want 2.7 to be super stable. You can continue working on this bug anyways, once the

[issue29355] sqlite3: remove sqlite3_stmt_readonly()

2017-01-23 Thread Ma Lin
New submission from Ma Lin: In CPython 3.6.0, sqlite3 module uses sqlite3_stmt_readonly(), however this function is only available on SQLite 3.7.4+ (release on 2010-12-07). Then CPython 3.6.0 can not be compiled on RHEL6 (with SQLite 3.6.x), complaints: issue29098, issue29325.

[issue12067] Doc: remove errors about mixed-type comparisons.

2017-01-23 Thread Martin Panter
Changes by Martin Panter : Added file: http://bugs.python.org/file46399/expressions-py3.7_v17.diff ___ Python tracker ___

[issue29354] Python 2.7.12: pydoc.help(lambda (a, ): lambda x: a) raises IndexError

2017-01-23 Thread Emily Morehouse
Emily Morehouse added the comment: Aspiring contributor here! I believe I have narrowed this error down to the inspect module, specifically in the for loop beginning on line 759. There's a bit of "acrobatics" (to quote the code comments) that I'm trying to sift through, I've been using the

[issue12067] Doc: remove errors about mixed-type comparisons.

2017-01-23 Thread Martin Panter
Martin Panter added the comment: Updated patch for 2.7, which I plan to commit soon. Corresponding Py 3 patch coming soon. -- Added file: http://bugs.python.org/file46398/expressions-py2.7_v17.diff ___ Python tracker

[issue29338] Output the text signature in the help of a class

2017-01-23 Thread Xiang Zhang
Xiang Zhang added the comment: Things doesn't come to an end. :-( The enum test suite also gets a related test and make the buildbot fail: FAIL: test_pydoc (test.test_enum.TestStdLib) -- Traceback (most recent call last):

[issue21272] use _sysconfigdata to itinialize distutils.sysconfig

2017-01-23 Thread Martin Panter
Changes by Martin Panter : -- versions: +Python 3.6 -Python 3.5 ___ Python tracker ___

[issue29353] Incorrect handling of HTTP response with "Content-Type: message/rfc822" header

2017-01-23 Thread Martin Panter
Martin Panter added the comment: There is an inconsistency when parsing with headersonly=True. According to the documentation, get_payload() with message/rfc822 should should return a list of Message objects, not a string. But using headersonly=True produces a non-multipart Message object:

[issue29339] Interactive: Move to same indentation level as previous line

2017-01-23 Thread 12345 67890
12345 67890 added the comment: In addition, windows allows direct console control via the win32 API and the code for that isn't too lengthy. -- ___ Python tracker

[issue29339] Interactive: Move to same indentation level as previous line

2017-01-23 Thread 12345 67890
12345 67890 added the comment: It probably won't be trivial, but it definitely is possible. Suplemon has the exact functionality needed and it's only dependency is CPython. The only question is: how much code is this going to add? [1]: https://github.com/richrd/suplemon --

[issue29228] sqlite3 OperationalError on changing into WAL transaction mode

2017-01-23 Thread Aviv Palivoda
Aviv Palivoda added the comment: There is also a issue with the docs here. Look at issue 29121. -- nosy: +palaviv ___ Python tracker ___

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

2017-01-23 Thread Aviv Palivoda
Aviv Palivoda added the comment: Removed opening a transaction on select. I will argue for that in issue 9924 after this is resolved. -- Added file: http://bugs.python.org/file46397/sqlite-ddl-dml-3.patch ___ Python tracker

[issue29343] sock.close() raises OSError EBADF when socket's fd is closed

2017-01-23 Thread Charles-François Natali
Charles-François Natali added the comment: FWIW I agree with Antoine and Martin: ignoring EBADF is a bad idea, quite dangerous. The man page probably says this to highlight that users shouldn't *retry* close(): """ Retrying the close() after a failure return is the wrong thing to do,

[issue18235] _sysconfigdata.py wrong on AIX installations

2017-01-23 Thread Michael Felt
Michael Felt added the comment: You guys are the experts. I can only comment on what I see. IMHO: the file _sysconfigdata.py is more accurate with nothing in it. I am clearly confused by whatever process this is. If you believe it is more accurate to have the BLD variable 'inaccurate' in this

[issue29354] Python 2.7.12: pydoc.help(lambda (a, ): lambda x: a) raises IndexError

2017-01-23 Thread Elias Vanderstuyft
New submission from Elias Vanderstuyft: The following might be either a bug in the pydoc module or in the inspect module: $ python Python 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import

[issue29339] Interactive: Move to same indentation level as previous line

2017-01-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: The point I was trying to get at above is that simply printing a prompt and making the use enter the entire line should work on every console, while anything fancier may not be so reliable. Thinking more, I realize that my patch outline is incomplete. After

[issue29152] unittest subTest does not call addFailure

2017-01-23 Thread Martin Panter
Martin Panter added the comment: It is not obvious what the effect of not calling addFailure() is, but perhaps this is related to Issue 25894? Failure and error statuses are not immediately reported from subtests. -- nosy: +martin.panter ___ Python

[issue29347] Python 2.7.8 is crashing while creating weakref for a given object.

2017-01-23 Thread Saida Dhanavath
Saida Dhanavath added the comment: Hi Christian Heimes, PFA. I have written a some code to simulate and test PyWeakReference struct instantion and then hit segfault based on flag passed-in to C code. Here I am trying to execute some of the operations from new_weakref and dealloc_weakref of

[issue18235] _sysconfigdata.py wrong on AIX installations

2017-01-23 Thread David Edelsohn
David Edelsohn added the comment: I completely agree with Martin's concern. As I expressed before, this needs to work in three contexts: 1) Building modules in the tree during the build process. 2) In-tree testing of build module feature (test_distutils). 3) Building and installing modules

[issue18235] _sysconfigdata.py wrong on AIX installations

2017-01-23 Thread Martin Panter
Martin Panter added the comment: If the assignment is completely removed, won’t this break the test when run from the source or build tree (as opposed to when installed)? Or at least make the situation worse: the AIX buildbot is already failing test_distutils, but at least it is looking for

[issue29339] Interactive: Move to same indentation level as previous line

2017-01-23 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: Thanks for the standard explanation, Brett. I was just following the devguide too strictly and assumed python-ideas is the first place one should go :-). As for the idea, it seems others wish/wished it too (first paragraph:

[issue29339] Interactive: Move to same indentation level as previous line

2017-01-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Adding at least 'dumb indentation' (repeat last indent) to the REPL would make it at least a bit more usable. (This still would not be a good as an IDE, like IDLE, that does smarter indentation, such as adding an additional indent after a compound statement

[issue29339] Interactive: Move to same indentation level as previous line

2017-01-23 Thread Brett Cannon
Brett Cannon added the comment: No, I don't think you were rude, 12345 67890. I was just giving the standard explanation as some people are not pleasant and you never know who might read this issue later and benefit from the reminder. -- ___ Python

[issue29353] Incorrect handling of HTTP response with "Content-Type: message/rfc822" header

2017-01-23 Thread R. David Murray
R. David Murray added the comment: IMO http *should* be using headersonly=True, so while I haven't looked into this issue the solution seems plausible to me. I'm not entirely sure why it is considered a backward-compatibility hack, but I don't see any likelyhood that the headersonly API will

[issue29339] Interactive: Move to same indentation level as previous line

2017-01-23 Thread 12345 67890
12345 67890 added the comment: I hope I haven't been rude; the idea here was to see what the feeling of the core developers was about this idea. As for the patch, that will probably come after the Python workflow has been fixed because doing it then will save everyone time and as I have said,

[issue29339] Interactive: Move to same indentation level as previous line

2017-01-23 Thread Brett Cannon
Brett Cannon added the comment: Posting an idea directly to the issue tracker is fine as long as it's done in a reasonable fashion (i.e. not rudely). As for the specific idea, I assume this is for the REPL as used in a shell and not in IDLE. If you want to propose a patch that can work

[issue29337] BytesWarning at compile time

2017-01-23 Thread Brett Cannon
Brett Cannon added the comment: LGTM -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list

[issue29353] Incorrect handling of HTTP response with "Content-Type: message/rfc822" header

2017-01-23 Thread brokenenglish
New submission from brokenenglish: Hello. I found a bug that causes incorrect handling of some values of "Content-Type" header. When you retrieve any URL with "Content-Type: message/rfc822" header, additional payload is added to HTTPMessage. In some cases it causes annoing warnings. Here is

[issue26491] Defer DECREFs until enum object is in a consistent state for re-entrancy

2017-01-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> rhettinger status: pending -> open ___ Python tracker ___

[issue29167] Race condition in enum.py:_decompose()

2017-01-23 Thread Ethan Furman
Ethan Furman added the comment: Fixed the race condition for both the RuntimeError and for getting duplicate composite members. -- keywords: +patch stage: test needed -> patch review Added file: http://bugs.python.org/file46394/issue29167.stoneleaf.01.patch

[issue29350] Add support of multiple signatures

2017-01-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It can be do, but I don't think it is worth. Making bases and mapping optional arguments does not make much sense to me. And there is no a value that can be used as a default value for the second parameter in dict.pop(). --

[issue29335] subprocess module does not check WIFSTOPPED on SIGCHLD

2017-01-23 Thread Zach Riggle
Zach Riggle added the comment: Neat, though that's not in the standard library. The current logic for getting a handle to libc could also be simplified via ctypes.util.find_library (https://docs.python.org/3/library/ctypes.html#finding-shared-libraries). Darwin: >>> import ctypes.util

[issue29351] absolute imports for logging

2017-01-23 Thread Vinay Sajip
Vinay Sajip added the comment: > No, we cannot consider these changes under any circumstances for 2.7 because > ... Well, it would change import behaviour in a backwards-incompatible way, wouldn't it? -- ___ Python tracker

[issue29350] Add support of multiple signatures

2017-01-23 Thread Yury Selivanov
Yury Selivanov added the comment: Signature object provides methods like .bind(), which will be hard to define if a function has many signatures. Also, inspect.signature currently returns one Signature object, that shouldn't be changed. Wouldn't it be easier instead of this: type(obj)

[issue29335] subprocess module does not check WIFSTOPPED on SIGCHLD

2017-01-23 Thread STINNER Victor
STINNER Victor added the comment: If you want crashes, look at the portable faulthandler._sigsegv() :-) -- ___ Python tracker ___

[issue29335] subprocess module does not check WIFSTOPPED on SIGCHLD

2017-01-23 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___

[issue29335] subprocess module does not check WIFSTOPPED on SIGCHLD

2017-01-23 Thread Zach Riggle
Zach Riggle added the comment: Of note, there's no need to actually cause a SIGSEGV to generate the signal. The tests might be more clear to replace: libc.printf(ctypes.c_char_p(0xdeadbeef)) with os.kill(os.getpid(), signal.SIGSEGV) --

[issue29352] provide the authorative source for s[i:j] negative slice indices (<-len(s)) behavior for standard sequences

2017-01-23 Thread Akira Li
New submission from Akira Li: I've failed to find where the behavior for negative indices in s[i:j] expression (i, j < -len(s)) for standard sequences (str, list, etc) is formally defined. The observed behavior implemented in PySlice_GetIndicesEx(): If "len(s) + i" or "len(s) + j" is negative,

[issue29351] absolute imports for logging

2017-01-23 Thread Markus Gerstel
Markus Gerstel added the comment: Yes, this is indeed the same for other stdlib modules, too. Logging is just the first one that came to attention in our investigations. I haven't prepared any other patches yet though, because your answer could easily be "No, we cannot consider these changes

[issue29136] Add OP_NO_TLSv1_3

2017-01-23 Thread Christian Heimes
Christian Heimes added the comment: No, of course it does not work (yet): $ LD_LIBRARY_PATH=. apps/openssl ciphers TLS13 Error in cipher list 140546693477888:error:1410D0B9:SSL routines:SSL_CTX_set_cipher_list:no cipher match:ssl/ssl_lib.c:2100: --

[issue29136] Add OP_NO_TLSv1_3

2017-01-23 Thread Alex Gaynor
Alex Gaynor added the comment: We can easily just add `TLS13:...` at the from of our ciphersuite list and it'll be ok though right? (Note to self, do the same in urllib3, twisted, requests, god only knows what else) -- nosy: +alex ___ Python

[issue29351] absolute imports for logging

2017-01-23 Thread Vinay Sajip
Vinay Sajip added the comment: There's nothing particular about logging here, is there? Any of the 2.7 stdlib modules will exhibit similar behaviour, since that __future__ import is not in general defined in the stdlib modules, other than in the test suite. --

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2017-01-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Updated patch for longobject.c addresses Martin's comments. -- Added file: http://bugs.python.org/file46392/clinic_longobject_v4.patch ___ Python tracker

[issue28876] bool of large range raises OverflowError

2017-01-23 Thread Mark Dickinson
Mark Dickinson added the comment: Latest patch LGTM too. -- ___ Python tracker ___ ___ Python-bugs-list

[issue29346] datetime.utcfromtimestamp() returns strange result for very large values

2017-01-23 Thread Eli Collins
Eli Collins added the comment: My apologies, I think Alexander is right, this is a duplicate of #29100 I'd seen the first message in that issue talking about a core dump, and thought this was different problem; but I see the scope of the issue broadened to cover general bounds issues in later

[issue29351] absolute imports for logging

2017-01-23 Thread Dries Desmet
Changes by Dries Desmet : -- nosy: +dries_desmet ___ Python tracker ___ ___ Python-bugs-list

[issue29351] absolute imports for logging

2017-01-23 Thread Markus Gerstel
Changes by Markus Gerstel : -- nosy: +vinay.sajip ___ Python tracker ___ ___

[issue29339] Interactive: Move to same indentation level as previous line

2017-01-23 Thread 12345 67890
12345 67890 added the comment: I did not mark this as a bug. I marked it as an "enhancement" and I said that the priority was low. "I'm not exactly sure what you mean" In an IDE when developing in python, each time you press enter, the cursor is set to the same indentation level as the

[issue28876] bool of large range raises OverflowError

2017-01-23 Thread Akira Li
Akira Li added the comment: I've updated the patch to use 4-space indent (pep-7). I've added space around "=" (pep-7); unlike the usual "dict(designator=value)" -- no space around "=" for keyword argument (pep-8). -- Added file:

[issue18235] _sysconfigdata.py wrong on AIX installations

2017-01-23 Thread Michael Felt
Michael Felt added the comment: This is "only" for Python-2.7 (for now). The others will be tested as I am able. Working with the patch submitted 2013-10-19 (aka https://bugs.python.org/file32229/issue18235.patch) A) Without/before the patch: root@x064:[/data/prj/python/Python-2.7.13.0]grep

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

2017-01-23 Thread Berker Peksag
Berker Peksag added the comment: > 1. Should we add the VACUUM with a explicit commit? Maybe there should > be an implicit commit before VACUUM? VACUUM is often an expensive operation so I think people should need to explicitly handle it anyway. > 2. Should a SELECT start a transaction? I

[issue29325] pysqlite: Evaluate removal of sqlite3_stmt_readonly

2017-01-23 Thread Ma Lin
Ma Lin added the comment: Just remind, there is a chance to remove sqlite3_stmt_readonly(). :) -- nosy: +berker.peksag, palaviv ___ Python tracker ___

[issue29152] unittest subTest does not call addFailure

2017-01-23 Thread kristall
kristall added the comment: Thanks for the quick 1st response. Since I put that part of my script on hold, I'd like to ask if it is possible to estimate when Antoine will have a look at this? Thanks in advance. -- ___ Python tracker

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

2017-01-23 Thread Ma Lin
Ma Lin added the comment: If the answer is (no, no) , the behavior strictly follows the doc changes in commit 284676cf2ac8. Anyway, I'm not a deep user of SQLite, I can't give further advices. :( -- ___ Python tracker

[issue29351] absolute imports for logging

2017-01-23 Thread Markus Gerstel
New submission from Markus Gerstel: Running 'import logging' causes at minimum 46 failing 'open' and 12 failing 'stat' calls because python looks for packages inside python/Lib/logging which will never be there, in particular: sys, os, time, cStringIO, traceback, warnings, weakref,

[issue29336] merge tuples in module

2017-01-23 Thread INADA Naoki
INADA Naoki added the comment: Thanks. Your patch reduced memory consumption by 2%, and number of tuples by 15%. $ cat invtuple.py import app import sys import traceback import tracemalloc print(tracemalloc.get_traced_memory()) allobj = sys.getobjects(0, tuple) print(len(allobj)) $

[issue29212] Python 3.6 logging thread name regression with concurrent.future threads

2017-01-23 Thread INADA Naoki
INADA Naoki added the comment: OK. I'll wait for another opinions. -- ___ Python tracker ___ ___

[issue29212] Python 3.6 logging thread name regression with concurrent.future threads

2017-01-23 Thread desbma
desbma added the comment: I don't think using repr(self) as a fallback was intentional, that is why I wrote regression, but I may be wrong. I agree that the previous default 'Thread-x' gives little information, but only the user can give a relevant name to describe what a thread is doing.

[issue29338] Output the text signature in the help of a class

2017-01-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, I forgot to run tests for such simple change! Thanks for reminder Xiang! -- ___ Python tracker ___

[issue29338] Output the text signature in the help of a class

2017-01-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset cebc9c7ad195 by Serhiy Storchaka in branch 'default': Issue #29338: Don't output an empty signature for class constructor. https://hg.python.org/cpython/rev/cebc9c7ad195 -- ___ Python tracker

[issue26273] Expose TCP_CONGESTION and TCP_USER_TIMEOUT to the socket module

2017-01-23 Thread STINNER Victor
STINNER Victor added the comment: > Patch looks good to me. Oh, I forgot socket_doc.patch! Thanks Serhiy for the reminder and Martin for the review :-) I just pushed the patch. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue26273] Expose TCP_CONGESTION and TCP_USER_TIMEOUT to the socket module

2017-01-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset ffb2534fcbf1 by Victor Stinner in branch '3.6': Issue #26273: Document TCP_USER_TIMEOUT and TCP_CONGESTION https://hg.python.org/cpython/rev/ffb2534fcbf1 -- ___ Python tracker

[issue28749] Fixed the documentation of the mapping codec APIs

2017-01-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: "bytes ordinals" is good term. Thank you. Here is an updated patch. > No, I'd prefer this deprecation to be undone as long as we > don't have a proper alternative for the API. This is different issue. -- Added file:

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

2017-01-23 Thread STINNER Victor
STINNER Victor added the comment: Antoine Pitrou: "Benchmarks and Intel's recommendation show that aligned allocation is actually important for AVX performance, and NumPy depends on CPython providing the right allocation APIs (for integration with tracemalloc):

[issue29338] Output the text signature in the help of a class

2017-01-23 Thread Xiang Zhang
Xiang Zhang added the comment: The buildbots are failing due to test_pydoc. :-( -- nosy: +xiang.zhang ___ Python tracker ___

[issue24379] Add operator.subscript as a convenience for creating slices

2017-01-23 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___

[issue28651] Make objects with empty __slots__ GC types

2017-01-23 Thread STINNER Victor
STINNER Victor added the comment: This issue was mentioned in another issue when a refleak was found: http://bugs.python.org/issue24379#msg280456 -- nosy: +haypo ___ Python tracker

[issue29338] Output the text signature in the help of a class

2017-01-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks Raymond. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue29338] Output the text signature in the help of a class

2017-01-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3d5dcdf26fab by Serhiy Storchaka in branch 'default': Issue #29338: The help of a builtin or extension class now includes the https://hg.python.org/cpython/rev/3d5dcdf26fab -- nosy: +python-dev ___

[issue26729] Incorrect __text_signature__ for sorted

2017-01-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset c0a9fb3e19b9 by Serhiy Storchaka in branch '3.5': Issue #26729: Fixed __text_signature__ for sorted(). https://hg.python.org/cpython/rev/c0a9fb3e19b9 New changeset fcb19fb42058 by Serhiy Storchaka in branch '3.6': Issue #26729: Fixed

[issue26729] Incorrect __text_signature__ for sorted

2017-01-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker

[issue29350] Add support of multiple signatures

2017-01-23 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Some functions can be described by the single signature. See examples in msg285647. Selected examples: dict.pop(key) dict.pop(key, default) type(obj) type(name, bases, mapping) range(stop) range(start, stop, step=1) min(iterable, *,

[issue27867] various issues due to misuse of PySlice_GetIndicesEx

2017-01-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: We can't just add API functions in maintained releases, because it will break the stable ABI. We can use them only when explicitly define the version of API. Proposed patch for 3.6 and 3.7 adds public API functions PySlice_Unpack() and

[issue29339] Interactive: Move to same indentation level as previous line

2017-01-23 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: I'm not exactly sure what you mean but, since this isn't a bug per se and is more of a subjective opinion on how the REPL should handle the indentation level, you should probably ask *first* on python-ideas to get input from other members. (See

[issue29349] Update old Python 2 code in Docs/tools/extensions/patchlevel.py

2017-01-23 Thread Jim Fasarakis-Hilliard
New submission from Jim Fasarakis-Hilliard: There's a hidden Python 2 print call in the script that only gets reached after you move the Doc/ folder outside the main CPython directory and run `make html`. Additionally, an obsolete way of assuring a file gets closed is used (changed to use

[issue28749] Fixed the documentation of the mapping codec APIs

2017-01-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: >> The only part that is not correct is "single string characters". >> This should read "single bytes" or "bytes strings of length 1". > > This is not correct. Decoding mappings map not bytes strings, but integers. Looking at the implementation, you're

[issue26729] Incorrect __text_signature__ for sorted

2017-01-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: Serhiy, do you want to apply this? -- ___ Python tracker ___ ___

[issue26729] Incorrect __text_signature__ for sorted

2017-01-23 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: rhettinger -> serhiy.storchaka ___ Python tracker ___

[issue29347] Python 2.7.8 is crashing while creating weakref for a given object.

2017-01-23 Thread Christian Heimes
Christian Heimes added the comment: Can you reproduce the issue with a more recent version of Python 2.7? 2.7.8 is pretty old. -- nosy: +christian.heimes ___ Python tracker

[issue29338] Output the text signature in the help of a class

2017-01-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: The patch looks fine and meets a real need. I say go ahead and apply it if no other objections arise. -- ___ Python tracker

  1   2   >