Re: PDB does not allow jumping to first statement?

2007-03-26 Thread Peter Otten
Duncan Booth wrote: > "Chris Lasher" <[EMAIL PROTECTED]> wrote: > >> I noticed that I absolutely cannot jump back to the first statement >> (line 3, "a = 1") using the jump command. I can jump to any other line >> BUT the first statement's using the "jump " command. I >> experience the same behav

[ANN] python-gastables : Python modules for Compressible Gas Flow Calculations

2007-03-26 Thread Venkattraman A
Hello Pythoners! I would like to announce the first release of a Gas table module for Python, to perform compressible flow calculations. python-gastables includes python modules for compressible gas flow calculations. It includes python modules for Isentropic Relations, Normal Shock Relations, Ob

Nice plug for Python

2007-03-26 Thread Ant
Sourceforge's Project of the Month (an IT monitoring system written using Zope and Twisted) is a good advert for Python: http://sourceforge.net/potm/potm-2007-03.php -- http://mail.python.org/mailman/listinfo/python-list

Re: PDB does not allow jumping to first statement?

2007-03-26 Thread Duncan Booth
"Chris Lasher" <[EMAIL PROTECTED]> wrote: > I noticed that I absolutely cannot jump back to the first statement > (line 3, "a = 1") using the jump command. I can jump to any other line > BUT the first statement's using the "jump " command. I > experience the same behavior with Winpdb and rpdb2. Wh

Re: shutil.copy Problem

2007-03-26 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, David Nicolson wrote: > Hi, > > I wasn't exactly sure where to send this, I don't know if it is a bug > in Python or not. This is rare, but it has occurred a few times and > seems to be reproducible for those who experience it. > > Examine this code: > >>> try: > >>

Re: with timeout(...):

2007-03-26 Thread Hendrik van Rooyen
"Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > Nick Craig-Wood wrote: > > > Did anyone write a contextmanager implementing a timeout for > > python2.5? > > > > I'd love to be able to write something like > > > > with timeout(5.0) as exceeded: > > some_long_running_stuff() > >

Re: Python C extension providing... Python's own API?

2007-03-26 Thread Adam Atlas
Wow! I'll have to read through that tomorrow when I'm (hopefully) less tired. :D Anyway, I somehow already managed to get this working. I'm calling it DoublePy. Here's the alpha or proof-of-concept or whatever we're to call it. http://adamatlas.org/2007/03/doublepy-0.1.tar.gz Not bad for an 0.1 w

Re: enumerating processes

2007-03-26 Thread Michael Bentley
On Mar 27, 2007, at 1:07 AM, 李现民 wrote: > thanks for your help, but that is not what I am looking for. My > question is: I need to determine whether another process is running > now ---in my problem, that is 'tomcat5.exe' ---that determines what > should I do next. Maybe this can help: htt

Re: Associate image name with list item

2007-03-26 Thread Peter Otten
Kevin Walzer wrote: > I'm trying to avoid a *lot* of typing in my Tkinter application by > associating image names with items in a list. Here is my sample list: > > self.catlist = [ > 'all', 'installed', 'base', 'crypto', 'database', 'devel', > 'editors', 'games', 'gnome', '

Re: enumerating processes

2007-03-26 Thread 李现民
thanks for your help, but that is not what I am looking for. My question is: I need to determine whether another process is running now ---in my problem, that is 'tomcat5.exe' ---that determines what should I do next. thanks ! On 3/27/07, Shane Geiger <[EMAIL PROTECTED]> wrote: I believe you

Re: help with radionbutton

2007-03-26 Thread John McMonagle
Sang Park wrote: > how do I select radionbutton by default? > for my school project, I need to have 10 radio buttons and have half of > them selected > I have > for i in range(10): > x = IntVar() > if i < 5: > rb = Radiobutton(buttonFrame, variable=x, value=1,state=DISABLED) > else: > rb = Radiob

Re: about second parameter of signal handler func.

