[issue12021] mmap.read requires an argument

2011-05-07 Thread John O'Connor
Changes by John O'Connor : -- nosy: +jcon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue10154] locale.normalize strips "-" from UTF-8, which fails on Mac

2011-05-07 Thread Ronald Oussoren
Ronald Oussoren added the comment: The attached patch implements the change that Marc-Andre proposed. I intend to apply this patch to all active branches later today (after some more testing) -- keywords: +patch Added file: http://bugs.python.org/file21916/issue10154.patch __

[issue12003] documentation: alternate version of xrange seems to fail.

2011-05-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: I verified bug on winxp with 2.7 xrangef [5, 4, 3, 2, 1, 0] py26 [] py27 [5, 4, 3, 2, 1, 0, -1, -2] v1 [5, 4, 3, 2, 1, 0] v2 [5, 4, 3, 2, 1, 0] v3 [5, 4, 3, 2, 1, 0] --- xrangef [5, 3, 1, -1, -3] py26 [] py27 [5, 3, 1, -1, -3, -5] v1 [5, 3, 1

[issue10466] locale.py resetlocale throws exception on Windows (getdefaultlocale returns value not usable in setlocale)

2011-05-07 Thread Jan Killian
Changes by Jan Killian : -- nosy: +iki ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/m

[issue11916] A few errnos from OSX

2011-05-07 Thread Ronald Oussoren
Ronald Oussoren added the comment: This shell-fragment lists which names in /usr/include/sys/errno don't exist in errnomodule.h: $ grep '#define[ ]*E' /usr/include/sys/errno.h | awk '{ print $2 }' | grep -v '^ELAST$' | while read name; do grep -q $name Modules/errnomod

[issue11916] A few errnos from OSX

2011-05-07 Thread Ronald Oussoren
Ronald Oussoren added the comment: And the patch works properly, with the patch applied (except for the two names I mentioned earlier): $ DYLD_FRAMEWORK_PATH=$PWD ./python.exe Python 3.3a0 (default:5fa92a47016c+, May 7 2011, 09:36:44) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Ty

[issue12016] Wrong behavior for '\xff\n'.decode('gb2312', 'ignore')

2011-05-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: u'' in 2.7.1 also, on winxp -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list maili

[issue12017] Decoding a highly-nested object with json (_speedups enabled) causes segfault

2011-05-07 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue12000] SSL certificate verification failed if no dNSName entry in subjectAltName

2011-05-07 Thread Nicolas Bareil
Nicolas Bareil added the comment: Hello Mads > Until now Python failed to the safe side by not matching on > subjectAltName iPAddress but also not falling back to commonName > if they were specified. AFAICS, with this change it is possible to > create strange certificates that Python would ac

[issue11916] A few errnos from OSX

2011-05-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2f978b4c02ad by Ronald Oussoren in branch 'default': Closes Issue 11916: Add a number of MacOSX specific definitions to the errno module. http://hg.python.org/cpython/rev/2f978b4c02ad -- nosy: +python-dev resolution: -> fixed stage: patch

[issue10910] pyport.h FreeBSD/Mac OS X "fix" causes errors in C++ compilation

2011-05-07 Thread Ronald Oussoren
Changes by Ronald Oussoren : Removed file: http://bugs.python.org/file21728/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue11994] [2.7/gcc-4.4.3] Segfault under valgrind in string.split()

2011-05-07 Thread Stefan Krah
Stefan Krah added the comment: Terry J. Reedy wrote: > "Also, the segfault only occurs when python is > compiled with optimizations and run under valgrind." > > This says to me that the segfault is not a Python issue. > What change do you expect in the Python source code? > If none, this issue

[issue10154] locale.normalize strips "-" from UTF-8, which fails on Mac

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

[issue10910] pyport.h FreeBSD/Mac OS X "fix" causes errors in C++ compilation

2011-05-07 Thread Ronald Oussoren
Ronald Oussoren added the comment: The problem is that pyport tries to replace the ctypes definion of the isascii(ch) and related functions by a replacement that works better with UTF-8 on FreeBSD and OSX. That replacement is incompatible with the localfwd.h header. The attached patch is a ve

