On Jul 11, 2008, at 7:54 PM, Christopher Spears wrote:
For another Core Python Programming question, I created a stack
class. I then put the class into a script to test it:
I understand that this is an exercise; but I think it might be
interesting for you to also look at collections.deque
Hi,
I am going to develop an application that will launch the user's computer
default web browser pointing to a URL. How to do this in python and which
library should I use? Also, my development platform is Linux but the
application is targeted to run in Windows platform. Is there any major pla
"Christopher Spears" <[EMAIL PROTECTED]> wrote
I created a stack class. I then put the class into a script to test
it:
I'll assume the crazy indentation is due to email errors.
class Stack(list):
def isempty(self):
length = len(self)
if length == 0:
return True
else:
For another Core Python Programming question, I created a stack class. I then
put the class into a script to test it:
#!/usr/bin/python
class Stack(list):
def isempty(self):
length = len(self)
if length == 0:
return True
else:
return False
<[EMAIL PROTECTED]> wrote
1. What is the difference between a classmethod and a
staticmethod, and when would i use either?
Kent pointed you at the recent discussion but from your later
comments I thibnk its pretty safe to say that for now you don't
need to care. The vast majority of classes yo
Dror Cohen wrote:
I'm trying to use the these functions which are in isnide of
ITfInputProcessorProfiles
http://msdn.microsoft.com/en-us/library/ms538984(VS.85).aspx
I think that its registry key is {892F230F-FE00-4A41-A98E-FCD6DE0D35EF}
(though I don't know if I even need this)
How can I us
On Fri, Jul 11, 2008 at 4:58 AM, <[EMAIL PROTECTED]> wrote:
> 1. What is the difference between a classmethod and a staticmethod, and when
> would i use either?
We discussed this recently:
http://thread.gmane.org/gmane.comp.python.tutor/47054/focus=47108
Kent
On Thu, Jul 10, 2008 at 1:38 PM, Chris Fuller
<[EMAIL PROTECTED]> wrote:
> You can also use new.classobj() to create arbitrary classes on-the-fly. See
> the documentation for the new module, and google "python metaclasses"
FWIW new.classobj() will create an old-style class. You can create a
new
hi,I have two questions please:1. What is the difference between a classmethod and a staticmethod, and when would i use either?2. I want to create an object, presumably a class, to handle attributes of an open gl object.For example, if i wanted to create a 2d square i need 4 points, each with an x,
Hi everybody,
I'm trying to use the these functions which are in isnide of
ITfInputProcessorProfiles
http://msdn.microsoft.com/en-us/library/ms538984(VS.85).aspx
I think that its registry key is {892F230F-FE00-4A41-A98E-FCD6DE0D35EF}
(though I don't know if I even need this)
How can I use its fu
10 matches
Mail list logo