Announcing IronPython 2.0.1

2009-02-13 Thread Dave Fugate
Hello Python Community, I’m pleased to announce the release of IronPython 2.0.1. IronPython 2.0.1 is a minor update to IronPython 2.0 which in turn is a CPython 2.5 compatible release running under the .NET platform. Our top priority for this release was improving upon performance while

RELEASED Python 3.0.1

2009-02-13 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On behalf of the Python development team, I'm happy to announce the availability of Python 3.0.1, the first bug fix release of Python 3.0. Version 3.0.1 fixes dozens of bugs reported since the release of Python 3.0 on December 3rd, 2008.

Re: Break large file down into multiple files

2009-02-13 Thread redbaron
New to python I have a large file that I need to break up into multiple smaller files. I need to break the large file into sections where there are 65535 lines and then write those sections to seperate files. If your lines are variable-length, then look at itertools recipes. from

Re: thread. question

2009-02-13 Thread Tim Wintle
On Mon, 2009-02-09 at 21:02 +0100, Christian Heimes wrote: The module was renamed to _thread to stop people from using it directly. The extension module is the interface to some low level types and functions. Especially the usage of thread.start_new_thread is problematic, since it bypasses

Re: something wrong with isinstance

2009-02-13 Thread Bruno Desthuilliers
redbaron a écrit : Don't really sure, but try to define your class as new-style one. isinstance() works as well with classic classes. -- http://mail.python.org/mailman/listinfo/python-list

Re: Invoking CutePDF from within Python

