I think Python is a OO and lite version of matlab

2006-12-07 Thread Allen
Does anyone agree with me? If you have used Matlab, welcome to discuss it. -- http://mail.python.org/mailman/listinfo/python-list

Re: python.org not current

2006-12-07 Thread Fredrik Lundh
Norbert wrote: > the python website http://www.python.org/ mentions Version 2.3.6 and > 2.4.4 on the most prominent place. Shouldn't this be changed to 2.5.x ? you're looking at the news section: the 2.3.6 and 2.4.4 maintenance releases were made after 2.5 was released. -- http://mail.python

python.org not current

2006-12-07 Thread Norbert
Hello all, the python website http://www.python.org/ mentions Version 2.3.6 and 2.4.4 on the most prominent place. Shouldn't this be changed to 2.5.x ? Regards Norbert -- http://mail.python.org/mailman/listinfo/python-list

Re: raw strings in regexps

2006-12-07 Thread Gabriel Genellina
At Friday 8/12/2006 02:53, Mike wrote: I finally simplified my problem down to this simple case: re.match(r'\\this', r'\\this') Both the pattern and the string to match are identical raw strings, yet they don't match. What does match is this: re.match(r'this', r'\\this') Perhaps y

Re: Need Help Parsing From File

2006-12-07 Thread Gabriel Genellina
At Friday 8/12/2006 02:23, John Machin wrote: > > > ftxt=open(filename,"rt") Why did you do that? (1) Text mode is was and ever shall be the default, even with MS. No, there used to be a flag in the stdio library, giving the default value when neither t or b was specified. For the Borland C++

Re: dict.has_key(x) versus 'x in dict'

2006-12-07 Thread Hendrik van Rooyen
<[EMAIL PROTECTED]> wrote: > Hendrik> - as long as it works, and is fast enough, its not broken, so > Hendrik> don't fix it... > > That's the rub. It wasn't fast enough. I only realized that had been a > problem once I fixed it though. LOL - this is kind of weird - it was working, nobod

Re: Why not just show the out-of-range index?

2006-12-07 Thread Hendrik van Rooyen
\ "Istvan Albert" <[EMAIL PROTECTED]> wrote: > what should happen if by accident one uses a 50Mb string as an index? > Should it be displayed? It is my opinion that yes, the first 40Mb or so should be displayed, as a lesson to the perpetrator, and to help him find the error. Displaying 50 Mb is

Re: Best way to split up lines - RE: About the 79 characterlinerecommendation

