[issue21250] sqlite3 doesn't have unit tests for 'insert or [algorithm]' functionality.

2014-04-16 Thread Alex Lord
Alex Lord added the comment: Yes, I'm going to work on one after I fix Issue16864 today. -- ___ Python tracker ___ ___ Python-bugs-lis

[issue18314] Have os.unlink remove junction points

2014-04-16 Thread Tim Golden
Tim Golden added the comment: All tests pass on 3.5 and in an unelevated prompt. I'll have a closer look at the code tomorrow. -- ___ Python tracker ___

[issue20928] xml.etree.ElementInclude does not include nested xincludes

2014-04-16 Thread Caelyn McAulay
Caelyn McAulay added the comment: xml.etree.ElementInclude.include now checks the inserted subtree to see if contains any Xincludes itself. And adds them. Also added a unit test to check for the new functionality (which will fail without the change to ElementInclude.py). -- keywords:

[issue21263] test_gdb failures on os x 10.9.2

2014-04-16 Thread Ned Deily
Changes by Ned Deily : -- components: -Macintosh ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue21263] test_gdb failures on os x 10.9.2

2014-04-16 Thread Ned Deily
Ned Deily added the comment: Since Apple no longer ships gdb or GNU gcc as part of Xcode and since lldb is the native debugger for clang/LLVM, this test is usually skipped on OS X these days unless you go to the trouble of explicitly installing gdb. Does anyone know if python support works wh

[issue21262] assert_not_called method for mocks

2014-04-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9e5cbc46e916 by Kushal Das in branch 'default': Closes Issue 21262: New method assert_not_called for Mock. http://hg.python.org/cpython/rev/9e5cbc46e916 -- nosy: +python-dev resolution: -> fixed stage: needs patch -> committed/rejected stat

[issue21207] urandom persistent fd - not re-openned after fd close

2014-04-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: Christian, do you see a security risk with the proposed change? -- nosy: +christian.heimes, rhettinger ___ Python tracker ___ ___

[issue21261] Teach IDLE to Autocomplete dictionary keys

2014-04-16 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue17218] support title and description in argparse add_mutually_exclusive_group

2014-04-16 Thread paul j3
paul j3 added the comment: The attached file implements a solution using a subclassed ArgumentParser and a .add_titled_mutually_exclusive_group method (two versions). I changed the test conditions a bit, removing a blank line, and making the usage 'exclusive'. -- Added file: http://bu

[issue21227] Decimal class error messages for integer division aren't good

2014-04-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: > It is certainly possible to document DivisionImpossible etc. This should not be done. We've made strong efforts to not extend the Decimal Arithmetic Specification. Also, the API already suffers from high complexity. Adding more exceptions to the mix ju

[issue21267] mktime_tz may return wrong result for past dates before Python 2.7.4

2014-04-16 Thread akira
Changes by akira <4kir4...@gmail.com>: -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mai

[issue21267] mktime_tz may return wrong result for past dates before Python 2.7.4

2014-04-16 Thread akira
New submission from akira: >>> from email.utils import mktime_tz, parsedate_tz >>> mktime_tz(parsedate_tz('Thu, 1 Jan 1970 00:00:00 GMT')) 3600.0 It must returns `0` instead of `3600.0` assuming POSIX timestamp. UTC offsets in 1970 and today are different from each other by one hour in my loca

[issue9291] mimetypes initialization fails on Windows because of non-Latin characters in registry

2014-04-16 Thread Tim Golden
Tim Golden added the comment: The attached patch issue9291.7.patch (which is essentially an amalgam of 9291.patch & 9291a.patch with some tweaks of my own) does appear to solve the issue. My Windows setup is UK, so if any of the people still watching this issue could test against a non-English

[issue21259] replace "except: pass" by "except Exception: pass"

2014-04-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: FYI, the two are not equivalent. A bare except is equivalent to BaseException. Even then, the new code would be slower than the original, so I'm not sure this change should be made at all (it makes the code more verbose, slower, and risks introducing a s

[issue19316] devguide: compiler - wording

2014-04-16 Thread Nitika Agarwal
Nitika Agarwal added the comment: Hi, anyone please review my patch attached. -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue6305] islice doesn't accept large stop values

