[issue19828] test_site fails with -S flag

2013-11-29 Thread Vajrasky Kok
New submission from Vajrasky Kok: $ ./python -S Lib/test/test_site.py Traceback (most recent call last): File Lib/test/test_site.py, line 28, in module raise unittest.SkipTest(importation of site.py suppressed) unittest.case.SkipTest: importation of site.py suppressed This counts as fail

[issue19795] Formatting of True/False in docs

2013-11-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset f51ca196d77a by Serhiy Storchaka in branch '2.7': Issue #19795: Improved markup of True/False constants. http://hg.python.org/cpython/rev/f51ca196d77a New changeset b2066bc8cab9 by Serhiy Storchaka in branch '3.3': Issue #19795: Improved markup of

[issue18634] mingw find import library

2013-11-29 Thread Jean-Pierre Flori
Jean-Pierre Flori added the comment: Hello all, I've been working on porting Sage, which heavily relies on Python to say the least, to Cygwin so would be very interested in improving Python support for Cygwin. Lately we've been having troubles with Python and ncurses, see: *

[issue19829] _pyio.BufferedReader and _pyio.TextIOWrapper destructor don't emit ResourceWarning if the file is not closed

2013-11-29 Thread STINNER Victor
New submission from STINNER Victor: $ ./python Python 3.4.0b1 (default:acabd3f035fe, Nov 28 2013, 15:04:09) [GCC 4.8.2 20131017 (Red Hat 4.8.2-1)] on linux Type help, copyright, credits or license for more information. import _pyio f=_pyio.open(/etc/issue); f=None f=_pyio.open(/etc/issue,

[issue19795] Formatting of True/False in docs

2013-11-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Georg for your help. Here is a patch which fixes markups for the None constant. It is more unequivocal. -- Added file: http://bugs.python.org/file32885/doc_none.patch ___ Python tracker

[issue19830] test_poplib emits resource warning

2013-11-29 Thread Vajrasky Kok
New submission from Vajrasky Kok: $ ./python Lib/test/test_poplib.py omitted test_uidl (__main__.TestPOP3_TLSClass) ... ok test_user (__main__.TestPOP3_TLSClass) ... ok -- Ran 62 tests in 4.994s OK

[issue19831] tracemalloc: stop the module later

2013-11-29 Thread STINNER Victor
New submission from STINNER Victor: tracemalloc cannot be used in object destructors because the module is stopped early at Python shutdown. I would like to use tracemalloc.get_object_traceback() in object destructors to retrieve where an object was allocated. Attached patch replaces the

[issue19831] tracemalloc: stop the module later at Python shutdown

2013-11-29 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- title: tracemalloc: stop the module later - tracemalloc: stop the module later at Python shutdown ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19831

[issue19829] _pyio.BufferedReader and _pyio.TextIOWrapper destructor don't emit ResourceWarning if the file is not closed

2013-11-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19829 ___ ___

[issue19831] tracemalloc: stop the module later at Python shutdown

2013-11-29 Thread STINNER Victor
STINNER Victor added the comment: Oh tracemalloc_fini.patch is not correct, _PyTraceMalloc_Fini() should be called after PyImport_Cleanup(). -- Added file: http://bugs.python.org/file32888/tracemalloc_fini-2.patch ___ Python tracker

[issue19803] memoryview complain ctypes byte array are not native single character

2013-11-29 Thread Stefan Krah
Stefan Krah added the comment: class B1(ctypes.Structure): ... _fields_ = [(data, ctypes.c_uint8 * 256), ] ... _pack_ = 1 ... a= B1() x = memoryview(a) x.format 'B' In the first case the format is 'B', in the second case the format is: x = memoryview(b) x.format

[issue19832] XML version is ignored

2013-11-29 Thread Tobias Kuhn
New submission from Tobias Kuhn: The first line of an XML file should be something like this: ?xml version='1.0' encoding='UTF-8'? The XML parser of xml.sax, however, seems to ignore the value of version: ?xml version='X' encoding='UTF-8'? This should give an error, but it doesn't.

[issue19826] Document that bug reporting by email is possible

2013-11-29 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- priority: normal - low stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19826 ___

[issue19826] Document that bug reporting by email is possible

2013-11-29 Thread Brett Cannon
Brett Cannon added the comment: We cannot accept anything you produce until you sign the CLA. -- nosy: +brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19826 ___

[issue15657] Error in Python 3 docs for PyMethodDef

2013-11-29 Thread Bohuslav Slavek Kabrda
Changes by Bohuslav Slavek Kabrda bkab...@redhat.com: -- nosy: +bkabrda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15657 ___ ___

[issue19616] Fix test.test_importlib.util.test_both() to set __module__

2013-11-29 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19616 ___

[issue19659] Document Argument Clinic

2013-11-29 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- nosy: +brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19659 ___ ___ Python-bugs-list

[issue19828] test_site fails with -S flag

2013-11-29 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- nosy: +zach.ware ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19828 ___ ___ Python-bugs-list

[issue19780] Pickle 4 frame headers optimization

2013-11-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 22:36:13 [ ~/PythonDev/cpython ]$ ./python.exe -m timeit import pickle with open('test.pickle4', 'rb', buffering=0) as f: pickle.load(f) 100 loops, best of 3: 9.28 msec per loop Did you use the same test file or different files (generated by patched and

[issue18879] tempfile.NamedTemporaryFile can close the file too early, if not assigning to a variable

2013-11-29 Thread Zdeněk Pavlas
Zdeněk Pavlas added the comment: Hit this issue too, but with the read method. I think that providing a custom read() and write() methods in the wrapper class that override __getattr__ is a sufficient solution. These are the attributes most likely to be used as the tail. -- nosy:

[issue19833] asyncio: patches to document EventLoop and add more examples

2013-11-29 Thread STINNER Victor
New submission from STINNER Victor: Attached patches document get_event_loop() and BaseEventLoop; and add two hello world examples copied from: http://code.google.com/p/tulip/source/browse/#hg%2Fexamples -- assignee: docs@python components: Documentation files:

[issue19833] asyncio: patches to document EventLoop and add more examples

2013-11-29 Thread STINNER Victor
STINNER Victor added the comment: I know that the documentation contains a lot of XXX, but it documents at least the prototype of the methods. I may provide more patches fixing XXX later ;-) I hesitated to document the Handle class, but it looks like Guido prefers to not document it?

[issue19698] Implement _imp.exec_builtin and exec_dynamic

2013-11-29 Thread Brett Cannon
Brett Cannon added the comment: This is going to have to wait until Python 3.5, so I'm going to back out the exec_module() aspects of BuiltinImporter and ExtensionFileLoader. As Nick has pointed out previously, we are going to need to change the init function signature of extension modules to

[issue19833] asyncio: patches to document EventLoop and add more examples

2013-11-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Since there are many event loop methods, I structured the doc so that methods are grouped in different sections: see the existing delayed calls and creating connections sections. I'm not saying it's the best solution (is it?), but I think it would be nice to

[issue19831] tracemalloc: stop the module later at Python shutdown

2013-11-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue19255. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19831 ___ ___

[issue19829] _pyio.BufferedReader and _pyio.TextIOWrapper destructor don't emit ResourceWarning if the file is not closed

2013-11-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think it will be good. -- components: +IO stage: - needs patch type: - resource usage versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19829

[issue19352] unittest loader barfs on symlinks

2013-11-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: ImportError: 'test_error' module incorrectly imported from '/usr/lib/python2.7/dist-packages/lazr/restfulclient/tests'. Expected '/usr/lib/python2.7/dist-packages/lazr/restfulclient/tests'. Is this module globally installed? Well, this looks like the

[issue19832] XML version is ignored

2013-11-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +christian.heimes, eli.bendersky, scoder ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19832 ___

[issue19758] Warnings in tests

2013-11-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: For test_poplib issue19830 was opened. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19758 ___ ___

[issue19834] Unpickling exceptions pickled by Python 2

2013-11-29 Thread Walter Dörwald
New submission from Walter Dörwald: Exception objects that have been pickled with Python 2 can not be unpickled with Python 3, even when fix_imports=True is specified: $ python2.7 Python 2.7.2 (default, Aug 30 2011, 11:04:13) [GCC 3.3.5 (Debian 1:3.3.5-13)] on linux2 Type help,

[issue19702] Update pickle to PEP 451

2013-11-29 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- dependencies: +Update runpy for PEP 451 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19702 ___ ___

[issue19706] Check if inspect needs updating for PEP 451

2013-11-29 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19706 ___ ___ Python-bugs-list

[issue19713] Deprecate various things in importlib thanks to PEP 451

2013-11-29 Thread Brett Cannon
Brett Cannon added the comment: To add another point about load_module(), I just had to rip out exec_module() for Python 3.4 as working around _imp.init_builtin() and _imp.load_dynamic() are going to need to be done hand-in-hand. So load_module() should probably get documented as deprecated

[issue19705] Update test.test_namespace_pkgs to PEP 451

2013-11-29 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- dependencies: +Merge all (non-syntactic) import-related tests into test_importlib ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19705 ___

[issue19704] Update test.test_threaded_import to PEP 451

2013-11-29 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- dependencies: +Merge all (non-syntactic) import-related tests into test_importlib ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19704 ___

[issue19832] XML version is ignored

2013-11-29 Thread Stefan Behnel
Stefan Behnel added the comment: If (as I assume) XML 1.1 isn't supported, then rejecting anything but 1.0 would be correct. Not for Py2.7 anymore, though, I guess, more something to fix for 3.4. -- ___ Python tracker rep...@bugs.python.org

[issue19352] unittest loader barfs on symlinks

2013-11-29 Thread Martin Pitt
Martin Pitt added the comment: In this new code: mod_file = os.path.abspath(getattr(module, '__file__', full_path)) realpath = os.path.splitext(os.path.realpath(mod_file))[0] fullpath_noext =

[issue18054] Add more exception related assertions to unittest

2013-11-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Also, see issue #19645. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18054 ___ ___

[issue19352] unittest loader barfs on symlinks

2013-11-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: On ven., 2013-11-29 at 16:23 +, Martin Pitt wrote: This new patch essentially enforces that the *.py file is not a symlink, which breaks the Debian-ish way of installing python 2 modules. So it doesn't help that Debian/Ubuntu likes to put symlinks

[issue19834] Unpickling exceptions pickled by Python 2

2013-11-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +alexandre.vassalotti, pitrou type: - behavior versions: +Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19834

[issue19645] decouple unittest assertions from the TestCase class

2013-11-29 Thread Julian Berman
Changes by Julian Berman julian+python@grayvines.com: -- nosy: +Julian ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19645 ___ ___

[issue19352] unittest loader barfs on symlinks

2013-11-29 Thread Martin Pitt
Martin Pitt added the comment: Yes, this affects python 2.7 only; as I said, this is all solved in python3 by introducing the explicit extensions like __pycache__/*..cpython-33.pyc so that multiple versions can share one directory. With that these symlink hacks aren't necessary any more.

[issue19835] Add a MemoryError singleton to fix an unlimited loop when the memory is exhausted

2013-11-29 Thread STINNER Victor
New submission from STINNER Victor: Under very low memory condition, PyErr_NoMemory() or PyErr_NormalizeException() enters an unlimited loop when the free list of MemoryError becomes empty. I propose to add a MemoryError read-only singleton to fix this corner case. Attributes cannot be

[issue19835] Add a MemoryError singleton to fix an unlimited loop when the memory is exhausted

2013-11-29 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +alexandre.vassalotti, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19835 ___

[issue19833] asyncio: patches to document EventLoop and add more examples

2013-11-29 Thread Guido van Rossum
Guido van Rossum added the comment: I would much rather review the docs after they've been committed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19833 ___

[issue19835] Add a MemoryError singleton to fix an unlimited loop when the memory is exhausted

2013-11-29 Thread STINNER Victor
STINNER Victor added the comment: Under very low memory condition, PyErr_NoMemory() or PyErr_NormalizeException() enters an unlimited loop when the free list of MemoryError becomes empty. I got this bug when I worked on the issue #19817 which adds an arbitary limit to memory allocations

[issue19835] Add a MemoryError singleton to fix an unlimited loop when the memory is exhausted

2013-11-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Under very low memory condition, PyErr_NoMemory() or PyErr_NormalizeException() enters an unlimited loop when the free list of MemoryError becomes empty. The real question is why the free list becomes empty. Either way, I don't think a read-only singleton

[issue15989] Possible integer overflow of PyLong_AsLong() results

2013-11-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here are remnants of initial patch which were not committed. There are no tests. -- nosy: +haypo Added file: http://bugs.python.org/file32893/long_aslong_overflow_2-3.4.patch ___ Python tracker

[issue15989] Possible integer overflow of PyLong_AsLong() results

2013-11-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- versions: -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15989 ___ ___

[issue10752] build_ssl.py is relying on unreliable behaviour of os.popen

2013-11-29 Thread Waffle Souffle
Waffle Souffle added the comment: Replicated with Perl being discovered as follows: ['C:\\perl\\bin\\perl.exe', 'c:\\cygwin\\bin\\perl.exe', 'c:\\perl\\bin\\perl.exe'] C:\perl\bin\perl.exe is installed from ActivePerl-5.16.3.1603-MSWin32-x86-296746.msi Attempting to compile Python 2.7.6.

[issue19822] PEP process entrypoint

2013-11-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 34cb64cdbf7b by Guido van Rossum in branch 'default': Add brief explanation and web pointers to README.txt. Fixes issue 19822. http://hg.python.org/peps/rev/34cb64cdbf7b -- nosy: +python-dev ___ Python

[issue19822] PEP process entrypoint

2013-11-29 Thread Guido van Rossum
Changes by Guido van Rossum gu...@python.org: -- resolution: rejected - fixed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19822 ___ ___

[issue19454] devguide: Document what a platform support is

2013-11-29 Thread Guido van Rossum
Guido van Rossum added the comment: This is explicitly left up to the core developers' finely tuned sense of judgment. Adding a definition will not simplify decisions or reduce disagreements, it will just cause more pointless legalistic debate about the meaning of specific words. --

[issue10752] build_ssl.py is relying on unreliable behaviour of os.popen

2013-11-29 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: ocean-city - nosy: +tim.peters versions: +Python 3.4 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10752 ___

[issue19836] selectors: improve examples section

2013-11-29 Thread Charles-François Natali
New submission from Charles-François Natali: Here's a patch improving the examples section for the selectors module. -- assignee: docs@python components: Documentation files: selectors_examples.diff keywords: needs review, patch messages: 204750 nosy: docs@python, neologix priority:

[issue19836] selectors: improve examples section

2013-11-29 Thread Charles-François Natali
Changes by Charles-François Natali cf.nat...@gmail.com: Removed file: http://bugs.python.org/file32894/selectors_examples.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19836 ___

[issue19836] selectors: improve examples section

2013-11-29 Thread Charles-François Natali
Changes by Charles-François Natali cf.nat...@gmail.com: Added file: http://bugs.python.org/file32895/selectors_examples.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19836 ___

[issue19696] Merge all (non-syntactic) import-related tests into test_importlib

2013-11-29 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19696 ___

[issue19836] selectors: improve examples section

2013-11-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: This sounds ok to me. -- nosy: +gvanrossum, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19836 ___ ___

[issue19834] Unpickling exceptions pickled by Python 2

2013-11-29 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19834 ___

[issue19829] _pyio.BufferedReader and _pyio.TextIOWrapper destructor don't emit ResourceWarning if the file is not closed

2013-11-29 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19829 ___

[issue19836] selectors: improve examples section

2013-11-29 Thread Guido van Rossum
Guido van Rossum added the comment: This is definitely an improvement over the previous example, but I think both examples are still pretty unrealistic; they seem to be more useful as smoke tests than as examples. My primary concern is that, in order to be both self-contained and small, both

[issue19255] Don't wipe builtins at shutdown

2013-11-29 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19255 ___

[issue19831] tracemalloc: stop the module later at Python shutdown

2013-11-29 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19831 ___

[issue18879] tempfile.NamedTemporaryFile can close the file too early, if not assigning to a variable

2013-11-29 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18879 ___

[issue19828] test_site fails with -S flag

2013-11-29 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19828 ___

[issue19836] selectors: improve examples section

2013-11-29 Thread Guido van Rossum
Guido van Rossum added the comment: Here's my suggestion. It can use a lot of cleaning up, but it shows the fundamentals of a selector-based I/O loop. -- Added file: http://bugs.python.org/file32896/echo.py ___ Python tracker rep...@bugs.python.org

[issue19712] Make sure there are exec_module tests for _LoaderBasics subclasses

2013-11-29 Thread Roundup Robot
New submission from Roundup Robot: New changeset dad74ff75a6b by Brett Cannon in branch 'default': Issue #19712: Port test.test_importlib.import_ tests to use PEP 451 http://hg.python.org/cpython/rev/dad74ff75a6b -- nosy: +python-dev ___ Python

[issue19836] selectors: improve examples section

2013-11-29 Thread Guido van Rossum
Changes by Guido van Rossum gu...@python.org: Removed file: http://bugs.python.org/file32896/echo.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19836 ___

[issue19836] selectors: improve examples section

2013-11-29 Thread Guido van Rossum
Guido van Rossum added the comment: Sorry, here's a version with slightly more logical order of the code. -- Added file: http://bugs.python.org/file32897/echo.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19836

[issue19795] Formatting of True/False in docs

2013-11-29 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: New changeset b2066bc8cab9 by Serhiy Storchaka in branch '3.3': Issue #19795: Improved markup of True/False constants. http://hg.python.org/cpython/rev/b2066bc8cab9 Accidental, unrelated changes in Doc/library/importlib.rst (and with

[issue19063] Python 3.3.3 encodes emails containing non-ascii data as 7bit

2013-11-29 Thread R. David Murray
R. David Murray added the comment: 3.4 patch updated to address Vajrasky's review comment. I'll probably apply this tomorrow. -- Added file: http://bugs.python.org/file32898/support_8bit_charset_cte.patch ___ Python tracker rep...@bugs.python.org

[issue19795] Formatting of True/False in docs

2013-11-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9d0dc3d7bf01 by Serhiy Storchaka in branch '3.3': Revert unrelated changes introduced by changeset b2066bc8cab9 (issue #19795). http://hg.python.org/cpython/rev/9d0dc3d7bf01 -- ___ Python tracker

[issue19795] Formatting of True/False in docs

2013-11-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Arfrever. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19795 ___ ___ Python-bugs-list mailing

[issue17232] Improve -O docs

2013-11-29 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17232 ___

[issue19820] docs are missing info about module attributes

2013-11-29 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19820 ___

[issue19835] Add a MemoryError singleton to fix an unlimited loop when the memory is exhausted

2013-11-29 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19835 ___

[issue19836] selectors: improve examples section

2013-11-29 Thread Charles-François Natali
Charles-François Natali added the comment: Here's an updated patch adding your echo server to the examples section. -- Added file: http://bugs.python.org/file32899/selectors_example-1.diff ___ Python tracker rep...@bugs.python.org

[issue19836] selectors: improve examples section

2013-11-29 Thread Guido van Rossum
Guido van Rossum added the comment: Committed: revision 2a679870d7d2. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19836

[issue19834] Unpickling exceptions pickled by Python 2

2013-11-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Good catch! Would you like to provide a patch together with an added unit test? -- stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19834

[issue19833] asyncio: patches to document EventLoop and add more examples

2013-11-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: One reason I originally didn't add the class names to the methods is that I don't know if we want to document the inheritance hierarchy. Guido, what do you think? -- ___ Python tracker rep...@bugs.python.org

[issue19837] Wire protocol encoding for the JSON module

2013-11-29 Thread Nick Coghlan
New submission from Nick Coghlan: In the Python 3 transition, we had to make a choice regarding whether we treated the JSON module as a text transform (with load[s] reading Unicode code points and dump[s] producing them), or as a text encoding (with load[s] reading binary sequences and

[issue19837] Wire protocol encoding for the JSON module

2013-11-29 Thread Nick Coghlan
Nick Coghlan added the comment: The other simple solution would be to add nameb variants of the affected APIs. That's a bit ugly though, especially since it still has the problem of making it difficult to write correct cross-version code (although that problem is likely to exist regardless)

[issue19731] Fix copyright footer

2013-11-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: As I first noted, 1990 is before the first release of Python in 1992, so that seemed to be too early. I think Marc-Andre's fix is good enough and should be applied. Victor, you want something weird? You can probably find technical books now copyrighted

[issue19595] Silently skipped test in test_winsound

2013-11-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 30b3798782f1 by Zachary Ware in branch '2.7': Issue #19595: Re-enable a long-disabled test in test_winsound http://hg.python.org/cpython/rev/30b3798782f1 New changeset 63f3e8670fa6 by Zachary Ware in branch '3.3': Issue #19595: Re-enable a

[issue19595] Silently skipped test in test_winsound

2013-11-29 Thread Zachary Ware
Zachary Ware added the comment: As long as the buildbots stay happy, this test is back to actually testing. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue19737] Documentation of globals() and locals() should be improved

2013-11-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: In my opinion, vague ideas like this one should go to python-ideas first. I agree with David that globals() and locals() are separate issues. Since there have been and perhaps still are locals() doc issues, I will take this one to be about 'globals()'. A

[issue9276] pickle should support methods

2013-11-29 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: As part of the implementation of PEP 3154 (Pickle protocol 4), I've introduced support for pickling methods for all pickle protocols (and not just for the new protocol 4). This was implemented by adding the appropriate __reduce__ method on built-in

[issue19763] Make it easier to backport statistics to 2.7

2013-11-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: I too prefer to move in the direction of less back-compatibility constraint rather than more. If I had written the module, I would prefer the altered doctest as being less fragile and representation dependent. For 1 or 2 objects, I prefer the from form

[issue19808] IDLE applies syntax highlighting to user input in its shell

2013-11-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: I checked and Idle does not color code the prompt. In 2.7, it only color-codes the response to input(prompt), which is eval-ed as Python code, but not the response to raw_input(prompt). (In 2.7, the code and input displayed raises SyntaxError.) So the bug in

[issue19833] asyncio: patches to document EventLoop and add more examples

2013-11-29 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19833 ___ ___ Python-bugs-list

[issue19780] Pickle 4 frame headers optimization

2013-11-29 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Test data are too small, they all less than frame size. Ah, good point! It seems your patch helps when the reads are *very* slow and buffering is disabled. ### unpickle_file ### Min: 1.125320 - 0.663367: 1.70x faster Avg: 1.237206 - 0.701303: 1.76x

[issue3693] Obscure array.array error message

2013-11-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2c87d3944c7a by Alexandre Vassalotti in branch 'default': Issue #3693: Fix array obscure error message when given a str. http://hg.python.org/cpython/rev/2c87d3944c7a -- nosy: +python-dev ___ Python

[issue3693] Obscure array.array error message

2013-11-29 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti alexan...@peadrop.com: -- assignee: - alexandre.vassalotti resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue13520] Patch to make pickle aware of __qualname__

2013-11-29 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti alexan...@peadrop.com: -- assignee: - alexandre.vassalotti resolution: - duplicate stage: patch review - committed/rejected status: open - closed superseder: - Implement PEP 3154 (pickle protocol 4) versions: +Python 3.4 -Python 3.3

[issue11354] argparse: nargs could accept range of options count

2013-11-29 Thread paul j3
paul j3 added the comment: With a minor tweak to `argparse._is_mnrep()`, `nargs='{3}'` would also work. This means the same as `nargs=3`, so it isn't needed. But it is consistent with the idea of accepting Regular Expression syntax where it makes sense. `nargs='{2,3}?'` also works, though

[issue9269] Cannot pickle self-referencing sets

2013-11-29 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti alexan...@peadrop.com: -- assignee: - alexandre.vassalotti resolution: - duplicate stage: patch review - committed/rejected status: open - closed superseder: - Implement PEP 3154 (pickle protocol 4) ___ Python

[issue19728] PEP 453: enable pip by default in the Windows binary installers

2013-11-29 Thread Nick Coghlan
Nick Coghlan added the comment: I'm going to run with the approach of adding a private _uninstall function in ensurepip (that includes the version guard), and then a python -m ensurepip._uninstall submodule to invoke it from the command line. I'll also extend the with_pip test in test_venv to

[issue19737] Documentation of globals() and locals() should be improved

2013-11-29 Thread Martin Panter
Martin Panter added the comment: How about swapping the two sentences for globals() then: “Returns the dictionary of the module . . . This represents the symbol table . . .” I thought the current locals() entry is fairly clear. It actually says _not_ to modify the dictionary! --

[issue19790] ctypes can't load a c++ dll if the dll calls COM on Windows 8

2013-11-29 Thread yinkaisheng
yinkaisheng added the comment: http://support.microsoft.com/kb/305723 COM application hangs when you call CoCreateInstance from DllMain SYMPTOMS When you call the CoCreateInstance function from the DllMain function, the Component Object Model (COM) application hangs. CAUSE CoCreateInstance

  1   2   >