[issue17552] socket.sendfile()

2014-04-25 Thread akira
akira added the comment: > I'm confused. Why is "blocksize" necessary at all? My guess, it may be used to implement socket.send()-based fallback. Its meaning could be the same as *length* parameter in shutil.copyfileobj The fallback is useful if os.sendfile doesn't exists or it doesn't accept

[issue21348] File "C:\Python27\lib\distutils\msvc9compiler.py", line 295, in query_vcvarsal l raise ValueError(str(list(result.keys()))) ValueError: [u'path']

2014-04-25 Thread Stefan Krah
Stefan Krah added the comment: This looks like a duplicate of #7511. -- nosy: +skrah resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> msvc9compiler.py: ValueError when trying to compile with VC Express ___ Python t

[issue20434] Fix error handler of _PyString_Resize() on allocation failure

2014-04-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4f79c3827adc by Kristján Valur Jónsson in branch '2.7': Issue #20434 Correct error handlin of _PyString_Resize and _PyBytes_Resize http://hg.python.org/cpython/rev/4f79c3827adc -- nosy: +python-dev ___ Py

[issue21349] crash in winreg SetValueEx with memoryview

2014-04-25 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +zach.ware ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue21225] io.py: Improve docstrings for classes

2014-04-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset e33a036fd784 by Andrew Kuchling in branch '3.4': #21225: copy docstrings from base classes http://hg.python.org/cpython/rev/e33a036fd784 -- nosy: +python-dev ___ Python tracker

[issue21336] ntpath.splitdrive fails on None argument

2014-04-25 Thread Eric V. Smith
Eric V. Smith added the comment: I'm going to close this as "not a bug". Feel free to reopen it if there's use case for passing in None. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue1465646] test_grp & test_pwd fail

2014-04-25 Thread yaccz
yaccz added the comment: Also fails on group + which is afaik a thing for ldap. tested with python 2.6.9 on suse linux enterprise -- nosy: +yaccz ___ Python tracker ___ __

[issue21350] bug in file.writelines accepting buffers

2014-04-25 Thread Brian Kearns
New submission from Brian Kearns: In file.writelines, the conditions in this if statement are bogus. If f->f_binary and AsReadBuffer succeeds (returns 0), AsCharBuf is still tried. So, for example, passing an array('c') to a file('wb').writelines fails, when it seems the intention of the code/

[issue21350] bug in file.writelines accepting buffers

2014-04-25 Thread Brian Kearns
Changes by Brian Kearns : Removed file: http://bugs.python.org/file35036/fix_file_writelines-py27.patch ___ Python tracker ___ ___ Python-bugs

[issue21350] bug in file.writelines accepting buffers

2014-04-25 Thread Brian Kearns
Changes by Brian Kearns : Added file: http://bugs.python.org/file35037/fix_file_writelines-py27.patch ___ Python tracker ___ ___ Python-bugs-l

[issue21305] PEP 466: update os.urandom

2014-04-25 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue21349] crash in winreg SetValueEx with memoryview

2014-04-25 Thread Zachary Ware
New submission from Zachary Ware: The new test fails with the patch applied: == ERROR: test_setvalueex_with_memoryview (__main__.LocalWinregTests) -- Traceback

[issue21349] crash in winreg SetValueEx with memoryview

2014-04-25 Thread Brian Kearns
Brian Kearns added the comment: Oops, updated test. -- Added file: http://bugs.python.org/file35038/fix_winreg_setvalueex-py27.patch ___ Python tracker ___ __

[issue21349] crash in winreg SetValueEx with memoryview

2014-04-25 Thread Brian Kearns
Changes by Brian Kearns : Removed file: http://bugs.python.org/file35031/fix_winreg_setvalueex-py27.patch ___ Python tracker ___ ___ Python-bu

[issue17552] socket.sendfile()

2014-04-25 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Given the opinions expressed so far I: - got rid of the "blocksize" parameter - got rid of the "use_fallback" parameter - added a "count" parameter - used os.fstat() to figure out the total file size and passed it directly to sendfile() I'm attaching socket-

[issue21344] save scores or ratios in difflib get_close_matches

2014-04-25 Thread Russell Ballestrini
Russell Ballestrini added the comment: Adding patch to update tests to use Tim Peters suggestion of assertListEqual over assertEqual for list compares. -- Added file: http://bugs.python.org/file35040/diff-lib-tim-peters-assert-list-equals.patch ___

[issue21347] Don't use a list argument together with shell=True in subprocess' docs

2014-04-25 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo versions: +Python 2.7, Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue21338] Silent mode for compileall

2014-04-25 Thread Éric Araujo
Éric Araujo added the comment: Patch looks to me comprehensive and backward-compatible. Thanks Thomas! -- nosy: +eric.araujo stage: needs patch -> commit review type: -> enhancement ___ Python tracker ___

[issue21351] refcounts not respected at process exit

2014-04-25 Thread Min RK
New submission from Min RK: Reference counts appear to be ignored at process cleanup, which allows inter-dependent `__del__` methods to hang on exit. The problem does not seem to occur for garbage collection of any other context (functions, etc.). I have a case where one object must be cleaned

[issue21351] refcounts not respected at process exit

2014-04-25 Thread Nathan Stocks
Nathan Stocks added the comment: This affects me as well. I have to manually clean up objects in the correct order in script I am working on under 3.4.0. I have this problem under both OS X 10.9.2 Mavericks and under CentOS 6.5 -- nosy: +nathan.stocks ___

[issue21352] improve indexing

