[issue22961] ctypes.WinError & OSError

2014-11-27 Thread Simon Zack
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 ar

[issue22961] ctypes.WinError & OSError

2014-11-27 Thread Simon Zack
Changes by Simon Zack : -- components: +ctypes versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue16561] bdist_wininst installers don't use UAC, then crash

2014-11-27 Thread Roundup Robot
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

[issue16561] bdist_wininst installers don't use UAC, then crash

2014-11-27 Thread Benjamin Peterson
Benjamin Peterson added the comment: I'm okay with it if Steve is. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue16561] bdist_wininst installers don't use UAC, then crash

2014-11-27 Thread Steve Dower
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 ___

[issue17911] traceback: add a new thin class storing a traceback without storing local variables

2014-11-27 Thread Robert Collins
Robert Collins added the comment: I'll put something together. -- nosy: +rbcollins ___ Python tracker ___ ___ Python-bugs-list mailing

[issue22922] asyncio: call_soon() should raise an exception if the event loop is closed

2014-11-27 Thread STINNER Victor
STINNER Victor added the comment: > They might be inside a library and triggered during application shutdown. In this case, fix the library. -- ___ Python tracker ___ __

[issue22922] asyncio: call_soon() should raise an exception if the event loop is closed

2014-11-27 Thread Torsten Landschoff
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 hand

[issue22922] asyncio: call_soon() should raise an exception if the event loop is closed

2014-11-27 Thread STINNER Victor
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 :)

[issue22959] http.client.HTTPSConnection checks hostname when SSL context has check_hostname==False

2014-11-27 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +alex, christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue22922] asyncio: call_soon() should raise an exception if the event loop is closed

2014-11-27 Thread Torsten Landschoff
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

[issue21280] shutil.make_archive() with default "root_dir" parameter raises FileNotFoundError: [Errno 2] No such file or directory: ''

2014-11-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue18905] pydoc -p 0 says the server is available at localhost:0

2014-11-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue22314] pydoc.py: TypeError with a $LINES defined to anything

2014-11-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue18905] pydoc -p 0 says the server is available at localhost:0

2014-11-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your patch Wieland. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue21280] shutil.make_archive() with default "root_dir" parameter raises FileNotFoundError: [Errno 2] No such file or directory: ''

2014-11-27 Thread Roundup Robot
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 #

[issue17293] uuid.getnode() MAC address on AIX

2014-11-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue22314] pydoc.py: TypeError with a $LINES defined to anything

2014-11-27 Thread Roundup Robot
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:

[issue18905] pydoc -p 0 says the server is available at localhost:0

2014-11-27 Thread Roundup Robot
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 ___ Pyth

[issue16561] bdist_wininst installers don't use UAC, then crash

2014-11-27 Thread Christian Boos
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

[issue22915] sax.parser cannot get xml data from a subprocess pipe

2014-11-27 Thread Jocelyn
Jocelyn added the comment: Ok, I understand your tests now. Thanks for the fixes ! -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue10590] Parameter type error for xml.sax.parseString(string, ...)

2014-11-27 Thread Serhiy Storchaka
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 ___ ___

[issue22915] sax.parser cannot get xml data from a subprocess pipe

2014-11-27 Thread Serhiy Storchaka
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 _

[issue22906] PEP 479: Change StopIteration handling inside generators

2014-11-27 Thread Guido van Rossum
Guido van Rossum added the comment: Here's a doc patch for itertools. -- Added file: http://bugs.python.org/file37297/itertoolsdoc.diff ___ Python tracker ___ ___

[issue22960] xmlrpc.client.ServerProxy() should accept a custom SSL context parameter

2014-11-27 Thread Alex Gaynor
Changes by Alex Gaynor : -- nosy: +alex, christian.heimes, dstufft, giampaolo.rodola, janssen, pitrou versions: +Python 2.7 ___ Python tracker ___ ___

[issue22960] xmlrpc.client.ServerProxy() should accept a custom SSL context parameter

