[issue13968] Support recursive globs

2012-02-28 Thread Michael . Elsdörfer
Michael.Elsdörfer added the comment: This should absolutely be implemented as **: - It is pretty much standard. Recursive globbing is not supported everywhere, but when it is, ** is used. - A separate function will not allow me to let the *user* to decide when recursion should be used. I fin

[issue14152] setup.py: Python header file dependencies

2012-02-28 Thread Éric Araujo
Éric Araujo added the comment: I actually meant: when you build in any directory other that the top-level checkout directory. -- ___ Python tracker ___

[issue14155] Deja vu in re's documentation

2012-02-28 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +ezio.melotti, pitrou versions: +Python 2.7, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list

[issue14134] xmlrpc.client.ServerProxy needs timeout parameter

2012-02-28 Thread Éric Araujo
Changes by Éric Araujo : -- stage: -> test needed title: "xmlrpc.client.ServerProxy()" -- need for "timeout"-parameter -> xmlrpc.client.ServerProxy needs timeout parameter ___ Python tracker

[issue14152] setup.py: Python header file dependencies

2012-02-28 Thread Éric Araujo
Éric Araujo added the comment: Does the 2.6 code work when you build in a subdirectory? (I assume that’s why sysconfig is used instead of hard-coding, but I’ll check the VCS log when I have some time to be sure.) -- nosy: +eric.araujo ___ Python t

[issue14149] argparse usage model requires argument names to be python identifiers

2012-02-28 Thread Éric Araujo
Éric Araujo added the comment: If argparse munged foo-bar to foo_bar to allow attribute access, then it’d need to disallow ambiguous cases like add_argument('foo_bar', ...); add_argument('foo-bar', ...). I’m not sure if there is real, sensible code that does that, though. > Namespace should

[issue14135] check for locale changes in test.regrtest

2012-02-28 Thread Éric Araujo
Changes by Éric Araujo : -- title: check for locale changes in test.support -> check for locale changes in test.regrtest ___ Python tracker ___ _

[issue13405] Add DTrace probes

2012-02-28 Thread Larry Hastings
Changes by Larry Hastings : -- nosy: +larry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue14153] Expose os.device_encoding() at the C level

2012-02-28 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2012/2/28 Brett Cannon : > > Brett Cannon added the comment: > > OK, then I will make this happen. People care whether it take an int or a > PyObject? That seems to be the only open question. Probably int if it goes in fileutils. -- _

[issue14153] Expose os.device_encoding() at the C level

2012-02-28 Thread Brett Cannon
Brett Cannon added the comment: OK, then I will make this happen. People care whether it take an int or a PyObject? That seems to be the only open question. -- ___ Python tracker _

[issue14153] Expose os.device_encoding() at the C level

2012-02-28 Thread Benjamin Peterson
Benjamin Peterson added the comment: I think fileutils.c is a good place. Then we can kill the import of "os" in io, which would be nice. -- nosy: +benjamin.peterson ___ Python tracker ___

[issue14153] Expose os.device_encoding() at the C level

2012-02-28 Thread Brett Cannon
Brett Cannon added the comment: Either that or PyObject *_Py_device_encoding(PyObject *fd) would help since both _io and posixmodule.c will have a PyObject already for the fd. -- ___ Python tracker __

[issue14155] Deja vu in re's documentation

2012-02-28 Thread py.user
New submission from py.user : This paragraph is redundant http://docs.python.org/py3k/library/re.html#matching-vs-searching a duplicate http://docs.python.org/py3k/library/re.html#search-vs-match the part about match() behavior in multiline mode could be described in note here: http://docs.py

[issue14146] IDLE: source line in editor doesn't highlight when debugging

2012-02-28 Thread Roger Serwy
Roger Serwy added the comment: I am not seeing this problem under Ubuntu, but I do see this problem on Vista. It looks like the "sel" tags get hidden when a window loses focus under Windows. -- ___ Python tracker

[issue9631] Python 2.7 installation issue for Linux gcc-4.1.0-3 (Fedora Core 5?)

2012-02-28 Thread Space Li
Space Li added the comment: Hi, I recently compiled Python 2.7.2 and got an ImportError on struct module during 'make install'. What I found working for me is just to 'make'. Before doing 'make install', copy the lib.linux-x directory in 'build' to {prefix}/lib/python2.7 and rename it

[issue13405] Add DTrace probes

2012-02-28 Thread Marc Abramowitz
Marc Abramowitz added the comment: For anyone who is curious about the FreeBSD 9.0 DTrace userland problems I experienced, see http://www.freebsd.org/cgi/query-pr.cgi?pr=165541 -- ___ Python tracker _

