Re: Best IDE?

2006-10-13 Thread limodou
On 10/13/06, Theerasak Photha [EMAIL PROTECTED] wrote: On 13 Oct 2006 07:37:07 -0700, Bernard [EMAIL PROTECTED] wrote: IDE : SPE (Stani's python editor) : http://stani.be/python/spe/blog/ Why?: because this IDE is not complicated. it ships with a debugger, a gui designer, a source code

Re: Starting out.

2006-10-13 Thread Andrew Poelstra
On Fri, 2006-10-13 at 07:26 -0700, Ahmer wrote: From what I can see Python and PHP have VERY simillar syntax (sorry if I offended anyone but I am a n00b.) Two things: 1) Don't toppost. Your response should go after or interspersed with your quote, not above it. 2) You may be thinking of Perl,

Re: Line algorithim for python and numeric

2006-10-13 Thread Paul McGuire
Theerasak Photha [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 13 Oct 2006 07:33:17 -0700, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi everyone, I'm wondering if anyone knows of a way to extract data from a numeric array along a line. I have a gridded dataset which I

Re: Starting out.

2006-10-13 Thread Grant Edwards
On 2006-10-13, Andrew Poelstra [EMAIL PROTECTED] wrote: On Fri, 2006-10-13 at 07:26 -0700, Ahmer wrote: From what I can see Python and PHP have VERY simillar syntax (sorry if I offended anyone but I am a n00b.) 2) You may be thinking of Perl, which has a very similar syntax to PHP. Perl has

Re: Line algorithim for python and numeric

