Re: WordPress Python Library 1.0

2005-05-02 Thread Michele Ferretti
Excused all, I have mistaken! I did not know these rules the next time I will follow them Terry Reedy wrote: > "Michele Ferretti" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > François Pinard wrote: > >>[Michele Ferretti] >> >> >>>http://www.blackbirdblog.it/programmazione/pro

Re: Python Challenge ahead [NEW] for riddle lovers

2005-05-02 Thread Dan Bishop
John Hazen wrote: > * Dan Bishop <[EMAIL PROTECTED]> [2005-05-02 21:09]: > > Dan Christensen wrote: > > > Reinhold Birkenfeld <[EMAIL PROTECTED]> writes: > > > > > > > Dan Christensen wrote: > > > >> Roel Schroeven <[EMAIL PROTECTED]> writes: > > > >> > > > >>> There's no level 12 yet though. > >

Re: WordPress Python Library 1.0

2005-05-02 Thread Michele Ferretti
Cappy2112 wrote: > If you wan't explain what WordPress is, can you at least supply a link > for a page that's in English? > WordPress is most diffused blog engine: http://www.wordpress.org My library is a client for connect to WP installation. -- Michele Ferretti ICQ#: 14491159 Skype: m.ferre

Re: WordPress Python Library 1.0

2005-05-02 Thread Terry Reedy
"Michele Ferretti" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] François Pinard wrote: > [Michele Ferretti] > >>http://www.blackbirdblog.it/programmazione/progetti/28 > > > Quoted above, the full content of your article. Is it a message? It > surely does not look like an English

Re: BitKeeper for Python?

2005-05-02 Thread Miki Tebeka
Hello Bruce, > Typical, you wait years for a decent replacement for CVS, and then... It's called subversion and it has Python bindings. Bye. -- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The only difference bet

Re: Reading output from standard out

2005-05-02 Thread Miki Tebeka
Hello Thierry, >Let's say I have a python program which prints output to standard out, >let's call it HelloApp. How do I capture these outputs from the >python GUI tkinter? For example, I want to call HelloApp from my GUI >program and I want to send the output live to a tkinter te

Re: empty lists vs empty generators

2005-05-02 Thread Terry Reedy
"Brian Roberts" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm using using generators and iterators more and more intead of > passing lists around, and prefer them. However, I'm not clear on the > best way to detect an empty generator (one that will return no items) > when som

Re: Which IDE is recommended?

