From vikas.choudhary at qlogic.com  Thu Aug  9 10:52:08 2012
From: vikas.choudhary at qlogic.com (Vikas Choudhary)
Date: Thu, 9 Aug 2012 01:52:08 -0700
Subject: [Python-porting] Python 2.4 v/s Python3.2
Message-ID: <5E4F49720D0BAD499EE1F01232234BA87743BCB3BF@AVEXMB1.qlogic.org>


Hi,

Can someone let me know advantage  of python 3.2 over python 2.4

Why we should go to 3.2 version and why we should not stick to 2.4

What are the modules and new features those are not available in python 2.4 added to python3.2

--Vikas

________________________________
This message and any attached documents contain information from QLogic Corporation or its wholly-owned subsidiaries that may be confidential. If you are not the intended recipient, you may not read, copy, distribute, or use this information. If you have received this transmission in error, please notify the sender immediately by reply e-mail and then delete this message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-porting/attachments/20120809/66edcf22/attachment.html>

From chris.jerdonek at gmail.com  Thu Aug  9 11:12:40 2012
From: chris.jerdonek at gmail.com (Chris Jerdonek)
Date: Thu, 9 Aug 2012 02:12:40 -0700
Subject: [Python-porting] Python 2.4 v/s Python3.2
In-Reply-To: <5E4F49720D0BAD499EE1F01232234BA87743BCB3BF@AVEXMB1.qlogic.org>
References: <5E4F49720D0BAD499EE1F01232234BA87743BCB3BF@AVEXMB1.qlogic.org>
Message-ID: <CAOTb1wePABW8QXZ+ZobAm5FN6+-13dNQUvUSNxQ8nv92TStN9A@mail.gmail.com>

On Thu, Aug 9, 2012 at 1:52 AM, Vikas Choudhary
<vikas.choudhary at qlogic.com> wrote:
>
> What are the modules and new features those are not available in python 2.4
> added to python3.2

Here is a pretty comprehensive list:

http://docs.python.org/dev/whatsnew/index.html

One advantage to moving to 3.2 is that you'll be getting bug fixes.
Python 2.6 and earlier no longer receive bug fixes.

--Chris

From regebro at gmail.com  Thu Aug  9 11:25:25 2012
From: regebro at gmail.com (Lennart Regebro)
Date: Thu, 9 Aug 2012 11:25:25 +0200
Subject: [Python-porting] Python 2.4 v/s Python3.2
In-Reply-To: <5E4F49720D0BAD499EE1F01232234BA87743BCB3BF@AVEXMB1.qlogic.org>
References: <5E4F49720D0BAD499EE1F01232234BA87743BCB3BF@AVEXMB1.qlogic.org>
Message-ID: <CAL0kPAV21Bbddmt4q=jC8Ryy6Pj+gQdQy7imAGVHGyDehvmR9Q@mail.gmail.com>

On Thu, Aug 9, 2012 at 10:52 AM, Vikas Choudhary
<vikas.choudhary at qlogic.com> wrote:
> Can someone let me know advantage  of python 3.2 over python 2.4

There are loads and loads of advantages, but many are quite small. I'd
say the big ones are:

* Bugfixes. 2.4 is really old.
* The "with" statement
* Ordered Dictionaries
* argparse module
* 0b integer syntax.
* multiprocessing module
* Class decorators
* Conditional expressions
* Sending values to generators
* Dictionary views.
* print is a function
* strings are unicode
* Things are just a little bit more consistent.

Of course, all of these except the last three and a half ones are true
for Python 2.7 as well. And if you want to migrate code to Python 3,
then you should first migrate to 2.7 anyway.

//Lennart

From regebro at gmail.com  Thu Aug  9 16:36:52 2012
From: regebro at gmail.com (Lennart Regebro)
Date: Thu, 9 Aug 2012 16:36:52 +0200
Subject: [Python-porting] Python 2.4 v/s Python3.2
In-Reply-To: <5E4F49720D0BAD499EE1F01232234BA87743BCB3E0@AVEXMB1.qlogic.org>
References: <5E4F49720D0BAD499EE1F01232234BA87743BCB3BF@AVEXMB1.qlogic.org>
	<CAL0kPAV21Bbddmt4q=jC8Ryy6Pj+gQdQy7imAGVHGyDehvmR9Q@mail.gmail.com>
	<5E4F49720D0BAD499EE1F01232234BA87743BCB3E0@AVEXMB1.qlogic.org>
