Live data from Hacker News

Overview of DVCS workflows from Python proposal

python.org

1–7 of 7 posts

Re: Overview of DVCS workflows from Python proposal

#6
post #2

"print(random.choice(['svn', 'bzr', 'hg', 'git']))" This actually printed "hg" for me the first time I ran it.

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

#7
post #5
post #2

"print(random.choice(['svn', 'bzr', 'hg', 'git']))" This actually printed "hg" for me the first time I ran it.

Traceback (most recent call last): File " ", line 1, in NameError: name 'random' is not defined

You need to edit your ipythonrc so that useful modules like random are imported for you automatically.