User Profile

Collapse

Profile Sidebar

Collapse
alpha
alpha
Last Activity: Dec 2 '06, 09:02 AM
Joined: Nov 30 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • alpha
    replied to Beyond "Self"
    I think he is looking something like Java inner classes, With Python is possible to do nested classes :
    Code:
    class Test(object):
    
        def __init__(self):
    	self.y = 0
    
        class TestInner(object):
    
    	def __init__(self):
    	    self.x = 0
    
    	def someFunction(self):
    	    print "Hello from Innerclass"
    
    someObject = Test.TestInner()
    ...
    See more | Go to post
    Last edited by bartonc; Feb 23 '07, 06:23 AM. Reason: added [code][/code] tags

    Leave a comment:


  • alpha
    replied to What's your favorite Python editor?
    I used to like Stani's Python Editor but now I use for quick tests IDLE, for bigger apps Eclipse plugin PyDev is a very nice IDE for Python combined with wxGlade for RAD gui apps and for console tasks vim.
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...