[RELEASED] Python 3.3.0 beta 1

2012-06-26 Thread Georg Brandl
On behalf of the Python development team, I'm happy to announce the first beta release of Python 3.3.0. This is a preview release, and its use is not recommended in production settings. Python 3.3 includes a range of improvements of the 3.x series, as well as easier porting between 2.x and 3.x.

Re: PySerial could not open port COM4: [Error 5] Access is denied - please help

2012-06-26 Thread John Nagle
On 6/26/2012 9:12 PM, Adam wrote: Host OS:Ubuntu 10.04 LTS Guest OS:Windows XP Pro SP3 I am able to open port COM4 with Terminal emulator. So, what can cause PySerial to generate the following error ... C:\Wattcher>python wattcher.py Traceback (most recent call last): File "wattche

PySerial could not open port COM4: [Error 5] Access is denied - please help

2012-06-26 Thread Adam
Host OS:Ubuntu 10.04 LTS Guest OS:Windows XP Pro SP3 I am able to open port COM4 with Terminal emulator. So, what can cause PySerial to generate the following error ... C:\Wattcher>python wattcher.py Traceback (most recent call last): File "wattcher.py", line 56, in ser.open()

Re: Executing Python Scripts on Mac using Python Launcher

2012-06-26 Thread Dave Angel
On 06/26/2012 05:48 PM, Hans Mulder wrote: > On 26/06/12 22:41:59, Dave Angel wrote: > > No, I meant: $ type python python is > /Library/Frameworks/Python.framework/Versions/2.7/bin/python 'type' is > a bash builtin that tells you how bash would interpret a command. > 'which' is a separate progra

Re: tiffany 0.6 released

2012-06-26 Thread Christian Tismer
Hi Steven, On 26.06.12 04:18, Steven D'Aprano wrote: On Mon, 25 Jun 2012 23:36:59 +0200, Christian Tismer wrote: I saw quite a lot of downloads of this package now, but not a single reaction or any feedback. Feel fortunate that you are getting any downloads at all :) In my experience, if yo

Re: Executing Python Scripts on Mac using Python Launcher

