[issue17104] Tk() not defined in Tkinter module

2013-10-13 Thread Georg Brandl
Georg Brandl added the comment: Closing due to lack of feedback. -- nosy: +georg.brandl resolution: -> invalid status: pending -> closed ___ Python tracker ___ _

[issue18512] sys.stdout.write does not allow bytes in Python 3.x

2013-10-13 Thread Georg Brandl
Changes by Georg Brandl : -- resolution: -> wont fix status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue8010] tkFileDialog.askopenfiles crashes on Windows 7

2013-10-13 Thread Georg Brandl
Changes by Georg Brandl : -- resolution: -> duplicate status: pending -> closed superseder: -> tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release ___ Python tracker __

[issue16938] pydoc confused by __dir__

2013-10-13 Thread Ethan Furman
Ethan Furman added the comment: That portion of classify_class_attrs now reads: else: homecls = getattr(get_obj, "__objclass__", None) if homecls not in possible_bases: # if the resulting object does not live somewhere in the # mro, drop it and go with

[issue18375] python -m test --randseed 1234 does not randomize tests

2013-10-13 Thread Georg Brandl
Georg Brandl added the comment: I think this is fine to close. -- nosy: +georg.brandl resolution: -> fixed status: pending -> closed ___ Python tracker ___ _

[issue13519] Tkinter rowconfigure and columnconfigure functions crash if minsize, pad, or weight is not None

2013-10-13 Thread Georg Brandl
Georg Brandl added the comment: I agree. -- nosy: +georg.brandl resolution: -> fixed status: pending -> closed ___ Python tracker ___ ___

[issue18986] Add a case-insensitive case-preserving dict

2013-10-13 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue18736] Invalid charset in HTML pages inside documentation in CHM format

2013-10-13 Thread Georg Brandl
Changes by Georg Brandl : -- resolution: -> invalid status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue706263] print in pythonw raises silent exception when no console available

2013-10-13 Thread Georg Brandl
Georg Brandl added the comment: I agree with Christian; closing as suggested. -- nosy: +georg.brandl status: pending -> closed ___ Python tracker ___ ___

[issue11084] Serialization of decimal.Decimal to XML-RPC

2013-10-13 Thread Georg Brandl
Georg Brandl added the comment: Adding a special case for Decimal isn't as well justified as one for None -- after all it is a fundamental singleton. (Also, None is encoded without lossy conversion.) The encoder/decoder are already extensible by extending Marshaller.dispatch and Unmarshaller.

[issue19197] Improve cross-references in shlex documentation

2013-10-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset bca5ba1ea5aa by Serhiy Storchaka in branch '2.7': Issue #19197: Improved cross-references in the shlex module documentation. http://hg.python.org/cpython/rev/bca5ba1ea5aa New changeset 325fedff6178 by Serhiy Storchaka in branch '3.3': Issue #19197:

[issue17360] Regular expressions on mmap'd files can overflow

2013-10-13 Thread Georg Brandl
Georg Brandl added the comment: Closed due to lack of feedback. -- nosy: +georg.brandl resolution: -> works for me status: pending -> closed ___ Python tracker ___ _

[issue1634774] locale 1251 does not convert to upper case properly

2013-10-13 Thread Georg Brandl
Georg Brandl added the comment: I agree that it's better not to touch this in 2.x. -- nosy: +georg.brandl status: pending -> closed ___ Python tracker ___ _

[issue17212] os.path.isfile() in Python 3.3 sometimes fails

2013-10-13 Thread Georg Brandl
Georg Brandl added the comment: Closing due to lack of feedback. -- nosy: +georg.brandl status: pending -> closed ___ Python tracker ___ _

[issue19197] Improve cross-references in shlex documentation

2013-10-13 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue8194] Incompatible API change in xmlrpclib.Transport.parse_response() of Python 2.7 and 3.2

2013-10-13 Thread Georg Brandl
Georg Brandl added the comment: It would appear so. -- nosy: +georg.brandl status: pending -> closed ___ Python tracker ___ ___ Python-

[issue15362] pyport.h includes antiquated UTF handling for FreeBSD

2013-10-13 Thread Georg Brandl
Georg Brandl added the comment: Closing due to lack of feedback. -- nosy: +georg.brandl resolution: -> out of date status: pending -> closed ___ Python tracker ___ _

[issue9889] PyUnicode_FormatV and Py_UNICODE*?

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

[issue10040] GZipFile failure on large files

2013-10-13 Thread Georg Brandl
Georg Brandl added the comment: Closing due to lack of feedback. -- nosy: +georg.brandl resolution: -> invalid status: pending -> closed ___ Python tracker ___ _

[issue18758] Fix internal references in the documentation

2013-10-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > The -n (nitpicky) option to Sphinx should also report missing references. Great. -- ___ Python tracker ___

[issue16846] relative import solution

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

[issue15996] pow() for complex numbers is rough around the edges

2013-10-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: > OS math libraries are bad enough at *float* math, > let alone complex; I'd rather not depend on them unless we have to. This makes good sense. We should control how the special cases resolve and not be subject the whims of various C libraries.

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

2013-10-13 Thread Georg Brandl
Georg Brandl added the comment: Antoine, ping? -- nosy: +georg.brandl status: pending -> open ___ Python tracker ___ ___ Python-bugs-li

[issue10888] os.stat(filepath).st_mode gives wrong 'executable permission' result

2013-10-13 Thread Georg Brandl
Georg Brandl added the comment: Closing as suggested. -- nosy: +georg.brandl resolution: -> wont fix status: pending -> closed ___ Python tracker ___ ___

[issue16063] HMAC trans_5C is a string, causing a TypeError

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

[issue8229] Interpreter crash on application shutdown

2013-10-13 Thread Georg Brandl
Georg Brandl added the comment: Closing due to lack of feedback. -- nosy: +georg.brandl resolution: -> out of date status: pending -> closed ___ Python tracker ___ __

[issue6602] Add argument to control file object used by BaseHTTPServer’s log_message

2013-10-13 Thread Georg Brandl
Georg Brandl added the comment: Agreed. -- nosy: +georg.brandl resolution: -> rejected status: pending -> closed ___ Python tracker ___ __

[issue11934] build with --prefix=/dev/null and zlib enabled in Modules/Setup failed

2013-10-13 Thread Georg Brandl
Georg Brandl added the comment: Closing due to lack of feedback. -- nosy: +georg.brandl resolution: -> works for me status: pending -> closed ___ Python tracker ___

[issue13329] Runs normal as console script but falls as CGI

2013-10-13 Thread Georg Brandl
Georg Brandl added the comment: Closing due to lack of feedback. -- nosy: +georg.brandl resolution: -> out of date status: pending -> 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://

[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

[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

[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

[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

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

[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

[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
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 Georg Brandl
Georg Brandl added the comment: Looks ok for now. -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[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

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

[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: > 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!

[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

[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

[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

[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

[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

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

[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

[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

[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

[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

[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

[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

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

[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

[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 Georg Brandl
Georg Brandl added the comment: I assume you have a use case? -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list maili

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

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

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

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

[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

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

[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

[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

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

[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

[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

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

[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

[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

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

[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

[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

[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

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

[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

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

[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

[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

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

[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

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

[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://

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

[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

[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

[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 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 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 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: "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)? --

<    1   2   3   >