Re: [Tutor] Alias for a class name

2006-07-12 Thread Alan Gauld
> say in some module I have defined a class Pen > and I want an alias for the class name, say > Turtle > > I can do this: > > class Turtle(Pen): >pass > > or simply (after having defined Pen): > > Turtle = Pen > > Are those two variants different in effect? Yes, the first creates a new c

Re: [Tutor] Hi, need help on zip commands for windows

2006-07-12 Thread Senthil_OR
There is no zip command in as such in windows. You can install www.7-zip.com software and trying withh command command line interface as belodw zip_command = "7z -a %s %s" % (target, ''.join(source))   If you like to zip files using python:   import zipfile #create a zipzipf = zipfile.ZipFil

Re: [Tutor] email anonymizing

2006-07-12 Thread Luke Paireepinart
anil maran wrote: > hi i m trying to anonymize emails hi. > everytime someone enters > [EMAIL PROTECTED] > > i want to generate > > [EMAIL PROTECTED] and use this email in the web application > > I want to do this in python > can you please explain how to do this Yes. Are you trying to anonymize t

Re: [Tutor] Hi, need help on zip commands for windows

2006-07-12 Thread Luke Paireepinart
Ramakrishnan, Shashikanth wrote: > > Hi, > Hi. > > I have just started using Python and would appreciate if somebody > could help me out on zip commands. > > I am using C H Swaroop’s book “A byte of python” as my beginners guide. > > One example states to use >>>zip_command = "zip -qr '%s' %s" %

Re: [Tutor] abs beginner first project

2006-07-12 Thread Luke Paireepinart
Michael Lange wrote: [snip awesomeness with lambda] > so the callback actually "knows" which widget called it, and you could easily > perform > different actions for several buttons. > > I know that is not what this thread is about, I just could not resist... > > Michael >

Re: [Tutor] unbound method function()

2006-07-12 Thread Luke Paireepinart
I noticed no one has answered your question yet, so here's my answer, and someone should come along and correct me if I give you any wrong info. ryan luna wrote: > I have two Classes, I have a method in the first class (using > Pygame/livewires moduls) > > Class1(games.Sprite): >function1(

Re: [Tutor] email anonymizing

2006-07-12 Thread anil maran
hi i m trying to anonymize emailseverytime someone enters[EMAIL PROTECTED]i want to generate[EMAIL PROTECTED] and use this email in the web application I want to do this in pythoncan you please explain how to do thisthanks a lotBob Gailer <[EMAIL PROTECTED]> wrote: anil maran wrote:> i m trying to

[Tutor] Library for rtf to text?

2006-07-12 Thread Justin Ezequiel
Bill Campbell wrote: > I'm looking for a python library to convert rtf to plain text > ... > I have found a C program that will convert rtf2html, and I could > use that if necessary, but would prefer a pure python solution. I know I saw something months ago... Have been meaning to look at it but j

Re: [Tutor] email anonymizing

2006-07-12 Thread Bob Gailer
anil maran wrote: > i m trying to do email anonymizing like cl in a webapp can you suggest > how to do it I can't, but then I don't understand the terms you're using. And how does this relate to Python? -- Bob Gailer 510-978-4454 ___ Tutor maillist

Re: [Tutor] question about metaclasses

2006-07-12 Thread Kent Johnson
anil maran wrote: > hi pygurus > can you please tell me why we need metaclasses and how to use them Hmm...metaclasses are an advanced topic, first exposure to them usually causes one's brain to explode. Fortunately the condition is only temporary :-) Basically a metaclass is the type of a class

[Tutor] email anonymizing

2006-07-12 Thread anil maran
i m trying to do email anonymizing like cl in a webapp can you suggest how to do itthanks a lot __Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ Tutor

[Tutor] question about metaclasses

2006-07-12 Thread anil maran
hi pyguruscan you please tell me why we need metaclasses and how to use themthanks a lotAnil Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta.___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] parsing

2006-07-12 Thread Ismael Garrido
Сергій wrote: > First, excuse me my English... English is not my native language, but > I hope > that I will be able to describe my problem. > > I am new in python for web, but I want to do such thing: > > Suppose I have a html-page, like this: > """ > TITLE > > body_1 > 1_1 > 2_1 > div_one_1 > p

Re: [Tutor] Alias for a class name

2006-07-12 Thread Kent Johnson
Gregor Lingl wrote: > Hi everyoen, > > say in some module I have defined a class Pen > and I want an alias for the class name, say > Turtle > > I can do this: > > class Turtle(Pen): > pass > > or simply (after having defined Pen): > > Turtle = Pen > > Are those two variants different in effect?

Re: [Tutor] Alias for a class name

2006-07-12 Thread Ismael Garrido
Gregor Lingl wrote: > Hi everyoen, > > say in some module I have defined a class Pen > and I want an alias for the class name, say > Turtle > > I can do this: > > class Turtle(Pen): > pass > > or simply (after having defined Pen): > > Turtle = Pen > > Are those two variants different in effect?

[Tutor] Alias for a class name

2006-07-12 Thread Gregor Lingl
Hi everyoen, say in some module I have defined a class Pen and I want an alias for the class name, say Turtle I can do this: class Turtle(Pen): pass or simply (after having defined Pen): Turtle = Pen Are those two variants different in effect? Are there pros or cons for one of both varian

Re: [Tutor] Python on AIX

2006-07-12 Thread Bob Gailer
Tino Dai wrote: > On 7/12/06, *Steve Nelson* <[EMAIL PROTECTED] > > wrote: > > Hello all, > > Just started a new job - most of the machines I am administering are > AIX, and don't have Python at all. What is going to me the most > pain-free, scaleable and

[Tutor] Hi, need help on zip commands for windows

2006-07-12 Thread Ramakrishnan, Shashikanth
Hi, I have just started using Python and would appreciate if somebody could help me out on zip commands. I am using C H Swaroop’s book “A byte of python” as my beginners guide.   One example states to use >>>zip_command = "zip -qr '%s' %s" % (target, ' '.join(source)) for zipping the t

[Tutor] parsing

2006-07-12 Thread Сергій
First, excuse me my English... English is not my native language, but I hope that I will be able to describe my problem.I am new in python for web, but I want to do such thing:Suppose I have a html-page, like this: """TITLEbody_11_12_1div_one_1p_1p_2 div_one_2sp_textdiv_one_2div_one_33_12_2 p_3body

