ANN: trombi 0.9.0

2011-03-31 Thread Jyrki Pulliainen
Announcing Trombi version 0.9.0 Trombi is an asynchronous CouchDB client for Tornado, the asynchronous web server by Facebook. Version 0.9.0 brings following changes: Views: * Add support for querying _all_docs (Thanks Jeremy Kelley) * Add support for bulk_docs * Add support for changes

ANNOUNCE: sqlkit 0.9.3.2

2011-03-31 Thread sandro
ANNOUNCE: sqlkit 0.9.3.2 March, 31 - 2011 I'm happy to announce release 0.9.3.1 of sqlkit package for Python. http://sqlkit.argolinux.org/ This release An option as been added to sqledit to create tables if the model is provided.

Wing IDE 4.0.1 released

2011-03-31 Thread Wingware
Hi, Wingware has released version 4.0.1 of Wing IDE, an integrated development environment designed specifically for the Python programming language. Wing IDE is a cross-platform Python IDE that provides a professional code editor with vi, emacs, and other key bindings, auto-completion, call

GroupServer 11.03 — Pineapple Snow at a Child's Party

2011-03-31 Thread Richard Waid
The team at OnlineGroups.Net is pleased to announce the release of GroupServer 11.03 — Pineapple Snow at a Child's Party. Pineapple Snow is now available from: http://groupserver.org/downloads/ Changes in this release concentrate on a new Change Email Settings page. The the release notes

Re: Guido rethinking removal of cmp from sort method

2011-03-31 Thread harrismh777
Antoon Pardon wrote: On Sun, Mar 13, 2011 at 12:59:55PM +, Steven D'Aprano wrote: The removal of cmp from the sort method of lists is probably the most disliked change in Python 3. On the python-dev mailing list at the moment, Guido is considering whether or not it was a mistake. If anyone

Re:py 2.7.1 openssl

2011-03-31 Thread nirinA raseliarison
[V N] I installed openssl-1.0.0d.tar.gz on my RHEL 5 box using: ./config --prefix=/usr/local --openssldir=/usr/local/openssl shared zlib you need to compile openssl with -fPIC flags, depending on your system and compiler: ./config linux-generic:gcc -fPIC shared and then recompile Python.

Re: Guido rethinking removal of cmp from sort method

2011-03-31 Thread Steven D'Aprano
On Thu, 31 Mar 2011 01:34:17 -0500, harrismh777 wrote: Many of you (Guido included) have lost significant sight of a critical object oriented philosophical pillar (but not all of you, thank goodness). To cut right to the heart of it--- NEVER change an advertised interface. Thanks for

Re: Learn Python the Hardway exercise 11 question 4

2011-03-31 Thread Steven D'Aprano
On Wed, 30 Mar 2011 20:03:09 -0700, Joseph Sanoyo wrote: print How old are you?, age = raw_input() print How tall are you?, height = raw_input() print How much do you weigh?, weight = raw_input() print So, you're %r old, %r tall and %r heavy. % ( age, height, weight) Note: Notice that we

Re: Guido rethinking removal of cmp from sort method

2011-03-31 Thread Antoon Pardon
On Thu, Mar 31, 2011 at 02:13:53AM +, Steven D'Aprano wrote: On Wed, 30 Mar 2011 11:06:20 +0200, Antoon Pardon wrote: As far as I can see, key will only produce significant speedups, if comparing items can then be completly done internally in the python engine without referencing user

Re: Guido rethinking removal of cmp from sort method

2011-03-31 Thread Paul Rubin
Antoon Pardon antoon.par...@rece.vub.ac.be writes: Something else the dev team can consider, is a Negation class This would have to be done by the dev team since I guess that writing such a thing in Python would loose all the speed of using a key-function. That is a good idea. SQL has

Re: argparse csv + choices

2011-03-31 Thread Neal Becker
Robert Kern wrote: On 3/30/11 10:32 AM, Neal Becker wrote: I'm trying to combine 'choices' with a comma-seperated list of options, so I could do e.g., --cheat=a,b parser.add_argument ('--cheat', choices=('a','b','c'), type=lambda x: x.split(','), default=[]) test.py --cheat a

EuroPython 2011: call for paper is ending - Please spread the word!

