Re:Overview of DVCS workflows from Python proposal
by nik on Tuesday March 31, 2009 @02:41PM
(#540553)
Oh noes, they've removed this piece just after I saw it.
It used to say:
Chosen DVCS
import random
print(random.choice(['svn', 'bzr', 'hg', 'git']))
http://svn.python.org/view/peps/trunk/pep-0374.txt?r1=70206&...
Re:Overview of DVCS workflows from Python proposal
by moe on Tuesday March 31, 2009 @02:12PM
(#540507)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'random' is not defined
Re:Overview of DVCS workflows from Python proposal
by bobbyi on Tuesday March 31, 2009 @02:48PM
(#540570)
You need to edit your ipythonrc so that useful modules like random are imported for you automatically.
This actually printed "hg" for me the first time I ran it.