2006-12-07 Thread Hendrik van Rooyen
"John Machin" <[EMAIL PROTECTED]> wrote: 8<--- > > data = struct.unpack("!H4BH20BHI", strMessage) > > > > (top, ip1, ip2, ip3, ip4, messageCounter, ackRequired, > > dataType, utc1, utc2, utc3, utc4, utc5, utc6, utc7, utc8, > > utc9, utc10, utc11, utc12, st1, st2, s

Re: Subprocess with a Python Session?

2006-12-07 Thread Hendrik van Rooyen
"Giovanni Bajo" <[EMAIL PROTECTED]> > Fredrik Lundh wrote: > > >> No matter what I do I cant get the following code to do what I expect. > >> I hadn't used subprocess t o read and write to pipes of a > >> still-running app, and I just can't seem to get it right. What gives? > >> > >> import subpro

Re: subversion revision number string within an application packaged with distutils?

2006-12-07 Thread Martin v. Löwis
Jim Tittsler schrieb: > Is there a standard recipe for getting the subversion revision number > into my Python-based application each time I package it up with > distutils? (Not just the package name, but also a string that I will > display in my app's "About" dialog.) You can't really use subver

Re: Need Help Parsing From File

2006-12-07 Thread Fredrik Lundh
John Machin wrote: > Indeed, and their docs say that the default for _fmode is text mode. the default doesn't matter much if you're writing library code for an application that may change it. -- http://mail.python.org/mailman/listinfo/python-list

Re: raw strings in regexps

2006-12-07 Thread Fredrik Lundh
Mike wrote: > I've been having trouble with a regular expression, and I finally simplified > things down to the point that (a) my example is very simple, and (b) I'm > totally confused. There are those who would say (b) is normal, but that's > another thread. > > I finally simplified my proble

Re: raw strings in regexps

2006-12-07 Thread Carl Banks
Mike wrote: > I've been having trouble with a regular expression, and I finally simplified > things down to the point that (a) my example is very simple, and (b) I'm > totally confused. There are those who would say (b) is normal, but that's > another thread. > > I finally simplified my problem dow

Re: funcs without () like print

2006-12-07 Thread Scott David Daniels
iwl wrote: > Hello can I make funktions callable without () like print > at time the interpreter seems to printout the adres when I type the > function without () As everyone else has already told you, print is a statement, not a function. If you want your source code to use these "self-calling-

raw strings in regexps

2006-12-07 Thread Mike
I've been having trouble with a regular expression, and I finally simplified things down to the point that (a) my example is very simple, and (b) I'm totally confused. There are those who would say (b) is normal, but that's another thread. I finally simplified my problem down to this simple cas

Re: Need Help Parsing From File

2006-12-07 Thread John Machin
On 8/12/2006 1:53 PM, Gabriel Genellina wrote: > At Thursday 7/12/2006 15:44, John Machin wrote: > >> > > > ftxt=open(filename,"rt") >> > > >> > >Is this a bug or a feature? Or is it one of those good old >> "unspecified >> > >behaviour" cases? MSVC rtl only? >> > >> > The Python docs say only th

Re: SOAP Server with WSDL?

2006-12-07 Thread Ravi Teja
tobiah wrote: > Actually, do I have to make a WSDL? Do people hand write these, or > are there tools? I don't really need to publish an interface. I just > want some in house apps to communicate. Java and .NET based tools can auto-generate WSDL from code. Python does not have such because func

Re: Logging output from python

2006-12-07 Thread Gabriel Genellina
At Thursday 7/12/2006 23:21, Cameron Walsh wrote: > Here is my problem. I want to log everything displayed in the screen > after I start the main python script. Things include unhandled > exceptions , message from print statement and other sources. > Basically, if it is displayed on the screen,

Re: subversion revision number string within an application packaged with distutils?

2006-12-07 Thread Gabriel Genellina
At Thursday 7/12/2006 22:49, Jim Tittsler wrote: Is there a standard recipe for getting the subversion revision number into my Python-based application each time I package it up with distutils? (Not just the package name, but also a string that I will display in my app's "About" dialog.) Unde

Re: problems caused by very large for-loop

2006-12-07 Thread true911
sam wrote: > hi all, > ... > has anyone else bumped up against this problem before? i suppose > for-loops with 250 million iterations are seldom used in most > applications. it was just the first time i'd ever solved a problem by > actually having some insight into how python works at a slightly

Re: Common Python Idioms

2006-12-07 Thread Gabriel Genellina
At Thursday 7/12/2006 19:45, Steven D'Aprano wrote: > I'm surprized that none of these pages mentions the incompatible type > comparison gotcha: > 5 < "4" > True > > I'm sure this has bitten many folks, particularly (ex) Perl'ers. Why is this a gotcha? I can't speak for others, but except

Re: Multithreaded python script calls the COMMAND LINE

2006-12-07 Thread Gabriel Genellina
At Thursday 7/12/2006 19:13, johnny wrote: > Anyway, if you have many conversion processes running, you should pass > them unique file names to avoid conflicts. > Where does the '1' name come from? If it's you, don't use a fixed name > - the tempfile module may be useful. I am giving unique nam

Re: Best way to split up lines - RE: About the 79 character linerecommendation

2006-12-07 Thread Gabriel Genellina
At Thursday 7/12/2006 16:46, Roy Smith wrote: I see your point. Actually, I think you want to force the sequences to be lists (regardless of what syntax we end up with), on the theory that tuples are for heterogeneous sequences and lists are for homogeneous ones. Any rationale for this theory

Re: write an update manager in python/wxPython

2006-12-07 Thread m . errami
Will & Gabriel Well I will then think of something. Thank you very much. I do appreciate your help. M.E. [EMAIL PROTECTED] wrote: > On 7 dic, 19:04, Will McGugan <[EMAIL PROTECTED]> wrote: > > [EMAIL PROTECTED] wrote: > > > I have a small application for which I would like to write an update > >

Re: Need Help Parsing From File

2006-12-07 Thread Gabriel Genellina
At Thursday 7/12/2006 15:44, John Machin wrote: > > > ftxt=open(filename,"rt") > > > >Is this a bug or a feature? Or is it one of those good old "unspecified > >behaviour" cases? MSVC rtl only? > > The Python docs say only that the initial letter is checked. And the > ANSI 89 C says that other c

Re: Logging output from python

2006-12-07 Thread Cameron Walsh
Barry wrote: > Hi, guys > > Basiclly, it is automated testing system. There is a main python script > that handles the testing campagin. This main script will call another > script that will in turn runs a few hundered individual python scripts. > > > Here is my problem. I want to log everything

Re: Module Indexing

2006-12-07 Thread JKPeck
Thanks. I've gotten good results with epydoc pretty quickly. It hangs on one module just burning cpu time, but I've left that one out for now. Diez B. Roggisch wrote: > JKPeck schrieb: > > We are interested in building a module index for our libraries similar > > to the global module index on t

Re: Common Python Idioms

2006-12-07 Thread Ben Finney
"Stephen Eilert" <[EMAIL PROTECTED]> writes: > Is there a list somewhere listing those not-so-obvious-idioms? They're only not-so-obvious to those who learn one version of Python and then ignore release notes on future versions. The "k in some_dict" was a wonderful thing to read in the release no

Logging output from python

2006-12-07 Thread Barry
Hi, guys Basiclly, it is automated testing system. There is a main python script that handles the testing campagin. This main script will call another script that will in turn runs a few hundered individual python scripts. Here is my problem. I want to log everything displayed in the screen afte

Re: Subprocess with a Python Session?

2006-12-07 Thread Gabriel Genellina
At Thursday 7/12/2006 12:16, El Pitonero wrote: Is there something equivalent to the "-u" option for a shell like "bash"? In general (whether the subprocess is bash or python), how can one make sure that once something is written into the subprocess' stdin, the output from its stdout is fully co

subversion revision number string within an application packaged with distutils?

2006-12-07 Thread Jim Tittsler
Is there a standard recipe for getting the subversion revision number into my Python-based application each time I package it up with distutils? (Not just the package name, but also a string that I will display in my app's "About" dialog.) -- http://mail.python.org/mailman/listinfo/python-list

Re: problems caused by very large for-loop

2006-12-07 Thread sam
thanks, i'll remember that. it makes sense that there should be a way of doing it... sam -- http://mail.python.org/mailman/listinfo/python-list

RE: problems caused by very large for-loop

2006-12-07 Thread Delaney, Timothy (Tim)
sam wrote: > so far so good, but i was using 'for i in the range(iterations):' a > for loop over each slice of time, where the number of iterations was > getting into the tens of millions. up until about 125,000,000 it > worked, then i got a MemoryError. Your analysis was correct - range() return

Re: A Call to Arms for Python Advocacy

2006-12-07 Thread Thomas Ploch
Thomas Ploch schrieb: > Roy Smith schrieb: >> In article <[EMAIL PROTECTED]>, >> Jeff Rush <[EMAIL PROTECTED]> wrote: >> >>> As the Python Advocacy Coordinator, I've put up some wiki pages on the >>> Python >>> website for which I'm soliciting ideas, writing and graphics. Some of the >>> mater

Re: A Call to Arms for Python Advocacy

2006-12-07 Thread Thomas Ploch
Roy Smith schrieb: > In article <[EMAIL PROTECTED]>, > Jeff Rush <[EMAIL PROTECTED]> wrote: > >> As the Python Advocacy Coordinator, I've put up some wiki pages on the >> Python >> website for which I'm soliciting ideas, writing and graphics. Some of the >> material exists scattered about and

problems caused by very large for-loop

2006-12-07 Thread sam
hi all, i am writing some software to model polymerisation kinetics and have created a way of doing so which involves taking ever smaller slices of time to model until some sort of convergence was observed in the results. so far so good, but i was using 'for i in the range(iterations):' a for loo

Re: deriving classes from object extensions

2006-12-07 Thread Calvin Spealman
On 7 Dec 2006 16:12:18 -0800, manstey <[EMAIL PROTECTED]> wrote: > Hi, > > I am using Python with Cache dbase, which provides pythonbind module, > and intersys.pythonbind.object types. But I can't create a class based > on this type: > > import intersys.pythonbind > class MyClass(intersys.pythonbin

Re: Best way to split up lines - RE: About the 79 character linerecommendation

2006-12-07 Thread MRAB
John Machin wrote: > Roy Smith wrote: > > > It would be nice if struct.unpack() had a way to specify unpacking repeated > > items as a list, ie: > > > >data = struct.unpack ("! H 4(B) H 2B 12(B) 6(B) H I", strMessage) > >(top, > > ip, > > messageCounter, > > ackRequired, > >

Re: Window, Windows, Linux, client and server...

2006-12-07 Thread MRAB
Cameron Laird wrote: > In article <[EMAIL PROTECTED]>, > Gabriel Genellina <[EMAIL PROTECTED]> wrote: > >At Thursday 7/12/2006 05:28, nelson - wrote: > > > >> i'm trying to implement an appllication with this two requirements. > >>I have a server and some clients. I want to be able to launch an

deriving classes from object extensions

2006-12-07 Thread manstey
Hi, I am using Python with Cache dbase, which provides pythonbind module, and intersys.pythonbind.object types. But I can't create a class based on this type: import intersys.pythonbind class MyClass(intersys.pythonbind.object): pass gives me the error: TypeError: Error when calling the metac

Re: SOAP Server with WSDL?

2006-12-07 Thread Diez B. Roggisch
>> I can't figure out if I want SOAP, or CORBA, or would it just be > Unless you are talking to an existing CORBA interface, don't go there. Can't agree to that. CORBA is by far better than SOAP. And writing an IDL is actually a easy and straightforward thing to do - no tools needed, as when wri

Re: Windows: get owner and group of a file

2006-12-07 Thread MRAB
kai rosenthal wrote: > Hello, > > with ls -l on windows I get > -rw-r--r-- 1 500 everyone 320 Nov 09 09:35 myfile > > How can I get on windows with a standard python 2.2 (without windows > extensions) the information "500" and "everyone" (owner and group)? > Also I cannot use popen('ls -l'). > > W

Re: per instance descriptors

2006-12-07 Thread Simon Bunker
Carl Banks wrote: > Simon Bunker wrote: > >>Hi I have code similar to this: >> >>class Input(object): >> >> def __init__(self, val): >> self.value = val >> >> def __get__(self, obj, objtype): >> return self.value >> >> def __set__(self, obj, val): >> # do some c

Re: per instance descriptors

2006-12-07 Thread Simon Bunker
George Sakkis wrote: > [EMAIL PROTECTED] wrote: > > >>George Sakkis wrote: >> >>>Simon Bunker wrote: >>> >>> Hi I have code similar to this: class Input(object): def __init__(self, val): self.value = val def __get__(self, obj, objtype):

Re: write an update manager in python/wxPython

2006-12-07 Thread gagsl-py
On 7 dic, 19:04, Will McGugan <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > I have a small application for which I would like to write an update > > manager. I assume that the basics of it is to compare versions of the > > user's current application and a new one store in a new file on

Re: SOAP Server with WSDL?

2006-12-07 Thread Chris Lambacher
On Thu, Dec 07, 2006 at 01:52:59PM -0800, tobiah wrote: > > > You want ZSI. If you already have a wsdl you then use wsdl2py and > > wsdl2dispatch to create your server classes. The server classes get used > > with ZSI.ServiceContainer. Unfortunately there is not much documentation > > about thi

Re: Common Python Idioms

2006-12-07 Thread Steven D'Aprano
On Thu, 07 Dec 2006 13:52:33 -0800, George Sakkis wrote: > I'm surprized that none of these pages mentions the incompatible type > comparison gotcha: > 5 < "4" > True > > I'm sure this has bitten many folks, particularly (ex) Perl'ers. Why is this a gotcha? I can't speak for others, but

Re: SOAP Server with WSDL?

2006-12-07 Thread gagsl-py
On 7 dic, 18:52, tobiah <[EMAIL PROTECTED]> wrote: > Actually, do I have to make a WSDL? Do people hand write these, or > are there tools? I don't really need to publish an interface. I just > want some in house apps to communicate. > > I can't figure out if I want SOAP, or CORBA, or would it j

Why does wx.Window.CaptureMouse() send EVT_PAINT

2006-12-07 Thread Bill Jackson
It seems that the CaptureMouse method sends an EVT_PAINT handler. The documentation does not mention this...is it somewhere else? Could someone explain why this handler is sent out? Also, I've seen: def OnMouseDown(self, evt): self.CaptureMouse() self.x, self.y = self.l

Re: PyQt, designer, and directional flow

2006-12-07 Thread borntonetwork
Something simple, of course. I must have errantly clicked the field in the property editor. Thanks very much for you help. On 12/7/06, Phil Thompson wrote: On Wednesday 06 December 2006 11:41 pm, you wrote: > I meant QLineEdit in my original post. Sorry about that. Every single one >

Re: Multithreaded python script calls the COMMAND LINE

2006-12-07 Thread johnny
[EMAIL PROTECTED] wrote: > > That depends on how you invoke it: os.system creates a new shell which > in turn creates a new process; the spawn* functions do that directly. I am using os.system. Here is my code import ftplib, posixpath, threading from TaskQueue import TaskQueue def worker(tq):

RE: dict.has_key(x) versus 'x in dict'

2006-12-07 Thread Delaney, Timothy (Tim)
[EMAIL PROTECTED] wrote: > Hendrik> why? - the main point is actually that the code worked, > and was Hendrik> stable - that should make you proud, not > embarrassed. that Hendrik> there is far too much emphasis on > doing things the quickest way Hendrik> - as long as it works, an

Re: write an update manager in python/wxPython

2006-12-07 Thread Will McGugan
[EMAIL PROTECTED] wrote: > Hello all > I have a small application for which I would like to write an update > manager. I assume that the basics of it is to compare versions of the > user's current application and a new one store in a new file on a > particular URL. > Now is there any standard way t

Re: SOAP Server with WSDL?

2006-12-07 Thread tobiah
> You want ZSI. If you already have a wsdl you then use wsdl2py and > wsdl2dispatch to create your server classes. The server classes get used > with ZSI.ServiceContainer. Unfortunately there is not much documentation > about this. Actually, do I have to make a WSDL? Do people hand write th

Re: Common Python Idioms

2006-12-07 Thread George Sakkis
Danny Colligan wrote: > > Is there a list somewhere listing those not-so-obvious-idioms? > > I don't know about lists of not-so-obvious idioms, but here's some > gotchas (there may be some overlap with what you're asking about): > > http://zephyrfalcon.org/labs/python_pitfalls.html > http://www.fer

Re: memory error with matplot

2006-12-07 Thread John Hunter
> "lisa" == lisa engblom <[EMAIL PROTECTED]> writes: lisa> Hi, I am using matplotlib with python to generate a bunch of lisa> charts. My code works fine for a single iteration, which lisa> creates and saves 4 different charts. The trouble is that lisa> when I try to run it fo

Re: Execution time of lines within a function

2006-12-07 Thread Ed Leafe
On Dec 4, 2006, at 11:36 PM, Paul McGuire wrote: > The PythonDecoratorLibrary page on the Python wiki has a link to a > @profile > decorator, that I have used to profile the contents of targeted > functions > (only just now, I don't seem to be able to get to the wiki to get > the exact > lin

Re: SOAP Server with WSDL?

2006-12-07 Thread Chris Lambacher
On Thu, Dec 07, 2006 at 12:49:09PM -0800, tobiah wrote: > I'm having trouble finding information > about writing a SOAP server. I get the client > part. There is much information about writing > a client, but not so much about writing the server. > Are there some good tutorials? > > I'm checking

Re: A Call to Arms for Python Advocacy

2006-12-07 Thread George Sakkis
Jeff Rush wrote: > These works are to be formed into advocacy kits for various audiences. So far > we have the following ideas for kits: > >- College Student's Python Advocacy Kit >- IT Department Python Advocacy Kit >- University Educator's Python Advocacy Kit >- K-12 Educator's

Re: Multithreaded python script calls the COMMAND LINE

2006-12-07 Thread gagsl-py
On 7 dic, 17:36, "johnny" <[EMAIL PROTECTED]> wrote: > I have python script does ftp download in a multi threaded way. Each > thread downloads a file, close the file, calls the comman line to > convert the .doc to pdf. Command line should go ahead and convert the > file. My question is, when each t

Re: Embedded python adding variables linking to C++-Variables / callbacks

2006-12-07 Thread gagsl-py
On 7 dic, 11:33, "iwl" <[EMAIL PROTECTED]> wrote: > What I found out up to now is to create a class inherited from an > fitting type > and overwrite the __setitem__ and __getitem__ method but haven't test > this > yet, something like that: > > class test(int): > __setitem(self, value)__: C-Set-F

Re: Why not just show the out-of-range index?

2006-12-07 Thread John Machin
OKB (not okblacke) wrote: > John Machin wrote: > > It should be extremely easy (rather than "not impossible") for > > anybody with half a clue > > > Sheesh. > > And despite your use of RHN (Reverse Hungarian Notation) you don't > > know that someList is a list? > > I appreciate your taking

SOAP Server with WSDL?

2006-12-07 Thread tobiah
I'm having trouble finding information about writing a SOAP server. I get the client part. There is much information about writing a client, but not so much about writing the server. Are there some good tutorials? I'm checking out: http://pywebsvcs.sourceforge.net/ But I'm a little confused.

Multithreaded python script calls the COMMAND LINE

2006-12-07 Thread johnny
I have python script does ftp download in a multi threaded way. Each thread downloads a file, close the file, calls the comman line to convert the .doc to pdf. Command line should go ahead and convert the file. My question is, when each thread calls the command line, does one command line process a

Re: Can't 'register' to Cheese Shop from command line..only web + egg dependency question

2006-12-07 Thread Adam Jones
[EMAIL PROTECTED] wrote: > I seem to be able to register and upload from web site but not command > line. Command line register attempts keep giving " Server response > (401): Authorization Required" > > Any ideas? You probably need to set up a .pypirc file in your home directory. Info here: ht

Re: Why not just show the out-of-range index?

2006-12-07 Thread OKB (not okblacke)
John Machin wrote: > It should be extremely easy (rather than "not impossible") for > anybody with half a clue > Sheesh. > And despite your use of RHN (Reverse Hungarian Notation) you don't > know that someList is a list? I appreciate your taking the time to post this thoughtful and civil

Re: Best way to split up lines - RE: About the 79 character linerecommendation

2006-12-07 Thread John Machin
Roy Smith wrote: > In article <[EMAIL PROTECTED]>, > "John Machin" <[EMAIL PROTECTED]> wrote: > > > Roy Smith wrote: > > > > > It would be nice if struct.unpack() had a way to specify unpacking > > > repeated > > > items as a list, ie: > > > > > >data = struct.unpack ("! H 4(B) H 2B 12(B) 6(

write an update manager in python/wxPython

2006-12-07 Thread m . errami
Hello all I have a small application for which I would like to write an update manager. I assume that the basics of it is to compare versions of the user's current application and a new one store in a new file on a particular URL. Now is there any standard way to do that. I am sure I can figure out

Can't 'register' to Cheese Shop from command line..only web + egg dependency question

2006-12-07 Thread [EMAIL PROTECTED]
I seem to be able to register and upload from web site but not command line. Command line register attempts keep giving " Server response (401): Authorization Required" Any ideas? & What must I do to make installation of my egg also install dependencies? I did an install and noticed other eg

Re: Best way to split up lines - RE: About the 79 character linerecommendation

2006-12-07 Thread Roy Smith
In article <[EMAIL PROTECTED]>, "John Machin" <[EMAIL PROTECTED]> wrote: > Roy Smith wrote: > > > It would be nice if struct.unpack() had a way to specify unpacking repeated > > items as a list, ie: > > > >data = struct.unpack ("! H 4(B) H 2B 12(B) 6(B) H I", strMessage) > >(top, > >

Re: Best way to split up lines - RE: About the 79 character linerecommendation

2006-12-07 Thread John Machin
Roy Smith wrote: > It would be nice if struct.unpack() had a way to specify unpacking repeated > items as a list, ie: > >data = struct.unpack ("! H 4(B) H 2B 12(B) 6(B) H I", strMessage) >(top, > ip, > messageCounter, > ackRequired, > dataType, > utc, > st, > n

Re: feed-forward neural network for python

2006-12-07 Thread Beliavsky
mwojc wrote: > Hi! > I released feed-forward neural network for python (ffnet) project at > sourceforge. Implementation is extremelly fast (code written mostly in > fortran with thin python interface, scipy optimizers involved) and very > easy to use. > I'm announcing it here because you, folks, a

makeactivexclass stopped giving me events when i upgraded to wxpython 2.7 =(

2006-12-07 Thread matt sib
Hi all. I just upgraded to wxpython 2.7 Its way cool. However, in one of my apps, i have embedded a flash activex control. I have had it working great in wxpython 2.6. After i upgraded to 2.7, i stopped receiving events from flash! But whats even weirder is that when i embed the flash activex in a

Re: Common Python Idioms

2006-12-07 Thread John Machin
Daniel Dittmar wrote: > Duncan Booth wrote: > > In this case, dict objects used to not support the 'in' operator, but at > > some point it was added. I believe it wasn't there originally because Guido > > wasn't sure whether people would expect it should match keys or keys and > > values. > > And

Re: Best way to split up lines - RE: About the 79 character line recommendation

2006-12-07 Thread Roel Schroeven
Michael Yanowitz schreef: > Hello: > >I too don't like large lines. However in the following case, and > multi-level indentations, I find it unavoidable. >Here is one huge statement I haven't been able to split onto multiple > lines. > What would be the best way to split the following line

Re: Best way to split up lines - RE: About the 79 character linerecommendation

2006-12-07 Thread Roy Smith
In article <[EMAIL PROTECTED]>, "Fredrik Lundh" <[EMAIL PROTECTED]> wrote: > Michael Yanowitz wrote: > > > What would be the best way to split the following line (Python doesn't like > > me to split it up between the comma-separated parameters): > > > >top, ip1, ip2, ip3, ip4, messageCounter

feed-forward neural network for python

2006-12-07 Thread mwojc
Hi! I released feed-forward neural network for python (ffnet) project at sourceforge. Implementation is extremelly fast (code written mostly in fortran with thin python interface, scipy optimizers involved) and very easy to use. I'm announcing it here because you, folks, are potential users/testers

Re: Need Help Parsing From File

2006-12-07 Thread John Machin
Gabriel Genellina wrote: > At Thursday 7/12/2006 02:51, John Machin wrote: > > >Gabriel Genellina wrote: > > > > > > ftxt=open(filename,"rt") > > > >Never seen that done before. It's not in the docs. > > A remnant of my MSDOS+C background... > > >FWIW: > > > >Python 2.5 (r25:51908, Sep 19 2006, 09

Re: how to delete matplotlib data between ploting

2006-12-07 Thread [EMAIL PROTECTED]
clf() works :) thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: how to delete matplotlib data between ploting

2006-12-07 Thread Murali
pylab.clf() or some such thing clears the current canvas. [EMAIL PROTECTED] wrote: > I want to make few plots from CSV files. I have the code below - it > works - the first plot is ok, the second one has the first and the > current data set and so on - I can't delete the plot data between > plots

Re: How to create a global hotkey?

2006-12-07 Thread Jordan
If you're using python 2.4, you can use the pyHook library (I don't think it has been ported to 2.5 yet... I should email him about that), which can hook both the mouse and keyboard, so your program can be running in the background and still catch what keys (or mouse clicks) are pressed. The pyHoo

Re: Best way to split up lines - RE: About the 79 character linerecommendation

2006-12-07 Thread John Machin
Fredrik Lundh wrote: > Michael Yanowitz wrote: > > > What would be the best way to split the following line (Python doesn't like > > me to split it up between the comma-separated parameters): > > > >top, ip1, ip2, ip3, ip4, messageCounter, ackRequired, dataType, utc1, > > utc2, utc3, utc4, utc5

Re: How to create a global hotkey?

2006-12-07 Thread [EMAIL PROTECTED]
XLib would really only see the keys pressed when under X, do you want it to catch the keys directly from the keyboard? Gerold Penz wrote: > > I want my function to execute when the user presses the > > hotkey anywhere. > > Hi! > > - XLib unter Linux: http://python-xlib.sourceforge.net/ > - wxPytho

Re: funcs without () like print

2006-12-07 Thread Paddy
iwl wrote: > Hello can I make funktions callable without () like print > at time the interpreter seems to printout the adres when I type the > function without () Hi iwl, its one of the python fundamentals when dealing with functions. function_name without the () refers to the function object,

Re: List of Events in wxPython

2006-12-07 Thread John Salerno
Jacksondf wrote: > What is that procedure for determining which events can be binded for a > particular widget? The docs don't seem to help. For example, how can I > know which events wx.SpinButton will send. > > Thanks. Exactly which docs are you looking at? The wxPython docs have a link th

how to delete matplotlib data between ploting

2006-12-07 Thread [EMAIL PROTECTED]
I want to make few plots from CSV files. I have the code below - it works - the first plot is ok, the second one has the first and the current data set and so on - I can't delete the plot data between plots. ## # -*- coding: utf-8 -*- from pylab import * fro

Re: Inheritance doesn't work

2006-12-07 Thread John Salerno
Fredrik Lundh wrote: > J. Clifford Dyer wrote: > >> Sure, but I think the question was more about how code that references >> "MandelbrotImage could yield a stack that references MandelImage. > > well, it's been obvious for quite some time that we've now reached a > point in Python's quest for w

Re: funcs without () like print

2006-12-07 Thread Andre Meyer
print is supposed to become a function in Py3k, though. On 12/7/06, Georg Brandl <[EMAIL PROTECTED]> wrote: iwl wrote: > Hello can I make funktions callable without () like print > at time the interpreter seems to printout the adres when I type the > function without () print is not a functio

Re: Window, Windows, Linux, client and server...

2006-12-07 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Gabriel Genellina <[EMAIL PROTECTED]> wrote: >At Thursday 7/12/2006 05:28, nelson - wrote: > >> i'm trying to implement an appllication with this two requirements. >>I have a server and some clients. I want to be able to launch an >>application (openoffice impress

Re: Subprocess with a Python Session?

2006-12-07 Thread Fredrik Lundh
Giovanni Bajo wrote: >>> assert p.stdout.readline() == '10\n' > > Yeah, but WHY was the API designed like this? Why can't I read and write > freely from a pipe connected to a process as many times as I want? the subprocess module is designed to deal with Unix-style subprocesses in general, not

Re: funcs without () like print

2006-12-07 Thread Georg Brandl
iwl wrote: > Hello can I make funktions callable without () like print > at time the interpreter seems to printout the adres when I type the > function without () print is not a function, it's a statement, and as such equivalent to raise or assert. Georg -- http://mail.python.org/mailman/listinf

Re: A Call to Arms for Python Advocacy

2006-12-07 Thread Tarek Ziadé
On 12/7/06, Jeff Rush <[EMAIL PROTECTED]> wrote: [snip] These works are to be formed into advocacy kits for various audiences. So far we have the following ideas for kits: - College Student's Python Advocacy Kit - IT Department Python Advocacy Kit - University Educator's Python Advoca

Re: A Call to Arms for Python Advocacy

2006-12-07 Thread Roy Smith
In article <[EMAIL PROTECTED]>, "Istvan Albert" <[EMAIL PROTECTED]> wrote: > Roy Smith wrote: > > > I think it also appears to need faster hardware. It's running glacially > > slow. > > runs fine here > > i. Maybe it was a transient thing -- it's running fine here too now. -- http://mail.py

Re: Windows installer for Scientific Python for Python 2.4?

2006-12-07 Thread Grant Edwards
On 2006-12-07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > On 06.12.2006, at 23:36, Grant Edwards wrote: > >> Can anybody point me to a windows installer for scientific >> python that will work with Python 2.4? The Scientific python >> download page only has an installer for Python 2.3. > > If

Re: A Call to Arms for Python Advocacy

2006-12-07 Thread Istvan Albert
Roy Smith wrote: > I think it also appears to need faster hardware. It's running glacially > slow. runs fine here i. -- http://mail.python.org/mailman/listinfo/python-list

Re: Initializing with the correct type

2006-12-07 Thread Istvan Albert
[EMAIL PROTECTED] wrote: > Hi all, > > I'm new to Python and I'm just wordering if my approch is correct. > Here's an example. I'm making sure that the length and types are > correct. Don't worry much about the type of parameters, it turns out passing wrong data into a constructor is a problem tha

Jerry Brewster's new email address

2006-12-07 Thread Spiercyanna
hey this is arnie franks you got any tractors for sale -- http://mail.python.org/mailman/listinfo/python-list

Re: A Call to Arms for Python Advocacy

2006-12-07 Thread Roy Smith
In article <[EMAIL PROTECTED]>, Jeff Rush <[EMAIL PROTECTED]> wrote: > As the Python Advocacy Coordinator, I've put up some wiki pages on the Python > website for which I'm soliciting ideas, writing and graphics. Some of the > material exists scattered about and just needs locating and organiz

PyCon 07

2006-12-07 Thread david brochu jr
Anyone able to register yet for PyCon07? I can't find any link online..I want to get in early to lock in on the cheaper registration rate..any ideas? -- http://mail.python.org/mailman/listinfo/python-list

Re: Why not just show the out-of-range index?

2006-12-07 Thread Neil Cerutti
On 2006-12-07, Tim Chase <[EMAIL PROTECTED]> wrote: >>> - because error messages are not debugging tools (better use unit >> >> Then what are they? Machine-generated poetry? > > >>> me.__cmp__(gruntbuggly['freddled'].micturations, > bee[LURGID].gabbleblotchits[PLURDLED]) == 0 > > Traceback (most

  1   2   >