2011-03-31 Thread Palla
Hi all members, I'm Francesco and I am writing on behalf of Python Italia APS, a no- profit association promoting EuroPython conference. (www.europython.eu) Europython end of Call for Presentations is April 6th. I'd like to ask to you to forward this mail to anyone that you feel may be

EuroPython 2011: call for paper is ending - Please spread the word!

2011-03-31 Thread Palla
Hi all members, I'm Francesco and I am writing on behalf of Python Italia APS, a no-profit association promoting EuroPython conference. (www.europython.eu) Europython End of Call for Presentations is April 6th. I'd like to ask to you to forward this mail to anyone that you feel may be interested.

Re: running Python2 Python3 parallel concurrent

2011-03-31 Thread John Roth
On Mar 30, 7:05 pm, harrismh777 harrismh...@charter.net wrote: Greetings,      The purpose of this communique is to document a process for installing python2.7.1 in parallel with python3.2 on a concurrent desktop with independent idle and python path structure. ...      Kind regards,    

Re: Get USB ID of a serial port through pyserial?

2011-03-31 Thread Tim Golden
On 30/03/2011 20:01, John Nagle wrote: Is there some way to get the USB ID of a serial port through pyserial on Linux and/or Windows? USB serial port devices have device names determined by when they were plugged in. So, if you have more than one USB serial device, you need the USB device's

Re: Guido rethinking removal of cmp from sort method

2011-03-31 Thread Terry Reedy
On 3/31/2011 2:34 AM, harrismh777 wrote: breaking a fundamental law of object oriented programming... don't break and advertised interface (particularly if it is useful and people are actually making use of it!). This is insane folks. Each x.y version (starting with 2.3) is feature stable:

Re: Learn Python the Hardway exercise 11 question 4

2011-03-31 Thread eryksun ()
On Wednesday, March 30, 2011 11:03:09 PM UTC-4, JosephS wrote: print How old are you?, age = raw_input() print How tall are you?, height = raw_input() print How much do you weigh?, weight = raw_input() print So, you're %r old, %r tall and %r heavy. % ( age, height, weight) Note: Notice that

Re: Learn Python the Hardway exercise 11 question 4

2011-03-31 Thread Chris Angelico
On Fri, Apr 1, 2011 at 3:12 AM, eryksun () eryk...@gmail.com wrote: There appears to be a formatting error here. So remind me again why Python likes whitespace to be significant? /troll :) Chris Angelico PS. Yes, I know remind me again is redundant. You have to make mistakes when you troll,

python 2.6 script for Ubuntu Enterprise Cloud

2011-03-31 Thread shrek
Greetings I am having some problems with one of the scripts below. I wonder if anyone has run into a similar issue or knows a fix? Seems I need to configure the proxy for python. I did it in image- store-proxy file in /var/log. Is that the right place? --

Re: Learn Python the Hardway exercise 11 question 4

2011-03-31 Thread Dan Stromberg
On Thu, Mar 31, 2011 at 9:18 AM, Chris Angelico ros...@gmail.com wrote: On Fri, Apr 1, 2011 at 3:12 AM, eryksun () eryk...@gmail.com wrote: There appears to be a formatting error here. So remind me again why Python likes whitespace to be significant? /troll

Re: py 2.7.1 openssl

2011-03-31 Thread V N
Thank you for your response. Here's some more information: RHEL 5.3 / x86_64, using gcc I am now compiling openssl-1.0.0d using: ./config --prefix=/usr/local --openssldir=/usr/local/openssl -fPIC shared threads zlib I do have the logs for config, make and make install. There are no errors

Re: Get USB ID of a serial port through pyserial?

2011-03-31 Thread wisecracker
Hi John Nagle... Is there some way to get the USB ID of a serial port through pyserial on Linux and/or Windows? I`m surprised that the big guns on here haven`t helped... Short answer no. USB serial port devices have device names determined by when they were plugged in. Yep and they are

Corrections... :/

2011-03-31 Thread wisecracker
Sorry but I typed that loy in manually so:- # Linux... if sys.platform == linux2: # myportnumber = raw_input(.. should read:- myportnumber = raw_input(.. # Similarly for Windows... if sys.platform == win32: # myportnumber = raw_input( should also

Re: multiprocessing Pool.imap broken?

