Pydev 1.3.1 Released

2007-03-27 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:

Elixir 0.3.0 released!

2007-03-27 Thread Gaetan de Menten
We are pleased to announce that version 0.3.0 of Elixir is now available. As always, feedback is very welcome, preferably on Elixir mailing list. Highlights for this release - - Added support for autoloading/reflecting databases with has_and_belongs_to_many

python-cjson 1.0.3x2 released

2007-03-27 Thread Ferenczi Viktor
This is an enhanced version of python-cjson, the fast JSON encoder/decoder. Qiangning Hong submitted a patch to fix segfault with Python 2.5 on 64 bit platforms. Version python-cjson 1.0.3x2 released to incorporate this patch. It's numbered 1.0.3x, where x stands for eXtension. The main

ANN: python-ldap-2.3.0

2007-03-27 Thread Michael Ströder
Find a new release of python-ldap: http://python-ldap.sourceforge.net/ python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related stuff (e.g.

Re: with timeout(...):

2007-03-27 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() if exceeded:

Re: shutil.copy Problem

2007-03-27 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: PDB does not allow jumping to first statement?

2007-03-27 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 line number command. I experience the same behavior with Winpdb and rpdb2.

Nice plug for Python

2007-03-27 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

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

2007-03-27 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,

Re: PDB does not allow jumping to first statement?

2007-03-27 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 line number command. I experience the same behavior

Re: with timeout(...):

2007-03-27 Thread Nick Craig-Wood
Klaas [EMAIL PROTECTED] wrote: 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()

Re: with timeout(...):

2007-03-27 Thread Nick Craig-Wood
Hendrik van Rooyen [EMAIL PROTECTED] wrote: so Diez is probably right that the way to go is to put the timer in the python interpreter loop, as its the only thing around that you could more or less trust to run all the time. But then it will not read as nice as Nick's wish, but more

Re: fetch html page via isa proxy

2007-03-27 Thread Radek
So you have already tried NTLM Authorization Proxy Server?http://ntlmaps.sourceforge.net/ This used to work fine for me but that was at least 3-4 years ago. Actually NTLM proxy server works for most intranet addresses. Not for the outside Internet ones, though. Radek --

SPE question

2007-03-27 Thread alain
Hi, Could someone tell me how to uninstall SPE under windows? Alain -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter Toplevel geometry

2007-03-27 Thread Chris
A TRULY good way to show your thanks for help like this is to write up what you learned at theTkinterWiki URL:http://tkinter.unpythonic.net/wiki/. Note: A. You have to log in to edit pages on this particular Wiki. If you decide to join us, then, you'll first need to create

Re: __init__.py

2007-03-27 Thread Jorgen Grahn
On Mon, 26 Mar 2007 08:27:19 +0200, Tina I [EMAIL PROTECTED] wrote: Tina I wrote: When looking at other peoples code (to learn from it) I keep seeing an empty file named __init__.py. What's the purpose of this? Thanks Tina Duh! Never mind... found it. Kinda neat actually :) /What/ was

Re: __init__.py

2007-03-27 Thread Steve Holden
Jorgen Grahn wrote: On Mon, 26 Mar 2007 08:27:19 +0200, Tina I [EMAIL PROTECTED] wrote: Tina I wrote: When looking at other peoples code (to learn from it) I keep seeing an empty file named __init__.py. What's the purpose of this? Thanks Tina Duh! Never mind... found it. Kinda neat

plot dendrogram with python

2007-03-27 Thread Frank
Hi, does anyone know if there is a way to plot a dendrogram with python. Pylab or matplotlib do not provide such a function. Thanks! Frank -- http://mail.python.org/mailman/listinfo/python-list

Re: PDB does not allow jumping to first statement?

2007-03-27 Thread Duncan Booth
Peter Otten [EMAIL PROTECTED] wrote: Which version of Python, and what happens when you try it? It works fine for me with Python 2.5 on Windows: C:\Temp\python25\python -m pdb t.py c:\temp\t.py(3)module() - a = 1 (Pdb) s c:\temp\t.py(4)module() - b = 2 (Pdb) j 3

Re: PDB does not allow jumping to first statement?

