Re: Displaying formatted - data with TKinter

2005-05-02 Thread dimitri pater
hello, take a look at the multilistbox: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52266 http://www.haucks.org/download/MultiListbox.py.gz I use it for this purpose, it looks quite nice regards, DimitriOn 1 May 2005 19:10:19 -0700, custard_pie <[EMAIL PROTECTED]> wrote: Hi,..I found

What's this error then?

2005-05-02 Thread Sara Khalatbari
You remember me asking about running a program in my code...I got a problem here I copied the msgfmt here : [EMAIL PROTECTED] HEADER]$ ls allsamples Backup file-roller.HEAD.fa.po msgfmt.py header.py & my code is: #! /usr/bin/env python import os fro

Re: MRO problems with diamond inheritance?

2005-05-02 Thread Michele Simionato
John & Sarah: > Incidentally, is it safe to have an mro() method in a class, > or is this > as reserved as the usual __reserved_words__? Does Python > use mro() (as > opposed to __mro__) internally or anything? .mro() is a metamethod, it is a method of the metaclass, not of the class. So you can o

Re: Design advice for unit test asserters

2005-05-02 Thread Edvard Majakari
"Gary" <[EMAIL PROTECTED]> writes: Hi again, > First, thanks to both Kent and Edvard for useful comments. > I certainly need to consider whether it make sense to switch to py.test at > this time; its simplicity is attractive. For what it's worth, I've also coded a simple py.test skeleton gener

[no subject]

2005-05-02 Thread rijish valoorthodi rajan
  hello all I am a member of a team dedicated to make a client server database application and our main concern is the speed with which the system performs. we are very new to python. but after reading a lot of documents and consulting some experts we decided to work it out using PYTHON. we plan

Re: What's this error then?

2005-05-02 Thread Wolfram Kraus
Sara Khalatbari wrote: > You remember me asking about running a program in my > code...I got a problem here > [...] > & my code is: > #! /usr/bin/env python ^ Remove this space, the line should be: #!/usr/bin/env python > > import os > from os import execl > > os.execl ('/home/sara/PYTHO

Re: MRO problems with diamond inheritance?

2005-05-02 Thread Michele Simionato
M.E. Farmer: >You would be surprised how many answers you can squeeze out of that one >URL. >That whole page is worth a month of study( for me anyway ). One month only? You must be pretty smart, one could easily extract a book from that page ;) >I am still trying to grasp the 'purpose' of classm

Re: gtk/qt scintilla help !

2005-05-02 Thread fabien
Neil Hodgson wrote: > Fabien: > > >>There is a lexPOV.cxx file in the package, but I can not find any POV >>keywords in any file ( there are about 150 POV keywords). Did i miss it, >>and if not, how do I create one and include it for the library building ? > > >The Scintilla web site, doc

Re: MRO problems with diamond inheritance?

2005-05-02 Thread Michele Simionato
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. Michele Simionato -- http://mail.python.org/mailman/listinfo/python-list

pyFLTK

2005-05-02 Thread Jason Manley
Hello I am very interested in the pyFLTK GUI widget set. Unfortunately the webpage and mailing lists are very quiet, does anyone here use it or know of a resource I can access to help me with some examples? Cheers JM -- http://mail.python.org/mailman/listinfo/python-list

Re: BitKeeper for Python?

2005-05-02 Thread Nick Craig-Wood
John Smith <[EMAIL PROTECTED]> wrote: > I am going to be working with some people on a project that is going to be > done over the internet. I am looking for a good method of keeping everyone's > code up to date and have everyone be able to access all the code including > all the changes and be

Re: Tripoli: a Python-based triplespace implementation

