[issue7644] bug in nntplib.body() method with possible fix
Hynek Schlawack h...@ox.cx added the comment: Looking into the source code of nntplib, I'd claim this bug isn't valid anymore? At least the file is opened in binary mode now – see Lib/nntplib.py:462 In any case, we have a test suite now. -- nosy: +hynek versions: +Python 3.3 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7644 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13992] Segfault in PyTrash_destroy_chain
Charles-François Natali neolo...@free.fr added the comment: (I'm adding Antoine to the noisy list). You could maybe try building with '--without-pymalloc', and run under valgrind (--suppressions=Misc/valgrind-python.supp), see http://hg.python.org/cpython/file/6653328a02d0/Misc/README.valgrind -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13992 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13997] Clearly explain the bare minimum Python 3 users should know about Unicode
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13997 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree
Ezio Melotti ezio.melo...@gmail.com added the comment: FWIW the JSON doc doesn't even mention the acceleration module _json, but since people here are used to import cElementTree I think it should be mentioned that it's now deprecated and accelerations are used automatically, so something like this would work: .. versionchanged:: 3.3 The :mod:`xml.etree.cElementTree` module is now deprecated. A fast implementation will be used automatically whenever available. I also agree with Éric that there's no need to mention _elementtree (people might try to import that instead, and other implementations might use a different name). Lib/test/test_xml_etree_c.py could also be removed, and the other tests could import cElementTree too (even though I'm not sure that works too well with doctests). Shouldn't cElementTree raise an error when _elementtree is missing? A DeprecationWarning should be added too. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13988 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13993] Handling of broken end tags in HTMLParser
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset df5e5eea7833 by Ezio Melotti in branch '3.2': #13993: HTMLParser is now able to handle broken end tags when strict=False. http://hg.python.org/cpython/rev/df5e5eea7833 New changeset 2e66baa1d86a by Ezio Melotti in branch 'default': #13993: merge with 3.2. http://hg.python.org/cpython/rev/2e66baa1d86a -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13993 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13997] Clearly explain the bare minimum Python 3 users should know about Unicode
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13997 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14000] Subprocess stdin.flush does not flush
New submission from Andrew Moffat andrew.robert.mof...@gmail.com: The following code only works if the p.stdin.close() line is uncommented. It seems that stdin only flushes to the process on stdin.close(), not on stdin.flush(). --- import subprocess as subp import threading import time p = subp.Popen([tr, [:lower:], [:upper:]], stdin=subp.PIPE, stderr=subp.PIPE, stdout=subp.PIPE, close_fds=True) def read(stdout): while True: line = stdout.readline() if not line: break print(line.decode(utf8)) t = threading.Thread(target=read, args=(p.stdout,)) t.daemon = True t.start() p.stdin.write(uppercase\n.encode()) p.stdin.flush() #p.stdin.close() time.sleep(1) -- components: None messages: 153257 nosy: amoffat priority: normal severity: normal status: open title: Subprocess stdin.flush does not flush type: behavior versions: Python 2.7, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14000 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 65fc79fb4eb2 by Florent Xicluna in branch 'default': Issue #13988: cElementTree is deprecated and the _elementtree accelerator is automatically used whenever available. http://hg.python.org/cpython/rev/65fc79fb4eb2 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13988 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8739] Update to smtpd.py to RFC 5321
Changes by Catalin Iacob iacobcata...@gmail.com: -- nosy: +catalin.iacob ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8739 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset e9cf34d56ff1 by Florent Xicluna in branch 'default': Fix xml_etree_c test error (follow up of issue #13988). http://hg.python.org/cpython/rev/e9cf34d56ff1 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13988 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6721] Locks in python standard library should be sanitized on fork
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- nosy: +vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6721 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13897] Move fields relevant to sys.exc_info out of frame into generator/threadstate
Mark Shannon m...@hotpy.org added the comment: This issue was too broad. The new patch is focussed on sys.exc_info. All hints of coroutines have been removed and f_yieldfrom is untouched. New patch reduces code by 65 lines and does not conflict with issue 13607. -- title: Move fields relevant to coroutine/generators out of frame into generator/threadstate - Move fields relevant to sys.exc_info out of frame into generator/threadstate Added file: http://bugs.python.org/file24508/exc_info.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13897 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13897] Move fields relevant to sys.exc_info out of frame into generator/threadstate
Changes by Mark Shannon m...@hotpy.org: Removed file: http://bugs.python.org/file24350/coro.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13897 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13991] namespace packages depending on order
andrea crotti andrea.crott...@gmail.com added the comment: I reopen the ticket because I'm still not convinced.. I tried to substitute the setuptools namespace declaration with the more standard python: from pkgutil import extend_path __path__ = extend_path(__path__, __name__) It behaves exactly in the same way, which makes me think that is more a problem in the importer, that doesn't behave as it should in case of namespace packages.. -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13991 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13986] ValueError: cannot convert float NaN to integer
Shivam shivam.agar...@aricent.com added the comment: Hi Terry, Thanks for your reply. I am made changes suggested by you but still getting the same error: Below is the change that have been made: try: local_var = (os.fstat(f.fileno()).st_mtime) -- added line print Value of local_var,local_var -- added line timestamp = long(os.fstat(f.fileno()).st_mtime) Regards Shivam Agarwal -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13986 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13992] Segfault in PyTrash_destroy_chain
Aaron Staley usaa...@gmail.com added the comment: Unfortunately, my application is running so slow under valgrind that behavior is changing, namely the sockets are all timing out. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13992 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8739] Update to smtpd.py to RFC 5321
R. David Murray rdmur...@bitdance.com added the comment: Gah, that's what I get for trying to do something quick. By changing the name of that variable I introduced a backward incompatibility, since that change was released in 3.2. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8739 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree
Florent Xicluna florent.xicl...@gmail.com added the comment: Now the merge is done. Thank you Eli for the effort, and to the other contributors for the review. Following topics may need further work: - add a Deprecation warning for cElementTree? it will annoy the package maintainers which support both 3.2 and = 3.3, because either they'll use the non-accelerated version in 3.2, or they will have the Deprecation warning in 3.3 ... IMHO, it's better to do nothing, and just keep the mention in the documentation that it is deprecated. - raise the Deprecation warnings for the functions and methods which are marked as deprecated in the documentation (the Python code does it, but not the C accelerator) - convert _elementtree.c Python bootstrap code to C - refactor the test suite These topics are not high priority. A specific issue should be opened if any of them require some attention. -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13988 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13986] ValueError: cannot convert float NaN to integer
Mark Dickinson dicki...@gmail.com added the comment: It's going to be tricky for any of the core Python developers to solve this based on the current level of information---unless anyone has access to a MIPs machine and can reproduce the error, that is. Can you find a local expert who knows C to look into the issue? The most relevant file is probably Modules/posixmodule.c. Things to look at: - do the stat-related values in pyconfig.h (which is generated at configure time) look correct for your platform? Perhaps if you attach a copy of the pyconfig.h file produced at build time that could help. - are there any relevant warnings or errors at compile time? E.g., is there any compiler output near the point where Modules/posixmodule.c is defined? Can you look back at the 'make' output and find out why the 'datetime' module failed to build? What was the output from the 'print' statement that Terry suggested you add? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13986 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3905] subprocess failing in GUI applications on Windows
Changes by Tim Lesher tles...@gmail.com: -- nosy: +tlesher ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3905 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14001] Python v2.7.2 / v3.2.2 (SimpleXMLRPCServer): DoS (excessive CPU usage) by processing malformed XMLRPC / HTTP POST request
New submission from Jan Lieskovsky ian...@seznam.cz: A denial of service flaw was found in the way Simple XML-RPC Server module of Python processed client connections, that were closed prior the complete request body has been received. A remote attacker could use this flaw to cause Python Simple XML-RPC based server process to consume excessive amount of CPU. Credit: Issue reported by Daniel Callaghan References: [1] https://bugzilla.redhat.com/show_bug.cgi?id=789790 Steps to reproduce: -- A) for v3.2.2 version: 1) start server: cat s.py #!/usr/local/bin/python3 from xmlrpc.server import SimpleXMLRPCServer server = SimpleXMLRPCServer(('127.0.0.1', 12345)) server.serve_forever() 2) # top 3) issue request from client: echo -e 'POST /RPC2 HTTP/1.0\r\nContent-Length: 100\r\n\r\nlol bye' | nc localhost 12345 Return to 'top' screen and see, how CPU consumption on particular host quickly moves to 100%. B) for v2.7.2 version: 1) start server: cat s.py #!/usr/bin/python from SimpleXMLRPCServer import SimpleXMLRPCServer server = SimpleXMLRPCServer(('127.0.0.1', 12345)) server.serve_forever() Steps 2) and 3) for v2.7.2 version are identical to those for v3.2.2 version. -- components: Library (Lib) messages: 153267 nosy: iankko priority: normal severity: normal status: open title: Python v2.7.2 / v3.2.2 (SimpleXMLRPCServer): DoS (excessive CPU usage) by processing malformed XMLRPC / HTTP POST request type: security versions: Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14001 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14001] Python v2.7.2 / v3.2.2 (SimpleXMLRPCServer): DoS (excessive CPU usage) by processing malformed XMLRPC / HTTP POST request
Changes by Ralf Schmitt python-b...@systemexit.de: -- nosy: +schmir ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14001 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13992] Segfault in PyTrash_destroy_chain
Charles-François Natali neolo...@free.fr added the comment: Unfortunately, my application is running so slow under valgrind that behavior is changing, namely the sockets are all timing out. Did you see any invalid read/write? By the way, a google search returned me this: https://github.com/paramiko/paramiko/issues/17#issuecomment-2382818 The commenter says the crashes don't happen with Python 2.6.7. If that's true, then you could try bisecting the commit (but it'll take some time). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13992 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13991] namespace packages depending on order
Changes by andrea crotti andrea.crott...@gmail.com: -- resolution: invalid - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13991 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14001] Python v2.7.2 / v3.2.2 (SimpleXMLRPCServer): DoS (excessive CPU usage) by processing malformed XMLRPC / HTTP POST request
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti, loewis stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14001 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13992] Segfault in PyTrash_destroy_chain
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: and I do occasionally use PyThreadState_SetAsyncExc to asynchronously terminate threads. Did you write an extension module for this? It is possible that there is a refcount error there. -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13992 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14001] Python v2.7.2 / v3.2.2 (SimpleXMLRPCServer): DoS (excessive CPU usage) by processing malformed XMLRPC / HTTP POST request
Jan Lieskovsky ian...@seznam.cz added the comment: CVE request: [2] http://www.openwall.com/lists/oss-security/2012/02/13/3 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14001 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13960] Handling of broken comments in HTMLParser
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 333e3acf2008 by Ezio Melotti in branch '2.7': #13960: HTMLParser is now able to handle broken comments. http://hg.python.org/cpython/rev/333e3acf2008 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13960 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13960] Handling of broken comments in HTMLParser
Ezio Melotti ezio.melo...@gmail.com added the comment: I now backported this to 2.7, together with some improvements in the handling of declarations that I committed on 3.2 (4c4ff9fd19b6) and 3.3 (06a6fed0da56). Apparently ! is not a valid comment in HTML5, but it is considered a bogus comment and should still emit a comment with no content. This is now fixed too. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13960 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14001] Python v2.7.2 / v3.2.2 (SimpleXMLRPCServer): DoS (excessive CPU usage) by processing malformed XMLRPC / HTTP POST request
Changes by Florent Xicluna florent.xicl...@gmail.com: -- components: +XML nosy: +flox versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14001 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13993] Handling of broken end tags in HTMLParser
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset a349448474ea by Ezio Melotti in branch '2.7': #13993: HTMLParser is now able to handle broken end tags. http://hg.python.org/cpython/rev/a349448474ea -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13993 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13993] Handling of broken end tags in HTMLParser
Ezio Melotti ezio.melo...@gmail.com added the comment: This is now fixed. -- resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13993 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13607] Move generator specific sections out of ceval.
Mark Shannon m...@hotpy.org added the comment: Why do the codes used internally by ceval have to be the same as those made public? Have you considered returning the exit code directly, rather than adding another field to frameobject? yieldfrom can be handled in a similar way to yield by returning the iterator (instead of the yielded value). See attached file for example code. -- nosy: +Mark.Shannon Added file: http://bugs.python.org/file24509/exit_code_example.c ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13607 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13903] New shared-keys dictionary implementation
Changes by Mark Shannon m...@hotpy.org: Added file: http://bugs.python.org/file24510/691ce331f955.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13903 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13903] New shared-keys dictionary implementation
Changes by Mark Shannon m...@hotpy.org: Removed file: http://bugs.python.org/file24465/e50db1b7ad7b.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13903 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13979] Automatic *libc.so loading behaviour
Changes by Sébastien Barthélémy barthel...@crans.org: -- nosy: +sbarthelemy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13979 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10227] Improve performance of MemoryView slicing
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Sure. Flagging this as fixed. Can´t close it until 10181 is closed due to some dependency thing. (perhaps someone else knows what to do?) -- resolution: - fixed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10227 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14002] distutils2 fails to install a package from PyPI on Python 2.7.2
New submission from Paul Moore p.f.mo...@gmail.com: I created a bdist_wininst installer for distutils2 and installed it into my Python 2.7.2 installation. This is on Wondows, 32-bit. I then tried to do a simple install to test it was working. python -m distutils2.run install stemming Checking the installation location... Getting information about 'stemming'... extensions in requires.txt are not supported (used by u'Genshi' 0.6) u'pywin32': u'214' is not a valid version (field 'Version') extensions in requires.txt are not supported (used by u'sqlpython' 1.7.2) Traceback (most recent call last): File D:\Apps\Python27\lib\runpy.py, line 162, in _run_module_as_main __main__, fname, loader, pkg_name) File D:\Apps\Python27\lib\runpy.py, line 72, in _run_code exec code in run_globals File D:\Apps\Python27\lib\site-packages\distutils2\run.py, line 664, in module sys.exit(main()) File D:\Apps\Python27\lib\site-packages\distutils2\run.py, line 651, in main return dispatcher() File D:\Apps\Python27\lib\site-packages\distutils2\run.py, line 639, in __call__ return func(self, self.args) File D:\Apps\Python27\lib\site-packages\distutils2\run.py, line 91, in wrapper return f(*args, **kwargs) File D:\Apps\Python27\lib\site-packages\distutils2\run.py, line 167, in _install return not install(target) File D:\Apps\Python27\lib\site-packages\distutils2\install.py, line 514, in install info = get_infos(project) File D:\Apps\Python27\lib\site-packages\distutils2\install.py, line 338, in get_infos release = index.get_release(requirements) File D:\Apps\Python27\lib\site-packages\distutils2\pypi\wrapper.py, line 28, in decorator if f != func.im_self and hasattr(f, func.f_name): AttributeError: 'function' object has no attribute 'f_name' The initial errors look like complaints about existing packages I have installed by other means (setuptools or bdist_wininst). The final one looks like a bug in distutils2, though. -- assignee: tarek components: Distutils2 messages: 153278 nosy: alexis, eric.araujo, pmoore, tarek priority: normal severity: normal status: open title: distutils2 fails to install a package from PyPI on Python 2.7.2 type: behavior versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14002 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10227] Improve performance of MemoryView slicing
Stefan Krah stefan-use...@bytereef.org added the comment: Great. I removed the dependency since it's fixed in both cpython and pep-3118. -- dependencies: -Problems with Py_buffer management in memoryobject.c (and elsewhere?) stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10227 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14001] Python v2.7.2 / v3.2.2 (SimpleXMLRPCServer): DoS (excessive CPU usage) by processing malformed XMLRPC / HTTP POST request
Changes by Ross Lagerwall rosslagerw...@gmail.com: -- nosy: +rosslagerwall ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14001 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14001] Python v2.7.2 / v3.2.2 (SimpleXMLRPCServer): DoS (excessive CPU usage) by processing malformed XMLRPC / HTTP POST request
Changes by Dave Malcolm dmalc...@redhat.com: -- nosy: +dmalcolm ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14001 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14000] Subprocess stdin.flush does not flush
Ross Lagerwall rosslagerw...@gmail.com added the comment: This appears to be a buffering issue with the tr program. Replace with [cat, -] and it works whether the close() is in or not. To fix this, you need to open up the child process so that it is connected to a tty. man 4 pts if you want to investigate this further. -- nosy: +rosslagerwall resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14000 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4966] Improving Lib Doc Sequence Types Section
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file24511/0a49f6382467.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4966 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8739] Update to smtpd.py to RFC 5321
Alberto Trevino albe...@byu.edu added the comment: David, I'd be happy to help, but I'm pretty busy for the next month. I read the description of your patch, and it sounds good to me. Anything that moves the project forward is always welcomed. Thanks for your work on this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8739 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13968] Support recursive globs
Yuval Greenfield ubershme...@gmail.com added the comment: I noticed this implementation on PyPI http://packages.python.org/rglob/ which sort of has rglob defined as def rglob(pattern, base='.'): Which seems like the most comprehensible way of doing this, though not the most compact. The code itself isn't in the best shape http://cpiekarski.com/2011/09/23/python-recursive-glob/ eg it uses list comprehensions instead of generators. But I think I like this API better as it really is easier to explain. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13968 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8739] Update to smtpd.py to RFC 5321
R. David Murray rdmur...@bitdance.com added the comment: OK. Maybe someone else will want to work on it, too. I'll see if I can get it taken care of one way or another during the PyCon sprints. I'm going to mark this as easy, because really other than expanding test coverage I think the only thing that needs done is to fix MAIL FROM/RCPT TO. Another pair of eyes going through the RFC would be good too, of course. Maybe someone from the core-mentorship list will be interested. -- keywords: +easy stage: test needed - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8739 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13998] Lookbehind assertions go behind the start position for the match
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: The documentation says of the 'pos' parameter This is not completely equivalent to slicing the string and of the 'endpos' parameter it will be as if the string is endpos characters long. In other words, it starts searching at 'pos' but truncates at 'endpos'. Yes, it's inconsistent, but it's documented. -- nosy: +mrabarnett ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13998 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13998] Lookbehind assertions go behind the start position for the match
Devin Jeanpierre jeanpierr...@gmail.com added the comment: If it's intended behaviour, then I'd request that the documentation specifically mention lookbehind assertions the way it does with ^. Saying it's slightly different doesn't make clear the ways in which it is different, and that's important for people writing or using regular expressions. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13998 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13922] argparse handling multiple -- in args improperly
Steven Bethard steven.beth...@gmail.com added the comment: See nargs=argparse.REMAINDER for an approach that doesn't require that first '--': http://docs.python.org/library/argparse.html#nargs But yeah, removing more than one '--' is probably a bug. Fixing it would be a little backwards incompatible though. Is it possible that anyone actually depends on the behavior of consuming multiple '--' arguments? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13922 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14003] __self__ on built-in functions is not as documented
New submission from Роман Донченко dxdra...@yandex.ru: The language reference says this in section 3.2: ~ Built-in functions A built-in function object is a wrapper around a C function. Examples of built-in functions are len() and math.sin() ... Special read-only attributes: ... __self__ is set to None (but see the next item) ~ That is not the case: ActivePython 3.2.2.3 (ActiveState Software Inc.) based on Python 3.2.2 (default, Sep 8 2011, 10:55:13) [MSC v.1500 64 bit (AMD64)] on win32 Type help, copyright, credits or license for more information. len.__self__ module 'builtins' (built-in) open.__self__ module 'io' (built-in) import math math.sin.__self__ module 'math' (built-in) -- assignee: docs@python components: Documentation messages: 153287 nosy: SpecLad, docs@python priority: normal severity: normal status: open title: __self__ on built-in functions is not as documented type: behavior versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14003 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14003] __self__ on built-in functions is not as documented
R. David Murray rdmur...@bitdance.com added the comment: It looks like this changed between 2.x and 3.x but the docs were not updated. None makes more sense than the module as __self__, though, so perhaps it is actually a bug. Then, again, since Python functions don't have a __self__, the __self__ of built-in functions seems like an anomaly to begin with... -- nosy: +r.david.murray versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14003 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13193] packaging.tests.test_manifest and distutils.tests.test_filelist failures
Benjamin Peterson benja...@python.org added the comment: Apply! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13193 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13193] packaging.tests.test_manifest and distutils.tests.test_filelist failures
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 3925081a7ca0 by Nadeem Vawda in branch '2.7': Issue #13193: Fix distutils.filelist tests to always use / as path separator. http://hg.python.org/cpython/rev/3925081a7ca0 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13193 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13579] string.Formatter doesn't understand the !a conversion specifier
Francisco Martín Brugué franci...@email.de added the comment: Hi, here's a patch with the changes proposed by Terry Cheers, francis -- keywords: +patch nosy: +francismb Added file: http://bugs.python.org/file24512/issue13579_80a50b7ad88f.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13579 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13930] lib2to3 ability to output files into a different directory and alter their names
Nadeem Vawda nadeem.va...@gmail.com added the comment: Tests are failing on all the Windows buildbots (e.g. http://www.python.org/dev/buildbot/all/builders/x86%20XP-4%203.x/builds/5966/steps/test/logs/stdio ). The problem seems to be that the test in question is hardwired to expect / as the directory separator. -- nosy: +nadeem.vawda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13930 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8739] Update to smtpd.py to RFC 5321
Changes by Hynek Schlawack h...@ox.cx: -- nosy: +hynek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8739 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7644] bug in nntplib.body() method with possible fix
Antoine Pitrou pit...@free.fr added the comment: test_nntplib doesn't seem to exercise the second argument to body() (the file object). Perhaps you want to add a test for that? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7644 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13229] Improve tools for iterating over filesystem directories
Antoine Pitrou pit...@free.fr added the comment: Not sure this is the right place to mention this, but I'm realizing handling symlink loops will be interesting. It is interesting because, when e.g. you are globbing, your glob's results may not include the symlinks' target path; so there are cases where you need to keep the symlink in the results. (and in the general case you may or may not want to keep some duplicates, depending on what you do with the links) I am adding rglob() to pathlib and currently ignoring (i.e. crashing :-)) symlink loops. I would be interested in any ideas as to how handle them correctly. -- nosy: +neologix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13229 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13229] Improve tools for iterating over filesystem directories
Antoine Pitrou pit...@free.fr added the comment: Oh, forgot to mention, the term symlink loop itself is ambiguous. There are direct symlink loops: an example is a some_dir/linky link pointing to ../some_dir/linky. These will fail when resolving them. There are indirect symlink loops: some_dir/linky pointing to ../some_dir. Resolving them works fine, but recursively walking them produces an infinite recursion. Lots of fun :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13229 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14001] Python v2.7.2 / v3.2.2 (SimpleXMLRPCServer): DoS (excessive CPU usage) by processing malformed XMLRPC / HTTP POST request
Charles-François Natali neolo...@free.fr added the comment: SimpleXMLRPCRequestHandler.do_POST() is simply looping on EOF. The patch attached fixes this (the server doesn't seem to generate an error in response to this partial request though). -- keywords: +patch nosy: +neologix Added file: http://bugs.python.org/file24513/xmlrpc_loop.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14001 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6085] Logging in BaseHTTPServer.BaseHTTPRequestHandler causes lag
Changes by Ralf Schmitt python-b...@systemexit.de: -- nosy: +schmir ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6085 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14003] __self__ on built-in functions is not as documented
Michael Foord mich...@voidspace.org.uk added the comment: It's nicer for introspection if __self__ is None on builtin functions. But fixing the docs is easier (and more backwards compatible). -- nosy: +michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14003 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13866] {urllib, urllib.parse}.urlencode should not use quote_plus
Stephen Day stevv...@gmail.com added the comment: I apologize for reopening this bug, but I find your interpretation to be inaccurate. While technically valid, the combination of the documentation, the function name and the main use cases yields pathological invocations of urlencode. My bug report is to help mitigate these problems. The main use case for url encoding of mapping types is not for posting form data; the main use case is appending url parameters to a url: from urllib import urlencode from urlparse import urlunparse urlunparse(('http', 'example.com', '/', None, urlencode({'a': 'some string'}), None)) 'http://example.com/?a=some+string' Any sane person would naturally gravitate to a function called urlencode to url encode a mapping type. If the urllib.urlencode function is indeed intended for form-encoding, as I agree is hinted in the documentation, it should indicate that its result is 'application/x-www-form-urlencoded' or it should be called formencode. The quote or quote_plus is not at all what I am looking for; I am quite familiar with these library functions. These functions are for encoding component strings; they don't meet the use case described at all: quote({'a': 1}) Traceback (most recent call last): File stdin, line 1, in module File /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py, line 1248, in quote if not s.rstrip(safe): AttributeError: 'dict' object has no attribute 'rstrip' In addition, Java's URLEncoder implementation is hardly a good example of standards compliant URL manipulation. Python is not Java. The Python community needs to make its own, independent, mature language decisions. In general, the use of '+' to encode spaces in content, even if it is compliant against an arbitrary standard, is pathological, especially when used in urls. Even though python's quote_plus function works symmetrically on its own, when pluses are used in a multi-language environment it can become impossible to tell whether a plus is a literal '+' or an encoded space. In addition, the usage of '%20' for spaces will work in almost all cases. RFC3986, Section 2 [1] describes the use of percent-encoding as a solution to representing reserved characters. In practice, percent-encoding is used on the value component of 'key=value' productions and this works in nearly all cases. The referenced standard [2], while relevant to the implied use case, is not applicable to url assembly. Given your interpretation, it seems that there is no function in the python standard library to meet the use case of correctly assembling url parameter values, leaving application developers to come up with something like this: ''.join(['='.join((quote(k), quote(v))) for k,v in {'a': '1', 'b': 'with spaces'}.iteritems()]) 'a=1b=with%20spaces' In most cases, people will just use urlencode, which uses pluses for spaces, yielding pathological, noncompliant urls. In deference to this bug closure, there are a few options: 1. Close this issue and keep polluting the world's urls with pluses for spaces. 2. Make urlencode target path/query parameter encoding and then create a new function, formencode, for use in encoding form data, breaking backwards compatibility. 3. Simply add a keyword argument to urlencode to allow the caller to specify the encoding function and separator, retaining compatibility and satisfying all of the above use cases. Naturally, 3 seems to be a very reasonable solution to this bug. [1] http://tools.ietf.org/html/rfc3986#section-2 explicitly covers [2] http://www.w3.org/TR/html4/interact/forms.html#h-17.13.4.1 -- resolution: invalid - status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13866 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13703] Hash collision security issue
Marc-Andre Lemburg m...@egenix.com added the comment: Dave Malcolm wrote: [new patch] Please change how the env vars work as discussed earlier on this ticket. Quick summary: We only need one env var for the randomization logic: PYTHONHASHSEED. If not set, 0 is used as seed. If set to a number, a fixed seed is used. If set to random, a random seed is generated at interpreter startup. Same for the -R cmd line option. Thanks, -- Marc-Andre Lemburg eGenix.com ::: Try our new mxODBC.Connect Python Database Interface for free ! eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg Registered at Amtsgericht Duesseldorf: HRB 46611 http://www.egenix.com/company/contact/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13703 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13968] Support recursive globs
Antoine Pitrou pit...@free.fr added the comment: But I think I like this API better as it really is easier to explain. I think you got it wrong. Looking at the implementation, it is no different from the API proposed above, except that it also lets you choose the start dir. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13968 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14004] Distutils filelist selects too many files on Windows
New submission from Jason R. Coombs jar...@jaraco.com: When using a MANIFEST.in with only include *.txt, on Windows, distutils grabs too many files. I set DISTUTILS_DEBUG=1 and ran ./setup.py sdist on the keyring library and it included this output: include *.txt include_pattern: applying regex r'^[^/]*\.txt\Z(?ms)' adding CHANGES.txt adding CONTRIBUTORS.txt adding .hg\last-message.txt adding keyring.egg-info\dependency_links.txt adding keyring.egg-info\requires.txt adding keyring.egg-info\SOURCES.txt adding keyring.egg-info\top_level.txt As you can see, this is not a recursive include, but it's matching several files not in the supplied pattern (files in .hg/ and keyring.egg-info/). It's obvious from the regular expression that the regex doesn't properly account for os.sep. -- assignee: tarek components: Distutils messages: 153302 nosy: eric.araujo, jason.coombs, tarek priority: normal severity: normal status: open title: Distutils filelist selects too many files on Windows versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14004 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14004] Distutils filelist selects too many files on Windows
Changes by Jason R. Coombs jar...@jaraco.com: -- components: +Windows ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14004 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14004] Distutils filelist selects too many files on Windows
Changes by Nadeem Vawda nadeem.va...@gmail.com: -- nosy: +nadeem.vawda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14004 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12627] Implement PEP 394: The python Command on Unix-Like Systems
Martin v. Löwis mar...@v.loewis.de added the comment: The 2.7 patch needs to remove an existing python2 link before creating it. -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12627 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7475] codecs missing: base64 bz2 hex zlib hex_codec ...
Changes by Barry A. Warsaw ba...@python.org: -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7475 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7475] codecs missing: base64 bz2 hex zlib hex_codec ...
STINNER Victor victor.stin...@gmail.com added the comment: What is the status of this issue? Is there still a fan of this issue motivated to write a PEP, a patch or something like that? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7475 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14001] Python v2.7.2 / v3.2.2 (SimpleXMLRPCServer): DoS (excessive CPU usage) by processing malformed XMLRPC / HTTP POST request
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14001 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13930] lib2to3 ability to output files into a different directory and alter their names
Changes by Antoine Pitrou pit...@free.fr: -- stage: patch review - committed/rejected status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13930 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14005] IDLE Crash when running/saving a file
New submission from Scott Bowman scott.thomas.bow...@gmail.com: Whenever I save or try to run a program from the text editor window, IDLE crashes. Any suggestions? I'm running Windows 7, btw. -- components: None messages: 153305 nosy: Scott.Bowman priority: normal severity: normal status: open title: IDLE Crash when running/saving a file type: crash versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14005 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13951] Seg Fault in .so called by ctypes causes the interpreter to Seg Fault
STINNER Victor victor.stin...@gmail.com added the comment: Should it seg fault or just throw an exception? Python cannot do anything useful on such fatal error. In Python 3.3, there is a faulthandler module which can help to debug: it dumps the traceback of all threads on such fatal error. It is also available as a third party module on PyPI: http://pypi.python.org/pypi/faulthandler -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13951 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13930] lib2to3 ability to output files into a different directory and alter their names
Gregory P. Smith g...@krypto.org added the comment: oh did I miss a / vs os.sep somewhere? Looking. I'll fix this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13930 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13913] utf-8 or utf8 or utf-8 (codec display name inconsistency)
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset c861c0a7f40c by Victor Stinner in branch '3.2': Issue #13913: normalize utf-8 codec name in UTF-8 decoder http://hg.python.org/cpython/rev/c861c0a7f40c New changeset af1a9508f7fa by Victor Stinner in branch 'default': (Merge 3.2) Issue #13913: normalize utf-8 codec name in UTF-8 decoder http://hg.python.org/cpython/rev/af1a9508f7fa -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13913 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13913] utf-8 or utf8 or utf-8 (codec display name inconsistency)
STINNER Victor victor.stin...@gmail.com added the comment: Use codecs.lookup(alias).name to the the normalize name of a codec. Examples: import codecs codecs.lookup('utf-8').name 'utf-8' codecs.lookup('iso-8859-1').name 'iso8859-1' codecs.lookup('latin1').name 'iso8859-1' codecs.lookup('iso2022_jp').name 'iso2022_jp' All issues look to be addressed, so I close the issue. Thanks for the report! -- nosy: +haypo resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13913 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13927] Extra spaces in the output of time.ctime
STINNER Victor victor.stin...@gmail.com added the comment: asctime() docs say it's a 24 char string. I'm not sure that all platform conform to this specification... which is not future proof! $ ./python Python 3.3.0a0 (default:af1a9508f7fa, Feb 14 2012, 01:18:15) [GCC 4.6.2 20111027 (Red Hat 4.6.2-1)] on linux import time time.ctime(2**38) 'Wed Jul 14 08:09:04 10680' len(time.ctime(2**38)) 25 I suppose that you can say that the month day is formatted as 2 characters (padded with a space if needed). -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13927 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13927] Extra spaces in the output of time.ctime
R. David Murray rdmur...@bitdance.com added the comment: Or you could give the strftime specification string that produces the equivalent output. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13927 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13992] Segfault in PyTrash_destroy_chain
Aaron Staley usaa...@gmail.com added the comment: I see no invalid read/write. Only warnings are some conditional jump depends on uninitialized value in pycrypto's libraries very early on though. The link seems to be a different bug from mine. I did test in python 2.6.7 and the crash still occurs. (I also never get a segfault on my system with the link's test case - perhaps that only occurs in osx?) To do the async exception, I use ctypes.pythonapi.PyThreadState_SetAsyncExc in python itself. This is relatively rarely used however. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13992 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13930] lib2to3 ability to output files into a different directory and alter their names
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 6fd16782ecb8 by Gregory P. Smith in branch '3.2': Issue #13930: fix a / to use os.sep so that the test works on Windows. http://hg.python.org/cpython/rev/6fd16782ecb8 New changeset f13fbd848d50 by Gregory P. Smith in branch 'default': Issue #13930: fix a / to use os.sep so that the test works on Windows. http://hg.python.org/cpython/rev/f13fbd848d50 New changeset 34445738954b by Gregory P. Smith in branch '2.7': Issue #13930: fix a / to use os.sep so that the test works on Windows. http://hg.python.org/cpython/rev/34445738954b -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13930 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13706] non-ascii fill characters no longer work in formatting
STINNER Victor victor.stin...@gmail.com added the comment: thousands_separator.patch: - Remove the unused _PyUnicode_InsertThousandsGroupingLocale() function - Add a test for non-ASCII thousands separator (depend on the locale) - _PyUnicode_InsertThousandsGrouping() expects thousands separator as a Unicode object and return the maximum character if unicode is NULL - Fix str.__format__() for non-ASCII thousands separator Note: the patch handles also non-ASCII decimal point, even I don't know any locale using such point. -- keywords: +patch Added file: http://bugs.python.org/file24516/thousands_separator.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13706 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13930] lib2to3 ability to output files into a different directory and alter their names
Changes by Gregory P. Smith g...@krypto.org: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13930 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13193] packaging.tests.test_manifest and distutils.tests.test_filelist failures
Éric Araujo mer...@netwok.org added the comment: Sorry I was unavailable. I read and approved of the patch but could not push, so thanks for doing it :) -- resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13193 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13229] Improve tools for iterating over filesystem directories
Nick Coghlan ncogh...@gmail.com added the comment: WalkDir attempts to handle symlink loops, but the test suite doesn't currently ensure that that handling works as expected (I did some initial manual tests and haven't updated it since, though). It's... not trivial: https://bitbucket.org/ncoghlan/walkdir/src/1b239056e9d5/walkdir.py#cl-163 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13229 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7475] codecs missing: base64 bz2 hex zlib hex_codec ...
Nick Coghlan ncogh...@gmail.com added the comment: It's still on my radar to come back and have a look at it. Feedback from the web folks doing Python 3 migrations is that it would have helped them in quite a few cases. I want to get a couple of other open PEPs out of the way first, though (mainly 394 and 409) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7475 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14006] Improve the documentation of xml.etree.ElementTree
New submission from Eli Bendersky eli...@gmail.com: The documentation of xml.etree.ElementTree has to be improved. The first, very obvious step, would be to start the documentation page with a general overview of the module + some simple examples. The current opening section makes no sense for this module. -- assignee: docs@python components: Documentation keywords: easy messages: 153318 nosy: docs@python, eli.bendersky, eric.araujo, ezio.melotti, flox, scoder priority: normal severity: normal status: open title: Improve the documentation of xml.etree.ElementTree type: enhancement versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14006 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree
Eli Bendersky eli...@gmail.com added the comment: I would add to the TODO - improve the documentation of the module. Opened issue 14006 for this. -- resolution: fixed - stage: committed/rejected - needs patch status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13988 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree
Changes by Eli Bendersky eli...@gmail.com: -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13988 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11380] close failed in file object destructor when Broken pipe happens on stdout
Jeremy Fishman jeremy.r.fish...@gmail.com added the comment: The behavior under question here is how the interpreter handles a broken pipe during shutdown. The following code behaves as expected when either (a) the process receives a SIGINT or (b) the output pipe is closed import sys try: while True: print 'y' except KeyboardInterrupt: sys.exit(130) except (IOError, OSError): sys.exit(141) However, in the case of a SIGINT sent to the entire process group e.g. from a shell prompt, the interpreter may receive the SIGINT before detecting the broken pipe. In this case, the interpreter prints an error somewhere during the SIGINT handler or subsequent shutdown. In Python 2.4.6 and 2.5.2 the error is close failed: [Errno 32] Broken pipe In Python 2.7.2 the error is close failed in file object destructor: sys.excepthook is missing lost sys.stderr In Python 3.2 the error is Exception IOError: IOError(32, 'Broken pipe') in _io.TextIOWrapper name='stdout' mode='w' encoding='UTF-8' ignored I have not succeeded in triggering the error in Python 3.1.2, despite ensuring the signal arrived before the next write(2) call after the output pipe was closed. I have attached some straces, but this difference is probably spurious unless reproduced with one of the later bugfix 3.1 releases. In all versions, the program properly terminates with code 130, or 141 if the write(2) error occurs first. I would say the bug here if any is inconsistent behavior, though that isn't surprising between major versions. The 2.7 error message is the only misleading one - stderr was never lost, and we don't really care about sys.excepthook here. -- nosy: +Jeremy.Fishman Added file: http://bugs.python.org/file24517/python-sigint_and_epipe_straces.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11380 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree
Eli Bendersky eli...@gmail.com added the comment: I started going over the deprecated methods in ElementTree and ran into a more serious problem. XmlParser.doctype() is listed as deprecated, and indeed ElementTree (the Python version) issues a deprecation warning. However, the C implementation doesn't have doctype() at all so I get AttributeError. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13988 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13992] Segfault in PyTrash_destroy_chain
Aaron Staley usaa...@gmail.com added the comment: BTW, I take back what I said about using PyThreadState_SetAsyncExc. Turns out I had a bug where this function would never succeed (was always returning 0). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13992 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree
Philip Jenvey pjen...@underboss.org added the comment: DeprecationWarnings aren't that annoying anymore now that they're silent by default. It should at least have a PendingDeprecationWarning -- nosy: +pjenvey ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13988 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14007] xml.etree.ElementTree - XMLParser and TreeBuilder's doctype() method missing
New submission from Eli Bendersky eli...@gmail.com: Although documented, the C accelerator of xml.etree.ElementTree (used by default since issue 13988) does not use or define the doctype() methods of the XMLParser and TreeBuilder classes, although this method is documented. As far as I can tell, this problem exists in 3.2 as well and wasn't introduced by the changes in issue 13988. -- components: Library (Lib) messages: 153324 nosy: effbot, eli.bendersky, ezio.melotti, flox priority: high severity: normal stage: needs patch status: open title: xml.etree.ElementTree - XMLParser and TreeBuilder's doctype() method missing type: behavior versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14007 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree
Eli Bendersky eli...@gmail.com added the comment: The doctype() problem is deeper, since neither does TreeBuilder implement it (although for this class it's not even deprecated). Since this appears to be a problem in 3.2 as well, I'm opening a new issue - 14007, to track this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13988 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree
Changes by Eli Bendersky eli...@gmail.com: -- Removed message: http://bugs.python.org/msg153325 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13988 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14007] xml.etree.ElementTree - XMLParser and TreeBuilder's doctype() method missing
New submission from Eli Bendersky eli...@gmail.com: The C accelerator of xml.etree.ElementTree (used by default since issue 13988) does not use or define or use the doctype() methods of the XMLParser and TreeBuilder classes, although this method is documented. As far as I can tell, this problem exists in 3.2 as well and wasn't introduced by the changes in issue 13988. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14007 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree
Changes by Eli Bendersky eli...@gmail.com: -- Removed message: http://bugs.python.org/msg153327 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13988 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree
Eli Bendersky eli...@gmail.com added the comment: Opened issue 14007 to track the doctype() problem -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13988 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com