Re: Question on Python 3 shell restarting

2012-04-09 Thread Albert W. Hopkins
On Sun, 2012-04-08 at 20:09 +0200, Franck Ditter wrote: How may I get a fresh Python shell with Idle 3.2 ? I have to run the same modules several times with all variables cleared. Why don't you write your module as a script and pass the variables via command line like most human beings? --

Re: convert string to bytes without changing data (encoding)

2012-03-28 Thread Albert W. Hopkins
On Wed, 2012-03-28 at 14:05 -0400, Ross Ridge wrote: Ross Ridge rri...@csclub.uwaterloo.ca wr= Of course it is. =A0Conceptually you're not supposed to think of it that way, but a string is stored in memory as a series of bytes. Chris Angelico ros...@gmail.com wrote: Note that

Re: MySQL: AttributeError: cursor

2012-02-11 Thread Albert W. Hopkins
On Sat, 2012-02-11 at 09:40 -0800, Kevin Murphy wrote: Hi All, I'm using Python 2.7 and having a problem creating the cursor below. Any suggestions would be appreciated! import sys import _mysql print cursor test db = _mysql.connect(host=localhost,user=root,passwd=mypw,db=python-

Re: Fabric Engine + Python benchmarks

2012-02-10 Thread Albert W. Hopkins
On Fri, 2012-02-10 at 14:52 -0800, Paul Rubin wrote: Fabric Paul technove...@gmail.com writes: Hi Stefan - Thanks for the heads up. Fabric Engine has been going for about 2 years now. Registered company etc. I'll be sure to refer to it as Fabric Engine so there's no confusion. We were

Re: Installing Python on CentOS 6 - a big pain

2012-01-18 Thread Albert W. Hopkins
On Wed, 2012-01-18 at 10:00 -0800, John Nagle wrote: Python does not just work. I should be able to command yum install python27. (And not clobber the Python 2.6 that comes with CentOS.) This sort of thing is why Python is losing market share. Or — and this is the more likely

Re: sick of distribute, setup, and all the rest...

2011-11-26 Thread Albert W. Hopkins
On Sat, 2011-11-26 at 14:22 +, Steven D'Aprano wrote: when is python going to get a decent module distribution system??? Python 4.3, scheduled for March 2038. It's been ready for a few years now, and a small secret coterie of privileged developers have been using it for their own

Re: Stop quoting spam [was Re: Hot Girls ...]

2011-08-19 Thread Albert W. Hopkins
On Friday, August 19 at 17:12 (-0400), Matty Sarro said: If you're that offended then spend the cycles fixing the damn list so it stops having so much spam. You realize spam comes in almost constantly, right? Enough that multiple tines over the past weeks there have been no less than 3

Re: Python script error when using print

2010-04-06 Thread Albert W. Hopkins
On Tue, 2010-04-06 at 08:38 -0700, Robbie wrote: Hi all, So, I'm trying to use Python with an apache2 server to create some web pages. The web server is configured and seems to work correctly, but only with a certain type of script. For instance, this script works fine #!/usr/bin/env