Message-ID: <CAL0kPAWX7OkbRSrRDc5pa_NAAikDv-N1j7+_TU=VV17pWmJM6Q@mail.gmail.com>

On Thu, Aug 9, 2012 at 4:29 PM, Vikas Choudhary
<vikas.choudhary at qlogic.com> wrote:
> Are there any modules, those are specific to python 2.x and still not supported by python3.x

The relevant question there is if there are any modules you are using
that aren't supported by Python 3.

All important modules and functions in the standardlib are also in
Python 3 (although some have been reorganized:
http://python3porting.com/stdlib.html )
But when it comes to third-party modules you'll have to make a list of
those you use and check up if they support Python 3 or not.

//Lennart

From vikas.choudhary at qlogic.com  Thu Aug  9 16:29:41 2012
From: vikas.choudhary at qlogic.com (Vikas Choudhary)
Date: Thu, 9 Aug 2012 07:29:41 -0700
Subject: [Python-porting] Python 2.4 v/s Python3.2
In-Reply-To: <CAL0kPAV21Bbddmt4q=jC8Ryy6Pj+gQdQy7imAGVHGyDehvmR9Q@mail.gmail.com>
References: <5E4F49720D0BAD499EE1F01232234BA87743BCB3BF@AVEXMB1.qlogic.org>
	<CAL0kPAV21Bbddmt4q=jC8Ryy6Pj+gQdQy7imAGVHGyDehvmR9Q@mail.gmail.com>
Message-ID: <5E4F49720D0BAD499EE1F01232234BA87743BCB3E0@AVEXMB1.qlogic.org>

Are there any modules, those are specific to python 2.x and still not supported by python3.x

-----Original Message-----
From: Lennart Regebro [mailto:regebro at gmail.com]
Sent: 09 August 2012 14:55
To: Vikas Choudhary
Cc: python-porting at python.org
Subject: Re: [Python-porting] Python 2.4 v/s Python3.2

On Thu, Aug 9, 2012 at 10:52 AM, Vikas Choudhary <vikas.choudhary at qlogic.com> wrote:
> Can someone let me know advantage  of python 3.2 over python 2.4

There are loads and loads of advantages, but many are quite small. I'd say the big ones are:

* Bugfixes. 2.4 is really old.
* The "with" statement
* Ordered Dictionaries
* argparse module
* 0b integer syntax.
* multiprocessing module
* Class decorators
* Conditional expressions
* Sending values to generators
* Dictionary views.
* print is a function
* strings are unicode
* Things are just a little bit more consistent.

Of course, all of these except the last three and a half ones are true for Python 2.7 as well. And if you want to migrate code to Python 3, then you should first migrate to 2.7 anyway.

//Lennart


This message and any attached documents contain information from QLogic Corporation or its wholly-owned subsidiaries that may be confidential. If you are not the intended recipient, you may not read, copy, distribute, or use this information. If you have received this transmission in error, please notify the sender immediately by reply e-mail and then delete this message.


From shane at isc.org  Thu Aug  9 17:06:18 2012
From: shane at isc.org (Shane Kerr)
Date: Thu, 9 Aug 2012 17:06:18 +0200
Subject: [Python-porting] Python 2.4 v/s Python3.2
In-Reply-To: <5E4F49720D0BAD499EE1F01232234BA87743BCB3BF@AVEXMB1.qlogic.org>
References: <5E4F49720D0BAD499EE1F01232234BA87743BCB3BF@AVEXMB1.qlogic.org>
Message-ID: <20120809170618.34feea21@shane-desktop>

Vikas,

On Thursday, 2012-08-09 01:52:08 -0700, 
Vikas Choudhary <vikas.choudhary at qlogic.com> wrote: 
> Why we should go to 3.2 version and why we should not stick to 2.4

As other people have said, Python 2.4 is quite old. Let me comment
rather on the issue of Python 2.7 vs. Python 3.x.

We started BIND 10 about 3.5 years ago and the wisdom at that time was
"for new projects use Python 3", so we did. It has caused us a little
pain, not so much because of difficulty with the language or missing
libraries, but rather because Python 3 was missing from a lot of
Unix distributions at that time.

Since then, Python 3 is available as a package for all major
distributions, and has started to become the default (Arch Linux
already has done this). However, if you are targeting "enterprise"
systems, then Python 2 may make more sense. These tend to stay around
for years and years, and never upgrade. Ever. (*)

Basically, I advise:

                Go with the latest Python 3,
         unless you have a specific need for Python 2

--
Shane

(*) Red Hat Enterprise Linux has a 13 year support cycle... code from
    2007 will be supported until 2020! If you don't think that is
    weird, consider that the Linux kernel 13 years ago was 2.2.11 and
    that Python itself was at version 1.5...

From mullapervez at gmail.com  Tue Aug 14 07:21:08 2012
From: mullapervez at gmail.com (Pervez Mulla)
Date: Tue, 14 Aug 2012 10:51:08 +0530
Subject: [Python-porting] how to call perl script from html using python
Message-ID: <CAJmXUQPhnB+fe=XvmzP1zSg7h=ZaOj_dK-LSkPkxemRD+xwBqg@mail.gmail.com>

Hi,

I wanna call perl script in HTML form n store that data in DB using Python.

How can i do this.......??

Please help me

Thank you
Pervez
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-porting/attachments/20120814/91aed71f/attachment.html>

From rdmurray at bitdance.com  Tue Aug 14 13:38:33 2012
From: rdmurray at bitdance.com (R. David Murray)
Date: Tue, 14 Aug 2012 07:38:33 -0400
Subject: [Python-porting] how to call perl script from html using python
In-Reply-To: <CAJmXUQPhnB+fe=XvmzP1zSg7h=ZaOj_dK-LSkPkxemRD+xwBqg@mail.gmail.com>
References: <CAJmXUQPhnB+fe=XvmzP1zSg7h=ZaOj_dK-LSkPkxemRD+xwBqg@mail.gmail.com>
Message-ID: <20120814113833.C0CB12500FE@webabinitio.net>

I don't think this is the best forum to ask a question like that.
This list is about porting python2 programs to python3.  You could try
the general python-list mailing list.  You'll want to clarify your
question a bit though, as I really can't tell what it is you want to do.

--David

On Tue, 14 Aug 2012 10:51:08 +0530, Pervez Mulla <mullapervez at gmail.com> wrote:
> I wanna call perl script in HTML form n store that data in DB using Python.
> 
> How can i do this.......??
> 
> Please help me
> 
> Thank you
> Pervez
> _______________________________________________
> Python-porting mailing list
> Python-porting at python.org
> http://mail.python.org/mailman/listinfo/python-porting

From python at venix.com  Tue Aug 14 17:49:25 2012
From: python at venix.com (Lloyd Kvam)
Date: Tue, 14 Aug 2012 11:49:25 -0400
Subject: [Python-porting] how to call perl script from html using python
In-Reply-To: <CAJmXUQPhnB+fe=XvmzP1zSg7h=ZaOj_dK-LSkPkxemRD+xwBqg@mail.gmail.com>
References: <CAJmXUQPhnB+fe=XvmzP1zSg7h=ZaOj_dK-LSkPkxemRD+xwBqg@mail.gmail.com>
Message-ID: <1344959365.4924.17.camel@venix-laptop.venix.com>

On Tue, 2012-08-14 at 10:51 +0530, Pervez Mulla wrote:
> I wanna call perl script in HTML form n store that data in DB using
> Python. 
> 
> How can i do this.......?? 
> 
> Please help me 

The Python Tutor list is a much better place to write with this kind of
question.
http://mail.python.org/mailman/listinfo/tutor/

Join that list and ask there.  You will need to break down your question
into simpler pieces:
      * Will you be running your Python program on the web server or on
        your computer (as a client to the web server)?
      * If it is running on a client, you will simply process the HTML.
        The fact that a Perl script generated the HTML probably doesn't
        matter.
      * If running on the server, there is probably a better approach.

Please try the tutor list.

-- 
Lloyd Kvam
Venix Corp
DLSLUG/GNHLUG library
http://dlslug.org/library.html
http://www.librarything.com/catalog/dlslug
http://www.librarything.com/catalog/dlslug&sort=stamp
http://www.librarything.com/rss/recent/dlslug