2014-04-25 Thread bob gailer
New submission from bob gailer: Inconsistencies / confusion with documentation Index Tab. Example (line numbers added for comments that follow): 1 max 2 built-in function 3 max (datetime.date attribute) 4 (datetime.datetime attribute) 5 (datetime.time attribute) 6 max() built-in function

[issue21352] improve indexing

2014-04-25 Thread Zachary Ware
Changes by Zachary Ware : -- versions: -Python 3.1, Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue21344] save scores or ratios in difflib get_close_matches

2014-04-25 Thread Tim Peters
Tim Peters added the comment: Russell, I'm still looking for a sufficiently compelling "use case" here: something tangible and useful that can be done with the new function that can't be easily done now. "I plan to write a web API that accepts a word, 'doge' and returns a list of possible su

[issue21351] refcounts not respected at process exit

2014-04-25 Thread Tim Peters
Tim Peters added the comment: Just noting that, for me, the problem goes away if del c, c2 is added as the last line of the test. This suggests the problem is due to changes in end-of-life module cleanup. Without that line, I see 3 kinds of output: 1. del child del child del parent parent d

[issue16104] Compileall script: add option to use multiple cores

2014-04-25 Thread Jim Jewett
Jim Jewett added the comment: ProcessPoolExecutor already defaults to using cpu_count if max_workers is None. Consistency with that might be useful too. (and a default of 1 to mean nothing in parallel is sensible...) -- nosy: +Jim.Jewett ___ Pytho

[issue21351] refcounts not respected at process exit

2014-04-25 Thread Tim Peters
Changes by Tim Peters : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue21344] save scores or ratios in difflib get_close_matches

2014-04-25 Thread Russell Ballestrini
Russell Ballestrini added the comment: Tim, You bring up some great points and insight I was missing. "To me the scores just aren't interesting beyond which words' scores exceed a cutoff, and the ordering of words based on their similarity scores - but `get_close_matches()` already captures t

[issue20050] distutils should check PyPI certs when connecting to it

2014-04-25 Thread William Tisäter
Changes by William Tisäter : -- nosy: +tiwilliam ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue21314] Document '/' in signatures

2014-04-25 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- status: open -> title: Bizarre help -> Document '/' in signatures ___ Python tracker ___ ___ Python-bu

[issue21321] itertools.islice() doesn't release reference to the source iterator when the slice is exhausted

2014-04-25 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.5 -Python 3.1, Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list m

[issue21325] Missing Generic EXIF library for images in the standard library

2014-04-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Generic ideas like this, without specific patch or patch prospect, should be first posted on python-ideas. You can reopen this if there is a concrete proposal with some support. However, I agree with Brett about an Exif module. We do not even have an image li

[issue21337] Add tests for Tix

2014-04-25 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue21341] Configuring 'font' with ttk.Style for 'TEntry' does not change displayed font

2014-04-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: This appears to be a tcl/tk(ttk) issue. You rediscovered what is documented here: http://infohost.nmt.edu/tcc/help/pubs/tkinter/web/ttk-Entry.html Table 40. ttk.Entry options fontUse this option to specify the font of the text that will appear in the widget

[issue8387] use universal newline mode in csv module examples

2014-04-25 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 3.1, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21351] refcounts not respected at process exit

2014-04-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: (the 3 kinds of output are probably due to hash randomization) -- ___ Python tracker ___ ___ Python-

[issue21351] refcounts not respected at process exit

2014-04-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Looking into it, it's normal for refcounts to be "ignored": those objects belong to reference cycles: tstgc.__dict__ -> p (or c, or c2) -> p.__class__ (i.e. Parent, or Child respectivel)) -> Parent.__dict__ -> Parent.__del__ (or Parent.__init__, or Parent.child

[issue21351] refcounts not respected at process exit

2014-04-25 Thread Tim Peters
Tim Peters added the comment: I think Antoine is right on all counts. The most surprising bit may be that p, c, and c2 are in reference cycles, but - surprising or not - that's always been true. The reason "it worked" before 3.4 is that CPython happened to break the cycles via the nasty hack

[issue21321] itertools.islice() doesn't release reference to the source iterator when the slice is exhausted

2014-04-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Haven't reviewed the patch, but you should definitely add a unit test for the bugfix. -- ___ Python tracker ___ ___

[issue21349] crash in winreg SetValueEx with memoryview

2014-04-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Brian, it's not obvious (to me) what the original issue is ("crash"?) and why the new test expects a TypeError. Also, is it a 2.7-only issue or does it also affect Python 3? -- nosy: +pitrou, stutzbach ___ Python tra

[issue21349] crash in winreg SetValueEx with memoryview

2014-04-25 Thread Brian Kearns
Brian Kearns added the comment: Are you aware of the old/new buffer interfaces and their usages? Did you actually try the code? "crash" would be obvious. Objects that support only the new buffer interface define tp_as_buffer with fields representing the old buffer interface as null. So, every

[issue21353] document Popen.args attribute

2014-04-25 Thread akira
New submission from akira: It is convenient to have Popen.args available. Especially when dealing with multiple processes e.g., to log failures mentioning the command that was used to spawn the child process. subprocess module itself uses it while raising CalledProcessError or TimeoutExpired e

[issue14074] argparse allows nargs>1 for positional arguments but doesn't allow metavar to be a tuple

2014-04-25 Thread paul j3
paul j3 added the comment: oops - to fix the error message that OP complained about, I need to patch '_get_action_name' as well: def _get_action_name(argument): ... elif argument.metavar not in (None, SUPPRESS): metavar = argument.metavar if isinstance(me