Re: The Importance of Terminology's Quality

2008-05-31 Thread Peter Duniho
On Fri, 30 May 2008 22:40:03 -0700, szr <[EMAIL PROTECTED]> wrote: Arne Vajhøj wrote: Stephan Bour wrote: Lew wrote: } John Thingstad wrote: } > Perl is solidly based in the UNIX world on awk, sed, bash and C. } > I don't like the style, but many do. } } Please exclude the Java newsgroups fro

Re: accumulator generators

2008-05-31 Thread Arnaud Delobelle
Cameron <[EMAIL PROTECTED]> writes: > I was reading this http://www.paulgraham.com/icad.html";>Paul > Graham article and he builds an accumuator generator function in > the appendix. His looks like this: > > > def foo(n): > s = [n] > def bar(i): > s[0] += i > return s[0] > return ba

Re: UNIX credential passing

2008-05-31 Thread Sebastian 'lunar' Wiesner
[ Kris Kennaway <[EMAIL PROTECTED]> ] > Sebastian 'lunar' Wiesner wrote: >> >> Illustrates, how to use socket credentials without sendmsg/recvmsg and so >> without any need for patching. >> > Thanks to both you and Paul for your suggestions. For the record, the > URL above is linux-specific,

ValueError: unknown locale: UTF-8

2008-05-31 Thread Mario Ruggier
On OS X 10.5.2 : $ python Python 2.5.1 (r251:54863, Feb 4 2008, 21:48:13) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import locale >>> locale.getdefaultlocale() Traceback (most recent call last): File "", line 1, in

Re: How to get all the variables in a python shell

2008-05-31 Thread caca
I meant it prints 4, which means the value of test is modified by the access to the dict > test=5 > __IPYTHON__.user_ns['test']=4 > print test #prints 4 > -- http://mail.python.org/mailman/listinfo/python-list

Re: ValueError: unknown locale: UTF-8

2008-05-31 Thread Arnaud Delobelle
Mario Ruggier <[EMAIL PROTECTED]> writes: > On OS X 10.5.2 : > > $ python > Python 2.5.1 (r251:54863, Feb 4 2008, 21:48:13) > [GCC 4.0.1 (Apple Inc. build 5465)] on darwin > Type "help", "copyright", "credits" or "license" for more information. import locale locale.getdefaultlocale() >

Re: How to get all the variables in a python shell

2008-05-31 Thread caca
Have you seen this page? http://matplotlib.sourceforge.net/screenshots.html On watching this, I wouldn't say matplotlib is inferior to matlab plotting. Also, I don't know what they use in sage, but they have 3D plots of surfaces that you can rotate with the mouse. Do as you like, but if

File browser in python gui

2008-05-31 Thread TheSaint
hi there, I've started to build a GUI for my Mailsweeper by the help of QT4 Designer. I came across the problem that there isn't any prebuild file browser like Kdialog. I know some other sample, but PyGTK builded. I'm not happy to use a different widget set or to have to design my own file browser

Re: SMS sending and receiving from website?

2008-05-31 Thread globalrev
On 31 Maj, 04:04, John Henderson <[EMAIL PROTECTED]> wrote: > globalrev wrote: > > can i send and receive messages from a website using python? > > Absolutely. But I'm not clear what you mean by "from a > website". Do you mean to use SMPP protocol to lodge and > receive messages? Or do you want

Re: SMS sending and receiving from website?

2008-05-31 Thread globalrev
On 31 Maj, 14:48, globalrev <[EMAIL PROTECTED]> wrote: > On 31 Maj, 04:04, John Henderson <[EMAIL PROTECTED]> wrote: > > > > > globalrev wrote: > > > can i send and receive messages from a website using python? > > > Absolutely. But I'm not clear what you mean by "from a > > website". Do you mean

Re: How to get all the variables in a python shell

2008-05-31 Thread Alan J. Salmoni
I'm not certain if this is what you want but try this for the first window: import __main__ localvars = __main__.__dict__ dir(localvars) # lists names of all objects available to the interpreter. And then you can pass localvars anywhere in the program - so after a command is entered in one window

Re: How to add function return value