2005-05-02 Thread Dominic Fox
karouri wrote: > Interesting, but I wonder if you are aware of pylinda > (http://www-users.cs.york.ac.uk/~aw/pylinda/) and if so, what's the > difference? Tripoli trades off some of the generality of PyLinda in order to support some performance tweaks and some additional graph-related operations.

Re: __del__ and logging

2005-05-02 Thread flupke
Vinay Sajip wrote: > flupke nonexistingdomain.com> writes: > > >>Hi, >> >>i have a class and a class attribute log which is a logger object. In >>the __del__() function i want to log a message but it fails even if i >>use self.__class__.log. >> >>The error i get is this: >>Traceback (most rece

Re: Best way to create temporary file?

2005-05-02 Thread Frank Millman
Ok, thanks for the advice. Frank -- http://mail.python.org/mailman/listinfo/python-list

Is python support jxta now?

2005-05-02 Thread monkey
Hi all, just read from the jxta.org that a python implemention of jxta framework is being developed. But its project page doesn't state whether it can be use now.. I am interested to learn to develop p2p app, that's why I am studying python now. Or there is any lib in python that already implement

Re: gtk/qt scintilla help !

2005-05-02 Thread fabien
John Ridley wrote: > fabien wrote on Sun, 01 May 2005 05:40:05 -0700: > Hello John, > >>Hi, > > > Hello Fabien > > >>I am writing a POV-RAY editor with Python using >>either QT or GTK as GUI 'wrapper'. ( I am still trying both ) >> >>[snip] >> >>I have also downloaded qscintilla-1.62-gpl-1.5.

PyAuthD Beta 2a

2005-05-02 Thread Heiko Wundram
PyAuthD - Python Authentication Daemon -- PyAuthD is a project to create PAM, NSS and PPPd modules which communicate with a running Python authentication daemon using a Unix Domain socket. The project focusses so far on creating the necessary modules for PAM,

Using wildcards...

2005-05-02 Thread Harlin Seritt
I looked all over the net but could not find if it is possible to insert wildcards into strings. What I am trying to do is this: I am trying to parse text from a Bible file. In case you're not familiar with the way the Bible organizes itself, it is broken down into Books > Chapters > Verses. The pa

Re: Displaying formatted - data with TKinter

2005-05-02 Thread Harlin Seritt
I've used multiple listboxes in the past. Also, you can build a widget that contains multiple listboxes as well. As far as there being one ready to go, I don't know of one. -- http://mail.python.org/mailman/listinfo/python-list

Re: Is python support jxta now?

2005-05-02 Thread Diez B. Roggisch
monkey wrote: > Hi all, just read from the jxta.org that a python implemention of jxta > framework is being developed. But its project page doesn't state whether > it can be use now.. > > I am interested to learn to develop p2p app, that's why I am studying > python now. Or there is any lib in py

Re: Python Challenge ahead [NEW] for riddle lovers

2005-05-02 Thread Reinhold Birkenfeld
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? thanks, Reinhold -- http://mail.python.org/mailman/listinfo/python-list

Re: Which IDE is recommended?

2005-05-02 Thread Dave Cook
On 2005-04-29, John J. Lee <[EMAIL PROTECTED]> wrote: > Dave Cook <[EMAIL PROTECTED]> writes: >> Pydev has some compelling features, but I wish I didn't have to run eclipse >> On 2005-04-27, monkey <[EMAIL PROTECTED]> wrote: > What are those compelling features of Pydev, for an emacs user? For m

Re: doctest's ELLIPSIS

2005-05-02 Thread Sébastien Boisgérault
(Forwarded from Python bug tracker) [ 1192554 ] doctest's ELLIPSIS and multiline statements Tim Peters: [...] doctest has few syntax requirements, but the inability to start an expected output block with "..." has always been one of them, and is independent of the ELLIPSIS gimmick. I doubt this

Re: Using wildcards...

2005-05-02 Thread Roel Schroeven
Harlin Seritt wrote: > I looked all over the net but could not find if it is possible to > insert wildcards into strings. What I am trying to do is this: I am > trying to parse text from a Bible file. In case you're not familiar > with the way the Bible organizes itself, it is broken down into Boo

Comparision of GUI framworks

2005-05-02 Thread Florian Lindner
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 PyQt compared to wxWindows and T

Re: MRO problems with diamond inheritance?

2005-05-02 Thread M.E.Farmer
Michele Simionato wrote: > M.E. Farmer: > > >You would be surprised how many answers you can squeeze out of that > one > >URL. > >That whole page is worth a month of study( for me anyway ). > > One month only? You must be pretty smart, one could easily extract > a book from that page ;) No, I was b

Re: Using wildcards...

2005-05-02 Thread Kent Johnson
Harlin Seritt wrote: > I looked all over the net but could not find if it is possible to > insert wildcards into strings. What I am trying to do is this: I am > trying to parse text from a Bible file. In case you're not familiar > with the way the Bible organizes itself, it is broken down into Book

Re: MRO problems with diamond inheritance?

2005-05-02 Thread Michele Simionato
Well, writing that book would be a major undertaking that I am not willing to take any soon ;) However, all you are asking for is already in my lectures at ACCU: http://www.reportlab.org/~andy/accu2005/pyuk2005_simionato_wondersofpython.zip >From the README: """ Generally speaking these lecture

