Issues installing MySQL-python-0.3.5

2006-02-13 Thread keith
Hi, I am trying to use the Python MySQL APIs and have been attempting to install the above software. I am using MySQL 5.0.18-standard with Python 2.4.1 I get errors on the build. Some searching showed that one of the modules I was having issues with now has less arguments in my version of python

Re: Jedit

2006-02-13 Thread ziggy
In article <[EMAIL PROTECTED]>, Peter Hansen <[EMAIL PROTECTED]> wrote: > ziggy wrote: > > Just wondering if there is something out there like Jedit, but written > > in python ( not just supporting, but actually written in it.. ) > > > > Nothing large like Stanzi's or Boa.. Just something quick

Re: ANN: PyGUI 1.6

2006-02-13 Thread DH
Wolfgang Keller wrote: > Hello, > > On Sun, 12 Feb 2006 07:50:56 +0100, greg wrote > (in article <[EMAIL PROTECTED]>): >> PyGUI is an experimental highly-Pythonic cross-platform >> GUI API. > > How "experimental" (or useable for productivity applications) would you > consider it compared to e.g.

Re: readlines and break apart based on letters

2006-02-13 Thread Kent Johnson
rtilley wrote: > Hi, > > While trying to better understand security descriptors on Windows. I've > been examining text-based security descriptors. I have the security > descriptors on individual lines stored in a text file. I want to break > these lines apart based on owner, group, dacl and sac

Re: how do you pronounce 'tuple'?

2006-02-13 Thread Erik Max Francis
Grant Edwards wrote: > Of course! What did you expect from devotees of a language > named after one of the greatest comedy shows in TV history? Seriously? Endless references to it until it gets painfully old :-(. The Python language, at least, has seemed to have gotten past that point in its h

Loop Backwards

2006-02-13 Thread Dave
This should be simple, but I can't get it: How do you loop backwards through a list? For example, in, say, Javascript: for (var i = list.length - 1; i >=0; i--) { do_stuff() } I mean, I could reverse the list, but I don't want to. I want it to stay exactly the same, but I want to start at

Re: how do you pronounce 'tuple'?

2006-02-13 Thread Erik Max Francis
Terry Hancock wrote: > I doubt that helps much: I pronounce all of those words > (when I use them, which is not too often) as "-toopel". The > only tuple I pronounce with the "-uh-" is "couple", and I > usually call that a "two-tuple" when dealing with Python. I prefer the name _pair_ :-). > I s

Re: how do you pronounce 'tuple'?

2006-02-13 Thread Erik Max Francis
Peter Maas wrote: > tuples are of latin origin, so one can derive the tuple words > systematically: > > Latin n-tuple > --- > ... ... > triplex triple > duplexduple > simplex simple Yeah but there's already plenty

Re: invert the order of a string

2006-02-13 Thread Eric McGraw
> Well, it turns out to be the best way to invert a string, IMO. The > reversed() feature returns a reversed object... not a reversed string. > In short, I have to fool with it again _after_ it has been inverted. The > slicing takes care of the job right away and gives me what I want... no > Comput

Re: Loop Backwards

2006-02-13 Thread Dave
Thanks! I knew it was simple... -- http://mail.python.org/mailman/listinfo/python-list

listing attributes

2006-02-13 Thread Thomas Girod
Hi there. I'm trying to get a list of attributes from a class. The dir() function seems to be convenient, but unfortunately it lists to much - i don't need the methods, neither the built-in variables. In fact, all my variables are referencing to objects of the same type. Can anyone suggest me a w

Re: invert the order of a string

2006-02-13 Thread Carl Cerecke
Eric McGraw wrote: >>Well, it turns out to be the best way to invert a string, IMO. The >>reversed() feature returns a reversed object... not a reversed string. >>In short, I have to fool with it again _after_ it has been inverted. The >>slicing takes care of the job right away and gives me what I

Re: Loop Backwards

2006-02-13 Thread Carl Cerecke
Dave wrote: > This should be simple, but I can't get it: > > How do you loop backwards through a list? > > For example, in, say, Javascript: > > for (var i = list.length - 1; i >=0; i--) { > do_stuff() > } > > I mean, I could reverse the list, but I don't want to. I want it to > stay exact

Re: Loop Backwards

2006-02-13 Thread bonono
[EMAIL PROTECTED] wrote: > Dave wrote: > > This should be simple, but I can't get it: > > > > How do you loop backwards through a list? > > > > For example, in, say, Javascript: > > > > for (var i = list.length - 1; i >=0; i--) { > > do_stuff() > > } > > > > I mean, I could reverse the list,

