Search the web
Sign In
New User? Sign Up
PhillyPug · Python Users Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 162 - 191 of 350   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
162
I've been wanting a little widget for storing passwords, account numbers, etc. Wrote this. I'm pretty sure it works. Any feedback appreciated. If you find...
Jeff Abrahamson
jeff_abrahamson
Offline Send Email
May 3, 2006
2:29 am
163
... Hash: SHA1 I didn't have too much time to take a look, but one thing I did notice that you could do would be to take advantage of the cmd module in the...
Andrew Gwozdziewycz
jyrixx
Offline Send Email
May 3, 2006
11:20 am
164
... Cool, I didn't know about that module. Thanks! -- Jeff Jeff Abrahamson <http://jeff.purple.com/> +1 215/837-2287 GPG fingerprint: 1A1A BA95 D082...
Jeff Abrahamson
jeff_abrahamson
Offline Send Email
May 3, 2006
11:45 am
165
I'm using getopt.gnu_getopt(). Anyone know of a way to specify an option with an optional argument, like getopt(3) does with a double colon: foo -c foo -c arg ...
Jeff Abrahamson
jeff_abrahamson
Offline Send Email
May 4, 2006
2:15 am
166
I'm guessing it doesn't work with the way you're used to? I think gnu_getopt is supposed to behave the way gnu getopt does. I haven't tried it, nor have I ever...
Andrew Gwozdziewycz
jyrixx
Offline Send Email
May 4, 2006
2:46 am
167
I have a list comprehension that looks like this: L = [ T.list() for T in self.cdr ] The function T.list() returns a list. What I get therefore looks like ...
Jeff Abrahamson
jeff_abrahamson
Offline Send Email
May 15, 2006
10:27 pm
168
... L = [ T.list()[0] for T in self.sdr ] ... Andrew Gwozdziewycz apgwoz@... http://23excuses.com | http://ihadagreatview.org | http://and.rovir.us...
Andrew Gwozdziewycz
jyrixx
Offline Send Email
May 15, 2006
11:11 pm
169
... Thanks. I gave too simple an example, I'm afraid. I call this recursively (it's part of a tree walk), so one example is this: ['barnyard', ['cow'],...
Jeff Abrahamson
jeff_abrahamson
Offline Send Email
May 15, 2006
11:34 pm
170
... Hash: SHA1 Yeah, I realized this. After looking at self.cdr, I figured that you're probably trying to nest lists deep. Your untested code would be correct...
Andrew Gwozdziewycz
jyrixx
Offline Send Email
May 16, 2006
12:03 am
171
... One easy way to do this is something like: def flatten(x): if hasattr(x, "__iter__"): result = [] for y in x: result.extend(flatten(y)) return result else:...
Erik Osheim
erik@...
Send Email
May 16, 2006
2:09 am
172
I just realized that we didn't actually answer your original question. We come as far as actually creating a way to do what you need, but not with list...
Andrew Gwozdziewycz
jyrixx
Offline Send Email
May 16, 2006
11:44 am
173
I would use the reduce() function with a simple add lambda as follows: L = reduce(lambda x,y: x+y, [T.list() for T in self.cdr]) Guido wants to get rid of...
Alan Elkner
aelkner
Offline Send Email
May 16, 2006
4:45 pm
174
... [1, 2, 3] ... [[1], 2, 3] ... This unfortunately doesn't work for the general case. I'm not sure if Jeff was actually looking for the general case though....
Andrew Gwozdziewycz
jyrixx
Offline Send Email
May 16, 2006
5:34 pm
175
... Since the data structure itself is recursive, then you probably are going to have a fairly significant block of code to take it apart iteratively. The...
Gary Coulbourne
ursinex
Offline Send Email
May 16, 2006
5:48 pm
176
... That's a nice method, but in this case it's probably needlessly recursive (since it recurses twice for each element, once for the "car" and once for the...
Erik Osheim
erik@...
Send Email
May 16, 2006
6:11 pm
177
Tkinter is pre-packaged, of course, but wxPython seems to be a standard for anything requiring more than a few simple widgets.. I've given PyQt a try (loved it...
r0b1nh00d3
Offline Send Email
May 19, 2006
2:12 am
178
I've used and liked PyGTK. I haven't used it in a while, and not since version 2.3 or 2.4, but it was nice fairly well documented and pretty intuitive. Lately...
Andrew Gwozdziewycz
jyrixx
Offline Send Email
May 19, 2006
3:28 am
179
I can definitely recommend wxPython as well. Learning to use sizers can be tricky, but the documentation is good and the demo application demonstrates each ...
Albert Boehmler
ajboehmler
Offline Send Email
May 19, 2006
12:41 pm
180
(answering initial questionnaire) I've been using Python for about 3 years. I started using it at work part-time, as a scripting/glue language in projects....
christian simms
csimms69
Offline Send Email
May 19, 2006
1:04 pm
181
... I have found PyGTK to be pretty good. However, I primarily use curses (although technically that's not a GUI). I've heard wxPython was great, but haven't...
Erik Osheim
erik@...
Send Email
May 19, 2006
2:33 pm
182
... TKinter is awful for anything larger than a calculator. Anyone ever built Tk apps with TCL? They go hand in hand, I can't imagine that together they...
Andrew Gwozdziewycz
jyrixx
Offline Send Email
May 19, 2006
3:15 pm
183
This feels like a lame question, but I've been struggling with it for too long now. I have an XML document (no DTD) and I want to think of it as a tree. I...
Jeff Abrahamson
jeff_abrahamson
Offline Send Email
May 22, 2006
5:55 pm
184
... Hash: SHA1 Perhaps Frederik Lundt's cElementTree is what you're refering too? I haven't used it personally, as I avoid XML whenever I can (I hate it and...
Andrew Gwozdziewycz
jyrixx
Offline Send Email
May 22, 2006
7:02 pm
185
Yup, that did it. Thanks! -Jeff ... -- Jeff Jeff Abrahamson <http://jeff.purple.com/> +1 215/837-2287 GPG fingerprint: 1A1A BA95 D082 A558 A276...
Jeff Abrahamson
jeff_abrahamson
Offline Send Email
May 22, 2006
7:53 pm
186
So, I stumbled upon google-goopy which implements some common functional programming functions, one of which happened to be flatten. Since it's BSD licensed, I...
Andrew Gwozdziewycz
jyrixx
Offline Send Email
May 26, 2006
1:11 am
187
Please humor this message from one of your sister Python user groups: There are five days left for PyCamp early bird registration. ...
Chris Calloway
ifoufo
Offline Send Email
May 26, 2006
3:39 pm
188
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...
Jeff Abrahamson
jeff_abrahamson
Offline Send Email
Jun 10, 2006
8:24 pm
189
... 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 ...
Gary Coulbourne
ursinex
Offline Send Email
Jun 10, 2006
10:19 pm
190
... 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@...
Send Email
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...
Jeff Abrahamson
jeff_abrahamson
Offline Send Email
Jul 7, 2006
5:06 pm
Messages 162 - 191 of 350   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help