[issue22928] HTTP header injection in urrlib2/urllib/httplib/http.client

2015-03-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'll return previous implementation of header value regex. All other LGTM. -- stage: patch review -> commit review ___ Python tracker ___

[issue23640] Enum.from_bytes() is broken

2015-03-12 Thread Bruno Cauet
Bruno Cauet added the comment: Hi, I feel like this behaviour does not only affect IntEnum & related but anything that inherits from int. Example: >>> class foo(int): ... def __init__(self, value, base=10): ... if value == 2: ... raise ValueError("not that!!") ...

[issue23640] Enum.from_bytes() is broken

2015-03-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Not all classmethods are constructors. I see two solutions: 1) Override from_bytes() in IntEnum and every int subclass that needs this. 2) Change int.from_bytes() to call __new__. -- ___ Python tracker

[issue23615] Reloading tokenize breaks tokenize.open()

2015-03-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The same issue exists in Lib/bz2.py, Lib/tarfile.py, Tools/freeze/bkfile.py. May be write a code as from builtins import open as _builtin_open ? -- nosy: +brett.cannon, eric.snow, ncoghlan, serhiy.storchaka type: -> behavior __

[issue23615] Reloading tokenize breaks tokenize.open()

2015-03-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. Do you want to write a patch for other cases Thomas? -- ___ Python tracker ___ ___ Python-bu

[issue23630] support multiple hosts in create_server/start_server

2015-03-12 Thread Sebastien Bourdeauducq
New submission from Sebastien Bourdeauducq: I would like to be able to bind asyncio TCP servers to an arbitrary list of hosts, not just either one host or all interfaces. I propose that the host parameter of create_server and start_server can be a list of strings that describes each host. Sock

[issue7503] multiprocessing AuthenticationError "digest sent was rejected" when pickling proxy

2015-03-12 Thread Davin Potts
Davin Potts added the comment: Per Richard's post from 1 year ago where he offers both explanation and an example, ultimately concluding that things are working as intended, and because there have been no objections or requests for clarification in the past year, closing this and marking it as

[issue23630] support multiple hosts in create_server/start_server

2015-03-12 Thread Guido van Rossum
Guido van Rossum added the comment: Could use a test. Hopefully Victor can do a thorough review. On Tue, Mar 10, 2015 at 12:20 PM, Sebastien Bourdeauducq < rep...@bugs.python.org> wrote: > > Sebastien Bourdeauducq added the comment: > > See attached. > > -- > keywords: +patch > Added fi

[issue22028] Python 3.4.1 Installer ended prematurely (Windows msi)

2015-03-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset bf2016a1911f by Steve Dower in branch '3.4': Issue #22028: Ensure mimetypes will not open registry keys with embedded nulls https://hg.python.org/cpython/rev/bf2016a1911f New changeset 6ccade563bf7 by Steve Dower in branch 'default': Issue #22028: E

[issue23605] Use the new os.scandir() function in os.walk()

2015-03-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1a972140ab62 by Victor Stinner in branch 'default': Issue #23605: os.walk() doesn't need to call entry.is_symlink() if followlinks https://hg.python.org/cpython/rev/1a972140ab62 -- ___ Python tracker

[issue2292] Missing *-unpacking generalizations

2015-03-12 Thread Neil Girdhar
Changes by Neil Girdhar : Added file: http://bugs.python.org/file38429/starunpack37.diff ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue23629] Default __sizeof__ is wrong for var-sized objects

2015-03-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset f9afa4f87570 by Antoine Pitrou in branch '3.4': Issue #23629: Fix the default __sizeof__ implementation for variable-sized objects. https://hg.python.org/cpython/rev/f9afa4f87570 New changeset 9994e0172a0c by Antoine Pitrou in branch 'default': Iss

[issue23629] Default __sizeof__ is wrong for var-sized objects

2015-03-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset dbd48b22b477 by Antoine Pitrou in branch '2.7': Issue #23629: Fix the default __sizeof__ implementation for variable-sized objects. https://hg.python.org/cpython/rev/dbd48b22b477 -- ___ Python tracker <

[issue23642] Interaction of ModuleSpec and C Extension Modules

2015-03-12 Thread David Beazley
David Beazley added the comment: Note: Might be related to Issue 19713. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue23566] RFE: faulthandler.register() should support file descriptors

