Messages from Python Macros, always on top?

2009-05-28 Thread John Doe
Anyone here familiar with Messages from Python Macros? Can you make that window Always on Top? Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Most pythonic way to truncate unicode?

2009-05-28 Thread John Machin
Steven D'Aprano REMOVE-THIS-cybersource.com.au> writes: > > On Fri, 29 May 2009 04:09:53 +, John Machin wrote: > > > John Machin lexicon.net> writes: > > > >> Andrew Fong gmail.com> writes: > > > > > Are > >> > there any built-in ways to do something like this already? Or do I > >> > j

Re: Building mySQL-python with python 2.6

2009-05-28 Thread Gabriel Genellina
On 28 mayo, 02:16, abolotnov wrote: > say I obtain and install "an alternative" compiler. how do I tell > python which one to use? VS2008 Express Edition is available for free from the Microsoft site. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: DB-API execute params, am I missing something?

2009-05-28 Thread Teguh Iskanto
On Fri, May 29, 2009 at 3:21 PM, Dennis Lee Bieber wrote: > >This won't work as the DB-API is going to quote the parameter, and > the final result would be '%'whatever'%'. Essentially, you must put the > wildcard marker on the actual parameter before feeding it to the API. > -- >Wu

Re: How can 'type' be an instance of itself?

2009-05-28 Thread Terry Reedy
LittleGrasshopper wrote: On May 28, 4:37 pm, Christian Heimes wrote: LittleGrasshopper wrote: This is probably trivial, but it's driving me mad somehow. All (new style) classes are instances of 'type' by default, unless a custom metaclass is specified. I take this to mean that when a class t

Re: Python, Tkinter and popen problem

2009-05-28 Thread Peter Otten
norseman wrote: > The direct question comes back to: > How does one force a sync or flush() to take effect in Python with > Tkinter in use? Or just in Python period. The keyword being force. Here's some truly minimal code which shows the same buffering behaviour: $ cat master.py #!/usr/bin/env p

Re: How can 'type' be an instance of itself?

2009-05-28 Thread LittleGrasshopper
On May 28, 11:07 pm, Terry Reedy wrote: > LittleGrasshopper wrote: > > On May 28, 4:37 pm, Christian Heimes wrote: > >> LittleGrasshopper wrote: > >>> This is probably trivial, but it's driving me mad somehow. All (new > >>> style) classes are instances of 'type' by default, unless a custom > >>>

Re: python list pattern matching?

2009-05-28 Thread Peter Otten
Terry Reedy wrote: > >>> a,b,*rest = list(range(10)) The list() call is superfluous. -- http://mail.python.org/mailman/listinfo/python-list

Re: DB-API execute params, am I missing something?

2009-05-28 Thread Gabriel Rossetti
Diez B. Roggisch wrote: Gabriel Rossetti wrote: Hello everyone, I am trying to use dbapi with mysql and I get this error: Traceback (most recent call last): File "", line 1, in File "", line 2, in getUnitParams File "/var/lib/python-support/python2.5/MySQLdb/cursors.py", line 151, in

Re: DB-API execute params, am I missing something?

2009-05-28 Thread Gabriel Rossetti
Paul Boddie wrote: On 26 Mai, 13:46, Gabriel Rossetti wrote: def getParams(curs): curs.execute("select * from param where id=%d", 1001) First of all, you should use the database module's parameter style, which is probably "%s" - something I've thought should be deprecated for a lo

Re: What text editor is everyone using for Python

2009-05-28 Thread Gabor Urban
Hi guys, I would like to reflect this issue for the last time, though I found this thread to be quite inspiring. In one the last postings about this topic Steven D'Aprano has written: "As a general rule, menus are discoverable, while keyboard commands aren't. There's nothing inherent to text edit

<    1   2