2014-04-16 Thread Alok Singhal
Alok Singhal added the comment: OK. I have written the "slow path" version and tested it a bit. I will add the code to switch between the paths and also add test cases as well. Thanks! -- ___ Python tracker

[issue21233] Add *Calloc functions to CPython memory allocation API

2014-04-16 Thread STINNER Victor
STINNER Victor added the comment: Patch version 3: remove _PyObject_GC_Calloc(), modify _PyObject_GC_Malloc() instead of use calloc() instead of malloc()+memset(0). -- Added file: http://bugs.python.org/file34924/calloc-3.patch ___ Python tracker

[issue4744] asynchat documentation needs to be more precise

2014-04-16 Thread Nitika Agarwal
Nitika Agarwal added the comment: @Stéphane Wirtel (matrixise) I am really sorry but i just couldn't find where have i done a typo and have written 'asychat' insstead of asynchat.Will you please help me out in pointing out my error. -- ___ Python tr

[issue21227] Decimal class error messages for integer division aren't good

2014-04-16 Thread Stefan Krah
Stefan Krah added the comment: In the case of DivisionImpossible it would actually be possible to use the error message 'quotient too large in //, % or divmod'. But that's just one condition. In the case of InvalidOperation there are something like 30 different error messages. --

[issue6305] islice doesn't accept large stop values

2014-04-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: Yes, you should add a fastpath and a slow path. Take a look at itertools.count() or builtins.enumerate() to see how to do it. This is a bit tricky to switch between modes, so you will need a thorough set of test cases. -- versions: +Python 3.5 -Py

[issue18566] In unittest.TestCase docs for setUp() and tearDown() don't mention AssertionError

2014-04-16 Thread Nitika Agarwal
Nitika Agarwal added the comment: @Terry J.Reedy Thanks a lot.And yes, I will take care of it next time. -- ___ Python tracker ___ ___

[issue19232] Speed up _decimal import

2014-04-16 Thread Stefan Krah
Stefan Krah added the comment: I would like to go ahead with this. As Antoine mentioned, most people don't diagnose import problems, especially when they compare Python 2 against Python 3. As it turns out, the slowdown is even significant in a simple tcpserver application that starts a Python s

[issue12523] 'str' object has no attribute 'more' [/usr/lib/python3.2/asynchat.py|initiate_send|245]

2014-04-16 Thread Caelyn McAulay
Caelyn McAulay added the comment: *will now produce. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue12523] 'str' object has no attribute 'more' [/usr/lib/python3.2/asynchat.py|initiate_send|245]

