[issue36175] Identity of bound methods

2019-03-03 Thread Abe Leite
Abe Leite added the comment: Thank you for the explanation. I looked up the documentation for descriptors and I understand better now. I appreciate it! -Abe -- ___ Python tracker <https://bugs.python.org/issue36

[issue36175] Identity of bound methods

2019-03-03 Thread Abe Leite
Abe Leite added the comment: Hi Inada-san, Could you explain (or send me a link to) what happens when an instance method is accessed and why this should be different from what happens when an unbound method is accessed? The `is` keyword has been very useful for me in introspection cases

[issue36175] Identity of bound methods

2019-03-03 Thread Abe Leite
New submission from Abe Leite : The following code produces unexpected behavior in all versions of Python I have tested. >>> class a: ... def method(self): pass >>> inst = a() >>> inst.method is inst.method False It appears that id(inst.method) changes each t

Re: checking if two things do not equal None

2014-03-31 Thread Abe
I couldn't see anyone else give this, but I like if None not in (a, b): I did. I am now considering: if None not in (a,b): or if (a is not None) and (b is not None): However, I decided to just turn the two parameters into one (sequence), since they were logically grouped anyhow. --

[issue11077] Tkinter is not thread safe

2013-03-18 Thread Honest Abe
Honest Abe added the comment: I have been researching this due to the recurring recommendations, on stackoverflow.com, to use the queue.Queue + after() technique when using multiple threads. ——— From comments in _tkinter.c: The Tcl interpreter is only valid in the thread that created

Is there a way to load multiple wxhtmlwindow at the same time?

2009-11-17 Thread Abe
page? thanks! - Abe PS - If the answer involves threading, can you please point me to some resources on threading in wx? I know the basics of GUI programming in wx and threading in python, but I have no idea how to put them together. -- http://mail.python.org/mailman/listinfo/python-list

Compiling and transporting modules/libraries in python

2009-05-30 Thread Abe
and in a university computer lab, but I don't have the administrative rights to install libraries on the lab computers. It would be really nice if there were a way I could put, say, all of numpy into a file my_numpy.pyc and treat it as a single (large) module. thanks -Abe PS - If the answer somehow involves

Re: (was Re: Xah's Edu Corner: Criticism vs Constructive Criticism)

2006-04-28 Thread Takehiko Abe
Wake up, people ! You are not the victims, you are the problem. Shut up, /please/. Cannot agree more! Wake up, people ! You are not the victims, you are the problem. Shut up, /please/. Wholeheartedly agree! Wake up, people ! You are not the victims, you are

Re: Python IDE

2004-12-16 Thread Abe Mathews
On 15 Dec 2004 12:18:15 -0800, fuzzylollipop [EMAIL PROTECTED] wrote: TruStudio for Eclipse is nice for those everything must be free socialists. -OR- - Those who are new to python, more comfortable in an IDE, and want a Python-enabled IDE that they can use without having to pay now - Those

Re: The python2.4 IDLE can't be lanuched.

2004-12-06 Thread Abe Mathews
occur. Abe Mathews On Mon, 06 Dec 2004 11:28:56 -0500, Brian Beck [EMAIL PROTECTED] wrote: Brian Beck wrote: I have the exact same problem. The IDLE window just never opens, and checking the process list shows that is was never even launched. So I can't make much use of Python 2.4 since

Re: some pointers for a newbie

2004-12-05 Thread Abe Mathews
searching. Abe Mathews -- http://mail.python.org/mailman/listinfo/python-list

Re: [Python-Help] Programming help

2004-12-05 Thread Abe Mathews
I guess I don't understand what freq is doing. However, you could do something like: num_list = [] while len(num_list) count: number = input(Enter a number:) num_list.append(number) print num_list That may give you what you're looking for to print the list of input numbers. Abe