2008-05-31 Thread George Sakkis
On May 30, 10:16 pm, Raymond Hettinger <[EMAIL PROTECTED]> wrote: > On May 30, 6:21 pm, HYRY <[EMAIL PROTECTED]> wrote: > > > Can I write a decorator that it can automately do this conversion > > > def func1() > >     a = 1 > > > ---> > > > def func1(): > >     a = 1 > >     return locals() > > Not

Re: File browser in python gui

2008-05-31 Thread Sebastian 'lunar' Wiesner
[ TheSaint <[EMAIL PROTECTED]> ] > I've started to build a GUI for my Mailsweeper by the help of QT4 > Designer. I came across the problem that there isn't any prebuild file > browser like Kdialog. > I know some other sample, but PyGTK builded. I'm not happy to use a > different widget set or to

Re: accumulator generators

2008-05-31 Thread George Sakkis
On May 31, 4:19 am, Arnaud Delobelle <[EMAIL PROTECTED]> wrote: > Cameron <[EMAIL PROTECTED]> writes: > > I was reading this http://www.paulgraham.com/icad.html";>Paul > > Graham article and he builds an accumuator generator function in > > the appendix. His looks like this: > > > > > def foo(n):

Re: SMS sending and receiving from website?

2008-05-31 Thread Tommy Grav
On May 31, 2008, at 10:01 AM, globalrev wrote: also, lets say i want to send a SMS to my own phone from the internet. how would i do that? While I have seen services that allow you to do that (it has been awhile), i think you need to contact a service provider if you want to do this on any

Re: How to covert ASCII to integer in Python?

2008-05-31 Thread Philipp Pagel
Mensanator <[EMAIL PROTECTED]> wrote: > On May 30, 10:03???am, Philipp Pagel <[EMAIL PROTECTED]> > wrote: > > 'P' is obviously not an ASCII representation of a number. > It is in base 36. Sure, but if that was the OP's intent he would most likely have mentioned it... As others have already guess

Re: accumulator generators

2008-05-31 Thread Arnaud Delobelle
George Sakkis <[EMAIL PROTECTED]> writes: > On May 31, 4:19 am, Arnaud Delobelle <[EMAIL PROTECTED]> wrote: >> Cameron <[EMAIL PROTECTED]> writes: >> > I was reading this http://www.paulgraham.com/icad.html";>Paul >> > Graham article and he builds an accumuator generator function in >> > the appen

Re: driver detective crack keygen

2008-05-31 Thread kevin
Hi i was wondering if you did find a keygen or crack for driver detective if so could you please help me in my serach for the same . kevin -- http://mail.python.org/mailman/listinfo/python-list

Re: The Importance of Terminology's Quality

2008-05-31 Thread szr
Peter Duniho wrote: > On Fri, 30 May 2008 22:40:03 -0700, szr <[EMAIL PROTECTED]> wrote: > >> Arne Vajhøj wrote: >>> Stephan Bour wrote: Lew wrote: } John Thingstad wrote: } > Perl is solidly based in the UNIX world on awk, sed, } > bash and C. I don't like the style, but many

method-wrapper?

2008-05-31 Thread andrew cooke
Hi, Within Python (2.5): >>> help("__str__") Help on method-wrapper object: __str__ = class method-wrapper(object) | Methods defined here: | | __call__(...) | x.__call__(...) <==> x(...) | | __cmp__(...) | x.__cmp__(y) <==> cmp(x,y) [...] What is "method-wrapper"?

Re: The Importance of Terminology's Quality

2008-05-31 Thread J�rgen Exner
"szr" <[EMAIL PROTECTED]> wrote: >I would rather have the OP comment about that, as he started the thread. The OP is a very well-known troll who has the habit of spitting out a borderline OT article to a bunch of loosly related NGs ever so often and then sits back and enjoys the complaints and co

Re: ThreadPoolingMixIn

2008-05-31 Thread Rhamphoryncus
On May 30, 2:40 pm, [EMAIL PROTECTED] wrote: > Hi, everybody! > > I wrote a useful class ThreadPoolingMixIn which can be used to create > fast thread-based servers. This mix-in works much faster than > ThreadingMixIn because it doesn't create a new thread on each request. Do you have any benchmark

Re: SMS sending and receiving from website?

