[Tutor] refractoing and backward-compatibility

2010-09-07 Thread Timmie
(): print 'got a new name' # alias old_function = renamed_function Is this a good approach or are there better suggestions out there in the Python community for such a purpose? Thanks in advance for your hint, Timmie ___ Tutor maillist

Re: [Tutor] using windows wide proxy settings

2008-12-04 Thread Timmie
gle.com/p/pacparser/wiki/PacFilesInPythonWebclients It seems that the script can even test if connection is available. I was looking for this earlier. KInd regards, Timmie ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] How to check online status

2008-11-03 Thread Timmie
proxy settings? Thanks in advance and kind regards, Timmie ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] removing subscription

2008-04-29 Thread Timmie
Kriti Satija yahoo.co.in> writes: > > Remove my mail id from that i have subsribed in > Python Tutor List. Please do this by yourself going at the site mentioned in the mail footer: > ___ > Tutor maillist - Tutor python.org > http://mail.python.or

Re: [Tutor] Converter

2008-03-19 Thread Timmie
> start, as I want to be able to input any Unit to Convert (will keep it simple for now, feet, inches etc. and add Maybe you want to get inspired by a Gnome deskbar handler: http://www.kryogenix.org/days/2006/09/06/converter-deskbar ___ Tutor maillist -

Re: [Tutor] using os module on windows

2008-02-20 Thread Timmie
as missing parent directories." Which command do you recommend if the destination already exists? I'd like to overwrite or sychronise a local with a remote directory and therefore the destinations files already exist. Regards, Timmie ___ Tutor ma

[Tutor] using os module on windows

2008-02-20 Thread Timmie
in shutil.copytree(source, dest) File "C:\python\lib\shutil.py", line 110, in copytree os.makedirs(dst) File "C:\python\lib\os.py", line 172, in makedirs mkdir(name, mode) WindowsError: [Error 183] Eine Datei kann nicht erstellt werden, wenn si

Re: [Tutor] getting filen basename without extension

2008-01-10 Thread Timmie
0] > > The last two can be easily combined as: > > > myfile_name_without_suffix = os.path.splitext(basename)[0] > > But otherwise you are using the "correct" mechanism if > you want a reliable result. Thanks for this confirmation. I am happ

[Tutor] getting filen basename without extension

2008-01-10 Thread Timmie
_path) filename = os.path.splitext(basename) myfile_name_without_suffix = filename[0] Can this be done with less code? Thanks and kind regards, Timmie ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] visualizing code structure / flow charting

2007-11-06 Thread Timmie
ions. I hope my needs are now a litte understandable. For the real debugging I will follow the hints the other posters pointed out anserwing my question. Thanks for your help on that. > You can ask specific questions here, if there is a bit of code you are > strugglin

[Tutor] visualizing code structure / flow charting

2007-11-06 Thread Timmie
ago. OT: Flow chart - http://news.gmane.org/find-root.php?message_id=%3c1103452504.92b04ebcjerimed%40myrealbox.com%3e Is there any solution that can be used without leaning UML? Kind regards, Timmie ___ Tutor maillist - Tutor@python.org http

Re: [Tutor] symbol encoding and processing problem

2007-10-19 Thread Timmie
is that I don't get a encoding error? * how do I code it that the code runs on linux and windows from file and in IPython Thanks again for your support. I don't want any misunderstandings. You were a good tutor to me and are helping patiently many user stepping into python. Kind regards,

Re: [Tutor] symbol encoding and processing problem

2007-10-18 Thread Timmie
n. For me this totally neglects the statement that python code is easily portable or executable on other platforms. For instance, I am also unsing some IDL code. There I open the IDLE and code right away without worring about the encoding. Kind regards, Timmie ___

Re: [Tutor] symbol encoding and processing problem

2007-10-18 Thread Timmie
> Just be aware that this affects portability of your scripts; they will > require this same change to run on other systems. For this reason you > might want to change the code instead. > If you give a specific example of what is failing I will try to help. >From the previous posts I learned tha

[Tutor] OT [Re: symbol encoding and processing problem]

2007-10-17 Thread Timmie
> I'm sure there'll be lots of other suggestions, but the SciTE > editor (whose name I'm never sure how to prononunce without > blushing) understands the same encoding directive as Python. > It's quite lightweight, and also allows you to run Python scripts > directly, although there are limitations

Re: [Tutor] symbol encoding and processing problem

2007-10-17 Thread Timmie
OK, I found out. > Since it didn't work in IPython as well I assume that I need to change the > encoding of the IPython shell to UTF-8, too. Still need to find out where. Put a file called 'sitecustomize.py' into any directory on your PYTHONPATH. write the folowing two lines in that file: import

Re: [Tutor] symbol encoding and processing problem

2007-10-17 Thread Timmie
ox(message="Enter something.", title="", argDefaultText=raw) print entertext degrees = lines[0] print "degrees: ", str(degrees) Thanks for your support, so far. Timmie ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] symbol encoding and processing problem

2007-10-17 Thread Timmie
I tried your advice yesterday evening. > And see if you get a ç. I see this character. from easygui import easygui raw = unicode("121ø 55' 5.55''", 'utf-8') => gets a encoding error raw = unicode("121ø 55' 5.55''", 'cp1250') => this works while coding on windows. How do I make it work really cro