News for hackers. Stuff that matters.
Re:Overview of DVCS workflows from Python proposal by nik on Tuesday March 31, 2009 @01:32PM (#540437)
"print(random.choice(['svn', 'bzr', 'hg', 'git']))"

This actually printed "hg" for me the first time I ran it.

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.
Re:Overview of DVCS workflows from Python proposal by plaes on Tuesday March 31, 2009 @02:11PM (#540506)
Weird, I got hg too...

And git came on 12th try.

Re:Overview of DVCS workflows from Python proposal by defunkt on Tuesday March 31, 2009 @01:41PM (#540453)
Printed git for me. Phew.