[issue8045] test_tcl aborts on OS X 10.6 with "The application with bundle ID org.python.python is running setugid(), which is not allowed."

2010-03-05 Thread Gregory P. Smith
Gregory P. Smith added the comment: See trunk r78718 for my proposed fix. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue8079] make install fails with -j8 with python2.6/config on FreeBSD

2010-03-05 Thread Garrett Cooper
Changes by Garrett Cooper : Added file: http://bugs.python.org/file16468/clean.log ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue8079] make install fails with -j8 with python2.6/config on FreeBSD

2010-03-05 Thread Garrett Cooper
Changes by Garrett Cooper : Added file: http://bugs.python.org/file16467/all.log ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue8075] Windows (Vista/7) install error when choosing to compile .py files

2010-03-05 Thread Martin v . Löwis
Martin v. Löwis added the comment: This will be difficult to fix. Contributions are welcome. -- nosy: +loewis ___ Python tracker ___ _

[issue8079] make install fails with -j8 with python2.6/config on FreeBSD

2010-03-05 Thread Garrett Cooper
New submission from Garrett Cooper : When attempting to install and deinstall lang/python26 to run some unit tests for a change I was going to provide to the maintainer, I ran into this issue: install -o root -g wheel -m 444 ./../Include/ucnhash.h /usr/local/include/python2.6 install -o root -

[issue7449] A number tests "crash" if python is compiled --without-threads

2010-03-05 Thread Jerry Seutter
Jerry Seutter added the comment: I'll break up the patch into multiple files as well. It will make it easier to deal with if I cause a regression. -- ___ Python tracker ___ ___

[issue7449] A number tests "crash" if python is compiled --without-threads

2010-03-05 Thread Jerry Seutter
Jerry Seutter added the comment: I think the latest (v3) patch is in pretty good shape. You and David have been through the changes and the result is a much improved set of changes. If you want (and you're okay with it), I can commit the changes from here and take the beating if it makes th

[issue8078] add more baud constants to termios

2010-03-05 Thread Jon Smirl
New submission from Jon Smirl : termios doesn't have the constants defined for higher baud rates on Linux. According to my bits/termios.h: #define B57600 0010001 #define B115200 0010002 #define B230400 0010003 #define B460800 0010004 #define B50 0010005 #define B576000 0010006 #

[issue8073] Test fail for sha512

2010-03-05 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- assignee: -> gregory.p.smith nosy: +gregory.p.smith -gps ___ Python tracker ___ ___ Python-bugs-list

[issue7449] A number tests "crash" if python is compiled --without-threads

2010-03-05 Thread STINNER Victor
STINNER Victor added the comment: I'm applying fixes one by one in my local git-svn repository. I will commit them (in one huge patch \o/) when I'm done, or maybe post a new version of the patch (if I'm too scared of the patch). -- ___ Python track

[issue8073] Test fail for sha512

2010-03-05 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- components: +Extension Modules -Tests nosy: +gps type: -> crash ___ Python tracker ___ ___ Python-bugs-

[issue8047] Serialiser in ElementTree returns unicode strings in Py3k

2010-03-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: I don't know what compatibility you are talking about. Py3k deliberately breaks compatibility with many 2.x behaviours that were considered defective or suboptimal. -- nosy: +pitrou ___ Python tracker

[issue887237] Machine integers

2010-03-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Attaching a patch that is equivalent toissue887237.diff, but uses preprocessor to generate repetitive code. -- Added file: http://bugs.python.org/file16466/issue887237-macro.diff ___ Python tracker

[issue6509] re.py - encounter unexpected str-object

2010-03-05 Thread Ezio Melotti
Ezio Melotti added the comment: The patch looks OK. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue8076] sys.setfilesystemencoding('foo') causes segmentation fault

2010-03-05 Thread Ezio Melotti
Ezio Melotti added the comment: On 3.2 on Linux and 3.1 on Windows I get: [...] File "C:\Programmi\Python31\lib\encodings\__init__.py", line 98, in search_fun ction level=0) File "C:\Programmi\Python31\lib\encodings\__init__.py", line 98, in search_fun ction level=0) File "C:\Pro

[issue8077] cgi handling of POSTed files is broken