2009-02-13 Thread Tim Golden
John Henry wrote: I have a need to invoke CutePDF from within a Python program. All I need is to say Print this to CUTEPDF and store as xyz.pdf. Private Sub Print_PDF() lRetVal = RegCreateKeyEx(HKEY_CURRENT_USER, Software\Custom PDF Printer, _ 0, vbNullString,

Re: something wrong with isinstance

2009-02-13 Thread Bruno Desthuilliers
maksym.ka...@gmail.com a écrit : Hi there. now i'm a complete newbie for python, and maybe my problem is stupid but i cannot solve it myself Others already addressed your problem (cf Paul and Diez answers). I'll just allow myself to point a couple other potential problems with your code:

Re: is there a project running (GUI Builder for Python ) ?

2009-02-13 Thread Hendrik van Rooyen
azrael ju...@gmail.com wrote: To be honest, in compare to Visual Studio, Gui Builders for wx widgets are really bad. Also completly for python there is not one good GuiBuilder. The only one I have seen that would come near VS was BoaConstructor, But the number of Bugs is just horrific. Too

Re: Problem with objects copying each other in memory

2009-02-13 Thread Bruno Desthuilliers
Cameron Pulsford a écrit : Thanks, that did it! Why is that the case though? Or rather, why do the assignments to temp.x and temp.y not effect the self.x and self.y? How come I only run into the problem with the list? Because there's a huge difference between binding an object to a name

Problem building Python extension

2009-02-13 Thread martijnsteenwijk
Hi all, I'm trying to build my first python extensionon a win32 system. I followed the description in http://starship.python.net/crew/mwh/toext/your-first-extension.html, but after running C:\Python26\python first-setup.py build_ext -i nothing seems to happen and no file first.pyd is produced.

Re: A little bit else I would like to discuss

2009-02-13 Thread Marco Mariani
azrael wrote: I know that there is already a standard python library, But why not extending it. classify the standard library into subcategories like Networking, DataBase, Computation, .. If the standard library where that huge, python 3.0 would have been late by a couple of years.

Re: Problem building Python extension

2009-02-13 Thread David Cournapeau
On Fri, Feb 13, 2009 at 6:30 PM, martijnsteenw...@gmail.com wrote: Hi all, I'm trying to build my first python extensionon a win32 system. I followed the description in http://starship.python.net/crew/mwh/toext/your-first-extension.html, but after running C:\Python26\python

Re: something wrong with isinstance

2009-02-13 Thread Carl Banks
On Feb 12, 10:49 am, redbaron ivanov.ma...@gmail.com wrote: Don't really sure, but try to define your class as new-style one. Like class GeoMap(object):    ... Well, the OP said he was using Python 3.0, where all classes are new- style classes. But that brings up another very slight

Levenshtein word comparison -performance issue

2009-02-13 Thread S.Selvam Siva
Hi all, I need some help. I tried to find top n(eg. 5) similar words for a given word, from a dictionary of 50,000 words. I used python-levenshtein module,and sample code is as follow. def foo(searchword): disdict={} for word in self.dictionary-words:

Re: Break large file down into multiple files

2009-02-13 Thread Gabriel Genellina
En Fri, 13 Feb 2009 05:43:02 -0200, brianrpsgt1 brianl...@cox.net escribió: On Feb 12, 11:02 pm, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Fri, 13 Feb 2009 04:44:54 -0200, brianrpsgt1 brianl...@cox.net   escribió: New to python I have a large file that I need to break upinto

Re: something wrong with isinstance

2009-02-13 Thread Gabriel Genellina
En Fri, 13 Feb 2009 08:07:58 -0200, Carl Banks pavlovevide...@gmail.com escribió: Well, the OP said he was using Python 3.0, where all classes are new- style classes. But that brings up another very slight possibility, though not a very likely one in this case: the behavior of isinstance can

Re: thread. question

2009-02-13 Thread Carl Banks
On Feb 9, 7:34 am, Tim Wintle tim.win...@teamrubber.com wrote: Thanks for both replies, On Mon, 2009-02-09 at 15:59 +0100, Christian Heimes wrote: You shouldn't use the thread module directly. It's not meant to be used by a user. Please stick to the threading module. You won't notice a

Re: Levenshtein word comparison -performance issue

2009-02-13 Thread Gabriel Genellina
En Fri, 13 Feb 2009 08:16:00 -0200, S.Selvam Siva s.selvams...@gmail.com escribió: I need some help. I tried to find top n(eg. 5) similar words for a given word, from a dictionary of 50,000 words. I used python-levenshtein module,and sample code is as follow. def foo(searchword):

Re: something wrong with isinstance

2009-02-13 Thread Peter Otten
Gabriel Genellina wrote: En Fri, 13 Feb 2009 08:07:58 -0200, Carl Banks pavlovevide...@gmail.com escribió: Well, the OP said he was using Python 3.0, where all classes are new- style classes. But that brings up another very slight possibility, though not a very likely one in this case:

Re: something wrong with isinstance

2009-02-13 Thread Gabriel Genellina
En Fri, 13 Feb 2009 08:43:03 -0200, Peter Otten __pete...@web.de escribió: Gabriel Genellina wrote: En Fri, 13 Feb 2009 08:07:58 -0200, Carl Banks pavlovevide...@gmail.com escribió: But that brings up another very slight possibility, though not a very likely one in this case: the behavior

Re: Problem building Python extension

2009-02-13 Thread martijnsteenwijk
On 13 feb, 10:53, David Cournapeau courn...@gmail.com wrote: On Fri, Feb 13, 2009 at 6:30 PM,  martijnsteenw...@gmail.com wrote: Hi all, I'm trying to build my first python extensionon a win32 system. I followed the description

Re: Untangling pythonWin and IDLE Processes on XP Pro

2009-02-13 Thread W. eWatson
Terry Reedy wrote: W. eWatson wrote: From Diez above. What does *NOT* work is writing a Tkinter-based app in idle, and to run it *FROM INSIDE* idle. Instead, open your explorer and double-click on the pyhton-file your app is in. That's all that there is to it. So this is the absolute truth?

Re: Problem building Python extension

2009-02-13 Thread David Cournapeau
On Fri, Feb 13, 2009 at 7:58 PM, martijnsteenw...@gmail.com wrote: On 13 feb, 10:53, David Cournapeau courn...@gmail.com wrote: On Fri, Feb 13, 2009 at 6:30 PM, martijnsteenw...@gmail.com wrote: Hi all, I'm trying to build my first python extensionon a win32 system. I followed the

Re: Invoking CutePDF from within Python

2009-02-13 Thread cm
Hi John, All I need is to say Print this to CUTEPDF and store as xyz.pdf. I can't answer you question but let me make a suggestion: Try PdfCreator. It lets you control all the process using an activex control. It has events to tell you when the jobs has finish, or report you of eventual

Re: Break large file down into multiple files

2009-02-13 Thread Chris
On Feb 13, 10:02 am, redbaron ivanov.ma...@gmail.com wrote: New to python I have a large file that I need to break up into multiple smaller files. I need to break the large file into sections where there are 65535 lines and then write those sections to seperate files. If your lines

Re: Change in cgi module's handling of POST requests

2009-02-13 Thread Gabriel Genellina
En Fri, 13 Feb 2009 02:43:48 -0200, Bob Kline bkl...@rksystems.com escribió: Joshua Kugler wrote: We just upgraded Python to 2.6 on some of our servers and a number of our CGI scripts broke because the cgi module has changed the way it handles POST requests. When the 'action' attribute was

Re: Break large file down into multiple files

2009-02-13 Thread Tim Chase
New to python I have a large file that I need to break up into multiple smaller files. I need to break the large file into sections where there are 65535 lines and then write those sections to seperate files. I am familiar with opening and writing files, however, I am struggling with

Re: Break large file down into multiple files

2009-02-13 Thread Chris
On Feb 13, 1:19 pm, Chris cwi...@gmail.com wrote: On Feb 13, 10:02 am, redbaron ivanov.ma...@gmail.com wrote: New to python I have a large file that I need to break up into multiple smaller files. I need to break the large file into sections where there are 65535 lines and then

Re: Problem building Python extension

2009-02-13 Thread Christian Heimes
martijnsteenw...@gmail.com wrote: Thanks a lot for your reply. I downloaded installed Visual C# 2008 express, but unfortunately this doesn't change anything in running the setup file. Unfortunately, still no pyd file is produced... Did I something wrong? Yeah, you installed the C#

get wget log message

2009-02-13 Thread JuergenRiemer
Hi, I didn't succeed to do the following: I download a PDF file via wget yet I am not interested in the file itself but the wget verbose output (log message) e.g. download speed, total size, etc. I know I could use -o log.txt and then read from that file yet this seems not very elegant. I am

Re: Problem building Python extension

2009-02-13 Thread Giampaolo Rodola'
On Feb 13, 10:53 am, David Cournapeau courn...@gmail.com wrote: On Fri, Feb 13, 2009 at 6:30 PM,  martijnsteenw...@gmail.com wrote: Hi all, I'm trying to build my first python extensionon a win32 system. I followed the description

Re: get wget log message

2009-02-13 Thread JuergenRiemer
itself but the wget verbose output (log message) e.g. download speed, total size, etc. ahh I got it 1 minute after sending this post g commands.getstatusoutput(cmd) Juergen -- http://mail.python.org/mailman/listinfo/python-list

Re: Change in cgi module's handling of POST requests

2009-02-13 Thread Paul Boddie
On 13 Feb, 11:58, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: I noticed this change in behaviour too, and indeed, it is due to   http://bugs.python.org/issue1817 But I could not find any RFC/standard/reccomendation/whatever that clearly   states *what* should happen with a POST request

Re: A little bit else I would like to discuss

2009-02-13 Thread Martin
2009/2/12 Christian Heimes li...@cheimes.de: Martin wrote: [typos igored as requested ;)] How does small and agile work with batteries included? The Python slogan says batteries included, not fusion reactor included. I'd be fine with a fusion reactor, my objections would be if skynet was