2014-11-27 Thread zodalahtathi
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

[issue22915] sax.parser cannot get xml data from a subprocess pipe

2014-11-27 Thread Roundup Robot
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 #22

[issue22666] email.Header no encoding of unicode strings containing newlines

2014-11-27 Thread Flavio Grossi
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'

[issue22819] Python3.4: xml.sax.saxutils.XMLGenerator.__init__ fails with pythonw.exe

2014-11-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue22959] http.client.HTTPSConnection checks hostname when SSL context has check_hostname==False

2014-11-27 Thread zodalahtathi
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 im

[issue13212] json library is decoding/encoding when it should not

2014-11-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> wont fix stage: needs patch -> resolved status: open -> closed ___ Python tracker ___ ___

[issue22955] Pickling of methodcaller and attrgetter

2014-11-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21514] update json module docs in light of RFC 7159 & ECMA-404

2014-11-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Chris for your patch. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue21514] update json module docs in light of RFC 7159 & ECMA-404

2014-11-27 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue22666] email.Header no encoding of unicode strings containing newlines

2014-11-27 Thread R. David Murray
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 le

[issue13212] json library is decoding/encoding when it should not

2014-11-27 Thread Chris Rebert
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

[issue21514] update json module docs in light of RFC 7159 & ECMA-404

2014-11-27 Thread Chris Rebert
Chris Rebert added the comment: Thanks Serhiy! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue21514] update json module docs in light of RFC 7159 & ECMA-404

2014-11-27 Thread Roundup Robot
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 #215

[issue22609] Constructors of some mapping classes don't accept `self` keyword argument

2014-11-27 Thread Roundup Robot
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

[issue22955] Pickling of methodcaller and attrgetter

2014-11-27 Thread Serhiy Storchaka
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

[issue22958] Constructors of weakref mapping classes don't accept "self" and "dict" keyword arguments

2014-11-27 Thread Serhiy Storchaka
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.WeakValueDictiona

[issue22609] Constructors of some mapping classes don't accept `self` keyword argument

2014-11-27 Thread Serhiy Storchaka
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. --

[issue22609] Constructors of some mapping classes don't accept `self` keyword argument

2014-11-27 Thread Roundup Robot
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

[issue22957] Multi-index Containers Library

2014-11-27 Thread Eric V. Smith
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: ope

[issue22609] Constructors of some mapping classes don't accept `self` keyword argument

2014-11-27 Thread Roundup Robot
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

[issue22924] Use of deprecated cgi.escape

2014-11-27 Thread Serhiy Storchaka
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. --

[issue22955] Pickling of methodcaller and attrgetter

2014-11-27 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +pitrou, serhiy.storchaka type: -> enhancement versions: +Python 3.5 -Python 3.4 ___ Python tracker ___

[issue22956] Improved support for prepared SQL statements

2014-11-27 Thread Markus Elfring
Changes by Markus Elfring : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue22957] Multi-index Containers Library

2014-11-27 Thread Markus Elfring
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 sim

[issue22956] Improved support for prepared SQL statements

2014-11-27 Thread Markus Elfring
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" f

[issue18032] Optimization for set/frozenset.issubset()

2014-11-27 Thread Bruno Cauet
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

[issue20530] Change the text signature format (again) to be more robust

2014-11-27 Thread Larry Hastings
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

[issue22951] unexpected return from float.__repr__() for inf, -inf, nan

2014-11-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Workaround: >>> eval('inf', {'inf': float('inf')}) inf -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue22951] unexpected return from float.__repr__() for inf, -inf, nan

2014-11-27 Thread Mark Dickinson
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

[issue22951] unexpected return from float.__repr__() for inf, -inf, nan

2014-11-27 Thread Mark Dickinson
Mark Dickinson added the comment: Previously discussed here: http://bugs.python.org/issue1732212 -- nosy: +mark.dickinson ___ Python tracker ___ _

[issue22799] wrong time.timezone

2014-11-27 Thread Akira Li
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 ___ __