[issue5154] OSX broken poll testing doesn't work

2011-05-07 Thread Ronald Oussoren
Changes by Ronald Oussoren : -- resolution: -> wont fix status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue11607] Apllication crashes when saving file

2011-05-07 Thread Ronald Oussoren
Ronald Oussoren added the comment: There is not enough information in the description to even know which program crashes, let alone to reproduce the problem. I'm therefore closing this issues. Feel free to reopen the issue when you can supply more information (see the questions in the two oth

[issue11999] sporadic failure in test_mailbox

2011-05-07 Thread STINNER Victor
STINNER Victor added the comment: I don't understand anything, but thanks for fixing it :-) (Or at least trying to fix it, buildbots will tell us.) -- status: pending -> open ___ Python tracker __

[issue11277] Crash with mmap and sparse files on Mac OS X

2011-05-07 Thread STINNER Victor
STINNER Victor added the comment: > @haypo, @pitrou: Are there any objections to removing test_big_buffer() from Lib/test/test_zlib.py? I now agree Antoine: the test is useless. It can be removed today. About mmap: add a new test for this issue (mmap on Mac OS X and F_FULLSYNC) is a good ide

[issue11995] test_pydoc loads all Python modules

2011-05-07 Thread STINNER Victor
STINNER Victor added the comment: > Isn’t the root problem that pydoc uses import rather than imp or PEP 302 > things? We could change that. It's possible to get the documentation of some module without loading them: pydoc already supports get_source() method of a module loader. But my conc

[issue12016] Wrong behavior for '\xff\n'.decode('gb2312', 'ignore')

2011-05-07 Thread STINNER Victor
STINNER Victor added the comment: So the correct result for b'\xff\n'.decode('gb2312', 'replace') is u'?\n'? -- versions: +Python 3.1, Python 3.2, Python 3.3 ___ Python tracker

[issue9971] Optimize BufferedReader.readinto

2011-05-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Oops... It hadn't jumped at me earlier, but the patch is actually problematic performance-wise. The reason is that it doesn't buffer data at all, so small readintos become slower (they have to go through raw I/O every time): $ ./python -m timeit -s "f=open('L

[issue11962] Buildbot reliability

2011-05-07 Thread Stefan Krah
Stefan Krah added the comment: I think the FreeBSD bot changes are working out fine. The Ubuntu-PPC issues were unrelated, so I'm closing this. -- keywords: +buildbot resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Pyth

[issue12016] Wrong behavior for '\xff\n'.decode('gb2312', 'ignore')

2011-05-07 Thread zy
zy added the comment: > So the correct result for b'\xff\n'.decode('gb2312', 'replace') is u'?\n'? I think it should be so. This behavior does not leave out possible information, has no side-effect on later decodings, and should the '\n' indeed be redundant, an output of u'?\n' would unlikel

[issue12016] Wrong behavior for '\xff\n'.decode('gb2312', 'ignore')

2011-05-07 Thread STINNER Victor
STINNER Victor added the comment: _codecs_cn implements different multibyte encodings: gb2312, gbkext, gbcommon, gb18030ext, gbk, gb18030. And there are other Asian multibyte encodings: big5 family, ISO 2202 family, JIS family, korean encodings (KSX1001, EUC_KR, CP949, ...), Big5, CP950, ...

[issue12012] _ssl module doesn't compile with OpenSSL 1.0.0d: SSLv2_method is missing