2010-03-05 Thread Mitchell Model
New submission from Mitchell Model : I am reluctant to post this because (a) I might have made some dumb mistake in my code, simple as it is, and (b) the problem might be well-known or even hopeless because the cgi module may not be WSGI compliant, but if this isn't going to be fixed then at l

[issue8062] PEP 3101 string formatting missing hexadecimal separator _ for every 4 hex digits

2010-03-05 Thread steven Michalske
steven Michalske added the comment: I'll work on a proposal for the ideas list. Other language examples to keep this in a thread though. perl -e 'print 0x1234_abcd; print "\n";' C/C++ seems to not support the underscore. Lua unsupported. Data sheets from micro controllers and other digital c

[issue8076] sys.setfilesystemencoding('foo') causes segmentation fault

2010-03-05 Thread Florent Xicluna
New submission from Florent Xicluna : >>> import sys >>> sys.setfilesystemencoding('foo') >>> open('something') Segmentation Fault -- components: Interpreter Core messages: 100507 nosy: flox priority: normal severity: normal stage: test needed status: open title: sys.setfilesystemencodin

[issue8075] Windows (Vista/7) install error when choosing to compile .py files

2010-03-05 Thread Brian Curtin
Changes by Brian Curtin : -- components: +Windows priority: -> high stage: -> needs patch type: -> behavior ___ Python tracker ___ _

[issue8075] Windows (Vista/7) install error when choosing to compile .py files

2010-03-05 Thread Brian Curtin
Brian Curtin added the comment: #6716 is a related issue, but isn't exactly a duplicate. -- nosy: +brian.curtin ___ Python tracker ___ ___

[issue5604] imp.find_module() mixes UTF8 and MBCS

2010-03-05 Thread Ezio Melotti
Ezio Melotti added the comment: I fixed all the things listed in the previous message in r78689, but that just enabled the test on several Linux buildbots and some started to fail too. In r78696 (and r78697) I tried to use sys.getfilesystemencoding() instead of locale.getpreferredencoding() an

[issue8075] Windows (Vista/7) install error when choosing to compile .py files

2010-03-05 Thread Eugene Baranov
New submission from Eugene Baranov : I tried installing Python 2.6.4 into Program Files in Windows 7 and choose to compile .py files after install. Installer correctly asks for a elevation and copies all fixes but it looks like compile batch are being started from initial, unelevated context.

[issue7460] extended slicing not sufficiently covered in docs

2010-03-05 Thread Lorenz Quack
Lorenz Quack added the comment: When I wrote this bug report I was mainly thinking about the C-API documentation which doesn't mention extended slicing at all. Since the C-API isn't mentioned in the other bug I don't think it's a duplicate but they could maybe be merged if you see any advantag

[issue7449] A number tests "crash" if python is compiled --without-threads

2010-03-05 Thread STINNER Victor
STINNER Victor added the comment: +1 to setup a buildbot, but only after all bugs are fixed :-) -- ___ Python tracker ___ ___ Python-b

[issue7460] extended slicing not sufficiently covered in docs

2010-03-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: This may be duplicative of #1446619, but I have not looked at that enough. I agree that revision is needed and will try to develop patch suggestions. -- nosy: +tjreedy versions: -Python 3.0 ___ Python tracker

[issue7449] A number tests "crash" if python is compiled --without-threads

2010-03-05 Thread R. David Murray
R. David Murray added the comment: I think it is a good idea, but someone has to set one up. -- ___ Python tracker ___ ___ Python-bugs

[issue7449] A number tests "crash" if python is compiled --without-threads

2010-03-05 Thread Jerry Seutter
Jerry Seutter added the comment: I think this issue is going to reoccur every time someone adds a unit test that relies on threading. What do you think about using a buildbot slave to run the tests with a non-multithreaded build of python? -- ___

[issue8068] OS X Installer: merge python2 and python3 build-installer.py script

2010-03-05 Thread Ned Deily
Ned Deily added the comment: Also note that these patches effectively take care of backporting to py3k and 31 the most recent installer script changes that were made to 2.6 and trunk in support of 10.6 and the newer universal build options. -- ___

[issue7449] A number tests "crash" if python is compiled --without-threads