2011-03-31 Thread Yang Zhang
The problem was that Pool shuts down from its finalizer: http://stackoverflow.com/questions/5481104/multiprocessing-pool-imap-broken/5481610#5481610 On Wed, Mar 30, 2011 at 5:59 AM, eryksun () eryk...@gmail.com wrote: On Tuesday, March 29, 2011 9:44:21 PM UTC-4, Yang Zhang wrote: I've tried

Re: multiprocessing Pool.imap broken?

2011-03-31 Thread Yang Zhang
My self-reply tried to preempt your suggestion :) On Wed, Mar 30, 2011 at 12:12 AM, kyle.j.con...@gmail.com kyle.j.con...@gmail.com wrote: Yang, My guess is that you are running into a problem using multiprocessing with the interpreter. The documentation states that Pool may not work

call php function from python

2011-03-31 Thread CrabbyPete
I have a python script that automatically loads wordpress, up to the point that it asks for the admin password. that is a php function call function wp_install( $blog_title, $user_name, $user_email, $public, $deprecated = '', $user_password = '' ) Is there a way to call this function from

Re: FBI wants public help solving encrypted notes from murder mystery

2011-03-31 Thread Joe Snodgrass
On Mar 30, 10:18 pm, Stretto stre...@nowhere.com wrote: Joe Snodgrass joe.s...@yahoo.com wrote in message news:c37e8e0b-a825-4ac5-9886-8828ab1fa...@x8g2000prh.googlegroups.com... FBI cryptanalysis hasn’t decrypted notes from 1999 murder mystery http://tinyurl.com/4d56zsz The FBI is

Re: call php function from python

2011-03-31 Thread John Bokma
CrabbyPete pete.do...@gmail.com writes: I have a python script that automatically loads wordpress, up to the point that it asks for the admin password. that is a php function call function wp_install( $blog_title, $user_name, $user_email, $public, $deprecated = '', $user_password = '' )

Re: multiprocessing Pool.imap broken?

2011-03-31 Thread eryksun ()
For comparison, here's the debug info on Win32 Python 2.71. Multiprocessing on Windows seems like a very different beast (e.g. there's no way to fork). Case 1: In [1]: %cpaste Pasting code; enter '--' alone on the line to stop. :import multiprocessing as mp :import multiprocessing.util as util

Re: Learn Python the Hardway exercise 11 question 4

2011-03-31 Thread Chris Angelico
On Fri, Apr 1, 2011 at 4:54 AM, Dan Stromberg drsali...@gmail.com wrote: http://stromberg.dnsalias.org/~strombrg/significant-whitespace.html I was trolling, I know the reasons behind it. Anyway, most people don't share code by email! (Actually, since you seem to be the author of that page -

Re: Learn Python the Hardway exercise 11 question 4

2011-03-31 Thread Dan Stromberg
On Thu, Mar 31, 2011 at 1:35 PM, Chris Angelico ros...@gmail.com wrote: On Fri, Apr 1, 2011 at 4:54 AM, Dan Stromberg drsali...@gmail.com wrote: http://stromberg.dnsalias.org/~strombrg/significant-whitespace.html I was trolling, I know the reasons behind it. Anyway, most people don't

In List Query - None Case Sensitive?

2011-03-31 Thread Wehe, Marco
Hi, I am doing a search through a list of files but the text the casing doesn't match. My list is all upper case but the real files are all different. Is there a smooth way of searching through the list without going full on regular expressions? path = V:\\Jinsy\\incoming\\assets

Re: Learn Python the Hardway exercise 11 question 4

2011-03-31 Thread eryksun ()
On Thursday, March 31, 2011 4:35:42 PM UTC-4, Chris Angelico wrote: I was trolling, I know the reasons behind it. Anyway, most people don't share code by email! (Actually, since you seem to be the author of that page - could you address that particular point? I think it's probably as big an

Re: In List Query - None Case Sensitive?

2011-03-31 Thread Chris Angelico
On Fri, Apr 1, 2011 at 8:14 AM, Wehe, Marco marco.w...@bskyb.com wrote: I am doing a search through a list of files but the text the casing doesn't match. My list is all upper case but the real files are all different. Is there a smooth way of searching through the list without going full on