2011-05-07 Thread STINNER Victor
STINNER Victor added the comment: > Please avoid "negative" constants. Calling it HAS_SSLv2 would be fine. I reused the term from ssl.h (#ifdef OPENSSL_NO_SSL2), but yes we can use a different name. > Also, there should be some doc update mentioning that PROTOCOL_SSLv2 > is not always present

[issue9971] Optimize BufferedReader.readinto

2011-05-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: A solution could be to use overlapped I/O on the named pipe handles. The first poll() would call ReadFile() with a tiny value (1?) and store an object wrapping the OVERLAPPED structure. Subsequent poll() or recv() would re-use that structure until the overlapp

[issue11888] Add C99's log2() function to the math library

2011-05-07 Thread STINNER Victor
STINNER Victor added the comment: > Thanks, Victor. I suspect we're going to need to be a bit more > careful, though: when the extra tests were added for math.log, it > turned out that it had all sorts of strange special-case behaviour on > various platforms. > > So I suspect that even on pla

[issue11888] Add C99's log2() function to the math library

2011-05-07 Thread STINNER Victor
STINNER Victor added the comment: (Oh, I hit the wrong keyboard shortcut and sent my email too fast) You can commit issue11888.patch first if you would like to test it. In this case, here is a patch to use system log2(), patch to apply *after* issue11888.patch. It only uses log2() if x > 0.0.

[issue11888] Add C99's log2() function to the math library

2011-05-07 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file21897/issue11888-2.patch ___ Python tracker ___ ___ Python-bugs-list mail

[issue11888] Add C99's log2() function to the math library

2011-05-07 Thread STINNER Victor
STINNER Victor added the comment: By the way, issue11888.patch is just fine: you can commit it. I like your frexp "trick" to improve the accuracy. -- ___ Python tracker ___ ___

[issue11277] Crash with mmap and sparse files on Mac OS X

2011-05-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 201dcfc56e86 by Nadeem Vawda in branch '2.7': Issue #11277: Remove useless test from test_zlib. http://hg.python.org/cpython/rev/201dcfc56e86 -- ___ Python tracker __

[issue11873] test_regexp() of test_compileall fails occassionally

2011-05-07 Thread STINNER Victor
STINNER Victor added the comment: > You are right that I got the regex wrong (I'm bad at regexes), but > in fact it is fine the way it is. Since there's no r, the regex > is actually "ba[^/]$", which is exactly what I meant. What about Windows? tempfile.mkdtemp(prefix='bar') can generate ...\

[issue10419] distutils command build_scripts fails with UnicodeDecodeError

2011-05-07 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +benjamin.peterson, georg.brandl priority: normal -> release blocker ___ Python tracker ___ ___ P

[issue11994] [2.7/gcc-4.4.3] Segfault under valgrind in string.split()

2011-05-07 Thread Stefan Krah
Stefan Krah added the comment: The segfault also occurs with a self-compiled gcc-4.4.6, but not with gcc-4.5.3. -- ___ Python tracker ___ ___

[issue12027] Optimize import this (patch to make it 10x faster)

2011-05-07 Thread STINNER Victor
New submission from STINNER Victor : Patch to optimize this: make it 10 times faster. Try attached benchmark script. On a debug build I got the following results: * original: 299.8 ms * patched: 23.2 ms I expected a factor of 10 because it uses a C implementation of rot13 instead of an hand

[issue12027] Optimize import this (patch to make it 10x faster)

2011-05-07 Thread STINNER Victor
Changes by STINNER Victor : Added file: http://bugs.python.org/file21920/bench.py ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue12027] Optimize import this (patch to make it 10x faster)

2011-05-07 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +lemburg, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue12027] Optimize import this (patch to make it 10x faster)

2011-05-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Barry, 2.6? -- nosy: +barry, benjamin.peterson priority: normal -> release blocker ___ Python tracker ___ _

[issue11668] _multiprocessing.Connection.poll with timeout uses polling under Windows

2011-05-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: A solution could be to use overlapped I/O on the named pipe handles. The first poll() would call ReadFile() with a tiny value (1?) and store an object wrapping the OVERLAPPED structure. Subsequent poll() or recv() would re-use that structure until the overlapp

[issue9971] Optimize BufferedReader.readinto

2011-05-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Uh, sorry for the last message (about overlapped I/O), wrong issue. -- ___ Python tracker ___ ___ Py

[issue9971] Optimize BufferedReader.readinto

2011-05-07 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- Removed message: http://bugs.python.org/msg135425 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue9971] Optimize BufferedReader.readinto

2011-05-07 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- Removed message: http://bugs.python.org/msg135435 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue8407] expose signalfd(2) and pthread_sigmask in the signal module

2011-05-07 Thread STINNER Victor
STINNER Victor added the comment: > I mistakenly removed your pending_signals-2 patch > I'm really sorry about this, could you re-post it? No problem, anyway I worked on a new version in the train. > So, if anything, you shouldn't check for a pending signal [in sigwait] Right, fixed in the ne

[issue8407] expose signalfd(2) and pthread_sigmask in the signal module

2011-05-07 Thread STINNER Victor
STINNER Victor added the comment: Note: we might expose pth_raise() which is similar to pthread_kill(), but... pth support was deprecated by the PEP 11 and pth support will be removed from Python 3.3 source code. -- ___ Python tracker

[issue8407] expose signalfd(2) and pthread_sigmask in the signal module

2011-05-07 Thread STINNER Victor
STINNER Victor added the comment: About signalfd(): this patch doesn't provide any information or tool to decode data written to the file descriptor. We should expose the signalfd_siginfo structure or you cannot handle more than one signal (how do you know which signal numbers were raised?).

[issue8407] expose signalfd(2) and pthread_sigmask in the signal module

2011-05-07 Thread STINNER Victor
STINNER Victor added the comment: wakeup_signum.patch: simple patch to write the signal number (as a single byte) instead of just b'\x00' into the wake up file descriptor. It gives the ability to watch more than one signal and be able to know which one was raised. Included tests demonstrate t

[issue8407] expose signalfd(2) and pthread_sigmask in the signal module

2011-05-07 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file21883/pending_signals.patch ___ Python tracker ___ ___ Python-bugs-list ma

[issue8407] expose signalfd(2) and pthread_sigmask in the signal module

2011-05-07 Thread STINNER Victor
STINNER Victor added the comment: pending_signals-3.patch: doc nit, the link to Thread.ident doesn't work. The doc should be replaced by something like: *thread_id* can be read from the :attr:`~threading.Thread.ident` attribute of a :class:`threading.Thread` object. For

[issue12028] threading._get_ident(): remove it in the doc and make it public

2011-05-07 Thread STINNER Victor
New submission from STINNER Victor : I don't know why threading._get_ident() (which is _thread.get_ident()) is private: this function is safe. This function becomes useful with pthread_kill() which will be added by #8407. -- assignee: docs@python components: Documentation, Library (Lib

[issue8407] expose signalfd(2) and pthread_sigmask in the signal module

2011-05-07 Thread STINNER Victor
STINNER Victor added the comment: The threading has a function to get directly the identifier of the current thread: threading._get_ident() instead of threading.current_thread().ident. I think that threading._get_ident() is more reliable to threading.current_thread().ident because Thread.iden

[issue12028] threading._get_ident(): remove it in the doc and make it public

2011-05-07 Thread STINNER Victor
STINNER Victor added the comment: I think that threading._get_ident() is more reliable than threading.current_thread().ident because Thread.ident can be None in some cases. -- ___ Python tracker _

[issue11994] [2.7/gcc-4.4.3] Segfault under valgrind in string.split()

2011-05-07 Thread STINNER Victor
STINNER Victor added the comment: GCC does have bugs: see a recent example with a development version of GCC 4.6 => #9880 (the bug was fixed before the final release of GCC 4.6). If you would like to go futher, you should open a bug report in GCC bug tracker (not in the Python bug tracker).

[issue11277] Crash with mmap and sparse files on Mac OS X

2011-05-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset d5d4f2967879 by Nadeem Vawda in branch '3.1': Issue #11277: Add tests for mmap crash when using large sparse files on OS X. http://hg.python.org/cpython/rev/d5d4f2967879 New changeset e447a68742e7 by Nadeem Vawda in branch '3.2': Merge: #11277: Add

[issue11277] Crash with mmap and sparse files on Mac OS X

2011-05-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8d27d2b22394 by Nadeem Vawda in branch '2.7': Issue #11277: Add tests for mmap crash when using large sparse files on OS X. http://hg.python.org/cpython/rev/8d27d2b22394 -- ___ Python tracker

[issue12016] Wrong behavior for '\xff\n'.decode('gb2312', 'ignore')

2011-05-07 Thread zy
zy added the comment: I do not have documents on this subject. Though, I found that GNU iconv(1) behaves the same as my proposed behavior. My reading of the source code suggests that iconv(1) treat all encodings equally, which I think should also be true for python. As of security concerns,

[issue11277] Crash with mmap and sparse files on Mac OS X

2011-05-07 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: @Nadeem: note that the committed versions of the tests would not show up the Mac OS X mmap() bug AFAIK, because there is an intermediate .close() of the file to be mmapped. The OS X bug is that the VMS/VFS interaction fails to provide a valid memory reg

[issue12027] Optimize import this (patch to make it 10x faster)

2011-05-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: STINNER Victor wrote: > > New submission from STINNER Victor : > > Patch to optimize this: make it 10 times faster. > > Try attached benchmark script. On a debug build I got the following results: > * original: 299.8 ms > * patched: 23.2 ms > > I expec

[issue11277] Crash with mmap and sparse files on Mac OS X

2011-05-07 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: (Of course this may also be intentional, say. But then i would vote against it :), because it's better the tests bring out errors than end-user apps.) -- ___ Python tracker

[issue12023] non causal behavior

2011-05-07 Thread R. David Murray
R. David Murray added the comment: In 3.x, yes (the nonlocal keyword). Not in 2.7, though. -- nosy: +r.david.murray ___ Python tracker ___ _

[issue11277] Crash with mmap and sparse files on Mac OS X

2011-05-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9b9f0de19684 by Nadeem Vawda in branch '2.7': Issue #11277: Fix tests - crash will not trigger if the file is closed and reopened. http://hg.python.org/cpython/rev/9b9f0de19684 New changeset b112c72f8c01 by Nadeem Vawda in branch '3.1': Issue #112

[issue11877] Change os.fsync() to support physical backing store syncs

2011-05-07 Thread Charles-François Natali
Charles-François Natali added the comment: > I'll attach 11877.4.diff A couple comments: static PyObject * posix_fsync(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject *retval = NULL; auto PyObject *fdobj; auto int full_fsync = 1; Why are you using the "auto" storage c

[issue11999] sporadic failure in test_mailbox on FreeBSD

2011-05-07 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: That's really a good one. (In my eyes.) -- title: sporadic failure in test_mailbox -> sporadic failure in test_mailbox on FreeBSD ___ Python tracker _

[issue11277] Crash with mmap and sparse files on Mac OS X

2011-05-07 Thread Nadeem Vawda
Nadeem Vawda added the comment: sdaoden> @Nadeem: note that the committed versions of the tests would not sdaoden> show up the Mac OS X mmap() bug AFAIK, because there is an sdaoden> intermediate .close() of the file to be mmapped. Thanks for catching that. Should be fixed now. haypo> I now ag

[issue12027] Optimize import this (patch to make it 10x faster)

2011-05-07 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: That's a good one, but um, no not for 2.6, unless you can argue that a delay in obtaining the received wisdom of The Timbot is a serious security hole in Python. Bag of ham. -- ___ Python tracker

[issue11877] Change os.fsync() to support physical backing store syncs

2011-05-07 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: On Sat, 7 May 2011 14:20:51 +0200, Charles-François Natali wrote: > I really can't see a good reason for using it here (and > anywhere, see http://c-faq.com/decl/auto.html). You're right. > Why are you using the "auto" storage class specifier? I know

[issue11877] Change os.fsync() to support physical backing store syncs

2011-05-07 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: On Sat, 7 May 2011 14:20:51 +0200, Charles-François Natali wrote: > # ifdef __APPLE__ > res = fcntl(fd, F_FULLFSYNC); > # endif > # ifdef __NetBSD__ > res = fsync_range(fd, FFILESYNC|FDISKSYNC, 0, 0); > # endif > > Since __APPLE__ and __NetBSD_

[issue11999] sporadic failure in test_mailbox

2011-05-07 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: This tracker - sorry! (I surely will try to write and offer a patch for the tracker, but first i need to understand that mailbox.py jungle for #11935, next week.) -- title: sporadic failure in test_mailbox on FreeBSD -> sporadic failure in test

[issue11969] Can't launch multiproccessing.Process on methods

2011-05-07 Thread Jesse Noller
Jesse Noller added the comment: Do things like this in the REPL are known not to work. Things are not protected in the if __name__ block so we can import the script properly to run it. -- ___ Python tracker _

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2011-05-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is an updated patch. Much of it consists of changes in the Windows Connection implementation, where I had to use overlapped I/O in order to use WaitForMultipleObjects on named pipes. test_concurrent_futures sometimes blocks (under Windows), I'll try to d

[issue11877] Change os.fsync() to support physical backing store syncs

2011-05-07 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: 11877.5.diff incorporates all changes suggested by Charles-François except for the 'auto' keyword, which is extremely important and which would need to be invented if it would not yet exist. I'm dropping the old stuff. And i think this is the final ve

[issue11877] Change os.fsync() to support physical backing store syncs

2011-05-07 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso : Removed file: http://bugs.python.org/file21749/11877.3.diff ___ Python tracker ___ ___ Python-bugs-list ma

[issue11877] Change os.fsync() to support physical backing store syncs

2011-05-07 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso : Removed file: http://bugs.python.org/file21771/11877.4.diff ___ Python tracker ___ ___ Python-bugs-list ma

[issue11072] Add MLSD command support to ftplib

2011-05-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 153bd8fc22c7 by Giampaolo Rodola' in branch 'default': #11072- applying http://bugs.python.org/review/11072/show suggestions http://hg.python.org/cpython/rev/153bd8fc22c7 -- ___ Python tracker

[issue12013] file /usr/local/lib/python3.1/lib-dynload/_socket.so: symbol inet_aton: referenced symbol not found

2011-05-07 Thread Éric Araujo
Éric Araujo added the comment: $ python3.1 -m test.regrtest If your distribution removes tests from the binary package, this won’t work. -- ___ Python tracker ___ _

[issue11963] Remove human verification from test suite (test_parser and test_subprocess)

2011-05-07 Thread Éric Araujo
Éric Araujo added the comment: Please feel free to improve titles; we’re a team, there’s no ego in bug title phrasing :) I did so on at least one bug of yours; hope you didn’t consider it rude. Are you asking about the docstring of the test module or the reST doc of test.support? A brief m

[issue10713] re module doesn't describe string boundaries for \b

2011-05-07 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report. Would you be interested in experimenting and/or reading the code to find the anwser and propose a doc patch? -- keywords: +easy nosy: +eric.araujo stage: -> needs patch versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3 __

[issue10713] re module doesn't describe string boundaries for \b

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

[issue10666] OS X installer variants have confusing readline differences

2011-05-07 Thread Éric Araujo
Éric Araujo added the comment: FTR, readline.read_init_file() works with libedit too (provided that the config file uses libedit-style format), so you can remove the branch from your code. -- nosy: +eric.araujo ___ Python tracker

[issue10663] configure shouldn't set a default OPT

2011-05-07 Thread Éric Araujo
Éric Araujo added the comment: Sounds reasonable. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue10581] Review and document string format accepted in numeric data type constructors

