[issue19176] DeprecationWarning for doctype() method when subclassing _elementtree.XMLParser

2015-03-31 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Also please apply inherit-doctype.v2.patch in 3.4 branch. -- ___ Python tracker ___ ___

[issue12319] [http.client] HTTPConnection.putrequest not support "chunked" Transfer-Encodings to send data

2015-03-31 Thread Demian Brecht
Demian Brecht added the comment: Agreed. However, I'm wondering if that should belong in a new issue geared towards further clarifying behaviour of request body types. The patch introduces the behaviour this specific issue was looking, with the largest change being that iterators may now resul

[issue23484] SemLock acquire() keyword arg 'blocking' is invalid

2015-03-31 Thread Davin Potts
Davin Potts added the comment: @berker: I would have said this should not be marked an enhancement as the proposed solution (in the patch) is to correct the errors in the documentation to accurately describe the current implemented behavior. Does that make sense? Whatever label we give it, do

[issue12319] [http.client] HTTPConnection.putrequest not support "chunked" Transfer-Encodings to send data

2015-03-31 Thread Martin Panter
Martin Panter added the comment: Perhaps you should make a table of some potential body object types, and figure out what the behaviour should be for request() with and without relevant headers, and endheaders() and send() with and without encode_chunked=True: * Add/don’t add Content-Length/Tr

[issue23835] configparser does not convert defaults to strings

2015-03-31 Thread James Tocknell
New submission from James Tocknell: ConfigParser(defaults={1:2.4}) and ConfigParser(defaults={"a":5.2}) cause an exception when configparser tries to perform string operations on 1 and 5.2. I didn't see it documented that defaults must only contain strings, and using ConfigParser['DEFAULT'] =

[issue12855] linebreak sequences should be better documented

2015-03-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6244a5dbaf84 by Benjamin Peterson in branch '3.4': document what exactly str.splitlines() splits on (closes #12855) https://hg.python.org/cpython/rev/6244a5dbaf84 New changeset 87af6deb5d26 by Benjamin Peterson in branch 'default': merge 3.4 (#12855

[issue23824] in-place addition of a shadowed class field

2015-03-31 Thread Jethro
Jethro added the comment: I'm not confused. In my first report, I have already explained why python behaves that way. My point is, this is not the right way to go. Because the very same self.tot in the in-place operation self.tot+=a is first resolved to be the class field, then an instance fie

[issue22931] cookies with square brackets in value

2015-03-31 Thread Demian Brecht
Changes by Demian Brecht : Added file: http://bugs.python.org/file38773/issue22931_2.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue22931] cookies with square brackets in value

2015-03-31 Thread Demian Brecht
Changes by Demian Brecht : -- stage: patch review -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue2211] Cookie.Morsel interface needs update

2015-03-31 Thread Demian Brecht
Demian Brecht added the comment: Set as closed, assuming there's no reason to keep this issue open. -- status: open -> closed ___ Python tracker ___ __

[issue23350] Content-length is incorrect when request body is a list or tuple

2015-03-31 Thread Demian Brecht
Demian Brecht added the comment: If #12319 is accepted, the implementation for Content-Length should also likely be migrated to this issue to be applied to maintenance branches as a bug fix. -- status: pending -> open ___ Python tracker

[issue23350] Content-length is incorrect when request body is a list or tuple

2015-03-31 Thread Demian Brecht
Demian Brecht added the comment: The computation of Content-Length has also undergone some refactoring as part of #12319. Setting this as pending until #12319 has been accepted or rejected. If rejected, the implementation specific to generating Content-Length should be migrated here.

[issue12319] [http.client] HTTPConnection.putrequest not support "chunked" Transfer-Encodings to send data

2015-03-31 Thread Demian Brecht
Changes by Demian Brecht : Added file: http://bugs.python.org/file38772/issue12319_4.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue23828] test_socket testCmsgTruncLen0 gets "received malformed or improperly-truncated ancillary data" warning under OS X

2015-03-31 Thread Ned Deily
Ned Deily added the comment: Original title: "test_socket fails under -Werror" These are long-time, normally non-fatal warnings when running test_socket on OS X with Python 3 independent of -Werror, introduced with the socket sendmsg() and recvmsg() feature in the changes for Issue6560 and a f