2005-05-02 Thread Franz Steinhaeusler
On Mon, 02 May 2005 19:25:57 -0700, Bryan <[EMAIL PROTECTED]> wrote: >dcrespo wrote: >>>But I personally recommend DrPython. (Not only, I'm a member of the >>>project). >> >> >> I saw this message and downloaded DrPython. It's very good: I like the >> class/functions browser while I'm coding...

Re: lists in cx_Oracle

2005-05-02 Thread Andrew Dalke
Steve Holden wrote: > Do you think this is a DB-API 3-ish kind of a thing, or would it layer > over DB-API 2 in a relatively platform-independent manner? ... > but-you-may-know-better-ly y'rs - steve I am a tyro at this. I had to find some tutorials on SQL to learn there even was an IN cla

Re: Use case for multiple inheritance (was Re: MRO problems with diamond inheritance?)

2005-05-02 Thread Michele Simionato
AFAIK, the best use case for multiple inheritance is the plugin pattern, when you plug in methods in a class according to a given condition. For instance: if plugin == "PDF": class DocumentGenerator(BaseGenerator, PDFMixin): pass elif plugin == "PS": class DocumentGenerator(BaseGenerator,

Re: Python Challenge ahead [NEW] for riddle lovers

2005-05-02 Thread John Hazen
* Dan Bishop <[EMAIL PROTECTED]> [2005-05-02 21:09]: > Dan Christensen wrote: > > Reinhold Birkenfeld <[EMAIL PROTECTED]> writes: > > > > > Dan Christensen wrote: > > >> Roel Schroeven <[EMAIL PROTECTED]> writes: > > >> > > >>> There's no level 12 yet though. > > >> > > >> Now there's a 12 and a 13

Re: lists in cx_Oracle

2005-05-02 Thread Steve Holden
Andrew Dalke wrote: > infidel wrote: > >>I think perhaps you are asking for something that the OCI doesn't >>provide. > > > But it doesn't need to be supported by the OCI. > > >>And really, it all boils down to the list comprehension: >> >>in_clause = ', '.join([':id%d' % x for x in xrange(len

Re: empty lists vs empty generators

2005-05-02 Thread Michele Simionato
Starting from Python 2.4 we have tee in the itertools module, so you can define the following: from itertools import tee def is_empty(it): it_copy = tee(it)[1] try: it_copy.next() except StopIteration: return True else: return False It works with generic i

py2exe and library.zip

2005-05-02 Thread Timothy Smith
is it possible instead of py2exe putting all library's in a zip file, to just put them in a sub dir? -- http://mail.python.org/mailman/listinfo/python-list

Weekly Python Patch/Bug Summary

2005-05-02 Thread Kurt B. Kaiser
Patch / Bug Summary ___ Patches : 322 open ( +6) / 2832 closed ( +1) / 3154 total ( +7) Bugs: 920 open (+12) / 4952 closed (+11) / 5872 total (+23) RFE : 186 open ( +8) / 156 closed ( +3) / 342 total (+11) New / Reopened Patches __ Info Asso

Re: Python Challenge ahead [NEW] for riddle lovers

2005-05-02 Thread Dan Bishop
Dan Christensen wrote: > Reinhold Birkenfeld <[EMAIL PROTECTED]> writes: > > > Dan Christensen wrote: > >> Roel Schroeven <[EMAIL PROTECTED]> writes: > >> > >>> There's no level 12 yet though. > >> > >> Now there's a 12 and a 13 (at least!). > > > > Anyone solved 12? Hints? > > **hint below** > > L

Re: lists in cx_Oracle

2005-05-02 Thread Andrew Dalke
infidel wrote: > I think perhaps you are asking for something that the OCI doesn't > provide. But it doesn't need to be supported by the OCI. > And really, it all boils down to the list comprehension: > > in_clause = ', '.join([':id%d' % x for x in xrange(len(ids))]) And why can't the equivalen

Re: Python Challenge ahead [NEW] for riddle lovers

2005-05-02 Thread Ganesan Rajagopal
> "darren" == darren kirby <[EMAIL PROTECTED]> writes: > quoth the Ganesan Rajagopal: >> I am stuck on level 3. I've tried every re that I can think of. Some body >> give me a clue. >> >> Ganesan >> >> -- >> Ganesan Rajagopal t = /text of page source.../ re.findall('[a-z][A-Z]{3}[

If you use PayPal you might consider an alternative

2005-05-02 Thread Allan
If you used PayPal and are not satisifed with their service there is a new and better service opening. They will be starting up during the early summer this year. The best of all - signup is FREE. Check out their benefits: www.greenzap.com/benefits -- http://mail.python.org/mailman/listinfo/pyt

Re: Python Challenge ahead [NEW] for riddle lovers

2005-05-02 Thread Dan Christensen
Dan Christensen <[EMAIL PROTECTED]> writes: > Roel Schroeven <[EMAIL PROTECTED]> writes: > >> There's no level 12 yet though. > > Now there's a 12 and a 13 (at least!). Any hints for level 13? I know how to make a call, but don't know "who" to call. Dan -- http://mail.python.org/mailman/listin

Re: Python Challenge ahead [NEW] for riddle lovers

2005-05-02 Thread Dan Christensen
Reinhold Birkenfeld <[EMAIL PROTECTED]> writes: > Dan Christensen wrote: >> Roel Schroeven <[EMAIL PROTECTED]> writes: >> >>> There's no level 12 yet though. >> >> Now there's a 12 and a 13 (at least!). > > Anyone solved 12? Hints? **hint below** * * * * * * * Look at the filena

automated response

2005-05-02 Thread ashleyd
I will be out of the office starting Wednesday 04/13 and will return Tuesday 04/26. If you need anything, please contact Scott Carver at 662-890-0901 ext 5512. He can direct you to the right person. Thanks. Ashley L. Doak Knight Transportation -- http://mail.python.org/mailman/listinfo/python-

Re: Multiple threads in a GUI app (wxPython), communication between worker thread and app?

2005-05-02 Thread Paul Rubin
"fo" <[EMAIL PROTECTED]> writes: > Thanks for the replies. I have a Queue object in the main GUI thread, > this gets passed to all the worker threads and they add items to it. > This is all well and good, but what is a good way to get the GUI thread > to send items back to the worker threads?

Re: urllib2 and timeout question

2005-05-02 Thread Skip Montanaro
Gerard> Code below: Order might be important (though hopefully not). Can you give this a try? import time import socket socket.setdefaulttimeout(300) import urllib2 ... Skip -- http://mail.python.org/mailman/listinfo/python-list

Re: Inspect Python Classes for instance data information

2005-05-02 Thread Tim Henderson
Thanks to both of you. Now that I know the correct terminology for what I want to do, I can detirmine the best way to do it. I am not sure if meta-classing is the simplist solution to this problem, however it can be the most elegant. When I have a final implimintation of this project it will be pos

Re: So many things that need to be decided....

2005-05-02 Thread Steve Holden
Heather Stovold wrote: > Wow - deciding to program in python sure requires a lot of decisions! > > So far: > > I've decided on python for the programming language. > I've decided on wxpython for the GUI > I've decided on DrPython for the Editor > > I still need to decide on a database...

Re: Forgot my wrapup of example! Sorry!

2005-05-02 Thread Steve Holden
GMane Python wrote: > So, I forgot the last part of my example that might gel in your mind why > Objects are useful in certain situations. Ok so you maybe followed my > example of the shopping cart. Let's just forget for a moment the use for > shopping carts is for websites. Let's just say you

Re: cgi "print statement" in multithreaded enviroment?

2005-05-02 Thread vegetax
Bengt Richter wrote: > On Mon, 02 May 2005 20:24:02 -0400, vegetax <[EMAIL PROTECTED]> wrote: > >>Irmen de Jong wrote: >> >>> vegetax wrote: How can i use cgi'like print statement in a multitreaded web framework? each thread has its own Servlet instance with request/response objects, >>

Re: Multiple threads in a GUI app (wxPython), communication between worker thread and app?

2005-05-02 Thread fooooo
Thanks for the replies. I have a Queue object in the main GUI thread, this gets passed to all the worker threads and they add items to it. This is all well and good, but what is a good way to get the GUI thread to send items back to the worker threads? -- http://mail.python.org/mailman/listinfo/p

Re: So many things that need to be decided....

2005-05-02 Thread Maurice LING
Hi, It seems that you are just starting on Python, same as my situation a year ago. After almost going down the same route as you do, I tell myself just start on something. You can decide on everything but by the time you've decided, everything changes again. Initially, I started on Java t

Re: Which IDE is recommended?

2005-05-02 Thread Bryan
dcrespo wrote: >>But I personally recommend DrPython. (Not only, I'm a member of the >>project). > > > I saw this message and downloaded DrPython. It's very good: I like the > class/functions browser while I'm coding... but I can't find the > autocompletion feature you talk, and I think this feat

Re: cgi "print statement" in multithreaded enviroment?

2005-05-02 Thread vegetax
vegetax wrote: > Jeff Epler wrote: > >> You could write something like >> class ThreadSpecificFile: >> def set_stdout(f): >> self.files[thread_id] = f >> def write(data): >> self.files[thread_id].write(data) >> sys.stdout = ThreadSpecificFile() >> w

Re: Mouseclick

2005-05-02 Thread garyr
Terje Johan Abrahamsen wrote: > Hello. > > I have been trying desperately for a while to make Python push the > left mousebutton. I have been able to let Python push a button in a > box: > > def click(hwnd): > win32gui.SendMessage(hwnd, win32con.WM_LBUTTONDOWN, 0, 0) > win32gui.SendMessage

Re: WordPress Python Library 1.0

2005-05-02 Thread Cappy2112
If you wan't explain what WordPress is, can you at least supply a link for a page that's in English? -- http://mail.python.org/mailman/listinfo/python-list

Re: cgi "print statement" in multithreaded enviroment?

2005-05-02 Thread Bengt Richter
On Mon, 02 May 2005 20:24:02 -0400, vegetax <[EMAIL PROTECTED]> wrote: >Irmen de Jong wrote: > >> vegetax wrote: >>> How can i use cgi'like print statement in a multitreaded web framework? >>> each thread has its own Servlet instance with request/response objects, >>> sys.stdout = self.response(wh

Re: cgi "print statement" in multithreaded enviroment?

2005-05-02 Thread vegetax
Jeff Epler wrote: > You could write something like > class ThreadSpecificFile: > def set_stdout(f): > self.files[thread_id] = f > def write(data): > self.files[thread_id].write(data) > sys.stdout = ThreadSpecificFile() > where you'll have to fill out

Re: adodb, sql server, and last insert id

2005-05-02 Thread Steve Holden
jdonnell wrote: > I'm not very familiar with sql server or adodb. I'm writing a python > script that uses adodb as described at http://www.ecp.cc/pyado.html, > but I can't figure out how to get the id of my last insert. > The classic method, IIRC, is as follows for SQL Server and recent versions

Re: Europython schedule vs. accomodation/registration deadlines - HUH?

2005-05-02 Thread Steve Holden
Wolfgang Keller wrote: > Hello, > > today I've read the following on the Europython WWW site: > > http://www.europython.org/sections/registration_issues/registration_info > rma > > "Early bird payment ends 15 May." > "Last day for reserving accomodations is 15 May." > > http://www.europython.or

Re: So many things that need to be decided....

2005-05-02 Thread Mike Meyer
"Heather Stovold" <[EMAIL PROTECTED]> writes: > Wow - deciding to program in python sure requires a lot of decisions! It wasn't for me. > So far: > > I've decided on python for the programming language. > I've decided on wxpython for the GUI Hmm. I started writing CGI apps, so I didn't need

Re: empty lists vs empty generators

2005-05-02 Thread Bengt Richter
On 2 May 2005 16:14:57 -0700, [EMAIL PROTECTED] (Brian Roberts) wrote: >I'm using using generators and iterators more and more intead of >passing lists around, and prefer them. However, I'm not clear on the >best way to detect an empty generator (one that will return no items) >when some sort of

Re: cgi "print statement" in multithreaded enviroment?

2005-05-02 Thread Jeff Epler
You could write something like class ThreadSpecificFile: def set_stdout(f): self.files[thread_id] = f def write(data): self.files[thread_id].write(data) sys.stdout = ThreadSpecificFile() where you'll have to fill out a few more things like thread_id,

Re: empty lists vs empty generators

2005-05-02 Thread Jeremy Bowers
On Mon, 02 May 2005 16:14:57 -0700, Brian Roberts wrote: > Q1: Is there a better or alternate way to handle this? Q2: Is there a way > that handles both lists and generators, so I don't have to worry about > which one I've got? Are you in control of your generators? You could put a method on them

Re: So many things that need to be decided....

2005-05-02 Thread Peter Hansen
Heather Stovold wrote: > Wow - deciding to program in python sure requires a lot of decisions! > > So far: > > I've decided on python for the programming language. > I've decided on wxpython for the GUI > I've decided on DrPython for the Editor > > I still need to decide on a database...

Re: Inspect Python Classes for instance data information

2005-05-02 Thread George Sakkis
> > I have no idea how to do the inspection part of this little > > problem. I could just have each class define its own meathod to > > convert to this format, but that would be a lot of work when i > > could just make one class that solves the problem for all classes. > > Is there a way to do this

Re: WordPress Python Library 1.0

2005-05-02 Thread Peter Hansen
John Machin wrote: > On Mon, 02 May 2005 22:30:55 GMT, [EMAIL PROTECTED] (Bengt Richter) wrote: >>Should we expect your "WordPress Python Library 1.0" to do to words >>what the dry cleaners do to suits and shirts then? ;-) > > or perhaps what feet do to grapes? Provide a source of yeast to begin

Re: Inspect Python Classes for instance data information

2005-05-02 Thread George Sakkis
"Tim Henderson" <[EMAIL PROTECTED]> wrote: > Hello > > I want to creat a program that can inspect a set of classes that i have > made and spit out a savable version of these classes. To do this I need > to be able to inspect each class and get all of its instance data as > well as information about

Re: Inspect Python Classes for instance data information

2005-05-02 Thread James Stroud
Its not obvious what you are asking here. Try inheriting from object: >>> class song(object): ... def __init__(self, name, artist, album, published): ... self.name = name ... self.artist = artist ... self.album = album ... self.published = published ... def

So many things that need to be decided....

2005-05-02 Thread Heather Stovold
Wow - deciding to program in python sure requires a lot of decisions! So far: I've decided on python for the programming language. I've decided on wxpython for the GUI I've decided on DrPython for the Editor I still need to decide on a database I've really only used Access, and

Re: WordPress Python Library 1.0

2005-05-02 Thread John Machin
On Mon, 02 May 2005 22:30:55 GMT, [EMAIL PROTECTED] (Bengt Richter) wrote: >On Mon, 02 May 2005 21:14:29 GMT, Michele Ferretti <[EMAIL PROTECTED]> wrote: > >>François Pinard wrote: >>> [Michele Ferretti] >>> http://www.blackbirdblog.it/programmazione/progetti/28 >>> >>> >>> Quoted above, th

Re: cgi "print statement" in multithreaded enviroment?

2005-05-02 Thread Paul Rubin
vegetax <[EMAIL PROTECTED]> writes: > But i want to use "print" as a commodity feature, print >> > self.response,'html..' is longer to type than > self.response.write('html..') w = self.response.write w('html...') w('more html...') w('still more html') -- http://mail.python.org/mailman/listinfo

Inspect Python Classes for instance data information

2005-05-02 Thread Tim Henderson
Hello I want to creat a program that can inspect a set of classes that i have made and spit out a savable version of these classes. To do this I need to be able to inspect each class and get all of its instance data as well as information about a particular meathod. This is what i want it to do:

Re: cgi "print statement" in multithreaded enviroment?

2005-05-02 Thread vegetax
Irmen de Jong wrote: > vegetax wrote: >> How can i use cgi'like print statement in a multitreaded web framework? >> each thread has its own Servlet instance with request/response objects, >> sys.stdout = self.response(which is a file like object) wont work because >> all threads will set the same

can't install a python app, due to what I think are LD_LIBRARY_PATH issues

2005-05-02 Thread ewitkop90
This is the box and the variables. ewitkop $ uname -a SunOS remnssdtoolsp01 5.9 Generic_118558-03 sun4u sparc SUNW,UltraAX-i2 LD_LIBRARY_PATH=:/usr/lib:/usr/local/lib:/opt/sfw/lib:/usr/sfw/lib:/usr/local/lib/python2.3/site-packages/roundup:/usr/lib/lwp:/usr/local/lib/python2.3:/usr/local/lib/pyth

Re: empty lists vs empty generators

2005-05-02 Thread Roy Smith
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Brian Roberts) wrote: > I'm using using generators and iterators more and more intead of > passing lists around, and prefer them. However, I'm not clear on the > best way to detect an empty generator (one that will return no items) > when some s

Re: cgi "print statement" in multithreaded enviroment?

2005-05-02 Thread Irmen de Jong
vegetax wrote: > How can i use cgi'like print statement in a multitreaded web framework? > each thread has its own Servlet instance with request/response objects, > sys.stdout = self.response(which is a file like object) wont work because > all threads will set the same file object and it will be a

cgi "print statement" in multithreaded enviroment?

2005-05-02 Thread vegetax
How can i use cgi'like print statement in a multitreaded web framework? each thread has its own Servlet instance with request/response objects, sys.stdout = self.response(which is a file like object) wont work because all threads will set the same file object and it will be a concurrence mess. I

adodb, sql server, and last insert id

2005-05-02 Thread jdonnell
I'm not very familiar with sql server or adodb. I'm writing a python script that uses adodb as described at http://www.ecp.cc/pyado.html, but I can't figure out how to get the id of my last insert. -- http://mail.python.org/mailman/listinfo/python-list

Re: [wxPython] Many wxPanel forms in 1 wxFrame

2005-05-02 Thread Ed Leafe
On Apr 29, 2005, at 9:48 PM, CYBER wrote: > Is this possible to create 1 wxFrame and > register more than 1 wxPanel in it. > And select the one you want to show at the moment ? > > I'm trying to implement a multistep wizard under wxPython. > I need to be able to hide and show windows inside my > f

Re: WordPress Python Library 1.0

2005-05-02 Thread Peter Hansen
Bengt Richter wrote: > On Mon, 02 May 2005 21:14:29 GMT, Michele Ferretti <[EMAIL PROTECTED]> wrote: >>ok, sorry, but subject is very explicit! > > Should we expect your "WordPress Python Library 1.0" to do to words > what the dry cleaners do to suits and shirts then? ;-) Lose buttons and stain t

Re: empty lists vs empty generators

2005-05-02 Thread jfj
Brian Roberts wrote: > I'm using using generators and iterators more and more intead of > passing lists around, and prefer them. However, I'm not clear on the > best way to detect an empty generator (one that will return no items) > when some sort of special case handling is required. > Usually

RE: problem in the compiler ?

2005-05-02 Thread Delaney, Timothy C (Timothy)
Glauco Silva wrote: > when i creat a RadioButton and put a command = self.Function , this > function is called in the creation of RadioButton. It´s right this or > it´s wrong ? http://www.catb.org/~esr/faqs/smart-questions.html I'm pretty sure I can guess exactly what the problem is. I suspect

Re: python and os.system() failure

2005-05-02 Thread Michael Hoffman
Anthony wrote: > I only have a tempfile object: > > tmp = tempfile.mkstemp(dir="/var/tmp/") Why aren't you using NamedTemporaryFile instead? Using mkstemp adds a lot of complications that are usually unnecessary. > I will try to explicitly call a close() or whatever the syntax is to > finalize

Re: Mouseclick

2005-05-02 Thread M.E.Farmer
This could be fun! # random clicks # play with values to maximize annoyance if __name__ == "__main__": import random for i in range(1000): x = random.randint(0,800) y = random.randint(0,600) Click(x,y) time.sleep(random.randint(0,20)) -- http://mail.python.

empty lists vs empty generators

2005-05-02 Thread Brian Roberts
I'm using using generators and iterators more and more intead of passing lists around, and prefer them. However, I'm not clear on the best way to detect an empty generator (one that will return no items) when some sort of special case handling is required. Typical code for handling an empty list:

Re: python and os.system() failure

2005-05-02 Thread Anthony
Thanks for the tip on strace. I will look into it. I only have a tempfile object: tmp = tempfile.mkstemp(dir="/var/tmp/") I will try to explicitly call a close() or whatever the syntax is to finalize the object to deletion by garbage collection. Thanks, Kenny -- http://mail.python.org/mailma

Re: Can't get compression in Python zip script.

2005-05-02 Thread M.E.Farmer
Yea I get it now. I didn't realize that there where other possible un-implemented compression methods. Fredrik's post enlightened me. The problem was a false assumption that compression=0 in the arguments was == False seemed logical that compression=1 was True. Sometimes things aren't logical till

Re: Mouseclick

2005-05-02 Thread snoe
I did this a little while ago, there's some setup stuff in here for sending keyboard commands as well. Coercing the structs into python was the hardest part. Basically Click(x,y) moves the mouse to the specified spot on the screen (not window) sends a mouse down followed by mouse up event then retu

Re: Python Challenge ahead [NEW] for riddle lovers

2005-05-02 Thread darren kirby
quoth the Reinhold Birkenfeld: > > Somehow writing '[a-z]{1}' is strange... > > Reinhold >>> t = /text of page source.../ >>> re.findall('[a-z][A-Z]{3}[a-z][A-Z]{3}[a-z]', t) Sorry dude! When it comes to logic puzzles I am easily frustrated, and that leads to unclear thinking... -d -- darren

Re: How close program in the wxPython?

2005-05-02 Thread Kartic
The Great 'Tian' uttered these words on 5/2/2005 2:00 PM: > I have made a program in wxpython, but how could i exit the program? I > am using wxFrame for my window, what is the function to close the > program? > > Thanks!! > Tian, See below: --- CloseDemo.pyw import wx class MainFrame(w

Re: WordPress Python Library 1.0

2005-05-02 Thread Bengt Richter
On Mon, 02 May 2005 21:14:29 GMT, Michele Ferretti <[EMAIL PROTECTED]> wrote: >François Pinard wrote: >> [Michele Ferretti] >> >>>http://www.blackbirdblog.it/programmazione/progetti/28 >> >> >> Quoted above, the full content of your article. Is it a message? It >> surely does not look like an

Re: Libraries for creating graphs

2005-05-02 Thread Fabio Pliger
"Florian Lindner" <[EMAIL PROTECTED]> ha scritto nel messaggio news:[EMAIL PROTECTED] > Hello, > I'm looking for libraries to create graphs. I'm not talking about plotting a > function like f(x)=x^2 just plotting a couple of values into a short, maybe > interpolating them. Output should be somethi

Re: How close program in the wxPython?

2005-05-02 Thread Fabio Pliger
"Tian" <[EMAIL PROTECTED]> ha scritto nel messaggio news:[EMAIL PROTECTED] > I have made a program in wxpython, but how could i exit the program? I > am using wxFrame for my window, what is the function to close the > program? > > Thanks!! > Wich version of wx? You cannot exit the program clickin

Re: Tripoli: a Python-based triplespace implementation

2005-05-02 Thread Dominic Fox
> Is there some interoperability requirement with non-Python apps? If not, > why not just use pickle or marshal? I would imagine that much of the existing, current and useful triple-based data out there is serialized (or serializable) in RDF/XML. I wouldn't choose it as a serialization format arb

Re: Can't get compression in Python zip script.

2005-05-02 Thread Scott David Daniels
Fredrik Lundh wrote: > M.E.Farmer wrote: > >>I saw compression=0 and assumed that 1 would mean true, but no! >>zipfile.ZIP_DEFLATED = 8, defies logic, it is the only compression type >>why not accept any non zero as compression. > > "is the only compression type" ? quoting from the ZIP specifica

Re: Using wildcards...

2005-05-02 Thread Harlin Seritt
George that is what I'm looking for. Thanks, Harlin -- http://mail.python.org/mailman/listinfo/python-list

Re: Quick and dirty dialogs?

2005-05-02 Thread Harlin Seritt
Try EasyDialog: http://www.talkaboutprogramming.com/group/comp.lang.python/messages/314003.html It should also be on Vaults of Parnassus. -- http://mail.python.org/mailman/listinfo/python-list

Re: compare two voices (Jeremy Bowers)

2005-05-02 Thread Jeremy Bowers
On Mon, 02 May 2005 16:37:19 -0500, phil wrote: > I will defend one statement though. I have yet to see anything which > Python would not make a good wrapper for. Some of the OpenGL pygame stuff > is very cool. Alright, you got me :-) I got excessively broad. -- http://mail.python.org/mailman/l

Re: WordPress Python Library 1.0

2005-05-02 Thread Klaus Alexander Seistrup
Michele Ferretti wrote: > ok, sorry, but subject is very explicit! Still, it's insufficient for those of us who don't know what WordPress is, and it's a waste of time for those of us who don't speak Italian. C'mon, pal, you can do much better than that! -- Klaus Alexander Seistrup Magnetic I

Re: MRO problems with diamond inheritance?

2005-05-02 Thread John Perks and Sarah Mount
"Michele Simionato" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > BTW, what it your use case? I have yet to see a single compelling use > case for multiple inheritance, so I am > curious of what your design is. Before I start, I should mention that my workaround I listed previousl

Re: WordPress Python Library 1.0

2005-05-02 Thread Klaus Alexander Seistrup
Michele Ferretti wrote: > ok, sorry, but subject is very explicit! Still, it's insufficient for those of us who doesn't know what WordPress is, and it's a waste of time for those of us who don't speak Italian. C'mon, pal, you can do much better than that! -- Klaus Alexander Seistrup Magnetic

compare two voices (Jeremy Bowers)

2005-05-02 Thread phil
>>I am gonna step way out of my mathematical depth here >> > > I mean no disrespect, but this is the last accurate statement you made. > You are probably correct, I am certainly out of my field and hope that noone would embark on a hopeless project based on my few words. However, the school di

Re: sys.stdout question

2005-05-02 Thread Peter Otten
chris patton wrote: > I tried adding the comma at the end > print 'hello', > It still added that extra character. http://mail.python.org/pipermail/python-list/2003-September/184181.html Peter -- In diesen Kreisen kreiselt sich der Kreisler -- http://mail.python.org/mailman/listinfo/python-li

Re: sys.stdout question

2005-05-02 Thread M.E.Farmer
Save your script and run that from a commandline or import it with your python shell. ['this is a string.', ' ', 'This is another string.'] You are seeing a side effect of the interactive shell. ['this is a string.', '\n', 'This is another string.','\n'] It would be hard to get to the next prompt

Re: Quick and dirty dialogs?

2005-05-02 Thread andy
Stopped being lazy and found the TK answer myself. (it needs some extra stuff installed. see the macpython site's faq for info). Still be interested to know if there is a sem-cross-platform solution to simple dialogs that doesn't need TK... -- http://mail.python.org/mailman/listinfo/python-list

Re: Sequences in list

2005-05-02 Thread Michael Spencer
Michael Spencer wrote: > > def compare_forms(sequence): > """test whether all groups of a sequence have the same form""" > for length in range(4,2,-1): # look for longest match first oops, make that range(4,1,-1) or, simply (4,3,2) Michael -- http://mail.python.org/mailman/listinfo/

Libraries for creating graphs

2005-05-02 Thread Florian Lindner
Hello, I'm looking for libraries to create graphs. I'm not talking about plotting a function like f(x)=x^2 just plotting a couple of values into a short, maybe interpolating them. Output should be something like JPEG. Thx, Florian -- http://mail.python.org/mailman/listinfo/python-list

Re: Comparision of GUI framworks

2005-05-02 Thread djw
Florian Lindner wrote: > Hello, > I've read the chapter in the Python documentation, but I'm interested in a a > more in-depth comparision. Especially regarding how pythonic it is and how > well it performs and looks under Windows. > I've some C++ experiences with Qt, so I'm very interested to have

Re: Sequences in list

2005-05-02 Thread Michael Spencer
[EMAIL PROTECTED] wrote: > Hi All, > > I wonder could someone help me with this? > > What I want to do is search through a list of letters and look for > adjacent groups of letters that form sequences, not in the usual way of > matching say abc to another appearance later on in the list but to lo

Re: Python Challenge ahead [NEW] for riddle lovers

2005-05-02 Thread John Hazen
* Reinhold Birkenfeld <[EMAIL PROTECTED]> [2005-05-02 06:19]: > John Hazen wrote: > > Have you found the zip file yet? > > > > (I did, and I still can't figure it out) > > It's best when you use the zipfile module. Cool. I had just unzipped the zipfile, and was looking at the files directl

Re: WordPress Python Library 1.0

2005-05-02 Thread Michele Ferretti
François Pinard wrote: > [Michele Ferretti] > >>http://www.blackbirdblog.it/programmazione/progetti/28 > > > Quoted above, the full content of your article. Is it a message? It > surely does not look like an English sentence. > > Should we start a browser each time we see an URL? Many of us

Re: Running script in background.

2005-05-02 Thread Peter Hansen
Larry Bates wrote: > You have two choices: > > 1) You can use Windows Scheduler to run the script in the > background. I have lots of scripts that I do this with. > > 2) You can convert the script into a Windows Service, which > will run in the background continuously. > > I know of no way to m

Re: WordPress Python Library 1.0

2005-05-02 Thread François Pinard
[Michele Ferretti] > http://www.blackbirdblog.it/programmazione/progetti/28 Quoted above, the full content of your article. Is it a message? It surely does not look like an English sentence. Should we start a browser each time we see an URL? Many of us are not in such an Internet starvation.

Re: Can't get compression in Python zip script.

2005-05-02 Thread M.E.Farmer
Thank you! """ZIP_DEFLATED The numeric constant for the usual ZIP compression method. This requires the zlib module. No other compression methods are currently supported.""" That is where I got the 'only compression type'. It all makes sense now. Thanks again, M.E.Farmer -- http://mail.python

Re: Killing process

2005-05-02 Thread Peter Hansen
Harlin Seritt wrote: > I actually tried mapping the PID to an integer value and it still > didn't work. At any rate, I found another way to do it. Thanks anyways. For those who might follow in your footsteps, it might be nice to describe your solution... (and to reduce the likelihood somebody wi

Re: sys.stdout question

2005-05-02 Thread chris patton
I tried adding the comma at the end print 'hello', It still added that extra character. -- http://mail.python.org/mailman/listinfo/python-list

WordPress Python Library 1.0

2005-05-02 Thread Michele Ferretti
http://www.blackbirdblog.it/programmazione/progetti/28 -- Michele Ferretti ICQ#: 14491159 Skype: m.ferretti79 black DOT bird AT tiscali DOT it www.blackbirdblog.it -- http://mail.python.org/mailman/listinfo/python-list

Re: Can't get compression in Python zip script.

2005-05-02 Thread Fredrik Lundh
M.E.Farmer wrote: > I saw compression=0 and assumed that 1 would mean true, but no! > zipfile.ZIP_DEFLATED = 8, defies logic, it is the only compression type > why not accept any non zero as compression. "is the only compression type" ? quoting from the ZIP specification: compression metho

Re: compare two voices

2005-05-02 Thread Jeremy Bowers
On Mon, 02 May 2005 13:58:07 -0500, phil wrote: > You didn't indicate how deep you want to get into the code yourself. > > I am gonna step way out of my mathematical depth here I mean no disrespect, but this is the last accurate statement you made. I wouldn't say this, except that if the origin

Re: Mouseclick

2005-05-02 Thread terjeja
Benji York wrote: > Terje Johan Abrahamsen wrote: > > I have been trying desperately for a while to make Python push the > > left mousebutton. > > Here's some code I've used to simulate a *right* click, but it should > be obvious how to make it do what you want: > > void sendRightClick(void) > {

Re: Mouseclick

2005-05-02 Thread terjeja
Benji York wrote: > Terje Johan Abrahamsen wrote: > > I have been trying desperately for a while to make Python push the > > left mousebutton. > > Here's some code I've used to simulate a *right* click, but it should > be obvious how to make it do what you want: > > void sendRightClick(void) > {

  1   2   3   >