[issue18521] [cppcheck] Full report

2013-10-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Shouldn't converttuple() in getargs.c set "levels[1] = 0;" after second "levels[0] = i+1;"? -- ___ Python tracker ___ ___

[issue18606] Add statistics module to standard library

2013-10-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: I think this should get checked in so that people can start interacting with it. The docstrings and whatnot can get tweaked later. -- nosy: +rhettinger ___ Python tracker

[issue18521] [cppcheck] Full report

2013-10-13 Thread Georg Brandl
Georg Brandl added the comment: I fixed some items from Ezio's list that I think were legitimate; the rest is mostly invalid. -- nosy: +georg.brandl ___ Python tracker ___ _

[issue18521] [cppcheck] Full report

2013-10-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 63bc2fe28a6e by Georg Brandl in branch 'default': Re #18521: move array bounds check before array access. http://hg.python.org/cpython/rev/63bc2fe28a6e -- ___ Python tracker

[issue18521] [cppcheck] Full report

2013-10-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7396d10405db by Georg Brandl in branch 'default': Re #18521: remove assignments of variables that are immediately reassigned. http://hg.python.org/cpython/rev/7396d10405db -- ___ Python tracker

[issue18521] [cppcheck] Full report

2013-10-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset eaeaed43ff1c by Georg Brandl in branch 'default': Re #18521: fix not-quite-C syntax that works only because the PyXXX_Check are macros defined with () around them. http://hg.python.org/cpython/rev/eaeaed43ff1c -- nosy: +python-dev

[issue14112] tutorial intro talks of "shallow copy" concept without explanation

2013-10-13 Thread Georg Brandl
Georg Brandl added the comment: The text talks about containers which, although often the case, is not general enough; copy() and deepcopy() can work with any object. -- ___ Python tracker

[issue18521] [cppcheck] Full report

2013-10-13 Thread Ezio Melotti
Ezio Melotti added the comment: I grouped the errors by message and checked of there were any actual errors. Most of the reports seemed wrong or false positive, but a few looked fixable. I haven't checked the "Unusued variable" ones, because they are harmless (even thought we could clean the

[issue4965] Can doc index of html version be separately scrollable?

2013-10-13 Thread Georg Brandl
Georg Brandl added the comment: You'll have to put a copy in sphinxext/static. -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue19251] bitwise ops for bytes of equal length

2013-10-13 Thread Ramchandra Apte
Ramchandra Apte added the comment: +1 -- nosy: +Ramchandra Apte ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4888] misplaced (or misleading) assert in ceval.c

2013-10-13 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue14112] tutorial intro talks of "shallow copy" concept without explanation

2013-10-13 Thread Ezio Melotti
Ezio Melotti added the comment: Here is a patch that adds glossary entries for deep and shallow copy. I tried to keep them simple and clear enough. FWIW http://docs.python.org/3.4/library/copy.html also has a definition of the terms. If my definitions are OK I will add links to the terms wer

[issue4888] misplaced (or misleading) assert in ceval.c

2013-10-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> patch review versions: +Python 3.4 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mail

[issue887237] Machine integers

2013-10-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- versions: +Python 3.4 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15826] Increased test coverage of test_glob.py

2013-10-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: patch review -> commit review versions: -Python 3.2, Python 3.3 Added file: http://bugs.python.org/file32106/issue15826.diff ___ Python tracker _

[issue17029] h2py.py: search the multiarch include dir if it does exist

2013-10-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___ Pyt

[issue11928] fail on filename with space at the end

2013-10-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- type: -> behavior versions: +Python 3.4 -Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue19217] Calling assertEquals for moderately long list takes too long

2013-10-13 Thread Ezio Melotti
Ezio Melotti added the comment: Here's a proof of concept to fix the issue (still lacks tests and breaks one existing test). The problem is that assertSequenceEqual computes the diff regardless of the size of the sequences, and then truncates it if it's too long. Producing the diff takes tim

[issue18606] Add statistics module to standard library

2013-10-13 Thread Tim Peters
Tim Peters added the comment: Do what's best for the future of the module. A PEP is more of a starting point than a constraint, especially for implementation details. And making a private thing public later is one ginormous whale of a lot easier than trying to remove a public thing later. "

[issue18606] Add statistics module to standard library

2013-10-13 Thread Steven D'Aprano
Steven D'Aprano added the comment: Oscar Benjamin has just made a proposal to me off-list that has *almost* convinced me to make statistics.sum a private implementation detail, at least for the 3.4 release. I won't go into detail about Oscar's proposal, but it has caused me to rethink all the

