[issue12875] backport re.compile flags default value documentation

2011-09-01 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Ezio, but using ints instead of flags is discouraged (see #11957). OTOH there's no re.NOFLAGS flag that can be used instead. Indeed, there's no re.NOFLAGS, and as I mentioned the 3k docs mention 0 as the default value, thus (in a way)

[issue12875] backport re.compile flags default value documentation

2011-09-01 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Regarding backporting 106ee4eb5970 - it's probably a good thing to do but I wouldn't mix it with this issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12875

[issue12837] Patch for issue #12810 removed a valid check on socket ancillary data

2011-09-01 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: `long long` is not ANSI, but C99. Anyhow, I'm still not sure this check is necessary, because: 1) I really doubt any modern OS uses a signed socklen_t 2) even if it's the case, I don't see how we could possibly end up with a negative

[issue12868] test_faulthandler.test_stack_overflow() failed on OpenBSD

2011-09-01 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: without-threads, it segfault: It's normal :-) _stack_overflow triggers - as it names implies - a stack overflow. However, as you can see in the output, faulthandler is now able to catch the SIGSEGV and display the backtrace (because

[issue12837] Patch for issue #12810 removed a valid check on socket ancillary data

2011-09-01 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: I tend to be fairly paranoid about operating systems doing occasionally bizarre things, so I like having clearly defined behaviour even when the OS does something arguably nuts, but permitted by the relevant standard. Hence I think keeping

[issue4153] Unicode HOWTO up to date?

2011-09-01 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: After the recent discussions on python-dev I went through the Unicode howto and fixed a few things, then I found this issue so I'm attaching the patch here. The patch addresses mostly markup issues, but it also removes the usage of 'byte

[issue12868] test_faulthandler.test_stack_overflow() failed on OpenBSD

2011-09-01 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: @Victor: can I commit the patch? I don't like the skip message. It doesn't tell that the problem comes from sigaltstack() and it doesn't contain the issue number. I would expect something like: Issue #12868: sigaltstack() doesn't

[issue12494] subprocess: check_output() doesn't close pipes on error

2011-09-01 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: The second patch looks good. Tests? Ok, I will try to write a new patch with tests. But, it *probably* shouldn't be applied to 2.7 3.2 given that it is a behaviour change. I consider that this issue is a bug, so it should be

[issue12494] subprocess: check_output() doesn't close pipes on error

2011-09-01 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: I consider that this issue is a bug, so it should be fixed in 2.7 and 3.2. I agree that *killing* the process is a behaviour change, but we can just close pipes on error for 2.7 and 3.2. Yeah, that seems right. --

[issue8409] gettext should honor $LOCPATH environment variable

2011-09-01 Thread Danilo Segan
Danilo Segan dse...@users.sourceforge.net added the comment: I believe it's invalid. GNU gettext itself doesn't honor the LOCPATH variable, LOCPATH is basically used by GNU libc for pointing to locale data. Even though this also includes LC_MESSAGES, gettext has never used it afaik. If it's

[issue12876] Make Test Error : ImportError: No module named _sha256

2011-09-01 Thread Wong Wah Meng
New submission from Wong Wah Meng wahm...@freescale.com: Hi there, I just build python 2.7.1 on my HP 11.31 Itanium 64 bit machine using gcc. When I finished the build and run make test. It gives me error as depicted below:- $ ./python Lib/test/regrtest.py -v Traceback (most recent

[issue12868] test_faulthandler.test_stack_overflow() failed on OpenBSD

2011-09-01 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: Heya. OpenBSD does support 1:1 threads via the RThread library since 2005, thanks to tedu@ and more fantastic guys! It about to be super-stable (one commit in 2011, last real fix in april 2010). (There is a techtalk from tedu@ (Ted

[issue4153] Unicode HOWTO up to date?

2011-09-01 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: I also left a few comments on rietveld about other things that can be improved. Please reply and comment there. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4153

[issue12876] Make Test Error : ImportError: No module named _sha256

2011-09-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Please run the make command again. It will list the modules that were skipped and not compiled. Which modules do you see there? Also, which version of OpenSSL is installed? -- nosy: +amaury.forgeotdarc

[issue12873] 2to3 incorrectly handles multi-line imports from __future__

2011-09-01 Thread Sebastian Wiesner
Changes by Sebastian Wiesner lunary...@googlemail.com: -- nosy: +lunar ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12873 ___ ___

[issue8409] gettext should honor $LOCPATH environment variable

2011-09-01 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8409 ___

[issue12837] Patch for issue #12810 removed a valid check on socket ancillary data

2011-09-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: If you're casting to a larger signed type, then the semantics change, since there is a sign extension. For example (unsigned int) 0x could be cast to (long long) -1. You could cast to size_t instead and compare the result to

[issue12868] test_faulthandler.test_stack_overflow() failed on OpenBSD

2011-09-01 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: OpenBSD does support 1:1 threads via the RThread library since 2005, thanks to tedu@ and more fantastic guys! It about to be super-stable (one commit in 2011, last real fix in april 2010). (There is a techtalk from tedu@ (Ted

[issue12386] packaging fails in install_distinfo when writing RESOURCES

2011-09-01 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: @Éric: I also noticed that your latest comment All text is bytes, so we can do all I/O in bytes when writing resources and avoid special-casing. contradicts your earlier position: I agree about the nonsense of opening in binary mode.

[issue2771] Test issue

2011-09-01 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2771 ___ ___

[issue2771] Test issue

2011-09-01 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 90586887032e by Ezio Melotti in branch 'default': test: change the content of the p file so http://hg.python.org/test/rev/90586887032e -- nosy: +python-dev status: open - closed

[issue12877] Popen(...).stdout.seek(...) throws Illegal seek

2011-09-01 Thread Jonas H.
New submission from Jonas H. jo...@lophus.org: from subprocess import Popen, PIPE p = Popen(['ls'], stdout=PIPE) p.wait() p.stdout.seek(0) Traceback (most recent call last): File t.py, line 5, in module p.stdout.seek(0) IOError: [Errno 29] Illegal seek Python 2.7.2, Arch Linux x86-64

[issue12877] Popen(...).stdout.seek(...) throws Illegal seek

2011-09-01 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: This is expected behaviour - you cannot seek on a pipe. -- nosy: +nadeem.vawda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12877 ___

[issue12877] Popen(...).stdout.seek(...) throws Illegal seek

2011-09-01 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: stdout is a PIPE. You cannot seek in a PIPE. Write stdout into a file, or use maybe BytesIO or StringIO? -- nosy: +haypo resolution: - invalid status: open - closed ___ Python tracker

[issue12876] Make Test Error : ImportError: No module named _sha256

2011-09-01 Thread Wong Wah Meng
Wong Wah Meng wahm...@freescale.com added the comment: Thanks for your reply: This is the output of the make, _ctypes and termios are failed to build. Python build finished, but the necessary bits to build these modules were not found: _bsddb _curses_curses_panel

[issue12876] Make Test Error : ImportError: No module named _sha256

2011-09-01 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Do you have OpenSSL headers? -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12876 ___

[issue12877] Popen(...).stdout.seek(...) throws Illegal seek

2011-09-01 Thread Jonas H.
Jonas H. jo...@lophus.org added the comment: Why does it have a 'seek' method then? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12877 ___ ___

[issue12877] Popen(...).stdout.seek(...) throws Illegal seek

2011-09-01 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Why does it have a 'seek' method then? Python doesn't remove a method if the operation is forbidden. For example, Python doesn't remove write() method if the file is read only, and it doesn't remove most methods after close(). I

[issue6069] casting error from ctypes array to structure

2011-09-01 Thread Vlad Riscutia
Vlad Riscutia riscutiav...@gmail.com added the comment: Meador, I believe this was the first issue on the tracker that got me looking into bitfield allocation. I agree that big-endian on MSVC doesn't make too much sense but you can disregard that - using default endianess will still yield

[issue12868] test_faulthandler.test_stack_overflow() failed on OpenBSD

2011-09-01 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: In Python 3.3, you can use sys.thread_info to check which threading library is used. Great! I didn't know that! -- ___ Python tracker rep...@bugs.python.org

[issue12868] test_faulthandler.test_stack_overflow() failed on OpenBSD

2011-09-01 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Great! I didn't know that! It's a new feature of Python 3.3. I added it to skip a test on old FreeBDB, see test_threadsignal.py: USING_PTHREAD_COND = (sys.thread_info.name == 'pthread'

[issue2636] Adding a new regex module (compatible with re)

2011-09-01 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: I tried to run a test suite of 3kloc (not just about regex, but regex were used in several places) and I had only one failure: s = u'void foo ( type arg1 [, type arg2 ] )' re.sub('(?=[][()]) |(?!,) (?!\[,)(?=[][(),])', '', s) u'void

[issue2636] Adding a new regex module (compatible with re)

2011-09-01 Thread Matthew Barnett
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: The regex module supports nested sets and set operations, eg. r[[a-z]--[aeiou]] (the letters from 'a' to 'z', except the vowels). This means that literal '[' in a set needs to be escaped. For example, re module sees [][()]... as:

[issue6069] casting error from ctypes array to structure

2011-09-01 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: On Thu, Sep 1, 2011 at 9:45 AM, Vlad Riscutia rep...@bugs.python.org wrote: Vlad Riscutia riscutiav...@gmail.com added the comment: Meador, I believe this was the first issue on the tracker that got me looking into bitfield allocation. I

[issue12868] test_faulthandler.test_stack_overflow() failed on OpenBSD

2011-09-01 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Here's a patch with an updated skip message. As for rthreads support, a quick search seems to indicate that its API is exactly the same as pthreads, and it's even binary compatible. Python will automatically use it when run on a

[issue12868] test_faulthandler.test_stack_overflow() failed on OpenBSD

2011-09-01 Thread Charles-François Natali
Changes by Charles-François Natali neolo...@free.fr: Removed file: http://bugs.python.org/file23078/openbsd_sigaltstack.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12868 ___

[issue2636] Adding a new regex module (compatible with re)

2011-09-01 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Thanks for the explanation, but isn't this a backward incompatible feature? I think it should be enabled only when the re.NEW flag is passed. The idiom [][...] is also quite common, so I think it might break different programs if regex has

[issue6069] casting error from ctypes array to structure

2011-09-01 Thread Vlad Riscutia
Vlad Riscutia riscutiav...@gmail.com added the comment: Sounds good. Please nosy me in the doc bug. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6069 ___

[issue12528] Implement configurable bitfield allocation strategy

2011-09-01 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: As stated, how a particular compiler allocates bitfields is *extremely* implementation specific. There can be differences in implementations between different compilers, different *versions* of the same compiler, and different invocations of

[issue2636] Adding a new regex module (compatible with re)

2011-09-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Thanks for the explanation, but isn't this a backward incompatible feature? I think it should be enabled only when the re.NEW flag is passed. The idiom [][...] is also quite common, so I think it might break different programs if regex has a

[issue12876] Make Test Error : ImportError: No module named _sha256

2011-09-01 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12876 ___ ___ Python-bugs-list

[issue12850] [PATCH] stm.atomic

2011-09-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I'm worried that by allowing users to pass function pointers here, we are allowing all kinds of uses that we will have to more or less support later. What exactly taking the GIL means and when exactly it is done in the execution process is an

[issue7171] Add inet_ntop and inet_pton support for Windows

2011-09-01 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- components: +Library (Lib) -IO, Windows keywords: +easy versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7171 ___

[issue12528] Implement configurable bitfield allocation strategy

2011-09-01 Thread Vlad Riscutia
Vlad Riscutia riscutiav...@gmail.com added the comment: Well currently we pack bitfields with an algorithm that uses #ifdefs for GCC and MSVC builds. This feature tries to remove the hardcoded behavior and implement it as a runtime option. This should improve interop with other compilers.

[issue2636] Adding a new regex module (compatible with re)

2011-09-01 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Changing the name of the flag is fine with me. Having a warning for unescaped brackets that trigger set operations might also be a solution (once escaped they will still work on the old re). Maybe the same could also be done for scoped

[issue12878] io.StringIO doesn't provide a __dict__ field

2011-09-01 Thread Eric Promislow
New submission from Eric Promislow er...@activestate.com: I see that going from Python 3.1.1 to 3.1.2 instances of io.StringIO no longer have a __dict__ field. Why? Is this to make them unpicklable? -- components: IO messages: 143344 nosy: ericp priority: normal severity: normal

[issue12876] Make Test Error : ImportError: No module named _sha256

2011-09-01 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: The fact that it called __get_builtin_constructor implies that the ssl backed _hashlib module was not available. It looks like the non-openssl standalone _sha256 module (and likely the _sha512 module) both failed to be compiled. I would not

[issue12802] Windows error code 267 should be mapped to ENOTDIR, not EINVAL

2011-09-01 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 385c2ec78f16 by Antoine Pitrou in branch '3.2': Issue #12802: the Windows error ERROR_DIRECTORY (numbered 267) is now http://hg.python.org/cpython/rev/385c2ec78f16 New changeset d72d5c942232 by Antoine Pitrou in

[issue12802] Windows error code 267 should be mapped to ENOTDIR, not EINVAL

2011-09-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Committed now. Hopefully it won't break anything! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed versions: -Python 2.7 ___ Python tracker rep...@bugs.python.org

[issue12878] io.StringIO doesn't provide a __dict__ field

2011-09-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I'm not sure why that is. Note that you can still set and get arbitrary attributes, so there must be a dict somewhere, but it isn't exposed. Also, there wasn't any significant change in StringIO in the 3.1 line. Benjamin, do you have any idea?

[issue12879] method-wrapper objects are difficult to inspect

2011-09-01 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: This is a bit unhelpful: s = io.StringIO() s.__getattribute__ method-wrapper '__getattribute__' of _io.StringIO object at 0x7f118a2997f0 dir(s.__getattribute__) Traceback (most recent call last): File stdin, line 1, in module TypeError:

[issue11879] TarFile.chown: should use TarInfo.uid if user lookup fails

2011-09-01 Thread Doug Hellmann
Changes by Doug Hellmann doug.hellm...@gmail.com: -- nosy: +doughellmann ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11879 ___ ___

[issue2636] Adding a new regex module (compatible with re)

2011-09-01 Thread Matthew Barnett
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: I think I need a show of hands. Should the default be old behaviour (like re) or new behaviour? (It might be old now, new later.) Should there be a NEW flag (as at present), or an OLD flag, or a VERSION parameter (0=old, 1=new,

[issue12528] Implement configurable bitfield allocation strategy

2011-09-01 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: As a (Windows) user, I would like to be able to download any working pre-compiled shared library (.dll) and access it via ctypes. The particular compiler used to compile cpythonx.y.z should not determine whether a Pythonx.y program works. The

[issue12537] mailbox's _become_message is very fragile

2011-09-01 Thread Justin Wehnes
Changes by Justin Wehnes jweh...@gmail.com: -- nosy: +jwehnes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12537 ___ ___ Python-bugs-list mailing

[issue2636] Adding a new regex module (compatible with re)

2011-09-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I think I need a show of hands. Should the default be old behaviour (like re) or new behaviour? (It might be old now, new later.) Should there be a NEW flag (as at present), or an OLD flag, or a VERSION parameter (0=old, 1=new, 2=?)?

[issue12868] test_faulthandler.test_stack_overflow() failed on OpenBSD

2011-09-01 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: As for rthreads support, a quick search seems to indicate that its API is exactly the same as pthreads, and it's even binary compatible. Python will automatically use it when run on a OpenBSD system with rthreads enabled. Well...

[issue12879] method-wrapper objects are difficult to inspect

2011-09-01 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: 51e27f42beda and friends. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12879 ___

[issue2636] Adding a new regex module (compatible with re)

2011-09-01 Thread Jeffrey C. Jacobs
Jeffrey C. Jacobs timeho...@users.sourceforge.net added the comment: On 1 September 2011 16:12, Matthew Barnett rep...@bugs.python.org wrote: Matthew Barnett pyt...@mrabarnett.plus.com added the comment: I think I need a show of hands. For my part, I recommend literal flags, i.e.

[issue12868] test_faulthandler.test_stack_overflow() failed on OpenBSD

2011-09-01 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset a29b72950795 by Charles-François Natali in branch 'default': Issue #12868: Skip test_faulthandler.test_stack_overflow() on OpenBSD: http://hg.python.org/cpython/rev/a29b72950795 -- nosy: +python-dev

[issue12868] test_faulthandler.test_stack_overflow() failed on OpenBSD

2011-09-01 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Committed. Rémi, thanks once again for this report! -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue8813] SSLContext doesn't support loading a CRL

2011-09-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Is it enough to just load a CRL file, or is other functionality usually needed? The following APIs should help us do it: - X509_STORE *SSL_CTX_get_cert_store(const SSL_CTX *ctx); - int X509_STORE_add_crl(X509_STORE *ctx, X509_CRL *x); - X509_CRL

[issue12494] subprocess: check_output() doesn't close pipes on error

2011-09-01 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 86b7f14485c9 by Victor Stinner in branch 'default': Issue #12494: Close pipes and kill process on error in subprocess functions http://hg.python.org/cpython/rev/86b7f14485c9 -- nosy: +python-dev

[issue12494] subprocess: check_output() doesn't close pipes on error

2011-09-01 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: The second patch looks good. Tests? I don't see how to test that the pipes are closed, because the Popen object (and its stdout and stderr attributes) are not visible outside the patched functions. I consider that this issue is

[issue6560] socket sendmsg(), recvmsg() methods

2011-09-01 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: -haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6560 ___ ___

[issue12871] Disable sched_get_priority_min/max if Python is compiled without threads

2011-09-01 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: For example, the following snippet builds correctly on Linux It builds correctly with -pthread or -lpthread, but it fails to build without these options. sched_get_priority_max() and sched_get_priority_min() come from libpthread

[issue12871] Disable sched_get_priority_min/max on OpenBSD if Python is compiled without threads

2011-09-01 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- title: Disable sched_get_priority_min/max if Python is compiled without threads - Disable sched_get_priority_min/max on OpenBSD if Python is compiled without threads ___ Python tracker

[issue12636] IDLE ignores -*- coding -*- with -r option

2011-09-01 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Fixed, thanks for the report. Python 2.7 is not affected by this bug. -- versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12636

[issue12636] IDLE ignores -*- coding -*- with -r option

2011-09-01 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- resolution: works for me - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12636 ___

[issue12636] IDLE ignores -*- coding -*- with -r option

2011-09-01 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset fef1ed14 by Victor Stinner in branch '3.2': Issue #12636: IDLE reads the coding cookie when executing a Python script. http://hg.python.org/cpython/rev/fef1ed14 New changeset a8748022504f by Victor Stinner

[issue10278] add time.wallclock() method

2011-09-01 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: clock_gettime.patch: add time.clock_gettime() function and time.CLOCK_xxx constants. The patch requires to rerun autoconf. For the documentation, I don't know the availability of this function. Is it available on Windows?

[issue12852] POSIX level issues in posixmodule.c on OpenBSD 5.0

2011-09-01 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- title: test_posix.test_fdlistdir() segfault on OpenBSD - POSIX level issues in posixmodule.c on OpenBSD 5.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12852

[issue12852] POSIX level issues in posixmodule.c on OpenBSD 5.0

2011-09-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Rémi : what happens if you manually add extern DIR *fdopendir(int fd); at the beginning of posixmodule.c? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org

[issue2636] Adding a new regex module (compatible with re)

2011-09-01 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: In order to replace the re module, regex must have the same behavior (except for bugs, where the correct behavior is most likely preferred, even if it's different). Having re.OLD and warnings active by default in 3.3 (and possibly 3.4)

[issue2636] Adding a new regex module (compatible with re)

2011-09-01 Thread Steven D'Aprano
Steven D'Aprano steve+pyt...@pearwood.info added the comment: Matthew Barnett wrote: Matthew Barnett pyt...@mrabarnett.plus.com added the comment: I think I need a show of hands. Should the default be old behaviour (like re) or new behaviour? (It might be old now, new later.) Should

[issue10882] Add os.sendfile()

2011-09-01 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: -- nosy: +Yury.Selivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10882 ___ ___

[issue12528] Implement configurable bitfield allocation strategy

2011-09-01 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: Hi Vlad, On Thu, Sep 1, 2011 at 1:30 PM, Vlad Riscutia rep...@bugs.python.org wrote: Vlad Riscutia riscutiav...@gmail.com added the comment: Well currently we pack bitfields with an algorithm that uses #ifdefs for GCC and MSVC builds. This

[issue12880] ctypes: clearly document how structure bit fields are allocated

2011-09-01 Thread Meador Inge
New submission from Meador Inge mead...@gmail.com: As issues like issue6069 and issue11920 allude to, figuring out how 'ctypes' allocates bit-fields is not very clear. The documentation should be enhanced to flesh this out in more detail. As an example, Microsoft documents the VC++

[issue6069] casting error from ctypes array to structure

2011-09-01 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- stage: test needed - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6069 ___ ___

[issue6069] casting error from ctypes array to structure

2011-09-01 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: I opened issue12880 for the doc bug. Closing this one out ... -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6069

[issue11920] ctypes: Strange bitfield structure sizing issue

2011-09-01 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: Hi Steve, There is currently no way to deal with this situation. Vlad has opened issue12528 with a proposal to make the allocation strategy configurable from the 'ctypes' API. Please follow that issue if you are still interested. I am

[issue9030] ctypes variable limits

2011-09-01 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- nosy: -theller stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9030 ___ ___

[issue9175] ctypes doesn't build on hp-ux

2011-09-01 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- assignee: theller - nosy: -theller priority: normal - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9175 ___

[issue6980] fix ctypes build failure on armel-linux-gnueabi with -mfloat-abi=softfp

2011-09-01 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: This was, in fact, committed already. -- assignee: theller - nosy: +meadori -theller resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue6980] fix ctypes build failure on armel-linux-gnueabi with -mfloat-abi=softfp

2011-09-01 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: Whoops. I meant to post a link to the commit before. It is here: http://hg.python.org/cpython/rev/584db03e5248. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6980

[issue5718] Problem compiling ffi part of build on AIX 5.3.

2011-09-01 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- assignee: theller - nosy: -theller priority: normal - low stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5718 ___

[issue6006] ffi.c compile failures on AIX 5.3 with xlc

2011-09-01 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- assignee: theller - nosy: -theller priority: normal - low stage: - patch review type: - compile error ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6006

[issue12819] PEP 393 - Flexible Unicode String Representation

2011-09-01 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12819 ___ ___ Python-bugs-list mailing list

[issue2636] Adding a new regex module (compatible with re)

2011-09-01 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Also note that some behaviors are not old or compatible, but just different. For example why inline flags should be the old (or new) behavior? Or e.g. the behavior of version 2 but not 0 and 1? Also what if I want zero-width splits but

[issue12764] segfault in ctypes.Struct with bad _fields_

2011-09-01 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: Vlad, Thanks for the patch. A few nits: 1. The test case is in 'test_bitfields.py'. I think it should go in 'test_structures.py'. 2. The test case would probably be cleaner using a 'with' context manager: with

[issue12881] ctypes: segfault with large structure field names

2011-09-01 Thread Meador Inge
New submission from Meador Inge mead...@gmail.com: Reproduced on Fedora 15 with tip Python: [meadori@motherbrain cpython]$ ./python Python 3.3.0a0 (default:3102951cc1ce+, Sep 1 2011, 22:19:06) [GCC 4.6.0 20110603 (Red Hat 4.6.0-10)] on linux Type help, copyright, credits or license for more

[issue2636] Adding a new regex module (compatible with re)

2011-09-01 Thread Steven D'Aprano
Steven D'Aprano steve+pyt...@pearwood.info added the comment: Ezio Melotti wrote: Ezio Melotti ezio.melo...@gmail.com added the comment: Also note that some behaviors are not old or compatible, but just different. For example why inline flags should be the old (or new) behavior? Or

[issue12882] mmap crash on Windows

2011-09-01 Thread Abhijit Bhattacharjee
New submission from Abhijit Bhattacharjee itabhij...@gmail.com: The following Code causes Python to crash import os import mmap data = mmap.mmap(open(Certain File,r+).fileno(),os.path.getsize(Certain File)) assuming Certain File is present in the current working directory --

[issue12850] [PATCH] stm.atomic

2011-09-01 Thread Armin Rigo
Armin Rigo ar...@users.sourceforge.net added the comment: Antoine: we could take two lines from the current implementation of these hook from stm/transactionmodule.c, and move them to the interpreter core. CPython would end up with containing the core logic for transactions. A possible API

[issue12852] POSIX level issues in posixmodule.c on OpenBSD 5.0

2011-09-01 Thread Remi Pointel
Remi Pointel pyt...@xiri.fr added the comment: Rémi : what happens if you manually add extern DIR *fdopendir(int fd); at the beginning of posixmodule.c? Hello, it seems to correctly work: ./python Lib/test/test_posix.py testNoArgFunctions (__main__.PosixTester) ... ok test_access

[issue12871] Disable sched_get_priority_min/max if Python is compiled without threads

2011-09-01 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: It builds correctly with -pthread or -lpthread, but it fails to build without these options. Not on Linux: this is specific to OpenBSD. sched_get_priority_max() and sched_get_priority_min() come from libpthread on OpenBSD,