Re: NNTPlib encoding issue

2009-02-13 Thread MRAB
mohit_ranka wrote: I am getting unknown encoding like, =?Utf-8?B?QWRyaWFu?= adr...@discussions.microsoft.com (quotes for clarity) for name of the author from nntplib module. which seems like an encoding issue with NNTPLib module. What should i do to get author name information in human readable

Re: An executable operational semantics for Python

2009-02-13 Thread gideon
On Feb 12, 5:14 pm, bearophileh...@lycos.com wrote: gideon: I've recently finished my Master's thesis on the semantics of Python. In my thesis I define the semantics of Python by rewriting an abstract machine. The sources that are used to produce my thesis can also be compiled into a

best set of modules for web automation without javascript

2009-02-13 Thread News123
Hi, I'd like to do some web automation with python 2.5 - https: - a cookiejar - some forms to be filled in what is the best set of modules. As far as I understood, there is httplib, but it seems (if I understood well) to be incoompatible with cookielib I'm a newcomer to webautomation with

sgmllib parser keeps old tag data?

2009-02-13 Thread Berend van Berkum
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi everyone, I read the source, made numerous tests, but SGMLParser's keeps returning *tag* data from previous parser instances. I'm totally confused why.. The content data it returns is ok. E.g.:: sp = MyParser() sp.feed('testt

Re: best set of modules for web automation without javascript

2009-02-13 Thread Joe Riopel
On Fri, Feb 13, 2009 at 9:04 AM, News123 news...@free.fr wrote: Hi, I'd like to do some web automation with python 2.5 - https: - a cookiejar - some forms to be filled in what is the best set of modules. I have automated some testing of our product, using it's web UI with Python with

Re: sgmllib parser keeps old tag data?

2009-02-13 Thread MRAB
Berend van Berkum wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi everyone, I read the source, made numerous tests, but SGMLParser's keeps returning *tag* data from previous parser instances. I'm totally confused why.. The content data it returns is ok. E.g.:: sp = MyParser()

Re: Invoking CutePDF from within Python

2009-02-13 Thread python
Tim, FWIW, I usually generate PDFs by printing to a Postscript printer (some random Apple Laserthingy) and then using Ghostscript to do the conversion. I'm happy to post if you're interested. If its not too much bother, I would be interested in learning how you're interfacing to Python to

Re: Invoking CutePDF from within Python

2009-02-13 Thread Tim Golden
pyt...@bdurham.com wrote: Tim, FWIW, I usually generate PDFs by printing to a Postscript printer (some random Apple Laserthingy) and then using Ghostscript to do the conversion. I'm happy to post if you're interested. If its not too much bother, I would be interested in learning how you're

ANN: Supy 1.1

2009-02-13 Thread Greg Ewing
SuPy 1.1 Available -- http://www.cosc.canterbury.ac.nz/greg.ewing/SuPy/ Changes in this version: - Added explicit ways of calling method names ending in '?' or '!'. Python method names 'is_xxx' and 'xxx_ip' map to Ruby 'xxx?' and 'xxx!' respectively. The plain name 'xxx' can

Re: sgmllib parser keeps old tag data?

2009-02-13 Thread Berend van Berkum
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Feb 13, 2009 at 02:31:40PM +, MRAB wrote: Berend van Berkum wrote: import sgmllib class MyParser(sgmllib.SGMLParser): content = '' markup = [] span_stack = [] These are in the _class_ itself, so

Re: Invoking CutePDF from within Python

2009-02-13 Thread python
Tim, http://pastebin.com/m461bf8f2 Wonderful! That's enough to get me started. Thank you very much. Cheers, Malcolm -- http://mail.python.org/mailman/listinfo/python-list

Re: best set of modules for web automation without javascript

2009-02-13 Thread News123
Hi Joel, Thanks, This (the urllib2 methods you combined with cookielib) is what I am currently trying to do. I would just like to retrieve all the field names and default values of a form. (Some forms are huge) and wondered thus whether there's already a python module parsing a html documents

Re: best set of modules for web automation without javascript

2009-02-13 Thread Marco Mariani
News123 wrote: I would just like to retrieve all the field names and default values of a form. (Some forms are huge) and wondered thus whether there's already a python module parsing a html documents for forms , form fields and field vaules, returning an objcet. that could be modified and

Re: [ANN] TracShell 0.1 released

2009-02-13 Thread J Kenneth King
J Kenneth King ja...@agentultra.com writes: I tend to work a lot with Trac for project management and have always found the browser interface to be a productivity killer. I always wanted a simple command-line interface to Trac, but having never found one I found a little free time and got off

Re: is there a project running (GUI Builder for Python ) ?

2009-02-13 Thread J Kenneth King
gc_ott...@yahoo.ca writes: ..I come from Delphi, and compared to Delphi, even Visual Studio vanishes ;-) ...I don't even notice the difference between Delphi (which I'm still using) and wxPython. I think this story happened to other people to, so instead of putting a lot of