2011-05-07 Thread Éric Araujo
Éric Araujo added the comment: > I may be in minority, but I find it convenient to use int(), float() > etc. for data validation. A number of libraries agree: argparse, HTML form handling libs, etc. > I may be too strict, but I don't think anyone would want to see > columns with a mix of Bengal

[issue9923] mailcap module may not work on non-POSIX platforms if MAILCAPS env variable is set

2011-05-07 Thread Éric Araujo
Changes by Éric Araujo : -- dependencies: +No unit test for mailcap module ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue9923] mailcap module may not work on non-POSIX platforms if MAILCAPS env variable is set

2011-05-07 Thread Éric Araujo
Éric Araujo added the comment: BTW, is there a real use case that lead you to open this report, or is it just theoretical? I’m not even sure mailcap is used on non-UNIX (and even there, I think it’s not used by recent tools). -- nosy: +eric.araujo ___

[issue12017] Decoding a highly-nested object with json (_speedups enabled) causes segfault

2011-05-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6fa20e360e5e by Ezio Melotti in branch '2.7': #12017: Fix segfault in json.loads() while decoding highly-nested objects using the C accelerations. http://hg.python.org/cpython/rev/6fa20e360e5e New changeset 61164d09337e by Ezio Melotti in branch '

[issue9859] Add tests to verify API match of modules with 2 implementations