2010-03-05 Thread Jerry Seutter
Jerry Seutter added the comment: Uploaded a new version of the patch, nothreads_3.patch. @r.david.murray - Good point about unittest.skipUnless, I didn't know about that function. I removed my decorator and used skipUnless() instead. @haypo: test_xmlrpc.py - Modified the URL changes so that

[issue887237] Machine integers

2010-03-05 Thread Thomas Heller
Thomas Heller added the comment: >> Code duplication is unavoidable because the goal is to give access to >> machine arithmetics which means (# types) x (# operations) of very >> similar looking functions. I considered reducing (perceived) code >> duplication through some pre-processor magic, bu

[issue8065] Memory leak in readline.get_current_history_length

2010-03-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Not directly related to the issue at hand, but I've noticed that while readline.get_current_history_length() is tested in the unittests, readline.get_history_length() is not. Attached patch adds tests for reading and writing history files. Also, I fin

[issue8074] Fail-fast behavior for unittest

2010-03-05 Thread Brian Curtin
Changes by Brian Curtin : -- assignee: -> michael.foord nosy: +michael.foord priority: -> normal stage: -> needs patch versions: -Python 3.1, Python 3.3 ___ Python tracker ___

[issue8074] Fail-fast behavior for unittest

2010-03-05 Thread Cliff Dyer
Cliff Dyer added the comment: This feature was implemented in the django test runner as [r12034](http://code.djangoproject.com/changeset/12034) (^C override) and [r11843](http://code.djangoproject.com/changeset/11843) (failfast option) -- ___ Pytho

[issue8074] Fail-fast behavior for unittest

2010-03-05 Thread Cliff Dyer
New submission from Cliff Dyer : When a long suite of tests is running, it would be nice to be able to exit out early to see the results of the tests that have run so far. I would like to see a couple of features included in `unittest` to this effect that have recently been implemented in dj

[issue8065] Memory leak in readline.get_current_history_length

2010-03-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Note the following comment elsewhere in Modules/readline.c: /* the history docs don't say so, but the address of state changes each time history_get_history_state

[issue8032] Add gdb7 hooks to make it easier to debug Python

2010-03-05 Thread Dave Malcolm
Dave Malcolm added the comment: (I faxed in my contributor agreement to the PSF on 2010-03-03) -- ___ Python tracker ___ ___ Python-bu

[issue7670] _sqlite3: Block *all* operations on a closed Connection object

2010-03-05 Thread Gerhard Häring
Gerhard Häring added the comment: As requested per Barry, marking this as release blocker for 2.6. -- keywords: +26backport priority: -> release blocker stage: patch review -> commit review status: closed -> open ___ Python tracker

[issue8071] test message

2010-03-05 Thread Skip Montanaro
Skip Montanaro added the comment: I don't know, but it's quite possible. Lots of messages were held for moderation. It's possible that some were rejected as spam. -- ___ Python tracker ___

[issue8073] Test fail for sha512

2010-03-05 Thread Chris Lieb
New submission from Chris Lieb : I am building Python 2.6.4 with GCC 4.2.1 (SUSE Linux, kernel 2.6.22.19-0.4-default) on a shared server and am encountering test failures in test_hashlib.py and test_hmac.py, specifically concerning sha512. I recompiled Python with --with-pydebug and CLFAGS=CPP

[issue7670] _sqlite3: Block *all* operations on a closed Connection object

2010-03-05 Thread STINNER Victor
STINNER Victor added the comment: Commit numbers: r78688 (trunk), r78698 (py3k), r78699 (2.6), r78700 (3.1). 2.6 branch is froze because 2.6.5RC1 was released and 2.6.5 final is planned for next week. Ask barry if you should revert your commit or not r78699. -- nosy: +barry _

[issue7670] _sqlite3: Block *all* operations on a closed Connection object

2010-03-05 Thread Gerhard Häring
Gerhard Häring added the comment: Now also fixed in 2.6 and 3.1 maintenance branches. -- ___ Python tracker ___ ___ Python-bugs-list m

[issue7774] sys.executable: wrong location if zeroth command argument is modified.

2010-03-05 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue1693050] \w not helpful for non-Roman scripts

2010-03-05 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue8064] Large regex handling very slow on Linux

2010-03-05 Thread Michael Foord
Michael Foord added the comment: Interestingly, the code olivers is using was originally written by Martin v. Loewis: http://www.velocityreviews.com/forums/t646421-unicode-regex-and-hindi-language.html In response to a still open bug report on \w in the Python re module: http://bugs.python.o

[issue8071] test message

2010-03-05 Thread R. David Murray
R. David Murray added the comment: Does this mean you think you've fixed whatever was causing metatracker bug 320? (http://psf.upfronthosting.co.za/roundup/meta/issue320). -- nosy: +r.david.murray ___ Python tracker

[issue8072] Test #2

2010-03-05 Thread Skip Montanaro
Skip Montanaro added the comment: Test successful... -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Pyth

[issue8072] Test #2

2010-03-05 Thread Skip Montanaro
New submission from Skip Montanaro : After training a bunch of mail held for python-bugs-list I'm trying another post to see how well SpamBayes likes it. Skip -- messages: 100482 nosy: skip.montanaro severity: normal status: open title: Test #2 ___ P

[issue8071] test message

2010-03-05 Thread Ezio Melotti
Ezio Melotti added the comment: It seems it went in the right place. This message has a SpamBayes Score of 0.00451466. -- nosy: +ezio.melotti resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue8071] test message

2010-03-05 Thread Skip Montanaro
New submission from Skip Montanaro : I don't know where this will go given that it's not a response to an existing bug report. I'm looking to see if the SpamBayes instance on mail.python.org processes this message. Someone please respond to let me know if this address is working properly again

[issue8054] "as_string" method in email's mime objects encode text segmentedly

2010-03-05 Thread R. David Murray
R. David Murray added the comment: We don't fully support setting defaultencoding to anything other than ASCII. The test suite doesn't fully pass, for example, if defaultencoding is set to 'utf-8' in site.py. But that aside, the documentation for MIMEText says: "No guessing or encoding is p

[issue8069] struct documentation problem and suggestion to add fixed size formats

2010-03-05 Thread Mark Dickinson
Mark Dickinson added the comment: Well, it's a bug inasmuch as the docs aren't as clear as they could be.I've got issue 7355 open to remind me to do something about that, though, so this one can probably be closed. -- resolution: -> invalid status: open -> closed ___

[issue8069] struct documentation problem and suggestion to add fixed size formats

2010-03-05 Thread Jeremy Sanders
Jeremy Sanders added the comment: Sorry - I didn't read the docs clearly enough. This probably isn't a bug then. Can you mark it invalid? -- ___ Python tracker ___ _

[issue6697] Check that _PyUnicode_AsString() result is not NULL

2010-03-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: About the _PyUnicode_AsStringOrDefault() patch: Since the _PyUnicode_AsString*() APIs are scheduled to be removed, it would be better to not introduce yet another way to use them. If that's not easily possible now, then please fix the indentation (Tabs vs

[issue8069] struct documentation problem and suggestion to add fixed size formats

2010-03-05 Thread Mark Dickinson
Mark Dickinson added the comment: Oops. In "... struct format string doesn't start with.. " in my comment above, replace "doesn't start with" with "starts with". -- ___ Python tracker

[issue6697] Check that _PyUnicode_AsString() result is not NULL

2010-03-05 Thread STINNER Victor
STINNER Victor added the comment: Patch for pythonrun.c: - catch _PyUnicode_AsString() error in get_codeset(): very unlikely, codeset is the result of nl_langinfo() and is ASCII only - catch _PyUnicode_AsString(sys.stdin.encoding) error in PyRun_InteractiveOneFlags() - use _PyUnicode_AsStri

[issue8070] Infinite loop in PyRun_InteractiveLoopFlags() if PyRun_InteractiveOneFlags() raises an error

2010-03-05 Thread STINNER Victor
STINNER Victor added the comment: PyRun_InteractiveLoop() doesn't specify the possible return value. It's maybe because it's always zero and that the error are not handled :-) http://docs.python.org/c-api/veryhigh.html#PyRun_InteractiveLoop PyRun_InteractiveOneFlags() documentation is also wro

[issue8069] struct documentation problem and suggestion to add fixed size formats

2010-03-05 Thread Mark Dickinson
Mark Dickinson added the comment: Please note that the docs distinguish 'standard size and alignment' from 'native size and alignment'. The standard size (which is what you get if your struct format string doesn't start with '<', '>', '=' or '!') does exactly what you suggest: it gives stru

[issue8069] struct documentation problem and suggestion to add fixed size formats

2010-03-05 Thread Jeremy Sanders
New submission from Jeremy Sanders : The struct documentation at http://docs.python.org/library/struct.html says: Standard size and alignment are as follows: no alignment is required for any type (so you have to use pad bytes); short is 2 bytes; int and long are 4 bytes; long long (__int64 on

[issue444582] Finding programs in PATH, addition to os

2010-03-05 Thread Jan Killian
Jan Killian added the comment: Updated version of reference implementation as a standalone module * changed interface: which_files() returns generator, which() returns first match, or raises IOError(errno.ENOENT) * updated doctest Made this to more closely resemble the 'which' co

[issue6697] Check that _PyUnicode_AsString() result is not NULL

2010-03-05 Thread STINNER Victor
STINNER Victor added the comment: MaL> If you want a fail-safe stringified version of a Unicode object, MaL> your only choice is to create a new API that does error checking, MaL> properly clears the error and then returns a reference to a constant MaL> string, e.g. "". I wrote a function _PyUn

[issue8068] OS X Installer: merge python2 and python3 build-installer.py script

2010-03-05 Thread Ned Deily
New submission from Ned Deily : Since the split of Python3, the OS X installer build scripts in the four active source trees have diverged due to multiple edits at different times such that most changes can no longer be easily merged across branches without significant hand editing, even though t

[issue8067] OS X Installer: build errors on 10.6 when targeting 10.4 and earlier

2010-03-05 Thread Ned Deily
New submission from Ned Deily : When building on 10.6 with a deployment target of 10.3 or 10.4, various build errors occur, like: warning: 'struct winsize' declared inside parameter list error: 'struct rusage' has no member named 'ru_maxrss' The problem is a test in configure.in that isn

[issue8066] OS X installer: readline module breaks when targeting on 10.5 or 10.6

2010-03-05 Thread Ned Deily
New submission from Ned Deily : 2.6.5 release blocker Changes for Issue6877 to enable the readline module to use the native OS X editline library instead of GNU readline introduce a problem for OS X installer builds or other builds using MACOSX_DEPLOYMENT_TARGET. The test in setup.py to determi

[issue8060] PEP 3101 string formatting missing engineering presentation type for floating point

2010-03-05 Thread Mark Dickinson
Mark Dickinson added the comment: Before a patch, there needs to be a concrete proposal: how would this be specified, and what would the precise semantics be? -- ___ Python tracker ___

[issue8062] PEP 3101 string formatting missing hexadecimal separator _ for every 4 hex digits

2010-03-05 Thread Mark Dickinson
Mark Dickinson added the comment: Closing this for now; if you want to pursue this, please take the suggestion to the python-ideas mailing list. -- resolution: -> rejected status: open -> closed ___ Python tracker

[issue8062] PEP 3101 string formatting missing hexadecimal separator _ for every 4 hex digits

2010-03-05 Thread Mark Dickinson
Mark Dickinson added the comment: How common is this 'common practice'? Could you point to some publicly available examples? Are there other languages that have built-in facilities for dealing with hexadecimal representations of integers in this way? I think I've seen hex strings separated b

[issue7478] _sqlite3 doesn't catch PyDict_SetItem error

2010-03-05 Thread Gerhard Häring
Gerhard Häring added the comment: Fixed in trunk now. Thanks! -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue7670] _sqlite3: Block *all* operations on a closed Connection object

2010-03-05 Thread Gerhard Häring
Gerhard Häring added the comment: Applied in trunk. Thanks! -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue1537721] csv module: add header row to DictWriter

2010-03-05 Thread Dirkjan Ochtman
Dirkjan Ochtman added the comment: Both the solaris and windows slaves seem to have succeeded this time. -- resolution: -> fixed status: open -> closed ___ Python tracker ___