[issue13086] Update howto/cporting.rst so it talks about Python 3 instead of 3.0

2012-02-28 Thread Larry Hastings
Larry Hastings added the comment: Now checked in to 2.7, 3.2, and default. Thanks everyone! -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue13053] Add Capsule migration documentation to "cporting"

2012-02-28 Thread Larry Hastings
Larry Hastings added the comment: Now checked in to 2.7, 3.2, and default. Thanks everyone! -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue13053] Add Capsule migration documentation to "cporting"

2012-02-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset c316e8a4a5e2 by Larry Hastings in branch 'default': Merge: Propagate changes for issues #13053 and #13086 from 2.7 to 3.2. http://hg.python.org/cpython/rev/c316e8a4a5e2 -- ___ Python tracker

[issue13086] Update howto/cporting.rst so it talks about Python 3 instead of 3.0

2012-02-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset c316e8a4a5e2 by Larry Hastings in branch 'default': Merge: Propagate changes for issues #13053 and #13086 from 2.7 to 3.2. http://hg.python.org/cpython/rev/c316e8a4a5e2 -- ___ Python tracker

[issue13086] Update howto/cporting.rst so it talks about Python 3 instead of 3.0

2012-02-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 28849d00a41e by Larry Hastings in branch '3.2': Propagate changes for issues #13053 and #13086 from 2.7 to 3.2. (Doc only.) http://hg.python.org/cpython/rev/28849d00a41e -- ___ Python tracker

[issue13053] Add Capsule migration documentation to "cporting"

2012-02-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 28849d00a41e by Larry Hastings in branch '3.2': Propagate changes for issues #13053 and #13086 from 2.7 to 3.2. (Doc only.) http://hg.python.org/cpython/rev/28849d00a41e -- ___ Python tracker

[issue13086] Update howto/cporting.rst so it talks about Python 3 instead of 3.0

2012-02-28 Thread Larry Hastings
Larry Hastings added the comment: @eric.araujo: I talked to Brett about it. We don't pretend that Python 3.0 never existed; we tell people it's unsupported and unsuitable for production use. At his suggestion I added a statement to that effect, and left the rest the same. I'll now manually

[issue13086] Update howto/cporting.rst so it talks about Python 3 instead of 3.0

2012-02-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset eb88cc90cc56 by Larry Hastings in branch '2.7': Issue #13086: Update howto/cporting.rst to discuss "Python 3" instead of "3.0". http://hg.python.org/cpython/rev/eb88cc90cc56 -- nosy: +python-dev ___ Pyth

[issue14134] "xmlrpc.client.ServerProxy()" -- need for "timeout"-parameter

2012-02-28 Thread Andrej A Antonov
Andrej A Antonov added the comment: in this subject -- I think about like this changes (see file "example-of-changes.patch") -- keywords: +patch Added file: http://bugs.python.org/file24675/example-of-changes.patch ___ Python tracker

[issue14152] setup.py: Python header file dependencies

2012-02-28 Thread Stefan Krah
Stefan Krah added the comment: In Python2.6 all headers from Include/ were added: # Python header files headers = glob("Include/*.h") + ["pyconfig.h"] -- ___ Python tracker _

[issue14136] Simplify PEP 409 command line test and move it to test_cmd_line_script

2012-02-28 Thread Nick Coghlan
Nick Coghlan added the comment: Hah, I've been dealing with Python's regression test suite for 8+ years and there are still cases where I don't understand the rationale for testing things a particular way (beyond "it must have seemed like a good idea at the time"). It has a lot more historica

[issue14154] reimplement the bigmem test memory watchdog as a subprocess

2012-02-28 Thread STINNER Victor
STINNER Victor added the comment: A subprocess looks simpler (and safer?) than a C thread with a pipe. + f = open(self.procfile, 'r') 'rb' mode is enough here, no need of Unicode ;-) + self.mem_watchdog = subprocess.Popen(..., stdin=f) Can't you open the /proc/pid/stat file in the child proc

[issue14113] Failure in test_strptime on Windows

2012-02-28 Thread Nadeem Vawda
Changes by Nadeem Vawda : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue14148] Option to kill "stuck" workers in a multiprocessing pool

2012-02-28 Thread Paul Moore
Paul Moore added the comment: As an alternative, maybe leave the "stuck" worker, but allow the pool to recognise when a worker has not processed new messages for a long period and spawn an extra worker to replace it. That would avoid the starvation issue, and the stuck workers would die when the

[issue14153] Expose os.device_encoding() at the C level

