<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 02/06/2012 09:57 AM, Matej Cepl wrote:
<blockquote cite="mid:jgo4fg$26h9$1@ns.felk.cvut.cz" type="cite">On
6.2.2012 09:45, Matej Cepl wrote:
<br>
<blockquote type="cite">Also, how could I write a
re-implementation of random.choice which would
<br>
work same on python 2.6 and python 3.2? It is not only matter of
unit
<br>
tests, but I would really welcome if the results on both
versions
<br>
produce the same results.
<br>
</blockquote>
<br>
Silly, of course, the solution is obvious ... I have just embedded
random.choice from 2.6 to my code.
<br>
<br>
Matěj
<br>
</blockquote>
Is the above actually a good idea though?<br>
<br>
What I understand you're doing is embedding the source from the
Python2.6 random.py file, <i>into</i> your project files?<br>
<br>
Regards,<br>
A<br>
<br>
<br>
</body>
</html>