[issue11763] assertEqual memory issues with large text inputs

2013-10-13 Thread Ezio Melotti
Ezio Melotti added the comment: Attached an updated patch that addresses Serhiy comments. The tests in the previous patch have been committed already, so this might need new tests. The first problem I mentioned in msg134530 has been reported in #19217. -- Added file: http://bugs.pytho

[issue19249] Enumeration.__eq__

2013-10-13 Thread Ethan Furman
Ethan Furman added the comment: Here's the current __eq__ method: def __eq__(self, other): if type(other) is self.__class__: return self is other return NotImplemented It is, in fact, using identity and not value equality. I'm thinking we should either remove an

[issue19082] Lib/xmlrpc/client.py demo code points to the dead server

2013-10-13 Thread Senthil Kumaran
Senthil Kumaran added the comment: The patch is good. I think, it is better to include this information in documentation too. Please let me know if this suitable, I shall go ahead committing this. (With credits to Vajrasky Kok) -- assignee: -> orsenthil nosy: +orsenthil versions: +Pyt

[issue19176] DeprecationWarning for doctype() method when subclassing _elementtree.XMLParser

2013-10-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue19252] Enum.py : Enum.__new__() : Test Coverage

2013-10-13 Thread Ethan Furman
Ethan Furman added the comment: I'm not sure what you are talking about. Here's the code: try: if value in cls._value2member_map_: return cls._value2member_map_[value] except TypeError: # not there, now do long search -- O(n) behavior for member in cl

[issue4965] Can doc index of html version be separately scrollable?

2013-10-13 Thread Ezio Melotti
Ezio Melotti added the comment: I committed the patch on 3.3/3.x. I'm willing to port the patch on 2.7 too, however sidebar.js is not in Doc/tools/sphinxext/static/ but in Doc/tools/sphinx/themes/default/static/, which is not under version control. How do you suggest to proceed? --

[issue4965] Can doc index of html version be separately scrollable?

2013-10-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3bb34d370871 by Ezio Melotti in branch '3.3': #4965: Implement intelligent scrolling of the sidebar in the docs. http://hg.python.org/cpython/rev/3bb34d370871 New changeset 8d916ea12efb by Ezio Melotti in branch 'default': #4965: merge with 3.3. htt

[issue19027] undefined symbol: _PyParser_Grammar

2013-10-13 Thread Ned Deily
Ned Deily added the comment: BTW, this can be worked around (for non cross-builds at least) by running "make touch" on the source directory, e.g.: make -C python/src -f python/build/Makefile touch But it should be fixed. Doko? -- ___ Python tr

[issue19256] Optimize marshal format and add version token.

2013-10-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: > "I actually agree with Kristjan that an opcode is the least disruptive > choice here." > > Does you mean that data serialized with python 3.3 can be read with > python 3.4? But not the opposite (version token unknown in Python > 3.3)? Yes, indeed. I'm not sur

[issue19256] Optimize marshal format and add version token.

2013-10-13 Thread STINNER Victor
STINNER Victor added the comment: "I actually agree with Kristjan that an opcode is the least disruptive choice here." Does you mean that data serialized with python 3.3 can be read with python 3.4? But not the opposite (version token unknown in Python 3.3)? --

[issue19256] Optimize marshal format and add version token.

2013-10-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: I actually agree with Kristjan that an opcode is the least disruptive choice here. I also agree it's useful if we want to be able to evolve the protocol without being tied by backwards compatibility constraints. -- __

[issue19256] Optimize marshal format and add version token.

2013-10-13 Thread STINNER Victor
STINNER Victor added the comment: Good idea to add a version. But it should not be a token, but a mandatory header at the beginning. For example, 16 unsigned bits at the beginning. Many file formats use a "magic" key, like "MZ" for Windows executable or "GIF" for GIF pictures. What do you thin

[issue19256] Optimize marshal format and add version token.

2013-10-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Let defer version token until it be needed. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___

[issue19256] Optimize marshal format and add version token.

2013-10-13 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue19256] Optimize marshal format and add version token.

2013-10-13 Thread Kristján Valur Jónsson
New submission from Kristján Valur Jónsson: Issue $19219 added new tokens making marshal format smaller and faster. This patch adds two new tokens: TYPE_SHORT_REF for which the ref index is a byte and TYPE_VERSION for which the operand is the protocol version. The former helps because it catches

[issue19246] GC does not really free up memory in console

