[Tutor] getattr help

2012-03-09 Thread mjolewis
What is the purpose of getattr? Why not just use help or am I completely misunderstanding this? >From what I read, getattr allows you to get a reference to a function without >knowing its name until runtime. However, the example provided is: li = ['larry', 'curly] getattr(li, 'pop') It seems

Re: [Tutor] Floating point error in tkinter

2012-03-09 Thread Alan Gauld
On 09/03/12 13:09, Válas Péter wrote: flood my screen and it won't work. Dou you think this is a Python bug? It's probably not a Python bug but a Tcl/Tk bug. It would be worth asking about it on a Tcl/Tk forum - or maybe even the Tkinter list. File "c:\python27\lib\lib-tk\Tkinter.py", l

Re: [Tutor] Floating point error in tkinter

2012-03-09 Thread Steven D'Aprano
On Fri, Mar 09, 2012 at 02:09:23PM +0100, Válas Péter wrote: > Hi, > > I use a tkinter-based editor that ran properly earlier on English Windows > XP. Now I use Hungarian Windows 7 with Python 2.7.2. You must know that in > Hungary decimal fractions are marked with a decimal comma, not a dot (e.g.

[Tutor] Floating point error in tkinter

2012-03-09 Thread Válas Péter
Hi, I use a tkinter-based editor that ran properly earlier on English Windows XP. Now I use Hungarian Windows 7 with Python 2.7.2. You must know that in Hungary decimal fractions are marked with a decimal comma, not a dot (e.g. pi=3,1415...). I suspect it somehow gets a Hungarian decimal from Win

Re: [Tutor] Question about writing to Excel with slavic characters

2012-03-09 Thread Marko Limbek
Hi Walter It is as you say. Thanks for long explanation. I am using the newer version. Now I also understand difference between single underscore and double underscore. I would still have problems if I would want to programme them for instance. Well I always try to be independent and I want to an

Re: [Tutor] Question about writing to Excel with slavic characters

2012-03-09 Thread Walter Prins
Hi Marko, On 9 March 2012 08:34, Marko Limbek wrote: >  File "C:\Dropbox\Exc_MarkoL_Zenel\Python\crosstabs\src\src\rw.py", > line 715, in >    mySavReaderObject.getNumberofVariables(savFileName, > mySavReaderObject.fh, mySavReaderObject.spssio) > AttributeError: 'SavReader' object has no attribu

Re: [Tutor] Python using RXVT vs Konsole?

2012-03-09 Thread Alan Gauld
On 09/03/12 02:07, brandon w wrote: I am able to up-arrow to get the last typed command using rxvt but when I use konsole and I press the up-arrow I get the symbols: ^[[A Why is that? Your terminal settings look like they are messed up. Does up arrow work in any other applications? emacs or vi

Re: [Tutor] Question about writing to Excel with slavic characters

2012-03-09 Thread Marko Limbek
Hi Walter I understand, thank you. Maybe I am trying to do what is not meant to be done. I tried as you suggested mySavReaderObject = SavReader(savFileName) mySavReaderObject.getNumberofVariables(savFileName, mySavReaderObject.fh, mySavReaderObject.spssio) but it won't work File "C:\Dropbox\E