ANN: carray released

2010-12-23 Thread Francesc Alted
= Announcing carray 0.3 = What's new == A lot of stuff. The most outstanding feature in this version is the introduction of a `ctable` object. A `ctable` is similar to a structured array in NumPy, but instead of storing the data row-wise, it uses

ANNOUNCE: omniORB 4.1.5 and omniORBpy 3.5

2010-12-23 Thread Duncan Grisby
omniORB 4.1.5 and omniORBpy 3.5 are now available. omniORB is a high performance, robust CORBA implementation for C++; omniORBpy is a version for Python. For more details, see http://omniorb.sourceforge.net/ These are primarily bug fix releases, with a number of minor new features, including:

Unable to decode file written by C++ wostringstream

2010-12-23 Thread Yan Cheng CHEOK
Currently, I have the following text file (https://sites.google.com/site/yanchengcheok/Home/TEST.TXT?attredirects=0d=1) written by C++ wostringstream. What I want to do it, I want to write a python script which accept user browser request, and then send over the entire file for user to

Re: using python ftp

2010-12-23 Thread Octavian Rasnita
Can this lib also work with ftps? Thanks. Octavian - Original Message - From: Anurag Chourasia anurag.choura...@gmail.com To: Matt Funk maf...@nmsu.edu Cc: python-list@python.org Sent: Thursday, December 23, 2010 4:12 AM Subject: Re: using python ftp Hi Matt, I have a snippet to

Re: compiling Python 2.7.1 with readline module fails on Debian (Virtualbox)

2010-12-23 Thread Benedict Verheyen
On 22/12/2010 18:47, Stefan Sonnenberg-Carstens wrote: Am 22.12.2010 09:33, schrieb Benedict Verheyen: snip Did you try apt-get install build-essential apt-get build-dep python2.7 before trying to compile ? Anyway, the config.log file is always of special interest. Btw, which Debian

Re: Unable to decode file written by C++ wostringstream

2010-12-23 Thread jmfauth
On 23 Dez., 09:33, Yan Cheng CHEOK ycch...@yahoo.com wrote: Currently, I have the following text file (https://sites.google.com/site/yanchengcheok/Home/TEST.TXT?attredirect...) written by C++ wostringstream. The coding of the file is utf-16le. You should take care of this coding when you

Re: compiling Python 2.7.1 with readline module fails on Debian (Virtualbox)

2010-12-23 Thread Stefan Sonnenberg-Carstens
Am 23.12.2010 10:04, schrieb Benedict Verheyen: On 22/12/2010 18:47, Stefan Sonnenberg-Carstens wrote: Am 22.12.2010 09:33, schrieb Benedict Verheyen: snip Did you try apt-get install build-essential apt-get build-dep python2.7 before trying to compile ? Anyway, the config.log file is

Re: How to pop the interpreter's stack?

2010-12-23 Thread Carl Banks
On Dec 22, 7:22 pm, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: There should be a mechanism for Python functions to distinguish between unexpected exceptions (commonly known as bugs), which should be reported as coming from wherever they come from, and documented, expected

Re: Unable to decode file written by C++ wostringstream

2010-12-23 Thread Ulrich Eckhardt
Yan Cheng CHEOK wrote: Currently, I have the following text file (https://sites.google.com/site/yanchengcheok/Home/TEST.TXT?attredirects=0d=1) written by C++ wostringstream. Stringstream? I guess you meant wofstream, or? Anyway, the output encoding of C++ iostreams is implementation-defined,

Hosting a Python based TCP server

2010-12-23 Thread Oltmans
Hi all, I'm writing a very small TCP server(written in Python) and now I want to host it on some ISP so that it can be accessed anywhere from the Internet. I've never done that before so I thought I should ask for some advice. Do you guys know any good ISP that can let me do that? Most

Re: Hosting a Python based TCP server

2010-12-23 Thread bobicanprogram
On Dec 23, 7:01 am, Oltmans rolf.oltm...@gmail.com wrote: Hi all, I'm writing a very small TCP server(written in Python) and now I want to host it on some ISP so that it can be accessed anywhere from the Internet. I've never done that before so I thought I should ask for some advice. Do you

Re: Hosting a Python based TCP server

2010-12-23 Thread python
Rolf, I'm writing a very small TCP server (written in Python) and now I want to host it on some ISP so that it can be accessed anywhere from the Internet. I've never done that before so I thought I should ask for some advice. Do you guys know any good ISP that can let me do that? I'm a

Re: Hosting a Python based TCP server

2010-12-23 Thread Adam Tauno Williams
On Thu, 2010-12-23 at 04:40 -0800, bobicanprogram wrote: On Dec 23, 7:01 am, Oltmans rolf.oltm...@gmail.com wrote: Hi all, I'm writing a very small TCP server(written in Python) and now I want to host it on some ISP so that it can be accessed anywhere from the Internet. I've never done

Re: compiling Python 2.7.1 with readline module fails on Debian (Virtualbox)

2010-12-23 Thread Benedict Verheyen
On 23/12/2010 11:00, Stefan Sonnenberg-Carstens wrote: snip apt-get build-dep python 2.6 should do, the dependencies haven't changed (IMHO). Then wipe away $HOME/usr/local (if you can, btw), reset all env vars to default (perhaps reboot). Then untar python from scratch, cd into that dir, and

hot

2010-12-23 Thread paulraj
http://srbc2010.blogspot.com http://srbcmusic.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Web App

2010-12-23 Thread Daniel Fetchinson
Anybody know where I can find a Python Development Environment in the form of a web app for use with Chrome OS. I have been looking for a few days and all i have been able to find is some old discussions with python developers talking about they will want one for the OS to be a success with

Re: Hosting a Python based TCP server

2010-12-23 Thread Dan M
On Thu, 23 Dec 2010 04:01:03 -0800, Oltmans wrote: Hi all, I'm writing a very small TCP server(written in Python) and now I want to host it on some ISP so that it can be accessed anywhere from the Internet. I've never done that before so I thought I should ask for some advice. Do you guys

Re: compiling Python 2.7.1 with readline module fails on Debian (Virtualbox)

2010-12-23 Thread Benedict Verheyen
On 23/12/2010 14:09, Benedict Verheyen wrote: snip I started from scratch. I tried to build readline 6 and 5, and installing the packages system wide as opposed to $HOME/local, but everytime Python fails to find it. On stable, apt-get build-dep python 2.6 doesn't work, but apt-get

Re: Hosting a Python based TCP server

2010-12-23 Thread Jon Clements
On Dec 23, 12:01 pm, Oltmans rolf.oltm...@gmail.com wrote: Hi all, I'm writing a very small TCP server(written in Python) and now I want to host it on some ISP so that it can be accessed anywhere from the Internet. I've never done that before so I thought I should ask for some advice. Do you

Re: simple games w/o pygame

2010-12-23 Thread William Gill
Thanks everyone. These references will help greatly. I was about to take some javascript examples and rewrite them in Python. -- http://mail.python.org/mailman/listinfo/python-list

Re: compiling Python 2.7.1 with readline module fails on Debian (Virtualbox)

2010-12-23 Thread Stefan Sonnenberg-Carstens
Am 23.12.2010 15:37, schrieb Benedict Verheyen: On 23/12/2010 14:09, Benedict Verheyen wrote: snip I started from scratch. I tried to build readline 6 and 5, and installing the packages system wide as opposed to $HOME/local, but everytime Python fails to find it. On stable, apt-get build-dep

Partition Recursive

2010-12-23 Thread macm
Hi Folks I have this: url = 'http://docs.python.org/dev/library/stdtypes.html? highlight=partition#str.partition' So I want convert to myList =

Re: Python Web App

2010-12-23 Thread Octavian Rasnita
From: Daniel Fetchinson fetchin...@googlemail.com Anybody know where I can find a Python Development Environment in the form of a web app for use with Chrome OS. I have been looking for a few days and all i have been able to find is some old discussions with python developers talking about

Re: Partition Recursive

2010-12-23 Thread MRAB
On 23/12/2010 17:26, macm wrote: Hi Folks I have this: url = 'http://docs.python.org/dev/library/stdtypes.html? highlight=partition#str.partition' So I want convert to myList =

Re: Partition Recursive

2010-12-23 Thread Jon Clements
On Dec 23, 5:26 pm, macm moura.ma...@gmail.com wrote: Hi Folks I have this: url = 'http://docs.python.org/dev/library/stdtypes.html? highlight=partition#str.partition' So I want convert to myList =

Re: Partition Recursive

2010-12-23 Thread macm
Hi urlparse isnt a option. My reasult must be: myList = ['http',':','//','docs','.','python','.','org','/','dev','/','library','/', 'stdtypes','.','html','?','highlight','=','partition','#','str','.','partition'] re module is slow. Even I make a loop in urlparse.urlsplit I can lost

installing scikits.timeseries

2010-12-23 Thread Tintifax
I tried to install scikits.timeseries via easy_install and received following Error Message: Found executable C:\MinGW32\bin\gcc.exe Found executable C:\MinGW32\bin\g++.exe zip_safe flag not set; analyzing archive contents... scikits.timeseries.version: module references __file__ Adding

round in 2.6 and 2.7

2010-12-23 Thread Hrvoje Niksic
I stumbled upon this. Python 2.6: Python 2.6.6 (r266:84292, Sep 15 2010, 15:52:39) [GCC 4.4.5] on linux2 Type help, copyright, credits or license for more information. 9.95 9.9493 %.16g % 9.95 '9.949' round(9.95, 1) 10.0 So it seems that Python is going out of its way

Re: Python Web App

2010-12-23 Thread Tim Harig
On 2010-12-23, Daniel Fetchinson fetchin...@googlemail.com wrote: I don't personally think the web makes a good framework for highly interactive applications as they must work within the constraints of the browser and IDEs are highly interactive applications by their very nature. Perhaps

Re: round in 2.6 and 2.7

2010-12-23 Thread macm
On Dec 23, 4:57 pm, Hrvoje Niksic hnik...@xemacs.org wrote: I stumbled upon this.  Python 2.6: Python 2.6.6 (r266:84292, Sep 15 2010, 15:52:39) [GCC 4.4.5] on linux2 Type help, copyright, credits or license for more information. 9.95 9.9493 %.16g % 9.95 '9.949'

Re: general problem when subclassing a built-in class

2010-12-23 Thread bill
In ieu88s$hm...@reader1.panix.com kj no.em...@please.post writes: Where in the Python documentation can one find the information required to determine the minimal[1] set of methods that one would need to override to achieve this goal? I don't know the answer to that question, but imho it's

Re: compiling Python 2.7.1 with readline module fails on Debian (Virtualbox)

2010-12-23 Thread Stefan Sonnenberg-Carstens
Am 23.12.2010 15:37, schrieb Benedict Verheyen: On 23/12/2010 14:09, Benedict Verheyen wrote: snip I started from scratch. I tried to build readline 6 and 5, and installing the packages system wide as opposed to $HOME/local, but everytime Python fails to find it. On stable, apt-get build-dep

Re: round in 2.6 and 2.7

2010-12-23 Thread Martin v. Loewis
Type help, copyright, credits or license for more information. 9.95 9.9493 %.16g % 9.95 '9.949' round(9.95, 1) 10.0 So it seems that Python is going out of its way to intuitively round 9.95, while the repr retains the unnecessary digits. The 2.6 result is simply

daml 0.1.4 released, a python markup language for the web

2010-12-23 Thread dasacc22
Notes on the latest updates can be read here: http://dasacc22.wordpress.com/2010/12/22/daml-0-1-4-release/ The source is on github: https://github.com/dasacc22/daml An sdist is available on pypi: http://pypi.python.org/pypi/DAML/0.1.4 daml is for outlining html with dynamic content. Features

Re: Trying to parse a HUGE(1gb) xml file

2010-12-23 Thread Nobody
On Wed, 22 Dec 2010 23:54:34 +0100, Stefan Sonnenberg-Carstens wrote: Normally (what is normal, anyway?) such files are auto-generated, and are something that has a apparent similarity with a database query result, encapsuled in xml. Most of the time the structure is same for every row thats

Re: Generator question

2010-12-23 Thread Nobody
On Wed, 22 Dec 2010 15:49:31 -0800, Dan Stromberg wrote: def generator(): i = 0 while True: yield i i += 1 Shorter version: from itertools import count as generator -- http://mail.python.org/mailman/listinfo/python-list

Re: round in 2.6 and 2.7

2010-12-23 Thread Stefan Sonnenberg-Carstens
Am 23.12.2010 19:57, schrieb Hrvoje Niksic: I stumbled upon this. Python 2.6: Python 2.6.6 (r266:84292, Sep 15 2010, 15:52:39) [GCC 4.4.5] on linux2 Type help, copyright, credits or license for more information. 9.95 9.9493 %.16g % 9.95 '9.949' round(9.95, 1) 10.0

Re: Trying to parse a HUGE(1gb) xml file

2010-12-23 Thread Stefan Sonnenberg-Carstens
Am 23.12.2010 21:27, schrieb Nobody: On Wed, 22 Dec 2010 23:54:34 +0100, Stefan Sonnenberg-Carstens wrote: Normally (what is normal, anyway?) such files are auto-generated, and are something that has a apparent similarity with a database query result, encapsuled in xml. Most of the time the

Re: using python ftp

2010-12-23 Thread Matt Funk
Hi, thanks for the response. I kind of was thinking along those lines. The thing is though is that 'grop' appears to work on the local directory only (and not on the remote one which i need) Anyway, i think i'll just do via iterating through a the remote directory listing and then match it via

What is the the best style and theory of writing a complier in your language

2010-12-23 Thread small Pox
What is the the best style and theory of writing a complier in your language Maybe a book will suffice. http://www.veteranstoday.com/2010/12/18/gordon-duff-gov-jesse-ventura-proves-911-cover-up-will-americas-government-fall/ I want to parse the contents of the above link into hebrew audio.

Re: Regular expression for key = value pairs

2010-12-23 Thread Ciccio
I extracted an isolated problem from a slightly more complex situation, that's why I'm using REs. Thank you all for your help, my problem is now solved. -- http://mail.python.org/mailman/listinfo/python-list

Re: Catching user switching and getting current active user from root on linux

2010-12-23 Thread mpnordland
Ok, thank you. I will go look at the resources mentioned. -- http://mail.python.org/mailman/listinfo/python-list

Re: class inheritance

2010-12-23 Thread JLundell
That's nice, Ethan, especially in that it saves having to explicitly find and list all the methods being covered. It's perhaps not quite so critical for a Fraction-based class, since the set of methods to be covered is fairly well contained, but that's not always going to be the case. The

Re: Partition Recursive

2010-12-23 Thread Rhodri James
Please don't top-post, it makes everything harder to read. (Re-ordering to make sense...) On Thu, 23 Dec 2010 18:05:39 -, macm moura.ma...@gmail.com wrote: On Dec 23, 3:57 pm, Jon Clements jon...@googlemail.com wrote: I would use urlparse.urlsplit, then split further, if required.

David Epstein Incest Charges: Columbia Professor Charged With Sleeping With Daughter

2010-12-23 Thread small Pox
On Dec 23, 2:01 pm, small Pox smallpox...@gmail.com wrote: What is the the best style and theory of writing a complier in your language Maybe a book will suffice. http://www.veteranstoday.com/2010/12/18/gordon-duff-gov-jesse-ventura... I want to parse the contents of the above link into

Re: compiling Python 2.7.1 with readline module fails on Debian (Virtualbox)

2010-12-23 Thread Benedict Verheyen
On 23/12/2010 20:55, Stefan Sonnenberg-Carstens wrote: snip OK, I compiled it successfully under Debian 5.07 i386. ncurses and libreadline are compiled from hand, both --prefix=$HOME/usr/local. For python the only extra needed was export LD_LIBRARY_PATH=$HOME/usr/local/lib:$LD_LIBRARY_PATH

GUI Tools for Python 3.1

2010-12-23 Thread Randy Given
Lots of stuff for 2.6 and 2.7 -- what GUI tools are there for 3.1? Randy -- http://mail.python.org/mailman/listinfo/python-list

Re: compiling Python 2.7.1 with readline module fails on Debian (Virtualbox)

2010-12-23 Thread Benedict Verheyen
On 24/12/2010 2:16, Benedict Verheyen wrote: On 23/12/2010 20:55, Stefan Sonnenberg-Carstens wrote: snip I finally succeeded. I built ncurses and installed it to $HOME/usr/local ./configure --with-shared --enable-termcap --prefix=$HOME/usr/local make make install Then i built readline

How to order base classes?

2010-12-23 Thread kj
Suppose that I want to write a subclass C of base classes A and B. What considerations should go into choosing the ordering of A and B in C's base class list? Since any order one chooses can be overridden on a per-method basis, by assigning the desired parent's method to the appropriate class

Re: How to order base classes?

2010-12-23 Thread Steven D'Aprano
On Fri, 24 Dec 2010 03:36:28 +, kj wrote: How should one go about deciding the ordering of base classes? There is no general way for doing so. You need to consider the actual functionality of the methods involved. Consider a method spam() of class C that inherits from both A and B. To be

Re: How to order base classes?

2010-12-23 Thread kj
In 4d14209d$0$3$c3e8da3$54964...@news.astraweb.com Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes: The question you ask can only be answered in reference to a specific class with specific methods. There is no general principle, it depends entirely on the problem being solved.

Re: How to pop the interpreter's stack?

2010-12-23 Thread Steven D'Aprano
On Thu, 23 Dec 2010 02:54:52 -0800, Carl Banks wrote: On Dec 22, 7:22 pm, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: There should be a mechanism for Python functions to distinguish between unexpected exceptions (commonly known as bugs), which should be reported as coming

Re: Partition Recursive

2010-12-23 Thread kj
In be6f45b2-5a5a-4461-b5de-000487a46...@w2g2000yqb.googlegroups.com macm moura.ma...@gmail.com writes: url = 'http://docs.python.org/dev/library/stdtypes.html?highlight=partition#str.partition' So I want convert to myList =

Re: Partition Recursive

2010-12-23 Thread Ian Kelly
On 12/23/2010 10:03 PM, kj wrote: import re # sorry sp = re.compile('(//?|[;?:@=#.])') filter(len, sp.split(url)) Perhaps I'm being overly pedantic, but I would likely have written that as filter(None, sp.split(url)) for the same reason that if string: is generally preferred to if

Re: How to pop the interpreter's stack?

2010-12-23 Thread Carl Banks
On Dec 23, 8:55 pm, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: On Thu, 23 Dec 2010 02:54:52 -0800, Carl Banks wrote: On Dec 22, 7:22 pm, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: There should be a mechanism for Python functions to distinguish between

Re: What is the the best style and theory of writing a complier in your language

2010-12-23 Thread Juha Nieminen
In comp.lang.c++ small Pox smallpox...@gmail.com wrote: http://www.veteranstoday.com/2010/12/18/gordon-duff-gov-jesse-ventura-proves-911-cover-up-will-americas-government-fall/ You should take your religion somewhere else. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to order base classes?

2010-12-23 Thread Tim Roberts
kj no.em...@please.post wrote: Suppose that I want to write a subclass C of base classes A and B. What considerations should go into choosing the ordering of A and B in C's base class list? ... ...it is difficult for me to see a strong compelling reason for picking an ordering over another. But

[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map

2010-12-23 Thread Grygoriy Fuchedzhy
Grygoriy Fuchedzhy grygoriy.fuched...@gmail.com added the comment: Shouldn't .svgz be also added as 'image/x-svg+xml'? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10730 ___

[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map

2010-12-23 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: No, the other combined suffixes are not either. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10730 ___

[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-12-23 Thread Stephen J. Turnbull
Stephen J. Turnbull step...@xemacs.org added the comment: Re: msg124528 Yes, XEmacs installs a signal handler on what are normally fatal errors. (I don't know about GNU Emacs but they probably do too.) The handler has two functions: to display a Lisp backtrace and to output a message

[issue10762] strftime('%f') segfault

2010-12-23 Thread David Leonard
New submission from David Leonard d+pyt...@adaptive-enterprises.com: Installed http://www.python.org/ftp/python/2.7.1/python-2.7.1.amd64.msi on Windows 7, x64 into C:\Python27 C:\\Python27\python.exe Python 2.7.1 (r271:86832, Nov 27 2010, 17:19:03) [MSC v.1500 64 bit (AMD64)] on win32 Type

[issue7511] msvc9compiler.py: ValueError: [u'path']

2010-12-23 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Before anyone does any further testing: Tarek, can this go into distutils 2.7/3.2 (after 3.2 has been released)? Due to the popularity of this issue I think it might be worthwhile to make an exception and ignore the distutils freeze.

Re: [issue10296] ctypes catches BreakPoint error on windows 32

2010-12-23 Thread Thomas Heller
ctypes has _always_ catched exceptions raised in function calls. On Windows ;-). ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-12-23 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: [Alexander] if sys.getenv('PYTHONSEGVHANDLER'): import segvhandler segvhandler.enable() +1 If this doesn't find support, I'd name sys.setsegfaultenabled() sys.setsegvhandlerenabled() or sys.enable_segvhandler(). --

[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-12-23 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Note: To avoid the signal-safe requirement, another solution is to use sigsetjmp()+siglongjmp(). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8863

[issue10743] 3.2's sysconfig doesn't work with virtualenv

2010-12-23 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: I have investigated the problem and it turns out virtualenv patches distutils.sysconfig behavior by adding to the sys module a real_prefix attribute that points to the global Python install and is used instead of sys.prefix that points to

[issue10763] subprocess.communicate() doesn't close pipes on Windows

2010-12-23 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: If more than one file (stdin, stdout and stderr) are pipes, Popen.communicate() uses threads calling _readerthread() on each pipe. But this method doesn't close the pipes, whereas all other communicate implementations (select,

[issue10763] subprocess.communicate() doesn't close pipes on Windows

2010-12-23 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +amaury.forgeotdarc, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10763 ___

[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-12-23 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I tested the patch version 11 on Windows: all tests pass. But #include unistd.h should be skipped on Windows (Python/fault.c): I will add #ifdef MS_WINDOWS. -- ___ Python tracker

[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-12-23 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I tested the patch version 11 on Windows: all tests pass. Oh, and I forgot to say that the Windows fault handler does catch the fault too (Windows opens a popup with a question like Should the error be reported to Microsoft?).

[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-12-23 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Tested on FreeBSD 8: all tests pass (all of the 4 signals are supported) and FreeBSD dumps a core file. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8863

[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-12-23 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: STINNER Victor rep...@bugs.python.org wrote: Note: To avoid the signal-safe requirement, another solution is to use sigsetjmp()+siglongjmp(). FWIW, there is a caveat in the OpenBSD man page concerning the use of siglongjmp():

[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-12-23 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Tested on Ubuntu 10.04: all tests pass and apport intercepts the fault. Apport ignores the faults because I am testing a Python executable compiled from SVN (py3k). Apport logs (/var/log/apport.log): --- apport (pid 18148) Thu Dec

[issue7511] msvc9compiler.py: ValueError: [u'path']

2010-12-23 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: IIUC, the issue is that people installing a 64-bit Python, and VS Express, and then wonder why they can't build extension modules. I'm not so sure that there is a bug in Python here - this setup is not supported (and that's really

[issue10762] strftime('%f') segfault

2010-12-23 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Note that this is a regression relative to 2.6, where the same call returns '' (which is different from what it returns on linux, where the result would be '%f', or OSX, where the result would be 'f'). (Tests done on windows XP using

[issue10759] HTMLParser.unescape() fails on HTML entities with incorrect syntax (e.g. #hearts; )

2010-12-23 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Yes, I too agree that HTMLParser.unescape() should split-out malformed char-ref just as other browsers do. But, as unescape function has undocumented/unexposed for releases, I am not sure making it exposed is a good idea. HTMLParser is

[issue7511] msvc9compiler.py: ValueError: [u'path']

2010-12-23 Thread Thorsten Behrens
Thorsten Behrens sbehr...@gmx.li added the comment: You are right, this is not a bug in Python. The diff provides a workaround for a limitation in VC++ 2008 Express. This diff is a piece of user service. An equally as workable workaround is for the user to copy VC\bin\vcvars64.bat into

[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map

2010-12-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I believe the patch should add the used but non-standard image/svg+xml type to the common_type dictionary, not invent a new x- type. -- ___ Python tracker rep...@bugs.python.org

[issue9319] imp.find_module('test/badsyntax_pep3120') causes segfault

2010-12-23 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: p3k_i9313.diff is just a workaround, not the correct fix. The problem is that PyTokenizer_FindEncoding() doesn't get the filename. I wrote tokenizer_encoding_filename.patch which add PyTokenizer_FindEncodingFilename() and patch

[issue9319] imp.find_module('test/badsyntax_pep3120') causes segfault

2010-12-23 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: See also #9738 (Document the encoding of functions bytes arguments of the C API) to check which encoding is expected :-p -- ___ Python tracker rep...@bugs.python.org

[issue10764] sysconfig and alternative implementations

2010-12-23 Thread Michael Foord
New submission from Michael Foord mich...@voidspace.org.uk: sysconfig assumes there will be a makefile if the platform is posix, which isn't always true. For example IronPython on Mac OS X with mono. This leads to a traceback on startup with IronPython 2.7: $ ipy27 Traceback (most recent call

[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map

2010-12-23 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Yes, adding the x- version would probably be pointless as most likely nobody uses it. Has anyone found any definitive info on where exactly in the approval process image/svg+xml is? I think we should probably just go ahead and put it

[issue10743] 3.2's sysconfig doesn't work with virtualenv

2010-12-23 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: Sounds good, but this doesn't belong to the virtualenv bug tracker (virtualenv does even support Python 3). Instead, it belongs to the virtualenv5 tracker: http://code.google.com/p/virtualenv5/issues/detail?id=6 --

[issue7511] msvc9compiler.py: ValueError: [u'path']

2010-12-23 Thread ipatrol
ipatrol ipatrol6...@yahoo.com added the comment: Purity shmurity. The point of distutils is largely to present a unified and simple interface. 'python setup.py install' should be all a user has to do on any platform. Unless you can come up with a better idea, MSVC is really the only big

[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map

2010-12-23 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I obviously misunderstood the instruction about 'x-' and will remove that. Should I leave the entry where it is or move as Éric suggested? -- Added file: http://bugs.python.org/file20149/mimetypes.svg2.diff

[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map

2010-12-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I’m not sure; the common_types is actually for invalid but used types, like image/jpg (the correct one is image/jpeg and is listed in types_map). The status of IANA registration is unclear (thanks David for looking at that); since common tools

[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map

2010-12-23 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: No, I don't think it qualifies as a common_type. But since this is technically a feature request we need Georg's approval for the commit. -- ___ Python tracker rep...@bugs.python.org

[issue4496] misleading comment in urllib2

2010-12-23 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: It is used in the tests, but I agree that it doesn't appear to be used in the code. I've removed the misleading comment and marked the self.handlers attribute as backward-compat-only in r87448, r87449, and r87450. The sorting is based

[issue1155362] Bugs in parsedate_tz

2010-12-23 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Committed a slightly different patch in r87451, with tests. Although I do consider this a bug fix, it hasn't apparently caused any problems in real life and does represent a slight behavior change, so I'm not backporting it. --

[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map

2010-12-23 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Got approval from Georg on IRC, so go ahead and commit it, Terry. Or assign it to me if you'd rather I do it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10730

[issue10576] Add a progress callback to gcmodule

2010-12-23 Thread Lukas Lueg
Lukas Lueg lukas.l...@gmail.com added the comment: Why not make the start-callback be able to return a boolean value to the gcmodule that indicates if garbage collection should take place or not. For example, any value returned from the callback that evaluates to False (like null) will cause

[issue6011] python doesn't build if prefix contains non-ascii characters

2010-12-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I can’t reproduce the crash when building in the source dir (and tests pass except for ctypes because its configure script refuses my directory path), and I can’t build in a subdir*, so this bug looks fixed. * Error messages: gcc:

[issue1693546] email.Message set_param rfc2231 encoding incorrect

2010-12-23 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Reading the RFC again, I think you are right. The quoted vs unquoted sounds like it refers to the *n vs the [*n]* forms, and the latter doesn't use quoted strings but % encoding. I'm attaching a patch that adds some tests and fixes

[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map

2010-12-23 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: r87460 -- resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10730 ___

[issue1693546] email.Message set_param rfc2231 encoding incorrect

2010-12-23 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I take it back. Previously quotes didn't get added if they weren't already there. So my simpleminded fix may not be the best choice. -- ___ Python tracker rep...@bugs.python.org

[issue10765] Build regression from automation changes on windows

2010-12-23 Thread Martin
New submission from Martin gzl...@googlemail.com: The build changes in r87093 broke me, as my py3k branch is under a dir with a space in the name, and the OutDir path needs escaping in the makefiles. Various extra quoting seems to be sufficient, though inelegant. -- components: Build,

[issue4391] use proper gettext plurals forms in argparse and optparse

2010-12-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Updated patch for optparse. Georg: Is this okay for 3.2? Based on Steven’s decision for another patch that changed strings, these fixes won’t be backported. -- versions: -Python 2.7, Python 3.1 Added file:

[issue10765] Build regression from automation changes on windows

2010-12-23 Thread Martin
Martin gzl...@googlemail.com added the comment: Oh, and after building with this, I get: $ svn st ? PC/python3dll.obj So either that wants moving or svn:ignore needs updating. -- ___ Python tracker rep...@bugs.python.org

[issue10766] optparse uses %s in gettext calls

2010-12-23 Thread Éric Araujo
New submission from Éric Araujo mer...@netwok.org: When you run xgettext other optparse.py, you get this warning: “'msgid' format string with unnamed arguments cannot be properly localized: The translator cannot reorder the arguments. Please consider using a format string with named

[issue10766] optparse uses %s in gettext calls

2010-12-23 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- dependencies: +use proper gettext plurals forms in argparse and optparse ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10766 ___

  1   2   >