2015-03-12 Thread Wei Wu
Wei Wu added the comment: Updated the patch and addressed the previous review comments: * Fixed the hasattr problem * Added a default value None for filename in check_dump_traceback * Reverted unnecessary code change in check_dump_traceback_later * Added a new paragraph to the enable, dump_t

[issue23192] Generator return value ignored in lambda function

2015-03-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Committed with non-dis test. Thank you for your contribution Bruno. -- resolution: -> fixed stage: test needed -> resolved status: open -> closed ___ Python tracker

[issue23605] Use the new os.scandir() function in os.walk()

2015-03-12 Thread STINNER Victor
STINNER Victor added the comment: > 1) Serhiy's point about not needing to build the symlinks set when > followlinks is True is a good one, because it'll never get used. Just a "if > not followlinks: ..." around that try/except would do it. Though this is a > small optimization, as I expect 95

[issue22928] HTTP header injection in urrlib2/urllib/httplib/http.client

2015-03-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1c45047c5102 by Serhiy Storchaka in branch '2.7': Issue #22928: Disabled HTTP header injections in httplib. https://hg.python.org/cpython/rev/1c45047c5102 New changeset bf3e1c9b80e9 by Serhiy Storchaka in branch '3.4': Issue #22928: Disabled HTTP he

[issue22928] HTTP header injection in urrlib2/urllib/httplib/http.client

2015-03-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Added new tests and tweaked regexpes. Thank you for your contribution Demian. Now we can start long-standing deprecation process for conforming to RFC. -- resolution: -> fixed stage: commit review -> resolved status: open -> closed versions: +Python

[issue23643] Segmentation Fault with Large Simple Function

2015-03-12 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: So the recursion crash was fixed in python3, but it's still one of the limits of the Python AST compiler. I suggest to replace your long expression by a list: exprs = [(1-a36)*(a37)*(1-a41), (a22)*(a33)*(1-a23), ...] return sum(exprs) ...but this func

[issue17322] urllib.request add_header() currently allows trailing spaces (and other weird stuff)

2015-03-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Trailing spaces, newlines and like were disabled in put_header() in issue22928. Now we can start long-standing deprecation process for headers that don't conform RFC 7230. -- nosy: +serhiy.storchaka stage: commit review -> needs patch versions: +Pyth

[issue23640] Enum.from_bytes() is broken

2015-03-12 Thread Bruno Cauet
Bruno Cauet added the comment: I took the liberty of putting together a small patch which makes from_bytes() call & return type(value_found) if type != long (Serhiy's & my 2nd solution). Ethan: in that case, type.from_bytes() would always return an int, and not resort to build-a-pseudo-int, ri

[issue23605] Use the new os.scandir() function in os.walk()

2015-03-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset c06ebb57d4ed by Victor Stinner in branch '3.4': Issue #23605: Refactor os.walk() tests to also run them on os.fwalk() https://hg.python.org/cpython/rev/c06ebb57d4ed -- ___ Python tracker

[issue23605] Use the new os.scandir() function in os.walk()

2015-03-12 Thread STINNER Victor
STINNER Victor added the comment: walk_added_symlink_to_dir-2.patch: Ok, here is a new patch, now with tests. Without the fix on os.walk(), WalkTests.test_add_dir_symlink() fails, whereas FwalkTests.test_add_dir_symlink() pass. -- Added file: http://bugs.python.org/file38451/walk_added

[issue23633] Improve py launcher help, index, and doc

2015-03-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: C:\Users\Terry>notepad %localappdata% "Access denied" "Alongside the EXE" is not fine. I only knew to look in C:/Windows because I have using DOS/Windoes since the early 80s (and there is still much that I do not know, like 'icacls'), and I believe there was

[issue23605] Use the new os.scandir() function in os.walk()

2015-03-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Happy? :-) No, it doesn't fix my example. :-( I see following possibilities: 1. Partially revert the patch and always call path.islink(). I will not kill all the benefit of using os.scandir(), because there is a benefit from avoiding path.isdir() and in

[issue23605] Use the new os.scandir() function in os.walk()

2015-03-12 Thread STINNER Victor
STINNER Victor added the comment: And now something completly differenet: fast_bottom-up.patch, fast bottom-up, but "slow" top-down. In bottom-up mode (topdown=False), use entry.path and entry.is_symlink() => optimization compared to Python 3.4 (avoid one call to os.stat()). In top-down mode

