(branch를 쓰긴했지만, 그냥 테스트용도로 잠시 쓰고 버렸을뿐;;)
이번에 쓰려고 하니 잘 모르는부분이 많아서 검색 후 좋은 내용을 발견.
그래서 링크걸어둔다.
http://bchavez.bitarmory.com/archive/2008/06/03/quothow-toquot-svn-merge-with-tortoisesvn.aspx
Subversion doesn’t offer this capability directly, but you can achieve the same results using the merge command. So if you accidently check in some code that you want to then effectively remove from the tree, you can.
svn merge usage has three forms (run svn help merge for the full details) but the one I prefer looks like this:
svn merge -r<from>:<to> <repository> <working directory>
In the wild that translates to something like this (from within your checked-out trunk):
svn merge -r1455:1454 https://prime/svn/client/tfg/aurora2/trunk .
Follow this up with a check in:
svn ci -m "Rolled back to r1454"
Note that it doesn’t remove the broken revision (in the above case, r1455) from the repository. Instead you’ll get a new revision (r1456) which is identical to 1454. It’s still possible though for the broken version to be checked out if you specifies r1455.
오호라...역시 되는구나.__dict__ 를 사용하면 될꺼같은데요.
만약 인터프레터에서 나가고 싶으면 exit() 을 처도 되지만,
__buitlins__.__dict__["exit"]() 을 처도 나가집니다. ㅎㅎ.
다른 예로...>>> class Foo:
... def bar(self):
... print "Hello, world"
...
>>> a = Foo()
>>> a.bar()
Hello, world
>>> Foo.__dict__
{'__module__': '__main__', 'bar': , '__doc__': None}
>>> Foo.bar(a)
Hello, world
>>> Foo.__dict__['bar'](a)
Hello, world
>>>
이 코드에선 a.bar(), Foo.bar(a), 와 Foo.__dict__['bar'](a) 가 다 같은 뜻을 가집니다 ㅎㅎ. 만약 문자열을 가지고 함수를 부르고 싶으면 __dict__['문자열'] 을 해버리면 되겟군요.