This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class DynamicProps( type ): | |
""" | |
.. class:: DynamicProps | |
dynamic creation of properties | |
""" | |
def __new__( mcs, name, bases, classdict ): | |
""" new operator """ | |
def makeProperty( self, name, value, readOnly=False ): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class DynamicProps( type ): | |
""" | |
.. class:: DynamicProps | |
dynamic creation of properties | |
""" | |
def __new__( mcs, name, bases, classdict ): | |
""" new operator """ | |
def makeProperty( self, name, value, readOnly=False ): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################################################################## | |
# $HeadURL $ | |
# File: TypedList.py | |
# Author: Krzysztof.Ciba@NOSPAMgmail.com | |
# Date: 2012/07/19 08:21:16 | |
######################################################################## | |
""" :mod: TypedList | |
======================= | |
.. module: TypedList |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################################################################## | |
# $HeadURL $ | |
# File: Traced.py | |
# Author: Krzysztof.Ciba@NOSPAMgmail.com | |
# Date: 2012/08/08 13:29:18 | |
######################################################################## | |
""" :mod: Traced | |
============ | |
.. module: Traced | |
:synopsis: watched mutable metaclass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
## | |
# @file svn-policy.py | |
# @author Krzysztof Daniel Ciba (Krzysztof.Ciba@NOSPAMgmail.com) | |
# @date 06/05/2009 | |
# @brief pre-commit hook | |
# | |
import os | |
import sys | |
import getopt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################# | |
# $HeadURL$ | |
################################################################# | |
""" :mod: ProcessPool | |
================= | |
.. module: ProcessPool | |
:synopsis: ProcessPool and related classes | |
ProcessPool | |
----------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require_once("System.php"); | |
/** | |
* @class graphviz | |
* @author Krzysztof Daniel Ciba (Krzysztof.Ciba@NOSPAMgmail.com) | |
* @brief class for making Graphviz plots online | |
*/ | |
class graphviz { | |
var $directed = True; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class baseClass( object ): | |
def __init__( self ): | |
from testGlobal import gX, foo | |
try: | |
__builtins__["gX"] = gX | |
__builtins__["foo"] = foo | |
except: | |
setattr( __builtins__, "gX", gX ) | |
setattr( __builtins__, "foo", foo ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from testBase import baseClass | |
class testChild( baseClass ): | |
def __init__( self ): | |
baseClass.__init__( self ) | |
print "in child, gX is there? ", "gX" in globals() | |
print "in child, foo is there? ", "foo" in globals() | |
def myRun( self ): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class A: | |
def __init__( self ): | |
print type(__builtins__) | |
if __name__ == "__main__": | |
a = A() |
OlderNewer