[issue22799] wrong time.timezone
Akira Li added the comment: This issue could be fixed using sync-time-timezone-attr-with-c.diff patch from http://bugs.python.org/issue22798 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22799 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22951] unexpected return from float.__repr__() for inf, -inf, nan
Mark Dickinson added the comment: Previously discussed here: http://bugs.python.org/issue1732212 -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22951 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22951] unexpected return from float.__repr__() for inf, -inf, nan
Mark Dickinson added the comment: A couple of points against this change: 1. If repr(float('inf')) became float('inf'), we'd lose the invariant that float(repr(x)) recovers x for all floats (including infinities and nans). 2. Since repr and str are currently identical for floats, this change would either end up modifying str too, or making str and repr different; neither option is particularly palatable. While I can see a case for the repr returning something eval-able, I think the str of an infinity should remain as inf or -inf. 3. For consistency, you'd need to change the complex and Decimal outputs, too. 4. The current output of repr and str is directly parseable by most other languages. So -1 from me. (Changing type to 'enhancement'; we use 'behaviour' for bugs, and this isn't one. :-) -- type: behavior - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22951 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22951] unexpected return from float.__repr__() for inf, -inf, nan
Serhiy Storchaka added the comment: Workaround: eval('inf', {'inf': float('inf')}) inf -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22951 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20530] Change the text signature format (again) to be more robust
Larry Hastings added the comment: Actually this is the wrong issue for that observation. You want the issue where yselivanov added emitting the / to pydoc. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20530 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18032] Optimization for set/frozenset.issubset()
Bruno Cauet added the comment: Here is an updated patch based on Dustin's work with Josh's comments. I also added a test which takes forever on an unpatched python interpreter. Since it's a performance issue, I've benchmarked the results. They don't change for the most part (argument is a set or a dict) but they're way better for iterables. For every type of argument I test 1 case where set.issubset returns True and 1 case where it returns False. (a) simple argument (results unchanged) $ ./python -m timeit -s s1 = set(range(1000)); s2 = set(range(1000)) s1.issubset(s2) Unpatched: 1 loops, best of 3: 63.7 usec per loop Patched: 1 loops, best of 3: 63.5 usec per loop $ ./python -m timeit -s s1 = set(range(1000)); s2 = set(range(1, 1000)) s1.issubset(s2) Unpatched: 100 loops, best of 3: 0.248 usec per loop Patched: 100 loops, best of 3: 0.25 usec per loop $ ./python -m timeit -s s1 = set(range(1000)); s2 = dict(enumerate(range(1000))) s1.issubset(s2) Unpatched: 1 loops, best of 3: 107 usec per loop Patched: 1 loops, best of 3: 108 usec per loop $ ./python -m timeit -s s1 = set(range(1000)); s2 = dict(enumerate(range(1, 1000))) s1.issubset(s2) Unpatched: 1 loops, best of 3: 43.5 usec per loop Patched: 1 loops, best of 3: 42.6 usec per loop (b) iterable argument (speed improvement) 1) no improvements/slight degradation when everything must be consumed $ ./python -m timeit -s s1 = set(range(1000)) s1.issubset(range(1000)) Unpatched: 1000 loops, best of 3: 263 usec per loop Patched: 1000 loops, best of 3: 263 usec per loop $ ./python -m timeit -s s1 = set(range(1000)) s1.issubset(range(1, 1000)) Unpatched: 1 loops, best of 3: 201 usec per loop Patched: 1000 loops, best of 3: 259 usec per loop $ ./python -m timeit -s s1 = set(range(100)) s1.issubset(range(1, 1000)) Unpatched: 1000 loops, best of 3: 198 usec per loop Patched: 1000 loops, best of 3: 218 usec per loop 2) tremendous improvements when it can return early $ ./python -m timeit -s s1 = set(range(100)) s1.issubset(range(1000)) Unpatched: 1000 loops, best of 3: 209 usec per loop Patched: 10 loops, best of 3: 12.1 usec per loop $ ./python -m timeit -s s1 = set('a'); s2 = ['a'] + ['b'] * 1 s1.issubset(s2) Unpatched: 1000 loops, best of 3: 368 usec per loop Patched: 100 loops, best of 3: 0.934 usec per loop $ ./python -m timeit -s s1 = set('a'); from itertools import repeat s1.issubset(repeat('a')) Unpatched: NEVER FINISHES Patched: 100 loops, best of 3: 1.33 usec per loop -- nosy: +bru, haypo Added file: http://bugs.python.org/file37295/0001-Improve-set.issubset-performance-on-iterables.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18032 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22956] Improved support for prepared SQL statements
New submission from Markus Elfring: An interface for parameterised SQL statements (working with placeholders) is provided by the execute() method from the Cursor class at the moment. https://docs.python.org/3/library/sqlite3.html#sqlite3.Cursor.execute I assume that the SQL Statement Object from the SQLite C interface is reused there already. http://sqlite.org/c3ref/stmt.html I imagine that it will be more efficient occasionally to offer also a base class like prepared_statement so that the parameter specification does not need to be parsed for every passed command. I suggest to improve corresponding preparation and compilation possibilities. -- components: Extension Modules messages: 231759 nosy: elfring priority: normal severity: normal status: open title: Improved support for prepared SQL statements ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22956 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22957] Multi-index Containers Library
New submission from Markus Elfring: I find a data structure like it is provided by the Boost Multi-index Containers Library interesting for efficient data processing. http://www.boost.org/doc/libs/1_57_0/libs/multi_index/doc/index.html How are the chances to integrate a class library with similar functionality into the Python software infrastructure? -- components: Extension Modules messages: 231761 nosy: elfring priority: normal severity: normal status: open title: Multi-index Containers Library type: enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22957 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22956] Improved support for prepared SQL statements
Changes by Markus Elfring elfr...@users.sourceforge.net: -- type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22956 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22955] Pickling of methodcaller and attrgetter
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +pitrou, serhiy.storchaka type: - enhancement versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22955 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22924] Use of deprecated cgi.escape
Serhiy Storchaka added the comment: highlight.py contains a code to support Python 2: try: import builtins except ImportError: import __builtin__ as builtins If Python 2 should be supported, there is no the html module in Python 2. Otherwise this workaround can be dropped. -- Added file: http://bugs.python.org/file37296/cgi2html2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22924 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22609] Constructors of some mapping classes don't accept `self` keyword argument
Roundup Robot added the comment: New changeset 816c15fe5812 by Serhiy Storchaka in branch '3.4': Issue #22609: Constructors and update methods of mapping classes in the https://hg.python.org/cpython/rev/816c15fe5812 New changeset 88ab046fdd8a by Serhiy Storchaka in branch 'default': Issue #22609: Constructors and update methods of mapping classes in the https://hg.python.org/cpython/rev/88ab046fdd8a -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22609 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22957] Multi-index Containers Library
Eric V. Smith added the comment: You should discuss this on the python-ideas mailing list. Then if there's traction there, we'll re-open this issue. Please reference this issue number when starting the discussion on python-ideas so we can find it later. -- nosy: +eric.smith status: open - closed versions: +Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22957 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22609] Constructors of some mapping classes don't accept `self` keyword argument
Roundup Robot added the comment: New changeset cd1ead4feddf by Serhiy Storchaka in branch '3.4': Issue #22609: Revert changes in UserDict. They conflicted with existing tests. https://hg.python.org/cpython/rev/cd1ead4feddf New changeset 167d51a54de2 by Serhiy Storchaka in branch 'default': Issue #22609: Revert changes in UserDict. They conflicted with existing tests. https://hg.python.org/cpython/rev/167d51a54de2 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22609 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22609] Constructors of some mapping classes don't accept `self` keyword argument
Serhiy Storchaka added the comment: Unfortunately there is existing test for current behavior of UserDict: self.assertEqual(collections.UserDict(dict=[('one',1), ('two',2)]), d2) This looks wrong to me and I think we should break compatibility here. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22609 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22958] Constructors of weakref mapping classes don't accept self and dict keyword arguments
New submission from Serhiy Storchaka: Dict-like types in the weakref module (WeakValueDictionary and WeakKeyDictionary) don't allow to specify key-value pair as keyword arguments if key is self or dict. import weakref class A: pass ... a = A() d = weakref.WeakValueDictionary(spam=a) list(d.items()) [('spam', __main__.A object at 0xb6f3f88c)] weakref.WeakValueDictionary(self=a) Traceback (most recent call last): File stdin, line 1, in module TypeError: __init__() got multiple values for argument 'self' weakref.WeakValueDictionary(dict=a) Traceback (most recent call last): File stdin, line 1, in module File /home/serhiy/py/cpython/Lib/weakref.py, line 114, in __init__ self.update(*args, **kw) File /home/serhiy/py/cpython/Lib/weakref.py, line 261, in update dict = type({})(dict) TypeError: 'A' object is not iterable d = weakref.WeakValueDictionary() d.update(spam=a) list(d.items()) [('spam', __main__.A object at 0xb6f3f88c)] d.update(self=a) Traceback (most recent call last): File stdin, line 1, in module TypeError: update() got multiple values for argument 'self' d.update(dict=a) Traceback (most recent call last): File stdin, line 1, in module File /home/serhiy/py/cpython/Lib/weakref.py, line 261, in update dict = type({})(dict) TypeError: 'A' object is not iterable Related issue for the collections module is issue22609. I think weakref mapping classes should be fixed in the same manner. -- components: Library (Lib) messages: 231767 nosy: fdrake, pitrou, rhettinger, serhiy.storchaka priority: normal severity: normal status: open title: Constructors of weakref mapping classes don't accept self and dict keyword arguments type: behavior versions: Python 2.7, Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22958 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22955] Pickling of methodcaller and attrgetter
Serhiy Storchaka added the comment: I think this issue needs different solutions for 3.5 and maintained releases. We can implement the pickling of methodcaller, attrgetter and itemgetter in 3.5 (I agree this is good idea). And it would be good if pickling of these types will raise an exception in maintained releases. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22955 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22609] Constructors of some mapping classes don't accept `self` keyword argument
Roundup Robot added the comment: New changeset 3dfe4f0c626b by Serhiy Storchaka in branch '2.7': Issue #22609: Constructors and update methods of mapping classes in the https://hg.python.org/cpython/rev/3dfe4f0c626b -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22609 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21514] update json module docs in light of RFC 7159 ECMA-404
Roundup Robot added the comment: New changeset 7e534e18a99a by Serhiy Storchaka in branch '2.7': Issue #21514: The documentation of the json module now refers to new JSON RFC https://hg.python.org/cpython/rev/7e534e18a99a New changeset 89bb4384f1e1 by Serhiy Storchaka in branch '3.4': Issue #21514: The documentation of the json module now refers to new JSON RFC https://hg.python.org/cpython/rev/89bb4384f1e1 New changeset aced2548345a by Serhiy Storchaka in branch 'default': Issue #21514: The documentation of the json module now refers to new JSON RFC https://hg.python.org/cpython/rev/aced2548345a -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21514 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21514] update json module docs in light of RFC 7159 ECMA-404
Chris Rebert added the comment: Thanks Serhiy! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21514 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13212] json library is decoding/encoding when it should not
Chris Rebert added the comment: Ping! Seems like this should be closed since the new RFC explicitly legalizes the feature in question and since the docs explicitly warn about the interoperability of the feature. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13212 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22666] email.Header no encoding of unicode strings containing newlines
R. David Murray added the comment: I'd have to double check, but I think having /r /n etc encoded in an encopded string is illegal per the rfcs. It should be, anyway. So IMO the bug is encoding them at all, but at this point we probably can't fix it for bacward compatibility reasons. I'm leaving this issue open for the moment because I do want to check the rfc, and also double check what the new API does in this situation (and make sure there are tests). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22666 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21514] update json module docs in light of RFC 7159 ECMA-404
Changes by Berker Peksag berker.pek...@gmail.com: -- resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21514 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21514] update json module docs in light of RFC 7159 ECMA-404
Serhiy Storchaka added the comment: Thank you Chris for your patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21514 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22955] Pickling of methodcaller and attrgetter
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22955 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13212] json library is decoding/encoding when it should not
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - wont fix stage: needs patch - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13212 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22959] http.client.HTTPSConnection checks hostname when SSL context has check_hostname==False
New submission from zodalahtathi: http.client.HTTPSConnection has both a check_hostname parameter, and a context parameter to pass an already setup SSL context. When check_hostname is not set and thus is None, and when passing a SSL context set to NOT check hostnames, ie: import http.client import ssl ssl_context = ssl.create_default_context() ssl_context.check_hostname = False https = http.client.HTTPSConnection(..., context=ssl_context) The https object WILL check hostname. In my opinion the line : https://hg.python.org/cpython/file/3.4/Lib/http/client.py#l1207 will_verify = context.verify_mode != ssl.CERT_NONE Should be changed to: will_verify = (context.verify_mode != ssl.CERT_NONE) and (context.check_hostname) -- components: Library (Lib) messages: 231775 nosy: zodalahtathi priority: normal severity: normal status: open title: http.client.HTTPSConnection checks hostname when SSL context has check_hostname==False type: behavior versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22959 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22819] Python3.4: xml.sax.saxutils.XMLGenerator.__init__ fails with pythonw.exe
Changes by Serhiy Storchaka storch...@gmail.com: -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22819 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22666] email.Header no encoding of unicode strings containing newlines
Flavio Grossi added the comment: Hi, and thank you for your answer. However this is not strictly related to the newline, but also to some small idiosyncrasies and different behavior among py2 and py3 (and even in py2 using Header() or Charset()): # py2.7, non-unicode str H('test', 'utf-8').encode() '=?utf-8?q?test?=' Charset('utf-8').header_encode('test') '=?utf-8?q?test?=' # py2.7, unicode str H(u'test', 'utf-8').encode() # this is the only different result 'test' Charset('utf-8').header_encode(u'test') u'=?utf-8?q?test?=' # py3.4, unicode H('test', 'utf-8').encode() '=?utf-8?q?test?=' # py3.4, bytes H(b'test', 'utf-8').encode() '=?utf-8?q?test?=' As you can see, the only when using unicode strings in py2.7 no header encoding is done if the unicode string contains only ascii chars. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22666 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22915] sax.parser cannot get xml data from a subprocess pipe
Roundup Robot added the comment: New changeset 27ae1a476ef7 by Serhiy Storchaka in branch '3.4': Issue #22915: SAX parser now supports files opened with file descriptor or https://hg.python.org/cpython/rev/27ae1a476ef7 New changeset ce9881eecfb4 by Serhiy Storchaka in branch 'default': Issue #22915: SAX parser now supports files opened with file descriptor or https://hg.python.org/cpython/rev/ce9881eecfb4 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22915 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22960] xmlrpc.client.ServerProxy() should accept a custom SSL context parameter
New submission from zodalahtathi: When using xmlrpc.server it is possible (despite being intrusive) to use a custom SSL context, ie: import ssl import xmlrpc.server rpc_server = xmlrpc.server.SimpleXMLRPCServer(...) ssl_context = ssl.SSLContext() # setup the context ... rpc_server.socket = ssl_context.wrap_socket(rpc_server.socket, ...) However it is not possible (unless using some ugly monkey patching, which I am ashamed of writing) to do the same for xmlrpc.client. xmlrpc.client.ServerProxy() could accept a context constructor, and pass it to the SafeTransport instance, and then to the http.client.HTTPSConnection instance (https://hg.python.org/cpython/file/3.4/Lib/xmlrpc/client.py#l1338). I would allow passing a SSL context more secure than the default one, and thus improve security. -- components: Library (Lib) messages: 231778 nosy: zodalahtathi priority: normal severity: normal status: open title: xmlrpc.client.ServerProxy() should accept a custom SSL context parameter type: enhancement versions: Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22960 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22960] xmlrpc.client.ServerProxy() should accept a custom SSL context parameter
Changes by Alex Gaynor alex.gay...@gmail.com: -- nosy: +alex, christian.heimes, dstufft, giampaolo.rodola, janssen, pitrou versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22960 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22906] PEP 479: Change StopIteration handling inside generators
Guido van Rossum added the comment: Here's a doc patch for itertools. -- Added file: http://bugs.python.org/file37297/itertoolsdoc.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22906 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22915] sax.parser cannot get xml data from a subprocess pipe
Serhiy Storchaka added the comment: Jocelyn, in both cases the argument of parse() is a file object with integer name. Tests use one of simplest way to create such object. -- resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22915 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10590] Parameter type error for xml.sax.parseString(string, ...)
Serhiy Storchaka added the comment: There was no significant motion in the direction of fixing XML security issues. May be resolve issue2175 first? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10590 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22915] sax.parser cannot get xml data from a subprocess pipe
Jocelyn added the comment: Ok, I understand your tests now. Thanks for the fixes ! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22915 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16561] bdist_wininst installers don't use UAC, then crash
Christian Boos added the comment: Ping. Probably too late for 2.7.9, but the patch is about adding a check a null pointer dereference and the follow-up crash, so someone might be interested to commit it, or a similar fix. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16561 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22314] pydoc.py: TypeError with a $LINES defined to anything
Roundup Robot added the comment: New changeset 50808dffd0bb by Serhiy Storchaka in branch '2.7': Issue #22314: pydoc now works when the LINES environment variable is set. https://hg.python.org/cpython/rev/50808dffd0bb New changeset c6182a7e75fa by Serhiy Storchaka in branch '3.4': Issue #22314: pydoc now works when the LINES environment variable is set. https://hg.python.org/cpython/rev/c6182a7e75fa New changeset c8adee8a0ccb by Serhiy Storchaka in branch 'default': Issue #22314: pydoc now works when the LINES environment variable is set. https://hg.python.org/cpython/rev/c8adee8a0ccb -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22314 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18905] pydoc -p 0 says the server is available at localhost:0
Roundup Robot added the comment: New changeset ac7f3161aa53 by Serhiy Storchaka in branch '2.7': Issue #18905: pydoc -p 0 now outputs actually used port. Based on patch by https://hg.python.org/cpython/rev/ac7f3161aa53 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18905 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17293] uuid.getnode() MAC address on AIX
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17293 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21280] shutil.make_archive() with default root_dir parameter raises FileNotFoundError: [Errno 2] No such file or directory: ''
Roundup Robot added the comment: New changeset 8fa9097eadcb by Serhiy Storchaka in branch '3.4': Issue #21280: Fixed a bug in shutil.make_archive() when create an archive of https://hg.python.org/cpython/rev/8fa9097eadcb New changeset c605dcf9786f by Serhiy Storchaka in branch 'default': Issue #21280: Fixed a bug in shutil.make_archive() when create an archive of https://hg.python.org/cpython/rev/c605dcf9786f New changeset c7d45da654ee by Serhiy Storchaka in branch '2.7': Issue #21280: Fixed a bug in shutil.make_archive() when create an archive of https://hg.python.org/cpython/rev/c7d45da654ee -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21280 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18905] pydoc -p 0 says the server is available at localhost:0
Serhiy Storchaka added the comment: Thank you for your patch Wieland. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18905 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22314] pydoc.py: TypeError with a $LINES defined to anything
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22314 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18905] pydoc -p 0 says the server is available at localhost:0
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18905 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21280] shutil.make_archive() with default root_dir parameter raises FileNotFoundError: [Errno 2] No such file or directory: ''
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21280 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22922] asyncio: call_soon() should raise an exception if the event loop is closed
Torsten Landschoff added the comment: If anybody cares, here is a small patch to implement this. I ran the test suite and nothing else fails because of this change. However I wonder if this is a slippery slope to go: If call_soon raises after the event loop is closed than everything else that registers an action with the loop should raise as well. So for consistency this patch should grow quite a bit (unless create_connection, add_reader etc. already raise in this case). If the decision is to go this path I would also suggest to add a new exception type for Event loop is closed so that it can be caught in client code. YMMV -- keywords: +patch nosy: +torsten Added file: http://bugs.python.org/file37298/call_soon_after_close.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22922 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22959] http.client.HTTPSConnection checks hostname when SSL context has check_hostname==False
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +alex, christian.heimes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22959 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22922] asyncio: call_soon() should raise an exception if the event loop is closed
STINNER Victor added the comment: If the decision is to go this path I would also suggest to add a new exception type for Event loop is closed so that it can be caught in client code. I don't see the purpose of handling such exception. It's an obvious bug, you must not handle bugs :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22922 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22922] asyncio: call_soon() should raise an exception if the event loop is closed
Torsten Landschoff added the comment: If the decision is to go this path I would also suggest to add a new exception type for Event loop is closed so that it can be caught in client code. I don't see the purpose of handling such exception. It's an obvious bug, you must not handle bugs :) Unless you can't directly fix them. They might be inside a library and triggered during application shutdown. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22922 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22922] asyncio: call_soon() should raise an exception if the event loop is closed
STINNER Victor added the comment: They might be inside a library and triggered during application shutdown. In this case, fix the library. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22922 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17911] traceback: add a new thin class storing a traceback without storing local variables
Robert Collins added the comment: I'll put something together. -- nosy: +rbcollins ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17911 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16561] bdist_wininst installers don't use UAC, then crash
Steve Dower added the comment: The patch looks safe enough to me, if Benjamin is willing to consider it for 2.7.9? Seems fine for 3.4 and 3.5 too, if nobody is opposed (or wants to argue over the wording of the message). -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16561 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16561] bdist_wininst installers don't use UAC, then crash
Benjamin Peterson added the comment: I'm okay with it if Steve is. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16561 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16561] bdist_wininst installers don't use UAC, then crash
Roundup Robot added the comment: New changeset 1ac5aec658f6 by Benjamin Peterson in branch '2.7': give a nice message when installer is launched w/o admin rights (closes #16561) https://hg.python.org/cpython/rev/1ac5aec658f6 New changeset caee1eabba1e by Benjamin Peterson in branch '3.4': give a nice message when installer is launched w/o admin rights (closes #16561) https://hg.python.org/cpython/rev/caee1eabba1e New changeset ef5bbdc81796 by Benjamin Peterson in branch 'default': merge 3.4 (#16561) https://hg.python.org/cpython/rev/ef5bbdc81796 -- nosy: +python-dev resolution: - fixed stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16561 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22961] ctypes.WinError OSError
Changes by Simon Zack simonz...@gmail.com: -- components: +ctypes versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22961 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22961] ctypes.WinError OSError
New submission from Simon Zack: The ctypes.WinError function returns: OSError(None, descr, None, code) However OSError does not appear to allow None as a first argument, and converts it to 22 which is the EINVAL Invalid Argument error. This is rather confusing as there was no invalid argument errors in the code. I think the behaviour for one of WinError and OSError should be modified so that the handling of errno is more compatible. -- messages: 231796 nosy: simonzack priority: normal severity: normal status: open title: ctypes.WinError OSError ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22961 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com