2013-10-13 Thread Tim Peters
Tim Peters added the comment: haypo, there would only be a million ints here even if the loop had completed. That's trivial in context (maybe 14 MB for the free list in Python 2?). And note that I did my example run under Python 3. Besides, the OP and I both reported that Task Manager showed

[issue19255] Don't "wipe" builtins at shutdown

2013-10-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Perhaps we should special case shutdown of the builtins module. E.g. > reset it to initial value (all initial members of the builtins module > are immutable and can't create resource loops) instead wiping. This sounds like a reasonable approach. -- _

[issue1539925] warnings in interactive sessions

2013-10-13 Thread Alan Cristhian
Changes by Alan Cristhian : -- nosy: +Alan.Cristhian ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue19246] GC does not really free up memory in console

2013-10-13 Thread STINNER Victor
STINNER Victor added the comment: int type of Python 2 uses an internal "free list" which has an unlimited size. If once you have 1 million different integers are the same time, the memory will never be released, even if the container storing all these integers is removed, because a reference

[issue19246] GC does not really free up memory in console

2013-10-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Works fine on a 32-bit Linux build (64-bit machine, though): >>> import sys >>> sys.maxsize 2147483647 >>> a = {} >>> for k in range(100): a['a' * k] = k ... Traceback (most recent call last): File "", line 1, in MemoryError >>> del a >>> a = {} >>> for

[issue19246] GC does not really free up memory in console