Re: In List Query - None Case Sensitive?

2011-03-31 Thread Ian Kelly
On Thu, Mar 31, 2011 at 3:14 PM, Wehe, Marco marco.w...@bskyb.com wrote: Hi, I am doing a search through a list of files but the text the casing doesn't match. My list is all upper case but the real files are all different. Is there a smooth way of searching through the list without going

Re: In List Query - None Case Sensitive?

2011-03-31 Thread Ethan Furman
Wehe, Marco wrote: I am doing a search through a list of files but the text the casing doesn't match. My list is all upper case but the real files are all different. Is there a smooth way of searching through the list without going full on regular expressions? path =

Re: Learn Python the Hardway exercise 11 question 4

2011-03-31 Thread geremy condra
On Thu, Mar 31, 2011 at 2:43 PM, eryksun () eryk...@gmail.com wrote: On Thursday, March 31, 2011 4:35:42 PM UTC-4, Chris Angelico wrote: I was trolling, I know the reasons behind it. Anyway, most people don't share code by email! (Actually, since you seem to be the author of that page - could

Re: logging module usage

2011-03-31 Thread Vinay Sajip
On Mar 30, 3:49 pm, mennis michaelian.en...@gmail.com wrote: I am working on a library for controlling various appliances in which I use theloggingmodule.  I'd like some input on the basic structure of what I've done.  Specifically theloggingaspect but more general comments are welcome.  I'm

Re: Learn Python the Hardway exercise 11 question 4

2011-03-31 Thread Chris Angelico
On Fri, Apr 1, 2011 at 8:57 AM, geremy condra debat...@gmail.com wrote: I know it's tongue-in-cheek, but please, please, please don't do this. It would be more secure to base64 it and then rot13 the output. Chris Angelico /me is feeling evil today === Begin Base-Rotten 64-13 ===

Alias for an attribute defined in a superclass

2011-03-31 Thread Ben Finney
Howdy all, I want to inherit from a class, and define aliases for many of its attributes. How can I refer to “the attribute that will be available by name ‘spam’ once this class is defined”? class Foo(object): def spam(self): pass def eggs(self): pass

ANN: Wing IDE 4.0.1 released

2011-03-31 Thread Wingware
Hi, Wingware has released version 4.0.1 of Wing IDE, an integrated development environment designed specifically for the Python programming language. Wing IDE is a cross-platform Python IDE that provides a professional code editor with vi, emacs, and other key bindings, auto-completion, call

a basic bytecode to machine code compiler

2011-03-31 Thread Rouslan Korneychuk
I was looking at the list of bytecode instructions that Python uses and I noticed how much it looked like assembly. So I figured it can't be to hard to convert this to actual machine code, to get at least a small boost in speed. And so I whipped up a proof of concept, available at

Re: py 2.7.1 openssl

2011-03-31 Thread nirinA
[V N] import _md5 ImportError: No module named _md5 Any idea(s)? try to build Python with pydebug to enable _md5: ./configure --with-pydebug nirinA -- http://mail.python.org/mailman/listinfo/python-list

Re: Learn Python the Hardway exercise 11 question 4

2011-03-31 Thread John Bokma
Chris Angelico ros...@gmail.com writes: On Fri, Apr 1, 2011 at 8:57 AM, geremy condra debat...@gmail.com wrote: I know it's tongue-in-cheek, but please, please, please don't do this. It would be more secure to base64 it and then rot13 the output. Rot-13 twice, to make it even more secure ;-)

Behaviour of subprocess.Popen, ssh and nohup I don't understand

2011-03-31 Thread Adriaan Renting
L.S. I have a problem that a background process that I'm trying to start with subprocess.Popen gets interrupted and starts waiting for input no matter what I try to do to have it continue to run. It happens when I run it with nohup in the background. I've tried to find a solution searching the

Re: py 2.7.1 openssl

2011-03-31 Thread V N
Yes, _md5 is enabled but I get a very long list under Failed to build these modules: _bisect_codecs_cn _codecs_hk _codecs_iso2022_codecs_jp _codecs_kr _codecs_tw _collections _csv _ctypes_ctypes_test _curses _curses_panel

Re: In List Query - None Case Sensitive?

