[issue19726] BaseProtocol is not an ABC

2013-11-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 04088790c077 by Nick Coghlan in branch 'default': Issue #19726: actually running 'hg add' helps... http://hg.python.org/cpython/rev/04088790c077 -- nosy: +python-dev ___ Python tracker

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

2013-11-29 Thread Ned Deily
Ned Deily added the comment: Looks like the buildbots are complaining, for example: http://buildbot.python.org/all/builders/AMD64%20Ubuntu%20LTS%203.x/builds/3300/steps/test/logs/stdio == FAIL: test_with_pip (test.test_venv.Ens

[issue19683] test_minidom has many empty tests

2013-11-29 Thread Ajitesh Gupta
Ajitesh Gupta added the comment: I have attached a patch. I deleted all the empty tests. -- keywords: +patch nosy: +ajitesh.gupta Added file: http://bugs.python.org/file32901/issue19683.patch ___ Python tracker ___

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

2013-11-29 Thread Nick Coghlan
Nick Coghlan added the comment: Running this command in the installer should now clean up pip and setuptools: python -m ensurepip._uninstall If pip is not installed, it silently does nothing. If pip is installed, but doesn't match ensurepip.version(), it throws RuntimeError. If pip is in

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

2013-11-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7dc4bf283857 by Nick Coghlan in branch 'default': Issue #19728: add private ensurepip._uninstall CLI http://hg.python.org/cpython/rev/7dc4bf283857 -- nosy: +python-dev ___ Python tracker

[issue19789] Improve wording of how to "undo" a call to logging.disable(lvl)

2013-11-29 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

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

2013-11-29 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

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

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

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

[issue9269] Cannot pickle self-referencing sets

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

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

[issue13520] Patch to make pickle aware of __qualname__

2013-11-29 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : -- 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 ___

[issue3693] Obscure array.array error message

2013-11-29 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : -- assignee: -> alexandre.vassalotti resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker

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

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

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

2013-11-29 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

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

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

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

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

[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

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

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

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

[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 dump[s]

[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

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

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

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

[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 : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue19820] docs are missing info about module attributes

2013-11-29 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue17232] Improve -O docs

2013-11-29 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue19795] Formatting of True/False in docs

2013-11-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Arfrever. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[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

[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

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

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

[issue19836] selectors: improve examples section

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

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

[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

[issue19828] test_site fails with -S flag

2013-11-29 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[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 : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

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

2013-11-29 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

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

2013-11-29 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[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

[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 : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue19834] Unpickling exceptions pickled by Python 2

2013-11-29 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[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 ___ ___ Python-bugs-list maili

[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 : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue19836] selectors: improve examples section

2013-11-29 Thread Charles-François Natali
Changes by Charles-François Natali : Removed file: http://bugs.python.org/file32894/selectors_examples.diff ___ Python tracker ___ ___ Python-

[issue19836] selectors: improve examples section

2013-11-29 Thread Charles-François Natali
Changes by Charles-François Natali : Added file: http://bugs.python.org/file32895/selectors_examples.diff ___ Python tracker ___ ___ Python-bu

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

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

2013-11-29 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: ocean-city -> nosy: +tim.peters versions: +Python 3.4 -Python 3.2 ___ Python tracker ___ ___

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

[issue19822] PEP process entrypoint

2013-11-29 Thread Guido van Rossum
Changes by Guido van Rossum : -- resolution: rejected -> fixed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

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

[issue15989] Possible integer overflow of PyLong_AsLong() results

2013-11-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- versions: -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[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

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

[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 STINNER Victor
Changes by STINNER Victor : -- nosy: +alexandre.vassalotti, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

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

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

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

[issue19645] decouple unittest assertions from the TestCase class

2013-11-29 Thread Julian Berman
Changes by Julian Berman : -- nosy: +Julian ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue19834] Unpickling exceptions pickled by Python 2

2013-11-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +alexandre.vassalotti, pitrou type: -> behavior versions: +Python 3.3, Python 3.4 ___ Python tracker ___ _

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

[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 ___ ___ Python-bugs-list mailing list Un

[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 = os.path.splitext(os.path.realpath(full_pat

[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

[issue19704] Update test.test_threaded_import to PEP 451

2013-11-29 Thread Brett Cannon
Changes by Brett Cannon : -- dependencies: +Merge all (non-syntactic) import-related tests into test_importlib ___ Python tracker ___ ___

[issue19705] Update test.test_namespace_pkgs to PEP 451

2013-11-29 Thread Brett Cannon
Changes by Brett Cannon : -- dependencies: +Merge all (non-syntactic) import-related tests into test_importlib ___ Python tracker ___ ___

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

[issue19706] Check if inspect needs updating for PEP 451

2013-11-29 Thread Brett Cannon
Changes by Brett Cannon : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue19702] Update pickle to PEP 451

2013-11-29 Thread Brett Cannon
Changes by Brett Cannon : -- dependencies: +Update runpy for PEP 451 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue19698] Implement _imp.exec_builtin and exec_dynamic

2013-11-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset b5bbd47a9bc4 by Brett Cannon in branch 'default': Issue #19698: Remove exec_module() from the built-in and extension http://hg.python.org/cpython/rev/b5bbd47a9bc4 -- nosy: +python-dev ___ Python tracker

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

2013-11-29 Thread STINNER Victor
STINNER Victor 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. Seriously, I read the documentation three times (HTML and the source),

[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", "copyr

[issue19352] unittest loader barfs on symlinks

2013-11-29 Thread Michael Foord
Michael Foord added the comment: This can happen when the code used to compare the paths is different from the code used to generate the failure message. This of course masks the real problem. I can look at where that might be possible and then hopefully we can get a genuine error message tell

[issue19758] Warnings in tests

2013-11-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: For test_poplib issue19830 was opened. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue19832] XML version is ignored

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

[issue19832] XML version is ignored

2013-11-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +christian.heimes, eli.bendersky, scoder ___ Python tracker ___ ___ Python-bugs-list mailing li

[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

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

[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 ___ ___ Python-bugs-list mailin

[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

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

[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: asyncio_doc_eventloop.p

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

[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

[issue19828] test_site fails with -S flag

2013-11-29 Thread Zachary Ware
Changes by Zachary Ware : -- nosy: +zach.ware ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue19659] Document Argument Clinic

2013-11-29 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

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

2013-11-29 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue15657] Error in Python 3 docs for PyMethodDef

2013-11-29 Thread Bohuslav "Slavek" Kabrda
Changes by Bohuslav "Slavek" Kabrda : -- nosy: +bkabrda ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue19826] Document that bug reporting by email is possible

2013-11-29 Thread Brett Cannon
Changes by Brett Cannon : -- priority: normal -> low stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list U

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

[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: The XML parser of xml.sax, however, seems to ignore the value of "version": This should give an error, but it doesn't. It's not a very serious problem, but this should raise an error to be

  1   2   >