2007-03-26 Thread Bjoern Schliessmann
Marco wrote: > In C, a signal handler function has only one parameter, that is > signal number. But in Python(import signal), a signal handler > function has two parameters, the first is signal number, the > second is "frame"? > > What is "frame", please? Did you bother using help()? >>> help(s

Re: with timeout(...):

2007-03-26 Thread Nick Craig-Wood
James Stroud <[EMAIL PROTECTED]> wrote: > Nick Craig-Wood wrote: > > Did anyone write a contextmanager implementing a timeout for > > python2.5? > > > > I'd love to be able to write something like > > > > with timeout(5.0) as exceeded: > > some_long_running_stuff() > > if exceede

Re: with timeout(...):

2007-03-26 Thread Nick Craig-Wood
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > On Mar 26, 3:16 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > > But to make that work reliably, it has to be ensured that no sideeffects > > occur while being in some_long_running_stuff. which doesn't only extend to > > python itself, but also e

Re: Sending ECHO_REQUEST (pinging) with python

2007-03-26 Thread Nick Craig-Wood
Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: > On Mon, 26 Mar 2007 16:50:33 +0200, Thomas Dybdahl Ahle <[EMAIL PROTECTED]> > wrote: > >Den Mon, 26 Mar 2007 06:30:04 -0500 skrev Nick Craig-Wood: > >> Under linux the only priviledge you need is CAP_NET_RAW. It is possible > >> to give this to a

Re: build python on Celeron D

2007-03-26 Thread Christian
Chris Lasher wrote: > On Mar 26, 10:48 pm, Christian <[EMAIL PROTECTED]> wrote: >> Traceback (most recent call last): >> File "setup.py", line 89, in ? >> setup_package() >> File "setup.py", line 59, in setup_package >> from numpy.distutils.core import setup >> File "/mnt/home/ck/prog

Re: enumerating processes

2007-03-26 Thread Shane Geiger
I believe you are looking for os.getpid() 李现民 wrote: hi ,all any one knows how to enumerate the current running processes , or how to obtain a specific process by its name or process id. I know I can do this in many programming languages , but how in python? any one know? Thanks for an

Re: build python on Celeron D

2007-03-26 Thread Chris Lasher
On Mar 26, 10:48 pm, Christian <[EMAIL PROTECTED]> wrote: > Traceback (most recent call last): > File "setup.py", line 89, in ? > setup_package() > File "setup.py", line 59, in setup_package > from numpy.distutils.core import setup > File "/mnt/home/ck/prog/scipy/numpy-1.0.1/numpy/__i

Re: shutil.copy Problem

2007-03-26 Thread Leo Kislov
On Mar 26, 8:10 pm, David Nicolson <[EMAIL PROTECTED]> wrote: > Hi, > > I wasn't exactly sure where to send this, I don't know if it is a bug > in Python or not. This is rare, but it has occurred a few times and > seems to be reproducible for those who experience it. > > Examine this code: > >

Re: shutil.copy Problem

2007-03-26 Thread David Nicolson
Thanks, but it's definitely not the print. In original the code the print statements are replaced by a call to a log method. Besides, the exception would be different if it was thrown outside of the try block. On 27/03/2007, at 2:42 PM, Justin Ezequiel wrote: > On Mar 27, 11:10 am, David Ni

help with radionbutton

2007-03-26 Thread Sang Park
how do I select radionbutton by default? for my school project, I need to have 10 radio buttons and have half of them selected I have for i in range(10): x = IntVar() if i < 5: rb = Radiobutton(buttonFrame, variable=x, value=1,state=DISABLED) else

Re: shutil.copy Problem

2007-03-26 Thread Justin Ezequiel
On Mar 27, 11:10 am, David Nicolson <[EMAIL PROTECTED]> wrote: > Hi, > > I wasn't exactly sure where to send this, I don't know if it is a bug > in Python or not. This is rare, but it has occurred a few times and > seems to be reproducible for those who experience it. > > Examine this code: > >>>

enumerating processes

2007-03-26 Thread 李现民
hi ,all any one knows how to enumerate the current running processes , or how to obtain a specific process by its name or process id. I know I can do this in many programming languages , but how in python? any one know? Thanks for any guidance. -- li xianmin [EMAIL PROTECTED] -- ht

Re: Unicode zipping from Python code?

2007-03-26 Thread Leo Kislov
On Mar 26, 12:21 am, durumdara <[EMAIL PROTECTED]> wrote: > Hi! > > As I experienced in the year 2006, the Python's zip module is not > unicode-safe. I'd rather say unicode file names are not supported. Why? Because zip format didn't support unicode file names upto 2006. > With the hungarian file

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Chris Smith
Carl Banks wrote: > On Mar 26, 10:11 am, "Andy Dingley" <[EMAIL PROTECTED]> wrote: > >>On 26 Mar, 14:20, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: >> >> >>>what are the advantages of using Python for >>>creating number crunching apps over Fortran?? >> >>If you have to ask, you've not experien

build python on Celeron D

2007-03-26 Thread Christian
Hi, I'm having problems with python 2.4.4 built on a Celeron D. I had problems earlier with that processor which I think has understands some 64 bit instructions (whatever that means) but is still 32 bit. Thus when e.g. trying to build numpy with the self built python I get that error: Traceback (

Re: ZSI, SOAP and .NET web services - problem

2007-03-26 Thread Ravi Teja
On Mar 26, 3:47 pm, Jaroslaw Zabiello <[EMAIL PROTECTED]> wrote: > Dnia Mon, 26 Mar 2007 20:06:28 + (UTC), David E. Konerding DSD staff > napisa³(a): > > > Try fixing your WSDL, then try again. > > The problem is I see no errors in my WSDL. Pythonic implementation of SOAP > is just crapy. > > -

Re: Associate image name with list item

2007-03-26 Thread John McMonagle
Kevin Walzer wrote: > I'm trying to avoid a *lot* of typing in my Tkinter application by > associating image names with items in a list. Here is my sample list: > > self.catlist = [ > 'all', 'installed', 'base', 'crypto', 'database', 'devel', > 'editors', 'games', 'gnome', '

shutil.copy Problem

2007-03-26 Thread David Nicolson
Hi, I wasn't exactly sure where to send this, I don't know if it is a bug in Python or not. This is rare, but it has occurred a few times and seems to be reproducible for those who experience it. Examine this code: >>> try: >>> shutil.copy("/file.xml","/Volumes/External/file.xml") >>>

Re: functions, classes, bound, unbound?

2007-03-26 Thread 7stud
On Mar 26, 6:49 pm, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > > class Test(object): > pass > def greet(x): > print "hello" > Test.func = greet > print Test.func > t = Test() > print t.func > def sayBye(x): > print "bye" > t.bye = sayBye > print t.bye

Re: Python C extension providing... Python's own API?

2007-03-26 Thread Graham Dumpleton
On Mar 27, 12:41 pm, "Graham Dumpleton" <[EMAIL PROTECTED]> wrote: > On the other hand, it might be useful in a standalone Python based > WSGI web server which you have more direct control over. It might > take a bit of design work as to how to do it in practice, but you > could create different s

Re: Python C extension providing... Python's own API?

2007-03-26 Thread Graham Dumpleton
On Mar 27, 11:02 am, "Adam Atlas" <[EMAIL PROTECTED]> wrote: > On Mar 26, 4:55 pm, "Matimus" <[EMAIL PROTECTED]> wrote: > > > I think that is what the "code" module is for. Maybe not exactly what > > you were expecting, but the capability you describe is already there. > > Being able to access its

Associate image name with list item

2007-03-26 Thread Kevin Walzer
I'm trying to avoid a *lot* of typing in my Tkinter application by associating image names with items in a list. Here is my sample list: self.catlist = [ 'all', 'installed', 'base', 'crypto', 'database', 'devel', 'editors', 'games', 'gnome', 'graphics', 'kde', 'languages',

Re: Does Numpy work on QNX 4.25 with Python 2.2?

2007-03-26 Thread John Nagle
Robert Kern wrote: > ZMY wrote: > >>I am trying to convert some old Fortran code into Python program and >>get them work on a QNX 4.25 system. Since the program requires speed, >>I think using Numpy is really necessary. But I haven't found anything >>on web about using numpy on QNX 4.25 (especiall

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Alex Martelli
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I've been told that Both Fortran and Python are easy to read, and are > quite useful in creating scientific apps for the number crunching, but Incidentally, and a bit outside what you asked: if your "number crunching" involves anything beyond linear

about second parameter of signal handler func.

2007-03-26 Thread Marco
Hi, In C, a signal handler function has only one parameter, that is signal number. But in Python(import signal), a signal handler function has two parameters, the first is signal number, the second is "frame"? What is "frame", please? Thank you! -- LinuX Power -- http://mail.python.org/mailm

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Alex Martelli
Cameron Laird <[EMAIL PROTECTED]> wrote: ... > >If you're just trying to learn and check things out, it might be better > >to get a more recent Python from python.org (2.5 or 2.4.4) and the > >various other packages as and when you need them (you can use the > >MacEnthon list as a guide:-). You

Re: with timeout(...):

2007-03-26 Thread Klaas
On Mar 26, 3:30 am, Nick Craig-Wood <[EMAIL PROTECTED]> wrote: > Did anyone write a contextmanager implementing a timeout for > python2.5? > > I'd love to be able to write something like > > with timeout(5.0) as exceeded: > some_long_running_stuff() > if exceeded: > print "O

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Beliavsky
On Mar 26, 10:16 am, [EMAIL PROTECTED] (Cameron Laird) wrote: > In article <[EMAIL PROTECTED]>,[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >Is there a mac version?? > >Thanks > >Chris > > Yes. > > Several, in fact--all available at no charge. The Python > world is different from what experienc

Pydev 1.3.1 Released

2007-03-26 Thread Fabio Zadrozny
Hi All, Pydev and Pydev Extensions 1.3.1 have been released Details on Pydev Extensions: http://www.fabioz.com/pydev Details on Pydev: http://pydev.sf.net Details on its development: http://pydev.blogspot.com Release Highlights in Pydev Extensions: --

Re: Python C extension providing... Python's own API?

2007-03-26 Thread Adam Atlas
On Mar 26, 4:55 pm, "Matimus" <[EMAIL PROTECTED]> wrote: > I think that is what the "code" module is for. Maybe not exactly what > you were expecting, but the capability you describe is already there. > Being able to access its own interpreter is one of the things that > makes Python a dynamic lan

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Beliavsky
On Mar 26, 10:31 am, "Carl Banks" <[EMAIL PROTECTED]> wrote: > > You can write programs in Python that do usefully complicated things, > > and you can get them to work in a reasonable time. Fortran can't do > > this, for anything more than the trivial. "Classic" Fortran tasks of > > the past are

Re: osx tkinter listbox problem

2007-03-26 Thread Ben Collver
James Stroud wrote: > A "cross platform" work-around might be to grid a frame at the row and > column of self.Main and pack the Listbox into the Frame. I don't have a > Mac at work to test this, however. But I would be curious to know your > results if you try it. Thank you for the sub-frame su

Re: functions, classes, bound, unbound?

2007-03-26 Thread Bruno Desthuilliers
7stud a écrit : > On Mar 25, 3:09 pm, Steven Bethard <[EMAIL PROTECTED]> wrote: > >>Here's another way of looking at it:: >> >> >>> class Test(object): >> ... pass >> ... >> >>> def greet(): >> ... print 'Hello' >> ... >> Test.greet = greet Test.greet >> >>

Re: ZSI, SOAP and .NET web services - problem

2007-03-26 Thread Jaroslaw Zabiello
Dnia Mon, 26 Mar 2007 20:06:28 + (UTC), David E. Konerding DSD staff napisał(a): > Try fixing your WSDL, then try again. The problem is I see no errors in my WSDL. Pythonic implementation of SOAP is just crapy. -- Jaroslaw Zabiello http://blog.zabiello.com -- http://mail.python.org/mailman

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Beliavsky
On Mar 26, 9:06 am, stef <[EMAIL PROTECTED]> wrote: > As said by others, "Portability, scalability & RAD" as an advantage of > Python are probably far more important. All of those claimed advantages can be debated, although they may exist for some tasks. (1) Portability. Fortran has been run on

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Steven D'Aprano
On Mon, 26 Mar 2007 15:53:56 -0700, sturlamolden wrote: > Python is a very high-level language. That means there are certain > things that put constraint on the attained speed. Most importantly: > keep the number of interpreter evals as scarce as possible. If you > make a for loop, the interpreter

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Beliavsky
On Mar 26, 8:42 am, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: > You can get the speed of fortran in Python by using libraries like > Numeric without losing the readability of Python. Numeric and Numpy will faster than raw Python for array operations, but I don't think they will match well-

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread sturlamolden
On Mar 26, 7:13 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Thanks you all for giving a little insight into what Python can > actually do, I think I've read enough to convince me that Python is > generally a very flexible, fast, powerful language that can be used in > a wide variety of ap

Re: PMW widget - skip tabbing to it

2007-03-26 Thread John McMonagle
jp wrote: >>> On Mar 26, 10:51 am, "jp" <[EMAIL PROTECTED]> wrote: I have multiple PMW widgets (EntryFields, ScrolledField etc), how can I skip over these widgets when using the tab key? Thank you, John What version of Pmw are you using ? Tabbing between widgets works fine o

Re: PMW widget - skip tabbing to it

2007-03-26 Thread James Stroud
jp wrote: > On Mar 26, 11:27 am, [EMAIL PROTECTED] wrote: > >>On Mar 26, 11:17 am, [EMAIL PROTECTED] wrote: >> >> >>>On Mar 26, 10:51 am, "jp" <[EMAIL PROTECTED]> wrote: >> I have multiple PMW widgets (EntryFields, ScrolledField etc), how can I skip over these widgets when using the tab ke

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Beliavsky
On Mar 26, 8:40 am, [EMAIL PROTECTED] wrote: > On Mar 26, 8:20 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > OK... > > I've been told that Both Fortran and Python are easy to read, and are > > quite useful in creating scientific apps for the number crunching, but > > then Python is a tad

Re: detect suprocess interaction

2007-03-26 Thread Robin Becker
Nick Craig-Wood wrote: > Robin Becker <[EMAIL PROTECTED]> wrote: >> I'm using subprocess to carry out svn commands (probably should use the svn >> api . >> >> Clearly I need to supply some kind of input filelike object, but is this >> sort of >> thing possible. > > Yes it is pos

Re: how to abort on syntax errors

2007-03-26 Thread Steven D'Aprano
On Mon, 26 Mar 2007 13:21:22 -0400, Josh wrote: > I have a lot of except Exception, e statements in my code, which poses some > problems. One of the biggest is whenever I refactor even the triviallest > thing in my code. > > I would like python to abort, almost as if it were a compile-time erro

Re: Python object overhead?

2007-03-26 Thread Bjoern Schliessmann
Matt Garman wrote: > In my case, I know my input data doesn't have any blank lines. 8) I work with a (not self-written) perl script that does funny things with blank lines in input files. Yeah, blank lines "aren't supposed to" be in the input data ... > However, I'm glad you (and others) clarif

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Tal Einat
On Mar 26, 3:20 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > OK... > I've been told that Both Fortran and Python are easy to read, and are > quite useful in creating scientific apps for the number crunching, but > then Python is a tad slower than Fortran because of its a high level > langua

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Steven D'Aprano
On Mon, 26 Mar 2007 06:40:49 -0700, kyosohma wrote: > Fortran also appears to be a compiled language, whereas Python is an > interpreted language. Sheesh. Do Java developers go around telling everybody that Java is an interpreted language? I don't think so. What do you think the "c" in ".pyc" fi

PDB does not allow jumping to first statement?

2007-03-26 Thread Chris Lasher
Hi all, I have a simple script: --- #!/usr/bin/env python a = 1 b = 2 c = a + b print c --- I launch said script with pdb: python -m pdb simple.py I noticed that I absolutely cannot jump back to the first statement (line 3, "a = 1") using the jump command. I can jump to any other line BUT t

Re: osx tkinter listbox problem

2007-03-26 Thread James Stroud
Ben Collver wrote: > I am using Darwin 10.4.9, tcl 8.4.7, tk 8.4, and python 2.3.5. I have > also tried Python 2.5 on Darwin, Debian, and Fedora Core 6. > > I am working on a GUI front-end to a Python program of mine. It is a > simple grid with labels in the left column and input widgets in th

Re: wx.grid problem

2007-03-26 Thread raboliot
On 26 mar, 20:58, [EMAIL PROTECTED] wrote: > On Mar 26, 11:30 am, BH <[EMAIL PROTECTED]> wrote: > > > > > Yes, absolutely, but try to minimize it, and the scrollbars stays hidden !!! > > > [EMAIL PROTECTED] a écrit : > > > > On Mar 26, 10:20 am, BH <[EMAIL PROTECTED]> wrote: > > >> Hi ! > > > >> I

Re: Python C extension providing... Python's own API?

2007-03-26 Thread Matimus
On Mar 26, 12:21 pm, "Adam Atlas" <[EMAIL PROTECTED]> wrote: > Does anyone know if it would be possible to create a CPython extension > -- or use the ctypes module -- to access Python's own embedding API > (http://docs.python.org/api/initialization.html&c.)? Could a Python > program itself create a

Re: fetch html page via isa proxy

2007-03-26 Thread jay graves
On Mar 26, 12:29 pm, "Radek" <[EMAIL PROTECTED]> wrote: > I have tried setting http_proxy environment, played with proxy > openers, use ntlm proxy server all without success. So you have already tried NTLM Authorization Proxy Server? http://ntlmaps.sourceforge.net/ This used to work fine for me bu

Re: Pycron for windows - please help

2007-03-26 Thread Al
> Mapped drives are per-user. Usually, services run under the LOCAL_SYSTEM > account, not using the currently logged user (because they may start even > before any user is logged). If you want the service to have access to your > mapped drives, use the service control panel to make it run under an

Re: ZSI, SOAP and .NET web services - problem

2007-03-26 Thread David E. Konerding DSD staff
On 2007-03-22, Jaroslaw Zabiello <[EMAIL PROTECTED]> wrote: > I try to connect to web services (written in C#/.NET) with latest ZSI > 2.0rc3 library. It just does not work. > > from ZSI.ServiceProxy import ServiceProxy > wsdl = 'http://192.168.0.103/NewWebServices/TemplateInsert.asmx?wsdl' > prin

Re: call to function by text variable

2007-03-26 Thread Nanjundi
On Mar 25, 6:36 pm, "ianaré" <[EMAIL PROTECTED]> wrote: > yeah the subject doesn't really make sense does it? > > anyway want I want to do is this: > if n == 1: > > self.operations.insert(pos, operations.Replace.Panel(self, main)) > > elif n == 2: > > self.operations.insert(pos, operations.

Re: problem at installing phyton on windows

2007-03-26 Thread gslm
On 26 Mart, 00:50, "Stephen Eilert" <[EMAIL PROTECTED]> wrote: > On Mar 25, 6:23 pm, "gslm" <[EMAIL PROTECTED]> wrote: > > > > > > > Please, can you read again? > > Yes, I understand that in phyton interpreter, i can't call phyton > > command.Thanks... > > > But how can i run '.py' files from this

Python C extension providing... Python's own API?

2007-03-26 Thread Adam Atlas
Does anyone know if it would be possible to create a CPython extension -- or use the ctypes module -- to access Python's own embedding API (http://docs.python.org/api/initialization.html &c.)? Could a Python program itself create a sub-interpreter, and work with it with all the privileges and capab

Re: Does Numpy work on QNX 4.25 with Python 2.2?

2007-03-26 Thread Robert Kern
ZMY wrote: > I am trying to convert some old Fortran code into Python program and > get them work on a QNX 4.25 system. Since the program requires speed, > I think using Numpy is really necessary. But I haven't found anything > on web about using numpy on QNX 4.25 (especially the for python > versi

Re: Tkinter Toplevel geometry

2007-03-26 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, "Chris" <[EMAIL PROTECTED]> wrote: > Hi, > > If a user resizes a Toplevel window, or I set a Toplevel's geometry > using the geometry() method*, is there any way to have the geometry > reset to that required for all the widgets? > > I think I found what I'm looki

Does Numpy work on QNX 4.25 with Python 2.2?

2007-03-26 Thread ZMY
I am trying to convert some old Fortran code into Python program and get them work on a QNX 4.25 system. Since the program requires speed, I think using Numpy is really necessary. But I haven't found anything on web about using numpy on QNX 4.25 (especially the for python version 2.2). Do any of y

RE: Fortran vs Python - Newbie Question

2007-03-26 Thread Sells, Fred
1. Python is fun! 2. Python is cool! 3. Most of the time you can google a solution, i.e. somebody has already done nearly everything you can think of. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED] Sent: Monday, March 26, 2007 8:21 AM To: p

Re: wx.grid problem

2007-03-26 Thread kyosohma
On Mar 26, 11:30 am, BH <[EMAIL PROTECTED]> wrote: > Yes, absolutely, but try to minimize it, and the scrollbars stays hidden !!! > > [EMAIL PROTECTED] a écrit : > > > On Mar 26, 10:20 am, BH <[EMAIL PROTECTED]> wrote: > >> Hi ! > > >> I have a small problem with wx.Grid and scrollbars. > >> Scroll

PEP 3115 in Python 2.6?

2007-03-26 Thread Frank Benkstein
Hi, is there any possibility to see PEP 3115 implemented for Python 2.6? AFAICS there's nothing about it that should limit it's implementation to Python 3000 if backwards compatibility with '__metaclass__' is preserved. At least the '__prepare__' in metaclasses method would be very useful. Keyword

Re: PMW widget - skip tabbing to it

2007-03-26 Thread kyosohma
On Mar 26, 1:17 pm, "jp" <[EMAIL PROTECTED]> wrote: > On Mar 26, 12:34 pm, [EMAIL PROTECTED] wrote: > > > > > On Mar 26, 11:35 am, "jp" <[EMAIL PROTECTED]> wrote: > > > > On Mar 26, 11:27 am, [EMAIL PROTECTED] wrote:> On Mar 26, 11:17 am, > > > [EMAIL PROTECTED] wrote: > > > > > > On Mar 26, 10:51

Re: PMW widget - skip tabbing to it

2007-03-26 Thread jp
On Mar 26, 12:34 pm, [EMAIL PROTECTED] wrote: > On Mar 26, 11:35 am, "jp" <[EMAIL PROTECTED]> wrote: > > > > > On Mar 26, 11:27 am, [EMAIL PROTECTED] wrote:> On Mar 26, 11:17 am, [EMAIL > > PROTECTED] wrote: > > > > > On Mar 26, 10:51 am, "jp" <[EMAIL PROTECTED]> wrote: > > > > > > I have multiple

Re: how to abort on syntax errors

2007-03-26 Thread kyosohma
On Mar 26, 1:07 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > On Mar 26, 12:21 pm, "Josh" <[EMAIL PROTECTED]> wrote: > >> I have a lot of except Exception, e statements in my code, which poses some > >> problems. One of the biggest is whenever I refactor even the trivia

Re: how to abort on syntax errors

2007-03-26 Thread Gabriel Genellina
En Mon, 26 Mar 2007 14:21:22 -0300, Josh <[EMAIL PROTECTED]> escribió: > I have a lot of except Exception, e statements in my code, which poses > some > problems. *many* problems, I'd say. Don't do that :) > One of the biggest is whenever I refactor even the triviallest > thing in my code. > >

Re: how to abort on syntax errors

2007-03-26 Thread Steve Holden
[EMAIL PROTECTED] wrote: > On Mar 26, 12:21 pm, "Josh" <[EMAIL PROTECTED]> wrote: >> I have a lot of except Exception, e statements in my code, which poses some >> problems. One of the biggest is whenever I refactor even the triviallest >> thing in my code. >> >> I would like python to abort, almos

Re: how to abort on syntax errors

2007-03-26 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Josh wrote: > I have a lot of except Exception, e statements in my code, which poses some > problems. One of the biggest is whenever I refactor even the triviallest > thing in my code. > > I would like python to abort, almost as if it were a compile-time error, > whenev

Re: how to abort on syntax errors

2007-03-26 Thread skip
Josh> I have a lot of except Exception, e statements in my code, which Josh> poses some problems. One of the biggest is whenever I refactor Josh> even the triviallest thing in my code. Josh> I would like python to abort, almost as if it were a compile-time Josh> error, wheneve

Re: how to abort on syntax errors

2007-03-26 Thread kyosohma
On Mar 26, 12:21 pm, "Josh" <[EMAIL PROTECTED]> wrote: > I have a lot of except Exception, e statements in my code, which poses some > problems. One of the biggest is whenever I refactor even the triviallest > thing in my code. > > I would like python to abort, almost as if it were a compile-time e

Re: Python object overhead?

2007-03-26 Thread 7stud
On Mar 26, 9:13 am, "Matt Garman" <[EMAIL PROTECTED]> wrote: > On 3/23/07, Jack Diederich <[EMAIL PROTECTED]> wrote: > > > If you make the record a new style class (inherit from object) you can > > specify the __slots__ attribute on the class. This eliminates the per > > instance dictionary overhe

Re: PMW widget - skip tabbing to it

2007-03-26 Thread kyosohma
On Mar 26, 11:35 am, "jp" <[EMAIL PROTECTED]> wrote: > On Mar 26, 11:27 am, [EMAIL PROTECTED] wrote:> On Mar 26, 11:17 am, [EMAIL > PROTECTED] wrote: > > > > On Mar 26, 10:51 am, "jp" <[EMAIL PROTECTED]> wrote: > > > > > I have multiple PMW widgets (EntryFields, ScrolledField etc), how can > > > >

fetch html page via isa proxy

2007-03-26 Thread Radek
Hi, I have been trying several days to get the html page of www.python.org when behind the corporate MS isa proxy. I have tried setting http_proxy environment, played with proxy openers, use ntlm proxy server all without success. I can get the page using Firefox and IE with proxy settings. As t

how to abort on syntax errors

2007-03-26 Thread Josh
I have a lot of except Exception, e statements in my code, which poses some problems. One of the biggest is whenever I refactor even the triviallest thing in my code. I would like python to abort, almost as if it were a compile-time error, whenever it cannot find a function, or if I introduced

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread [EMAIL PROTECTED]
On 26 Mar, 17:59, "Erik Johnson" <[EMAIL PROTECTED]> wrote: > <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > OK... > > I've been told that Both Fortran and Python are easy to read, and are > > quite useful in creating scientific apps for the number crunching, but > > then Pyt

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Erik Johnson
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > OK... > I've been told that Both Fortran and Python are easy to read, and are > quite useful in creating scientific apps for the number crunching, but > then Python is a tad slower than Fortran because of its a high level > language nat

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Carl Banks
On Mar 26, 9:42 am, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: > On 26 Mar 2007 06:20:32 -0700, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > >OK... > >I've been told that Both Fortran and Python are easy to read, and are > > Python is hugely easier to read. > > >quite useful in creating s

Re: functions, classes, bound, unbound?

2007-03-26 Thread 7stud
On Mar 26, 5:08 am, Bruno Desthuilliers wrote: > Most of Python's object model is documented here: > > http://www.python.org/download/releases/2.2.3/descrintro/http://users.rcn.com/python/download/Descriptor.htm > Thanks. I've looked at both of those, and the second one is very good. -- http:/

Re: functions, classes, bound, unbound?

2007-03-26 Thread irstas
On Mar 26, 7:15 pm, "7stud" <[EMAIL PROTECTED]> wrote: > On Mar 25, 3:09 pm, Steven Bethard <[EMAIL PROTECTED]> wrote: > > > Here's another way of looking at it:: > > > >>> class Test(object): > > ... pass > > ... > > >>> def greet(): > > ... print 'Hello' > >

Re: PMW widget - skip tabbing to it

2007-03-26 Thread jp
On Mar 26, 11:27 am, [EMAIL PROTECTED] wrote: > On Mar 26, 11:17 am, [EMAIL PROTECTED] wrote: > > > On Mar 26, 10:51 am, "jp" <[EMAIL PROTECTED]> wrote: > > > > I have multiple PMW widgets (EntryFields, ScrolledField etc), how can > > > I skip over these widgets when using the tab key? > > > > Than

Re: wx.grid problem

2007-03-26 Thread BH
Yes, absolutely, but try to minimize it, and the scrollbars stays hidden !!! [EMAIL PROTECTED] a écrit : > On Mar 26, 10:20 am, BH <[EMAIL PROTECTED]> wrote: >> Hi ! >> >> I have a small problem with wx.Grid and scrollbars. >> Scrollbars definitively dissapears after resizing the frame. >> >> Thx

Re: PMW widget - skip tabbing to it

2007-03-26 Thread jp
On Mar 26, 11:17 am, [EMAIL PROTECTED] wrote: > On Mar 26, 10:51 am, "jp" <[EMAIL PROTECTED]> wrote: > > > I have multiple PMW widgets (EntryFields, ScrolledField etc), how can > > I skip over these widgets when using the tab key? > > > Thank you, > > John > > I would probably write some custom eve

Re: PMW widget - skip tabbing to it

2007-03-26 Thread kyosohma
On Mar 26, 11:17 am, [EMAIL PROTECTED] wrote: > On Mar 26, 10:51 am, "jp" <[EMAIL PROTECTED]> wrote: > > > I have multiple PMW widgets (EntryFields, ScrolledField etc), how can > > I skip over these widgets when using the tab key? > > > Thank you, > > John > > I would probably write some custom eve

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Robert Kern
Alex Martelli wrote: > [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >... >>> So I'ld suggest to start with downloading the Enthought edition of Python, >>> and you can judge for yourself within 10 minutes, >>> if it's fast enough. >>> >>> cheers, >>> Stef Mientki >> Is there a mac version?? >

Re: PMW widget - skip tabbing to it

2007-03-26 Thread kyosohma
On Mar 26, 10:51 am, "jp" <[EMAIL PROTECTED]> wrote: > I have multiple PMW widgets (EntryFields, ScrolledField etc), how can > I skip over these widgets when using the tab key? > > Thank you, > John I would probably write some custom event handling. Something that could tell it was a key-press eve

Re: functions, classes, bound, unbound?

2007-03-26 Thread 7stud
On Mar 25, 3:09 pm, Steven Bethard <[EMAIL PROTECTED]> wrote: > Here's another way of looking at it:: > > >>> class Test(object): > ... pass > ... > >>> def greet(): > ... print 'Hello' > ... >>> Test.greet = greet >>> Test.greet > Interesting. After playi

Re: Python object overhead?

2007-03-26 Thread Bruno Desthuilliers
Matt Garman a écrit : (snip) > Also, many folks have suggested operating on only one line at a time > (i.e. not storing the whole data set). Unfortunately, I'm constantly > "looking" forward and backward in the record set while I process the > data (i.e., to process any particular record, I someti

Re: How to find to HTML strings and 'save' them?

2007-03-26 Thread Max Erickson
John Nagle <[EMAIL PROTECTED]> wrote: > htags = soup.findAll({'h2':True, 'H2' : True}) # get all H2 tags, > both cases Have you been bitten by this? When I read this, I was operating under the assumption that BeautifulSoup wasn't case sensitive, and then I tried this: >>> import BeautifulSoup

Re: Kill thread or at least socket.getaddrinfo

2007-03-26 Thread kyosohma
On Mar 26, 10:53 am, Thomas Dybdahl Ahle <[EMAIL PROTECTED]> wrote: > Hi, I'm writing an application that connects to the internet. > Something like this: > > for res in socket.getaddrinfo(host, port, 0, socket.SOCK_STREAM): > af, socktype, proto, canonname, sa = res > try: > self.s

  1   2   >