2012-06-26 Thread Mark Lawrence
On 26/06/2012 23:35, Dennis Lee Bieber wrote: (And, on Windows at least, #! lines don't do anything) New for Python 3.3 http://www.python.org/dev/peps/pep-0397/ -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Why has python3 been created as a seperate language where there is still python2.7 ?

2012-06-26 Thread HoneyMonster
On Wed, 27 Jun 2012 07:39:42 +1000, Chris Angelico wrote: > On Wed, Jun 27, 2012 at 7:08 AM, John Nagle wrote: >>    The Python 3 to MySQL connection is still a mess. >> The original developer of MySQLdb doesn't want to support Python 3. > > This is where I would start asking: How hard is it to

Re: exception problem

2012-06-26 Thread MRAB
On 26/06/2012 22:36, Chris Angelico wrote: (You posted privately to me again; I hope you don't mind my responding on-list as this appears to have been merely oversight.) On Wed, Jun 27, 2012 at 5:25 AM, Charles Hixson wrote: Only thing is, this whole mess started when I was trying to trace dow

Re: Executing Python Scripts on Mac using Python Launcher

2012-06-26 Thread Hans Mulder
On 26/06/12 22:41:59, Dave Angel wrote: > On 06/26/2012 03:16 PM, Hans Mulder wrote: >> >> >> Python is an executable, and is >> typically located in a "bin" directory. To find out where >> it is, type >> >> type python >> >> at the shell prompt (that's the first prompt you get if you >> ope

Re: Why has python3 been created as a seperate language where there is still python2.7 ?

2012-06-26 Thread Chris Angelico
On Wed, Jun 27, 2012 at 7:08 AM, John Nagle wrote: >    The Python 3 to MySQL connection is still a mess. > The original developer of MySQLdb doesn't want to support > Python 3. This is where I would start asking: How hard is it to migrate to another SQL database (eg Postgres)? That is, assuming

Re: exception problem

2012-06-26 Thread Chris Angelico
(You posted privately to me again; I hope you don't mind my responding on-list as this appears to have been merely oversight.) On Wed, Jun 27, 2012 at 5:25 AM, Charles Hixson wrote: > Only thing is, this whole mess started when I was trying to trace down and > expected error.  (Which turned out t

Re: Why has python3 been created as a seperate language where there is still python2.7 ?

2012-06-26 Thread John Nagle
On 6/25/2012 1:36 AM, Stefan Behnel wrote: gmspro, 24.06.2012 05:46: Why has python3 been created as a seperate language where there is still python2.7 ? The intention of Py3 was to deliberately break backwards compatibility in order to clean up the language. The situation is not as bad as y

Re: Executing Python Scripts on Mac using Python Launcher

2012-06-26 Thread Dave Angel
On 06/26/2012 03:16 PM, Hans Mulder wrote: > > > Python is an executable, and is > typically located in a "bin" directory. To find out where > it is, type > > type python > > at the shell prompt (that's the first prompt you get if you > open a Terminal window). > > That's a typo. You presu

distutils that supports msvc10 and that can be backfitted into Python 2.6

2012-06-26 Thread KACVINSKY Tom
Hi, I have need for a distutils that supports msvc10, and which can be back-fitted into Python 2.6. Is there such a beast? Thanks in advance, Tom This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or

Re: Executing Python Scripts on Mac using Python Launcher

2012-06-26 Thread Hans Mulder
On 26/06/12 21:51:41, Dennis Lee Bieber wrote: > On Tue, 26 Jun 2012 10:19:45 -0700 (PDT), David Thomas > declaimed the following in gmane.comp.python.general: > > >> http://www.freeimagehosting.net/ilbqt > > That's an interesting configuration... > > "pythonw.exe" is a version of

Re: JOB

2012-06-26 Thread Chris Withers
Sonika, On 26/06/2012 01:34, Sonika Sardana wrote: ` === **Job Description**: Short description of position Looking for a strong PHP developer who is comfortable with some Linux administration and open to lear

Re: Executing Python Scripts on Mac using Python Launcher

2012-06-26 Thread Hans Mulder
On 26/06/12 20:11:51, David Thomas wrote: > On Monday, June 25, 2012 7:19:54 PM UTC+1, David Thomas wrote: >> Hello, >> This is my first post so go easy on me. I am just beginning to program >> using Python on Mac. When I try to execute a file using Python Launcher my >> code seems to cause an

Re: Executing Python Scripts on Mac using Python Launcher

2012-06-26 Thread Benjamin Kaplan
On Tue, Jun 26, 2012 at 10:19 AM, David Thomas wrote: > I have installed Python 2.7.3 from Python.org also in Terminal it states that > I have 2.7.3. > How can I execute the script from Terminal?  I've tried typing python into > the window and then dragging the file to terminal but I get a synta

Re: Executing Python Scripts on Mac using Python Launcher

2012-06-26 Thread David Thomas
On Monday, June 25, 2012 7:19:54 PM UTC+1, David Thomas wrote: > Hello, > This is my first post so go easy on me. I am just beginning to program using > Python on Mac. When I try to execute a file using Python Launcher my code > seems to cause an error in terminal, when I execute the exact same

Re: Executing Python Scripts on Mac using Python Launcher

2012-06-26 Thread Dave Angel
(You forgot to include the list on this message, but I'm including them in my reply) On 06/26/2012 02:07 PM, David Thomas wrote: > > > On Tuesday, June 26, 2012 6:37:42 PM UTC+1, Dave Angel wrote: >> >> On 06/26/2012 01:19 PM, David Thomas wrote: >>> I have installed Python 2.7.3 from Python.or

Re: Executing Python Scripts on Mac using Python Launcher

2012-06-26 Thread David Thomas
On Tuesday, June 26, 2012 6:37:42 PM UTC+1, Dave Angel wrote: > On 06/26/2012 01:19 PM, David Thomas wrote: > > I have installed Python 2.7.3 from Python.org also in Terminal it states > > that I have 2.7.3. > > How can I execute the script from Terminal? I've tried typing python into > > the wi

Re: Executing Python Scripts on Mac using Python Launcher

2012-06-26 Thread Dave Angel
On 06/26/2012 01:19 PM, David Thomas wrote: > I have installed Python 2.7.3 from Python.org also in Terminal it states that > I have 2.7.3. > How can I execute the script from Terminal? I've tried typing python into > the window and then dragging the file to terminal but I get a syntax error.

Re: Frustrating circular bytes issue

2012-06-26 Thread Hans Mulder
On 26/06/12 18:30:15, J wrote: > This is driving me batty... more enjoyment with the Python3 > "Everything must be bytes" thing... sigh... > I have a file that contains a class used by other scripts. The class > is fed either a file, or a stream of output from another command, then > interprets th

Re: Frustrating circular bytes issue

2012-06-26 Thread Stefan Behnel
J, 26.06.2012 18:30: > def _reader(self, file, size=4096, delimiter=r"\n{2,}"): > buffer_old = "" > while True: > buffer_new = file.read() > print(type(buffer_new)) > if not buffer_new: > break > lines = re.split(delimi

Re: Executing Python Scripts on Mac using Python Launcher

2012-06-26 Thread David Thomas
I have installed Python 2.7.3 from Python.org also in Terminal it states that I have 2.7.3. How can I execute the script from Terminal? I've tried typing python into the window and then dragging the file to terminal but I get a syntax error. Sorry I am new to Python and just want to know how I

Re: Frustrating circular bytes issue

2012-06-26 Thread Robert Kern
On 6/26/12 5:30 PM, J wrote: This is driving me batty... more enjoyment with the Python3 "Everything must be bytes" thing... sigh... I have a file that contains a class used by other scripts. The class is fed either a file, or a stream of output from another command, then interprets that output

Frustrating circular bytes issue

2012-06-26 Thread J
This is driving me batty... more enjoyment with the Python3 "Everything must be bytes" thing... sigh... I have a file that contains a class used by other scripts. The class is fed either a file, or a stream of output from another command, then interprets that output and returns a set that the main

Re: vBulletin scraper -- feasible?

2012-06-26 Thread Andrew D'Angelo
Thanks, this seems to be just what I need. -- http://mail.python.org/mailman/listinfo/python-list

Re: Faster way to map numpy arrays

2012-06-26 Thread Oscar Benjamin
On 26 June 2012 04:20, Saurabh Kabra wrote: > Thanks guys > > I implemented a numpy array with fancy indices and got rid of the list and > the loops. The time to do the mapping improved ~10x. As a matter of fact, > the number of elements in array A to be summed and mapped was different for > each

Re: tiffany 0.6 released

2012-06-26 Thread Jean-Michel Pichavant
Christian Tismer wrote: Abour tiffany... On 6/25/12 3:46 AM, Christian Tismer wrote: Tiffany - Read/Write Multipage-Tiff with PIL without PIL Tiffany stands for any tiff. The tiny module solves a large set of problems, has no dependencie

Re: Why has python3 been created as a seperate language where there is still python2.7 ?

2012-06-26 Thread Steven D'Aprano
On Tue, 26 Jun 2012 02:15:17 -0400, Devin Jeanpierre wrote: >> Making print a statement in the first place was a mistake, but >> fortunately it was a simple enough mistake to rectify once the need for >> backward compatibility was relaxed. > > Hmmm, why is the function so much better than the sta

Re: Getting lazy with decorators

2012-06-26 Thread Peter Otten
Peter Otten wrote: >>>helpfunc = getattr(self, "do_" + name[5:]).help > > i. e. it looks for getattr(self, "do_help") which does exist and then Sorry that should be getattr(self, "do_done"). -- http://mail.python.org/mailman/listinfo/python-list

Re: Getting lazy with decorators

2012-06-26 Thread Peter Otten
Josh English wrote: > On Sunday, June 24, 2012 1:07:45 AM UTC-7, Peter Otten wrote: >> >> You cannot access a class instance because even the class itself doesn't >> exist yet. You could get hold of the class namespace with >> sys._getframe(), >> >> def add_help(f): >> exec """\ >> def help_