2012-02-28 Thread STINNER Victor
STINNER Victor added the comment: If it can help to bootstrap importlib, you can add: PyObject* _Py_device_encoding(int fd); And reuse it in posixmodule.c. -- ___ Python tracker _

[issue14113] Failure in test_strptime on Windows

2012-02-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3ea8d0afe541 by Nadeem Vawda in branch '2.7': Give better failure messages in test_strptime (cf. issue #14113). http://hg.python.org/cpython/rev/3ea8d0afe541 New changeset 8d2ffe1f25d3 by Nadeem Vawda in branch '3.2': Give better failure messages i

[issue14148] Option to kill "stuck" workers in a multiprocessing pool

2012-02-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: The problem is that queues and other synchronization objects can end up in an inconsistent state when a worker crashes, hangs or gets killed. That's why, in concurrent.futures, a crashed worker makes the ProcessPoolExecutor become "broken". A similar thing sho

[issue14154] reimplement the bigmem test memory watchdog as a subprocess

2012-02-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: It's so much simpler that I feel a bit ridiculous with my earlier solution :) -- nosy: +haypo ___ Python tracker ___ __

[issue14146] IDLE: source line in editor doesn't highlight when debugging

2012-02-28 Thread Rich Rauenzahn
Rich Rauenzahn added the comment: Yes, the source box was checkmarked. Not the first one to encounter this as well: http://python.6.n6.nabble.com/IDLE-not-highlighting-current-line-while-debugging-on-Win-td2113345.html -- ___ Python tracker

[issue14154] reimplement the bigmem test memory watchdog as a subprocess

2012-02-28 Thread Nadeem Vawda
Changes by Nadeem Vawda : -- nosy: +nadeem.vawda ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue14154] reimplement the bigmem test memory watchdog as a subprocess

2012-02-28 Thread Charles-François Natali
New submission from Charles-François Natali : As suggested in http://bugs.python.org/msg154330, here's a rewrite of the test memory watchdog using subprocess instead of thread + faulthandler. -- components: Tests files: mem_watchdog_subprocess.diff keywords: needs review, patch messages

[issue14145] string.rfind() returns AttributeError: 'list' object has no attribute 'rfind'

2012-02-28 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue14153] Expose os.device_encoding() at the C level

2012-02-28 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue14145] string.rfind() returns AttributeError: 'list' object has no attribute 'rfind'

2012-02-28 Thread Griffin Smith
Griffin Smith added the comment: Actually, I did some diagnosis and it would appear it was actually an inappropriate call - I was assuming os.path.walk returned a tuple containing a list of files instead of a tuple containing a list of lists of files. Sorry about that. -- __

[issue14145] string.rfind() returns AttributeError: 'list' object has no attribute 'rfind'

2012-02-28 Thread Eric V. Smith
Eric V. Smith added the comment: I'm going to close this. Feel free to re-open it if you can give a small example showing the problem. -- resolution: -> invalid status: open -> closed type: crash -> behavior ___ Python tracker

[issue13405] Add DTrace probes