2013-10-13 Thread Tim Peters
Tim Peters added the comment: Here on 32-bit Windows Vista, with Python 3: C:\Python33>python.exe Python 3.3.2 (v3.3.2:d047928ae3f6, May 16 2013, 00:03:43) [MSC v.1600 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> a = {} >>> for k in range(1

[issue17084] nntplib.NNTP.xover does not always return results as documented

2013-10-13 Thread Georg Brandl
Georg Brandl added the comment: The NNTP server seems to be violating the protocol; it is supposed to convert tab characters in the fields to spaces. It appears that in your example the list of references was separated by a tab character, which Python then (correctly) interprets as separator.

[issue16732] setup.py support for xxmodule without tkinker

2013-10-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset c167ab1c49c9 by Georg Brandl in branch '2.7': Closes #16732: move "xxmodule" comment block to detect_modules(). (Already done in 3.x) http://hg.python.org/cpython/rev/c167ab1c49c9 -- nosy: +python-dev resolution: -> fixed stage: -> commi

[issue19255] Don't "wipe" builtins at shutdown

2013-10-13 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Many __del__ methods expect that builtins are existing at the time of executing. But when the object survives until the builtins module is wiped, __del__ will fail with unexpected AttributeError (see issue19021 for example). We can change __del__'s in the

[issue16657] traceback.format_tb incorrect docsting

2013-10-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset dcded8c7af89 by Georg Brandl in branch '3.3': Closes #16657: fix docstring of traceback.format_tb(). http://hg.python.org/cpython/rev/dcded8c7af89 -- ___ Python tracker

[issue19254] Python implementation of PBKDF2_HMAC

2013-10-13 Thread Christian Heimes
New submission from Christian Heimes: The patch provides a Python implementation of pbkdf2_hmac with Python's hmac module. Although I'm using some tricks it's more than six times slower than OpenSSL's implementation. -- files: pbkdf2_py.patch keywords: patch messages: 199808 nosy: chri

[issue16657] traceback.format_tb incorrect docsting

2013-10-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset e6ab0cd959a0 by Georg Brandl in branch '2.7': Closes #16657: fix docstring of traceback.format_tb(). http://hg.python.org/cpython/rev/e6ab0cd959a0 -- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected status: open -> close

[issue12348] case sensitivity in packaging.pypi.simple.Crawler

2013-10-13 Thread Georg Brandl
Georg Brandl added the comment: Closing as a packaging-related bug. -- nosy: +georg.brandl resolution: -> out of date status: open -> closed ___ Python tracker ___ _

[issue19021] AttributeError in Popen.__del__

2013-10-13 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: patch review -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue19251] bitwise ops for bytes of equal length

2013-10-13 Thread Christian Heimes
Christian Heimes added the comment: You got me, Antoine! I'm working on a Python-only implementation of PBKDF2_HMAC. It involves XOR of two bytes in one place. Serhiy, I'm not going to turn Python into Perl. I merely like to provide a simple and well defined feature with existing syntax. I pro

[issue19253] PyArg_ParseTuple: wrong use of seterror() clips helpful type error annotation

2013-10-13 Thread Georg Brandl
New submission from Georg Brandl: Follow-up to #6624. This issue changed a call to seterror() whose last argument is supposed to be NULL or a "custom error message" given by the ";message" format character. This had two effects: * the custom message (if present) is never printed * the helpful

[issue19027] undefined symbol: _PyParser_Grammar

2013-10-13 Thread Ned Deily
Ned Deily added the comment: It looks like this was caused by the changes for Issue14321 to not run pgen for cross builds. -- nosy: +doko ___ Python tracker ___

[issue19251] bitwise ops for bytes of equal length

2013-10-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Sets are sequences. >>> from collections import abc >>> issubclass(abc.Set, abc.Sequence) False >>> issubclass(abc.Sequence, abc.Set) False > Perhaps separated mutable bitset (or bitlist?) type will be more useful. Then I would prefer a view, using e.g. the

[issue19251] bitwise ops for bytes of equal length

2013-10-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: When you work with int's instead of bytes it is spelled pretty enough. Sets are sequences. So having for example iteration and | operation in one function we can't be sure what it means. Please don't turn Python to APL or Perl. Perhaps separated mutable bit

[issue19252] Enum.py : Enum.__new__() : Test Coverage

2013-10-13 Thread CliffM
New submission from CliffM: test_nonhash_value tests the lookup of an Enum Member from a value. The current test does not exercise the iteration over values completely -- the if-clause being redundant wrt the existing test. My patch adds an additional test which requires the if-clause. --

[issue19027] undefined symbol: _PyParser_Grammar

2013-10-13 Thread Ned Deily
Changes by Ned Deily : -- components: +Build nosy: +ned.deily versions: +Python 3.3, Python 3.4 ___ Python tracker ___ ___ Python-bugs

[issue18758] Fix internal references in the documentation

2013-10-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Georg for all your reviews. Only patch for pickle left, and this is not trivial one. -- resolution: -> fixed stage: patch review -> committed/rejected ___ Python tracker

[issue14999] ctypes ArgumentError lists arguments from 1, not 0

2013-10-13 Thread Georg Brandl
Georg Brandl added the comment: IMO we always use 1-based numbering when counting things. Try e.g. >>> format('a', None) Traceback (most recent call last): File "", line 1, in TypeError: format expects arg 2 to be string or unicode, not NoneType -- nosy: +georg.brandl resolution: -

[issue19248] sphinx is not py3k compatible

2013-10-13 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: > Is the assumption that python2 is still supposed to be the default python > everywhere? > Is python 3 not able to build itself yet? You can manually install Sphinx >=1.1 (preferably >=1.2.*) (and its dependencies) using Python 3, and dir

[issue18758] Fix internal references in the documentation

2013-10-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset fa7cfbec0d32 by Serhiy Storchaka in branch '2.7': Issue #18758: Fixed and improved cross-references. http://hg.python.org/cpython/rev/fa7cfbec0d32 New changeset 907da535ed9d by Serhiy Storchaka in branch '3.3': Issue #18758: Fixed and improved cross

[issue19251] bitwise ops for bytes of equal length

2013-10-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: The int-based spelling isn't very pretty though. And sequences are not sets :-) I suppose the use case has something to do with cryptography? -- ___ Python tracker

[issue1539925] warnings in interactive sessions

2013-10-13 Thread Georg Brandl
Georg Brandl added the comment: Is there still any interest in this? -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-l

[issue19251] bitwise ops for bytes of equal length

2013-10-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Use int's. (int.from_bytes(a, 'big') ^ int.from_bytes(b, 'big')).to_bytes(len(a), 'big') Adding & and | operations to bytes will be confused because bytes is a sequence and this will conflict with set operations. -- nosy: +serhiy.storchaka

[issue19248] sphinx is not py3k compatible

2013-10-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6e65ee2a0073 by Georg Brandl in branch '3.3': Closes #19248: actually check for Python 3.x in tools/sphinx-build.py. http://hg.python.org/cpython/rev/6e65ee2a0073 -- nosy: +python-dev resolution: -> fixed status: open -> closed ___

[issue17335] FieldStorageClass is messed up

2013-10-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset b9d3e99ea516 by Georg Brandl in branch 'default': Closes #17335: remove no-op assignment. http://hg.python.org/cpython/rev/b9d3e99ea516 -- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected status: open -> closed

[issue17352] Be clear that __prepare__ must be declared as a class method

2013-10-13 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: -> docs@python components: +Documentation nosy: +docs@python ___ Python tracker ___ ___ Python

[issue17335] FieldStorageClass is messed up

2013-10-13 Thread Georg Brandl
Georg Brandl added the comment: I'll keep the class attribute for compatibility, but will remove the local assignment. -- nosy: +georg.brandl ___ Python tracker ___

[issue17756] test_syntax_error fails when run in the installed location

2013-10-13 Thread Georg Brandl
Georg Brandl added the comment: Can't reproduce with current 3.3 tip. -- nosy: +georg.brandl resolution: -> out of date status: open -> pending ___ Python tracker ___ __

[issue19251] bitwise ops for bytes of equal length

2013-10-13 Thread Georg Brandl
Georg Brandl added the comment: I assume you have a use case? -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list maili

[issue19251] bitwise ops for bytes of equal length

2013-10-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: bytearray should certainly get the same functionality as bytes. -- nosy: +pitrou ___ Python tracker ___

[issue19251] bitwise ops for bytes of equal length

2013-10-13 Thread Christian Heimes
New submission from Christian Heimes: I like to propose a new feature for bytes and perhaps bytearray. None of the bytes types support bitwise operations like &, | and ^. I like to add the bitwise protocol between byte objects of equal length: >>> a, b = b"123", b"abc" >>> bytes(x ^ y for x, y

[issue19250] Duplicate import documentation in py3k

2013-10-13 Thread Nick Guenther
Nick Guenther added the comment: Thank you. Sorry for the duplicates. I tried to search the bug tracker but nothing stood out to me. -- ___ Python tracker ___ __

[issue19250] Duplicate import documentation in py3k

2013-10-13 Thread Georg Brandl
Georg Brandl added the comment: This is already fixed in the 3.3 branch (see #17938); it will be updated for pydoc "automatically" before the next bugfix release (the actual content comes from Lib/pydoc_data/topics.py). -- nosy: +georg.brandl resolution: -> fixed status: open -> close

[issue18776] atexit error display behavior changed in python 3

2013-10-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Since it's a regression from 2.7, I chose to commit it as a bugfix (to 3.3 and 3.4). -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed type: enhancement -> behavior ___ Python

[issue18776] atexit error display behavior changed in python 3

2013-10-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 19ce90930e8b by Antoine Pitrou in branch '3.3': Issue #18776: atexit callbacks now display their full traceback when they raise an exception. http://hg.python.org/cpython/rev/19ce90930e8b New changeset c13ef65f3dcf by Antoine Pitrou in branch 'defa

[issue4965] Can doc index of html version be separately scrollable?

2013-10-13 Thread Georg Brandl
Georg Brandl added the comment: LGTM. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org

[issue4965] Can doc index of html version be separately scrollable?

2013-10-13 Thread Ezio Melotti
Ezio Melotti added the comment: Updated patch should fix the nit and factors out $(document) from the scrolling function. Tested on Firefox and Chromium. -- Added file: http://bugs.python.org/file32098/issue4965-3.diff ___ Python tracker

[issue17730] code.interact() doesn't support no banner

2013-10-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2933598a7802 by Georg Brandl in branch 'default': Closes #17730: in code.interact(), when banner="", do not print anything. http://hg.python.org/cpython/rev/2933598a7802 -- nosy: +python-dev resolution: -> fixed stage: -> committed/rejecte

[issue19250] Duplicate import documentation in py3k

2013-10-13 Thread Ezio Melotti
Ezio Melotti added the comment: I can reproduce on 3.3; looks OK on 3.4. -- nosy: +ezio.melotti type: -> behavior ___ Python tracker ___

[issue18527] Upgrade Modules/zlib to 1.2.8

2013-10-13 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue18776] atexit error display behavior changed in python 3

2013-10-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Updated patch. -- stage: needs patch -> patch review versions: +Python 3.3 Added file: http://bugs.python.org/file32097/atexit_tracebacks2.patch ___ Python tracker

[issue19250] Duplicate import documentation in py3k

2013-10-13 Thread Nick Guenther
New submission from Nick Guenther: Python3's docs given by >> help("import") duplicate these two paragraphs: "The *public names* defined by a module are determined by checking the module's namespace for a variable named ``__all__``; if defined, it must be a sequence of strings which are names de

[issue19249] Enumeration.__eq__

2013-10-13 Thread CliffM
New submission from CliffM: Given that enumeration members are Singletons, can we not rely on the default __eq__() method ? (FWIW the existing tests all pass if you delete it) This might be confusing for a reader later, so needs documenting. Although I think it should be documented (in enum.p

[issue17631] inspect getsource does not display full text of lambda

2013-10-13 Thread Georg Brandl
Georg Brandl added the comment: Unfortunately, this is impossible to fix with the current implementation, which only tokenizes the source. A full parse would be necessary. Since this is just a minor inconvenience (and there are many situations where the source cannot be found at all), I'm clo

[issue18776] atexit error display behavior changed in python 3

2013-10-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: > With your patch, can the SetTraceback in PyErr_Print be removed? I don't think so. PyErr_Print() calls sys.excepthook, which can be overriden with custom code. > Or should PyErr_Display only set the tb if there is none on the > object already? Well, why not!

[issue18776] atexit error display behavior changed in python 3

2013-10-13 Thread Georg Brandl
Georg Brandl added the comment: With your patch, can the SetTraceback in PyErr_Print be removed? Or should PyErr_Display only set the tb if there is none on the object already? -- ___ Python tracker ___

[issue18776] atexit error display behavior changed in python 3

2013-10-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Attached patch does the setting in PyErr_Display (which is an undocumented API, thus presumably private), and adds a test for atexit. -- Added file: http://bugs.python.org/file32095/atexit_tracebacks.patch ___ Python

[issue18527] Upgrade Modules/zlib to 1.2.8

2013-10-13 Thread Georg Brandl
Georg Brandl added the comment: Sounds reasonable at least for 3.4. -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list

[issue18776] atexit error display behavior changed in python 3

2013-10-13 Thread Georg Brandl
Georg Brandl added the comment: The attached patch fixes two instances of PyErr_Display being called without the traceback properly set on the exception object. -- keywords: +patch nosy: +georg.brandl, pitrou Added file: http://bugs.python.org/file32094/set_traceback.patch

[issue19248] sphinx is not py3k compatible

2013-10-13 Thread Georg Brandl
Georg Brandl added the comment: Looks ok for now. -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue19248] sphinx is not py3k compatible

2013-10-13 Thread Nick Guenther
Nick Guenther added the comment: I see that in Doc/tools/sphinx-build.py there is this check: if sys.version_info[:3] < (2, 4, 0): sys.stderr.write("""\ Error: Sphinx needs to be executed with Python 2.4 or newer (not 3.0 though). (If you run this from the Makefile, you can set the P

[issue19248] sphinx is not py3k compatible

2013-10-13 Thread Ezio Melotti
Ezio Melotti added the comment: This is a duplicate of #10224. -- nosy: +ezio.melotti resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> Build 3.x documentation using python3.x type: -> enhancement ___ Pyth

[issue19248] sphinx is not py3k compatible

2013-10-13 Thread Nick Guenther
New submission from Nick Guenther: I'm running Arch. I just checked out python's hg and tried to build the docs, and found that I couldn't: $ cd cpython/doc $ make update [lots of output stripped] $ make pydoc-topics mkdir -p build/pydoc-topics build/doctrees python tools/sphinx-build.py -b pyd

[issue18714] Add tests for pdb.find_function

2013-10-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 86af5991c809 by Georg Brandl in branch 'default': #18714: add attribution. http://hg.python.org/cpython/rev/86af5991c809 -- ___ Python tracker

[issue18714] Add tests for pdb.find_function

2013-10-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9c65877b3e34 by Georg Brandl in branch 'default': pdb: modernize find_function() and add tests for it. http://hg.python.org/cpython/rev/9c65877b3e34 -- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected status: open -> clo

[issue18714] Add tests for pdb.find_function

2013-10-13 Thread Georg Brandl
Georg Brandl added the comment: Thanks for the patch! -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue19245] mingw-meta: installation

2013-10-13 Thread Georg Brandl
Changes by Georg Brandl : -- dependencies: +MINGW: generalization of posix installation in distutils, MINGW: install import library, MINGW: support stdcall without underscore, MINGW: use replace instead rename to avoid failure on windows ___ Python

[issue8579] Add missing tests for FlushKey, LoadKey, and SaveKey in winreg

2013-10-13 Thread Georg Brandl
Changes by Georg Brandl : -- versions: +Python 3.4 -Python 2.6, Python 3.1, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mail

[issue9613] Python considers pid longs under 64-bit Windows

2013-10-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Amaury is right, it seems a Windows pid is an int after all. I don't know where I got the other impression :-) -- resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue10196] distutils.get_python_lib() returns /usr/local/python3/dist-packages on Ubuntu 10.10

2013-10-13 Thread Georg Brandl
Changes by Georg Brandl : -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

  1   2   3   >