[issue16991] Add OrderedDict written in C

2015-03-31 Thread Eric Snow
Eric Snow added the comment: I expect Antoine is trying to limit the scope of the change, which makes sense. In this case, though, once (if?) the patch lands I plan on using it in the interpreter, so the C-API bits will be necessary. -- ___ Python

[issue23834] socketmodule.c: add sock_call() to fix how the timeout is recomputed

2015-03-31 Thread STINNER Victor
STINNER Victor added the comment: I chose to not modify yet socket.sendall(). I prefer to wait until this patch is merged to rework this method. Currently, this method never recomputes the timeout. -- ___ Python tracker

[issue23834] socketmodule.c: add sock_call() to fix how the timeout is recomputed

2015-03-31 Thread STINNER Victor
STINNER Victor added the comment: By the way, socket.sendto() has a bug: it stores the result of sendto() into a C int. It must store the result into a Py_ssize_t. sock_call.patch already contains a fix for this. Attached sendto_ssizet.patch is the fix for Python 2.7 and 3.4. UDP packets can

[issue23834] socketmodule.c: add sock_call() to fix how the timeout is recomputed

2015-03-31 Thread STINNER Victor
Changes by STINNER Victor : Added file: http://bugs.python.org/file38770/sock_call.patch ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue23834] socketmodule.c: add sock_call() to fix how the timeout is recomputed

2015-03-31 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file38769/sock_call.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue23834] socketmodule.c: add sock_call() to fix how the timeout is recomputed

2015-03-31 Thread STINNER Victor
New submission from STINNER Victor: With the PEP 475, the BEGIN_SELECT_LOOP and END_SELECT_LOOP macros of Modules/socketmodule.c became complex. Moreover, they are misused to handle EINTR. Most functions currently reimplemented their own loop inside the existing "select loop", and so the timeo

[issue19176] DeprecationWarning for doctype() method when subclassing _elementtree.XMLParser

2015-03-31 Thread Berker Peksag
Berker Peksag added the comment: doctype-remove.v3.patch LGTM. -- nosy: +berker.peksag stage: patch review -> commit review versions: -Python 3.4 ___ Python tracker ___

[issue23833] email.header.Header folding modifies headers that include semi-colons

2015-03-31 Thread Dan
New submission from Dan: When adding or replacing a header with email.header.Header, folding of long lines will add a space after any semi-colon encountered in the string. Setting maxlinelen to something longer than the string (no folding required), no spaces are added after semi-colons. ---

[issue19100] Use backslashreplace in pprint

2015-03-31 Thread Martin Panter
Martin Panter added the comment: Walter: the first line encoding with textio.errors is meant to handle the case where the output stream already has its own permissive error handler set. But anyway I was just trying to point out that it might be better to do the backslash escaping at the text l

[issue23814] argparse: Parser level defaults do not always override argument level defaults

2015-03-31 Thread paul j3
paul j3 added the comment: The handling of defaults is a bit complicated. Note that `set_defaults` both sets a `_defaults` attribute, and any actions with a matching `dest`. So it could change the `default` of 0, 1 or more actions. def set_defaults(self, **kwargs): self._defaults

[issue21526] Support new booleans in Tkinter

2015-03-31 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Ah, the NULL case is indeed tested just above. So the current code works correctly. -- resolution: -> fixed status: open -> closed ___ Python tracker __

[issue23779] imaplib authenticate raises TypeError if authenticator tries to abort

2015-03-31 Thread Craig Holmquist
Craig Holmquist added the comment: Okay, I attached another patch. The new version of the test returns success if the client's response is anything other than the abort line (*\r\n). It fails with the current version of imaplib, fails if I change _Authenticator.process to output a byte-string

[issue21526] Support new booleans in Tkinter

2015-03-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The case (value->typePtr == NULL) is tested above for purpose, so it is not a bug when one of type pointers is NULL. "booleanString" was added in 8.5, replacing "boolean", but in 8.6 it is not used. All boolean values in 8.6 are just integers 0 and 1. -

[issue21526] Support new booleans in Tkinter

