Re: [Tutor] scoping oddity

2005-05-07 Thread tanja pislar
hi Michael, in Python, names are not declared ahead of time so Python uses the assigment of a name to "bind" it to a particular namespace. you first assigned a "global" x with the value of 5. in your testa and testc functions, you are only using variable x, and because x is already assigned globa

Re: [Tutor] elegant way to turn list into string?

2005-05-07 Thread tanja pislar
hi Max, you can use: alph = ["a","b", ] myString = "".join(alph) print myString regards, tanja On 5/7/05, Max Russell <[EMAIL PROTECTED]> wrote: > Hello- > > I've started writing a suite of tools to help me do > Crypto puzzles (slowly...) My first snippet of code > allos me to print out a

Re: [Tutor] Python and ICQ??

2005-04-29 Thread tanja pislar
try pyICQ-t, (it's an ICQ transport for jabber implemented in python) http://pyicq-t.blathersource.org/ regards, tanja On 4/28/05, Mark Kels <[EMAIL PROTECTED]> wrote: > Hi list ! > Does anyone here knows of a way to connect to ICQ with Python? > > Thanks in advance. > -- > 1. The day Microsoft

Re: [Tutor] Basic question -> How to use a class from a file?

2005-01-02 Thread tanja pislar
hi Bernard, you have to specify the module as well: let's say your module is called rtModule.py, then in your case you'd do: import rtModule testClass = rtModule.rt() testClass.walk() or: from rtModule import rt testClass = rt() testClass.walk() regards, tanja On Sun, 02 Jan 2005 17:43:07

Re: [Tutor] O.T.

2004-12-27 Thread tanja pislar
hi, ok i don't think i've ever written to this list before (although i've been a subscriber for quite some time) so here's a chance to introduce myself properly (and not sounding a complete idiot ;)) Tanya, 30, Slovenia (europe), single, student again (computer science, software engeneering) afte