2008-05-31 Thread John Henderson
globalrev wrote: > i want to build a service where you can send an SMS with your > cellphone to my website and then the site will collect the > data you asked for and SMS it back. > > so what components would i need for that? Arguably the simplest route is to use a phone with a serial connection

Re: The Importance of Terminology's Quality

2008-05-31 Thread szr
Jürgen Exner wrote: > "szr" <[EMAIL PROTECTED]> wrote: >> I would rather have the OP comment about that, as he started the >> thread. > > The OP is a very well-known troll who has the habit of spitting out a > borderline OT article to a bunch of loosly related NGs ever so often > and then sits bac

Question about files?

2008-05-31 Thread corvettecraz92
I want to create a program where a user can type what ever they want to, have it saved to a file, and the be able to re-open it and read it. How would I do this? Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: File browser in python gui

2008-05-31 Thread TheSaint
On 22:39, sabato 31 maggio 2008 Sebastian 'lunar' Wiesner wrote: > What about QtGui.QFileDialog? Yeah! Thank you! So strange that I was looking for all around and it was already in my computer. I'm gonna back to study a little function that will return an existing/new file or None (if Cancel is p

Re: SMS sending and receiving from website?

2008-05-31 Thread TheSaint
On 22:01, sabato 31 maggio 2008 globalrev wrote: > also, lets say i want to send a SMS to my own phone from the internet. > how would i do that? IMO, nowadays free SMS sending, via internet, is gone. There should be the chance from one's own subscribed network. -- Mailsweeper Home : http://it.ge

parse dates

2008-05-31 Thread brechmos
Hi, I have been using PHP the last while and in particular strtotime. What I want to replicate is finding the second or fourth Monday of the next month. In PHP with strtotime it is easy (strtotime("second Monday", strtotime("next month"), but I can't find an easy way to do it in Python. I have s

Re: Question about files?

2008-05-31 Thread corvettecraz92
On May 31, 3:25 pm, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On Sat, 31 May 2008 11:44:14 -0700 (PDT), [EMAIL PROTECTED] > declaimed the following in comp.lang.python: > > > I want to create a program where a user can type what ever they want > > to, have it saved to a file, and the be able t

Re: Question about files?

2008-05-31 Thread Giampaolo Rodola'
On 31 Mag, 21:28, [EMAIL PROTECTED] wrote: > On May 31, 3:25 pm, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > > > > > > > On Sat, 31 May 2008 11:44:14 -0700 (PDT), [EMAIL PROTECTED] > > declaimed the following in comp.lang.python: > > > > I want to create a program where a user can type what ever

Re: ThreadPoolingMixIn

2008-05-31 Thread Giampaolo Rodola'
On 30 Mag, 22:40, [EMAIL PROTECTED] wrote: > Hi, everybody! > > I wrote a useful class ThreadPoolingMixIn which can be used to create > fast thread-based servers. This mix-in works much faster than > ThreadingMixIn because it doesn't create a new thread on each request. > > Is it worth including in

Re: parse dates

2008-05-31 Thread Sebastian 'lunar' Wiesner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [ brechmos <[EMAIL PROTECTED]> ] > Hi, > > I have been using PHP the last while and in particular strtotime. > What I want to replicate is finding the second or fourth Monday of the > next month. In PHP with strtotime it is easy (strtotime("second >

Re: Using PEFile to replace Images in PE EXE

2008-05-31 Thread Tim Roberts
GeoffreyF67 <[EMAIL PROTECTED]> wrote: > >I am trying to script some image changes for multiple EXE files in >linux. > >The problem I'm running across is that I haven't been able to find >anything out there that can do this...until now. > >It *looks* like pefile (available at google code) would do

Need Tutorial For the following lib

2008-05-31 Thread Gandalf
Hi every one. I need comprehensive tutorial for the following library : 1. pyWinAuto 2. winGuiAuto Thanks in advance -- http://mail.python.org/mailman/listinfo/python-list

Re: Need Tutorial For the following lib

2008-05-31 Thread Scott David Daniels
Gandalf wrote: Hi every one. I need comprehensive tutorial for the following library : 1. pyWinAuto 2. winGuiAuto I file all my Tutorials here: http://www.google.com In case you didn't notice, a few people are beginning to think you are too lazy about doing the first steps yourself. --Sc

Re: Need Tutorial For the following lib

2008-05-31 Thread Gandalf
Hi scott, you couldn't be more wrong about my laziness. I straggle with my poor English for hours to fined what I'm looking for. I found a very simple and not comprehensive tutorial for the pyWinAuto lib in this address http://pywinauto.openqa.org/ but it only show how to do the basic, and my knowl

disappearing interpreter

2008-05-31 Thread oregon skip
I am a new Python programmer, using Windows XP, IDLE and the interpreter. Everything is OK except that when I double check a name.py file it runs on the interpreter, but the window disappears before I can see what happened. Any suggestions? -- http://mail.python.org/mailman/listinfo/python-list

Re: The Importance of Terminology's Quality

2008-05-31 Thread Arne Vajhøj
szr wrote: Arne Vajhøj wrote: Stephan Bour wrote: Lew wrote: } John Thingstad wrote: } > Perl is solidly based in the UNIX world on awk, sed, bash and C. } > I don't like the style, but many do. } } Please exclude the Java newsgroups from this discussion. Did it ever occur to you that you don

Conjunction List

2008-05-31 Thread ccy56781
http://codepad.org/MV3k10AU I want to write like next one. def conjunction(number=a[1],name=b[1],size=c[1]): flag = a[0]==b[0]==c[0] if flag: for e in zip(number,name,size): print e conjunction(a,b,c)

Bring object 'out of' Class?

2008-05-31 Thread dave
Hello, I'm currently on the class section of my self-taught journey and have a question about classes: is it possible to bring a object created inside the class definitions outside the class so it can be accessed in the interpreter? For example, right now I'm working (within Allen Downey's

Re: The Importance of Terminology's Quality

2008-05-31 Thread Arne Vajhøj
szr wrote: Peter Duniho wrote: On Fri, 30 May 2008 22:40:03 -0700, szr <[EMAIL PROTECTED]> wrote: Arne Vajhøj wrote: Stephan Bour wrote: Lew wrote: } John Thingstad wrote: } > Perl is solidly based in the UNIX world on awk, sed, } > bash and C. I don't like the style, but many do. } } Plea

