DaniWeb Forum Index
>
Search Forums
RSS
Search Results
•
•
•
•
Showing results 1 to 1 of 1
Search took
0.01
seconds.
Search:
Posts Made By:
danielfolsom
Save these search results for 24 hours
Forum:
Python
Jan 19th, 2007
Replies:
1
Using a Variable to Identify an Instance
Views:
1,276
Posted By
danielfolsom
Using a Variable to Identify an Instance
I'd like to set up something like this:
a=0
class b:
def__init__(self, foo):
self.foo = foo
def create():
global a
a=a+1
a=b("FOO")
Showing results 1 to 1 of 1
You need to
join our community
in order to build your list of favorite forums. You can visit the
forum index
for a listing of all forums.
Related Forum Features
DaniWeb News Stories
DaniWeb Code Snippets
DaniWeb Tutorials
DaniWeb Product Reviews
DaniWeb White Papers
Forum Search
Latest Posts
Today's Posts
All Forums
Unanswered Threads
All Forums
About Us
|
Contact Us
|
Advertise
|
DaniWeb
|
Acceptable Use Policy
|
©2003 - 2009 DaniWeb® LLC