[issue23638] shutil.copytree makedirs exception

2015-03-12 Thread yuriy_levchenko
yuriy_levchenko added the comment: Thanks for the clarifications. Yes parameter will be a good solution! -- ___ Python tracker ___ ___

[issue23638] shutil.copytree makedirs exception

2015-03-12 Thread yuriy_levchenko
Changes by yuriy_levchenko : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue23632] memoryview doesn't allow tuple-indexing

2015-03-12 Thread R. David Murray
R. David Murray added the comment: Aren't there wider implications of python starting to support tuple indexing? If we make this work, aren't people going to expect [[1,2], [3,4]][0,1] to work? -- nosy: +r.david.murray ___ Python tracker

[issue23632] memoryview doesn't allow tuple-indexing

2015-03-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: > If we make this work, aren't people going to expect [[1,2], [3,4]][0,1] to > work? Or even [[1,2], [3,4]][*(0,1)] :-) But seriously, I don't know. memorview is a pretty specialized object, its semantics have more to do with Numpy (which has been a major ins

[issue23632] memoryview doesn't allow tuple-indexing

2015-03-12 Thread Stefan Krah
Stefan Krah added the comment: Multi-dimensional slicing is explicitly mentioned in PEP-3118, so I guess the intention was to cover this use case as well. -- ___ Python tracker _

[issue23637] Warnings error with non-ascii chars.

2015-03-12 Thread R. David Murray
R. David Murray added the comment: Can you provide a complete failure example? If message is unicode, the format string should (in python2) be auto-promoted to unicode. -- nosy: +r.david.murray ___ Python tracker

[issue23638] shutil.copytree makedirs exception

2015-03-12 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> add exist_ok to shutil.copytree ___ Python tracker ___ __

[issue23632] memoryview doesn't allow tuple-indexing

2015-03-12 Thread Stefan Krah
Stefan Krah added the comment: To be sure, the PEP contains some odd proposals like "Unpacking a long-double will return a decimal object", but the one in this issue seems reasonable. -- ___ Python tracker ___

[issue23632] memoryview doesn't allow tuple-indexing

2015-03-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: May be add support of multi-dimensional sub-views? >>> m = memoryview(bytearray(range(12))) >>> m2 = m.cast('B', (3,4)) >>> m2[0] Traceback (most recent call last): File "", line 1, in NotImplementedError: multi-dimensional sub-views are not implemented Th

[issue23632] memoryview doesn't allow tuple-indexing

2015-03-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Sub-views are not as easily implemented. Besides, they create an intermediate object which is immediately thrown away. And tuple indexing is a very common idiom in the Numpy universe. -- ___ Python tracker

[issue23632] memoryview doesn't allow tuple-indexing

2015-03-12 Thread Stefan Krah
Stefan Krah added the comment: sub-views and multi-dimensional slicing are not that bad: They're already implemented in _testbuffer (indeed with intermediate objects though). -- ___ Python tracker

[issue23632] memoryview doesn't allow tuple-indexing

2015-03-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, we could certainly do both :) I don't think we should weigh this issue with separate features, though. -- ___ Python tracker ___

[issue23632] memoryview doesn't allow tuple-indexing

2015-03-12 Thread Stefan Krah
Stefan Krah added the comment: Yes, to be clear I'm +1 on this specific feature -- and separate issues. :) -- ___ Python tracker ___ _

[issue23642] Interaction of ModuleSpec and C Extension Modules

2015-03-12 Thread Brett Cannon
Brett Cannon added the comment: There is a proposed PEP on the import-sig: https://mail.python.org/pipermail/import-sig/2015-March/000904.html . I'm hoping to add it for the author to the PEP index on Friday. Basically we punted on extension modules as we ran out of time in Python 3.4. --

[issue23625] load_module() docs: zipped eggs are not loaded.

2015-03-12 Thread Brett Cannon
Brett Cannon added the comment: I understood what you asked. My point is that mentioning eggs in the imp doesn't make sense since the imp module nor import supports them natively. Eggs are a setuptools thing, not a Python standard library thing. --

[issue10967] move regrtest over to using more unittest infrastructure

2015-03-12 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue23642] Interaction of ModuleSpec and C Extension Modules

