[issue13022] _multiprocessing.recvfd() doesn't check that file descriptor was actually received

2011-09-20 Thread Charles-François Natali
Charles-François Natali added the comment: > The patch includes a test case, but like the other recently-added > tests for the function, it isn't guarded against > multiprocessing.reduction being unavailable. Issue #12981 has a > patch "skip_reduction.diff" (already in 3.3) to fix this, I'll a

[issue12961] itertools: unlabelled balls in boxes

2011-09-20 Thread Phillip Feldman
Phillip Feldman added the comment: With the exception of the "empty boxes forbidden" category, I've come across all of these at one time or another, many in the context of error control coding (data communications). Much of the early work on occupancy problems was motivated by physics and th

[issue12961] itertools: unlabelled balls in boxes

2011-09-20 Thread Phillip Feldman
Phillip Feldman added the comment: Ideally, I'd like to see support for all combinations of the following occupancy problem features: - Labeled and unlabeled boxes - Labeled and unlabeled balls - Empty boxes allowed and empty boxes forbidden - Boxes with no capacity limits and with capacity li

[issue7434] general pprint rewrite

2011-09-20 Thread Steven Samuel Cole
Changes by Steven Samuel Cole : -- nosy: +ssc ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue13004] pprint: add option to truncate sequences

2011-09-20 Thread Steven Samuel Cole
Steven Samuel Cole added the comment: @anand: as the names say, the depth parameter limits the depth of display while the length parameter limits the length. for example, with a data structure of a list of lists of lists and a depth of 2, only the first two levels would be shown, the third li

[issue1172711] long long support for array module

2011-09-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 672b63aff0f4 by Meador Inge in branch 'default': Issue #1172711: Update What's New in Python 3.3 document for the array module. http://hg.python.org/cpython/rev/672b63aff0f4 -- ___ Python tracker

[issue13013] Resource is not released before returning from the functiion

2011-09-20 Thread Meador Inge
Meador Inge added the comment: I'll take this one. Suman, thanks for finding this. It will help in the future if you don't open a ton of bugs with the *exact* same title. They are harder to filter and keep track of that way. -- assignee: -> meador.inge nosy: +meador.inge stage: ->

[issue13022] _multiprocessing.recvfd() doesn't check that file descriptor was actually received

2011-09-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 21e7a55cb943 by Jesus Cea in branch '2.7': Close #13022: _multiprocessing.recvfd() doesn't check that file descriptor was actually received http://hg.python.org/cpython/rev/21e7a55cb943 New changeset 447770470d00 by Jesus Cea in branch '3.2': Clos

[issue13022] _multiprocessing.recvfd() doesn't check that file descriptor was actually received

2011-09-20 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- assignee: -> jcea nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13012] Allow keyword argument in str.splitlines()

2011-09-20 Thread Meador Inge
Meador Inge added the comment: Patch looks good. I noticed a change in the conventional type for 'keepends' from 'int' to 'bool'. Several unit tests were updated to match this change. Perhaps other call sites should be updated too? A little greping shows: $ grep -Rl 'splitlines(0)' * --i

[issue1172711] long long support for array module

2011-09-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3c56e546dc60 by Victor Stinner in branch 'default': Issue #1172711: Update What's New in Python 3.3 document for the struct module http://hg.python.org/cpython/rev/3c56e546dc60 -- ___ Python tracker

[issue1172711] long long support for array module

2011-09-20 Thread Meador Inge
Changes by Meador Inge : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue1172711] long long support for array module

2011-09-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 15659e0e2b2e by Meador Inge in branch 'default': Issue #1172711: Add 'long long' support to the array module. http://hg.python.org/cpython/rev/15659e0e2b2e -- nosy: +python-dev ___ Python tracker

[issue13012] Allow keyword argument in str.splitlines()

2011-09-20 Thread Ezio Melotti
Ezio Melotti added the comment: LGTM -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue13024] cgitb uses stdout encoding

2011-09-20 Thread STINNER Victor
Changes by STINNER Victor : -- components: +Unicode nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue13025] mimetypes should read the rule file using UTF-8, not the locale encoding

2011-09-20 Thread STINNER Victor
Changes by STINNER Victor : -- components: +Library (Lib), Unicode ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue13025] mimetypes should read the rule file using UTF-8, not the locale encoding