Re: disappearing interpreter

2008-05-31 Thread André
On May 31, 8:59 pm, oregon skip <[EMAIL PROTECTED]> wrote: > I am a new Python programmer, using Windows XP, IDLE and the > interpreter. Everything is > OK except that when I double check a name.py file it runs on the > interpreter, but the > window disappears before I can see what happened. Any su

Merging ordered lists

2008-05-31 Thread etal
Here's an algorithm question: How should I efficiently merge a collection of mostly similar lists, with different lengths and arbitrary contents, while eliminating duplicates and preserving order as much as possible? My code: def merge_to_unique(sources): """Merge the unique elements from eac

Re: ThreadPoolingMixIn

2008-05-31 Thread Rhamphoryncus
On May 31, 1:40 pm, "Giampaolo Rodola'" <[EMAIL PROTECTED]> wrote: > On 30 Mag, 22:40, [EMAIL PROTECTED] wrote: > > > > > Hi, everybody! > > > I wrote a useful class ThreadPoolingMixIn which can be used to create > > fast thread-based servers. This mix-in works much faster than > > ThreadingMixIn b

Re: The Importance of Terminology's Quality

2008-05-31 Thread szr
Arne Vajhøj wrote: > szr wrote: >> Peter Duniho wrote: >>> On Fri, 30 May 2008 22:40:03 -0700, szr <[EMAIL PROTECTED]> >>> wrote: Arne Vajhøj wrote: > Stephan Bour wrote: >> Lew wrote: >> } John Thingstad wrote: >> } > Perl is solidly based in the UNIX world on awk, sed, } >

Re: The Importance of Terminology's Quality

2008-05-31 Thread Peter Duniho
On Sat, 31 May 2008 23:27:35 -0700, szr <[EMAIL PROTECTED]> wrote: [...] But the subthread Lew commente don was about Perl and Unix. That is clearly off topic. I agree with and understand what you are saying in general, but still, isn't it possible that were are people in the java group (and