2015-03-12 Thread David Beazley
David Beazley added the comment: This is great news. Read the PEP draft and think this is a very good thing to be addressing. Thanks, Brett. -- ___ Python tracker ___

[issue23566] RFE: faulthandler.register() should support file descriptors

2015-03-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset e78de5b1e3ef by Victor Stinner in branch 'default': Issue #23566: enable(), register(), dump_traceback() and dump_traceback_later() https://hg.python.org/cpython/rev/e78de5b1e3ef -- nosy: +python-dev ___

[issue23566] RFE: faulthandler.register() should support file descriptors

2015-03-12 Thread STINNER Victor
STINNER Victor added the comment: > Let me know if there is possible further improvement in this patch. I was going to push your change, but I noticed that you use stderr.fileno() in tests. I modified the test to use a different file descriptor. sys.stderr is also the default value, so the tes

[issue23566] RFE: faulthandler.register() should support file descriptors

2015-03-12 Thread STINNER Victor
STINNER Victor added the comment: Oops, I forgot Windows. On Windows, we should maybe use stderr.fileno() and avoid pass_fds. (Or maybe just skip the tests on Windows?) http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.x/builds/5828/steps/test/logs/stdio =

[issue23644] swig compile fails with ‘_Atomic’ does not name a type

2015-03-12 Thread Joshua J Cogliati
New submission from Joshua J Cogliati: The attached example works fine with Python 3.4.2, but fails with Python 3.5.0a1 and 3.5.0a2 I am using: $ g++ --version g++ (GCC) 4.9.2 20150212 (Red Hat 4.9.2-6) $ swig -version SWIG Version 3.0.5 Compiled with g++ [x86_64-redhat-linux-gnu] Configured

[issue23644] swig compile fails with ‘_Atomic’ does not name a type

2015-03-12 Thread STINNER Victor
STINNER Victor added the comment: _Atomic was added by the issue #22038. -- nosy: +gustavotemple, haypo ___ Python tracker ___ ___ Pyt

[issue23644] swig compile fails with ‘_Atomic’ does not name a type

2015-03-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset eb48295e1f8b by Victor Stinner in branch 'default': Issue #23644, #22038: Move #include inside the extern "C" { ... } https://hg.python.org/cpython/rev/eb48295e1f8b -- nosy: +python-dev ___ Python tracke

[issue22038] Implement atomic operations on non-x86 platforms

2015-03-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset eb48295e1f8b by Victor Stinner in branch 'default': Issue #23644, #22038: Move #include inside the extern "C" { ... } https://hg.python.org/cpython/rev/eb48295e1f8b -- ___ Python tracker

[issue23644] swig compile fails with ‘_Atomic’ does not name a type

2015-03-12 Thread STINNER Victor
STINNER Victor added the comment: Can you please try with the latest development version? -- ___ Python tracker ___ ___ Python-bugs-li

[issue23644] swig compile fails with ‘_Atomic’ does not name a type

2015-03-12 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +Vitor.de.Lima ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue23645] Incorrect doc for __getslice__

2015-03-12 Thread Gaëtan de Menten
New submission from Gaëtan de Menten: The documentation for __getslice__ at https://docs.python.org/2/reference/datamodel.html#object.__getslice__ states: "Note that missing i or j in the slice expression are replaced by zero or sys.maxint, respectively." However, in practice, it seems like i

[issue23646] PEP 475: handle EINTR in the time module, retry sleep()

2015-03-12 Thread STINNER Victor
STINNER Victor added the comment: The patch includes a unit test for POSIX. For Windows, you can test manually using the attached sleep.py program: press CTRL+c to send SIGINT signals. -- Added file: http://bugs.python.org/file38455/sleep.py ___ Pyt

[issue23646] PEP 475: handle EINTR in the time module, retry sleep()

2015-03-12 Thread STINNER Victor
New submission from STINNER Victor: Attached patch changes time.sleep() to retry select() when select() is interrupted by a signal or retry WaitForSingleObjectEx() when the signal SIGINT is received on Windows. The patch drops support for EMX, sorry! I didn't know EMX, I had to Google it: "EM

[issue23647] imaplib.py MAXLINE value is too low for 2015 (patch attached)