2011-05-07 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +belopolsky, brett.cannon, eric.araujo, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue10964] Mac installer need not add things to /usr/local

2011-05-07 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue12017] Decoding a highly-nested object with json (_speedups enabled) causes segfault

2011-05-07 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks Ivan for the report and Alex for suggesting Py_EnterRecursiveCall! -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker

[issue9516] sysconfig: $MACOSX_DEPLOYMENT_TARGET mismatch: now "10.3" but "10.5" during configure

2011-05-07 Thread Éric Araujo
Éric Araujo added the comment: > I haven't changed the CompileError handling though, that would change > a test failure into a test error. Ah, thanks for correcting my mistake. -- ___ Python tracker ___

[issue12002] ftplib.FTP.abort fails with TypeError on Python 3.x

2011-05-07 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: This is a nasty one and mainly it's the reason why there are no tests for abort() method. In FTP, ABOR command is supposed to be sent as OOB (out-of-band) "urgent" data and the dummy FTP server we're using for the funcional tests must handle this appopriat

[issue12027] Optimize import this (patch to make it 10x faster)

2011-05-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: I suggest rejecting. See 8ae88db7843c -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue12027] Optimize import this (patch to make it 10x faster)

2011-05-07 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue12027] Optimize import this (patch to make it 10x faster)