2011-09-20 Thread STINNER Victor
New submission from STINNER Victor : On Debian and Ubuntu, /etc/mime.types file is pure ASCII, but on Fedora 15 it contains a non-ASCII character, ³ (U+00B3), in the line: "application/vnd.geocube+xml g3 g³" And the file is encoded in UTF-8. That's why Python should read th

[issue13024] cgitb uses stdout encoding

2011-09-20 Thread STINNER Victor
New submission from STINNER Victor : cgitb module writes its output to sys.stdout by default and so encode its HTML document into stdout encoding, whereas it doesn't specify the HTML encoding. Moreover it uses stdout error handler. If the locale encoding is ASCII whereas a filename in the trac

[issue12961] itertools: unlabelled balls in boxes

2011-09-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: Any additions would need to be motivated by real world problems. The issue is that adding more generators makes the module harder to learn and remember, so tools are not usually added "for the sake of completeness". -- ___

[issue13023] argparse should allow displaying argument default values in addition to setting a formatter class

2011-09-20 Thread Denilson Figueiredo de Sá
New submission from Denilson Figueiredo de Sá : In my script, I wanted two things at the same time: 1. Setting a formatter class so that the epilog would have the line breaks preserved. 2. Telling argparse to automatically display default values for all arguments. Currently, both things are han

[issue12806] argparse: Hybrid help text formatter

2011-09-20 Thread Denilson Figueiredo de Sá
Denilson Figueiredo de Sá added the comment: I was about to suggest this feature. I had the exact same need: a formatter that preserves newlines (and maybe whitespace), but that also automatically wraps the lines. In other words, the behavior would be similar to CSS property white-space: pre

[issue11682] PEP 380 reference implementation for 3.3

2011-09-20 Thread Zbyszek Szmek
Changes by Zbyszek Szmek : Added file: http://bugs.python.org/file23217/0002.diff ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue11682] PEP 380 reference implementation for 3.3

2011-09-20 Thread Zbyszek Szmek
Changes by Zbyszek Szmek : Added file: http://bugs.python.org/file23216/0001.diff ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue11682] PEP 380 reference implementation for 3.3

2011-09-20 Thread Zbyszek Szmek
Changes by Zbyszek Szmek : Removed file: http://bugs.python.org/file23213/0002-Fix-references-to-__next__-__iter__-and-nearby-refer.patch ___ Python tracker ___

[issue11682] PEP 380 reference implementation for 3.3

2011-09-20 Thread Zbyszek Szmek
Changes by Zbyszek Szmek : Removed file: http://bugs.python.org/file23212/0001-Document-the-yield-from-syntax-and-StopIteration-ret.patch ___ Python tracker ___

[issue12981] rewrite multiprocessing (senfd|recvfd) in Python

2011-09-20 Thread David Watson
David Watson added the comment: On Tue 20 Sep 2011, Charles-François Natali wrote: > I committed the patch to catch the ImportError in test_multiprocessing. This should go in all branches, I think - see issue #13022. -- ___ Python tracker

[issue13022] _multiprocessing.recvfd() doesn't check that file descriptor was actually received

2011-09-20 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +neologix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue13022] _multiprocessing.recvfd() doesn't check that file descriptor was actually received

2011-09-20 Thread David Watson
Changes by David Watson : Added file: http://bugs.python.org/file23215/recvfd-skip-reduction-fix.diff ___ Python tracker ___ ___ Python-bugs-l

[issue13022] _multiprocessing.recvfd() doesn't check that file descriptor was actually received

2011-09-20 Thread David Watson
New submission from David Watson : The function _multiprocessing.recvfd() calls recvmsg() and expects to receive a file descriptor in an SCM_RIGHTS control message, but doesn't check that such a control message is actually present. So if the sender sends data without an accompanying file descrip

[issue11682] PEP 380 reference implementation for 3.3

2011-09-20 Thread Zbyszek Szmek
Changes by Zbyszek Szmek : Added file: http://bugs.python.org/file23213/0002-Fix-references-to-__next__-__iter__-and-nearby-refer.patch ___ Python tracker ___ __

[issue11682] PEP 380 reference implementation for 3.3

2011-09-20 Thread Zbyszek Szmek
Changes by Zbyszek Szmek : Added file: http://bugs.python.org/file23212/0001-Document-the-yield-from-syntax-and-StopIteration-ret.patch ___ Python tracker ___ __

[issue11682] PEP 380 reference implementation for 3.3

