Re: iPython help, Docstring [source file open failed]

2009-04-14 Thread Przemyslaw Kaminski
Kegan wrote: > I use iPython installed from macport. When I am in the iPython shell, > I do the following: > > > In [8]: from datetime import timedelta > > In [9]: timedelta?? > Type: type > Base Class: > String Form: > Namespace: Interactive > File: /opt/local

Re: binary file compare...

2009-04-13 Thread Przemyslaw Kaminski
SpreadTooThin wrote: > I want to compare two binary files and see if they are the same. > I see the filecmp.cmp function but I don't get a warm fuzzy feeling > that it is doing a byte by byte comparison of two files to see if they > are they same. > > What should I be using if not filecmp.cmp? W

Re: possible pairings in a set

2009-04-13 Thread Przemyslaw Kaminski
Ross wrote: > I'm new to python and I'm trying to come up with a function that takes > a given number of players in a game and returns all possible unique > pairings. Here's the code I've come up with so far, but I'm not > getting the output I'd like to: > > def all_pairings(players): > cleanlist