Re: how do you pronounce 'tuple'?

2006-02-13 Thread Carl Cerecke
Erik Max Francis wrote: > Terry Hancock wrote: > >> I doubt that helps much: I pronounce all of those words >> (when I use them, which is not too often) as "-toopel". The >> only tuple I pronounce with the "-uh-" is "couple", and I >> usually call that a "two-tuple" when dealing with Python. > >

Re: Python 2.4.2 and Berkeley DB 4.4.20 ?

2006-02-13 Thread skip
Damjan> This is from the Slackware-current changelog: Damjan> d/python-2.4.2-i486-1.tgz: Upgraded to python-2.4.2. Damjan>The bsddb module didn't build against the new 4.4.x Damjan>version of Berkeley DB. Does anyone care? Or perhaps have Damjan>a patch?

Re: Loop Backwards

2006-02-13 Thread skip
Dave> This should be simple, but I can't get it: Dave> How do you loop backwards through a list? Standard idiom: for i in range(len(mylist)-1, -1, -1): do_stuff() Contrast that with the standard forward loop: for i in range(len(mylist)): do_stuff() So, to go ba

Re: how do you pronounce 'tuple'?

2006-02-13 Thread Roy Smith
Erik Max Francis <[EMAIL PROTECTED]> wrote: > (A 2-tuple is an "ordered pair" in mathematics.) If a 2-tuple is a > pair, then it would seem to follow that a 1-tuple is a single. Yeah, but an *ordered* single :-) A more interesting question is what do you call ()? A none-tuple? -- http://mail.

Re: Loop Backwards

2006-02-13 Thread [EMAIL PROTECTED]
Dave wrote: > This should be simple, but I can't get it: > > How do you loop backwards through a list? > > For example, in, say, Javascript: > > for (var i = list.length - 1; i >=0; i--) { > do_stuff() > } > > I mean, I could reverse the list, but I don't want to. I want it to > stay exactly

Re: listing attributes

2006-02-13 Thread Peter Hansen
Thomas Girod wrote: > I'm trying to get a list of attributes from a class. The dir() function > seems to be convenient, but unfortunately it lists to much - i don't > need the methods, neither the built-in variables. > > In fact, all my variables are referencing to objects of the same type. > Can

Re: listing attributes

2006-02-13 Thread James Stroud
Thomas Girod wrote: > Hi there. > > I'm trying to get a list of attributes from a class. The dir() function > seems to be convenient, but unfortunately it lists to much - i don't > need the methods, neither the built-in variables. > > In fact, all my variables are referencing to objects of the sa

Re: listing attributes

2006-02-13 Thread Evan Monroig
On Feb.13 18h37, Thomas Girod wrote : > Hi there. > > I'm trying to get a list of attributes from a class. The dir() function > seems to be convenient, but unfortunately it lists to much - i don't > need the methods, neither the built-in variables. If you do something like this you should have a

Cygwin IDLE has no menu bar

2006-02-13 Thread Steve Holden
I just wondered whether anyone has seen this problem and fixed it. An IDLE with no menu bar isn't much use ... Python 2.4.1 (#1, May 27 2005, 18:02:40) [GCC 3.3.3 (cygwin special)] on cygwin Type "copyright", "credits" or "license()" for more information. [...] IDLE 1.1.1 >>> regard -- Steve Hol

Re: how do you pronounce 'tuple'?

2006-02-13 Thread Erik Max Francis
Roy Smith wrote: > Peter Maas <[EMAIL PROTECTED]> wrote: >>Latin n-tuple >>--- >>... ... >>triplex triple >>duplexduple >>simplex simple > > Would a 9-tuple be a nipple? We don't talk about that anymore since the

Re: how do you pronounce 'tuple'?

2006-02-13 Thread Erik Max Francis
Roy Smith wrote: > A more interesting question is what do you call ()? A none-tuple? Yeah, that's at the point where it _really_ departs from anything remotely mathematical. Don't think I've ever heard the occasion to talk about 0-tuples in any context, though, so I don't think it's something

Re: how do you pronounce 'tuple'?

2006-02-13 Thread Tim Hochberg
Erik Max Francis wrote: > Roy Smith wrote: > > >>A more interesting question is what do you call ()? A none-tuple? > > > Yeah, that's at the point where it _really_ departs from anything > remotely mathematical. Don't think I've ever heard the occasion to talk > about 0-tuples in any contex