2011-09-20 Thread Zbyszek Szmek
Changes by Zbyszek Szmek : Removed file: http://bugs.python.org/file23211/0002-Fix-references-to-__next__-__iter__-and-nearby-refer.patch ___ Python tracker ___

[issue11682] PEP 380 reference implementation for 3.3

2011-09-20 Thread Zbyszek Szmek
Changes by Zbyszek Szmek : Removed file: http://bugs.python.org/file23210/0001-Document-the-yield-from-syntax-and-StopIteration-ret.patch ___ Python tracker ___

[issue11682] PEP 380 reference implementation for 3.3

2011-09-20 Thread Zbyszek Szmek
Changes by Zbyszek Szmek : Added file: http://bugs.python.org/file23211/0002-Fix-references-to-__next__-__iter__-and-nearby-refer.patch ___ Python tracker ___ __

[issue11682] PEP 380 reference implementation for 3.3

2011-09-20 Thread Zbyszek Szmek
Zbyszek Szmek added the comment: Here are the un-reflowed documentation changes, as a patch this time. I've split the changes in two: 0001 is the real documentation change 0002 is the link fixes [optional]. -- Added file: http://bugs.python.org/file23210/0001-Document-the-yield-from-s

[issue13021] Resource is not released before returning from the function

2011-09-20 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue12961] itertools: unlabelled balls in boxes

2011-09-20 Thread Mark Dickinson
Mark Dickinson added the comment: > Mark: I disagree ... Okay, I misunderstood. I thought you were still talking about the unlabelled balls in labelled boxes problem, which is an isomorphic problem to that solved by combinations_with_replacement. It looks as though you're now widening the s

[issue13021] Resource is not released before returning from the function

2011-09-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7a48e98915f2 by Barry Warsaw in branch '3.2': - Issue #13021: Missing decref on an error path. Thanks to Suman Saha for http://hg.python.org/cpython/rev/7a48e98915f2 New changeset ad0804d3dbd0 by Barry Warsaw in branch 'default': - Issue #13021: M

[issue13021] Resource is not released before returning from the function

2011-09-20 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- title: Resource is not released before returning from the functiion -> Resource is not released before returning from the function ___ Python tracker ___

[issue12961] itertools: unlabelled balls in boxes

2011-09-20 Thread Phillip Feldman
Phillip Feldman added the comment: Mark: I disagree with your claim that "in its basic form, this is covered by itertools.combinations". If you open the attached text on elementary combinatorics and go to page 11, you will see a table that lays out six of the eight most basic types of occupa

[issue13013] Resource is not released before returning from the functiion

2011-09-20 Thread Mark Dickinson
Changes by Mark Dickinson : -- components: +ctypes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue12981] rewrite multiprocessing (senfd|recvfd) in Python

2011-09-20 Thread Charles-François Natali
Charles-François Natali added the comment: I committed the patch to catch the ImportError in test_multiprocessing. I'll commit the other patch (pure Python version) in a couple days. > Ah, no, you're right - that's fine. Sorry for the false alarm. No problem. As they say, "better safe than so

[issue12981] rewrite multiprocessing (senfd|recvfd) in Python

2011-09-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1d91a3ba5c87 by Charles-François Natali in branch 'default': Issue #12981: test_multiprocessing: catch ImportError when importing http://hg.python.org/cpython/rev/1d91a3ba5c87 -- nosy: +python-dev ___ Py

[issue12996] multiprocessing.Connection endianness issue

2011-09-20 Thread Charles-François Natali
Changes by Charles-François Natali : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue13021] Resource is not released before returning from the functiion

2011-09-20 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Suman, good eye, confirmed! Thanks for the patch, I'll commit this to 3.2 and 3.3. -- assignee: -> barry ___ Python tracker ___ ___

[issue13012] Allow keyword argument in str.splitlines()

2011-09-20 Thread Mark Dickinson
Changes by Mark Dickinson : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue13012] Allow keyword argument in str.splitlines()

2011-09-20 Thread Mark Dickinson
Mark Dickinson added the comment: Here's a patch. -- keywords: +patch Added file: http://bugs.python.org/file23208/issue13012.patch ___ Python tracker ___ __

[issue12996] multiprocessing.Connection endianness issue

2011-09-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9c1c81d24e23 by Charles-François Natali in branch 'default': Issue #12996: multiprocessing.connection: transmit the header in network byte http://hg.python.org/cpython/rev/9c1c81d24e23 -- nosy: +python-dev _