Re: sgmllib parser keeps old tag data?

2009-02-13 Thread MRAB
Berend van Berkum wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Feb 13, 2009 at 02:31:40PM +, MRAB wrote: Berend van Berkum wrote: import sgmllib class MyParser(sgmllib.SGMLParser): content = '' markup = [] span_stack = [] These are

Re: sgmllib parser keeps old tag data?

2009-02-13 Thread andrew cooke
you are declaring class variables, not instance variables. you need to declare these in an __init__ method. RTFM. http://docs.python.org/tutorial/classes.html#a-first-look-at-classes Berend van Berkum wrote: class MyParser(sgmllib.SGMLParser): content = '' markup = [] span_stack = []

Developer needed for Open Source Django/Pinax on-line community

2009-02-13 Thread synarcane
The Hub is a global community of innovators from every profession, background and culture working at 'new frontiers' to tackle the world's most pressing social, cultural and environmental challenges. The Hub has over 1000 members hotdesking in stunning spaces around the world. The Hub aims to

Re: sgmllib parser keeps old tag data?

2009-02-13 Thread andrew cooke
Sorry, this reply was delayed (trying to use usenet...) and so now seems (even more) bad tempered than needed. Andrew andrew cooke wrote: you are declaring class variables, not instance variables. you need to declare these in an __init__ method. RTFM.