2012-02-28 Thread Marc Abramowitz
Marc Abramowitz added the comment: [marca@freebsd9-0 ~]$ /home/marca/custom/bin/python Python 2.7.2+ (dtrace-issue13405_2.7:e612f29478e3+, Feb 27 2012, 20:37:22) [GCC 4.2.1 20070831 patched [FreeBSD]] on freebsd9 Type "help", "copyright", "credits" or "license" for more information. >>> [marca

[issue14146] IDLE: source line in editor doesn't highlight when debugging

2012-02-28 Thread Roger Serwy
Roger Serwy added the comment: Is the "Source" check box in the Debug Control window checked? -- nosy: +serwy ___ Python tracker ___

[issue14152] setup.py: Python header file dependencies

2012-02-28 Thread Stefan Krah
Stefan Krah added the comment: There is a comment in setup.py that suggests that *all* Python headers should be added to the dependencies (?): # Python header files headers = [sysconfig.get_config_h_filename()] headers += glob(os.path.join(sysconfig.get_path('platinclude'), "*.h")) Was

[issue13405] Add DTrace probes

2012-02-28 Thread Marc Abramowitz
Marc Abramowitz added the comment: I wanted to post an update on FreeBSD 9.0, which Jesús and I worked on a bit yesterday. Maybe Jordan will chime in here with an answer to my FreeBSD problems. :-) With a little bit of Makefile hackery (make it skip building the phelper stuff which was faili

[issue13405] Add DTrace probes

2012-02-28 Thread Marc Abramowitz
Marc Abramowitz added the comment: Limiting to 10.6 and above seems entirely reasonable to me. I am one of the few folks that I know who is still on 10.6. Most of my friends are on 10.7. Since OS X is primarily a desktop OS, I think people tend to upgrade more quickly compared to more of a se

[issue12151] test_logging fails sometimes

2012-02-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset ce0b9b1328d4 by Vinay Sajip in branch 'default': Added additional diagnostics to help with #12151. http://hg.python.org/cpython/rev/ce0b9b1328d4 -- ___ Python tracker

[issue13405] Add DTrace probes

2012-02-28 Thread Philip Jenvey
Philip Jenvey added the comment: Actually 10.5 was the last PowerPC release -- nosy: +pjenvey ___ Python tracker ___ ___ Python-bugs-

[issue13405] Add DTrace probes

2012-02-28 Thread Wilfredo Sanchez
Wilfredo Sanchez added the comment: Given that the current Mac OS is 10.7, and 10.8 was just announced, it seems reasonable to limit support to 10.6, if going back any further is more than a little bit of additional work. IIRC, 10.6 is also the last release to support PowerPC, so going back t

[issue13405] Add DTrace probes

2012-02-28 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: MacOS 10.6 was released in August 2009. The code should compile there flawless with a couple of trivial changes, as proved by Marc. Supporting compilation in MacOS 10.5 is doable but more difficult. Since this is an optional feature, not impacting python pro

[issue14136] Simplify PEP 409 command line test and move it to test_cmd_line_script

2012-02-28 Thread Ethan Furman
Ethan Furman added the comment: Nick, Thank you for your thorough answers. I'm not trying to be difficult, just trying to learn and understand. -- ___ Python tracker ___

[issue14153] Expose os.device_encoding() at the C level

2012-02-28 Thread Brett Cannon
New submission from Brett Cannon : The _io module imports the os module purely for the use of os.device_encoding(). That function, though, is defined by posix and thus is already available to C code. To avoid this import dependency it would be better to simply expose the function somehow so th

[issue14152] arraymodule: structmember.h dependency

2012-02-28 Thread Stefan Krah
New submission from Stefan Krah : The arraymodule depends on "structmember.h". Patch attached. -- components: Build files: arraymodule_deps.diff keywords: patch messages: 154556 nosy: skrah priority: normal severity: normal stage: patch review status: open title: arraymodule: structmembe

[issue14080] Sporadic test_imp failure

2012-02-28 Thread Brett Cannon
Brett Cannon added the comment: Then how do you explain the failure being nothing more than prepending . compared to an absolute file path? Anyway, the test passes under importlib with ``./python.exe -m importlib.test.regrtest test_imp``, so it requires some special setup to trigger the fail

[issue14136] Simplify PEP 409 command line test and move it to test_cmd_line_script

2012-02-28 Thread Ethan Furman
Ethan Furman added the comment: Moved to test_cmd_line_script. -- Added file: http://bugs.python.org/file24672/raise_from_none_test_cleanup.diff ___ Python tracker ___ _

[issue10115] Support accept4() for atomic setting of flags at socket creation

2012-02-28 Thread Matt Joiner
Matt Joiner added the comment: Can we get this exposed as an os.accept4, and an optional flags parameter to socket.socket.accept? -- nosy: +anacrolix ___ Python tracker ___ ___

[issue14151] multiprocessing.connection.Listener fails with invalid address

2012-02-28 Thread Popa Claudiu
New submission from Popa Claudiu : In multiprocessing.connection, when using a Windows named pipe on a Unix platform, the following error will occur. This should not happen, the format of the address should be validated somehow before. The following error will occur because PipeListener is not

[issue14150] AIX, crash loading shared module into another process than python like operator.so results in 0509-130

2012-02-28 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +sable ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue14150] AIX, crash loading shared module into another process than python like operator.so results in 0509-130

2012-02-28 Thread Jan Stürtz
New submission from Jan Stürtz : AIX 5.2.0.0 with gcc 4.3.0: Compiling a shared python: with: ./configure --enable-shared --with-gcc --disable-ipv6 --with-system-ffi make; make install results in a working build. But when I build mod_wsgi into apache with this python and run it I get the follwo

[issue13903] New shared-keys dictionary implementation

2012-02-28 Thread Mark Shannon
Changes by Mark Shannon : Added file: http://bugs.python.org/file24670/49b7e7e4a27c.diff ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue14149] Argparse usage model requires argument names to be python identifiers

2012-02-28 Thread Joseph Birr-Pixton
New submission from Joseph Birr-Pixton : Say I have an argument with the name 'foo-bar'. Argparse accepts and parses arguments, but Namespace does not allow me to access the value. Yes, I can use getattr or Namespace.__dict__. But that's ugly. Yes, I can change the name of the argument, but t