[issue12993] prepared statements in sqlite3 module

2011-09-20 Thread Mayur & Angela Patel-Lam
Mayur & Angela Patel-Lam added the comment: Okay, I missed that in the documentation. I was looking for a handle to a prepared statement. I suppose it's hashing on the text of the SQL statement to determine equivalence? I'm willing to retract the request. I need to restructure my code a litt

[issue13021] Resource is not released before returning from the functiion

2011-09-20 Thread STINNER Victor
STINNER Victor added the comment: It's not me, it's Barry! (PEP 3147: 7b69e630d237) -- nosy: +barry ___ Python tracker ___ ___ Python

[issue13008] syntax error when pasting valid snippet into console without empty string after the function def

2011-09-20 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti versions: -Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue13020] Resource is not released before returning from the functiion

2011-09-20 Thread Ezio Melotti
Ezio Melotti added the comment: Hi, thanks for the report(s) and the patch(es)! I think it would be better to have a test that shows the refleak for each of the patches that you submitted. Just out of curiosity, how did you find these? -- nosy: +ezio.melotti stage: -> test needed ___

[issue13021] Resource is not released before returning from the functiion

2011-09-20 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: patch review -> test needed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13021] Resource is not released before returning from the functiion

2011-09-20 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +haypo stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue13021] Resource is not released before returning from the functiion

2011-09-20 Thread Suman Saha
New submission from Suman Saha : Something that is allocated using PyUnicode_DecodeFSDefault is not freed on one error path. -- files: python_patch9 messages: 144338 nosy: Suman.Saha priority: normal severity: normal status: open title: Resource is not released before returning from the

[issue13020] Resource is not released before returning from the functiion

2011-09-20 Thread Suman Saha
New submission from Suman Saha : Something that is allocated using PySequence_Fast is not freed on one error path. -- files: python_patch8 messages: 144337 nosy: Suman.Saha priority: normal severity: normal status: open title: Resource is not released before returning from the functiion

[issue13019] Resource is not released before returning from the functiion

2011-09-20 Thread Suman Saha
New submission from Suman Saha : 1. Something that is allocated using PyObject_GetIter is not freed on one error path. 2. Something that is allocated using PyByteArray_FromStringAndSize is not freed on one error path -- files: python_patch7 messages: 144336 nosy: Suman.Saha priority: n

[issue13018] Resource is not released before returning from the functiion

2011-09-20 Thread Suman Saha
New submission from Suman Saha : Something that is allocated using PyObject_CallObjec is not freed on one or more error paths. -- files: python_patch6 messages: 144335 nosy: Suman.Saha priority: normal severity: normal status: open title: Resource is not released before returning from th

[issue13017] Resource is not released before returning from the functiion

2011-09-20 Thread Suman Saha
New submission from Suman Saha : Something that is allocated using conv_content_model is not freed on one error path. -- files: python_patch5 messages: 144334 nosy: Suman.Saha priority: normal severity: normal status: open title: Resource is not released before returning from the functi

[issue13016] Resource is not released before returning from the functiion

2011-09-20 Thread Suman Saha
New submission from Suman Saha : Something that is allocated using PySequence_Fast is not freed on one error path. -- files: python_patch4 messages: 144333 nosy: Suman.Saha priority: normal severity: normal status: open title: Resource is not released before returning from the functiion

[issue13015] Resource is not released before returning from the functiion

2011-09-20 Thread Suman Saha
New submission from Suman Saha : Something that is allocated using PyDict_Type.tp_repr is not freed on one error path. -- files: python_patch3 messages: 144332 nosy: Suman.Saha priority: normal severity: normal status: open title: Resource is not released before returning from the funct

[issue13014] Resource is not released before returning from the functiion

2011-09-20 Thread Suman Saha
New submission from Suman Saha : Something that is allocated using PyList_New is not freed on one error path. -- files: python_patch2 messages: 144331 nosy: Suman.Saha priority: normal severity: normal status: open title: Resource is not released before returning from the functiion type:

[issue13013] Resource is not released before returning from the functiion

2011-09-20 Thread Suman Saha
New submission from Suman Saha : Something that is allocated using PyTuple_Pack is not freed on one error path. -- files: python_patch1 messages: 144330 nosy: Suman.Saha priority: normal severity: normal status: open title: Resource is not released before returning from the functiion typ

[issue13008] syntax error when pasting valid snippet into console without empty string after the function def

