Re: Opportunity to author Python books- Packt Publishing.

2010-03-09 Thread sstein...@gmail.com
On Mar 8, 2010, at 6:25 AM, Kshipra Singh wrote: I would be delighted to write a cookbook on the stuff I use every day: python for administering cloud servers. Thanks, S aka/Steve Steiner aka/ssteinerX Hi All, I am writing to you for Packt Publishing, the publishers computer related

Re: A scopeguard for Python

2010-03-08 Thread sstein...@gmail.com
On Mar 8, 2010, at 7:28 AM, Steve Holden wrote: But your response, both the out of context quoting and your comment, seems solely designed to convey a negative impression instead of addressing any technical issue. This isn't an isolated case, Alf. Physician, heal thyself. As far as I can

Re: python b.python 8 works on XP but not on Vista?

2010-03-06 Thread sstein...@gmail.com
On Mar 6, 2010, at 8:23 PM, Isaac Gouy wrote: On Mar 6, 4:53 pm, Chris Rebert c...@rebertia.com wrote: On Sat, Mar 6, 2010 at 4:42 PM, Isaac Gouy igo...@yahoo.com wrote: On Mar 6, 4:02 pm, Chris Rebert c...@rebertia.com wrote: On Sat, Mar 6, 2010 at 3:53 PM, Isaac Gouy igo...@yahoo.com

Re: cpan for python?

2010-02-28 Thread sstein...@gmail.com
On Feb 28, 2010, at 9:28 AM, Someone Something wrote: Is there something like cpan for python? I like python's syntax, but I use perl because of cpan and the tremendous modules that it has. -- Please search the mailing list archives. This subject has been discussed to absolute death.

Re: Python dos2unix one liner

2010-02-27 Thread sstein...@gmail.com
On Feb 27, 2010, at 10:01 AM, @ Rocteur CC wrote: Nothing to do with Perl, Perl only takes a handful of characters to do this and certainly does not require the creation an intermediate file Perl may be better for you for throw-away code. Use Python for the code you want to keep (and read

Re: Python dos2unix one liner

2010-02-27 Thread sstein...@gmail.com
On Feb 27, 2010, at 12:27 PM, John Bokma wrote: sstein...@gmail.com sstein...@gmail.com writes: On Feb 27, 2010, at 10:01 AM, @ Rocteur CC wrote: Nothing to do with Perl, Perl only takes a handful of characters to do this and certainly does not require the creation an intermediate file

Re: scope of generators, class variables, resulting in global na

2010-02-27 Thread sstein...@gmail.com
On Feb 27, 2010, at 6:57 PM, dontspamleo wrote: http://bioscreencastwiki.com/Python_Variable_scope_gymnastics Broken link: Site settings could not be loaded We were unable to locate the API to request site settings. Please see below for debugging information. HTTP Response Status Code:

Re: help with Python installation

2010-02-27 Thread sstein...@gmail.com
I do not even know what to do next. I also tried Activepython. It installs but when I try to open it from Start-Programs-ActivePython 2.6, I get an error window saying - upgrade windows. Hmm, have you tried upgrading windows, just a wild guess! Hey, not everyone can afford to upgrade

Re: When will Python go mainstream like Java?

2010-02-23 Thread sstein...@gmail.com
On Feb 23, 2010, at 10:10 AM, Martin P. Hellwig wrote: Actually I am still waiting for Java to be mainstream :-) You could say it is popular, which it is without doubt but in my opinion after C handed over it's pseudo de facto standard (mostly because a lot of OS'es are written in it)

Re: python dowload

2010-02-23 Thread sstein...@gmail.com
On Feb 23, 2010, at 2:42 PM, monkeys paw wrote: I used the following code to download a PDF file, but the file was invalid after running the code, is there problem with the write operation? import urllib2 url = 'http://www.whirlpoolwaterheaters.com/downloads/6510413.pdf' a =

Re: The future of frozen types as the number of CPU cores increases

2010-02-23 Thread sstein...@gmail.com
On Feb 23, 2010, at 8:30 PM, Steven D'Aprano wrote: On Tue, 23 Feb 2010 10:35:38 -0800, John Nagle wrote: The issue being discussed was scaling Python for CPUs with many cores. With Intel shipping 4 cores/8 hyperthread CPUs, the 6/12 part working, and the 8/16 part coming along, this is

Re: DreamPie - The Python shell you've always dreamed about!

2010-02-21 Thread sstein...@gmail.com
On Feb 21, 2010, at 11:51 AM, Chris Colbert wrote: http://dreampie.sourceforge.net/download.html reading is a wonderful thing. I got it running on OS X with MacPorts after about an hour of installing everything required for gtk and gtksourceview (including a new gcc, apparently). Now...if

Re: DreamPie - The Python shell you've always dreamed about!

2010-02-21 Thread sstein...@gmail.com
On Feb 21, 2010, at 4:40 PM, Mensanator wrote: On Feb 21, 12:14 pm, Paul Boddie p...@boddie.org.uk wrote: On 21 Feb, 17:32, Mensanator mensana...@aol.com wrote: On Feb 21, 10:30 am, Mensanator mensana...@aol.com wrote: What versions of Python does it suuport? What OS are supported?

Re: DreamPie - The Python shell you've always dreamed about!

2010-02-21 Thread sstein...@gmail.com
On Feb 21, 2010, at 9:10 PM, Shashwat Anand wrote: Just got it working in mac. Installing dependencies took a bit though. I used macports and it was only 2 installs: # sudo port install py26-pygtksourceview # sudo port install py26-gtk2 It sure did install a lot of other stuff, like a new

