Re: MySQLDB - parameterised SQL - TypeError: not all arguments converted during string formatting

2006-02-19 Thread shearichard
Hi Dennis - Thanks for your help with this Dennis Lee Bieber wrote: On 19 Feb 2006 16:26:15 -0800, [EMAIL PROTECTED] declaimed the following in comp.lang.python: Hi - I have written some python to insert a row into a table using MySQLDB. I have never before written SQL/Python using

New Module: CommandLoop

2006-02-19 Thread Crutcher
This is something I've been working on for a bit, and I think it is more or less ready to bring up on this list. I'd like to add a module (though probably not for 2.5). Before you ask, this module is _not_ compatible with cmd.py, as it is command oriented, whereas cmd.py is line oriented.

Re: Python vs. Lisp -- please explain

2006-02-19 Thread Fredrik Lundh
Alexander Schmolck wrote: My point was that Guido probably (and fortunately!) was unaware of the extent to which you can have both dynamism and speed any my point was that chosing to ignore something doesn't mean that you're ignorant. (but since you keep repeating this nonsense, it's clear

Re: Komodo - Will it Lock Me In?

2006-02-19 Thread Matt
Ravi Teja [EMAIL PROTECTED] wrote: Matt, in most cases, installing packages in Python is about as easy as it gets. Yes, it is easy, sort-of. I have installed many, many packages so far. My point is that with a polished IDE, you don't have to go through all of this. You download an installer,

Re: Komodo - Will it Lock Me In?

2006-02-19 Thread Peter Decker
On 2/19/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: My goal was to test out Python by writing a simple GUI app and then deploying it to Mac OS X and Windows XP. Using a product such as RealBasic, a totally green newbie could accomplish this in a few minutes.. So, I guess my main question

Re: Komodo - Will it Lock Me In?

2006-02-19 Thread Matt
Trent Mick [EMAIL PROTECTED] wrote: Perhaps you are thinking of some of the C/C++ IDEs (like Visual Studio on Windows and Xcode on the Mac) Hi Trent, Ravi, Actually, I had two things in mind: 1) HTML editors - I made a website using Yahoo Sitebuilder. It's a pretty good tool, but I didn't

Re: Komodo - Will it Lock Me In?

2006-02-19 Thread Matt
Peter Decker [EMAIL PROTECTED] wrote: You should take a look at Dabo, Yes, I have Dabo installed on my system. I made a small test app, but was unable to deploy it. I was getting an error from py2exe, I think, about how my wxPython installation was not correct. This is the kind of thing I am

Re: Mac OS X Installation Problem

2006-02-19 Thread Matt
[EMAIL PROTECTED] (Alex Martelli) wrote: Edit a ~/.bashrc file to add /usr/local/bin to your PATH. Hi Alex, Easier said than done for a non-unix expert. Correct me if I am wrong. Bash looks at the contents of the PATH variable to decided which directories it should scan when parsing a

Re: Format file size for printing

2006-02-19 Thread John Zenger
I know of no built-in way, but you could probably code this in a few lines using print %.1f and so on. (Some of us, by the way, are in the camp that believes a kilobyte is 1024 bytes, not 1000, so 103803 bytes for us is about 101.4 kilobytes). abcd wrote: is there a built-in way of printing

Re: Mac OS X Installation Problem

2006-02-19 Thread Matt
Kevin Walzer [EMAIL PROTECTED] wrote: It's not considered a good idea to trash Apple system files. It's likely that system tools that depend on Python (CoreImage scripting comes to mind) are now broken and the only way to fix this is to reinstall the OS. Thanks for the heads up. I thought that

Re: Open Relay Test

2006-02-19 Thread D
Thanks guys for the info..the DSBL client app is exactly what I need..unfortunately the app I'm writing will be for Windows (the only client I saw was for Linux). Do you know if there's a Windows command line port? -- http://mail.python.org/mailman/listinfo/python-list

Re: number ranges (was Re: Matlab page on scipy wiki)

2006-02-19 Thread John Zenger
Colin J. Williams wrote: Bryan Cole wrote: First, I think the range() function in python is ugly to begin with. Why can't python just support range notation directly like 'for a in 0:10'. Or with 0..10 or 0...10 syntax. That seems to make a lot more sense to me than having to call

Re: number ranges (was Re: Matlab page on scipy wiki)

2006-02-19 Thread Erik Max Francis
John Zenger wrote: I strongly agree that Python should promote range or xrange to syntax. I favor [0..10] rather than [0:10] because 0..10 is inherently easier to understand. Every maths text I have read uses the .. notation to show ranges; Math texts typically use a normal ellipsis ...