[issue14148] Option to kill "stuck" workers in a multiprocessing pool

2012-02-28 Thread Paul Moore
New submission from Paul Moore : I have an application which fires off a number of database connections via a multiprocessing pool. Unfortunately, the database software occasionally gets "stuck" and a connection request hangs indefinitely. This locks up the whole process doing the connection,

[issue8170] Wrong Paths for distutils build --plat-name=win-amd64

2012-02-28 Thread Mark Hammond
Mark Hammond added the comment: Can't you just install a 64bit Python in a different directory and use that executable to build the 64bit installer? It seems less error prone and should work without manually copying stuff or changing any code. --

[issue14136] Simplify PEP 409 command line test and move it to test_cmd_line_script

2012-02-28 Thread Nick Coghlan
Nick Coghlan added the comment: test_cmd_line and test_cmd_line_script are both about testing the behaviour of the interpreter when run from the command line. Since this test *is* a behavioural test for the interpreter when invoked as an application, it should be in one of them. The former i

[issue14136] Simplify PEP 409 command line test and move it to test_cmd_line_script

2012-02-28 Thread Ethan Furman
Ethan Furman added the comment: I guess the crux of the issue for me is that I'm trying to test interpreter output, and the fact that I am using a command-line script to do so is an implementation detail. -- ___ Python tracker

[issue14136] Simplify PEP 409 command line test and move it to test_cmd_line_script

2012-02-28 Thread Ethan Furman
Ethan Furman added the comment: Is there a better place, then, than test_cmd_line_script? The entire purpose of PEP 409 is to allow the suppression of non-relevant information in the exception traceback. As such I would expect every Python interpreter to adhere to it. (Yes, I understand tha

[issue14136] Simplify PEP 409 command line test and move it to test_cmd_line_script

2012-02-28 Thread Nick Coghlan
Nick Coghlan added the comment: It's about separating out the testing of the command line executable (i.e. test_cmd_line and test_cmd_line_script) from that of the interpreter's internal behaviour. test_raise is about making sure the "raise" statement works correctly - the new test isn't tes

[issue8170] Wrong Paths for distutils build --plat-name=win-amd64

2012-02-28 Thread Robin Becker
Robin Becker added the comment: Some context. ReportLab windows exe installers for pythons 2.x x=4-7 are built on a single 32bit machine with 32bit pythons using a code that looks like this set FT_LIB=c:\devel\libs_x86\freetype.lib \python2x\python setup.py bdist_wininst --bitmap=%BMP% --title

[issue14136] Simplify PEP 409 command line test and move it to test_cmd_line_script

2012-02-28 Thread Ethan Furman
Ethan Furman added the comment: Changed TestTraceback.test_traceback_verbiage to use test.support and test.script_helper (much simpler now, thanks Antoine!). It is still in test_raise, however. I do not understand why we would put it in test_cmd_line_script -- it seems to me that test_cmd_

[issue14145] string.rfind() returns AttributeError: 'list' object has no attribute 'rfind'

2012-02-28 Thread Eric V. Smith
Eric V. Smith added the comment: I can't reproduce this. Can you please post the entire traceback? It would be preferable if you could also show the exact code that's causing the problem, typed from a python command prompt (see my example below). I can reproduce the error if I pass a list to

[issue13876] Sporadic failure in test_socket

2012-02-28 Thread Nadeem Vawda
Nadeem Vawda added the comment: The same failure has appeared on the Debian bigmem buildbot: http://www.python.org/dev/buildbot/all/builders/AMD64%20debian%20bigmem%203.x/builds/152/steps/test/logs/stdio -- versions: +Python 3.3 ___ Python tracker

[issue14147] print r"\" cause SyntaxError

2012-02-28 Thread Ezio Melotti
Ezio Melotti added the comment: See http://docs.python.org/faq/design.html#why-can-t-raw-strings-r-strings-end-with-a-backslash -- nosy: +ezio.melotti resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python tracker <

[issue14147] print r"\" cause SyntaxError

2012-02-28 Thread lilei
New submission from lilei : $ python Python 2.7.1 (r271:86832, Apr 16 2011, 23:27:12) [GCC 3.4.5 20051201 (Red Hat 3.4.5-2)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> print r'\' File "", line 1 print r'\' ^ SyntaxError: EOL while scan

[issue12905] multiple errors in test_socket on OpenBSD

2012-02-28 Thread Charles-François Natali
Changes by Charles-François Natali : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: