Re: A friendlier, sugarier lambda -- a proposal for Ruby-like blocks in python

2006-10-13 Thread Kay Schluehr
[EMAIL PROTECTED] wrote: > But [embedding a definition, ks] is awkward since the lambda is constrained > to be one > line; you > can't come back later and add much to the callback's code. > Furthermore, this example isn't even legal, because 'print' isn't a > function, but a statement -- lambda i

Re: Starting out.

2006-10-13 Thread Hendrik van Rooyen
<[EMAIL PROTECTED]> wrote: 8< > Well, I'm on vacation this week, so 5 pm means nothing to me: > > teetertotter > > from the Consolidated Word List from puzzlers.org. > > Yes, it's also spelled with a hyphen or a space, but as long as this > is a valid spelling, it counts.

Re: What value should be passed to make a function use the defaultargument value?

2006-10-13 Thread Hendrik van Rooyen
"Antoon Pardon" <[EMAIL PROTECTED]> wrote: 8<- > If we somehow want to seperate parameters in those that > can be used with a keyword and those that don't it has > to be something different than providing a default value

Re: Thread termination

2006-10-13 Thread Hendrik van Rooyen
"Teja" <[EMAIL PROTECTED]>wrote: > Hi all, > > Does any one know how to terminate or kill a thread that is started > with "start_new_thread()" in the middle of its execution? > > Any pointers? > > Thanks in advance > > Teja. can't be done from outside without co operation of thread in questi

Re: building extensions for Windows Python

2006-10-13 Thread Nick Craig-Wood
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > To build an extension that runs on a generic python 2.5 you need a > Windows OS (suprise!) and VS.NET 2003. Some people may have had some > success with MinGW32 (on windows) but it's not going to work > 'out-of-the-box'. Neither of those statemen

Re: building extensions for Windows Python

2006-10-13 Thread Nick Craig-Wood
JW <[EMAIL PROTECTED]> 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 of

Attribute error

2006-10-13 Thread Teja
Hi all, What is attribute error? what causes that error, especially with COM objects? To be precise : Attribute Error: LCAS.LabcarController.writeLogWindow() Here, LCAS is a COM object Thanks Teja.P -- http://mail.python.org/mailman/listinfo/python-list

Re: Best IDE?

2006-10-13 Thread Fulvio
*** Your mail has been scanned by InterScan MSS. *** On Friday 13 October 2006 23:17, limodou wrote: > hope you try it. If you'll manage for macro recording, playing back and from file then I'll be yours :) F -- http://mail.python.org/mailman/listinfo/

Re: A friendlier, sugarier lambda -- a proposal for Ruby-like blocks in python

2006-10-13 Thread brenocon
[repost -- fixed formatting] Hi all -- Compared to the Python I know and love, Ruby isn't quite the same. However, it has at least one terrific feature: "blocks". Whereas in Python a "block" is just several lines of locally-scoped-together code, in Ruby a "block" defines a closure (anonymous func

A friendlier, sugarier lambda -- a proposal for Ruby-like blocks in python

2006-10-13 Thread brenocon
Hi all -- Compared to the Python I know and love, Ruby isn't quite the same. However, it has at least one terrific feature: "blocks". Whereas in Python a "block" is just several lines of locally-scoped-together code, in Ruby a "block" defines a closure (anonymous function). To avoid confusion le

Re: IDE that uses an external editor?

2006-10-13 Thread [EMAIL PROTECTED]
Like said before, pida is a great IDE that supports vim as its external editor and also the default editor called Culebra, I've used pida myself and it has some nice features. It's still rough around the edges and has bugs, but its useable. It's written with the Kiwi framework, wich is a wrapper f

Re: optparse: add trailing text in help message?

2006-10-13 Thread James Stroud
Count László de Almásy wrote: > 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

Set -Werror *inside* Python (Was Re: Can pdb be set to break on warnings?)

2006-10-13 Thread R. Bernstein
This seems like very useful information. In the documentation I've been maintaining for the extended python debugger (http://bashdb.sf.net/pydb) I've added this as a little footnote: http://bashdb.sourceforge.net/pydb/pydb/lib/pydb-invocation.html#foot1113 However since pydb allows for options on

Re: terminate execfile

2006-10-13 Thread Teja
Teja wrote: > How to terminate execfile() in the middle of its execution. Any > pointers ??? > Its very urgent please > > > Thanks > Teja.P Can I raise an interrupt using PyErr_SetInterrupt??? Is so , does any one know how to do it? -- http://mail.python.org/mailman/listinfo/python-lis

terminate execfile

2006-10-13 Thread Teja
How to terminate execfile() in the middle of its execution. Any pointers ??? Its very urgent please Thanks Teja.P -- http://mail.python.org/mailman/listinfo/python-list

sqlite & python 2.5