2015-03-12 Thread Arnt Gulbrandsen
New submission from Arnt Gulbrandsen: http://stackoverflow.com/q/28923997 and various other SO questions point out that imaplib's _MAXLINE value is a bit behind the times. Fine for 1997, when people had 10MB mailbox quotas, not so fine for the age of gmail. I'm tired of seeing those questions,

[issue23644] swig compile fails with ‘_Atomic’ does not name a type

2015-03-12 Thread Joshua J Cogliati
Joshua J Cogliati added the comment: I have: /local/python_fix/include/python3.5m/pyatomic.h #ifndef Py_LIMITED_API #ifndef Py_ATOMIC_H #define Py_ATOMIC_H #include "dynamic_annotations.h" #include "pyconfig.h" #ifdef __cplusplus extern "C" { #endif #if defined(HAVE_STD_ATOMIC) #include #end

[issue23646] PEP 475: handle EINTR in the time module, retry sleep()

2015-03-12 Thread STINNER Victor
STINNER Victor added the comment: Oh, test_signal fails with the patch because time.sleep() is not interrupted by a signal. New patch. I also reverted #ifdef order in floatsleep() to have a patch easier to review. -- Added file: http://bugs.python.org/file38457/sleep_eintr-2.patch ___

[issue23646] PEP 475: handle EINTR in the time module, retry sleep()

2015-03-12 Thread STINNER Victor
STINNER Victor added the comment: Note: test_signal will have to be modified again when select will also retry on EINTR :-) See issue #23485. For example, test_signal.test_wakeup_fd_early() can register a signal handler which raises an exception and catch InterruptedError. --

[issue23648] PEP 475 meta issue

2015-03-12 Thread STINNER Victor
Changes by STINNER Victor : -- dependencies: +PEP 475 - EINTR handling, PEP 475: handle EINTR in the select and selectors module, PEP 475: handle EINTR in the socket module, PEP 475: handle EINTR in the time module, retry sleep() ___ Python tracker

[issue23648] PEP 475 meta issue

2015-03-12 Thread STINNER Victor
New submission from STINNER Victor: I created this issue to group all issues related to the implementation of the PEP 475 "Retry system calls failing with EINTR". https://www.python.org/dev/peps/pep-0475/ - Issue #23646: the time module, retry sleep() - Issue #23618: the socket module - Issue #

[issue23648] PEP 475 meta issue

2015-03-12 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +neologix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue22038] Implement atomic operations on non-x86 platforms

2015-03-12 Thread Leonardo Bianconi
Changes by Leonardo Bianconi : -- nosy: +lbianc ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue23644] swig compile fails with ‘_Atomic’ does not name a type

2015-03-12 Thread Leonardo Bianconi
Changes by Leonardo Bianconi : -- nosy: +lbianc ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue23644] swig compile fails with ‘_Atomic’ does not name a type

2015-03-12 Thread STINNER Victor
STINNER Victor added the comment: The problem is more general than Python: #include fails in C++. Try to compiled atomic.cpp with g++, you will get the same error. The following bug report in the glibc has been closed as WONTFIX: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60932 It suggests

[issue23644] swig compile fails with ‘_Atomic’ does not name a type

2015-03-12 Thread Gustavo Frederico Temple Pedrosa
Gustavo Frederico Temple Pedrosa added the comment: @haypo, @lbianc will investigate this issue. -- ___ Python tracker ___ ___ Python-

[issue22928] HTTP header injection in urrlib2/urllib/httplib/http.client

2015-03-12 Thread Demian Brecht
Demian Brecht added the comment: Thanks for the tweaks Serhiy, those seem reasonable to me. -- ___ Python tracker ___ ___ Python-bugs-

[issue23644] g++ module compile fails with ‘_Atomic’ does not name a type

2015-03-12 Thread Joshua J Cogliati
Joshua J Cogliati added the comment: If I change the header to: #ifndef Py_LIMITED_API #ifndef Py_ATOMIC_H #define Py_ATOMIC_H #include "dynamic_annotations.h" #include "pyconfig.h" #ifdef __cplusplus extern "C" { #endif #if defined(HAVE_STD_ATOMIC) #ifdef __cplusplus #include using namespac

[issue23646] PEP 475: handle EINTR in the time module, retry sleep()

2015-03-12 Thread Charles-François Natali
Charles-François Natali added the comment: As for the change to select/poll/etc, IIRC Guido was opposed to it, that's why I didn't update them. -- ___ Python tracker ___

