Re: Question about None

2009-06-12 Thread Steven D'Aprano
Jean-Michel Pichavant wrote: > >> def setNext(nxt): >> assert nxt==None or isinstance(nxt, Node), "next must be a Node" >> self.next = nxt >> >> works ok, but it's uglier than it ought to be. >> >> > I don't find it that ugly. It's accurate, easy to read and understand. Actually, it

Re: Question about None

2009-06-12 Thread Steven D'Aprano
Paul LaFollette wrote: > 3) (this is purely philosophical but I am curious) Would it not be > more intuitive if > isinstance(None, ) returned true? Good grief no!!! None is an object. It has a type, NoneType. It's *not* a string, or a float, or an int, or a list, so why would you want isinstanc

Re: Lexical scope: converting Perl to Python

2009-06-12 Thread Mike Kazantsev
On Fri, 12 Jun 2009 22:02:53 -0700 (PDT) Andrew Savige wrote: > I'd like to convert the following Perl code to Python: > >  use strict; >  { >    my %private_hash = ( A=>42, B=>69 ); >    sub public_fn { > my $param = shift; > return $private_hash{$param}; >    } >  } >  print public_f

Re: Lexical scope: converting Perl to Python

2009-06-12 Thread Terry Reedy
Andrew Savige wrote: I'd like to convert the following Perl code to Python: use strict; { my %private_hash = ( A=>42, B=>69 ); sub public_fn { my $param = shift; return $private_hash{$param}; } } print public_fn("A");# good: prints 42 my $x = $private_hash{"A"};

Re: Lexical scope: converting Perl to Python

2009-06-12 Thread Stephen Hansen
> > private_hash = dict( A=42, B=69 ) > def public_fn(param): >return private_hash[param] > print public_fn("A") # good: prints 42 > x = private_hash["A"]# works: oops, hash is in scope > > I'm not happy with that because I'd like to limit the scope of the > private_hash variable s

Re: [Tutor] Multi-Threading and KeyboardInterrupt

2009-06-12 Thread Mike Kazantsev
On Thu, 11 Jun 2009 22:35:15 -0700 Dennis Lee Bieber wrote: > On Thu, 11 Jun 2009 08:44:24 -0500, "Strax-Haber, Matthew (LARC-D320)" > declaimed the following in > gmane.comp.python.general: > > > I sent this to the Tutor mailing list and did not receive a response. > > Perhaps one of you might

Lexical scope: converting Perl to Python

2009-06-12 Thread Andrew Savige
I'd like to convert the following Perl code to Python:  use strict;  {    my %private_hash = ( A=>42, B=>69 );    sub public_fn { my $param = shift; return $private_hash{$param};    }  }  print public_fn("A");    # good:  prints 42  my $x = $private_hash{"A"};  # error: good, hash n

Re: Unhandled exception in thread

2009-06-12 Thread ryles
On Jun 11, 3:52 pm, Mads Michelsen wrote: > Here's the deal. The script in question is a screen scraping thing > which downloads and parses the html in the background using a separate > thread (the 'thread' module), while the main program serves up the > data to the user, allowing some modicum of

Re: failed to build decompyle/unpyc project on WindowsXP

2009-06-12 Thread higer
On Jun 12, 4:55 pm, higer wrote: > Maybe everyone know that decompyle(hosted on SourceForge.net) is a > tool to transfer a .pyc file to .py file and now it does only support > Python 2.3 or the below. I have found a project named unpyc which can > support Python version 2.5. Unpyc project is build

Re: uncompress base64-gzipped string

2009-06-12 Thread John Machin
Niels Egberts gmail.com> writes: > zlib.error: Error -3 while decompressing data: incorrect header check > > How can I solve this? The link you quoted says "you need to first base64 decode the string, then gunzip the resulting data" ... so gunzip it: | >>> s0 = "H4sIA.." | >>> import b

Re: Exceptions and Object Destruction

2009-06-12 Thread MRAB
Nikolaus Rath wrote: Nikolaus Rath writes: Hi, Please consider this example: [] I think I managed to narrow down the problem a bit. It seems that when a function returns normally, its local variables are immediately destroyed. However, if the function is left due to an exception, the loc