Re: Is there a way to continue after an exception ?

2010-02-20 Thread sstein...@gmail.com
On Feb 20, 2010, at 9:17 PM, Lie Ryan wrote: On 02/21/10 12:02, Stef Mientki wrote: On 21-02-2010 01:21, Lie Ryan wrote: On Sun, Feb 21, 2010 at 12:52 AM, Stef Mientki stef.mien...@gmail.com wrote: hello, I would like my program to continue on the next line after an uncaught

Re: What happened to pyjamas?

2010-02-18 Thread sstein...@gmail.com
Down from here (NH, US). S On Feb 18, 2010, at 1:44 PM, Chris Colbert wrote: -- http://mail.python.org/mailman/listinfo/python-list

Re: how to structure a directory with many scripts and shared code

2010-02-16 Thread sstein...@gmail.com
On Feb 16, 2010, at 3:28 AM, Benedict Verheyen wrote: Steven D'Aprano wrote: On Mon, 15 Feb 2010 16:29:05 +0100, Benedict Verheyen wrote: However, when i make a subdirectory, for example database and put a script in there, how would i import logutils or mailtutils from within the database

Re: listing existing windows services with python

2010-02-16 Thread sstein...@gmail.com
On Feb 16, 2010, at 4:04 AM, Ben Finney wrote: Please, don't send the above kind of vitriol to this public forum. Better yet, compose it in your editor, bask in what you've written, then delete it unsent. +1 If you kids want to have some sort of pissing-in-your-sockpuppet type of contest

Re: how to structure a directory with many scripts and shared code

2010-02-15 Thread sstein...@gmail.com
On Feb 15, 2010, at 11:06 AM, Jean-Michel Pichavant wrote: 3/ make sure your working copy of myBeautifulPackage is in your PYTHONPATH. Or, make a simple setup.py which imports distribute or setuptools and use: # python setup.py develop which will put your code into the PYTHONPATH by

Re: MemoryError, can I use more?

2010-02-12 Thread sstein...@gmail.com
On Feb 12, 2010, at 7:21 PM, Echavarria Gregory, Maria Angelica wrote: Dear group: I am developing a program using Python 2.5.4 in windows 32 OS. The amount of data it works with is huge. I have managed to keep memory footprint low, but have found that, independent of the physical RAM of

Re: Terminating threaded programs

2010-02-11 Thread sstein...@gmail.com
On Feb 11, 2010, at 11:43 AM, Aahz wrote: In article mailman.1961.1265383809.28905.python-l...@python.org, mk mrk...@gmail.com wrote: I have a problem with a threaded program: it frequently hangs on sys.exit. The problem is that my program uses threads which in turn use paramiko

Re: Creating formatted output using picture strings

2010-02-10 Thread sstein...@gmail.com
On Feb 10, 2010, at 2:57 PM, Grant Edwards wrote: On 2010-02-10, pyt...@bdurham.com pyt...@bdurham.com wrote: [regardning picture output format specifiers] I was thinking that there was a built-in function for this common(?) use case I haven't seen that paradigm since my one-and-only

Re: Creating formatted output using picture strings

2010-02-10 Thread sstein...@gmail.com
On Feb 10, 2010, at 3:40 PM, Grant Edwards wrote: On 2010-02-10, sstein...@gmail.com sstein...@gmail.com wrote: On Feb 10, 2010, at 2:57 PM, Grant Edwards wrote: On 2010-02-10, pyt...@bdurham.com pyt...@bdurham.com wrote: [regardning picture output format specifiers] I was thinking

Re: Choosing GUI Module for Python

2009-11-09 Thread sstein...@gmail.com
On Nov 9, 2009, at 3:59 AM, Antony wrote: You may want to offer a little more info, like what exactly you are looking to do with such GUI. are your needs for a VW, Corvette, or Mercedes? etc, etc. All these kits have pros and cons, some better for this some for that, yadda yadda I would

Re: CGI vs mod_python

2009-11-09 Thread sstein...@gmail.com
On Nov 9, 2009, at 9:32 AM, Victor Subervi wrote: Hi; I've been told by a server farm that they're having trouble getting my scripts to work because they're written with cgi calls as opposed to mod_python. Is there a basis for their complaint? These pages serve fine on another server.

Re: CGI vs mod_python

2009-11-09 Thread sstein...@gmail.com
On Nov 9, 2009, at 10:18 AM, Victor Subervi wrote: Yes, obviously. But if CGI is enabled, it should work anyway, should it not? Depends on what CGI is enabled means. Usually, web servers are not set to just handle cgi scripts from anywhere, but only from specific file system locations.

Re: Req. comments on first version ch 2 progr. intro (using Python 3.x in Windows)

2009-11-09 Thread sstein...@gmail.com
On Nov 9, 2009, at 11:54 AM, Jon Clements wrote: On Nov 9, 4:10 pm, Alf P. Steinbach al...@start.no wrote: First, because as opposed to ch 1 there is quite a bit of code here, and since I'm a Python newbie I may be using non-idiomatic constructs, Welp, there goes my last excuse. I'm off

Re: Program to compute and print 1000th prime number

2009-11-07 Thread sstein...@gmail.com
On Nov 7, 2009, at 9:44 AM, Ray Holt wrote: I am taking the MIT online course Introduction to Computer Science and Programming. I have a assignment to write a program to compute and print the 1000th. prime number. Can someone give me some leads on the correct code? Thanks, Ray Copying