Python knapsack problem

2009-02-13 Thread Kurioz
Hi, I got the assignment to solve the knapsack problem in Python. I have to find the solution to put items in a sack (I have only one item A, B and C) which maxWeight can't be larger than 6 kilograms. Solution of this problem should be A and C but the only solution I'm getting is B and C

Re: Escaping my own chroot...

2009-02-13 Thread Nick Craig-Wood
Jean-Paul Calderone exar...@divmod.com wrote: On Wed, 11 Feb 2009 09:31:56 -0600, Nick Craig-Wood n...@craig-wood.com wrote: r0g aioe@technicalbloke.com wrote: I'm writing a linux remastering script in python where I need to chroot into a folder, run some system commands and then

*nix tail -f multiple log files with Thread

2009-02-13 Thread David
Hi everyone, I copied a program from C to track multiple log files. I would like to be able to print a label when a log file is updated. Here is the program; code #!/usr/bin/python from threading import Thread import subprocess from Queue import Queue num_threads = 3 queue = Queue() logfiles

Re: best set of modules for web automation without javascript

2009-02-13 Thread Paul Rubin
News123 news...@free.fr writes: I would just like to retrieve all the field names and default values of a form. (Some forms are huge) and wondered thus whether there's already a python module parsing a html documents for forms , form fields and field vaules, returning an objcet. that could be

Re: best set of modules for web automation without javascript

2009-02-13 Thread News123
Hi Marco / Paul, Thanks I'll look into mechanize,ClientForm and BeautifulSoup. All three are now installed. I'll just have to play with them. bye N News123 wrote: Hi Joel, Thanks, This (the urllib2 methods you combined with cookielib) is what I am currently trying to do. I would

Fortran array in python (f2py?)...

2009-02-13 Thread tripp
Hello Folks, I have a fortran program I use to process several satellite images. I currently output the results to a text file (~750 mb) which is then read by a perl program that outputs a GIS-ready image using GDAL (www.gdal.org). There are python libraries for GDAL too. I'd like to pipe the

Re: best set of modules for web automation without javascript

