[issue10461] Use with statement throughout the docs

2010-12-20 Thread Vinay Sajip
Vinay Sajip 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 : -- nosy: +anacrolix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

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

2010-12-20 Thread STINNER Victor
STINNER Victor 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, NFAULT_SIGNALS is a better

[issue10739] Subprocess behavior on Windows

2010-12-20 Thread R. David Murray
R. David Murray 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 useful on windows, or t

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

2010-12-20 Thread Kevin Hendricks
Kevin Hendricks 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 archive, all of these are equ

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

2010-12-20 Thread STINNER Victor
STINNER Victor 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 ___

[issue10739] Subprocess behavior on Windows

2010-12-20 Thread Ross Lagerwall
Ross Lagerwall 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 patch to document this i

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

2010-12-20 Thread R. David Murray
R. David Murray 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 don't know when ;) -

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

2010-12-20 Thread Kevin Hendricks
Kevin Hendricks 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! Then I get nudged for a test c

[issue10087] HTML calendar is broken

2010-12-20 Thread Ron Adam
Changes by Ron Adam : -- nosy: +ron_adam ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue10740] sqlite3 module should allow DDL statements in transactions

2010-12-20 Thread Scott Urban
New submission from Scott Urban : 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 looking at Trunk in svn,

[issue10740] sqlite3 module should allow DDL statements in transactions

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

[issue10741] PyGILState_GetThisThreadState() lacks a doc entry

2010-12-20 Thread Antoine Pitrou
New submission from Antoine Pitrou : 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: d...@python,

[issue10739] Subprocess behavior on Windows

2010-12-20 Thread R. David Murray
R. David Murray 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 talking about files,

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

2010-12-20 Thread R. David Murray
R. David Murray 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 sincerely for taking t

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

2010-12-20 Thread Scott Dial
Scott Dial 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 you think it is.

[issue10740] sqlite3 module should allow DDL statements in transactions

2010-12-20 Thread R. David Murray
R. David Murray 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 by a flag of some sor

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

2010-12-20 Thread Antoine Pitrou
Antoine Pitrou 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 the i

[issue10557] Malformed error message from float()

2010-12-20 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- versions: +Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue10715] uninformative error message

2010-12-20 Thread Éric Araujo
Changes by Éric Araujo : -- components: +IO nosy: +eric.araujo versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker ___ __

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

2010-12-20 Thread Éric Araujo
Éric Araujo 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

[issue8145] Documentation about sqlite3 isolation_level

2010-12-20 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file17940/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

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

2010-12-20 Thread Éric Araujo
Éric Araujo added the comment: +1 on adding SVG types in 3.2 or 3.3. -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-lis

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

2010-12-20 Thread Alexander Belopolsky
Alexander Belopolsky 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 beginning with a starter S, a cha

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

2010-12-20 Thread alesko
Changes by alesko : -- nosy: +alesko ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mail

[issue10742] memoryview.readonly attribute is not documented

2010-12-20 Thread flashk
New submission from flashk : 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: Documentation files: std

[issue1243654] Faster output if message already has a boundary

2010-12-20 Thread R. David Murray
R. David Murray 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 (calls self._make_bound

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

2010-12-20 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar : >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; sysconfig.get_paths('p

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

2010-12-20 Thread Pauli Virtanen
New submission from Pauli Virtanen : 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)http://projects.scipy.org/numpy/ticket/1699) -- assignee: theller compo

[issue10740] sqlite3 module should allow DDL statements in transactions

2010-12-20 Thread Scott Urban
Scott Urban 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 because having DDL cove

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

2010-12-20 Thread Chris Lasher
New submission from Chris Lasher : 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 http://www.python.org/dev/peps/pep-0370/ ht

[issue10087] HTML calendar is broken

2010-12-20 Thread Ron Adam
Ron Adam 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 str(''.join(v).encode(encodin

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

2010-12-20 Thread Éric Araujo
Changes by Éric Araujo : -- 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, Python 2.7, Pyth

[issue10087] HTML calendar is broken

2010-12-20 Thread Chris Lambacher
Chris Lambacher 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 "bytes" type and so print

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

2010-12-20 Thread Pauli Virtanen
New submission from Pauli Virtanen : Currently on Python 3.x: >>> import ctypes >>> memoryview(ctypes.c_long()).format 'http://bugs.python.org/issue10744 ): >>> import numpy as np >>> from ctypes import * >>> class Point(Structure): ... _fields_ = [("x", c_long), ("y", c_long)] ... >>> cla

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

2010-12-20 Thread Pauli Virtanen
Changes by Pauli Virtanen : -- assignee: -> theller components: +ctypes nosy: +theller type: -> behavior versions: +Python 3.1, Python 3.2, Python 3.3 ___ Python tracker ___ __

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

2010-12-20 Thread Ned Deily
Ned Deily 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())' /Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/config-3.2m/

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

2010-12-20 Thread Ned Deily
Ned Deily added the comment: Setting to deferred blocker for 3.2 release manager evaluation. -- nosy: +georg.brandl priority: normal -> deferred blocker ___ Python tracker ___ _

[issue10740] sqlite3 module should allow DDL statements in transactions

2010-12-20 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue10087] HTML calendar is broken

2010-12-20 Thread Ron Adam
Ron Adam 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 ___

[issue10715] uninformative error message

2010-12-20 Thread Phillip M. Feldman
Phillip M. Feldman 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). Phillip On Mon, Dec 20, 2010 a

[issue10715] uninformative error message

2010-12-20 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file20125/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue10715] uninformative error message

2010-12-20 Thread Phillip M. Feldman
Phillip M. Feldman 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 : > > > Removed file: http://bugs.python.org/file20125/unnamed > > ___ > Py

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

2010-12-20 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Mon, Dec 20, 2010 at 2:50 PM, Alexander Belopolsky wrote: .. > Unfortunately, all tests pass with either comb >= comb1 or comb == comb1, so > before > I commit, I would like to figure out the test case that would properly > exercise this code. > Aft