2015-03-31 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: I'm not sure that this change is correct. I have Tcl version 8.6 installed, and I checked that "app->BooleanType" is NULL. Fortunately value->typePtr is probably never NULL, but I think the comparison should be skipped in this case. Where did you see thi

[issue23832] pdb's `longlist` shows only decorator if that one contains a lambda

2015-03-31 Thread Gerrit Holl
New submission from Gerrit Holl: When a decorater contains a `lambda` declaration, using the pdb command `longlist` will show only the definition of the decorator. The definition of the function itself is not shown: cat mini.py #!/usr/bin/python3.4 def foo(x, y=None): return x @foo(fo

[issue23618] PEP 475: handle EINTR in the socket module (connect)

2015-03-31 Thread STINNER Victor
Changes by STINNER Victor : Added file: http://bugs.python.org/file38767/connect_eintr-4.patch ___ Python tracker ___ ___ Python-bugs-list mai

[issue23618] PEP 475: handle EINTR in the socket module (connect)

2015-03-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7ed567ad8b4c by Victor Stinner in branch 'default': Issue #23618: Enhance EINTR handling in socket.connect() https://hg.python.org/cpython/rev/7ed567ad8b4c -- ___ Python tracker

[issue23821] test_pdb fails under -O

2015-03-31 Thread Xavier de Gaye
Xavier de Gaye added the comment: FWIW looks good to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue23618] PEP 475: handle EINTR in the socket module (connect)

2015-03-31 Thread STINNER Victor
STINNER Victor added the comment: connect_eintr-4.patch: Updated patch after all my changes to refactor socket.connect() (which is now almost a rewrite from scratch!). -- Added file: http://bugs.python.org/file38766/connect_eintr-4.patch ___ Python t

[issue23831] tkinter canvas lacks of moveto method.