2011-05-07 Thread Georg Brandl
Georg Brandl added the comment: (And subsequently cc10b010f40b. I agree with Benjamin.) -- nosy: +georg.brandl ___ Python tracker ___ __

[issue12022] improve special method lookup error message

2011-05-07 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: invalid -> status: closed -> open title: 'transaction' module-as-context-manager thwarted by Python 2.7.1 -> improve special method lookup error message ___ Python tracker

[issue10169] socket.sendto raises incorrect exception when passed incorrect types

2011-05-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7c3a20b5943a by Ezio Melotti in branch '2.7': #10169: Fix argument parsing in socket.sendto() to avoid error masking. http://hg.python.org/cpython/rev/7c3a20b5943a -- nosy: +python-dev ___ Python tracker

[issue5421] Irritating error message by socket's sendto method

2011-05-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9222c9d747c1 by Ezio Melotti in branch '3.1': #5421: add tests. http://hg.python.org/cpython/rev/9222c9d747c1 New changeset 4b3352b49483 by Ezio Melotti in branch '3.2': #5421: merge with 3.1. http://hg.python.org/cpython/rev/4b3352b49483 New chan

[issue11882] test_imaplib failed on x86 ubuntu

2011-05-07 Thread Kasun Herath
Kasun Herath added the comment: david, I'm not much familiar with c. Still trying to figure out how to do it -- status: pending -> open ___ Python tracker ___ __