Re: Using wildcards...

2005-05-02 Thread George Yoshida
Harlin Seritt wrote: > {1:1} Random text here. {1:2} More text here. and so on. > > Of course the {*} can be of any length, so I can't just do .split() > based on the length of the bracket text. What I would like to do is to > .split() using something akin to this: > > textdata.split('{*}') # The

ICQ module ?

2005-05-02 Thread Lad
Hello , Is there an ICQ module? I would like to send a message to users in my contact list, check if a user is online etc. Is there a support in Python? Thanks L.B -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Challenge ahead [NEW] for riddle lovers

2005-05-02 Thread [EMAIL PROTECTED]
Any hints on level 6 ? There is "zip" in the page source, "ZIp" in the image data, but have no clue what to do with them - tried many things :). Thanks, Maciek -- http://mail.python.org/mailman/listinfo/python-list

Locale and cookies

2005-05-02 Thread dagurp
I'm doing a small mod_python project and I'm using a locale for my own language. This is not a problem until I start using cookies because the cookie module in mod_python uses time.strftime() to write the expiration times and therefore makes invalid cookies. I tried to fix this by changing the loca

Python sockets and recvmsg

2005-05-02 Thread Heiko Wundram
Hi all! I've read up on unix domain sockets, and I've seen that you can send out of bound messages such as sending the processes credentials over the socket. Receiving this requires to call recvmsg, which seems to be unavailable on the standard Python socket type. How would you go about implem

Re: Python sockets and recvmsg

2005-05-02 Thread Heiko Wundram
On Monday 02 May 2005 14:50, Heiko Wundram wrote: > How would you go about implementing this functionality? I don't think that > a standard recv() does what I want... Okay, looking at google would've been appropriate... There's Python Eunuchs... I wonder why this hasn't made it into the standard

Re: BitKeeper for Python?

2005-05-02 Thread Bruce Stephens
Nick Craig-Wood <[EMAIL PROTECTED]> writes: [...] > You could try Mercurial > > http://www.selenic.com/mercurial/ Or Codeville, also written in Python. > which aims at being a true bk replacement. Its also written in > python. Its being developed at the moment... Codeville's said to be pre

Re: MRO problems with diamond inheritance?

2005-05-02 Thread M.E.Farmer
>Well, writing that book would be a major undertaking that I am not >willing to take any soon ;) Well at least you didn't say NO, so when you DO write the book I will buy a copy. >However, all you are asking for is already in my lectures at ACCU How many people can say ' No book just these lecture

Re: Supercomputer and encryption and compression @ rate of 96%

2005-05-02 Thread km
Hi all, This was posted long ago. I tried to compress a mp3 file but i couldnt get the keycode+".out" file which is of size 1 bit. instead it is printed to STDOUT. i am usng python 2.4 . i understand that the keycode is embedded in the filename itself. Is it a problem with python not able to c

Re: Locale and cookies

2005-05-02 Thread Klaus Alexander Seistrup
[EMAIL PROTECTED] wrote: > I tried to fix this by changing the locale back to "English" > before creating cookies and that works on Windows but not for > Linux. If I use "en_EN.ISO8859-1" it works on Linux but not > on Windows. How about setting locale to "C" or "POSIX"? -- Klaus Alexander Seis