2009-02-13 Thread Matias Surdi
You should give a look to Selenium. It's great. http://www.openqa.org News123 wrote: Hi, I'd like to do some web automation with python 2.5 - https: - a cookiejar - some forms to be filled in what is the best set of modules. As far as I understood, there is httplib, but it seems (if I

Re: something wrong with isinstance

2009-02-13 Thread Terry Reedy
Gabriel Genellina wrote: En Fri, 13 Feb 2009 08:43:03 -0200, Peter Otten __pete...@web.de escribió: class Type(type): ... def __instancecheck__(self, other): return True ... class A(metaclass=Type): pass ... class B: pass ... isinstance(B(), A) True See also

Re: Python knapsack problem

2009-02-13 Thread Matimus
On Feb 13, 8:06 am, Kurioz zpetel...@gmaljo.com wrote: Hi, I got the assignment to solve the knapsack problem in Python. I have to find the solution to put items in a sack (I have only one item A, B and C) which maxWeight can't be larger than 6 kilograms.  Solution of this problem should be

Re: Levenshtein word comparison -performance issue

2009-02-13 Thread Terry Reedy
Gabriel Genellina wrote: En Fri, 13 Feb 2009 08:16:00 -0200, S.Selvam Siva s.selvams...@gmail.com escribió: I need some help. I tried to find top n(eg. 5) similar words for a given word, from a dictionary of 50,000 words. I used python-levenshtein module,and sample code is as follow. def

Re: Fortran array in python (f2py?)...

2009-02-13 Thread MRAB
tripp wrote: Hello Folks, I have a fortran program I use to process several satellite images. I currently output the results to a text file (~750 mb) which is then read by a perl program that outputs a GIS-ready image using GDAL (www.gdal.org). There are python libraries for GDAL too. I'd

Re: Python knapsack problem

2009-02-13 Thread Terry Reedy
Kurioz wrote: I got the assignment to solve the knapsack problem in Python. I have to find the solution to put items in a sack (I have only one item A, B and C) which maxWeight can't be larger than 6 kilograms. Solution of this problem should be A and C but the only solution I'm getting is B

Re: *nix tail -f multiple log files with Thread

2009-02-13 Thread Christian Heimes
David schrieb: Hi everyone, I copied a program from C to track multiple log files. I would like to be able to print a label when a log file is updated. Here is the program; Don't use threads for the job. On Unix the preferred way is select()'ing or poll()'ing multiple file descriptors.

Re: *nix tail -f multiple log files with Thread

2009-02-13 Thread Joe Riopel
On Fri, Feb 13, 2009 at 12:03 PM, David da...@abbottdavid.com wrote: Hi everyone, I copied a program from C to track multiple log files. I would like to be able to print a label when a log file is updated. Here is the program; Since you're calling tail itself, why not just use tail's ability

Re: *nix tail -f multiple log files with Thread

2009-02-13 Thread David
Joe Riopel wrote: On Fri, Feb 13, 2009 at 12:03 PM, David da...@abbottdavid.com wrote: Hi everyone, I copied a program from C to track multiple log files. I would like to be able to print a label when a log file is updated. Here is the program; Since you're calling tail itself, why not just

problems opening files

2009-02-13 Thread mike
I have aprogram that manipulates several text files, does some math and saves new files then exits. The program worked fine on the original set of data, but with new data does not open the files as needed. When I copy and paste the 'open line' from the module to IDLE the file opens. section of

Re: Fortran array in python (f2py?)...

2009-02-13 Thread tripp
On Feb 13, 1:27 pm, MRAB goo...@mrabarnett.plus.com wrote: tripp wrote: Hello Folks, I have a fortran program I use to process several satellite images.  I currently output the results to a text file (~750 mb) which is then read by a perl program that outputs a GIS-ready image using GDAL

Re: problems opening files

2009-02-13 Thread MRAB
mike wrote: I have aprogram that manipulates several text files, does some math and saves new files then exits. The program worked fine on the original set of data, but with new data does not open the files as needed. When I copy and paste the 'open line' from the module to IDLE the file

Re: Untangling pythonWin and IDLE Processes on XP Pro

2009-02-13 Thread Scott David Daniels
W. eWatson wrote: Terry Reedy wrote: W. eWatson wrote: From Diez above. What does *NOT* work is writing a Tkinter-based app in idle, and to run it *FROM INSIDE* idle. Instead, open your explorer and double-click on the pyhton-file your app is in. That's all that there is to it. So this is

Upgrading standard library module

2009-02-13 Thread Bryan
I have a Python v2.5.2 server running and I found some undesirable behavior in the xmlrpclib module that is included with that version of Python. The xmlrpclib version that is included with Python 2.6 changes the behavior for the better. I nervous about upgrading my Python install to 2.6 on this

pdb in 3.0 very buggy (Win XP Home)

2009-02-13 Thread Aaron Brady
Hi, got a freeze when running 'pdb' in 3.0. The program executes correctly with the command 'c', but freezes part way through when running successive 'n' commands. Platform Windows XP Home. Python 3.0 (r30:67507, Dec 3 2008, 20:14:27) [MSC v.1500 32 bit (Intel)] on win32. The 'list' command

Re: Upgrading standard library module

2009-02-13 Thread Mike Driscoll
On Feb 13, 2:42 pm, Bryan bryanv...@gmail.com wrote: I have a Python v2.5.2 server running and I found some undesirable behavior in the xmlrpclib module that is included with that version of Python.  The xmlrpclib version that is included with Python 2.6 changes the behavior for the better.  I

Re: Fortran array in python (f2py?)...

2009-02-13 Thread Robert Kern
On 2009-02-13 11:59, tripp wrote: Hello Folks, I have a fortran program I use to process several satellite images. I currently output the results to a text file (~750 mb) which is then read by a perl program that outputs a GIS-ready image using GDAL (www.gdal.org). There are python libraries

Re: Upgrading standard library module

2009-02-13 Thread Jason Scheirer
On Feb 13, 12:42 pm, Bryan bryanv...@gmail.com wrote: I have a Python v2.5.2 server running and I found some undesirable behavior in the xmlrpclib module that is included with that version of Python.  The xmlrpclib version that is included with Python 2.6 changes the behavior for the better.  

Re: Upgrading standard library module

2009-02-13 Thread Bryan
On Feb 13, 1:52 pm, Jason Scheirer jason.schei...@gmail.com wrote: On Feb 13, 12:42 pm, Bryan bryanv...@gmail.com wrote: I have a Python v2.5.2 server running and I found some undesirable behavior in the xmlrpclib module that is included with that version of Python.  The xmlrpclib version

Re: *nix tail -f multiple log files with Thread

2009-02-13 Thread Jarkko Torppa
On 2009-02-13, Christian Heimes li...@cheimes.de wrote: David schrieb: Hi everyone, I copied a program from C to track multiple log files. I would like to be able to print a label when a log file is updated. Here is the program; Don't use threads for the job. On Unix the preferred way is

Re: Untangling pythonWin and IDLE Processes on XP Pro

2009-02-13 Thread Rhodri James
On Fri, 13 Feb 2009 11:13:38 -, W. eWatson notval...@sbcglobal.net wrote: OK, enough tinkering with the code and others matters on my end trying to find a work around. Somehow after much successful use of IDLE's execution facility, I've stepped on an invisible banana peel. I think

Re: A little bit else I would like to discuss

2009-02-13 Thread Simon Hibbs
On 13 Feb, 02:53, azrael jura.gro...@gmail.com wrote: All I hear when I talk to people who own or eork in SW companies is Python? Isn't that that small scripting language. This will never bring a real application. I am tired of hearing this. Even Microsoft implemented Python. Only because the

Turning a signature-changing decorator into a signature-preserving one

2009-02-13 Thread Gustavo Narea
Hello, everybody. I have this signature-changing decorator http://paste.chrisarndt.de/paste/15aac02a90094a41a13a1b9b85a14dd6 which I want to turn into a signature-preserving one. Here's my try http://paste.chrisarndt.de/paste/d0f835c00f824437bf4a0898f8020fc8, but I get this error:

Re: A little bit else I would like to discuss

2009-02-13 Thread Basilisk96
On Feb 12, 10:39 pm, Damon damonwisc...@gmail.com wrote: * Like R, every time there is a new version of Python, the repository should rebuild the packages, for all supported platforms, and make available all those that compile cleanly. R also forces you to write properly structured

Which to install on my windows vista laptop?

2009-02-13 Thread Sue
Hi, Which python 2.6.1 file should I download for my windows vista home premium laptop? (32bit, AMD turion 64 x2) the windows x86 MSI installer or the windows AMD64 MSI installer? Thank you! Sue -- http://mail.python.org/mailman/listinfo/python-list

Re: how can this iterator be optimized?

2009-02-13 Thread Basilisk96
On Feb 12, 1:15 am, Steven D'Aprano ste...@remove.this.cybersource.com.au wrote: I usually strive for comprehensions if a for loop can be reduced to such. Any particular reason? Only two. 1.) I was impressed by their clarity and conciseness when I first discovered them. 2.) I also read now

Re: Which to install on my windows vista laptop?

2009-02-13 Thread Kurioz
If you are using 32bit OS(which you are) then use the x86 MSI installer. AMD64 MSI installer is used only when you are using 64bit OS. Sue gl...@yahoo.com wrote in message news:mailman.9515.1234572128.3487.python-l...@python.org... Hi, Which python 2.6.1 file should I download for my windows

Re: Levenshtein word comparison -performance issue

2009-02-13 Thread Basilisk96
On Feb 13, 5:42 am, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: You may replace the last steps (sort + slice top 5) by heapq.nlargest - at   least you won't waste time sorting 49995 irrelevant words... Anyway you should measure the time taken by the first part (Levenshtein),   it may be

Re: A little bit else I would like to discuss

2009-02-13 Thread Benjamin Kaplan
On Fri, Feb 13, 2009 at 7:22 PM, Basilisk96 basilis...@gmail.com wrote: On Feb 12, 10:39 pm, Damon damonwisc...@gmail.com wrote: * Like R, every time there is a new version of Python, the repository should rebuild the packages, for all supported platforms, and make available all those that

Easier to wrap C or C++ libraries?

2009-02-13 Thread argo785
When creating a Python binding to a C or C++ library, which is easier to wrap, the C lib or the C++ one? Given a choice, if you had to choose between using one of two libs, one written in C, the other in C+ + -- both having approximately the same functionality -- which would you rather deal with

ANNOUNCING allmydata.org Tahoe, the Least-Authority Filesystem, v1.3

2009-02-13 Thread zooko
Folks: This Cloud Storage system is written entirely in Python except for the CPU-intensive parts (cryptography and erasure coding), which are provided as Python extension modules. Thanks for making Python such a high-quality and effective tool! Regards, Zooko ANNOUNCING allmydata.org

RELEASED Python 3.0.1

2009-02-13 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On behalf of the Python development team, I'm happy to announce the availability of Python 3.0.1, the first bug fix release of Python 3.0. Version 3.0.1 fixes dozens of bugs reported since the release of Python 3.0 on December 3rd, 2008.

Re: Easier to wrap C or C++ libraries?

2009-02-13 Thread Daniel Fetchinson
When creating a Python binding to a C or C++ library, which is easier to wrap, the C lib or the C++ one? Given a choice, if you had to choose between using one of two libs, one written in C, the other in C+ + -- both having approximately the same functionality -- which would you rather deal

Re: pdb in 3.0 very buggy (Win XP Home)

2009-02-13 Thread Benjamin Peterson
Aaron Brady castironpi at gmail.com writes: Hi, got a freeze when running 'pdb' in 3.0. This is a known issue because of the rewrite of the IO library in 3.0. It will hopefully be fixed in 3.1. See http://bugs.python.org/issue3618 for more information. --

Re: Easier to wrap C or C++ libraries?

2009-02-13 Thread Chris Rebert
On Fri, Feb 13, 2009 at 5:35 PM, argo...@gmail.com wrote: When creating a Python binding to a C or C++ library, which is easier to wrap, the C lib or the C++ one? Given a choice, if you had to choose between using one of two libs, one written in C, the other in C+ + -- both having

String concatenation performance with +=

2009-02-13 Thread Sammo
String concatenation has been optimized since 2.3, so using += should be fairly fast. In my first test, I tried concatentating a 4096 byte string 1000 times in the following code, and the result was indeed very fast (12.352 ms on my machine). import time t = time.time() mydata = moredata =

Re: String concatenation performance with +=

2009-02-13 Thread Benjamin Peterson
Sammo sammo2828 at gmail.com writes: String concatenation has been optimized since 2.3, so using += should be fairly fast. This is implementation dependent and shouldn't be relied upon. Note that I need to do something to mydata INSIDE the loop, so please don't tell me to append

Re: A little bit else I would like to discuss

2009-02-13 Thread Steven D'Aprano
Martin wrote: Hi, at first I wanted to file this under meta-discussions, but your lost paragraph got me thinking... 2009/2/12 Christian Heimes li...@cheimes.de: Nobody is going to stop you from creating a large bundle of useful extensions as long as you follow the licenses. In fact lots

Re: RELEASED Python 3.0.1

2009-02-13 Thread Benjamin Kaplan
On Fri, Feb 13, 2009 at 9:15 PM, Barry Warsaw ba...@python.org wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On behalf of the Python development team, I'm happy to announce the availability of Python 3.0.1, the first bug fix release of Python 3.0. Version 3.0.1 fixes dozens of bugs

Re: Untangling pythonWin and IDLE Processes on XP Pro

2009-02-13 Thread W. eWatson
Scott David Daniels wrote: W. eWatson wrote: Terry Reedy wrote: W. eWatson wrote: From Diez above. What does *NOT* work is writing a Tkinter-based app in idle, and to run it *FROM INSIDE* idle. Instead, open your explorer and double-click on the pyhton-file your app is in. That's all that

Re: Untangling pythonWin and IDLE Processes on XP Pro

2009-02-13 Thread W. eWatson
... How can it? It's not IDLE's problem, it's yours. Finally, we can probably agree that I can continue to use IDLE for editing and syntax checking, but to guarantee successful execution of the program, I can just double-click on the py file in my folder. Perhaps there is a better way than

  1   2   3   >