2011-09-20 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2011-09-20 Thread Meador Inge
Changes by Meador Inge : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue13012] Allow keyword argument in str.splitlines()

2011-09-20 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue13012] Allow keyword argument in str.splitlines()

2011-09-20 Thread Meador Inge
Meador Inge added the comment: +1; the keyword arg version is much more readable. -- nosy: +meador.inge ___ Python tracker ___ ___ Py

[issue13012] Allow keyword argument in str.splitlines()

2011-09-20 Thread Alex Gaynor
Alex Gaynor added the comment: Personally, I regard every C function which, for obscure internal details, doesn't take keyword arguments as a sad bug, which should of course be fixed :) -- nosy: +alex ___ Python tracker

[issue13012] Allow keyword argument in str.splitlines()

2011-09-20 Thread Mark Dickinson
Mark Dickinson added the comment: > (And applying the same change to bytes.splitlines.) Oh, and bytearray.splitlines, too. -- ___ Python tracker ___ ___

[issue13012] Allow keyword argument in str.splitlines()

2011-09-20 Thread Mark Dickinson
New submission from Mark Dickinson : The docstring of str.splitlines says: splitlines(...) S.splitlines([keepends]) -> list of strings Return a list of the lines in S, breaking at line boundaries. Line breaks are not included in the resulting list unless keepends is given an

[issue11682] PEP 380 reference implementation for 3.3

2011-09-20 Thread Nick Coghlan
Nick Coghlan added the comment: I have updated the bitbucket repo with changes to address most of Benjamin's review comments. A few points of note: - I agree in principle with the idea of splitting Yield and YieldFrom into distinct AST nodes, but I'd prefer to focus on getting the current im

[issue12991] Python 64-bit build on HP Itanium - Executable built successfully but modules failed with HP Compiler

2011-09-20 Thread Wong Wah Meng
Wong Wah Meng added the comment: Thanks! I am gonna try this out again. Actually I noticed this when you mentioned about using cc as the linker front end. I followed instruction in the README file, after I edited Makefile to remove the -O Limit 1500 line, and after python executable is bui

[issue5178] Add context manager for temporary directory

2011-09-20 Thread Ugra Dániel
Changes by Ugra Dániel : -- nosy: +daniel.ugra ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue11682] PEP 380 reference implementation for 3.3

2011-09-20 Thread Nick Coghlan
Changes by Nick Coghlan : Added file: http://bugs.python.org/file22616/pep380-missing-docs.diff ___ Python tracker ___ ___ Python-bugs-list ma

[issue12991] Python 64-bit build on HP Itanium - Executable built successfully but modules failed with HP Compiler

2011-09-20 Thread Stefan Krah
Stefan Krah added the comment: The README looks outdated. This isn't surprising, since probably no one here has access to the HP compiler. If you want to improve it, please try this: make distclean ./configure CC=cc CFLAGS="+DD64" make test I don't think the linker should be invoked as 'ld'

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2011-09-20 Thread Nick Coghlan
Nick Coghlan added the comment: Attached patch should now be complete, including the documentation for the new keyword-only 'file' parameter on various dis module functions. -- Added file: http://bugs.python.org/file23197/issue11816_get_opinfo_branch_20110920.diff ___

[issue11682] PEP 380 reference implementation for 3.3

2011-09-20 Thread Nick Coghlan
Changes by Nick Coghlan : Removed file: http://bugs.python.org/file22616/pep380-missing-docs.diff ___ Python tracker ___ ___ Python-bugs-list

[issue13004] pprint: add option to truncate sequences

2011-09-20 Thread Nick Coghlan
Changes by Nick Coghlan : -- dependencies: +general pprint rewrite ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue12930] reindent.py inserts spaces in multiline literals

2011-09-20 Thread Dima Tisnek
Dima Tisnek added the comment: Thanks Caio, your test case covers my issue; seeing these spelt out got me thinking, there are perhaps 3~4 different cases: def f0(): s = """select some sql from somewhere; -- cannot be reindented""" def f1(): """ Multiline text docstring should be rein

[issue12991] Python 64-bit build on HP Itanium - Executable built successfully but modules failed with HP Compiler

2011-09-20 Thread Wong Wah Meng
Wong Wah Meng added the comment: I think there is something that is not working here at least for the instructions in build README file about setting up 4 environment variables required for HP Itanium 64-bit build using HP compilers. CC=cc CXX=aCC