Re: Any Swisses here?

2010-01-02 Thread J Sisson
On Sat, Jan 2, 2010 at 9:38 PM, n00m wrote: > What you achieved in the life? English mastery, for starters... -- http://mail.python.org/mailman/listinfo/python-list

Re: Best strategy for overcoming excessive gethostbyname timeout.

2009-11-27 Thread J Sisson
On Fri, Nov 27, 2009 at 9:20 PM, r0g wrote: > Ahh so close. I set the alarm for 3 seconds and it raises the exception, > but only after spending 25 seconds seemingly blocked in gethostbyname. > > Here's a snippet, just in case I'm doing it wrong!... > > If you're doing many lookups prior to conne

Re: IDE for python similar to visual basic

2009-09-24 Thread J Sisson
On Sun, Sep 13, 2009 at 6:25 AM, Nobody wrote: > On Fri, 11 Sep 2009 05:27:59 -0700, r wrote: > > > Sounds like "somebody" failed to get input > > from their users at design time. Or "somebody" has the inability to > > relate to their end users. > > You're assuming that there is some "right" an

Re: Sorting a list

2008-10-28 Thread J Sisson
To expand on Tino's response, sort() sorts in place and does not *return* a sorted copy of the list. In other words: unsortedList = list(["XYZ","ABC"]) unsortedList.sort() print sortedList is correct. Since sort() returns None, you lose your list if you do: unsortedList = unsortedList.sort()

Re: #!/usr/bin/env python vs. #!/usr/bin/python

2008-05-01 Thread J Sisson
The first method allows python to be installed in an alternate location (i.e. /usr/local/bin). "env" in this case is being used to launch python from whatever location python is installed to. I like to think of it as an "abstraction" of the python location to make it "multiplatform-friendly" sinc

Re: Does Python 2.5 include or not include SQLite engine?

2008-04-22 Thread J Sisson
On Gentoo, SQLite can be turned on or off via the sqlite USE flag for Python 2.5+ during installation. There's also a separate pysqlite package, and the python-updater script doesn't seem to take Python2.5's build into account when (re)building all of the Python2.4 modules for Python2.5...it break

Re: How to make python run faster

2008-04-14 Thread J Sisson
2008/4/14 <[EMAIL PROTECTED]>: > On Apr 14, 8:48 am, 一首诗 <[EMAIL PROTECTED]> wrote: > > > But, it is still not as fast as 1. > > > So if speed is the #1 design goal, use pure C. If not, develop in > pure Python and, if the application is too slow, profile the code and > look for bottlenecks that

Re: Beginners Query - Simple counter problem

2007-09-06 Thread J Sisson
Silly question, but are you importing random somewhere in that file? It works on both my XP machine and my Linux machine (both from CLI) after importing random...though it runs through this: while count <= i: i + 1 times...(You initialize count to 0, then loop over it until it hits i+1 (at which

Re: Asking all python programmers.

2007-08-28 Thread J Sisson
On 8/28/07, Lamonte Harris <[EMAIL PROTECTED]> wrote: > > From a python starter, I don't like the word noob because it sounds very > unprofessional. > Touche`...haha I second the motion for "Dive Into Python." It's an excellent book, and you really can't beat the price (free online as Shawn has

Re: The best platform and editor for Python

2007-07-06 Thread J Sisson
On 7/6/07, Ed Jensen <[EMAIL PROTECTED]> wrote: Alex Martelli <[EMAIL PROTECTED]> wrote: > Calling all vi/vim users (and we'll heartily appreciate the support of > TextMate fans, BBEdit ones, etc, etc) -- we're at risk being defined out > of existence, since we're neither happy with Emacs nor wa