[issue20085] Python2.7, wxPython and IDLE 2.7
New submission from stubz: I new to this so I have no idea what's going on ... I'm using Mint 16 Cinnamon and apparently Python 2.7+ 3.3 are installed I started puttering with wxPython 2.8 and I have issues ... I started a tutorial, saved some work.py and got things to run, I guess ... When I try to open and edit a work.py file I get a blank window ... ? I also lose my number pad, auto indents and can't close that blank window, I basically have to show down the computer to get it to go away ... I don't know if this is Mint, Python, IDLE or me, but it's annoying ... Can anyone giving me an idea as to what's going on ? -- messages: 207021 nosy: stubz priority: normal severity: normal status: open title: Python2.7, wxPython and IDLE 2.7 type: behavior ___ Python tracker <http://bugs.python.org/issue20085> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20085] Python2.7, wxPython and IDLE 2.7
stubz added the comment: Cheerz mate, In as much as your reply was no help, it's kinda what I figured ... I'm a newbie to linux & python, but I know enough to cause myself serious grief, and well, usually do ... I'll get it sorted at some point ... Hell of a lot easy to work thru then windows tho :) Ciao, Stubz -- resolution: invalid -> works for me status: closed -> languishing ___ Python tracker <http://bugs.python.org/issue20085> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26613] Descriptor HowTo Guide - Typo
New submission from Stubz: The last line has a typo ... Dict.fromkeys -> dict.fromkeys I am a newbie, but that was just a pain in the ass ... Worked my way thru this How to and spent an hour+ trying to sort a circular argument error... Was this intentional ¿ In as much as it was a pain in the ass, I think I got the concept sorted ... https://docs.python.org/3.5/howto/descriptor.html Static Methods and Class Methods This behavior is useful whenever the function only needs to have a class reference and does not care about any underlying data. One use for classmethods is to create alternate class constructors. In Python 2.3, the classmethod dict.fromkeys() creates a new dictionary from a list of keys. The pure Python equivalent is: class Dict(object): . . . def fromkeys(klass, iterable, value=None): "Emulate dict_fromkeys() in Objects/dictobject.c" d = klass() for key in iterable: d[key] = value return d fromkeys = classmethod(fromkeys) Now a new dictionary of unique keys can be constructed like this: >>> Dict.fromkeys('abracadabra') -- assignee: docs@python components: Documentation messages: 262223 nosy: docs@python, stubzpub priority: normal severity: normal status: open title: Descriptor HowTo Guide - Typo type: behavior versions: Python 3.5 ___ Python tracker <http://bugs.python.org/issue26613> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26613] Descriptor HowTo Guide - Typo
Stubz added the comment: Thanx mate, I am sorted ... Q tho ... It turns out my issue was with the class Dict and what I called a typo in the call to dict.fromkeys ... In order to make it 'go', I had to use the lower case letter, how is that not a typo ¿ The part that hung me up was the naming of class Dict and the call to dict.fromkeys, with no variable assigned to it ... It makes better sense now, but ... a class Dict used as a example of dictobject, to demonstrate the descriptors use of the dictobject methods, from a call to Dictobject, that returns error object not iterable ... I don't care what Lvl you are, that's just confusing ... -- ___ Python tracker <http://bugs.python.org/issue26613> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com