2011-03-31 Thread Steven D'Aprano
On Thu, 31 Mar 2011 21:14:45 +, Wehe, Marco wrote: [...] Hi Marco, and welcome. Others have already answered your question, but please don't post HTML formatted messages (so-called rich text) to this mailing list. It is mirrored to a newsgroup, comp.lang.python, and many people read it via

Re: cx_Freeze 4.2.3

2011-03-31 Thread James Mills
On Sun, Mar 20, 2011 at 9:52 AM, Anthony Tuininga anthony.tuini...@gmail.com wrote: Where do I get it? http://cx-freeze.sourceforge.net Just as a matter of interest, I tried to install cx_Freeze with pip/distribute (Python 2.7.1) but it fails with: error: option

Re: In List Query - None Case Sensitive?

2011-03-31 Thread Chris Angelico
On Fri, Apr 1, 2011 at 10:42 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: (Oh, and I don't want to come across as elitist, but if you're using the two-ton wrecking ball of Microsoft Word to crack the tiny peanut of writing emails, you will have *zero* tech credibility in

Re: a basic bytecode to machine code compiler

2011-03-31 Thread Stefan Behnel
Rouslan Korneychuk, 01.04.2011 00:33: I was looking at the list of bytecode instructions that Python uses and I noticed how much it looked like assembly. So I figured it can't be to hard to convert this to actual machine code, to get at least a small boost in speed. I think I recall having

Re: In List Query - None Case Sensitive?

2011-03-31 Thread MRAB
On 31/03/2011 23:05, Ethan Furman wrote: Wehe, Marco wrote: I am doing a search through a list of files but the text the casing doesn't match. My list is all upper case but the real files are all different. Is there a smooth way of searching through the list without going full on regular

Re: Alias for an attribute defined in a superclass

2011-03-31 Thread Steven D'Aprano
On Fri, 01 Apr 2011 09:14:03 +1100, Ben Finney wrote: Howdy all, I want to inherit from a class, and define aliases for many of its attributes. Are these aliases of arbitrary aliases, or only of methods, as in your example below? How can I refer to “the attribute that will be available

Re: Alias for an attribute defined in a superclass

2011-03-31 Thread Calvin Spealman
Sounds like you're just going to end up with more confusing code having multiple ways to refer to the exact same thing. Why? On Thu, Mar 31, 2011 at 6:14 PM, Ben Finney ben+pyt...@benfinney.id.au wrote: Howdy all, I want to inherit from a class, and define aliases for many of its attributes.

Extracting subsequences composed of the same character

2011-03-31 Thread candide
Suppose you have a string, for instance pyyythhooonnn --- and you search for the subquences composed of the same character, here you get : 'yyy', 'hh', 'ooo', 'nnn', '---', '' It's not difficult to write a Python code that solves the problem, for instance : def f(text):

Re: a basic bytecode to machine code compiler

2011-03-31 Thread Terry Reedy
On 3/31/2011 6:33 PM, Rouslan Korneychuk wrote: I was looking at the list of bytecode instructions that Python uses and I noticed how much it looked like assembly. So I figured it can't be to hard to convert this to actual machine code, to get at least a small boost in speed. And so I whipped

Re: Alias for an attribute defined in a superclass

2011-03-31 Thread Ben Finney
Calvin Spealman ironfro...@gmail.com writes: Sounds like you're just going to end up with more confusing code having multiple ways to refer to the exact same thing. Why? (Why did you top-post?) I'm defining aliases to conform to an existing API. The “Foo” class's attributes are what is

Re: Alias for an attribute defined in a superclass

2011-03-31 Thread Ben Finney
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes: On Fri, 01 Apr 2011 09:14:03 +1100, Ben Finney wrote: I want to inherit from a class, and define aliases for many of its attributes. Are these aliases of arbitrary aliases, or only of methods, as in your example below? I'd

Re: Extracting subsequences composed of the same character

2011-03-31 Thread MRAB
On 01/04/2011 01:43, candide wrote: Suppose you have a string, for instance pyyythhooonnn --- and you search for the subquences composed of the same character, here you get : 'yyy', 'hh', 'ooo', 'nnn', '---', '' It's not difficult to write a Python code that solves the problem, for

Re: a basic bytecode to machine code compiler

2011-03-31 Thread Dan Stromberg
On Thu, Mar 31, 2011 at 5:52 PM, Terry Reedy tjre...@udel.edu wrote: On 3/31/2011 6:33 PM, Rouslan Korneychuk wrote: I was looking at the list of bytecode instructions that Python uses and I noticed how much it looked like assembly. So I figured it can't be to hard to convert this to actual

Re: Extracting subsequences composed of the same character

2011-03-31 Thread Roy Smith
In article 4d952008$0$3943$426a7...@news.free.fr, candide candide@free.invalid wrote: Suppose you have a string, for instance pyyythhooonnn --- and you search for the subquences composed of the same character, here you get : 'yyy', 'hh', 'ooo', 'nnn', '---', '' I got the

A problem about ipython

2011-03-31 Thread Vincent Ren
Hey, everyone, I'm trying to use ipython recently. It's very nice, however, when I run this(from Programming Python 3rd) in ipython, I'll get a NameError: In [1]: import settime, timer, set In [2]: import profile In [3]: profile.run('timer.test(100, settime.setops, set.Set)')

Re: Extracting subsequences composed of the same character

2011-03-31 Thread Tim Chase
On 03/31/2011 07:43 PM, candide wrote: Suppose you have a string, for instance pyyythhooonnn --- and you search for the subquences composed of the same character, here you get : 'yyy', 'hh', 'ooo', 'nnn', '---', '' import re s = pyyythhooonnn --- [m.group(0) for m in

Re: Extracting subsequences composed of the same character

2011-03-31 Thread Tim Chase
On 03/31/2011 07:43 PM, candide wrote: pyyythhooonnn --- and you search for the subquences composed of the same character, here you get : 'yyy', 'hh', 'ooo', 'nnn', '---', '' Or, if you want to do it with itertools instead of the re module: s = pyyythhooonnn --- from

Re: Alias for an attribute defined in a superclass

2011-03-31 Thread Raymond Hettinger
On Mar 31, 3:14 pm, Ben Finney ben+pyt...@benfinney.id.au wrote: Howdy all, I want to inherit from a class, and define aliases for many of its attributes. How can I refer to “the attribute that will be available by name ‘spam’ once this class is defined”?     class Foo(object):         def

Re: FBI wants public help solving encrypted notes from murder mystery

2011-03-31 Thread haha doh
On Mar 31, 3:15 pm, Joe Snodgrass joe.s...@yahoo.com wrote: On Mar 30, 10:18 pm, Stretto stre...@nowhere.com wrote: Joe Snodgrass joe.s...@yahoo.com wrote in message news:c37e8e0b-a825-4ac5-9886-8828ab1fa...@x8g2000prh.googlegroups.com... FBI cryptanalysis hasn’t decrypted notes from

Re: Extracting subsequences composed of the same character

2011-03-31 Thread Terry Reedy
On 3/31/2011 10:20 PM, Tim Chase wrote: On 03/31/2011 07:43 PM, candide wrote: pyyythhooonnn --- and you search for the subquences composed of the same character, here you get : 'yyy', 'hh', 'ooo', 'nnn', '---', '' Or, if you want to do it with itertools instead of the re module:

Re: Behaviour of subprocess.Popen, ssh and nohup I don't understand

2011-03-31 Thread Kushal Kumaran
On Fri, Apr 1, 2011 at 4:31 AM, Adriaan Renting rent...@astron.nl wrote: L.S. I have a problem that a background process that I'm trying to start with subprocess.Popen gets interrupted and starts waiting for input no matter what I try to do to have it continue to run. It happens when I run it

[issue11723] No proper support for mingw64 - patch to add

2011-03-31 Thread Jason Morgan
Jason Morgan jas...@picochip.com added the comment: Ok, I know there is a typo, (mings64 should read mingw64) I realised after posting but can't edit it. I don't need any more emails telling me I can't spell (or type) - I knew that already! -- ___

[issue11722] mingw64 does not link when building extensions

2011-03-31 Thread Jason Morgan
Jason Morgan jas...@picochip.com added the comment: OK, I've understood this a bit more. The compiler does not cause pyconfig.h to define SIZEOF_SIZE_T and SIZEOF_INT, rather it is the definition of MS_WIN64 at compile time (which was not being defined) Defining MS_WIN64 fixes the problem,

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-31 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset a6d2c703586a by Victor Stinner in branch 'default': Issue #11393: Fix the documentation (cancel_dump_traceback_later) http://hg.python.org/cpython/rev/a6d2c703586a New changeset e289b64f355d by Victor Stinner in branch 'default':

[issue11726] linecache becomes specific to Python scripts in Python 3

2011-03-31 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: linecache document doesn't tell that the module reads the #coding:xxx cookie to get the encoding of the Python file. linecache reads this cookie since 41665 (May 09 2007). The linecache module allows one to get any line from any

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-31 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: test_faulthandler blocked AMD64 Gentoo Wide 3.x and AMD64 OpenIndiana 3.x buildbots because of the stack overflow test. New changeset e289b64f355d by Victor Stinner in branch 'default': Issue #11393: limit stack overflow test to

[issue11727] Add a --timeout option to regrtest.py using the faulthandler module

2011-03-31 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: I would be nice to add a timeout option to regrtest.py to be able to dump the traceback after TIMEOUT seconds and also exit the process. It would help debugging timeout issues (e.g. test_multiprocessing ), but also protect

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-31 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I opened #11727 for the patch on regrtest.py. All buildbots look happy (no more failure on test_faulthandler), so let's close this issue. -- resolution: - fixed status: open - closed

[issue11663] multiprocessing (and concurrent.futures) doesn't detect killed processes

2011-03-31 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: This issue is a duplicate of #9205. -- resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11663

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

2011-03-31 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Issue #11663 has been marked as a duplicate. -- nosy: +bquinlan, haypo, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9205

[issue11727] Add a --timeout option to regrtest.py using the faulthandler module

2011-03-31 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I created a new Mercurial repository to test this issue: features/regrtest_timeout. Let's try it with a timeout of 5 minutes on: - x86 Tiger custom to learn more about test_threadsignals timeout (1 hour) = issue #11223 - x86

[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2011-03-31 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Actually, the makefile location *is* wrong - ignore my last comment contradicting that. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6087

[issue10656] Out of tree build fails on AIX 5.3

2011-03-31 Thread Tristan Carel
Tristan Carel tristan.ca...@gmail.com added the comment: I have experienced the same problem under ppc64 aix 6.1.2.0 while compiling Python 2.7.1 $ cd Python-2.7.1 $ mkdir __build $ cd __build $ ../configure --with-gcc=xlc_r --with-cxx-main=xlC_r --with-threads --disable-ipv6 $

[issue7995] On Mac / BSD sockets returned by accept inherit the parent's FD flags

2011-03-31 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: I can't see how that patch has anything to do with it. The problem has been present since at least 2.5. Your patch fixed it for timeout0.0 but left the 0.0 case still broken. It comes from these lines in init_sockobject: {

[issue11727] Add a --timeout option to regrtest.py using the faulthandler module

2011-03-31 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Try the branch on PPC Leopard 3.x (test_subprocess timeout): http://www.python.org/dev/buildbot/all/builders/PPC%20Leopard%20custom/builds/6 -- ___ Python tracker rep...@bugs.python.org

[issue1635741] Interpreter seems to leak references after finalization

2011-03-31 Thread Tim Lesher
Changes by Tim Lesher tles...@gmail.com: -- nosy: +tlesher ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1635741 ___ ___ Python-bugs-list mailing

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-31 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: There is a failure on FreeBSD: == FAIL: test_dump_tracebacks_later_repeat (test.test_faulthandler.FaultHandlerTests)

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-31 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset aa2ac1581d23 by Victor Stinner in branch 'default': Issue #11393: test_faulthandler checks the exitcode after the output http://hg.python.org/cpython/rev/aa2ac1581d23 -- ___ Python

[issue11727] Add a --timeout option to regrtest.py using the faulthandler module

2011-03-31 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Just a nit but: if timeout and 0 timeout Could you use the usual coding style? (if timeout and timeout 0) Putting constants on the left-side of comparisons is pointless in Python, and even in C it's quite ugly and surprising. --

[issue11727] Add a --timeout option to regrtest.py using the faulthandler module

2011-03-31 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: x86 Tiger custom to learn more about test_threadsignals timeout (1 hour) Please read the comments. There is no timeout anymore. -- ___ Python tracker rep...@bugs.python.org

[issue11727] Add a --timeout option to regrtest.py using the faulthandler module

2011-03-31 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: x86 Tiger custom to learn more about test_threadsignals timeout (1 hour) Please read the comments. There is no timeout anymore. The last build failed with: --- ... [213/354] test_plistlib [214/354] test_minidom [215/354]

[issue11728] mbox parser incorrect behaviour

2011-03-31 Thread valera
New submission from valera vmasu...@apache.org: mailbox.mbox parser is splitting mbox files by ^From pattern, which is wrong , in fairy it should split mbox by \nFrom . Illustration: -- From bla-blah@localhost Header1 Header2 body1 body2 From blah-blah2@localhost Header1 body1 From your

[issue11724] concurrent.futures: executor.submit() runs until completion even when future times out or is canceled

2011-03-31 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Agreed with Brian. There is generally no reliable way to terminate another thread or process without cooperation from said thread or process. Especially in the case of threads, terminating a thread while leaving the process alive may leave some

[issue11727] Add a --timeout option to regrtest.py using the faulthandler module

2011-03-31 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I ran the full test suite on x86 Tiger custom on my features/regrtest_timeout repository: no failure (test_threadsignals failure was not reproduced). On PPC Leopard custom, the test suite was interrupted (timeout) on

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

2011-03-31 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The problem with this approach is that it won't help concurrent.futures. Detection of killed endpoints should ideally happen at a lower level, e.g. in Process or Queue or Connection objects. Speaking of which, I wonder why we have both

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

2011-03-31 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: On Thu, Mar 31, 2011 at 8:25 AM, Antoine Pitrou rep...@bugs.python.org wrote: Antoine Pitrou pit...@free.fr added the comment: Speaking of which, I wonder why we have both multiprocessing.Pool and concurrent.futures.ProcessPoolExecutor.

[issue10963] subprocess can raise OSError (EPIPE) when communicating with short-lived processes

2011-03-31 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: I'd argue that this is not a feature request but a bug. I did some testing of this issue and the problem is that EPIPE is only generated sometimes depending on the time the process takes to finish, the size of the data sent, the

[issue11729] libffi assembler relocation check is not robust, fails with clang

2011-03-31 Thread Ismail Donmez
New submission from Ismail Donmez ism...@namtrac.org: The check under Modules/_ctypes/libffi/configure.ac does; echo '.text; foo: nop; .data; .long foo-.; .text' conftest.s if $CC $CFLAGS -c conftest.s 21 | grep -i warning /dev/null; then libffi_cv_as_x86_pcrel=no fi

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

2011-03-31 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Possible plan for POSIX, where a connection uses a pipe() or socketpair(): exploit the fact that an endpoint becomes ready for reading (indicating EOF) when the other endpoint is closed: r, w = os.pipe() select.select([r], [], [r], 0) ([],

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

2011-03-31 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: (certainly not easy, sorry) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9205 ___ ___

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

2011-03-31 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: On Thu, Mar 31, 2011 at 9:05 AM, Antoine Pitrou rep...@bugs.python.org wrote: Antoine Pitrou pit...@free.fr added the comment: Possible plan for POSIX, where a connection uses a pipe() or socketpair(): exploit the fact that an endpoint

[issue11727] Add a --timeout option to regrtest.py using the faulthandler module

2011-03-31 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Result on x86 FreeBSD 7.2 custom: ... [148/354] test_fileinput [149/354] test_subprocess [36645 refs] [36645 refs] ... [36647 refs] [44034 refs] Current thread 0x28401040: File

[issue11284] slow close file descriptors in subprocess, popen2, os.popen*

2011-03-31 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: test_subprocess.test_leaking_fds_on_error takes more than 5 minutes on x86 FreeBSD 7.2 build slave! This tests creates 1,024 subprocesses, and subprocess has to close 655,000 file descriptors just to create on child process

[issue8052] subprocess close_fds behavior should only close open fds

2011-03-31 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: test_subprocess.test_leaking_fds_on_error takes more than 5 minutes on x86 FreeBSD 7.2 build slave! This tests creates 1,024 subprocesses, and subprocess has to close 655,000 file descriptors just to create on child process

  1   2   >