2007-03-27 Thread [EMAIL PROTECTED]
On Mar 26, 6:06 pm, Chris Lasher [EMAIL PROTECTED] wrote: Hi all, I have a simple script: --- #!/usr/bin/envpython a = 1 b = 2 c = a + b print c --- I launch said script withpdb: python-mpdbsimple.py I noticed that I absolutely cannot jump back to the first statement (line 3,

Re: Sending ECHO_REQUEST (pinging) with python

2007-03-27 Thread Jorgen Grahn
On Mon, 26 Mar 2007 16:50:09 +0200, Thomas Dybdahl Ahle [EMAIL PROTECTED] wrote: Den Mon, 26 Mar 2007 11:24:34 +0200 skrev Michal 'vorner' Vaner: On Mon, Mar 26, 2007 at 08:30:16AM +0200, Thomas Dybdahl Ahle wrote: Do anybody know how to do this in python? You need root for that and the

tkinter popup

2007-03-27 Thread Gigs_
Hi all I cant figure out how to disable resizing of my popup window? How to put this popup window to show in the middle of my text editor? It is writen with Toplevel. thx -- http://mail.python.org/mailman/listinfo/python-list

sys.excepthook and threads

2007-03-27 Thread ian
Hi, sys.excepthook don't work if an exception come in a thread... It's normal or its a bug ? There are any tip ? look here : http://spyced.blogspot.com/2005_06_01_archive.html Thx -- http://mail.python.org/mailman/listinfo/python-list

Re: SPE question

2007-03-27 Thread Dick Moores
At 01:39 AM 3/27/2007, alain wrote: Hi, Could someone tell me how to uninstall SPE under windows? Well, mine is in E:\Python25\Lib\site-packages\_spe, so I'd try deleting that folder. Dick Moores -- http://mail.python.org/mailman/listinfo/python-list

Re: SPE question

2007-03-27 Thread irstas
On Mar 27, 11:39 am, alain [EMAIL PROTECTED] wrote: Hi, Could someone tell me how to uninstall SPE under windows? Alain Dunno about SPE, but most Python modules I've installed can be uninstalled from control panel/add remove programs. -- http://mail.python.org/mailman/listinfo/python-list

Re: SPE question

2007-03-27 Thread Dick Moores
At 03:37 AM 3/27/2007, [EMAIL PROTECTED] wrote: On Mar 27, 11:39 am, alain [EMAIL PROTECTED] wrote: Hi, Could someone tell me how to uninstall SPE under windows? Alain Dunno about SPE, but most Python modules I've installed can be uninstalled from control panel/add remove programs. SPE

tkinter MVC

2007-03-27 Thread Gigs_
Can someone give me example how to write text editor in tkintter with model-view-controler? What goes to controler and what goes to model? thanks in advance -- http://mail.python.org/mailman/listinfo/python-list

Re: plot dendrogram with python

2007-03-27 Thread bearophileHUGS
Frank: does anyone know if there is a way to plot a dendrogram with python. Pylab or matplotlib do not provide such a function. An ASCII solution: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/139422 Some graphics: http://plone.org/products/phylogenetictree

Re: plot dendrogram with python

2007-03-27 Thread martin . laloux
I use pycluster http://bonsai.ims.u-tokyo.ac.jp/~mdehoon/software/cluster/software.htm#pycluster -- http://mail.python.org/mailman/listinfo/python-list

pygtk button event

2007-03-27 Thread [EMAIL PROTECTED]
Hi i am trying to implement the following: I want to be able to press a button, perform a task and return a value. my button is named button1 and I used glade to build the gui. so, something like this should work application=gtk.glade.XML('app.glade','app')

Re: SPE question

2007-03-27 Thread [EMAIL PROTECTED]
I believe that just deleting the folders should work Dick Moores wrote: At 03:37 AM 3/27/2007, [EMAIL PROTECTED] wrote: On Mar 27, 11:39 am, alain [EMAIL PROTECTED] wrote: Hi, Could someone tell me how to uninstall SPE under windows? Alain Dunno about SPE, but most Python

correction : Re: pygtk button event

2007-03-27 Thread [EMAIL PROTECTED]
Oups a small mistake: bt=application.get_widget('button1') [EMAIL PROTECTED] wrote: Hi i am trying to implement the following: I want to be able to press a button, perform a task and return a value. my button is named button1 and I used glade to build the gui. so, something like