Re: install Python-2.4.4 from source (parallel to existing Python-2.6)

2009-06-12 Thread Christian Heimes
Simon schrieb: > Christian Heimes wrote: >> Simon wrote: >>> I installed Python-2.4.4.tar.bz2 from python.org, using gcc-4.3 (within >>> openSUSE 11.1 x86_64) via 'make altinstall'. >>> >>> First, I tried to configure with the following flags: >>> --prefix=/opt/python-24 --enable-framework --with-p

Re: Exception inside loop wrongly failing doctest

2009-06-12 Thread Ben Finney
Steven D'Aprano writes: > Ah, that would be it. Not a bug then, a limitation of the doctest module. The doctest module is good for narrative tests (ensuring that examples in documentation actually work as written), but poor for unit testing. Both functions are useful, but each should use a diff

Exceptions and Object Destruction (was: Problem with apsw and garbage collection)

2009-06-12 Thread Nikolaus Rath
Nikolaus Rath writes: > Hi, > > Please consider this example: [] I think I managed to narrow down the problem a bit. It seems that when a function returns normally, its local variables are immediately destroyed. However, if the function is left due to an exception, the local variables remain

Re: ANN: WHIFF += Flash chart widget support (Aaron Watters)

2009-06-12 Thread Aaron Watters
Regarding: http://aaron.oirt.rutgers.edu/myapp/amcharts/doc On Jun 12, 3:07 am, oyster wrote: > nice > the only pity is that amcharts is not a money-free product It is if you don't mind the little link in the corner. (which I think is only fair). I found a totally free one that looked pretty g

uncompress base64-gzipped string

2009-06-12 Thread Niels Egberts
I'm creating a game in python and I want to a level editor called 'tiled'. It ouputs a .xml file with base64-gzipped information. Then every 4 bytes represents a number. See the following link: http://www.mapeditor.org/wiki/Examining_the_map_format To start I tried: code = base64.b64decode("H4sI

Re: How should I compare two txt files separately coming from windows/dos and linux/unix

2009-06-12 Thread Emile van Sebille
On 6/11/2009 12:09 AM higer said... Tool can certainly be used to compare two files,but I just want to compare them using Python code. difflib? Emile -- http://mail.python.org/mailman/listinfo/python-list

Re: How should I compare two txt files separately coming from windows/dos and linux/unix

2009-06-12 Thread Piet van Oostrum
> higer (h) wrote: >h> On Jun 11, 11:44 am, Chris Rebert wrote: >>> On Wed, Jun 10, 2009 at 8:11 PM, higer wrote: >>> > I just want to compare two files,one from windows and the other from >>> > unix. But I do not want to compare them through reading them line by >>> > line. Then I found the

Re: How to insert string in each match using RegEx iterator

2009-06-12 Thread Aahz
In article , 504cr...@gmail.com <504cr...@gmail.com> wrote: > >MRI scans would no doubt reveal that people who attain a mastery of >RegEx expressions must have highly developed areas of the brain. I >wonder where the RegEx part of the brain might be located. You want Friedl: http://www.powells.com

Re: TypeError: int argument required