Re: Which IDE is recommended?

2005-05-02 Thread dcrespo
> 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 feature is very important. Whe

Re: PyAuthD Beta 2a

2005-05-02 Thread Heiko Wundram
On Monday 02 May 2005 12:58, Heiko Wundram wrote: > Current Release > --- Sorry for all the posting, but I'm having trouble setting up Subversion properly... Anyway, the release has moved to its final destination: http://193.174.104.108/svn/repos/PyAuthD/tags/beta-2a and of course i

Re: Is python support jxta now?

2005-05-02 Thread monkey
> Bittorrent, one of the most actively used p2p protocols is _written_ in > python. > > Diez B. Roggisch Hey man, no, the jxta p2p protocols is not mean the bittorrent stuff. It is a fully decentralized network protocol, not confine to file transfer. -- http://mail.python.org/mailman/listinfo/p

Re: Comparision of GUI framworks

2005-05-02 Thread monkey
wxPython rules ( ; Go to http://wxpython.org for details... "Florian Lindner" <[EMAIL PROTECTED]> ??? news:[EMAIL PROTECTED] ???... > 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

Reading output from standard out

2005-05-02 Thread Thierry Lam
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 text area.   Thanks Thierry

Re: Python Challenge ahead [NEW] for riddle lovers

2005-05-02 Thread John Hazen
* [EMAIL PROTECTED] <[EMAIL PROTECTED]> [2005-05-02 05:10]: > Any hints on level 6 ? > There is "zip" in the page source, "ZIp" in the > image data, but have no clue what to do with them > - tried many things :). Have you found the zip file yet? (I did, and I still can't figure it out. I'm wond

Re: Which IDE is recommended?

2005-05-02 Thread Franz Steinhaeusler
On 2 May 2005 06:08:02 -0700, "dcrespo" <[EMAIL PROTECTED]> 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: Hello Daniel, thank you, >I like the >class/functions browser while I'm coding..

Re: Python Challenge ahead [NEW] for riddle lovers

2005-05-02 Thread Reinhold Birkenfeld
John Hazen wrote: > * [EMAIL PROTECTED] <[EMAIL PROTECTED]> [2005-05-02 05:10]: >> Any hints on level 6 ? >> There is "zip" in the page source, "ZIp" in the >> image data, but have no clue what to do with them >> - tried many things :). > > Have you found the zip file yet? > > (I did, and I stil

Re: Which IDE is recommended?

2005-05-02 Thread Franz Steinhaeusler
On Mon, 02 May 2005 15:29:58 +0200, Franz Steinhaeusler <[EMAIL PROTECTED]> wrote: >3) I think, you meant "Code Completition": >for example you type: os. and with the "." os.chmod, os.chdir, ... >appear in a completition list box. BTW: If it doesn't seem to work: Make sure, to enable it in Option

Re: BitKeeper for Python?

2005-05-02 Thread Ville Vainio
> "Bruce" == Bruce Stephens <[EMAIL PROTECTED]> writes: Bruce> Nick Craig-Wood <[EMAIL PROTECTED]> writes: Bruce> [...] >> You could try Mercurial >> >> http://www.selenic.com/mercurial/ Bruce> Or Codeville, also written in Python. Or bazaar-ng, also written in pyth

Can't get compression in Python zip script.

2005-05-02 Thread [EMAIL PROTECTED]
Hello, I following an example on how to zip files from the www.devshed.com site. I can create a zip package, however I am not getting any compression. 120M file stays 120M within the zip package. I need to know how to set or activate the compression values. here is the code I'm using: >import zip

Re: Python interpreter in Basic or a Python-2-Basic translator.

2005-05-02 Thread rrr
On 1 May 2005 at 6:18, Engineer wrote: > The security 'droids have decided that since the MS Office Suite is a > "standard" application then software written in MS Office VBA must be > "safe." Any other development environments (such as Java, Perl, > Cygwin) are "unsafe" and can't be installed.