2014-04-16 Thread Caelyn McAulay
Caelyn McAulay added the comment: I like that approach decidedly more than my original one. Suggested revision patch attached. The sample script will not produce the following: error: uncaptured python exception, closing channel <__main__.fake_asynchat 127.0.0.1:8000 at 0x7f10a85b4ae8> (:data

[issue17218] support title and description in argparse add_mutually_exclusive_group

2014-04-16 Thread paul j3
paul j3 added the comment: Using a mutually_exclusive_group is a little more complicated than I implied in the previous post. p=argparse.ArgumentParser() g=p.add_mutually_exclusive_group() # currently the code objects to 'title' and 'description' keywords g.add_argument('--foo')

[issue6305] islice doesn't accept large stop values

2014-04-16 Thread Alok Singhal
Alok Singhal added the comment: I started working on this bug as a part of PyCon US 2014 sprints. Should the bugfix include a fast path (basically the current implementation) for when the values involved can fit in an int, and a slow path for larger values? Or should the bugfix just have one

[issue21265] ConfigParser allows "get(*, raw=True), but no corresponding "set(*, raw=True)"

2014-04-16 Thread metagriffin
Changes by metagriffin : -- keywords: +patch Added file: http://bugs.python.org/file34922/issue-21265.patch ___ Python tracker ___ ___

[issue17750] allow the testsuite to run in the installed location

2014-04-16 Thread Matthias Klose
Changes by Matthias Klose : -- dependencies: +test_zipfile fails to run in the installed location ___ Python tracker ___ ___ Python-bu

[issue21262] assert_not_called method for mocks

2014-04-16 Thread Kushal Das
Kushal Das added the comment: Patch with required changes. Code, docs, test and Misc/NEWS entry. -- keywords: +patch Added file: http://bugs.python.org/file34921/issue21262.patch ___ Python tracker

[issue21266] test_zipfile fails to run in the installed location

2014-04-16 Thread Matthias Klose
New submission from Matthias Klose: the installation directory is non-writable, and the byte code files don't exist. test_write_filtered_python_package (test.test_zipfile.PyZipFileTests) ... ERROR test_write_pyfile (test.test_zipfile.PyZipFileTests) ... ERROR test_write_with_optimization (test.t

[issue21240] Add an abstactmethod directive to the Python ReST domain

2014-04-16 Thread Berker Peksag
Berker Peksag added the comment: Here's patch. The new PyAbstractMethod class is basically a subclass of the sphinx.domains.python.PyClassmember class which implements the method, classmethod and staticmethod directives. -- keywords: +patch nosy: +berker.peksag stage: -> patch review

[issue21265] ConfigParser allows "get(*, raw=True), but no corresponding "set(*, raw=True)"

2014-04-16 Thread metagriffin
New submission from metagriffin: the ConfigParser classes allow option values with interpolation syntax violations to be loaded from an INI file, and to be extracted as long as the `raw` parameter is set to True in the get*() methods. the following code demonstrates this asymmetry: ``` python

[issue17750] allow the testsuite to run in the installed location

2014-04-16 Thread Matthias Klose
Changes by Matthias Klose : -- dependencies: +test_compileall fails to build in the installed location ___ Python tracker ___ ___ Pyth

[issue21264] test_compileall fails to build in the installed location

2014-04-16 Thread Matthias Klose
New submission from Matthias Klose: the installation directory is non-writable, and the byte code files don't exist. [1/1] test_compileall test test_compileall failed -- Traceback (most recent call last): File "/usr/lib/python3.4/test/test_compileall.py", line 194, in test_no_args_respects_fo

[issue17752] many distutils tests fail when run from the installed location

2014-04-16 Thread Matthias Klose
Matthias Klose added the comment: three are still failing with 3.4: cc-4.9.real: error: /tmp/tmpdjxmlia5/xx.cpython-34m.so: No such file or directory gcc-4.9.real: error: /tmp/tmp4zpi6ktg/foo.cpython-34m.so: No such file or directory gcc-4.9.real: error: build/lib.linux-x86_64-3.4/xx.cpython-3

[issue21263] test_gdb failures on os x 10.9.2

2014-04-16 Thread Sam Kimbrel
New submission from Sam Kimbrel: test_gdb fails under OS X 10.9.2 and gdb 7.6.1 (built with homebrew on Apple LLVM version 5.1 (clang-503.0.40)): FAIL: test_pycfunction (test.test_gdb.PyBtTests) Verify that "py-bt" displays invocations of PyCFunction instances --

[issue21249] removing pythonXY.zip from sys.path results in additional test failures

2014-04-16 Thread Matthias Klose
Matthias Klose added the comment: Brett mentioned this optimization might not be worth doing. Exactly one stat call for the python zip file is saved. -- ___ Python tracker ___

[issue12523] 'str' object has no attribute 'more' [/usr/lib/python3.2/asynchat.py|initiate_send|245]

2014-04-16 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: The part of the code where that is more likely to happen is the push() method. One might also submit a producer (push_with_producer()) erroneously returning strings on more() though; how to properly fix this one is not clear to me because of the bad asynchat

[issue8690] multiprocessing.dummy.Queue does not expose same interface as multiprocessing.Queue

2014-04-16 Thread Thomas Fenzl
Thomas Fenzl added the comment: Considering public API elements, there are more inconsistencies. E.g. Pool: 'imap' 'apply' 'join' 'map_async' 'Process' 'terminate' 'close' 'starmap_async' 'starmap' 'apply_async' 'map' 'imap_unordered' : Pool misses some public elements. What level of compatibi

[issue19962] Create a 'python.bat' script to invoke interpreter from source root

2014-04-16 Thread Tim Golden
Tim Golden added the comment: +1 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mai

[issue21262] assert_not_called method for mocks

2014-04-16 Thread Michael Foord
New submission from Michael Foord: A shortcut for asserting that the call_count of a mock is 0. -- assignee: kushal.das messages: 216546 nosy: kushal.das, michael.foord priority: normal severity: normal stage: needs patch status: open title: assert_not_called method for mocks type: behav

[issue21262] assert_not_called method for mocks

2014-04-16 Thread Michael Foord
Changes by Michael Foord : -- components: +Library (Lib) versions: +Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue21259] replace "except: pass" by "except Exception: pass"

2014-04-16 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: I disabled the patch for pybench and the grammar. Thanks for your review. -- Added file: http://bugs.python.org/file34919/issue21259-replace_except_pass-2.patch ___ Python tracker

[issue21261] Teach IDLE to Autocomplete dictionary keys

2014-04-16 Thread Raymond Hettinger
New submission from Raymond Hettinger: IDLE can autocomplete global variable, method names, and filenames. But, it cannot complete dictionary keys. Here's what we want: >>> d = {'long_key': '10, 'short_key': 20} >>> d['lo -- components: IDLE messages: 216542 nosy: rhettinger pr

[issue20421] expose SSL socket protocol version

2014-04-16 Thread Ethan Furman
Ethan Furman added the comment: Sounds good to me. -- nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue21260] python malloc mach_vm_map failed

2014-04-16 Thread Ned Deily
Ned Deily added the comment: See Issue5614. That's normal when running the test suite on 64-bit versions on OS X. Unfortunately, we haven't found a way to suppress the messages. -- nosy: +ned.deily resolution: -> duplicate stage: -> committed/rejected status: open -> closed supersede

[issue21220] Enhance obmalloc allocation strategy

2014-04-16 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Sure. I'm flying home from PyCon this afternoon. I´ll produce and tabulate data once I'm home on my workstation again. -- ___ Python tracker

[issue21068] Make ssl.PROTOCOL_* an enum

2014-04-16 Thread Ethan Furman
Ethan Furman added the comment: Looks good to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue20840] AttributeError: 'module' object has no attribute 'ArgumentParser'

2014-04-16 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> works for me stage: -> committed/rejected status: open -> pending ___ Python tracker ___

[issue21260] python malloc mach_vm_map failed

2014-04-16 Thread Stéphane Wirtel
New submission from Stéphane Wirtel: Hi all, Sometimes, I get this error on my laptop : OSX 10.9 with Python 3.5 [386/388] test_io python.exe(33496,0x7fff7367d310) malloc: *** mach_vm_map(size=9223372036854779904) failed (error code=3) *** error: can't allocate region *** set a breakpoint in

[issue21250] sqlite3 doesn't have unit tests for 'insert or [algorithm]' functionality.

2014-04-16 Thread Ned Deily
Ned Deily added the comment: Are you interested in submitting a patch? -- nosy: +ghaering, ned.deily stage: -> needs patch versions: -Python 3.1, Python 3.2, Python 3.3 ___ Python tracker

[issue21256] Sort keyword arguments in mock _format_call_signature

2014-04-16 Thread Michael Foord
Michael Foord added the comment: Needs a test. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue6727] ImportError when package is symlinked on Windows

2014-04-16 Thread R. David Murray
R. David Murray added the comment: As far as I can tell from the messages, there is nothing left to do here, so I'm closing it. -- nosy: +r.david.murray resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue21246] test_ssl handshake failure

2014-04-16 Thread ddve...@ucar.edu
ddve...@ucar.edu added the comment: Thanks. The reason why I overlook it is that #20896 did not list 2.7 as an affected version. I changed #20896 to prevent other people doing the same mistake -- ___ Python tracker

[issue21238] unittest.mock.Mock should not allow you to use non-existent assert methods

2014-04-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset e4ee0b15cc4f by Kushal Das in branch 'default': Closes Issue 21238: New keyword argument `unsafe` to Mock. http://hg.python.org/cpython/rev/e4ee0b15cc4f -- nosy: +python-dev resolution: -> fixed stage: needs patch -> committed/rejected stat

[issue21220] Enhance obmalloc allocation strategy

2014-04-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: > sorry, I meant of course "performance of pybench.py goes up" pybench is really a very poor (extremely low-level) benchmark. It would be nice if you could test with the benchmark suite at http://hg.python.org/benchmarks --

[issue20896] test_ssl.test_get_server_certificate() should use PROTOCOL_SSLv23, not PROTOCOL_SSLv3

2014-04-16 Thread ddve...@ucar.edu
ddve...@ucar.edu added the comment: This bug affected also the other versions I marked. Updating it, so people don't open duplicate bugs as I did with issue #21246 -- nosy: +ddve...@ucar.edu versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3 _

[issue21227] Decimal class error messages for integer division aren't good

2014-04-16 Thread leewz
leewz added the comment: Nah. I found it surprising at first, but like I said, it's like the computer is given the first 28 digits of a number and then asked to figure out the 30th digit. What I'm confused about is how it fits the definition of "division impossible" given by libmpdec's docs (

[issue21220] Enhance obmalloc allocation strategy

2014-04-16 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: sorry, I meant of course "performance of pybench.py goes up" -- ___ Python tracker ___ ___ P

[issue21259] replace "except: pass" by "except Exception: pass"

2014-04-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: You shouldn't change the grammar the tests, nor the pybench source. Also, in some places it would probably be interesting to narrow down the exception type more. -- nosy: +pitrou ___ Python tracker

[issue21220] Enhance obmalloc allocation strategy

2014-04-16 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Antoine: The location of the arenas when they're individually allocated with mmap does not matter, no, but preferring to keep low address ones reduces vmem fragmentation, since they end up being clustered together in memory. For the usable-arenas lis

[issue21192] Idle: Print filename when running a file from editor

2014-04-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: I took another look and tried the patch and discovered that my comments are partly wrong because restart_shell is called before runcode when runcode is use to run a file. (I am not sure how it is called otherwise with self.tkconsole.executing == True.) This ha

[issue21259] replace "except: pass" by "except Exception: pass"

2014-04-16 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: I attach the patch. Need review. Thanks -- keywords: +patch nosy: +haypo Added file: http://bugs.python.org/file34918/issue21259-replace_except_pass.patch ___ Python tracker ___

[issue21207] urandom persistent fd - not re-openned after fd close

2014-04-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, on the one hand this does sound like a valid use case. On the other hand, once the urandom file descriptor is closed by third-party code, it can very well be re-opened to point to another file, and then os.urandom() will start behaving in a very bad way.

[issue21259] replace "except: pass" by "except Exception: pass"

2014-04-16 Thread Stéphane Wirtel
New submission from Stéphane Wirtel: Hi guys, Via this issue, I will attach a patch where I replace all the "except: pass" in the source code by a clear "except Exception: pass". -- components: Library (Lib) messages: 216524 nosy: matrixise priority: normal severity: normal status: ope

[issue18229] attribute headers of http.server.BaseHTTPRequestHandler sometimes does not exists

2014-04-16 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 3.5 -Python 2.7, Python 3.3 ___ Python tracker ___ __

[issue15002] urllib2 does not download 4 MB file completely using ftp

2014-04-16 Thread Christian Theune
Christian Theune added the comment: Antoine, could you check my last comment in here? (The nosy list got reset accidentally when I made that comment and got a conflict from the tracker). -- nosy: +pitrou ___ Python tracker

[issue18229] attribute headers of http.server.BaseHTTPRequestHandler sometimes does not exists

2014-04-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 104fab0143e9 by Senthil Kumaran in branch '3.4': Address issue 18229 - Explain http.server.BaseHTTPRequestHandler's .headers attribute further. http://hg.python.org/cpython/rev/104fab0143e9 -- nosy: +python-dev

[issue21258] Add __iter__ support for mock_open

2014-04-16 Thread Michael Foord
New submission from Michael Foord: mock_open returns a mock object suitable for using as a mock file handle. File handles support iteration, so mock_open should support that. If possible it should be integrated with the current read/readlines support (only if possible), so the suggested patch

[issue21227] Decimal class error messages for integer division aren't good

2014-04-16 Thread Stefan Krah
Stefan Krah added the comment: My apologies if that wasn't clear: "fine grained" refers to the exception messages. A function can raise InvalidOperation for different reasons. decimal.py gives a specific error message in each case. libmpdec just signals the standard conforming InvalidOperation.

[issue21207] urandom persistent fd - not re-openned after fd close

2014-04-16 Thread Steven Hiscocks
Steven Hiscocks added the comment: Issue where I hit this is in Fail2Ban: https://github.com/fail2ban/fail2ban/issues/687 Lines of code where this occurs: https://github.com/fail2ban/fail2ban/blob/1c65b946171c3bbc626ddcd9320ea2515018677b/fail2ban/server/server.py#L518-530 There are other exam

[issue21238] unittest.mock.Mock should not allow you to use non-existent assert methods

2014-04-16 Thread Michael Foord
Michael Foord added the comment: It needs a NEWS entry, but looks good to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue2159] dbmmodule inquiry function is performance prohibitive

2014-04-16 Thread Eric Olson
Eric Olson added the comment: New patch with Pep 7 fix - no c++ // style comments. -Thanks johansen. -- Added file: http://bugs.python.org/file34916/dbm_bool_d.patch ___ Python tracker __

[issue21068] Make ssl.PROTOCOL_* an enum

2014-04-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Anyone else has an opinion on this? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue17449] dev guide appears not to cover the benchmarking suite

2014-04-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Jeff: yes it could :) Do you want to provide a patch? -- ___ Python tracker ___ ___ Python-bugs-list

[issue21233] Add *Calloc functions to CPython memory allocation API

2014-04-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: On mer., 2014-04-16 at 08:06 +, STINNER Victor wrote: > I didn't check which objects use (indirectly) _PyObject_GC_Calloc(). I've checked: lists, tuples, dicts and sets at least seem to use it. Obviously, objects which are not tracked by the GC (such as str

[issue21256] Sort keyword arguments in mock _format_call_signature

2014-04-16 Thread Michael Foord
Michael Foord added the comment: Yes to ordered kwargs! I would very much like to be able to order the keyword args in the order they were passed in, information which is currently lost. -- ___ Python tracker

[issue17752] many distutils tests fail when run from the installed location

2014-04-16 Thread Thomas Wouters
Thomas Wouters added the comment: Matthias, I think this is already fixed for Python 3.3 and later (at least.) There may still be problems in 2.7, but I'm not sure if it's worth fixing them there. Can you see if you still have problems, and if so, show us how to reproduce them? (Is it just 'py

[issue15002] urllib2 does not download 4 MB file completely using ftp

2014-04-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, this looks ok on the principle, but I haven't investigated the urllib-specific parts, so I'll let Senthil delve into this :) -- ___ Python tracker __

[issue15002] urllib2 does not download 4 MB file completely using ftp

2014-04-16 Thread Christian Theune
Changes by Christian Theune : -- keywords: +patch Added file: http://bugs.python.org/file34915/d3c6ab639306.diff ___ Python tracker ___ __

[issue15002] urllib2 does not download 4 MB file completely using ftp

2014-04-16 Thread Senthil Kumaran
Senthil Kumaran added the comment: Christian , with respect to patch, I agree with the logic (using something similar to #18879). Does all current unittests succeed with this? (I suspect not) A unittest for coverage would be helpful. -- ___ Python t

[issue21227] Decimal class error messages for integer division aren't good

2014-04-16 Thread leewz
leewz added the comment: Fine grained? Do you mean that the error can't be distinguished from other such errors? Or that it's difficult to attach the message to DivisionError? I thought DivisionError was always about precision. I looked up the error in libmpdec: "This occurs and signals invali

[issue15002] urllib2 does not download 4 MB file completely using ftp

2014-04-16 Thread Christian Theune
Christian Theune added the comment: Antoine, I'm adding you here as I'm leveraging your patch from #18879. I'd need some feedback about the backport, but this patch should be OK for 3.4. Also, if you had an idea how to test this - I tried, but failed so far. -- __

[issue15002] urllib2 does not download 4 MB file completely using ftp

2014-04-16 Thread Thomas Wouters
Changes by Thomas Wouters : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue15002] urllib2 does not download 4 MB file completely using ftp

2014-04-16 Thread Christian Theune
Christian Theune added the comment: I wasn't able to come up with a good testcase. :( I tried similar approaches as in #18879 but I wasn't able to make them trigger the behaviour as it also seems to be an issue regarding actual network performance ... :/ Backport to 2.7 is currently missing a

[issue15002] urllib2 does not download 4 MB file completely using ftp

2014-04-16 Thread Christian Theune
Changes by Christian Theune : -- hgrepos: +237 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue18879] tempfile.NamedTemporaryFile can close the file too early, if not assigning to a variablwe

2014-04-16 Thread Christian Theune
Christian Theune added the comment: #15002 uses this patch to fix a similar wrapping problem in urllib. Also, this affects 2.7 as well and #15002 does report the problem for 2.7. I'd like to get this fix backported. Would that be OK? -- nosy: +ctheune title: tempfile.NamedTemporaryFile

[issue17218] support title and description in argparse add_mutually_exclusive_group

2014-04-16 Thread paul j3
paul j3 added the comment: While mutually exclusive groups are a subclass of argument groups, they have very different uses. Argument groups are used solely to organize the help section. Groups are not used at all during parsing. 'parse_args' doesn't even pay attention to those 2 default gro

[issue15002] urllib2 does not download 4 MB file completely using ftp

2014-04-16 Thread Christian Theune
Changes by Christian Theune : -- versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list

[issue21256] Sort keyword arguments in mock _format_call_signature

2014-04-16 Thread Kushal Das
Kushal Das added the comment: Patch uploaded for the same. -- keywords: +patch Added file: http://bugs.python.org/file34914/issue21256.patch ___ Python tracker ___ __

[issue21254] PropertyMock refuses to raise AttributeErrror as a side effect

2014-04-16 Thread Eric Snow
Eric Snow added the comment: Perhaps related to #1615? -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue20896] test_ssl.test_get_server_certificate() should use PROTOCOL_SSLv23, not PROTOCOL_SSLv3

2014-04-16 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue20896] test_ssl.test_get_server_certificate() should use PROTOCOL_SSLv23, not PROTOCOL_SSLv3

2014-04-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 55f62fa5bebc by Antoine Pitrou in branch 'default': Issue #20896: ssl.get_server_certificate() now uses PROTOCOL_SSLv23, not PROTOCOL_SSLv3, for maximum compatibility. http://hg.python.org/cpython/rev/55f62fa5bebc -- __

[issue21256] Sort keyword arguments in mock _format_call_signature

2014-04-16 Thread Eric Snow
Eric Snow added the comment: Ordered kwargs anyone? :) -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue21247] test_asyncio: test_subprocess_send_signal hangs on Fedora builders

2014-04-16 Thread Orion Poplawski
Orion Poplawski added the comment: We have determined that the koji builder is indeed setting the SIGHUP sigaction to SIG_IGN, which the python test is inheriting, and are working on trying to get that fixed. However, it may be worth considering something like https://github.com/pexpect/pexpe

[issue21015] support SSL_CTX_set_ecdh_auto on newer OpenSSLs

2014-04-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: The buildbots seem happy as well, so I'm closing this. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker _

[issue21246] test_ssl handshake failure

2014-04-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: This was fixed in #20896 by a certain Benjamin Peterson. -- nosy: +pitrou resolution: -> duplicate status: open -> closed superseder: -> test_ssl.test_get_server_certificate() should use PROTOCOL_SSLv23, not PROTOCOL_SSLv3 ___

[issue21192] Idle: Print filename when running a file from editor

2014-04-16 Thread Adnan Umer
Adnan Umer added the comment: I tried to replace RESTART by doing these little changing # PyShell.Py class ModifiedInterpreter(InteractiveInterpreter): def restart_subprocess(self, with_cwd=False, with_msg=True): ... if with_msg: halfbar = ((int(console.width) - 1

[issue21227] Decimal class error messages for integer division aren't good

2014-04-16 Thread Stefan Krah
Stefan Krah added the comment: Meanwhile, the pure Python decimal versions prior to Python 3.2 have better error messages. Right now in Python 3.3+ it is hard to import the Python version without going into contortions, but that may be fixed in #19232. -- dependencies: +Speed up _decima

[issue21015] support SSL_CTX_set_ecdh_auto on newer OpenSSLs

2014-04-16 Thread Ned Deily
Ned Deily added the comment: That does indeed make the test now pass on OS X 10.9: test_default_ecdh_curve (test.test_ssl.ThreadedTests) ... server: new connection from ('127.0.0.1', 60758) server: connection cipher is now ('AECDH-AES256-SHA', 'TLSv1/SSLv3', 256) server: selected protocol i

<    1   2   3   >