2006-10-13 Thread Joseph
Hi, I am using python 2.5 under windows. I am trying to do the below: cursor.execute("SELECT postid, title, body, teaser, postdate, posttime, author, status, format, allow_comments, notify_on_comments, catname \ FROM ton_posts p, ton_category c \ where c.catid = p.category and status =

How does sysconfig.get_config_vars() get config info...

2006-10-13 Thread venkatbo
Hi, I'm trying to cross compile a C extension - on a i686 linux box, targeting a ppc-linux box. get_config_vars(*args): global _config_vars if _config_vars is None: ... else: ... ... What I don't understand is, on the first invocation of get_config_vars(), _

Re: Standard Forth versus Python: a case study

2006-10-13 Thread Paddy
werty wrote: > Apples/oranges ? programmers are making very little $$ today . >Thats software ! No one is makin money on obsolete Forth , > so why a comparisom ? > > Ultimately the best OpSys will be free and millions of lines of code > obsoleted . Because no one can protect intellectu

Re: Newbie: how to wait for callbacks...

2006-10-13 Thread jeff . clough
On Oct 13, 12:38 pm, Jan Bakuwel <[EMAIL PROTECTED]> wrote: > 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 wh

Re: COM error

2006-10-13 Thread Neil Cerutti
On 2006-10-14, Teja <[EMAIL PROTECTED]> wrote: > What is "ValueError: argument is not a COM object" ? I get this > error when I try to pass a COM object to a thread. > > Any pointers Try passing it to Larry Bird, instead. He's bound to score some points. Seriously, the function you called exp

Re: IDE

2006-10-13 Thread gregarican
For my tastes I like ActiveState's Komodo for a Python IDE. Eclipse is too bloated, slow, and is like a Tower of Babel. From what I've seen of SPE it seems good, although the download website seems to throw a lot of pop-up adware/spyware installs at you... giuseppe wrote: > What is the better IDE

COM error

2006-10-13 Thread Teja
What is "ValueError: argument is not a COM object" ? I get this error when I try to pass a COM object to a thread. Any pointers Thanks Teja -- http://mail.python.org/mailman/listinfo/python-list

Re: IDE

2006-10-13 Thread Peter Decker
On 10/13/06, Theerasak Photha <[EMAIL PROTECTED]> wrote: > On 10/13/06, giuseppe <[EMAIL PROTECTED]> wrote: > > What is the better IDE software for python programming? I like SPE. They really work the way I like to work. -- # p.d. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python component model

2006-10-13 Thread Peter Decker
On 10/12/06, Peter Maas <[EMAIL PROTECTED]> wrote: > Peter Decker wrote: > > I think you should take a good look at Dabo and the visual tools they > > are creating. > > Thanks for the hint, Peter. I've heard of Dabo and it's on my list of > things to be inspected. Perhaps my postings have been misu

Re: is there an easy way to create a database on the fly and let the user input values

2006-10-13 Thread Peter Decker
On 12 Oct 2006 15:50:16 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > dabo looks intresting but I am just looking for the simplist way and > having to load from thier thing just complicates stuff. I could > probily just use wx.grid but examples are scarce, I have seen some > simple dbm st

Re: is there an easy way to create a database on the fly and let the user input values

2006-10-13 Thread dwelch91
[EMAIL PROTECTED] wrote: > I don't realy care what database I use wx.grid or whatever. I > wan't it to look at a line > > 128 9023 23428 exc and create the database or pick something out of the > file as some sort of a descrition line and then display and allow the > user to change and add

Re: SOAPpy and callback

2006-10-13 Thread Diez B. Roggisch
> I like your term "standard-wise". Although there is nothing in the SOAP > "standard" that prevents this architecture, it is probably open for > discussion whether it is "wise." Might stem from "standardweise", the german word for something that is part of a standard, or e.g. something always

Re: SPE for 2.5?

2006-10-13 Thread Fuzzyman
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. > Certainly worth trying the 2.4 version, but it's true that there hasn't been an uupdate of SPE for a long time. Shame as it i

Re: wing ide vs. komodo?

2006-10-13 Thread Heikki Toivonen
Paul Boddie wrote: > hg wrote: >> PS: I also was taken aback by the fact that the PyDev license was >> "per-year" ... it's like buying Word for a year only ... isn't it ? > > Flashbacks to the age of shareware seem to be commonplace in the realm > of Eclipse, or that's how the scene seems to me.

Re: wing ide vs. komodo?

2006-10-13 Thread Heikki Toivonen
> "Eric is becoming an integral part of our Python development here at > Fluent. It's ability to set and trigger breakpoints in any thread is > unlike any other Python debugger we have tried. Through Eric's easy to > use interface and tight integration with PyQt, it has helped reduce > our debuggin

Re: wing ide vs. komodo?

2006-10-13 Thread Heikki Toivonen
> "Eric is becoming an integral part of our Python development here at > Fluent. It's ability to set and trigger breakpoints in any thread is > unlike any other Python debugger we have tried. Through Eric's easy to > use interface and tight integration with PyQt, it has helped reduce > our debuggin

Re: wing ide vs. komodo?

2006-10-13 Thread John Salerno
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

Re: IDE

2006-10-13 Thread Sandra-24
giuseppe wrote: > What is the better IDE software for python programming? > One word. Wing. The debugger will pay for itself within weeks. There is no better Python debugger for most situations. -Sandra -- http://mail.python.org/mailman/listinfo/python-list

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 > rup

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 supp

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 ver

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.3"So, the comment should talk about 2.4 and 2.5 too ? Is this just a forgotte

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 win32u

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 -- http://mail.python.or

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 Pyt

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 -- http://mail.python.org/mailma

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

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 customizat

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: 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.u

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 Window

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: 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 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,

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 oth

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.h

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. > > > > >

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 http://www.straw-dogs.co.uk/b

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 on

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

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 >> wr

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 detail

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. Th

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 >> wr

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 Windoze-

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 enti

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 ID

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

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

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]> wro

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: 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 sup

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 >

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 l

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

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 -- http://mail.python.org/mailman/l

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

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 -- http://mail.python.org/ma

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

Re: IDE

2006-10-13 Thread [EMAIL PROTECTED]
giuseppe wrote: > What is the better IDE software for python programming? > Eric off course - the better ide for python programming step-shuffle-step http://www.die-offenbachs.de/detlev/eric3 -- http://mail.python.org/mailman/listinfo/python-list

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 announ

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: 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

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 apprec

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: 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 Hirs

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

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: 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 sync.

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 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

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 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 act

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 believ

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

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-

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 t

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

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 -- http://mail.python.org/mailman/listinfo/python-list

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: 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

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 post

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: 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

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/ L

  1   2   3   >