Re: tkinter popup

2007-03-27 Thread Eric Brunel
On Tue, 27 Mar 2007 12:05:07 +0200, Gigs_ [EMAIL PROTECTED] wrote: Hi all I cant figure out how to disable resizing of my popup window? myPopupWindow.wm_resizable(0, 0) It may or may not make resize controls disappear depending on your platform and/or window manager. But the resizing will

Re: Fortran vs Python - Newbie Question

2007-03-27 Thread Cameron Laird
In article [EMAIL PROTECTED], Beliavsky [EMAIL PROTECTED] wrote: . . . Your experience with Fortran is dated -- see below. I'll be more clear: Fortran itself is a distinguished language with many meritorious

Re: tkinter MVC

2007-03-27 Thread Eric Brunel
On Tue, 27 Mar 2007 13:29:25 +0200, Gigs_ [EMAIL PROTECTED] wrote: Can someone give me example how to write text editor in tkintter with model-view-controler? What goes to controler and what goes to model? thanks in advance Others may have a different opinion, but I think using MVC to do

Re: shutil.copy Problem

2007-03-27 Thread Facundo Batista
David Nicolson wrote: 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. The best you can do is take the piece of code that has

Re: PMW widget - skip tabbing to it

2007-03-27 Thread jp
On Mar 26, 5:41 pm, John McMonagle [EMAIL PROTECTED] wrote: 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