[issue23649] tarfile not re-entrant for multi-threading

2015-03-12 Thread Srdjan Grubor
New submission from Srdjan Grubor: When running tarfile.extract through multiple threads, the archive reading pointer is not protected from simultaneous seeks and causes various convoluted bugs: self.archive_object.extract(member, extraction_path) File "/usr/lib/python3.4/tarfile.py",

[issue23649] tarfile not re-entrant for multi-threading

2015-03-12 Thread Srdjan Grubor
Changes by Srdjan Grubor : -- type: behavior -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue23649] tarfile not re-entrant for multi-threading

2015-03-12 Thread Srdjan Grubor
Srdjan Grubor added the comment: Also, extract_member in tarfile.py is not thread-safe since the check for folder existence might occur during another thread's creation of that same dir causing the code to error out. File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run

[issue23649] tarfile not re-entrant for multi-threading

2015-03-12 Thread Srdjan Grubor
Changes by Srdjan Grubor : -- type: enhancement -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue20617] test_ssl does not use mock

2015-03-12 Thread Berker Peksag
Berker Peksag added the comment: Thanks Xavier and Mark. -- components: +Tests -Library (Lib) nosy: +berker.peksag resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.4 ___ Python tracker

[issue23649] tarfile not re-entrant for multi-threading

2015-03-12 Thread Srdjan Grubor
Srdjan Grubor added the comment: The code around tarfile multi-threading was fixed for me on the user-side with threading.Lock() usage so it might work to use this within the library and the directory creation could be improved by probably doing a try/except around the makedirs() call with ign

[issue20617] test_ssl does not use mock

2015-03-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2b7cf33ccd74 by Berker Peksag in branch '3.4': Issue #20617: Remove unused import in test_ssl. https://hg.python.org/cpython/rev/2b7cf33ccd74 New changeset 07e8c0ae232c by Berker Peksag in branch 'default': Issue #20617: Remove unused import in test

[issue23649] tarfile not re-entrant for multi-threading

2015-03-12 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo, lars.gustaebel versions: +Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue23650] xml.etree.ElementTreee.write can't parse its own output

2015-03-12 Thread François-Michel L'Heureux
New submission from François-Michel L'Heureux: Using TreeBuilder to put data into XML tree. Convert that tree to a string. Parse that string. XML parser error. I expect XML library to be able to parse its own output. Reference example: https://github.com/FinchPowers/python_xml_builder_bug/blob

[issue23650] xml.etree.ElementTreee.write can't parse its own output

2015-03-12 Thread François-Michel L'Heureux
Changes by François-Michel L'Heureux : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue23650] xml.etree.ElementTreee.write can't parse its own output

2015-03-12 Thread François-Michel L'Heureux
François-Michel L'Heureux added the comment: Note that you cannot copy paste the code and expect to reproduce the issue because it contains special characters that cannot be copy pasted via a web browser. Here is the output when run. 2015-03-12 09:44:54.560 script runner plugin Hello, world

[issue23647] imaplib.py MAXLINE value is too low for gmail

2015-03-12 Thread R. David Murray
R. David Murray added the comment: Gmail breaks the standards again, eh? I suppose we'll have to accommodate them ;) -- components: +email nosy: +barry, r.david.murray title: imaplib.py MAXLINE value is too low for 2015 (patch attached) -> imaplib.py MAXLINE value is too low for gmail

[issue23647] imaplib.py MAXLINE value is too low for gmail

2015-03-12 Thread R. David Murray
Changes by R. David Murray : -- stage: -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue23649] tarfile not re-entrant for multi-threading

2015-03-12 Thread R. David Murray
R. David Murray added the comment: If you want to use an object that has state in more than one thread you generally have to put some locking around it. Unless I'm missing something (which I might be) I don't think it is tarfile's responsibility to do this. -- nosy: +r.david.murray _

[issue23649] tarfile not re-entrant for multi-threading

2015-03-12 Thread Srdjan Grubor
Srdjan Grubor added the comment: I don't know if that's true of core libraries. Why complicate things for end users when those issues could be done in the library itself and be completely transparent to the devs? A simple RLock latch wouldn't pose almost any speed degradation but would work in

