RE:GUI programs

2010-05-30 Thread jyoung79
Just want to say thank you to all those who responded with their thoughts so far. Really appreciate you taking the time to share. This list has always been incredibly helpful and insightful! I do have another quick question. Has anyone had any luck getting PyGUI working on Snow Leopard? I c

Re: Py_single_input and the side-effects...

2010-05-30 Thread Carl Banks
On May 30, 3:17 am, moerchendiser2k3 wrote: > Hi, any idea? Python doesn't guarantee that objects will be deleted at a specific time. There are different reasons why an object might not be deleted. In command line mode Python keeps a reference to the most recent result. I don't know if it happ

Re: What's the largest python/django powered website in the world?

2010-05-30 Thread Benjamin Kaplan
On Sun, May 30, 2010 at 4:27 PM, est wrote: > > > I'm afraid you'll need to define what you mean by "python powered". > > Except database, presentation layer, major business logic is done by > python. > > Except Google/youtube, what's next? > -- > http://mail.python.org/mailman/listinfo/python-lis

Re: What's the largest python/django powered website in the world?

2010-05-30 Thread James Mills
On Mon, May 31, 2010 at 9:27 AM, est wrote: > Except Google/youtube, what's next? bitbucket (1) is mostly implemented in Python cheers James 1. http://bitbucket.org/ -- -- "Problems are solved by method" -- http://mail.python.org/mailman/listinfo/python-list

Re: xrange issue 7721