Re: Mac OS X Installation Problem

2006-02-19 Thread Alex Martelli
Matt wrote: [EMAIL PROTECTED] (Alex Martelli) wrote: Edit a ~/.bashrc file to add /usr/local/bin to your PATH. Hi Alex, Easier said than done for a non-unix expert. Correct me if I am wrong. Bash looks at the contents of the PATH variable to decided which directories it should scan

Re: Mac OS X Installation Problem

2006-02-19 Thread Alex Martelli
Matt wrote: ... But this begs the question, how do we upgrade our Python installations if OS X needs a certain version? Do we leave the pre-installed version alone and run a second Python installation? I suppose that the various package installers would know how to do that, right? Yes, and

Re: Python vs. Lisp -- please explain

2006-02-19 Thread Donn Cave
Quoth Alexander Schmolck [EMAIL PROTECTED]: | Fredrik Lundh [EMAIL PROTECTED] writes: ... | the only even remotely formal definition I've ever seen is language with | designed to script an existing application, with limited support for handling | its own state. | | Early Tcl and JavaScript are

why does close() fail miserably on popen with exit code -1 ?!

2006-02-19 Thread Atanas Banov
i ran onto this weirdness today: seems like close() on popen-ed (pseudo)file fails miserably with exception instead of returning exit code, when said exit code is -1. here is the simplest example (under Windows): print popen('exit 1').close() 1 print popen('exit -1').close() Traceback (most

Re: number ranges (was Re: Matlab page on scipy wiki)

2006-02-19 Thread bonono
Tim Hochberg wrote: Colin J. Williams wrote: It would be good if the range and slice could be merged in some way, although the extended slice is rather complicated - I don't understand it. The semantics for an extended slicing are as follows. The primary must evaluate to a mapping

Is inifinite loop not a good practice?

2006-02-19 Thread Alvin A. Delagon
Greetings, I have to write a python script that would continously monitor and process a queue database. Once the script sees an unprocessed record it will create a thread to process it otherwise it will do nothing. I've been planning to do an infinite loop within the script to do this but

Re: Python vs. Lisp -- please explain

2006-02-19 Thread Harald Armin Massa
OK, but then we should change http://python.org/doc/Summary.html, which starts with Python is an interpreted, interactive, object-oriented programming language. I second this motion. Even tried to persuade the site maintainer before. We should really, really change it. The perceived speed of

Re: How many web framework for python ?

2006-02-19 Thread Harald Armin Massa
Bruno, In fact, there are actually too much *good* python web frameworks. I tended to share that opinion, just because there are more web frameworks then keywords in Python. But we should stop thinking of this as a bug; it is a feature. Because everyone and his girlfriend creates an own web

Re: Is inifinite loop not a good practice?

2006-02-19 Thread Steve Holden
Alvin A. Delagon wrote: Greetings, I have to write a python script that would continously monitor and process a queue database. Once the script sees an unprocessed record it will create a thread to process it otherwise it will do nothing. I've been planning to do an infinite loop within

[ python-Feature Requests-563141 ] fileinput/gzip modules should play well

2006-02-19 Thread SourceForge.net
Feature Requests item #563141, was opened at 2002-06-01 02:27 Message generated for change (Comment added) made by birkenfeld You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=355470aid=563141group_id=5470 Please note that this message will contain a full copy of the

[ python-Bugs-764493 ] test test_nis crashed -- nis.error: no such key in map

2006-02-19 Thread SourceForge.net
Bugs item #764493, was opened at 2003-07-02 12:09 Message generated for change (Comment added) made by birkenfeld You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=764493group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Bugs-1433877 ] string parameter to ioctl not null terminated, includes fix

2006-02-19 Thread SourceForge.net
Bugs item #1433877, was opened at 2006-02-17 17:29 Message generated for change (Comment added) made by gvanrossum You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1433877group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Bugs-1431253 ] Logging hangs thread after detaching a StreamHandler's termi

2006-02-19 Thread SourceForge.net
Bugs item #1431253, was opened at 2006-02-14 06:07 Message generated for change (Comment added) made by vsajip You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1431253group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Bugs-1433877 ] string parameter to ioctl not null terminated, includes fix

2006-02-19 Thread SourceForge.net
Bugs item #1433877, was opened at 2006-02-17 16:29 Message generated for change (Comment added) made by qbarnes You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1433877group_id=5470 Please note that this message will contain a full copy of the comment

<    1   2