Re: Jedit

2006-02-13 Thread Kevin Walzer
ziggy wrote: > Just wondering if there is something out there like Jedit, but written > in python ( not just supporting, but actually written in it.. ) > > Nothing large like Stanzi's or Boa.. Just something quick and simple, > with code completion, and a debugger.. IDLE -- http://mail.python.

Re: Jedit

2006-02-13 Thread Ravi Teja
ziggy wrote: > Just wondering if there is something out there like Jedit, but written > in python ( not just supporting, but actually written in it.. ) > > Nothing large like Stanzi's or Boa.. Just something quick and simple, > with code completion, and a debugger.. PythonWin, so long as you are

any lib to generatre treemap?

2006-02-13 Thread oyster
I want to visualize my disk space like http://www.werkema.com/img/scrnshot/spacemonger.gif. ie. draw the directory as a big rectangle and its size is proportionable to the file size under this directory, then draw and fill small rectangles into it to behalf the size of every files. Is there a lib/s

Re: Logging hangs thread after detaching a StreamHandler's terminal

2006-02-13 Thread python-list . overbored
Apologies, I seem to have sent this to the wrong list. (Though now that it's out here...any answers would be most welcome. :) On 2/14/06, I wrote: > Hi all, > > After many hours, I think I've found a bug in the logging module! > > If you add a (stdout) StreamHandler to a logger, then detach the >

Logging hangs thread after detaching a StreamHandler's terminal

2006-02-13 Thread python-list . overbored
Hi all, After many hours, I think I've found a bug in the logging module! If you add a (stdout) StreamHandler to a logger, then detach the terminal for that stdout, subsequent calls to log() will hang the calling thread. To reproduce this, write the following scripts (this was a small test case

88k regex = RuntimeError

2006-02-13 Thread jodawi
I need to find a bunch of C function declarations by searching thousands of source or html files for thousands of known function names. My initial simple approach was to do this: rxAllSupported = re.compile(r"\b(" + "|".join(gAllSupported) + r")\b") # giving a regex of \b(AAFoo|ABFoo| (uh... 8

Re: Is python very slow compared to C

2006-02-13 Thread Alex Martelli
<[EMAIL PROTECTED]> wrote: ... > The "=" operator in Python ...doesn't exist, since '=' is not an operator in Python (just like it isn't, say, in VB). But, OK, you mean "assignment". > is also quite different from many language > people had experience like C Yes, but quite similar to assig

Re: Encoding

2006-02-13 Thread Lad
Yes, 'some data'.decode('utf8').encode('windows-1250') works great. Thanks L.B. -- http://mail.python.org/mailman/listinfo/python-list

Re: Jedit

2006-02-13 Thread Lad
Pythonwin is not good,if you use non Ascii characters.I had to moved to Jedit. L.B -- http://mail.python.org/mailman/listinfo/python-list

Splitting a string

2006-02-13 Thread Nico Grubert
Dear Python users, I'd like to split a string where 'and', 'or', 'and not' occurs. Example string: s = 'Smith, R. OR White OR Blue, T. AND Black AND Red AND NOT Green' I need to split s in order to get this list: ['Smith, R.', 'White', 'Blue, T.', 'Back', 'Red', 'Green'] Any idea, how I can spl

Re: how do you pronounce 'tuple'?

2006-02-13 Thread Terry Hancock
On Mon, 13 Feb 2006 18:27:40 -0800 Erik Max Francis <[EMAIL PROTECTED]> wrote: > Terry Hancock wrote: > > The only tuple I pronounce with the "-uh-" is "couple", > > and I usually call that a "two-tuple" when dealing with > > Python. > > I prefer the name _pair_ :-). Yeah, that works too. > > S

Re: OT: Another try at Python's selfishness

2006-02-13 Thread Christos Georgiou
On Thu, 9 Feb 2006 10:35:37 +0100, rumours say that "Frithiof Andreas Jensen" <[EMAIL PROTECTED]> might have written: >If one was trying to detect fanatics of any creed, a certain indicator would >be that they have absolutely no sense of humour - they suffer from a >yet-to-be-described variant of

Re: Tracking down memory leaks?

2006-02-13 Thread Christos Georgiou
On 12 Feb 2006 05:11:02 -0800, rumours say that "MKoool" <[EMAIL PROTECTED]> might have written: >I have an application with one function called "compute", which given a >filename, goes through that file and performs various statistical >analyses. It uses arrays extensively and loops alot. it pr

<    1   2   3