[issue11743] Rewrite PipeConnection and Connection in pure Python

2011-05-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Updated patch, fixing a sporadic failure in test_spawn_close. -- Added file: http://bugs.python.org/file21926/mpconn2.patch ___ Python tracker

[issue10169] socket.sendto raises incorrect exception when passed incorrect types

2011-05-07 Thread Ezio Melotti
Ezio Melotti added the comment: This turned out to be a duplicate of #5421 already fixed in 3.x, so I backported the patch and added the tests to 3.x too. -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed versions: -Python 3.1, Python 3.2

[issue5421] Irritating error message by socket's sendto method

2011-05-07 Thread Ezio Melotti
Ezio Melotti added the comment: I backported the patch to 2.7 in 7c3a20b5943a, and added tests to the 3.x branches. -- nosy: +ezio.melotti ___ Python tracker ___ ___

[issue11910] test_heapq C tests are not skipped when _heapq is missing

2011-05-07 Thread Ezio Melotti
Ezio Melotti added the comment: Attempting to fix import_fresh_module might be better. -- assignee: -> ezio.melotti ___ Python tracker ___ _

[issue12022] AttributeError should report the same details when raised by lookup_special() as when raised in the REPL

2011-05-07 Thread Daniel Holth
Daniel Holth added the comment: Python should explain AttributeError in the same way when it's raised by the interpreter. The with: statement below should raise the second AttributeError, not the first. import transaction with transaction: pass >>> AttributeError: __exit__ import sys sys.__e

  1   2   >