[issue23650] xml.etree.ElementTreee.write can't parse its own output

2015-03-12 Thread R. David Murray
R. David Murray added the comment: Use \x escapes to construct your example, then. -- nosy: +r.david.murray ___ Python tracker ___ ___

[issue23651] Typo in argparse allow_abrev

2015-03-12 Thread Nathan West
New submission from Nathan West: The documentation for the new argparse feature allow_abrev contains a typo: >>> parser.add_argument('--foobar', action='store_true') >>> parser.add_argument('--foonley', action='store_false') >>> parser.parse_args([--foon]) usage: PROG [-h] [--foobar] [--foonley]

[issue23581] unittest.mock.MagicMock doesn't support matmul (@) operator

2015-03-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8c65480a1e19 by Berker Peksag in branch 'default': Issue #23581: Add matmul support to MagicMock. https://hg.python.org/cpython/rev/8c65480a1e19 -- nosy: +python-dev ___ Python tracker

[issue23581] unittest.mock.MagicMock doesn't support matmul (@) operator

2015-03-12 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch, Håkan. If you want to add tests for other magic methods, please open a new issue. Thanks for the report, Zygmunt. -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___

[issue23651] Typo in argparse allow_abrev

2015-03-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8411ae359c98 by Berker Peksag in branch 'default': Issue #23651: Fix typo in allow_abbrev docs. https://hg.python.org/cpython/rev/8411ae359c98 -- nosy: +python-dev ___ Python tracker

[issue23651] Typo in argparse allow_abrev

2015-03-12 Thread Berker Peksag
Berker Peksag added the comment: Good catch, Nathan. Thanks! -- nosy: +berker.peksag resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ _

[issue23650] xml.etree.ElementTreee.write can't parse its own output

2015-03-12 Thread François-Michel L'Heureux
Changes by François-Michel L'Heureux : Removed file: http://bugs.python.org/file38459/python_xml_builder_bug.py ___ Python tracker ___ ___ Pyt

[issue23641] Got rid of bad dunder names

2015-03-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Do you want first commit the patch in issue23581 Berker? -- ___ Python tracker ___ ___ Python-bugs

[issue23650] xml.etree.ElementTreee.write can't parse its own output

2015-03-12 Thread François-Michel L'Heureux
François-Michel L'Heureux added the comment: Updated file where copy/pasting works. -- Added file: http://bugs.python.org/file38460/python_xml_builder_bug.py ___ Python tracker _

[issue23641] Got rid of bad dunder names

2015-03-12 Thread Berker Peksag
Berker Peksag added the comment: > Do you want first commit the patch in issue23581 Berker? I just committed it. Thanks for the review :) -- ___ Python tracker ___ _

[issue23650] xml.etree.ElementTreee.write can't parse its own output

2015-03-12 Thread Ned Deily
Ned Deily added the comment: This is a duplicate of Issue5166. Note that in your example, you are not serializing valid XML 1.0: \x1b (ESC) is not a valid XML character, it has to be escaped and, as the discussion in Issue5166 points out, etree does not automatically do that for you. ---

[issue23641] Got rid of bad dunder names

2015-03-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7522bb14e36a by Serhiy Storchaka in branch '3.4': Issue #23641: Cleaned out legacy dunder names from tests and docs. https://hg.python.org/cpython/rev/7522bb14e36a New changeset 9332a545ad85 by Serhiy Storchaka in branch 'default': Issue #23641: Cle

[issue23641] Got rid of bad dunder names

2015-03-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Committed all except changes to multiprocessing.sharedctypes (remove __getslice__ and __setslice__) and unittest.mock (remove __div__, add __getnewargs_ex__). -- ___ Python tracker

[issue23635] Python won't install correctly.

2015-03-12 Thread Alex Zhang
Alex Zhang added the comment: Never mind, I used ccleaner and revo uninstaller to delete traces, then reinstalled using the msi. Thanks for help, it's all good now! -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue23646] PEP 475: handle EINTR in the time module, retry sleep()

2015-03-12 Thread STINNER Victor
STINNER Victor added the comment: Le jeudi 12 mars 2015, Charles-François Natali a écrit : > > As for the change to select/poll/etc, IIRC Guido was opposed to it, > that's why I didn't update them. > Wait what? can you elaborate? I'm not aware of that. -- _

  1   2   >