2006-10-13 Thread Paul McGuire
Tim Chase [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm wondering if anyone knows of a way to extract data from a numeric array along a line. I have a gridded dataset which I would like to be able to choose two points and extract a 1-d array of the data values along the line

Re: Loops Control with Python

2006-10-13 Thread Jon Clements
Wijaya Edward wrote: Can we make loops control in Python? What I mean is that whether we can control which loops to exit/skip at the given scope. For example in Perl we can do something like: OUT: foreach my $s1 ( 0 ...100) { IN: foreach my $s2 (@array) { if ($s1 ==

Re: Converting MSWord Docs to PDF

2006-10-13 Thread Theerasak Photha
On 10/13/06, Grant Edwards [EMAIL PROTECTED] wrote: That's how the various free PDF printer drivers for Windows work. It might not even need Python. Not unless you're trying to automate the process somehow. Even a quick, crappy language like bash would do. -- Theerasak --

Re: Line algorithim for python and numeric

2006-10-13 Thread Paul McGuire
Paul McGuire [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Tim Chase [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm wondering if anyone knows of a way to extract data from a numeric array along a line. I have a gridded dataset which I would like to be able to

where to put .pth file

2006-10-13 Thread Jim
I am trying to tell Python where it can find some modules it will need when embedded in my app. The convenient way would be to plop a .pth file somewhere Python can find it. I found that the doc is wrong when it says this kind of filecan go anywhere on the python path. It is not found if it

building extensions for Windows Python

2006-10-13 Thread JW
I have a lousy little Python extension, generated with the generous help of Pyrex. In Linux, things are simple. I compile the extension, link it against some C stuff, and *poof*! everything works. My employer wants me to create a Windows version of my extension that works with the vanilla

Re: Best IDE?

2006-10-13 Thread Bruno Desthuilliers
Ahmer wrote: = Re: Best IDE? Strange enough, this is kind of a *very* frequently asked question... -- bruno desthuilliers python -c print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for p in '[EMAIL PROTECTED]'.split('@')]) -- http://mail.python.org/mailman/listinfo/python-list

Re: ConfigParser: whitespace leading comment lines

2006-10-13 Thread Fulvio
*** Your mail has been scanned by InterScan MSS. *** On Friday 13 October 2006 04:13, [EMAIL PROTECTED] wrote: I'd like to propose the following change to ConfigParser.py. IMO there's a reason that left it in such way. Whom didn't like the ConfigParser

IDE

2006-10-13 Thread giuseppe
What is the better IDE software for python programming? many thanks joe -- http://mail.python.org/mailman/listinfo/python-list

Re: Loops Control with Python

2006-10-13 Thread Scott David Daniels
Wijaya Edward wrote: Can we make loops control in Python? What I mean is that whether we can control which loops to exit/skip at the given scope. For example in Perl we can do something like: OUT: foreach my $s1 ( 0 ...100) { IN: foreach my $s2 (@array) { if

Re: Line algorithim for python and numeric

2006-10-13 Thread Theerasak Photha
On 10/13/06, Paul McGuire [EMAIL PROTECTED] wrote: Theerasak Photha [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 13 Oct 2006 07:33:17 -0700, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi everyone, I'm wondering if anyone knows of a way to extract data from a numeric

Re: IDE

2006-10-13 Thread Theerasak Photha
On 10/13/06, giuseppe [EMAIL PROTECTED] wrote: What is the better IDE software for python programming? Long story short, I use Emacs 22 from CVS (text editor on steroids), but SPE looks like a good bet. It all depends on criteria! There's a million free variables in your request... ---

Re: SOAPpy and callback

2006-10-13 Thread Diez B. Roggisch
Paul McGuire schrieb: Diez B. Roggisch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [EMAIL PROTECTED] schrieb: Hello, I'm trying to find how to use a callback in a SOAP client using SOAPpy. Does SOAPpy have to manage it, or does Python include some API to do it? I've never

Re: IDE

2006-10-13 Thread giuseppe
for example I ask wingware python IDE is good? other program similar is better? joe Theerasak Photha [EMAIL PROTECTED] ha scritto nel messaggio news:[EMAIL PROTECTED] On 10/13/06, giuseppe [EMAIL PROTECTED] wrote: What is the better IDE software for python programming? Long story short, I

Re: Line algorithim for python and numeric

2006-10-13 Thread Fredrik Lundh
Theerasak Photha wrote: I'm not in kolluge yet and I just learned about linear interpolation today---although I don't think it would necessarily apply to this problem, where the increments set by the grid might be more discrete than the line itself that's usually solved by stepping along the

Where can I find good python code?

2006-10-13 Thread js
Hi, I've learned basics of Python and want to go to the next step. So I'm looking for good python examples I steal good techniques from. I found Python distribution itself contains some examples in Demo directory. I spent some time to read them and I think they're good but seemed not so

Re: Loops Control with Python

2006-10-13 Thread Paddy
Wijaya Edward wrote: Can we make loops control in Python? What I mean is that whether we can control which loops to exit/skip at the given scope. For example in Perl we can do something like: OUT: foreach my $s1 ( 0 ...100) { IN: foreach my $s2 (@array) { if ($s1 ==

Re: Big speed boost in os.walk in Python 2.5

2006-10-13 Thread Fredrik Lundh
looping wrote: Results on Windows XP after some run to fill the disk cache (with ~59000 files and ~3500 folders): Python 2.4.3 : 45s Python 2.5 : 10s Very nice, but somewhat strange... Is Python 2.4.3 os.walk buggy ??? No. A few os function are now implemented in terms of Windows API:s,

Re: Appropriate way to quit Tkinter

2006-10-13 Thread Fredrik Lundh
mzdude wrote: works for me. are you perhaps running this under some kind of IDE that keeps the process running even after the program has terminated? It works the same way if I run from IDLE or from the DOS command prompt. I find very hard to believe that a Python interpreter run from the

Re: Where can I find good python code?

2006-10-13 Thread hg
js wrote: Hi, I've learned basics of Python and want to go to the next step. So I'm looking for good python examples I steal good techniques from. I found Python distribution itself contains some examples in Demo directory. I spent some time to read them and I think they're good but

Re: Loops Control with Python

2006-10-13 Thread hg
Paddy wrote: Wijaya Edward wrote: Can we make loops control in Python? What I mean is that whether we can control which loops to exit/skip at the given scope. For example in Perl we can do something like: OUT: foreach my $s1 ( 0 ...100) { IN: foreach my $s2 (@array) {

Re: building extensions for Windows Python

2006-10-13 Thread olsongt
JW wrote: My main problem is that I don't really grasp the big picture. Can someone give me an overview of the requirements to build extensions for Windows Python, circa 2.5? Or, can I tell my employer she'll just have to hire/contract a Windows expert to do the mud wrestling? Jim Wilson

Re: Loops Control with Python

2006-10-13 Thread Paddy
hg wrote: Paddy wrote: P.S. Welcome to Python! How about a thread on GOTOs ? ;-) I'm trying to be nice on c.l.p. - Mind you, I do have that rant as part of my blog: http://paddy3118.blogspot.com/2006/03/whats-wrong-with-perl.html ;-) - Paddy. --

Re: IDE

2006-10-13 Thread John Purser
On Fri, 2006-10-13 at 15:48 +, giuseppe wrote: What is the better IDE software for python programming? many thanks joe Joe, Find the best Python programmer and ask him/her. John Purser -- http://mail.python.org/mailman/listinfo/python-list

Re: SOAPpy and callback

2006-10-13 Thread Paul McGuire
Diez B. Roggisch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Paul McGuire schrieb: Diez B. Roggisch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [EMAIL PROTECTED] schrieb: Hello, I'm trying to find how to use a callback in a SOAP client using SOAPpy. Does

Re: sufficiently pythonic code for testing type of function

2006-10-13 Thread Scott David Daniels
Bruno Desthuilliers wrote: ... idempotent - no side effects. Nope. idempotent: f(f(x)) = f(x) That is, after doing it once, repeating it won't hurt. --Scott David Daniels [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Newbie: how to wait for callbacks...

2006-10-13 Thread Jan Bakuwel
Hoi all, I'm trying to write a little code that waits for a callback routine to be called, ideally with a timeout... I guess the code below is not right (using a boolean flag), but since I'm new to Python, I don't know yet where the semaphores live and/or whether I'm on the right track... Any

Re: Loops Control with Python

2006-10-13 Thread Steven Bethard
hg wrote: How about a thread on GOTOs ? ;-) A thread? No need! There's a module: http://entrian.com/goto/ ;-) STeVe -- http://mail.python.org/mailman/listinfo/python-list

Re: IDE

2006-10-13 Thread Jan Bakuwel
John Purser wrote: On Fri, 2006-10-13 at 15:48 +, giuseppe wrote: What is the better IDE software for python programming? many thanks joe Joe, Find the best Python programmer and ask him/her. John Purser I may be the worst Python programmer (since Python is new for me)... but

Re: Newbie: trying to twist my head around twisted (and python)

2006-10-13 Thread Jan Bakuwel
Jean-Paul Calderone wrote: The return value of eomReceived is used to determine whether to signal to the SMTP client whether the message has been accepted. Regardless of your application logic, if you are taking responsibility for the message, you should return a successful result. If all

Re: Where can I find good python code?

2006-10-13 Thread [EMAIL PROTECTED]
js wrote: Hi, I've learned basics of Python and want to go to the next step. So I'm looking for good python examples I steal good techniques from. Any recommendations? The cookbook, dead-tree version reccomended, otherwise try here: http://aspn.activestate.com/ASPN/Cookbook/Python/

Re: Best IDE?

2006-10-13 Thread William Heymann
On Friday 13 October 2006 08:29, Ahmer wrote: What do you guys use? Kdevelop 3 Why? It has good project management, good highlighting and since it is a kde app it supports ioslaves (means I can work with a resource from any location trasnparently like opening up files via sftp) What do you

IDE that uses an external editor?

2006-10-13 Thread skip
One thing that's kept me from even looking at IDEs is that to the best of my knowledge none of them will integrate properly with external editors like Emacs or vi. I know lots of tools support Emacs-like keybindings, but believe me, I've never found one that does a decent job of that. There is

Re: How can I correct an error in an old post?

2006-10-13 Thread Jorgen Grahn
On Wed, 04 Oct 2006 16:37:24 +0100, Steve Holden [EMAIL PROTECTED] wrote: Jorgen Grahn wrote: ... I think you are overreacting. This was a thread with three (3) postings, in a high-volume newsgroup, with no indication that it would continue (except maybe with a pointer to whatever posting the

Re: IDE that uses an external editor?

2006-10-13 Thread Carl Friedrich Bolz
[EMAIL PROTECTED] wrote: One thing that's kept me from even looking at IDEs is that to the best of my knowledge none of them will integrate properly with external editors like Emacs or vi. I know lots of tools support Emacs-like keybindings, but believe me, I've never found one that does a

optparse: add trailing text in help message?

2006-10-13 Thread Count László de Almásy
Is there a standard way with optparse to include a blurb of text after the usage section, description, and the list of options? This is often useful to include examples or closing comments when the help message is printed out. Many of the GNU commands do this. It would look something like this:

Re: sufficiently pythonic code for testing type of function

2006-10-13 Thread Fredrik Lundh
Scott David Daniels wrote: Nope. idempotent: f(f(x)) = f(x) That is, after doing it once, repeating it won't hurt. http://en.wikipedia.org/wiki/Idempotence_%28computer_science%29 /F -- http://mail.python.org/mailman/listinfo/python-list

Re: IDE that uses an external editor?

2006-10-13 Thread John Purser
On Fri, 2006-10-13 at 12:04 -0500, [EMAIL PROTECTED] wrote: One thing that's kept me from even looking at IDEs is that to the best of my knowledge none of them will integrate properly with external editors like Emacs or vi. I know lots of tools support Emacs-like keybindings, but believe me,

Re: Enthought python - Traits

2006-10-13 Thread Ash
Thanks Peter .. I will check out the mailing list. In the meanwhile - i have made some progress. Now working out - how to get a button_fired event to actually return the values .. It's a process (as always..) Cheers, -A Peter Wang wrote: Ash wrote: Hello everyone ! I am trying to find

Re: Best IDE?

2006-10-13 Thread Neil Cerutti
On 2006-10-13, Theerasak Photha [EMAIL PROTECTED] wrote: I use GNU Emacs 22 and a screen session. Advantages: * Comprehensive, comprehensive, comprehensive...tags support, Subversion integration, syntax highlighting, sophisticated indentation, whatever I want basically * Resource-light,

Re: Where can I find good python code?

2006-10-13 Thread Chris Lambacher
On Sat, Oct 14, 2006 at 01:08:37AM +0900, js wrote: Hi, I've learned basics of Python and want to go to the next step. So I'm looking for good python examples I steal good techniques from. I found Python distribution itself contains some examples in Demo directory. I spent some time to

Re: Appropriate way to quit Tkinter

2006-10-13 Thread mzdude
Fredrik Lundh wrote: mzdude wrote: works for me. are you perhaps running this under some kind of IDE that keeps the process running even after the program has terminated? It works the same way if I run from IDLE or from the DOS command prompt. I find very hard to believe that a

Re: Sending binary pickled data through TCP

2006-10-13 Thread David Hirschfield
Thanks for the great response. Yeah, by "safe" I mean that it's all happening on an intranet with no chance of malicious individuals getting access to the stream of data. The chunks are arbitrary collections of python objects. I'm wrapping them up a little, but I don't know much about the

Re: Sending binary pickled data through TCP

2006-10-13 Thread Fredrik Lundh
David Hirschfield wrote: Are there any existing python modules that do the equivalent of pickling on arbitrary python data, but do it a lot faster? I wasn't aware of any that are as easy to use as pickle, or don't require implementing them myself, which is not something I have time for.

Re: Sending binary pickled data through TCP

2006-10-13 Thread Irmen de Jong
David Hirschfield wrote: I have a pair of programs which trade python data back and forth by pickling up lists of objects on one side (using pickle.HIGHEST_PROTOCOL), and sending that data over a TCP socket connection to the receiver, who unpickles the data and uses it. So far this has

Newbie question - leading zeros

2006-10-13 Thread eldorado
I have looked around and cannot seem to find a way to strip leading zeros off of values in a dictionary. Basically, I am looking to do a for loop and any value that has one or more leading zeros would be stripped. Any pointers would be appreciated. Thanks -- Randomly generated signature ICMP:

Re: Sending binary pickled data through TCP

2006-10-13 Thread David Hirschfield
I've looked at pyro, and it is definitely overkill for what I need. If I was requiring some kind of persistent state for objects shared between processes, pyro would be awesome...but I just need to transfer chunks of complex python data back and forth. No method calls or keeping state in

SPE for 2.5?

2006-10-13 Thread John Salerno
Does anyone know if SPE is compatible with Python 2.5? I don't see a Windows exe file for 2.5, so I wasn't sure if I should use the 2.4 version. Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie question - leading zeros

2006-10-13 Thread Rainy
eldorado wrote: I have looked around and cannot seem to find a way to strip leading zeros off of values in a dictionary. Basically, I am looking to do a for loop and any value that has one or more leading zeros would be stripped. Any pointers would be appreciated. Thanks -- Randomly

Re: Sending binary pickled data through TCP

2006-10-13 Thread David Hirschfield
I'm using cPickle already. I need to be able to pickle pretty arbitrarily complex python data structures, so I can't use marshal. I'm guessing that cPickle is the best choice, but if someone has a faster pickling-like module, I'd love to know about it. -Dave Fredrik Lundh wrote: David

Re: Newbie question - leading zeros

2006-10-13 Thread Gary Herron
eldorado wrote: I have looked around and cannot seem to find a way to strip leading zeros off of values in a dictionary. Basically, I am looking to do a for loop and any value that has one or more leading zeros would be stripped. Any pointers would be appreciated. Thanks There is

Re: Newbie question - leading zeros

2006-10-13 Thread Timothy Grant
On 10/13/06, eldorado [EMAIL PROTECTED] wrote: I have looked around and cannot seem to find a way to strip leading zeros off of values in a dictionary. Basically, I am looking to do a for loop and any value that has one or more leading zeros would be stripped. Any pointers would be

Re: Newbie question - leading zeros

2006-10-13 Thread Mitko Haralanov
On Fri, 13 Oct 2006 13:10:55 -0500 eldorado [EMAIL PROTECTED] wrote: I have looked around and cannot seem to find a way to strip leading zeros off of values in a dictionary. Basically, I am looking to do a for loop and any value that has one or more leading zeros would be stripped. Any

Signals and threads again

2006-10-13 Thread Mitko Haralanov
Hi everyone, First off, I know that this has been discussed before and I did a search but could not find anything that helped my situation. Here is the problem: I have a Python program that uses threads, forked processes, and signals and I can't seem to understand where the signals go. When the

Re: SPE for 2.5?

2006-10-13 Thread Kevin Walzer
John Salerno wrote: Does anyone know if SPE is compatible with Python 2.5? I don't see a Windows exe file for 2.5, so I wasn't sure if I should use the 2.4 version. Thanks. I'm not sure...but is SPE even developed anymore? After a furious number of releases last fall, the developer announced

Re: IDE

2006-10-13 Thread jmdeschamps
Jan Bakuwel wrote: John Purser wrote: On Fri, 2006-10-13 at 15:48 +, giuseppe wrote: What is the better IDE software for python programming? many thanks joe Joe, Find the best Python programmer and ask him/her. John Purser I may be the worst Python programmer (since

Re: Best IDE?

2006-10-13 Thread Theerasak Photha
On 10/13/06, Grant Edwards [EMAIL PROTECTED] wrote: On 2006-10-13, Ahmer [EMAIL PROTECTED] wrote: What do you guys use? jed along with bash et. al. Jed I must admit is nice. Especially since they added UTF-8 support. etc. 42 LOL -- Theerasak --

Re: Newbie question - leading zeros

2006-10-13 Thread eldorado
On Fri, 13 Oct 2006, Rainy wrote: eldorado wrote: I have looked around and cannot seem to find a way to strip leading zeros off of values in a dictionary. Basically, I am looking to do a for loop and any value that has one or more leading zeros would be stripped. Any pointers would be

Re: Best IDE?

2006-10-13 Thread Theerasak Photha
On 13 Oct 2006 19:37:57 +0200, Neil Cerutti [EMAIL PROTECTED] wrote: Disadvantages: * Totally configurable. I invested a lot of time in Emacs and Vim before that...I still use Vim over SSH (and its Ruby support is the best of the two IMO) -- Theerasak --

Re: SPE for 2.5?

2006-10-13 Thread John Salerno
Kevin Walzer wrote: February is the last month anything new appeared, as far as I know. Actually, the latest looks to be January. -- http://mail.python.org/mailman/listinfo/python-list

wing ide vs. komodo?

2006-10-13 Thread John Salerno
Just curious what users of the two big commercial IDEs think of them compared to one another (if you've used both). Wing IDE looks a lot nicer and fuller featured in the screenshots, but a glance at the feature list shows that the personal version doesn't even support code folding! That's a

Re: Line algorithim for python and numeric

2006-10-13 Thread Theerasak Photha
On 10/13/06, Fredrik Lundh [EMAIL PROTECTED] wrote: Theerasak Photha wrote: I'm not in kolluge yet and I just learned about linear interpolation today---although I don't think it would necessarily apply to this problem, where the increments set by the grid might be more discrete than the

Re: wing ide vs. komodo?

2006-10-13 Thread hg
John Salerno wrote: Just curious what users of the two big commercial IDEs think of them compared to one another (if you've used both). Wing IDE looks a lot nicer and fuller featured in the screenshots, but a glance at the feature list shows that the personal version doesn't even support

Re: wing ide vs. komodo?

2006-10-13 Thread Theerasak Photha
On 10/13/06, John Salerno [EMAIL PROTECTED] wrote: Komodo, on the other hand, seems to have more of the features that the personal version of Wing IDE lacks (call tips, class browser, etc.) but the look of it seems very sparse for some reason. But that's really a good thing. -- Theerasak --

Re: Best IDE?

2006-10-13 Thread Bernard
hey thanks limodou, I'm trying it out right now and it works pretty well! SPE has been crashing often lately so count on me to use it frequently. Bernard limodou wrote: On 10/13/06, Theerasak Photha [EMAIL PROTECTED] wrote: On 13 Oct 2006 07:37:07 -0700, Bernard [EMAIL PROTECTED] wrote:

Re: wing ide vs. komodo?

2006-10-13 Thread John Salerno
Theerasak Photha wrote: On 10/13/06, John Salerno [EMAIL PROTECTED] wrote: Komodo, on the other hand, seems to have more of the features that the personal version of Wing IDE lacks (call tips, class browser, etc.) but the look of it seems very sparse for some reason. But that's really a

Re: wing ide vs. komodo?

2006-10-13 Thread hg
Theerasak Photha wrote: On 10/13/06, John Salerno [EMAIL PROTECTED] wrote: Komodo, on the other hand, seems to have more of the features that the personal version of Wing IDE lacks (call tips, class browser, etc.) but the look of it seems very sparse for some reason. But that's really a

Re: wing ide vs. komodo?

2006-10-13 Thread Theerasak Photha
On 10/13/06, hg [EMAIL PROTECTED] wrote: I'm really interested: my *small* company is ready to spend the ~300$ in the process, but Komodo looks _very_ sparse. How do you go about it? ... I have resources to look at it for one or two days. It's entirely possible you could use a free IDE as

Re: wing ide vs. komodo?

2006-10-13 Thread hg
Theerasak Photha wrote: On 10/13/06, hg [EMAIL PROTECTED] wrote: I'm really interested: my *small* company is ready to spend the ~300$ in the process, but Komodo looks _very_ sparse. How do you go about it? ... I have resources to look at it for one or two days. It's entirely possible

Re: wing ide vs. komodo?

2006-10-13 Thread Theerasak Photha
On 10/13/06, hg [EMAIL PROTECTED] wrote: I have spend the past two years with eclipse/pydev ... a few issue are still troublesome to me (speed, search for definitions ... being a few of them) ... and until two days ago I had not even looked at Wing as I wrongly thought it was on

Re: wing ide vs. komodo?

2006-10-13 Thread John Salerno
Theerasak Photha wrote: On 10/13/06, hg [EMAIL PROTECTED] wrote: I have spend the past two years with eclipse/pydev ... a few issue are still troublesome to me (speed, search for definitions ... being a few of them) ... and until two days ago I had not even looked at Wing as I wrongly

Re: Newbie question - leading zeros

2006-10-13 Thread [EMAIL PROTECTED]
Rainy wrote: eldorado wrote: I have looked around and cannot seem to find a way to strip leading zeros off of values in a dictionary. Basically, I am looking to do a for loop and any value that has one or more leading zeros would be stripped. Any pointers would be appreciated. Thanks

Re: Big speed boost in os.walk in Python 2.5

2006-10-13 Thread looping
Fredrik Lundh wrote: looping wrote: Very nice, but somewhat strange... Is Python 2.4.3 os.walk buggy ??? Why are you asking if something's buggy when you've already figured out what's been improved? You're right, buggy isn't the right word... Anyway thanks for your detailed

Re: wing ide vs. komodo?

2006-10-13 Thread hg
Theerasak Photha wrote: On 10/13/06, hg [EMAIL PROTECTED] wrote: I have spend the past two years with eclipse/pydev ... a few issue are still troublesome to me (speed, search for definitions ... being a few of them) ... and until two days ago I had not even looked at Wing as I wrongly

Re: wing ide vs. komodo?

2006-10-13 Thread Theerasak Photha
On 10/13/06, John Salerno [EMAIL PROTECTED] wrote: Is Eric available for Windows? I have found the install files before, but they looked like it was for Linux. You need QScintilla IIRC, but: http://www.die-offenbachs.de/detlev/eric3-testimonials.html Eric is becoming an integral part of our

Re: IDE

2006-10-13 Thread srock
Eclipse with PyDev is a great option because Eclipse allows you to develop so many languages at once. Personally, I prefer to learn 1 IDE for all my development needs. This greatly reduces the learning curve of a language because you are already familiar with the environment. Also, Eclipse works

Re: wing ide vs. komodo (python IDE comparison)?

2006-10-13 Thread Todd Whiteman
Check the following links, somebody has already done the hard work for you :) http://wiki.python.org/moin/IntegratedDevelopmentEnvironments http://spyced.blogspot.com/2006/02/pycon-python-ide-review.html http://spyced.blogspot.com/2005/09/review-of-6-python-ides.html

Re: Standard Forth versus Python: a case study

2006-10-13 Thread B M
i hang my head in shame. On 10/12/06, Gabriel Genellina [EMAIL PROTECTED] wrote: At Thursday 12/10/2006 17:44, [EMAIL PROTECTED] wrote: fun median { var x = 0. while( *p++) { if( (*p) x) x = *p. } return x. } clearly, i've forgotten the

Re: wing ide vs. komodo (python IDE comparison)?

2006-10-13 Thread John Salerno
Todd Whiteman wrote: Check the following links, somebody has already done the hard work for you :) http://wiki.python.org/moin/IntegratedDevelopmentEnvironments http://spyced.blogspot.com/2006/02/pycon-python-ide-review.html http://spyced.blogspot.com/2005/09/review-of-6-python-ides.html

wxPython installation interferes with win32ui/win32gui

2006-10-13 Thread robert
As soon as I install wxPython on a Py2.3.5, my win32ui / win32gui apps freak out. buttons in dialogs are magically pressed. backgrounds of dialogs are colored wrong... this is with current wxPython (it was the same situation with a wx version some months back) When I uninstall wxPython the

Re: Starting out.

2006-10-13 Thread Tim Chase
Maybe you should say amongst the longest pepperwort perpetuity perruquier pirouetter proprietor repertoire typewriter But even that would be wrong. rupturewort hey, look, it's Friday proprietory proterotype rupturewort according to my web2 list of words. Hey, look, it's

Re: wxPython installation interferes with win32ui/win32gui

2006-10-13 Thread robert
robert wrote: c:\Python23\pythonw.exe.manifest c:\Python23python.exe.manifest I found out that in fact when I move away these 2 files to a backup location after a wx installation, things go well again. What at all do this .manifest files do ? And why do win32ui apps freak out, when these

Re: Cannot force configure/setup.py to pick up location of readline (SFWrline) on Solaris 10

2006-10-13 Thread Martin v. Löwis
Chris Miles schrieb: How do I force the build to use the custom paths? Not through setup.py. Instead, you edit Modules/Setup to provide per-module compile and link flags. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Big speed boost in os.walk in Python 2.5

2006-10-13 Thread Martin v. Löwis
looping schrieb: Maybe this improvement could be backported in Python 2.4 branch for the next release ? As Fredrik explains, this is probably the side-effect of a from-scratch rewrite of the relevant functions. Another (undesirable) side-effect is that the resulting binary won't work on Windows

Re: wing ide vs. komodo?

2006-10-13 Thread Paul Boddie
hg wrote: Eric3 is very nice and moving forward ... I believe it is based on the QT library which free ... yet not so free under windows (i have yet to understand the business model). There are snapshots of Eric4 available, apparently. See here for more: http://www.riverbankcomputing.co.uk/

Re: Best IDE?

2006-10-13 Thread Gerrit Holl
On 2006-10-13 16:31:37 +0200, Ahmer wrote: Subject: Best IDE? cat foo.py How much does it cost? 0 -- http://mail.python.org/mailman/listinfo/python-list

Re: Best IDE?

2006-10-13 Thread [EMAIL PROTECTED]
Ahmer wrote: What do you guys use? vim What platform(s) is it avalable on? Windows, Unix/Linux, Mac, Amiga, others How much does it cost? Free, and the source is open too. Why? What do you like and hate about it? Like: Built-in python interpreter so you can do any editor customizations

Re: IDE that uses an external editor?

2006-10-13 Thread [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote: One thing that's kept me from even looking at IDEs is that to the best of my knowledge none of them will integrate properly with external editors like Emacs or vi. I know lots of tools support Emacs-like keybindings, but believe me, I've never found one that does a

Re: Best IDE?

2006-10-13 Thread Neil Cerutti
On 2006-10-13, Gerrit Holl [EMAIL PROTECTED] wrote: On 2006-10-13 16:31:37 +0200, Ahmer wrote: Subject: Best IDE? cat foo.py How much does it cost? 0 On Windows this editor is invoked like this: COPY CON: FOO.PY HTH! HAND! -- Neil Cerutti --

Re: Signals and threads again

2006-10-13 Thread Mitko Haralanov
On Fri, 13 Oct 2006 11:37:46 -0700 Mitko Haralanov [EMAIL PROTECTED] wrote: The problem that I am experiencing is that when SIGINT is sent to the program, it gets delivered to the child processes (the fork'ed ones) but the main thread's signal handler is never invoked. I know that Python

Re: Best IDE?

2006-10-13 Thread Fuzzyman
BartlebyScrivener wrote: Ahmer wrote: What do you guys use? Why? http://tinyurl.com/ybg6p5 Hmm... only 31 results over a period of 8 years. That's a couple of orders of magnitude less than I would have guessed. Fuzzyman http://www.voidspace.org.uk rd --

Re: wxPython installation interferes with win32ui/win32gui

2006-10-13 Thread Gabriel Genellina
At Friday 13/10/2006 19:33, robert wrote: c:\Python23\pythonw.exe.manifest c:\Python23python.exe.manifest I found out that in fact when I move away these 2 files to a backup location after a wx installation, things go well again. What at all do this .manifest files do ? And why do win32ui

rexec and Python 2.5

2006-10-13 Thread Tarek Ziadé
HelloI tried to use rexec in Python 2.5, since i've seen that the module was still presentBut it fails, and this code can be found in rexec.RExec init code:raise RuntimeError, This code is not secure in Python 2.2 and 2.3So, the comment should talk about 2.4 and 2.5 too ? Is this just a forgotten

Re: building extensions for Windows Python

2006-10-13 Thread Michael L Torrie
On Fri, 2006-10-13 at 11:39 -0400, JW wrote: I have a lousy little Python extension, generated with the generous help of Pyrex. In Linux, things are simple. I compile the extension, link it against some C stuff, and *poof*! everything works. My employer wants me to create a Windows version

Re: wing ide vs. komodo?

2006-10-13 Thread Sandra-24
John Salerno wrote: Just curious what users of the two big commercial IDEs think of them compared to one another (if you've used both). Wing IDE looks a lot nicer and fuller featured in the screenshots, but a glance at the feature list shows that the personal version doesn't even support

Re: Starting out.

2006-10-13 Thread [EMAIL PROTECTED]
Tim Chase wrote: Maybe you should say amongst the longest pepperwort perpetuity perruquier pirouetter proprietor repertoire typewriter But even that would be wrong. rupturewort hey, look, it's Friday proprietory proterotype rupturewort according to my web2 list

<    1   2   3   >