2010-05-30 Thread Steven D'Aprano
On Mon, 31 May 2010 00:54:16 +0200, Martin v. Loewis wrote: >> Assuming that I am correct, can I create myself a login on the bugs >> tracker and re-open the issue to get this sorted? > > Definitely not. The issue you are looking at has been fixed; whatever > your issue is (you didn't state it cl

Re: What's the largest python/django powered website in the world?

2010-05-30 Thread est
> I'm afraid you'll need to define what you mean by "python powered". Except database, presentation layer, major business logic is done by python. Except Google/youtube, what's next? -- http://mail.python.org/mailman/listinfo/python-list

Re: Address of an immutable object

2010-05-30 Thread Steven D'Aprano
On Sun, 30 May 2010 22:08:49 +0200, candide wrote: > Alf P. Steinbach a écrit : >> * candide, on 30.05.2010 19:38: >>> Suppose a Python program defines an integer object with value 42. The >>> object has an "address" we can capture with the built-in function id() >>> : > >> First, id() doesn't ge

Re: MySQLdb install vs. "setuptools"

2010-05-30 Thread Benjamin Kaplan
On Sun, May 30, 2010 at 3:16 PM, John Nagle wrote: > Antoine Pitrou wrote: > >> On Sun, 30 May 2010 10:10:00 -0700 >> John Nagle wrote: >> >>> Actually, a "built" but "uninstalled" Python works fine. >>> If it >>> didn't, "make test" wouldn't work. >>> >> >> That's a completely unrelated th

Re: xrange issue 7721

2010-05-30 Thread Martin v. Loewis
Assuming that I am correct, can I create myself a login on the bugs tracker and re-open the issue to get this sorted? Definitely not. The issue you are looking at has been fixed; whatever your issue is (you didn't state it clearly), it must be a different one. So if you are going to report any

Re: MySQLdb install vs. "setuptools"

2010-05-30 Thread David Cournapeau
On Mon, May 31, 2010 at 7:16 AM, John Nagle wrote: >    It's nice that some of the options work.  Note that someone who > used "--bindir", expecting it to work, might end up overwriting their > existing Python installation unintentionally, which would break system > administration tools like cPan

Re: Returning value from home made unit - how to?

2010-05-30 Thread Mel
Martin Hvidberg wrote: > I have a Python program, which has until now, been running in command line > mode only. I wish to add a GUI. > > I would like to develop (and maintain) the GUI part in a separate module, > i.e. in its own .py file, and then ‘import’ that into the old main > program. > > I

Re: MySQLdb install vs. "setuptools"

2010-05-30 Thread Antoine Pitrou
On Sun, 30 May 2010 15:16:42 -0700 John Nagle wrote: > > It's nice that some of the options work. Note that someone who > used "--bindir", expecting it to work, might end up overwriting their > existing Python installation unintentionally, which would break system > administration tools lik

Re: What's the largest python/django powered website in the world?

2010-05-30 Thread Daniel Fetchinson
> just curious, what's the largest python powered website in the world? I'm afraid you'll need to define what you mean by "python powered". If the server side of a web application is written in 3 or more languages and one of them is python, does that count? If yes, then probably google and youtube

Re: MySQLdb install vs. "setuptools"

2010-05-30 Thread John Nagle
Antoine Pitrou wrote: On Sun, 30 May 2010 10:10:00 -0700 John Nagle wrote: Actually, a "built" but "uninstalled" Python works fine. If it didn't, "make test" wouldn't work. That's a completely unrelated thing. The main reason "make test" works with an uninstalled Python is simply so tha

What's the largest python/django powered website in the world?

2010-05-30 Thread est
Hi list, just curious, what's the largest python powered website in the world? and what's the largest django powered website in the world? Is it disqus.com? -- http://mail.python.org/mailman/listinfo/python-list

Re: GUI programs

2010-05-30 Thread prezjordan
How does GTK compare to Qt? -- http://mail.python.org/mailman/listinfo/python-list

Re: xrange issue 7721

2010-05-30 Thread Martin Manns
On Sun, 30 May 2010 00:49:11 +0100 Mark Lawrence wrote: > From http://docs.python.org/dev/library/itertools.html > "Unlike regular slicing, islice() does not support negative values > for start, stop, or step." > > Rule 1 of programming never assume anything, particularly wrt > testing. I ass

Re: Address of an immutable object

2010-05-30 Thread candide
Alf P. Steinbach a écrit : * candide, on 30.05.2010 19:38: Suppose a Python program defines an integer object with value 42. The object has an "address" we can capture with the built-in function id() : First, id() doesn't generally provide an address. I talked about a quote unquote "address

Re: Address of an immutable object

2010-05-30 Thread candide
Thanks for your responses, I should do more experiments ! -- http://mail.python.org/mailman/listinfo/python-list

Re: MySQLdb install vs. "setuptools"

2010-05-30 Thread Antoine Pitrou
On Sun, 30 May 2010 10:10:00 -0700 John Nagle wrote: > > Actually, a "built" but "uninstalled" Python works fine. > If it > didn't, "make test" wouldn't work. That's a completely unrelated thing. The main reason "make test" works with an uninstalled Python is simply so that the core develo

Re: strptime dilemma with Python 2.5

2010-05-30 Thread pythonista
You know why it looks like it has seconds and not microseconds? Because it does, and I'm on something. Thank you > > The date string looks like it has hours, minutes and seconds, not hours, > minutes and microseconds. -- http://mail.python.org/mailman/listinfo/python-list

Re: GUI programs

2010-05-30 Thread Colin J. Williams
On 30-May-10 08:22 AM, Philip Semanchuk wrote: On May 29, 2010, at 9:13 PM, wrote: Just curious if anyone would be willing to share their thoughts about different Python GUI programming modules. I've been doing a bit of research and am trying to find something that: 1. Is portable. Would li

Returning value from home made unit - how to?

2010-05-30 Thread Martin Hvidberg
Dear A may-bee beginner’s question I have a Python program, which has until now, been running in command line mode only. I wish to add a GUI. I would like to develop (and maintain) the GUI part in a separate module, i.e. in its own .py file, and then ‘import’ that into the old main program.

Re: if, continuation and indentation

2010-05-30 Thread Colin J. Williams
On 30-May-10 01:50 AM, Nathan Rice wrote: I prefer to just break such things into multiple lines. You're doing that already anyhow, it's not much of a speed hit, and it makes exactly what you're testing explicit. If I break a statement onto multiple lines I only use parenthesis, and that is as

Threads with Cmd and socket server combination

2010-05-30 Thread kak...@gmail.com
hi, I have implement a command line app using Python's cmd library module and it works fine. I 've also create a simple threaded socket server. How can i merge the two ones, so that the console app, is also a listening server? How can i achieve that with threads? I'm trying for days and i can't mak

Re: Address of an immutable object

2010-05-30 Thread Simon Brunning
On 30 May 2010 18:38:23 UTC+1, candide wrote: > Two non mutable objects with the same value shall be allocated at a constant > and unique address ? Nope. >>> a = 999 >>> b = 999 >>> id(a) == id(b) False Your statement will be the case for small integers, but this in an implementation detail. I

Re: MySQLdb install vs. "setuptools"

2010-05-30 Thread John Nagle
John Nagle wrote: David Cournapeau wrote: On Sun, May 30, 2010 at 3:56 PM, John Nagle wrote: MySQLdb won't install as non-root on Python 2.6 because its "setup.py" file requires "setuptools". "setuptools", unlike "distutils", isn't part of the Python 2.6 distribution. IMPORTANT PACKAGES

Re: Address of an immutable object

2010-05-30 Thread Alf P. Steinbach
* candide, on 30.05.2010 19:38: Suppose a Python program defines an integer object with value 42. The object has an "address" we can capture with the built-in function id() : >>> a=42 >>> id(a) 152263540 >>> Now I was wondering if any integer object with value 42 will be refered at the same

Address of an immutable object

2010-05-30 Thread candide
Suppose a Python program defines an integer object with value 42. The object has an "address" we can capture with the built-in function id() : >>> a=42 >>> id(a) 152263540 >>> Now I was wondering if any integer object with value 42 will be refered at the same adress with the above id. Some e

Re: strptime dilemma with Python 2.5

2010-05-30 Thread MRAB
pythonista wrote: Hello, I have a date string looking like the following: "Sun May 30 07:25:17 2010" With Python 2.6, the %f is supported (it parses the microseconds), so that this statement works: dt = datetime.strptime(s, "%a %b %d %H:%M:%f %Y") However, with Python 2.5, (which is supp

Re: MySQLdb install vs. "setuptools"

2010-05-30 Thread John Nagle
Antoine Pitrou wrote: Really, this shouldn't happen if you really are using a non-root version of Python: [Errno 2] No such file or directory: '/usr/local/lib/python2.6/site-packages/test-easy-install-22015.write-test' I don't think setuptools is dumb enough to hardcode things like "/usr

Re: MySQLdb install vs. "setuptools"

2010-05-30 Thread John Nagle
David Cournapeau wrote: On Sun, May 30, 2010 at 3:56 PM, John Nagle wrote: MySQLdb won't install as non-root on Python 2.6 because its "setup.py" file requires "setuptools". "setuptools", unlike "distutils", isn't part of the Python 2.6 distribution. IMPORTANT PACKAGES SHOULD NOT USE "set

strptime dilemma with Python 2.5

2010-05-30 Thread pythonista
Hello, I have a date string looking like the following: "Sun May 30 07:25:17 2010" With Python 2.6, the %f is supported (it parses the microseconds), so that this statement works: dt = datetime.strptime(s, "%a %b %d %H:%M:%f %Y") However, with Python 2.5, (which is supported on the live We

Re: GUI programs

2010-05-30 Thread Alf P. Steinbach
* jyoun...@kc.rr.com, on 30.05.2010 03:13: Just curious if anyone would be willing to share their thoughts about different Python GUI programming modules. I've been doing a bit of research and am trying to find something that: 1. Is portable. Would like to be able to send the module along wit

Re: MySQLdb install vs. "setuptools"

2010-05-30 Thread David Cournapeau
On Sun, May 30, 2010 at 3:56 PM, John Nagle wrote: >   MySQLdb won't install as non-root on Python 2.6 because > its "setup.py" file requires "setuptools".  "setuptools", > unlike "distutils", isn't part of the Python 2.6 distribution. > >   IMPORTANT PACKAGES SHOULD NOT USE "setuptools".  Use the

Re: GUI programs

2010-05-30 Thread Grant Edwards
On 2010-05-30, wrote: > 1. wxPython - This looks very good, although I'm not sure > how to set up portability with this. I'm not sure what you mean by "set up portability". If you follow the wxPython API documentation, then wxPython code is fairly portable. > Other machines that would run t

$Wholesale Sports Shoes Clear Air Force One AAA++quality

2010-05-30 Thread yan
$Wholesale Sports Shoes Clear Air Force One AAA++quality please kindly visite our website: http://www.8000trade.com supply sports shoes. The brand Sports shoes basketball shoes, Boot, walling shoes, Athletic shoes, Jogging shoes, running shoes, leather shoes, football, shoe sports shoe Footwear Sne

Re: GUI programs

2010-05-30 Thread Philip Semanchuk
On May 29, 2010, at 9:13 PM, wrote: Just curious if anyone would be willing to share their thoughts about different Python GUI programming modules. I've been doing a bit of research and am trying to find something that: 1. Is portable. Would like to be able to send the module along wit

Re: MySQLdb install vs. "setuptools"

2010-05-30 Thread Antoine Pitrou
Really, this shouldn't happen if you really are using a non-root version of Python: > [Errno 2] No such file or directory: > '/usr/local/lib/python2.6/site-packages/test-easy-install-22015.write-test' I don't think setuptools is dumb enough to hardcode things like "/usr/local/lib/python2.6

Re: Py_single_input and the side-effects...

2010-05-30 Thread moerchendiser2k3
Hi, any idea? -- http://mail.python.org/mailman/listinfo/python-list

Re: GUI programs

2010-05-30 Thread Detlev Offenbach
I would recommend PyQt. I've done a lot of programming with it (http://eric-ide.python-projects.org) and am amazed about the platform neutrality it offers. Regards, Detlev jyoun...@kc.rr.com wrote: > Just curious if anyone would be willing to share their thoughts > about different Python GUI p

How to use dbstore in google app engine

2010-05-30 Thread Ou Chao
Hi all: I have a question. How GEA save a file as simulates the App Engine datastore in local computer? where is the file? thank you -- http://mail.python.org/mailman/listinfo/python-list

Re: xrange issue 7721

2010-05-30 Thread Steven D'Aprano
On Sat, 29 May 2010 19:46:28 +0100, Mark Lawrence wrote: > I've had an OverflowError using xrange with Python 2.6.5 on Windows. > Googling got me to the subject line. It is considered best practice (or at least sensible practice) to include a relevant URL in your post. This will maximise the num