Python Error :(

2007-03-27 Thread Legend
I wasn't able to run a Python script. But then later I was able to run it through the Shell. I was experimenting with cron jobs and set up the python execution in as a cron. The first time it ran, It was fine but then after that, it started giving me some errors. Now when I try to run the script

Re: tkinter popup

2007-03-27 Thread Gigs_
Eric Brunel wrote: On Tue, 27 Mar 2007 12:05:07 +0200, Gigs_ [EMAIL PROTECTED] wrote: Hi all I cant figure out how to disable resizing of my popup window? myPopupWindow.wm_resizable(0, 0) It may or may not make resize controls disappear depending on your platform and/or window

Re: Mastering Python

2007-03-27 Thread Bruno Desthuilliers
Dennis Lee Bieber a écrit : On Wed, 21 Mar 2007 21:40:51 +0100, Bruno Desthuilliers [EMAIL PROTECTED] declaimed the following in comp.lang.python: It will actually do something: rebind name 'a' to the method lower() of the string previously binded to 'a' For future reference, and I

socket read timeout

2007-03-27 Thread hg
Hi, I am looking for the most efficient / cleanest way to implement a socket read with timeout (Windows mainly but would be great if the same code worked under *nix) Tanks, hg -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Error :(

2007-03-27 Thread Jarek Zgoda
Legend napisał(a): I wasn't able to run a Python script. But then later I was able to run it through the Shell. I was experimenting with cron jobs and set up the python execution in as a cron. The first time it ran, It was fine but then after that, it started giving me some errors. Now when I

Re: socket read timeout

2007-03-27 Thread Jarek Zgoda
hg napisał(a): I am looking for the most efficient / cleanest way to implement a socket read with timeout (Windows mainly but would be great if the same code worked under *nix) Did you see http://www.timo-tasi.org/python/timeoutsocket.py ? -- Jarek Zgoda We read Knuth so you don't have to.

Modules positive surprises

2007-03-27 Thread Jan Danielsson
Hello all, IMHO Although I have encountered many modules that have impressed me with regards to what they can actually do -- too be perfectly honest, it's very rare that I become impressed by the _interfaces_ to the modules. Using a new module is normally, with my - admittedly - limited

Re: Modules positive surprises

2007-03-27 Thread kyosohma
On Mar 27, 8:30 am, Jan Danielsson [EMAIL PROTECTED] wrote: Hello all, IMHO Although I have encountered many modules that have impressed me with regards to what they can actually do -- too be perfectly honest, it's very rare that I become impressed by the _interfaces_ to the modules.

Re: socket read timeout

2007-03-27 Thread Steve Holden
Jarek Zgoda wrote: hg napisał(a): I am looking for the most efficient / cleanest way to implement a socket read with timeout (Windows mainly but would be great if the same code worked under *nix) Did you see http://www.timo-tasi.org/python/timeoutsocket.py ? Note that since 2.4, I

Re: Python Error :(

2007-03-27 Thread kyosohma
On Mar 27, 8:19 am, Legend [EMAIL PROTECTED] wrote: I wasn't able to run a Python script. But then later I was able to run it through the Shell. I was experimenting with cron jobs and set up the python execution in as a cron. The first time it ran, It was fine but then after that, it started

Re: enumerating processes

2007-03-27 Thread kyosohma
On Mar 27, 12:15 am, Shane Geiger [EMAIL PROTECTED] wrote: 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

Use threads or Tkinter event loop?

2007-03-27 Thread Kevin Walzer
I'm trying to decide whether I need threads in my Tkinter application or not. My app is a front end to a command-line tool; it feeds commands to the command-line program, then reads its output and displays it in a Tkinter text widget. Some of the commands are long-running and/or return

Re: Use threads or Tkinter event loop?

2007-03-27 Thread Kevin Walzer
Kevin Walzer wrote: I'm trying to decide whether I need threads in my Tkinter application or not. My app is a front end to a command-line tool; it feeds commands to the command-line program, then reads its output and displays it in a Tkinter text widget. Some of the commands are

Type allocation in extensions

2007-03-27 Thread Nicholas Milkovits
Hi everyone, I've been reading through the documentation on extending and embedding python and the C API and I have a question about how allocation occurs of one type from another type. For example lets so I make to C module foo.c and bar.c and each has a python type. If I want to define a

Re: Use threads or Tkinter event loop?

2007-03-27 Thread kyosohma
On Mar 27, 9:07 am, Kevin Walzer [EMAIL PROTECTED] wrote: Kevin Walzer wrote: I'm trying to decide whether I need threads in my Tkinter application or not. My app is a front end to a command-line tool; it feeds commands to the command-line program, then reads its output and displays it in a

Re: Fortran vs Python - Newbie Question

2007-03-27 Thread Mark Morss
On Mar 26, 12:59 pm, 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 Python is a tad

Help in Placing Object in Memory

2007-03-27 Thread Clement
I am newbie to Python.. i want to know something.. can i place an object in disk instead of placing in Main Memory...? If possible, can you please explain with some scripts...? can two python script share a common object? -- http://mail.python.org/mailman/listinfo/python-list

Re: socket read timeout

2007-03-27 Thread skip
I am looking for the most efficient / cleanest way to implement a socket read with timeout (Windows mainly but would be great if the same code worked under *nix) Jarek Did you see http://www.timo-tasi.org/python/timeoutsocket.py ? Also socket objects have timeout attributes

Re: Help in Placing Object in Memory

2007-03-27 Thread Diez B. Roggisch
Clement wrote: I am newbie to Python.. i want to know something.. can i place an object in disk instead of placing in Main Memory...? If possible, can you please explain with some scripts...? See the module pickle and it's examples. can two python script share a common

Please help!! SAXParseException: not well-formed (invalid token)

2007-03-27 Thread jvictor118
I've been using the xml.sax.handler module to do event-driven parsing of XML files in this python application I'm working on. However, I keep having really pesky invalid token exceptions. Initially, I was only getting them on control characters, and a little sed -e 's/ [^[:print:]]/ /g' $1; took

pattern search

2007-03-27 Thread Fabian Braennstroem
Hi, I wrote a small gtk file manager, which works pretty well. Until now, I am able to select different file (treeview entries) just by extension (done with 'endswith'). See the little part below: self.pathlist1=[ ] self.patternlist=[ ] while iter:

Re: about second parameter of signal handler func.

2007-03-27 Thread Gabriel Genellina
En Tue, 27 Mar 2007 02:34:48 -0300, Bjoern Schliessmann [EMAIL PROTECTED] escribió: 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?

Re: exit to interpreter?

2007-03-27 Thread Steven W. Orr
On Friday, Mar 23rd 2007 at 10:52 -0700, quoth belinda thom: =I'm writing a function that polls the user for keyboard input, =looping until it has determined that the user has entered a valid =string of characters, in which case it returns that string so it can =be processed up the call

Re: Please help!! SAXParseException: not well-formed (invalid token)

2007-03-27 Thread kyosohma
On Mar 27, 9:59 am, [EMAIL PROTECTED] wrote: I've been using the xml.sax.handler module to do event-driven parsing of XML files in this python application I'm working on. However, I keep having really pesky invalid token exceptions. Initially, I was only getting them on control characters, and

Re: Please help!! SAXParseException: not well-formed (invalid token)

2007-03-27 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: I've been using the xml.sax.handler module to do event-driven parsing of XML files in this python application I'm working on. However, I keep having really pesky invalid token exceptions. Initially, I was only getting them on control characters, and a little sed -e

Re: pattern search

2007-03-27 Thread Diez B. Roggisch
Fabian Braennstroem wrote: Hi, I wrote a small gtk file manager, which works pretty well. Until now, I am able to select different file (treeview entries) just by extension (done with 'endswith'). See the little part below: self.pathlist1=[ ]

Re: SPE question

2007-03-27 Thread SPE - Stani's Python Editor
On 27 Mrz., 14:01, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I believe that just deleting the folders should work No, never delete the folder if you used the windows installer (*.exe)! Go to your control panelAdd/Remove Programs and there should be an entry python*-spe* with an uninstall

Re: pattern search

2007-03-27 Thread Wojciech Muła
Fabian Braennstroem wrote: Now, I would like to improve it by searching for different 'real' patterns just like using 'ls' in bash. E.g. the entry 'car*.pdf' should select all pdf files with a beginning 'car'. Does anyone have an idea, how to do it? Use module glob. --

Re: Help in Placing Object in Memory

2007-03-27 Thread Michael L Torrie
On Tue, 2007-03-27 at 16:49 +0200, Diez B. Roggisch wrote: can two python script share a common object? What do you mean by that? They can both load a pickled object, yes. But they can't share it as a at-runtime object, where changes in one script are immediately are known to the other.

Re: Help in Placing Object in Memory

2007-03-27 Thread Erik Johnson
Diez B. Roggisch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] What do you mean by that? They can both load a pickled object, yes. But they can't share it as a at-runtime object, where changes in one script are immediately are known to the other. To do such a thing, look at

Re: exit to interpreter?

2007-03-27 Thread jay graves
On Mar 23, 12:52 pm, belinda thom [EMAIL PROTECTED] wrote: be processed up the call stack. My problem is this. I'd also like it to handle a special string (e.g. 'quit'), in which case control should return to the Python command line as opposed to returning the string up the call stack. Maybe

Re: Zip file writing progress (callback proc)

2007-03-27 Thread Larry Bates
durumdara wrote: Hi! I want to check my zip file writings. I need some callback procedure to show a progress bar. Can I do that? I don't want to modify the PyLib module to extend it, because if I get another py, the changes are lost. This happening too if I copy the zip module to modify

Re: shutil.copy Problem

2007-03-27 Thread John Nagle
Facundo Batista wrote: David Nicolson wrote: 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. The best you can do is take

Numeric Soup

2007-03-27 Thread Erik Johnson
I am just starting to explore doing some scientific type data analysis using Python, and am a little confused by the different incarnations of modules (e.g., try Google(Python numeric). There is SciPy, NumPy, NumArray, Numeric... I know some of these are related and some are separate,

Re: enumerating processes

2007-03-27 Thread Shane Geiger
I believe you are looking for os.getpid() I apologize for providing that bit of incorrect info. It looks to me as if Python 1.5 had os.process which might have done what you wanted (although perhaps not in an OS-independent way). I wonder why there isn't an OS-independent way to do that in

Re: Help in Placing Object in Memory

2007-03-27 Thread Bruno Desthuilliers
Clement a écrit : I am newbie to Python.. To Python only, or to both Python and programming in general ? i want to know something.. can i place an object in disk instead of placing in Main Memory...? You can store it on disk (cf pickles and friends), but to actually use it

Re: Fortran vs Python - Newbie Question

2007-03-27 Thread Jaap Spies
Mark Morss wrote: Maybe somebody reading this will be able to convince me to look again at Numpy/Scipy, but for the time being I will continue to do my serious numerical computation in Fortran. What I am missing in this discussion is a link to Pyrex to speed up Python: Pyrex is almost

Auto execute python in USB flash disk

2007-03-27 Thread Brian Erhard
I am still fairly new to python and wanted to attempt a home made password protection program. There are files that I carry on a USB flash drive that I would like to password protect. Essentially, I would like to password protect an entire directory of files. Is there a way to auto execute a

Re: Please help!! SAXParseException: not well-formed (invalid token)

2007-03-27 Thread jvictor118
I checked the file format (of the file containing the n-tilde - ñ) and it is indeed UTF-8! I'm baffled! Any ideas? Thanks, Jason On Mar 27, 11:16 am, Diez B. Roggisch [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: I've been using the xml.sax.handler module to do event-driven parsing of

Re: Numeric Soup

2007-03-27 Thread Robert Kern
Erik Johnson wrote: I am just starting to explore doing some scientific type data analysis using Python, and am a little confused by the different incarnations of modules (e.g., try Google(Python numeric). There is SciPy, NumPy, NumArray, Numeric... I know some of these are related

Re: Auto execute python in USB flash disk

2007-03-27 Thread Ene
On Mar 27, 9:56 am, Brian Erhard [EMAIL PROTECTED] wrote: I am still fairly new to python and wanted to attempt a home made password protection program. There are files that I carry on a USB flash drive that I would like to password protect. Essentially, I would like to password protect an

Re: Auto execute python in USB flash disk

2007-03-27 Thread kyosohma
On Mar 27, 11:56 am, Brian Erhard [EMAIL PROTECTED] wrote: I am still fairly new to python and wanted to attempt a home made password protection program. There are files that I carry on a USB flash drive that I would like to password protect. Essentially, I would like to password protect an

Re: Numeric Soup

2007-03-27 Thread Ene
On Mar 27, 9:49 am, Erik Johnson [EMAIL PROTECTED] wrote: I am just starting to explore doing some scientific type data analysis using Python, and am a little confused by the different incarnations of modules (e.g., try Google(Python numeric). There is SciPy, NumPy, NumArray,

Re: Numeric Soup

2007-03-27 Thread Robert Kern
Ene wrote: As it stands Matplotlib does not support numpy (thus my suggestion to install two of the three - my choice: numarray + numpy) matplotlib certainly supports numpy. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by

Re: Auto execute python in USB flash disk

2007-03-27 Thread Tim Golden
Brian Erhard wrote: Is there a way to auto execute a python script after a user double clicks to open a folder on the USB drive? How can you capture that double click event on a specific folder? That would depend on what desktop / Operating System you're using. If it's Windows, you need a

Handling exception thrown by Boost.Python c-extension in Python code

2007-03-27 Thread MarkE
I'm just getting started on Boost Python and may have missed this obvious looking problem somewhere. Given a c-extension testext written using Boost Python containing a base class Base, a derived class Derived, and a function doSomething which expects a Derived parameter, if I pass it a Base

Re: Help in Placing Object in Memory

2007-03-27 Thread [EMAIL PROTECTED]
On Mar 27, 10:33 am, Clement [EMAIL PROTECTED] wrote: I am newbie to Python.. i want to know something.. can i place an object in disk instead of placing in Main Memory...? If possible, can you please explain with some scripts...? can two python script share a common object?

How can I catch all exception in python?

2007-03-27 Thread [EMAIL PROTECTED]
I read the document here about exception handling in python: http://www.diveintopython.org/file_handling/index.html Can you please tell me how can I catch all exception in python? like this in Java: try { } catch (Throwable t) { ... } --

Re: pattern search

2007-03-27 Thread Fabian Braennstroem
Hi to all, Wojciech Mu?a schrieb am 03/27/2007 03:34 PM: Fabian Braennstroem wrote: Now, I would like to improve it by searching for different 'real' patterns just like using 'ls' in bash. E.g. the entry 'car*.pdf' should select all pdf files with a beginning 'car'. Does anyone have an idea,

Re: Fortran vs Python - Newbie Question

2007-03-27 Thread Mark Morss
On Mar 27, 12:55 pm, Jaap Spies [EMAIL PROTECTED] wrote: Mark Morss wrote: Maybe somebody reading this will be able to convince me to look again at Numpy/Scipy, but for the time being I will continue to do my serious numerical computation in Fortran. What I am missing in this discussion

Re: Fortran vs Python - Newbie Question

2007-03-27 Thread Erik Johnson
Steven D'Aprano [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 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 files stands for? Cheese? On the contrary... Sun is very careful to make

Re: How can I catch all exception in python?

2007-03-27 Thread kyosohma
On Mar 27, 1:09 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I read the document here about exception handling in python: http://www.diveintopython.org/file_handling/index.html Can you please tell me how can I catch all exception in python? like this in Java: try { } catch

16bit RGB with Image module

2007-03-27 Thread Jason B
Hi all, I'm still new to all of this, but I'm trying to do something here that *seems* like it should be pretty simple. All I want to do is take an array of pixel data from a file (no header data or anything, just pixel data) in RGB565 format and save it off to a bitmap file - or display it,

Re: How can I catch all exception in python?

2007-03-27 Thread Gabriel Genellina
En Tue, 27 Mar 2007 15:09:18 -0300, [EMAIL PROTECTED] [EMAIL PROTECTED] escribió: I read the document here about exception handling in python: http://www.diveintopython.org/file_handling/index.html Can you please tell me how can I catch all exception in python? like this in Java: try {

Re: 16bit RGB with Image module

2007-03-27 Thread Jason B
Well I kept screwing around and funny thing, this works: import sys, Image if len(sys.argv) == 2: print \nReading: +sys.argv[1] image_file = open(sys.argv[1], rb) pixel_data = image_file.read() im = Image.fromstring(RGB, (326, 325), pixel_data, raw, BGR;16) im.show() Although I have no

Re: Help in Placing Object in Memory

2007-03-27 Thread Harry George
Clement [EMAIL PROTECTED] writes: I am newbie to Python.. i want to know something.. can i place an object in disk instead of placing in Main Memory...? If possible, can you please explain with some scripts...? can two python script share a common object? For the CPU

Re: How can I catch all exception in python?

2007-03-27 Thread irstas
On Mar 27, 9:15 pm, [EMAIL PROTECTED] wrote: Technically speaking, you can catch all errors as follows: try: # do something except Exception, e: print e That won't catch exceptions/errors that don't derive from Exception class. For example a string won't be caught: try: raise foo

Re: Numeric Soup

2007-03-27 Thread Erik Johnson
Robert Kern [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] http://www.scipy.org/History_of_SciPy numpy is the current array package and supercedes Numeric and numarray. scipy provides a bunch of computational routines (linear algebra, optimization, statistics, signal processing,

Extending a class on runtime

2007-03-27 Thread rdaunoravicius
Hi, Let's say you have a bunch of instatiated objects of the same class on your hands and you want to had some functionality to them. I'm facing this situation while working with PyGTK and libglade to create a GUI. Libglade creates a whole object tree representing the GUI out of an XML file, and

Re: pattern search

2007-03-27 Thread Paul McGuire
On Mar 27, 10:18 am, Diez B. Roggisch [EMAIL PROTECTED] wrote: Fabian Braennstroem wrote: Hi, I wrote a small gtk file manager, which works pretty well. Until now, I am able to select different file (treeview entries) just by extension (done with 'endswith'). See the little part below:

Re: pattern search

2007-03-27 Thread Paul McGuire
On Mar 27, 3:13 pm, Fabian Braennstroem [EMAIL PROTECTED] wrote: Hi to all, Wojciech Mu?a schrieb am 03/27/2007 03:34 PM: Fabian Braennstroem wrote: Now, I would like to improve it by searching for different 'real' patterns just like using 'ls' in bash. E.g. the entry 'car*.pdf' should

Re: 16bit RGB with Image module

2007-03-27 Thread Will McGugan
Jason B wrote: Well I kept screwing around and funny thing, this works: import sys, Image if len(sys.argv) == 2: print \nReading: +sys.argv[1] image_file = open(sys.argv[1], rb) pixel_data = image_file.read() im = Image.fromstring(RGB, (326, 325), pixel_data, raw, BGR;16)

urllib timeout issues

2007-03-27 Thread supercooper
I am downloading images using the script below. Sometimes it will go for 10 mins, sometimes 2 hours before timing out with the following error: Traceback (most recent call last): File ftp_20070326_Downloads_cooperc_FetchLibreMapProjectDRGs.py, line 108, i n ? urllib.urlretrieve(fullurl,

  1   2   >