[issue10461] Use with statement throughout the docs

2010-12-20 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: I've already made the change, Terry, just holding off committing it because Georg has frozen the py3k branch until 3.2b2 is released. There are a few other changes I'm making, will commit these soon after 3.2b2 is released. --

[issue4761] create Python wrappers for openat() and others

2010-12-20 Thread Matt Joiner
Changes by Matt Joiner anacro...@gmail.com: -- nosy: +anacrolix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4761 ___ ___ Python-bugs-list

[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-12-20 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Le lundi 20 décembre 2010 07:55:08, vous avez écrit : +#define NFAULT_SIGNALS (sizeof(fault_signals) / sizeof(fault_signals[0])) +static fault_handler_t fault_handlers[4]; , should use NFAULT_SIGNALS instead of 4. Ah yes,

[issue10739] Subprocess behavior on Windows

2010-12-20 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: This might be an example of the general problem that on windows, sockets and files don't mix well. You can't use a file in a select call, either. I think there are two possibilities here: either makefile doesn't produce anything very

[issue10694] zipfile.py end of central directory detection not robust

2010-12-20 Thread Kevin Hendricks
Kevin Hendricks kevin.hendri...@sympatico.ca added the comment: I have not looked at how other tools handle this. They could simply ignore what comes after a valid endrecdata is found, they could strip it out (truncate it) or make it into a final comment. I guess for simply unpacking a zip

[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-12-20 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: The fault handler is unable to retrieve the thread state if the GIL is released. I will try to fix that. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8863

[issue10739] Subprocess behavior on Windows

2010-12-20 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: Since the code in subprocess gets the underlying fileno of the file-like object (line 819 of subprocess.py), I presume it is an example of the general problem of files and sockets not mixing very well on Windows. So, I have attached a

[issue10694] zipfile.py end of central directory detection not robust

2010-12-20 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: It's pretty easy, really, to do an SVN checkout of python and compile it on a mac, if you are at all familiar with the unix command line. If you don't have the time or desire for that, though, someone will eventually get to it, we just

[issue10694] zipfile.py end of central directory detection not robust

2010-12-20 Thread Kevin Hendricks
Kevin Hendricks kevin.hendri...@sympatico.ca added the comment: Been programming on unix/vax and then linux since the mid 80s and on punch cards in the late 70s. Grew my first beard writing 8080 and Z80 assembler. All of that was over 30 years ago. All I want to do is report a damn bug!

[issue10087] HTML calendar is broken

2010-12-20 Thread Ron Adam
Changes by Ron Adam ron_a...@users.sourceforge.net: -- nosy: +ron_adam ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10087 ___ ___

[issue10740] sqlite3 module should allow DDL statements in transactions

2010-12-20 Thread Scott Urban
New submission from Scott Urban scott.ur...@isilon.com: The python sqlite module automatically commits open transactions when it encounters a DDL statement. This is unnecessary; DDL is transactional in my testing (see attached). Attached patch addresses the issue. Patch is against 2.6.1, but

[issue10740] sqlite3 module should allow DDL statements in transactions

2010-12-20 Thread Scott Urban
Scott Urban scott.ur...@isilon.com added the comment: Here are some tests. -- Added file: http://bugs.python.org/file20119/test_sqlite_ddl.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10740

[issue10741] PyGILState_GetThisThreadState() lacks a doc entry

2010-12-20 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: PyGILState_GetThisThreadState() is documented in Include/pystate.h but not in the official docs. It should be documented along PyGILState_Ensure() and friends. -- assignee: d...@python components: Documentation messages: 124394 nosy:

[issue10739] Subprocess behavior on Windows

2010-12-20 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I think I'll leave that decision up to the doc crew. My thought was that makefile was supposedly returning a file, therefore it was appropriate to document there that it wasn't really a file on windows, whereas subprocess docs are only

[issue10694] zipfile.py end of central directory detection not robust

2010-12-20 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Sorry, I thought I was being clear that if you *wanted* to help further here was how you could, but if you didn't then we'd get to it eventually. We're all volunteers here, just like you, so every bit of help...helps, and we thank you

[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-12-20 Thread Scott Dial
Scott Dial sc...@scottdial.com added the comment: On 12/20/2010 8:30 AM, STINNER Victor wrote: Write into a closed file descriptor just does nothing. Closed file descriptors are not a problem. My issue not with a closed file descriptor, it is with an open file descriptor that is not what

[issue10740] sqlite3 module should allow DDL statements in transactions

2010-12-20 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: See also Issue 8145. It would be nice if someone could sort all this out, but I'm not knowledgeable enough to do so. For this patch, it would be a significant change it behaviour. Therefore it would have to be a new feature controlled

[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-12-20 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The problem is to detect that stderr file descriptor changes (eg. closed, duplicated, reopened, etc.). I don't think that it's possible to detect such changes (with a portable function). When I said that, I hadn't fully investigated

[issue10557] Malformed error message from float()

2010-12-20 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- versions: +Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10557 ___

[issue10715] uninformative error message

2010-12-20 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- components: +IO nosy: +eric.araujo versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10715

[issue10728] argparse.ArgumentParser.print_help uses sys.stdout

2010-12-20 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Alright, I didn’t know you were doing mass merges. I personally prefer to leave reports open until backported, now I’ll know your habits. -- ___ Python tracker rep...@bugs.python.org

[issue8145] Documentation about sqlite3 isolation_level

2010-12-20 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: Removed file: http://bugs.python.org/file17940/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8145 ___

[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map

2010-12-20 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: +1 on adding SVG types in 3.2 or 3.3. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10730 ___

[issue10254] unicodedata.normalize('NFC', s) regression

2010-12-20 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Attached patch, issue10254a.diff, adds the OP's cases to test_unicodedata and changes the code as I suggested in msg124173 because ISTM that comb = comb1 matches the pr-29 definition: D2'. In any character sequence

[issue3871] cross and native build of python for mingw32 with distutils

2010-12-20 Thread alesko
Changes by alesko askon...@gmail.com: -- nosy: +alesko ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3871 ___ ___ Python-bugs-list mailing list

[issue10742] memoryview.readonly attribute is not documented

2010-12-20 Thread flashk
New submission from flashk fla...@gmail.com: The 'readonly' attribute is not explicitly described, even though it is used in the sample code for the memoryview type. I've attached a patch that adds a description of the 'readonly' attribute. -- assignee: d...@python components:

[issue1243654] Faster output if message already has a boundary

2010-12-20 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Turns out there's a bug in my version of the patch, and no test in the email test suite traversed that code path. Attached patch fixes this; I'll commit and backport after trunk unfreezes. Note that the backport contains a second bug

[issue10743] 3.2's sysconfig doesn't work with virtualenv

2010-12-20 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar sridh...@activestate.com: From http://code.google.com/p/virtualenv5/issues/detail?id=6 - it seems that the `sysconfig` module is looking for Makefile in wrong directory, while ideally it must be looking into the base Python install. import sysconfig;

[issue10744] ctypes arrays have incorrect buffer information (PEP-3118)

2010-12-20 Thread Pauli Virtanen
New submission from Pauli Virtanen p...@iki.fi: Ctypes arrays have invalid buffer interface information (on Python 3.1.2): import ctypes x = (ctypes.c_double*2)() y = memoryview(x) y.shape (2,) y.format '(2)d' This implies that the array contains 2 items, each consisting of 2 floats,

[issue10740] sqlite3 module should allow DDL statements in transactions

2010-12-20 Thread Scott Urban
Scott Urban scott.ur...@isilon.com added the comment: I find the way that the sqlite3 module handles transactions pretty surprising in general, but I agree that someone who got used to DDL not rolling back could in theory find this patch surprising. We will apply this patch to our python build

[issue10745] --user option, per user site-packages undocumented in Installing Python Modules document

2010-12-20 Thread Chris Lasher
New submission from Chris Lasher chris.las...@gmail.com: Python 2.6 saw the introduction of per user site-packages directory for easy installation of Python packages into a guaranteed location in which the user has appropriate permissions. http://bugs.python.org/issue1799

[issue10087] HTML calendar is broken

2010-12-20 Thread Ron Adam
Ron Adam ron_a...@users.sourceforge.net added the comment: The problem is in the following line... return ''.join(v).encode(encoding, xmlcharrefreplace) The .encode(encoding, xmlcharrefreplace) is returning a bytes object. Here is the simplest change to resolve the problem. return

[issue10745] setup.py install --user option undocumented

2010-12-20 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- assignee: tarek - eric.araujo components: +Distutils2 -Distutils title: --user option, per user site-packages undocumented in Installing Python Modules document - setup.py install --user option undocumented versions: +3rd party -Python 2.6,

[issue10087] HTML calendar is broken

2010-12-20 Thread Chris Lambacher
Chris Lambacher ch...@kateandchris.net added the comment: Sorry in advance for the long winded response. Ron, have you looked at my patch? The underlying issue is that the semantics for print() between Python 1 and 3. print() does not accept a bytes type in Python 3. In Python 2 str was a

[issue10746] ctypes c_long c_bool have incorrect PEP-3118 type codes

2010-12-20 Thread Pauli Virtanen
New submission from Pauli Virtanen p...@iki.fi: Currently on Python 3.x: import ctypes memoryview(ctypes.c_long()).format 'l' This is invalid on 64-bit platforms: the above means 32-bit little-endian float. The '' endian specification turns on the standard size mode (similarly as for the

[issue10746] ctypes c_long c_bool have incorrect PEP-3118 type codes

2010-12-20 Thread Pauli Virtanen
Changes by Pauli Virtanen p...@iki.fi: -- assignee: - theller components: +ctypes nosy: +theller type: - behavior versions: +Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10746

[issue10743] 3.2's sysconfig doesn't work with virtualenv

2010-12-20 Thread Ned Deily
Ned Deily n...@acm.org added the comment: That does seem to be a regression since distutils.sysconfig works correctly in a virtualenv: $ python3.2 -c 'import distutils.sysconfig;print(distutils.sysconfig.get_makefile_filename())'

[issue10743] 3.2's sysconfig doesn't work with virtualenv

2010-12-20 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Setting to deferred blocker for 3.2 release manager evaluation. -- nosy: +georg.brandl priority: normal - deferred blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10743

[issue10740] sqlite3 module should allow DDL statements in transactions

2010-12-20 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10740 ___ ___

[issue10087] HTML calendar is broken

2010-12-20 Thread Ron Adam
Ron Adam ron_a...@users.sourceforge.net added the comment: Oops. You're right. I miss understood how the encode method works in this particular case. ;-/ I agree with your comments as well. -- ___ Python tracker rep...@bugs.python.org

[issue10715] uninformative error message

2010-12-20 Thread Phillip M. Feldman
Phillip M. Feldman phillip.m.feld...@gmail.com added the comment: I eventually determined that a call to `subprocess.Popen` was responsible for the message, but could have determined this much more quickly if the message had included the name of the file that could not be opened (executed).

[issue10715] uninformative error message

2010-12-20 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: Removed file: http://bugs.python.org/file20125/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10715 ___

[issue10715] uninformative error message

2010-12-20 Thread Phillip M. Feldman
Phillip M. Feldman phillip.m.feld...@gmail.com added the comment: Why was this removed? On Mon, Dec 20, 2010 at 8:30 PM, Alexander Belopolsky rep...@bugs.python.org wrote: Changes by Alexander Belopolsky belopol...@users.sourceforge.net: Removed file:

[issue10254] unicodedata.normalize('NFC', s) regression

2010-12-20 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Mon, Dec 20, 2010 at 2:50 PM, Alexander Belopolsky rep...@bugs.python.org wrote: .. Unfortunately, all tests pass with either comb = comb1 or comb == comb1, so before I commit, I would like to figure out the test