Here's the beginning of a class declaration from the package NetworkX. I'm bamboozled on two points: - What does it mean to derive from "object" vs declaring...
... It declares, explicitly, that the class is a "new style" object. ... It creates a dictionary of all of the keyword arguments passed in. Peace, Gary ...
... class Foo(object) means that Foo is a new-style class. In particular, this means that you can define a __new__ method, which is used as a factory method to...
Erik Osheim
erik@...
Jun 10, 2006 10:56 pm
191
Is there a way to do good syntax checking all at once on a python program (with modules)? Each time I run, I'm told of one error, the first one it finds. But...
You might also try using something like bicycle repairman (http://bicyclerepair.sourceforge.net/) to do the refactoring -- I've used it as integrated into the...
Hi all, I'm working on an unsupervised word-sense disambiguator, which does processing on huge amounts of data, and I'd like to be able to see which data...
... Check out pyro, http://pyrorobotics.org/. Pyro had some press in Slashdot recently when Doug Blank (co-author and Prof. at Bryn Mawr) came up with a new...
I haven't tried them, but there are a couple of neural network implementations referenced at Vaults of Parnassus, which is a good place to find mathy/sciencey...
This doesn't do the right thing, because all N lists are the same ... [[], [], [], [], []] ... A correct way is this: L = [] for i in range(N): L.append([]) Is...
... This works too, but I think list comprehension is the preferred method of functional iteration So Dan's L = [[] for n in range(5)] would probably be best. ...
... I benchmarked the various things we discussed for N=1e6. Note that the first is the incorrect solution that just gives you back N copies of the same...
I want to assign to a slice. No problem: A[a:b, c:d] = numpy.zeros((b-a, d-c), dtype=float) All's great unless b-a or d-c is one. (I know they will never be ...
... Well, it's kind of hateful, but you could probably do: A.__setslice__(a, b) = ['other', 'junk', 'here'] I think as long as b > a this will work -- Erik...
Erik Osheim
erik@...
Dec 4, 2006 8:01 pm
207
Please ignore my previous post. I completed misunderstood the problem. Sorry for the spam. -- Erik...
Erik Osheim
erik@...
Dec 4, 2006 8:21 pm
208
Hi all, Just joined. Is there going to be a January or February meeting? I'm new to Python and would like to get together to rap about using it....
We haven't had a meeting in a while, but it's probably a good idea if anyone is interesting. Any one out there have a topic they'd like to speak on? ... -- ...
I have a little utility I wrote that I could do a presentation on. It's a command-line password vault type thing. I posted an early version of it to this...
That could work. I guess I could talk about Django, as I have about 3 different sites running on it now... I'd prefer Jeff's talk because I'm boring. But,...
Hi all, I'm also new to Python and this group. Count me in on this meeting. Just a suggestion from the new guy: start a Yahoo Poll to get a count of potential...
Hi Kevin, Welcome! We've previously met at Drexel, but it's also been suggested we could meet at Temple's new Tech Center. The problem with polls is that...
... Might be fun some time, but note that the likely speaker for Feb prefers Drexel. ;-) ... PLUG meets the first Wednesday of the month. We might hope to get...
... Or people could just chime in here. We're not so numerous yet. Polls like that sometimes discourage people from coming, since if you didn't say yes maybe...
Can't do the 14th with Valentines day... But, yeah, I kind of forgot about PLUG since I haven't attended in a few years. Tuesday, Thursday (13th, 15th)...
Heyo everybody! I've been lurking this group for a while, waiting to see some activity. I'm game for a meeting whenever, and I certainly plan on attending...