2015-03-31 Thread mps
New submission from mps: I apologize if it has already been reported but I was unable to find similar issue reported using "search". Maybe just add: def moveto(self, tagOrId, xPos, yPos): """Move the items given by tagOrId in the canvas coordinate space so that the first c

[issue23618] PEP 475: handle EINTR in the socket module (connect)

2015-03-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset d9374864d4a9 by Victor Stinner in branch 'default': Issue #23618: Cleanup internal_connect() in socketmodule.c https://hg.python.org/cpython/rev/d9374864d4a9 New changeset 4fad2b9fc4e6 by Victor Stinner in branch 'default': Issue #23618: Fix EINTR h

[issue23830] Add AF_IUCV support to sockets

2015-03-31 Thread Neale Ferguson
New submission from Neale Ferguson: IUCV is a hypervisor mediated communications method for z/VM guest virtual machines. Linux on z Systems (aka s390x) has supported this via the use of AF_IUCV sockets for many years (added to kernel Feb 2007). This suggested patch adds support to Python 2.7.9

[issue23555] behavioural change in argparse set_defaults in python 2.7.9

2015-03-31 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> duplicate stage: -> resolved superseder: -> argparse silently ignores arguments ___ Python tracker ___ ___

[issue19100] Use backslashreplace in pprint

2015-03-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > What is the reasoning behind the DecodeWriter case, where the original stream > has an interesting encoding, but “buffer” is None? Are there any real-world > cases like that? sys.stdout and sys.stderr in IDLE. -- _

[issue23618] PEP 475: handle EINTR in the socket module (connect)

2015-03-31 Thread STINNER Victor
STINNER Victor added the comment: Le mardi 31 mars 2015, Roundup Robot a écrit : > > New changeset c59d81b802f8 by Victor Stinner in branch 'default': > Issue #23618: Refactor internal_connect() > https://hg.python.org/cpython/rev/c59d81b802f8 > Oh I forgot to add an #ifdef for socklen_t. I did

[issue16991] Add OrderedDict written in C

2015-03-31 Thread Stefan Behnel
Stefan Behnel added the comment: > do not add a C-API what speaks against it? -- nosy: +scoder ___ Python tracker ___ ___ Python-bugs

[issue18473] some objects pickled by Python 3.x are not unpicklable in Python 2.x because of incorrect REVERSE_IMPORT_MAPPING

2015-03-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Why do you catch AttributeError on import? Because importing multiprocessing.popen_fork raises AttributeError on Windows. -- ___ Python tracker ___

[issue23812] asyncio.Queue.put_nowait(), followed get() task cancellation leads to item being lost

2015-03-31 Thread Guido van Rossum
Guido van Rossum added the comment: I'm sorry, I don't have time to review this (and it's subtle enough that I don't want to approve it without understanding). Maybe Victor understands? -- ___ Python tracker

[issue23827] test.test_multiprocessing_spawn fails under -Werror

2015-03-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a duplicate of issue21779. -- nosy: +serhiy.storchaka resolution: -> duplicate stage: needs patch -> resolved status: open -> closed superseder: -> test_multiprocessing_spawn fails when ran with -Werror __

[issue23829] test_warnings fails under -Werror

2015-03-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a duplicate of issue23027. -- nosy: +serhiy.storchaka resolution: -> duplicate stage: needs patch -> resolved status: open -> closed superseder: -> test_warnings fails with -Werror ___ Python tracker

[issue18473] some objects pickled by Python 3.x are not unpicklable in Python 2.x because of incorrect REVERSE_IMPORT_MAPPING

2015-03-31 Thread STINNER Victor
STINNER Victor added the comment: Le mardi 31 mars 2015, Roundup Robot a écrit : > > Roundup Robot added the comment: > > New changeset 5c5eb374e296 by Serhiy Storchaka in branch '3.4': > Issue #18473: Fixed pickle compatibility tests for optional modules. > https://hg.python.org/cpython/rev/5c

[issue23826] test_enum fails under -OO

2015-03-31 Thread Ethan Furman
Changes by Ethan Furman : -- assignee: -> ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue23829] test_warnings fails under -Werror

2015-03-31 Thread Brett Cannon
New submission from Brett Cannon: == ERROR: test_warning_classes (__main__.CWarnTests) -- Traceback (most recent call last): File "/Users/bcannon/Repositories/

[issue23828] test_socket fails under -Werror

2015-03-31 Thread Brett Cannon
New submission from Brett Cannon: == ERROR: testCmsgTruncLen0 (__main__.RecvmsgSCMRightsStreamTest) -- Traceback (most recent call last): File "/Users/bcannon/

[issue23602] Implement __format__ for Fraction

2015-03-31 Thread Stefan Krah
Stefan Krah added the comment: > It wouldn't be too bad if Py and C version of Decimal.__format__ had > same interface. What do you think? Let's discuss that in a separate issue. [DefaultContext] > I don't understand what do you mean with this. Is this something that > I'm doing wrong in my pa

[issue23826] test_enum fails under -OO

2015-03-31 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue23827] test.test_multiprocessing_spawn fails under -Werror

2015-03-31 Thread Brett Cannon
New submission from Brett Cannon: == FAIL: test_sys_exit (__main__.WithProcessesTestSubclassingProcess) -- Traceback (most recent call last): File "/Users/bca

[issue23824] in-place addition of a shadowed class field

2015-03-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> not a bug status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue23611] Pickle nested names with protocols < 4

2015-03-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue18473] some objects pickled by Python 3.x are not unpicklable in Python 2.x because of incorrect REVERSE_IMPORT_MAPPING

2015-03-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue23360] Content-Type when sending data with urlopen()

2015-03-31 Thread Demian Brecht
Changes by Demian Brecht : -- nosy: +demian.brecht ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue23826] test_enum fails under -OO

2015-03-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch. -- keywords: +patch nosy: +serhiy.storchaka stage: needs patch -> patch review Added file: http://bugs.python.org/file38764/issue23826.patch ___ Python tracker _

[issue23821] test_pdb fails under -O

2015-03-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch. -- keywords: +patch Added file: http://bugs.python.org/file38763/issue23821.patch ___ Python tracker ___

[issue23821] test_pdb fails under -O

2015-03-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue23826] test_enum fails under -OO

2015-03-31 Thread Brett Cannon
New submission from Brett Cannon: == FAIL: test_pydoc (__main__.TestStdLib) -- Traceback (most recent call last): File "/Users/bcannon/Repositories/cpython/def

[issue23821] test_pdb fails under -O

2015-03-31 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Tests were added in issue16596. -- nosy: +asvetlov, gvanrossum, serhiy.storchaka, xdegaye ___ Python tracker ___ ___

[issue23825] test_idle fails under -OO

2015-03-31 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Here is a patch. -- keywords: +patch nosy: +serhiy.storchaka stage: needs patch -> patch review Added file: http://bugs.python.org/file38762/issue23825.patch ___ Python tracker

[issue23820] test_importlib fails under -O

2015-03-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch. -- keywords: +patch nosy: +serhiy.storchaka stage: needs patch -> patch review Added file: http://bugs.python.org/file38761/issue23820.patch ___ Python tracker _

[issue23793] Support __add__, __mul__, and __imul__ for deques.

2015-03-31 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue23793] Support __add__, __mul__, and __imul__ for deques.

2015-03-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset b75160d24b7b by Raymond Hettinger in branch 'default': Issue 23793: Add deque support for __add__(), __mul__(), and __imul__(). https://hg.python.org/cpython/rev/b75160d24b7b -- nosy: +python-dev ___ Pyt

[issue23822] test_py_compile fails under -O

2015-03-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch. -- keywords: +patch nosy: +serhiy.storchaka stage: needs patch -> patch review Added file: http://bugs.python.org/file38760/issue23822.patch ___ Python tracker _

[issue23793] Support __add__, __mul__, and __imul__ for deques.

2015-03-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: I don't see any technical reason not to proceed. Just because an unusual combination of parameters feels odd to you doesn't make it wrong. It is no different than (somelist * n)[-maxlen:]. -- ___ Python tracker

[issue23824] in-place addition of a shadowed class field

2015-03-31 Thread R. David Murray
R. David Murray added the comment: Ah, now I understand your confusion. Class variables are special. The first time you reference a name on an instance that is not currently defined on that instance but is defined on the class, the interpreter gets the object pointer from the class reference

[issue23823] "Generalization" misused in deque docs

2015-03-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: Sorry, I disagree. -- nosy: +rhettinger resolution: -> not a bug status: open -> closed ___ Python tracker ___ _

[issue23824] in-place addition of a shadowed class field

2015-03-31 Thread Jethro
Changes by Jethro : -- resolution: not a bug -> status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue22117] Rewrite pytime.h to work on nanoseconds

2015-03-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset dbc92a254173 by Victor Stinner in branch 'default': Issue #22117: Fix integer overflow check in socket_parse_timeout() on Windows https://hg.python.org/cpython/rev/dbc92a254173 -- ___ Python tracker

[issue23618] PEP 475: handle EINTR in the socket module (connect)

2015-03-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset daf3d2a717e5 by Victor Stinner in branch 'default': Issue #23618: Refactor internal_connect() https://hg.python.org/cpython/rev/daf3d2a717e5 New changeset c59d81b802f8 by Victor Stinner in branch 'default': Issue #23618: Refactor internal_connect()

[issue23824] in-place addition of a shadowed class field

2015-03-31 Thread Jethro
Jethro added the comment: I believe Mr. Murray somehow missed the point. My point is that the very same self.tot is interpreted as two different things: instance field and class field. In another analogous case, the interpreter would be more consistent: >>> tot = 0 >>> def addtot(x): tot+=x >>

[issue23818] test_enum failing test_class_nested_enum_and_pickle_protocol_four

2015-03-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is related to issue23611 and fixed by f78b9f700d45. -- nosy: +serhiy.storchaka resolution: -> out of date stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue23825] test_idle fails under -OO

2015-03-31 Thread Brett Cannon
Changes by Brett Cannon : -- components: IDLE nosy: brett.cannon priority: normal severity: normal stage: needs patch status: open title: test_idle fails under -OO versions: Python 3.5 ___ Python tracker __

[issue23824] in-place addition of a shadowed class field

2015-03-31 Thread R. David Murray
R. David Murray added the comment: Yep, this is the way it works. When a class attribute name is referenced on an instance object, you are referencing the object pointed to by the class name. What happens next depends on what kind of object you have, and what kind of operation you perform.

[issue23824] in-place addition of a shadowed class field

2015-03-31 Thread Jethro
New submission from Jethro: Look at this simple code: class A: tot = 0 def __init__(self, a): self.tot += a x = A(3) print(x.tot, A.tot) Result from print: 3 0 What the interpreter did was that it first resolved self.tot to be the class field

[issue18473] some objects pickled by Python 3.x are not unpicklable in Python 2.x because of incorrect REVERSE_IMPORT_MAPPING

2015-03-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Fixed import errors. A second kind of errors was related to issue23611. -- ___ Python tracker ___

[issue18473] some objects pickled by Python 3.x are not unpicklable in Python 2.x because of incorrect REVERSE_IMPORT_MAPPING

2015-03-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5c5eb374e296 by Serhiy Storchaka in branch '3.4': Issue #18473: Fixed pickle compatibility tests for optional modules. https://hg.python.org/cpython/rev/5c5eb374e296 New changeset 29b2b2d8e36f by Serhiy Storchaka in branch 'default': Issue #18473: F

[issue23611] Pickle nested names with protocols < 4

2015-03-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset f78b9f700d45 by Serhiy Storchaka in branch 'default': Issue #23611: Fixed enums pickling tests. Now all picklings work with all https://hg.python.org/cpython/rev/f78b9f700d45 -- ___ Python tracker

[issue23823] "Generalization" misused in deque docs

2015-03-31 Thread rschwieb
New submission from rschwieb: This sentence in the deque docs (https://docs.python.org/2/library/collections.html#collections.deque) is not accurate: "Deques are a generalization of stacks and queues ..." Deques are a _specialization_ of stacks and queues. Every deque is-a stack and is-a qu

[issue23817] Consider FreeBSD like any other OS in SOVERSION

2015-03-31 Thread bapt
bapt added the comment: I do not think it is worth changing python 2.7 or python 3.4 given the fact that the .so.1 symlink is not created (which imho it should be a good idea to create but let's go step by step) Let's just do it for next python --

[issue23817] Consider FreeBSD like any other OS in SOVERSION

2015-03-31 Thread bapt
bapt added the comment: Provide more information: Here is a description of the problem with the FreeBSD ldconfig(1) problem and why it was a problem with libpython.so.* https://wiki.freebsd.org/ports/fix_lib_depends Here is the commit that adds the new methode for ports to lookup for libraries

[issue23822] test_py_compile fails under -O

2015-03-31 Thread Brett Cannon
New submission from Brett Cannon: == FAIL: test_double_dot_no_clobber (__main__.PyCompileTests) -- Traceback (most recent call last): File "/Users/bcannon/Rep

[issue23821] test_pdb fails under -O

2015-03-31 Thread Brett Cannon
Changes by Brett Cannon : -- components: Tests nosy: brett.cannon priority: normal severity: normal stage: needs patch status: open title: test_pdb fails under -O versions: Python 3.5 ___ Python tracker ___

[issue23819] test_asyncio fails when run under -O

2015-03-31 Thread STINNER Victor
STINNER Victor added the comment: -O disables assertions, and asyncio has a ton of assertions. Some tests maybe rely on them? I guess that they are real bugs (assert must be replaced with a regular if+raise) in the middle of the failures. -- ___ Pyt

[issue23820] test_importlib fails under -O

2015-03-31 Thread Brett Cannon
New submission from Brett Cannon: == FAIL: test_cached_sourceless (test.test_importlib.test_spec.Frozen_ModuleSpecTests) -- Traceback (most recent call last):

[issue23819] test_asyncio fails when run under -O

2015-03-31 Thread Brett Cannon
New submission from Brett Cannon: Ton of failures along the lines of: == ERROR: test_ctor (test.test_asyncio.test_unix_events.UnixReadPipeTransportTests) -- Tra

[issue23817] Consider FreeBSD like any other OS in SOVERSION

2015-03-31 Thread STINNER Victor
STINNER Victor added the comment: > koobs set versions: + Python 2.7, Python 3.4, Python 3.5 Do you seriously consider to modify Python 2.7 and 3.4? Can it break the backward compatibility? I don't know how the SOVERSION thing is used. -- ___ P

[issue18378] locale.getdefaultlocale() fails on Mac OS X with default language set to English

2015-03-31 Thread Ronald Oussoren
Ronald Oussoren added the comment: 1) I agree with Ned that the OSX behavior is not broken, it is different but within spec. Python makes assumption about the format of locale names that aren't universally valid. 2) We should be careful in using CFLocale. Those APIs are part of CoreFoundation

[issue23779] imaplib authenticate raises TypeError if authenticator tries to abort

2015-03-31 Thread R. David Murray
R. David Murray added the comment: The patch looks good to me, except that I think it would be better if the test verified that the '*' response is received by the server (perhaps return OK if we don't get it?) -- components: +email nosy: +barry, r.david.murray stage: test needed -> pa

[issue23818] test_enum failing test_class_nested_enum_and_pickle_protocol_four

2015-03-31 Thread Brett Cannon
New submission from Brett Cannon: test test_enum failed -- Traceback (most recent call last): File "/Users/bcannon/Repositories/cpython/default/Lib/test/test_enum.py", line 580, in test_class_nested_enum_and_pickle_protocol_four protocol=(0, 3)) File "/Users/bcannon/Repositories/cpython/

[issue23817] Consider FreeBSD like any other OS in SOVERSION

2015-03-31 Thread bapt
bapt added the comment: Adding a patch on configure.ac (I bet configure should not be patched but regenerated) Considering the comment here: http://bugs.python.org/issue1044395#msg47064 about ldconfig(1) the output of ldconfig(1) is buggy in that regard, and the ports tree does not depends on

[issue23817] Consider FreeBSD like any other OS in SOVERSION

2015-03-31 Thread koobs
koobs added the comment: +1 -- stage: -> needs patch type: -> enhancement versions: +Python 2.7, Python 3.4, Python 3.5 ___ Python tracker ___ _

[issue19660] decorator syntax: allow testlist instead of just dotted_name

2015-03-31 Thread Ximin Luo
Ximin Luo added the comment: Yes, please get rid of this restriction. It's trivial to get around - you don't even need to define your own "pass-through", one already exists in the standard library: >>> @(lambda: [lambda x: x][0])() File "", line 1 @(lambda: [lambda x: x][0])() ^ Syn

[issue23817] Consider FreeBSD like any other OS in SOVERSION

2015-03-31 Thread STINNER Victor
STINNER Victor added the comment: > https://hg.python.org/cpython/file/47b2d1ff9743/configure.ac#l963 This command was added by the changeset 6fc10306bf31. -- nosy: +haypo, koobs ___ Python tracker ___

[issue23817] Consider FreeBSD like any other OS in SOVERSION

2015-03-31 Thread bapt
New submission from bapt: In the configuration script: https://hg.python.org/cpython/file/47b2d1ff9743/configure.ac#l963 There is a special treatment done for FreeBSD, which is not needed, FreeBSD is perfectly fine with multiple digit in soversion. -- components: Build messages: 239695

[issue10395] new os.path function to extract common prefix based on path components

2015-03-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset ec6c812fbc1f by Serhiy Storchaka in branch 'default': Issue #10395: Added os.path.commonpath(). Implemented in posixpath and ntpath. https://hg.python.org/cpython/rev/ec6c812fbc1f -- nosy: +python-dev __

[issue23618] PEP 475: handle EINTR in the socket module (connect)

2015-03-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 47b2d1ff9743 by Victor Stinner in branch 'default': Issue #23618: Fix internal_connect_select() https://hg.python.org/cpython/rev/47b2d1ff9743 -- ___ Python tracker __

[issue19100] Use backslashreplace in pprint

2015-03-31 Thread Walter Dörwald
Walter Dörwald added the comment: The linked code at https://github.com/vadmium/python-iview/commit/68b0559 seems strange to me: try: text.encode(encoding, textio.errors or "strict") except UnicodeEncodeError: text = text.encode(encoding, errors).decode(encoding) ret

[issue10395] new os.path function to extract common prefix based on path components

2015-03-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The patch only adds a reference to commonpath() in commonprefix() documentation. The note about invalid paths already was here. -- ___ Python tracker ___

  1   2   >