Re: [Tutor] abs beginner first project

2006-07-12 Thread John Fouhy
On 12/07/06, josip <[EMAIL PROTECTED]> wrote: > > Hi! > > I have finished learning python book and python for absolute beginners book. > Now I want to start my first project. > > Can someone sugest me project for first time (and some pointers,please)? Do you listen to music on your computer? You

[Tutor] Library for rtf to text?

2006-07-12 Thread Bill Campbell
I'm looking for a python library to convert rtf to plain text (parsing Delicious Library XML files for other use), but haven't found anything python-specific in the python Library Reference or in a google search. I have found a C program that will convert rtf2html, and I could use that if necessar

Re: [Tutor] abs beginner first project

2006-07-12 Thread Alan Gauld
>> I'm thinking about text editor. > GUIs aren't the most Pythonic thing you could find to write. Text editor != GUI Many of the most interesting text editors are not GUI bsased and in fact there is a gap(IMHO) at the moment for a really good batch oriented text editor(*) - sed is OK but it is r

Re: [Tutor] need problems to solve

2006-07-12 Thread Mike Hansen
  Hi, I was wondering where I could get problems in python for practicing. Thanks Regards   Devayani    http://pyfaq.infogami.com/tutor-im-learning-python-what-should-i-program has some suggestions. ___ Tutor maillist - Tutor@

[Tutor] unbound method function()

2006-07-12 Thread ryan luna
I have two Classes, I have a method in the first class (using Pygame/livewires moduls)Class1(games.Sprite):       function1(self):That is being called by the second classClass2(games.Sprite):       function2(self):         Class1.function1()When the code runs i get this error"unbound method functi

Re: [Tutor] abs beginner first project

2006-07-12 Thread Michael Lange
On Wed, 12 Jul 2006 06:48:44 -0500 Luke Paireepinart <[EMAIL PROTECTED]> wrote: > For example, in Tkinter, you can bind buttons to function calls, but you > can't have buttons pass arguments to the functions. So you have to > somehow make a separate function for each button, or do some weird >

Re: [Tutor] Python on AIX

2006-07-12 Thread Tino Dai
On 7/12/06, Steve Nelson <[EMAIL PROTECTED]> wrote: Hello all,Just started a new job - most of the machines I am administering areAIX, and don't have Python at all.  What is going to me the mostpain-free, scaleable and supportable way of getting Python onto these machines?  I need to take this requ

[Tutor] Python module and HP OpenView

2006-07-12 Thread Andrew Robert
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi everyone, Does anyone know if there are Python modules available for dealing with HP OpenView? I found documentation for connecting to the service navigator and parsing the data via ElementTree or similar XML parsers. I was just wondering if ther

Re: [Tutor] abs beginner first project

2006-07-12 Thread Luke Paireepinart
josip wrote: > Hi! > > I have finished learning python book and python for absolute beginners > book. > Now I want to start my first project. > > Can someone sugest me project for first time (and some pointers,please)? > > I'm thinking about text editor. > > Thanks people! GUIs aren't the

Re: [Tutor] Python on AIX

2006-07-12 Thread Steve Nelson
On 7/12/06, Kent Johnson <[EMAIL PROTECTED]> wrote: > According to this page Python binaries for AIX are available. If you > click through the links, the versions actually available are more recent > than those listed on the first page. > http://www.python.org/download/other/ Thanks - that's perf

[Tutor] abs beginner first project

2006-07-12 Thread josip
Hi!   I have finished learning python book and python for absolute beginners book. Now I want to start my first project.   Can someone sugest me project for first time (and some pointers,please)?   I'm thinking about text editor.   Thanks people! Yahoo! Messenger with Voice. Make PC-to-

Re: [Tutor] Python on AIX

2006-07-12 Thread Kent Johnson
Steve Nelson wrote: > Hello all, > > Just started a new job - most of the machines I am administering are > AIX, and don't have Python at all. What is going to me the most > pain-free, scaleable and supportable way of getting Python onto these > machines? I need to take this request to change adv

[Tutor] need problems to solve

2006-07-12 Thread devayani barve
Hi, I was wondering where I could get problems in python for practicing. Thanks Regards   Devayani ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] How do I get my machine to run an SMTP server?

2006-07-12 Thread Kent Johnson
Grady Henry wrote: > *I guess that my first question is how do I get my machine to run an > SMTP server?* Rather than running a new SMTP server on your local machine, you probably should use the same server your mail client already uses. Look for the *outgoing* server in the configuration of you

[Tutor] Python on AIX

2006-07-12 Thread Steve Nelson
Hello all, Just started a new job - most of the machines I am administering are AIX, and don't have Python at all. What is going to me the most pain-free, scaleable and supportable way of getting Python onto these machines? I need to take this request to change advisory board. Also, I could fin