Reading output from standard out

2005-05-02 Thread Thierry Lam
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 text area.   Thanks Thierry

Re: Python Challenge ahead [NEW] for riddle lovers

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

Re: Python Challenge ahead [NEW] for riddle lovers

2005-05-02 Thread Maciek Starzyk
On 5/2/05, John Hazen <[EMAIL PROTECTED]> wrote: > * [EMAIL PROTECTED] <[EMAIL PROTECTED]> [2005-05-02 05:10]: > > Any hints on level 6 ? > > There is "zip" in the page source, "ZIp" in the > > image data, but have no clue what to do with them > > - tried many things :). > > Have you found the zip

Re: Which IDE is recommended?

2005-05-02 Thread vkeyboard
Also take a look at Stani's Python Editor http://spe.pycs.net -- http://mail.python.org/mailman/listinfo/python-list

Re: Tripoli: a Python-based triplespace implementation

2005-05-02 Thread Skip Montanaro
Dominic> Tripoli will eventually support RDF/XML as a format for Dominic> importing and exporting triples. Is there some interoperability requirement with non-Python apps? If not, why not just use pickle or marshal? Slo[ -- http://mail.python.org/mailman/listinfo/python-list

pop3proxy

2005-05-02 Thread BrokenClock
Hello every body, Here is a python newbie! I've choose it to make a pop3 proxy - I want to filter content between a pop3 client and a pop3 server, and I have no control on the server... First, I wanted to do an non-filtering, just logging, mono-thread proxy to make some test.. Based on the RFC

Re: BitKeeper for Python?

2005-05-02 Thread Bruce Stephens
Ville Vainio <[EMAIL PROTECTED]> writes: [...] > Bruce> Or Codeville, also written in Python. > > Or bazaar-ng, also written in python. > > Bruce> Codeville's said to be pretty usable. > > Ditto, through the repo format has not been stabilized yet. The impression I get is that bazaar-ng

Re: BitKeeper for Python?

2005-05-02 Thread Jp Calderone
On 02 May 2005 09:30:05 GMT, Nick Craig-Wood <[EMAIL PROTECTED]> wrote: >John Smith <[EMAIL PROTECTED]> wrote: >> I am going to be working with some people on a project that is going to be >> done over the internet. I am looking for a good method of keeping everyone's >> code up to date and have

Re: pop3proxy

2005-05-02 Thread Just
In article <[EMAIL PROTECTED]>, BrokenClock <[EMAIL PROTECTED]> wrote: > Here is a python newbie! I've choose it to make a pop3 proxy - I want to > filter content between a pop3 client and a pop3 server, and I have no > control on the server... > First, I wanted to do an non-filtering, just log

Re: BitKeeper for Python?

2005-05-02 Thread John P. Speno
In <[EMAIL PROTECTED]> Ville Vainio <[EMAIL PROTECTED]> writes: >> "Bruce" == Bruce Stephens <[EMAIL PROTECTED]> writes: >Bruce> Nick Craig-Wood <[EMAIL PROTECTED]> writes: >Bruce> [...] >>> You could try Mercurial >>> >>> http://www.selenic.com/mercurial/ >Bruce> Or

Re: pop3proxy

2005-05-02 Thread BrokenClock
Thank you! At a first glance, it seems to be very similar to what I need. More to come when I go deeper... Just a écrit : > In article <[EMAIL PROTECTED]>, > BrokenClock <[EMAIL PROTECTED]> wrote: > > >>Here is a python newbie! I've choose it to make a pop3 proxy - I want to >>filter content

Re: pop3proxy

2005-05-02 Thread Jp Calderone
On Mon, 02 May 2005 16:05:13 +0200, BrokenClock <[EMAIL PROTECTED]> wrote: >Hello every body, > >Here is a python newbie! I've choose it to make a pop3 proxy - I want to >filter content between a pop3 client and a pop3 server, and I have no >control on the server... >First, I wanted to do an non-fi

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

2005-05-02 Thread M.E.Farmer
zipfile.ZipFile.__init__(self, filename, mode='r', compression=0) Open the ZIP file with mode read "r", write "w" or append "a". >import zipfile >zip = zipfile.ZipFile('', 'w', compression=1) >zip.write('') >zip.close() Warning about zipfile module: In Python2.2 this is true, maybe 2.3 and 2.

Re: BitKeeper for Python?

2005-05-02 Thread Bruce Stephens
"John P. Speno" <[EMAIL PROTECTED]> writes: [...] > Too many choices here. Is anyone planning a PySCMOff blog yet ? > > Python, the language that makes reinventing the wheel a little too > easy sometimes. Why stick to Python? There seem to be about a dozen newish SCM's around at the moment, in

problem in the compiler ?

2005-05-02 Thread Glauco Silva
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 ? Thank you Glauco  No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.11.1 - Release Da

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

2005-05-02 Thread Steve Holden
[EMAIL PROTECTED] wrote: > Hello, > I following an example on how to zip files from the www.devshed.com > site. > I can create a zip package, however I am not getting any compression. > 120M file stays 120M within the zip package. > I need to know how to set or activate the compression values. > h

SWIG -- Passing python proxy class instance to python callback

2005-05-02 Thread Jeff
I'm trying to pass a proxy class instance (SWIG generated) of CClass, to a python callback function from C++. The proxy class instance of CClass is created from a pointer to the C++ class CClass. Using the code below, I receive the error message: "AttributeError: 'PySwigObject' object has no att

Re: How to kill a SocketServer?

2005-05-02 Thread [EMAIL PROTECTED]
[Skip Montanaro] > > def serve_forever(self): > > while self.serving: > > r,w,e = select.select([self.socket], [], [], self.pause) > > if r: > > self.handle_request() > > > > and set self.pause to something short-ish. The select call times out an

Re: How to kill a SocketServer?

2005-05-02 Thread Paul Rubin
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > > Ah, good point. Something like this should probably be added to > > SocketServer.py (optional timeout parameter to serve_forever), or at > > least the trick should be mentioned in the docs. > > I like this idea, and perhaps you all could come up

Re: Setting win32 console title from Python

2005-05-02 Thread Duncan Booth
runes wrote: > Hi Duncan, sorry, I was unprecise. I'm thinking of a script, called > t.py that can be used in the console like an ordinary command. Som if > I change directory from S:\scripts to d:\projects and execute the > script the title changes to "projects" etc. > > I have that function

Re: Which IDE is recommended?

2005-05-02 Thread dcrespo
Hi. You were right: I meant "Code Completition". I did what you told me to do. I get now auto completition of code. For example: import wx wx.(here appear a list with the possibilities) But (there's always a "but") with: button = wx.Button(...) when I write "button." there's a flick of the

Re: lists in cx_Oracle

2005-05-02 Thread infidel
Something like this might work for you: >>> ids= ['D102', 'D103', 'D107', 'D108'] >>> in_clause = ', '.join([':id%d' % x for x in xrange(len(ids))]) >>> sql = "select * from tablename where id in (%s)" % in_clause >>> import cx_Oracle as ora >>> con = ora.connect('foo/[EMAIL PROTECTED]') >>> cur =

Re: Webbrowser On Windows

2005-05-02 Thread J Correia
"M.E.Farmer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I played around with it. > > import pythoncom > from win32com.client import Dispatch > ###

Re: Python Challenge ahead [NEW] for riddle lovers

2005-05-02 Thread Roel Schroeven
John Hazen wrote: > * [EMAIL PROTECTED] <[EMAIL PROTECTED]> [2005-05-02 05:10]: > >>Any hints on level 6 ? >>There is "zip" in the page source, "ZIp" in the >>image data, but have no clue what to do with them >>- tried many things :). > > > Have you found the zip file yet? > > (I did, and I s

Re: Which IDE is recommended?

2005-05-02 Thread Steffen Glückselig
> I'm a fan of PSPad. It's free, light weight, and works with > everything. I want to second that. For small scripts PSPad is definitely very useful and comfortable. For larger scripts I'd consider something with code-completion. Maybe PyDev. best regards Steffen -- http://mail.python.org/mai

Re: Forgot my wrapup of example! Sorry!

2005-05-02 Thread GMane Python
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 were going to write the line

Re: How to kill a SocketServer?

2005-05-02 Thread Skip Montanaro
>> > set self.pause to something short-ish. The select call times out >> > and the server exits. Guido> [Paul Rubin] >> Ah, good point. Something like this should probably be added to >> SocketServer.py (optional timeout parameter to serve_forever), or at >> least the tri

popen2 psql

2005-05-02 Thread Mage
Hello, maybe my question is about linux and not about python. I tried to write a proxy script for "psql" command. I need some query log. I failed to read from the file object. I have tested: a,b = os.popen2('ls') for s in b.readlines(): print s, and: a,b = os.popen2('./pto.py') for

Re: lists in cx_Oracle

2005-05-02 Thread Andrew Dalke
infidel wrote: > Something like this might work for you: > ids= ['D102', 'D103', 'D107', 'D108'] in_clause = ', '.join([':id%d' % x for x in xrange(len(ids))]) sql = "select * from tablename where id in (%s)" % in_clause import cx_Oracle as ora con = ora.connect('foo/[EMA

Re: popen2 psql

2005-05-02 Thread Klaus Alexander Seistrup
Mage wrote: > I tried to write a proxy script for "psql" command. I need some > query log. I failed to read from the file object. The psql command is probably linked against readline; did you look in the ~/.psql_history file? Cheers, -- Klaus Alexander Seistrup Magnetic Ink, Copenhagen, Denmar

Re: anybody have a CGIXMLRPCRequestHandler example?

2005-05-02 Thread Chris Curvey
here's the simple example, for posterity import os import SimpleXMLRPCServer class Foo: def settings(self): return os.environ def echo(self, something): return something def greeting(self, name): return "hello, " + name handler = SimpleXMLRPCServer.CGIXMLRPCRe

Re: Python Challenge ahead [NEW] for riddle lovers

2005-05-02 Thread Roel Schroeven
Dan Bishop wrote: > Roel Schroeven wrote: > >>Dan Bishop wrote: >> >> >>>Dan Bishop wrote: >>> >>>Correction: Now I'm stuck on Level 11. I think I'm supposed to do >>>something with the pixels in the image, but what? >> >>Me too. I've tried making different images out of the even and the > > od

xmlrpc server running behind IIS as a CGI

2005-05-02 Thread Chris Curvey
Here's my server: import os import SimpleXMLRPCServer class Foo: def settings(self): return os.environ def echo(self, something): return something def greeting(self, name): return "hello, " + name handler = SimpleXMLRPCServer.CGIXMLRPCRequestHandler() handler.

Re: How to kill a SocketServer?

2005-05-02 Thread Guido van Rossum
[Skip Montanaro] > I stumbled on a somewhat cleaner way to do this using socket timeouts: > > class Server(SocketServer.ThreadingMixIn, SocketServer.TCPServer): > pause = 0.25 > allow_reuse_address = True > > def __init__(self, server_address, RequestHandlerClass): >

Bhavaya-like ORM for Python?

2005-05-02 Thread Wolfgang Keller
Hello, does anyone know of a Python ORM module that works like Bhavaya does for J***? In case Bhavaya isn't known, an introduction can be found at: http://bhavaya.openadaptor.org/intro.html. TIA, Best regards Wolfgang Keller -- http://mail.python.org/mailman/listinfo/python-list

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

2005-05-02 Thread Aahz
In article <[EMAIL PROTECTED]>, Michele Simionato <[EMAIL PROTECTED]> wrote: > >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. Dunno whether you'd call it compelling, but my current company uses multiple

Re: Python Challenge ahead [NEW] for riddle lovers

2005-05-02 Thread darren kirby
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}[a-z]{1}[A-Z]{3}[a-z]', t) You should get ten results. Consider all ten t

Canvas drawing slow

2005-05-02 Thread phil
I'm mapping quadratic equations on a Canvas. But that's irrelevant, the point is I am drawing a lot of points in a loop without returning to mainloop until the end. I want my students to see the drawing progress, so I call update_idletasks() after each tiny rectangle. ( I use to call update() and

Re: lists in cx_Oracle

2005-05-02 Thread infidel
I think perhaps you are asking for something that the OCI doesn't provide. At least I'd be rather surprised if it did. I know that the SQL syntax doesn't provide for such a mechanism. And really, it all boils down to the list comprehension: in_clause = ', '.join([':id%d' % x for x in xrange(len

How close program in the wxPython?

2005-05-02 Thread Tian
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!! -- http://mail.python.org/mailman/listinfo/python-list

Re: odeint function in SciPy

2005-05-02 Thread Ben Champion
Thanks for the link! I think it has the information I want in it (the numerical method eg Runge-Kutta). However I am not sure which of the solvers listed within that file is used by odeint. All I want to achieve is to write a few lines on the mathematical method used by odeint for my college proje

Mouseclick

2005-05-02 Thread Terje Johan Abrahamsen
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(hwnd, win32con.WM_LBUTTONUP, 0, 0) optDialog

How to tell if invoked through IDLE or command line?

2005-05-02 Thread Robert D. Young
I've probably asked this before, but how can I tell within the program I'm running if the .py files was involved by "run module" in IDLE or by using the .py assoication with the python.exe program? I'd like to prevent running under certain circumstances, or pop-up warnings, or change character disp

Re: Important please read this Thank you `°º·...·º°`°º·...·º°`°º·.†..·º°`°º·...·º°`°º·..·º°` `°º·...·º°`°º·...·º°`°º·.†..·º°`°º·...·º°`°º·..·º°` `°º·...·º°`°º·...·º°`°º·.†..·º°`°º·...·º°`°º·..·º°` `°º·...·º°`°º·...·º°`°º·.†..·º°`°º·...·º°`°º·..·º°` `°º·...·º°`°º·...·º°`°º·.†..·º°`°º·...·º°`°º·..·º°` `°º·...·º°`°º·...·º°`°º·.†..·º°`°º·...·º°`°º·..·º°` `°º·...·º°`°º·...·º°`°º·.†..·º°`°º·...·º°`°º·..·º°` `°º·...·º°`°º·...·º°`°º·.†..·º°`°º·...·º°`°º·..·º°` GOOGLE·NEWSGROUP·POST·155

2005-05-02 Thread Please
Reports to [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] And do not feed the troll! -- http://mail.python.org/mailman/listinfo/python-list

Quick and dirty dialogs?

2005-05-02 Thread andy
What's the easiest way for a script to throw up simple dialogs such as file select and alerts? I thought there was something in the standard library that didn't need TK and was cross-platform but I can't seem to get my Google-fu working well enough to find it. -- http://mail.python.org/mailman/l

Re: Mouseclick

2005-05-02 Thread Benji York
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) { PostMessage(GetForegroundWindo

RE: Quick and dirty dialogs?

2005-05-02 Thread Robert Brewer
[EMAIL PROTECTED] wrote: > What's the easiest way for a script to throw up simple dialogs such as > file select and alerts? > > I thought there was something in the standard library that didn't need > TK and was cross-platform but I can't seem to get my Google-fu working > well enough to find it.

SQLRelay Problem

2005-05-02 Thread Evrim Ozcelik
Hi, My zope server is running on fedore core3. I want to connect to ms sql server running on windows xp platform using FreeTDS, SQLRelay and ZSqlRelayDA. My sqlrelay.conf can be seen below: As you seen there is only 1 listener socket

Re: Quick and dirty dialogs?

2005-05-02 Thread Robert D. Young
I use quick-and-dirty code like this: # Get source directory and text file Root = Tkinter.Tk() Root.title(programname) srcdir = tkFileDialog.ask

compare two voices

2005-05-02 Thread phil
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 and say this should not be too difficult in python. 1. you need to know the format of .wav surely it is a set of frequency amplitude pairs. 2. you need to know the samplin

  1   2   3   >