2009-06-12 Thread Rhodri James
On Fri, 12 Jun 2009 04:56:24 +0100, lucius wrote: I am trying to print some values to a file (using c's printf like method). TypeError: int argument required # this works, i see value on screen print w, h, absX, absY # where result is the return value of my regular expression. w, h, absX,

Re: Question about None

2009-06-12 Thread Robert Kern
On 2009-06-12 09:05, Paul LaFollette wrote: Kind people, Using Python 3.0 on a Gatesware machine (XP). I am building a class in which I want to constrain the types that can be stored in various instance variables. For instance, I want to be certain that self.loc contains an int. This is straig

Re: Need help in Python regular expression

2009-06-12 Thread Rhodri James
On Fri, 12 Jun 2009 06:20:24 +0100, meryl wrote: On Jun 11, 9:41 pm, "Mark Tolonen" wrote: "meryl" wrote in message > Hi, > I have this regular expression > blockRE = re.compile(".*RenderBlock {\w+}") > it works if my source is "RenderBlock {CENTER}". [snip] ---cod

ANNOUNCE: TIB/Rendezvous module for python

2009-06-12 Thread Sandra Bunn
Hi Thomas, My name is Sandra with The Carrera Agency. I saw an online article by you regarding Tibco Rendezvous with Python. I am currently looking for a Python/Tibco developer for a remote position. Below is a description of what they are trying to do: Summary: Need the ability to conn

Re: zipfile doesn't compress very good, are there other solutions?

2009-06-12 Thread R. David Murray
Chris Rebert wrote: > On Thu, Jun 11, 2009 at 1:41 PM, Stef Mientki wrote: > > Peter Otten wrote: > >> Stef Mientki wrote: > >>> Peter Otten wrote: > Stef Mientki wrote: > > I packed all sources with zipfile, > > but the compression doesn't seem to be very good. > > > >

Re: Question about None

2009-06-12 Thread Terry Reedy
Paul LaFollette wrote: since type(Node) responds with but the assertion above gives "name 'NoneType' is not defined" suggesting that NoneType is some sort of quasi-class. add NoneType = type(None) before using Nonetype -- http://mail.python.org/mailman/listinfo/python-list

Re: install Python-2.4.4 from source (parallel to existing Python-2.6)

2009-06-12 Thread Simon
Benjamin Kaplan wrote: On Fri, Jun 12, 2009 at 9:31 AM, Simon > wrote: edexter wrote: simon wrote: Hi everybody, The situation: I wrote a GUI, based on Python, TkInter and Pmw. It runs perfectly fine with P

Re: Question about None

2009-06-12 Thread Jean-Michel Pichavant
def setNext(nxt): assert nxt==None or isinstance(nxt, Node), "next must be a Node" self.next = nxt works ok, but it's uglier than it ought to be. I don't find it that ugly. It's accurate, easy to read and understand. "What else ?" would say a famous coffee representative. If you

Re: Question about None

2009-06-12 Thread Javier Collado
Hello, You're right, types.NoneType is not available in python 3.0, I wasn't aware of that change. Thanks for pointing it out. Best regards, Javier 2009/6/12 Jeff McNeil : > On Jun 12, 10:05 am, Paul LaFollette > wrote: >> Kind people, >> >> Using Python 3.0 on a Gatesware machine (XP). >>

Re: Making the case for repeat

2009-06-12 Thread Boris Borcic
Raymond Hettinger wrote: There is a natural inclination to do the opposite. We factor code to eliminate redundancy, but that is not always a good idea with an API. The goal for code factoring is to minimize redundancy. The goal for API design is having simple parts that are easily learned and c

Re: install Python-2.4.4 from source (parallel to existing Python-2.6)

2009-06-12 Thread Benjamin Kaplan
On Fri, Jun 12, 2009 at 9:31 AM, Simon wrote: > edexter wrote: > >> simon wrote: >> >>> Hi everybody, >>> >>> The situation: >>> I wrote a GUI, based on Python, TkInter and Pmw. >>> It runs perfectly fine with Python 2.4 (providing, TkInter and Pmw are >>> installed). But it crashes with Python 2

Re: Question about None

2009-06-12 Thread Jeff McNeil
On Jun 12, 10:05 am, Paul LaFollette wrote: > Kind people, > > Using Python 3.0 on a Gatesware machine (XP). > I am building a class in which I want to constrain the types that can > be stored in various instance variables.  For instance, I want to be > certain that self.loc contains an int.  This

Re: Question about None

2009-06-12 Thread Bruno Desthuilliers
Paul LaFollette a écrit : Kind people, Using Python 3.0 on a Gatesware machine (XP). I am building a class in which I want to constrain the types that can be stored in various instance variables. This somehow goes against the whole philosophy of dynamic typing Python is based upon... But ther

Re: install Python-2.4.4 from source (parallel to existing Python-2.6)

2009-06-12 Thread Christian Heimes
Simon wrote: > I installed Python-2.4.4.tar.bz2 from python.org, using gcc-4.3 (within > openSUSE 11.1 x86_64) via 'make altinstall'. > > First, I tried to configure with the following flags: > --prefix=/opt/python-24 --enable-framework --with-pydebug > This provoked an error during compilation vi

Re: matplotlib installation

2009-06-12 Thread Jean-Paul Calderone
On Fri, 12 Jun 2009 22:54:14 +0900, David Cournapeau wrote: On Fri, Jun 12, 2009 at 9:50 PM, Jean-Paul Calderone wrote: On Fri, 12 Jun 2009 11:33:36 GMT, Alan G Isaac wrote: On 6/12/2009 5:55 AM Virgil Stokes apparently wrote: Any suggestions on installing matplotlib for Python 2.6.2 on a

Re: Question about None

2009-06-12 Thread Christian Heimes
Paul LaFollette schrieb: > Kind people, > > Using Python 3.0 on a Gatesware machine (XP). > I am building a class in which I want to constrain the types that can > be stored in various instance variables. For instance, I want to be > certain that self.loc contains an int. This is straightforward

Re: install Python-2.4.4 from source (parallel to existing Python-2.6)

2009-06-12 Thread Simon
Simon wrote: edexter wrote: simon wrote: Hi everybody, The situation: I wrote a GUI, based on Python, TkInter and Pmw. It runs perfectly fine with Python 2.4 (providing, TkInter and Pmw are installed). But it crashes with Python 2.6. I tried this on MacOSX11.4 and various Linux Distributions.

Re: Question about None

2009-06-12 Thread Javier Collado
Hello, This should work for you: In [1]: import types In [2]: isinstance(None, types.NoneType) Out[2]: True Best regards, Javier 2009/6/12 Paul LaFollette : > Kind people, > > Using Python 3.0 on a Gatesware machine (XP). > I am building a class in which I want to constrain the types that

Question about None

2009-06-12 Thread Paul LaFollette
Kind people, Using Python 3.0 on a Gatesware machine (XP). I am building a class in which I want to constrain the types that can be stored in various instance variables. For instance, I want to be certain that self.loc contains an int. This is straightforward (as long as I maintain the disciplin

ANNOUNCE: libmsgque 3.3

2009-06-12 Thread Andreas Otto
ANNOUNCE a majorfeature improvement of libmsgque ... What is LibMsgque = LibMsgque is an OS independent, Programming Language independent and Hardware independent solution to link applications together to act like a single application. Or with other words, LibMsgque is an Applic

Re: matplotlib installation

2009-06-12 Thread David Cournapeau
On Fri, Jun 12, 2009 at 9:50 PM, Jean-Paul Calderone wrote: > On Fri, 12 Jun 2009 11:33:36 GMT, Alan G Isaac wrote: >> >> On 6/12/2009 5:55 AM Virgil Stokes apparently wrote: >>> >>> Any suggestions on installing matplotlib for Python 2.6.2 on a Windows >>> Vista platform? >> >> >> Maintainers for

Re: install older Python version parallel

2009-06-12 Thread Tim Wintle
On Fri, 2009-06-12 at 00:30 -0700, edexter wrote: > I suspect you want to install python 2.4 and then reinstall 2.6 I did > that in windows and I don't understand why it wouldn't work in linux It won't normally work on linux these days because most distributions of gnu/linux need python to run th

install Python-2.4.4 from source (parallel to existing Python-2.6)

2009-06-12 Thread Simon
edexter wrote: simon wrote: Hi everybody, The situation: I wrote a GUI, based on Python, TkInter and Pmw. It runs perfectly fine with Python 2.4 (providing, TkInter and Pmw are installed). But it crashes with Python 2.6. I tried this on MacOSX11.4 and various Linux Distributions. Crashes occurs

Re: command line of a process.exe on another host

2009-06-12 Thread Tim Wintle
On Thu, 2009-06-11 at 23:18 +0100, Harry wrote: > HI , > I have number of process run on different windows servers which run's with > different command line parameters. for example "process.exe -input > statusurl: http://sss.com "., These parameters can vary from host to host. > using Psexec I k

Re: command line of a process.exe on another host

2009-06-12 Thread Giampaolo Rodola'
On 12 Giu, 13:02, Tim Golden wrote: > Giampaolo Rodola' wrote: > > On 12 Giu, 00:18, "Harry" wrote: > >> HI , > >> I have number of process run on different windows servers which run's with > >> different command line parameters. > > You can easily do this with psutil [1]: > > Since psutil uses t

Re: RE replace problem too

2009-06-12 Thread Lie Ryan
oyster wrote: > in my case, I want to replace all the function name with '', that is > sin(1) -> (1) > sin(pi*(2+4)) -> (pi*(2+4)) > how can I use RE in this situation? thanx this works if there is no implicit multiplication: re.sub('\w+\(', '(', 'sin(pi*(2+4))') this one might be more robust

Re: matplotlib installation

2009-06-12 Thread Jean-Paul Calderone
On Fri, 12 Jun 2009 11:33:36 GMT, Alan G Isaac wrote: On 6/12/2009 5:55 AM Virgil Stokes apparently wrote: Any suggestions on installing matplotlib for Python 2.6.2 on a Windows Vista platform? Maintainers for some packages have run into a wall compiling for 2.6. Matplotlib is one of these:

Re: trying to understand dictionaries

2009-06-12 Thread Albert Hopkins
On Fri, 2009-06-12 at 04:51 -0700, khem...@gmail.com wrote: > Hi. > As the subject says, I'm a newbie trying to learn python and now > dictionaries. I can create a dict, understand it and use it for simple > tasks. But the thing is that I don't really get the point on how to > use these in real lif

Re: TypeError: int argument required

2009-06-12 Thread mblume
Am Thu, 11 Jun 2009 20:56:24 -0700 schrieb lucius: > I am trying to > print some values to a file (using c's printf like method). TypeError: > int argument required > # this works, i see value on screen > print w, h, absX, absY > Are you sure that w or h are not returned as strings? Hint: try t

Re: EOF problem with ENTER

2009-06-12 Thread Jean-Michel Pichavant
Prasoon wrote: I modified my code to #Euler Totient Function import sys from math import sqrt def etf(n): i,res =2,n while(i*i<=n): if(n%i==0): res-=res/i while(n%i==0): n/=i i+=1 if(n>1): res-=res/n return res def main(): while Tr

Re: trying to understand dictionaries

2009-06-12 Thread Alan G Isaac
On 6/12/2009 7:51 AM khem...@gmail.com apparently wrote: > d = {'fname': [], 'ename': []} > name1 = 'ricky' > name2 = 'martin' > d['fname'].append(name1) > d['ename'].append(name2) > > name1 = 'britney' > name2 = 'spears' > d['fname'].append(name1) > d['ename'].append(name2) > > > This gives me:

Re: trying to understand dictionaries

2009-06-12 Thread Jean-Michel Pichavant
Basically, dictionaries are a bunch of couples of key and value where key is an immutable object. In fact you'll find a more accurate definition in any python book or online tutorial. The thing is that keys are usually used as an easy and quick way the search and index items. You can see dict a

Re: Need help in Python regular expression

2009-06-12 Thread Jean-Michel Pichavant
To the OP, I suggest if you haven't yet Kodos, to get it here http://kodos.sourceforge.net/. It's a python regexp debugger, a lifetime saver. Jean-Michel John S wrote: On Jun 11, 10:30 pm, meryl wrote: Hi, I have this regular expression blockRE = re.compile(".*RenderBlock {\w+}") it w

CAD file format specifications?

2009-06-12 Thread Anthra Norell
Hi, Anyone working with CAD who knows about numeric data entry? I have 3d coordinates of a construction site on a slope (borders, setbacks and isometric elevation lines). Someone made me aware of Google's Sketch Up. It looks very attractive for the purpose of architectural planning, especial

trying to understand dictionaries

2009-06-12 Thread khem...@gmail.com
Hi. As the subject says, I'm a newbie trying to learn python and now dictionaries. I can create a dict, understand it and use it for simple tasks. But the thing is that I don't really get the point on how to use these in real life programing. For example I tryed to create a very simple phonebook

Re: matplotlib installation

2009-06-12 Thread Alan G Isaac
On 6/12/2009 5:55 AM Virgil Stokes apparently wrote: > Any suggestions on installing matplotlib for Python 2.6.2 on a Windows > Vista platform? Maintainers for some packages have run into a wall compiling for 2.6. Matplotlib is one of these: http://www.nabble.com/binary-installers-for-python2.6

Re: command line of a process.exe on another host

2009-06-12 Thread Tim Golden
Giampaolo Rodola' wrote: On 12 Giu, 00:18, "Harry" wrote: HI , I have number of process run on different windows servers which run's with different command line parameters. You can easily do this with psutil [1]: Since psutil uses the native Windows calls to retrieve such kind of info i

Re: command line of a process.exe on another host

2009-06-12 Thread Giampaolo Rodola'
On 12 Giu, 00:18, "Harry" wrote: > HI , > I have number of process run on different windows servers which run's with > different command line parameters. for example "process.exe -input > statusurl:http://sss.com";., These parameters can vary from host to host. > using Psexec I know the PID and pr

Re: Exception inside loop wrongly failing doctest

2009-06-12 Thread Steven D'Aprano
Lie Ryan wrote: > Lie Ryan wrote: >> Steven D'Aprano wrote: >>> One of my doctests is failing, and I suspect a bug. ... > it seems that if the expected result is a traceback, the doc result must > starts with the traceback keyword: Ah, that would be it. Not a bug then, a limitation of the doctes

matplotlib installation

2009-06-12 Thread Virgil Stokes
Any suggestions on installing matplotlib for Python 2.6.2 on a Windows Vista platform? --V -- http://mail.python.org/mailman/listinfo/python-list

Re: install older Python version parallel

2009-06-12 Thread Simon212
> > Hi everybody, > > > > The situation: > > I wrote a GUI, based on Python, TkInter and Pmw. > > It runs perfectly fine with Python 2.4 (providing, TkInter and Pmw are > > installed). But it crashes with Python 2.6. I tried this on MacOSX11.4 > > and various Linux Distributions. > > Crashes o

Re: Exception inside loop wrongly failing doctest

2009-06-12 Thread Lie Ryan
Lie Ryan wrote: > Steven D'Aprano wrote: >> One of my doctests is failing, and I suspect a bug. >> >> The test involves matching an exception in a for-loop. Here are two >> simplified versions of the test, both should pass but only the first does. >> > > tell me, what's the result of 1/0? Whooops

Re: Exception inside loop wrongly failing doctest

2009-06-12 Thread Lie Ryan
Steven D'Aprano wrote: > One of my doctests is failing, and I suspect a bug. > > The test involves matching an exception in a for-loop. Here are two > simplified versions of the test, both should pass but only the first does. > tell me, what's the result of 1/0? -- http://mail.python.org/mailma

Exception inside loop wrongly failing doctest

2009-06-12 Thread Steven D'Aprano
One of my doctests is failing, and I suspect a bug. The test involves matching an exception in a for-loop. Here are two simplified versions of the test, both should pass but only the first does. As a doctest, this passes: >>> for x in [3, 2, 1]: ... print (x, 1.0/x) ... (3, 0.33

Re: EOF problem with ENTER

2009-06-12 Thread Prasoon
> You could do: > > while True: >    x = raw_input("Enter x=>") >    if x != "" : break # if you just press enter, raw_input returns an > empty string > > Note that this still leaves out the case when you type something which > is not a number. > To cover this case, supposing that you need a float

failed to build decompyle/unpyc project on WindowsXP

2009-06-12 Thread higer
Maybe everyone know that decompyle(hosted on SourceForge.net) is a tool to transfer a .pyc file to .py file and now it does only support Python 2.3 or the below. I have found a project named unpyc which can support Python version 2.5. Unpyc project is build on decompyle which is hosted on google co

Re: Need help in Python regular expression

2009-06-12 Thread Vlastimil Brom
2009/6/12 meryl : > On Jun 11, 9:41 pm, "Mark Tolonen" wrote: >> "meryl" wrote in message >> >> > I have this regular expression >... > I try adding ".*" at the end , but it ends up just matching the second > one. If there can be more matches in a line, maybe the non-greedy quantifier ".*?", a

Re: Win32 stdin redirection

2009-06-12 Thread Tim Harig
On 2009-06-12, lynvie wrote: > Thanks for the additional info! I had no idea this was an old Windows > problem... I'm using Windows XP and I'm up-to-date on all my patches. s/problem/feature/ Steve Ballmer, CEO of Microsoft, would prefer that you think of it as a 'feature'. This is a problem tha

Re: EOF problem with ENTER

2009-06-12 Thread Francesco Bochicchio
On 12 Giu, 08:49, Prasoon wrote: > On Jun 12, 11:28 am, Chris Rebert wrote: > > > > > > > On Thu, Jun 11, 2009 at 11:17 PM, Prasoon wrote: > > > I am new to python > > > I have written the following program in python.It is the solution of > > > problem ETF in SPOJ. > > > > #Euler Totient

Re: Voronoi diagram algorithm (Fortune’s sweepline )

2009-06-12 Thread Bearophile
dorzey: > Found this python implementation: > http://www.oxfish.com/python/voronoi.py Looks very nice, and it may be ShedSkin-compilable too. Bye, bearophile -- http://mail.python.org/mailman/listinfo/python-list

Re: OT: Periodic table gets a new element

2009-06-12 Thread Mensanator
On Jun 11, 8:27 am, Jean-Michel Pichavant wrote: > Not if this element is to end up in some further ultimate nuclear weapon >   :-)   Don't worry, a millisecond half-life is kind of a wet blanket as far as weapon design is concerned. > , unless you are using python to conquer the world (I've bee

Measuring Fractal Dimension ?

2009-06-12 Thread Peter Billam
Greetings. Are there any modules, packages, whatever, that will measure the fractal dimensions of a dataset, e.g. a time-series ? Like the Correlation Dimension, the Information Dimension, etc... Peter -- Peter Billam www.pjb.com.auwww.pjb.com.au/comp/contact.html -- http://mail.pytho

RE replace problem too

2009-06-12 Thread oyster
in my case, I want to replace all the function name with '', that is sin(1) -> (1) sin(pi*(2+4)) -> (pi*(2+4)) how can I use RE in this situation? thanx -- http://mail.python.org/mailman/listinfo/python-list

Re: install older Python version parallel

2009-06-12 Thread edexter
On Jun 11, 8:50 am, "S. Dornseifer" wrote: > Hi everybody, > > The situation: > I wrote a GUI, based on Python, TkInter and Pmw. > It runs perfectly fine with Python 2.4 (providing, TkInter and Pmw are > installed). But it crashes with Python 2.6. I tried this on MacOSX11.4 > and various Linux Dis

Re: install older Python version parallel

2009-06-12 Thread edexter
On Jun 11, 8:50 am, "S. Dornseifer" wrote: > Hi everybody, > > The situation: > I wrote a GUI, based on Python, TkInter and Pmw. > It runs perfectly fine with Python 2.4 (providing, TkInter and Pmw are > installed). But it crashes with Python 2.6. I tried this on MacOSX11.4 > and various Linux Dis

Re: command line of a process.exe on another host

2009-06-12 Thread Tim Golden
Harry wrote: HI , I have number of process run on different windows servers which run's with different command line parameters. for example "process.exe -input statusurl: http://sss.com "., These parameters can vary from host to host. using Psexec I know the PID and process name which are run

Re: ANN: WHIFF += Flash chart widget support (Aaron Watters)

2009-06-12 Thread oyster
nice the only pity is that amcharts is not a money-free product -- http://mail.python.org/mailman/listinfo/python-list