[Python-Dev] Fwd: Anyone still using Python 2.5?

2011-12-21 Thread Chris Withers

What's the python-dev view on this?

 Original Message 
Subject: Anyone still using Python 2.5?
Date: Wed, 21 Dec 2011 07:15:46 +
From: Chris Withers 
To: Python List , 
"[email protected]" , 
[email protected]


Hi All,

What's the general consensus on supporting Python 2.5 nowadays?

Do people still have to use this in commercial environments or is
everyone on 2.6+ nowadays?

I'm finally getting some continuous integration set up for my packages
and it's highlighting some 2.5 compatibility issues. I'm wondering
whether to fix those (lots of ugly "from __future__ import
with_statement" everywhere) or just to drop Python 2.5 support.

What do people feel?

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


[Python-Dev] Cannot use multiprocessing and zip together on windows

2011-12-21 Thread Leo Jay
Hi All,

I posted this several days ago in python mailing list but got no response
and I think it might be a bug, so I post it here. Apologize if it's
not appropriate.

I have a file p.zip, there is a __main__.py in it, and the content of
__main__.py is:

from multiprocessing import Process
import os

def f():
  print 'in f, pid:', os.getpid()

if __name__ == '__main__':
  print 'pid:', os.getpid()
  p = Process(target=f)
  p.start()
  p.join()


On linux, I can get expected result for running "python p.zip"
But on windows xp, I got:

Traceback (most recent call last):
 File "", line 1, in 
 File "C:\python27\lib\multiprocessing\forking.py", line 346, in main
  prepare(preparation_data)
 File "C:\python27\lib\multiprocessing\forking.py", line 454, in prepare
  assert main_name not in sys.modules, main_name
AssertionError: __main__

It seems that the situation described here is similar:
http://bugs.python.org/issue10128

But the patch doesn't work for me.

Anybody knows how to fix this?
Thanks.

--
Best Regards,
Leo Jay
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Fwd: Anyone still using Python 2.5?

2011-12-21 Thread Dirkjan Ochtman
On Wed, Dec 21, 2011 at 08:16, Chris Withers  wrote:
> What's the general consensus on supporting Python 2.5 nowadays?
>
> Do people still have to use this in commercial environments or is
> everyone on 2.6+ nowadays?

This seems rather off-topic for python-dev.

FWIW, on Gentoo we're just now getting to dropping 2.4, so we'll
support 2.5 quite a bit longer. That's also the tendency I see from
the ecosystem, at least insofar as I notice. On the other hand, we've
had 2.7 as the default python on our stable branch since March 2011. I
also know Mercurial is still supporting 2.4 (they tend to be
conservative about dropping support for old releases).

Cheers,

Dirkjan
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Fwd: Anyone still using Python 2.5?

2011-12-21 Thread Charles-François Natali
> Do people still have to use this in commercial environments or is
> everyone on 2.6+ nowadays?

RHEL 5.7 ships with Python 2.4.3. So no, not everybody is on 2.6+
today, and this won't happen before a couple years.

cf
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Fwd: Anyone still using Python 2.5?

2011-12-21 Thread Oleg Broytman
On Wed, Dec 21, 2011 at 07:16:06AM +, Chris Withers wrote:
> What's the general consensus on supporting Python 2.5 nowadays?
> 
> Do people still have to use this in commercial environments

   I have to use it. There is a rather large and complex intranet site
with both 32- and 64-bit versions of Python and libraries, and there are
about 70 copies of it at client sites so it'd be very hard to recompile
and adapt it to Python 2.6, test and upgrade all clients.

Oleg.
-- 
 Oleg Broytmanhttp://phdru.name/[email protected]
   Programmers don't die, they just GOSUB without RETURN.
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Fwd: Anyone still using Python 2.5?

2011-12-21 Thread Barry Warsaw
On Dec 21, 2011, at 07:16 AM, Chris Withers wrote:

>What's the general consensus on supporting Python 2.5 nowadays?

FWIW, Ubuntu dropped 2.5 quite a while ago.  The next LTS (long term support)
release in April 2012 will have only Python 2.7 (and 3.2).  The currently
in-development next Debian release currently has only Python 2.6, 2.7, and 3.2
with 2.7 as the default.

For my own code, Python 2.6 is the minimum, and I'm seeing more upstream
libraries target 2.6 as a minimum also (e.g. dbus-python).  When projects say
they still need to target older Pythons, RHEL support is usually cited as the
reason.

Cheers,
-Barry
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Anyone still using Python 2.5?

2011-12-21 Thread Michael Foord

On 21 Dec 2011, at 12:42, Barry Warsaw wrote:

> On Dec 21, 2011, at 07:16 AM, Chris Withers wrote:
> 
>> What's the general consensus on supporting Python 2.5 nowadays?
> 
> FWIW, Ubuntu dropped 2.5 quite a while ago.  The next LTS (long term support)
> release in April 2012 will have only Python 2.7 (and 3.2).  The currently
> in-development next Debian release currently has only Python 2.6, 2.7, and 3.2
> with 2.7 as the default.
> 
> For my own code, Python 2.6 is the minimum, and I'm seeing more upstream
> libraries target 2.6 as a minimum also (e.g. dbus-python).  When projects say
> they still need to target older Pythons, RHEL support is usually cited as the
> reason.


For "production work" I've been on 2.6 for a while and will soon be switching 
to 2.7 (I do my development on 2.7).

For my libraries I'm still supporting 2.4. The *major* syntax feature you lose 
by targeting 2.4 is the with statement, so it will be nice to drop 2.4 support. 
The next releases of mock and unittest2 will still support 2.4, but the ones 
after that will be 2.5+.

Thankfully tox makes testing across multiple versions (and implementations) 
easy.

All the best,

Michael Foord

> 
> Cheers,
> -Barry
> ___
> Python-Dev mailing list
> [email protected]
> http://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: 
> http://mail.python.org/mailman/options/python-dev/fuzzyman%40voidspace.org.uk
> 


--
http://www.voidspace.org.uk/


May you do good and not evil
May you find forgiveness for yourself and forgive others
May you share freely, never taking more than you give.
-- the sqlite blessing 
http://www.sqlite.org/different.html





___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Anyone still using Python 2.5?

2011-12-21 Thread Antoine Pitrou
On Wed, 21 Dec 2011 07:16:06 +
Chris Withers  wrote:
> What's the python-dev view on this?

Python 2.5 is not supported by *us* anymore (*). Anyone still using it
therefore relies on their OS vendor to apply potential security
patches and other important fixes.

Library authors can of course choose to still support it. I wouldn't
care personally. I'm of the opinion that people who (by their choice
of OS) have a preference for legacy software shouldn't ask for the
latest versions of Python libraries.


(*) From http://www.python.org/download/releases/2.5.6/ :

“This release is the final release of Python 2.5; under the current
release policy, no security issues in Python 2.5 will be fixed anymore.”

Regards

Antoine.


___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Anyone still using Python 2.5?

2011-12-21 Thread wang tiezhen
I am still working on projects based on Python2.4  in commercial
environments (limitation of OS: Solaris 5.10). And I don't think this will
be changed soon..

2011/12/21 Michael Foord 

>
> On 21 Dec 2011, at 12:42, Barry Warsaw wrote:
>
> > On Dec 21, 2011, at 07:16 AM, Chris Withers wrote:
> >
> >> What's the general consensus on supporting Python 2.5 nowadays?
> >
> > FWIW, Ubuntu dropped 2.5 quite a while ago.  The next LTS (long term
> support)
> > release in April 2012 will have only Python 2.7 (and 3.2).  The currently
> > in-development next Debian release currently has only Python 2.6, 2.7,
> and 3.2
> > with 2.7 as the default.
> >
> > For my own code, Python 2.6 is the minimum, and I'm seeing more upstream
> > libraries target 2.6 as a minimum also (e.g. dbus-python).  When
> projects say
> > they still need to target older Pythons, RHEL support is usually cited
> as the
> > reason.
>
>
> For "production work" I've been on 2.6 for a while and will soon be
> switching to 2.7 (I do my development on 2.7).
>
> For my libraries I'm still supporting 2.4. The *major* syntax feature you
> lose by targeting 2.4 is the with statement, so it will be nice to drop 2.4
> support. The next releases of mock and unittest2 will still support 2.4,
> but the ones after that will be 2.5+.
>
> Thankfully tox makes testing across multiple versions (and
> implementations) easy.
>
> All the best,
>
> Michael Foord
>
> >
> > Cheers,
> > -Barry
> > ___
> > Python-Dev mailing list
> > [email protected]
> > http://mail.python.org/mailman/listinfo/python-dev
> > Unsubscribe:
> http://mail.python.org/mailman/options/python-dev/fuzzyman%40voidspace.org.uk
> >
>
>
> --
> http://www.voidspace.org.uk/
>
>
> May you do good and not evil
> May you find forgiveness for yourself and forgive others
> May you share freely, never taking more than you give.
> -- the sqlite blessing
> http://www.sqlite.org/different.html
>
>
>
>
>
> ___
> Python-Dev mailing list
> [email protected]
> http://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe:
> http://mail.python.org/mailman/options/python-dev/jwzxgo%40gmail.com
>
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Anyone still using Python 2.5?

2011-12-21 Thread Charles Cazabon
Michael Foord  wrote:
> On 21 Dec 2011, at 12:42, Barry Warsaw wrote:
> > 
> > FWIW, Ubuntu dropped 2.5 quite a while ago.  The next LTS (long term
> > support) release in April 2012 will have only Python 2.7 (and 3.2). 

True, but 2.5 is still current on Hardy, an LTS release that is officially
supported until April 2013.  Lots of places still use 2.5 on Hardy (or on
Lucid, the LTS release after Hardy, though they have to get it from the
deadsnakes repository as its not the normal version on Lucid).  

My workplace uses 2.5 for a lot of things, but is slowly transitioning to 2.6.

> For "production work" I've been on 2.6 for a while and will soon be
> switching to 2.7 (I do my development on 2.7).
> 
> For my libraries I'm still supporting 2.4.

My own personal software generally tries to stay compatible further back.
getmail is used on lots of little network appliances and such that don't
necessarily run a current OS, so getmail v4 targets 2.3.3 and up.
If I'm writing something new today, I usually assume 2.6 and up.

Charles
-- 
---
Charles Cazabon
GPL'ed software available at:   http://pyropus.ca/software/
---
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Fwd: Anyone still using Python 2.5?

2011-12-21 Thread anatoly techtonik
I believe most AppEngine applications in Python are still using 2.5
run-time. So are development boxes for these applications. It may take
another year or two for the transition.
-- 
anatoly t.


On Wed, Dec 21, 2011 at 10:16 AM, Chris Withers wrote:

> What's the python-dev view on this?
>
>  Original Message 
> Subject: Anyone still using Python 2.5?
> Date: Wed, 21 Dec 2011 07:15:46 +
> From: Chris Withers 
> To: Python List , "testing-in-python@lists.**
> idyll.org "  idyll.org >,
> [email protected]
>
> Hi All,
>
> What's the general consensus on supporting Python 2.5 nowadays?
>
> Do people still have to use this in commercial environments or is
> everyone on 2.6+ nowadays?
>
> I'm finally getting some continuous integration set up for my packages
> and it's highlighting some 2.5 compatibility issues. I'm wondering
> whether to fix those (lots of ugly "from __future__ import
> with_statement" everywhere) or just to drop Python 2.5 support.
>
> What do people feel?
>
> cheers,
>
> Chris
>
> --
> Simplistix - Content Management, Batch Processing & Python Consulting
>- http://www.simplistix.co.uk
> __**_
> Python-Dev mailing list
> [email protected]
> http://mail.python.org/**mailman/listinfo/python-dev
> Unsubscribe: http://mail.python.org/**mailman/options/python-dev/**
> techtonik%40gmail.com
>
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Cannot use multiprocessing and zip together on windows

2011-12-21 Thread Nick Coghlan
On Wed, Dec 21, 2011 at 6:50 PM, Leo Jay  wrote:
> It seems that the situation described here is similar:
> http://bugs.python.org/issue10128
>
> But the patch doesn't work for me.
>
> Anybody knows how to fix this?

Try the patch from http://bugs.python.org/issue10845 (the one on
#10128 only partially addresses the problem - a similarly incomplete
answer was our first attempt at fixing this for 3.2)

I've added a note to the issue you linked indicating that the change
should also be backported to the 2.7 maintenance branch. (IIRC, the
reason backporting to 2.7 didn't come up originally is that the only
reason we found the bad interaction in 3.2 was because we added
test.__main__, so the regression test suite can be executed via
"python -m test". At the time, it didn't occur to me, or anyone else
involved, that the underlying bug also affected 2.7).

Cheers,
Nick.

-- 
Nick Coghlan   |   [email protected]   |   Brisbane, Australia
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Fwd: Anyone still using Python 2.5?

2011-12-21 Thread David Malcolm
On Wed, 2011-12-21 at 10:42 +0100, Charles-François Natali wrote:
> > Do people still have to use this in commercial environments or is
> > everyone on 2.6+ nowadays?
> 
> RHEL 5.7 ships with Python 2.4.3. So no, not everybody is on 2.6+
> today, and this won't happen before a couple years.

(and RHEL 4.9 with Python 2.3.4, fwiw)


___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Fwd: Anyone still using Python 2.5?

2011-12-21 Thread Mark Hammond
FWIW, the most recent version of pywin32 has the following download 
counts (rounded to the nearest thousand)


Version 32bit   64bit
-
3.2 -  75,000   9,000
3.1 -   4,000   1,000
2.7 - 126,000  16,000
2.6 -  46,000   6,000
2.5 -  21,000 n/a
2.4 -   3,000 n/a
2.3 -   1,000 n/a

So ISTM that 2.5 isn't hugely popular these days, but also isn't 
insignificant.  It probably means I could "safely" drop 2.3 and 2.4 
support though...


Mark

On 21/12/2011 6:16 PM, Chris Withers wrote:

What's the python-dev view on this?

 Original Message 
Subject: Anyone still using Python 2.5?
Date: Wed, 21 Dec 2011 07:15:46 +
From: Chris Withers 
To: Python List ,
"[email protected]" ,
[email protected]

Hi All,

What's the general consensus on supporting Python 2.5 nowadays?

Do people still have to use this in commercial environments or is
everyone on 2.6+ nowadays?

I'm finally getting some continuous integration set up for my packages
and it's highlighting some 2.5 compatibility issues. I'm wondering
whether to fix those (lots of ugly "from __future__ import
with_statement" everywhere) or just to drop Python 2.5 support.

What do people feel?

cheers,

Chris



___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


[Python-Dev] Adding features to 2to3... cpython/default right? can I backport to 2.7?

2011-12-21 Thread Gregory P. Smith
I have some features I need to add to lib2to3 to make it more useful for
our purposes at work supporting our massive code base in a Python 2 to 3
transition. Which tree should I develop these and check these into?

cpython/default?

Can I backport this to 3.2 and 2.7?  It counts as a feature addition which
is normally a no-no for backports.  But in this case I'm enhancing 2to3
which is a useful tool.

No big deal to me _personally_ if I can't backport from 3.3
(cpython/default) as I'd apply the changes to our copy at work internally
but it seems wise to me for us to keep enhancing and improving 2to3 in a
Python 2.x/3.x release independent manner to make people's conversions
easier.

The features I want to commit (all pretty easy additions) are command line
flag / constructor option support for:
  1) writing output files to a different directory tree instead of
overwriting the input file.
  2) modifying the output filename by altering the suffix (.py -> .py3 for
example)
  3) always writing output files even if there were no changes to make
(useful in combination with the above to effectively act as a "copy library
X to this directory converting it to python 3 syntax along the way").

The old http://hg.python.org/2to3/ tree exists but it really looks like an
out of date version.

-gps
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] A new dict for Xmas?

2011-12-21 Thread Gregory P. Smith
On Sun, Dec 18, 2011 at 2:55 PM, Antoine Pitrou  wrote:

> On Fri, 16 Dec 2011 21:32:44 +
> Mark Shannon  wrote:
> >
> > > per-instance attributes, it just forces them all to keep resizing up,
> > > even though individual instances would be small with the current dict.
> > There is a cut-off point, at the moment it's quite unsophisticated about
> > how it does this, but it could easily be improved.
> > Suggestions are welcome.
>
> Can you open an issue on the bug tracker?
> There you can either give your repo URL, or upload a patch.
> Both should allow to start reviewing the code :)
>
> Regards
>
> Antoine.
>

+1 I'm interested in seeing this as well.

Anything that improves the memory overhead in cpython is appreciated as it
decreases the pain when moving an app from 32bit to 64bit. :)

-gps
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Anyone still using Python 2.5?

2011-12-21 Thread Michael Foord

On 22 Dec 2011, at 01:25, Mark Hammond wrote:

> FWIW, the most recent version of pywin32 has the following download counts 
> (rounded to the nearest thousand)
> 
> Version 32bit   64bit
> -
> 3.2 -  75,000   9,000
> 3.1 -   4,000   1,000
> 2.7 - 126,000  16,000
> 2.6 -  46,000   6,000
> 2.5 -  21,000 n/a
> 2.4 -   3,000 n/a
> 2.3 -   1,000 n/a
> 
> So ISTM that 2.5 isn't hugely popular these days, but also isn't 
> insignificant.  It probably means I could "safely" drop 2.3 and 2.4 support 
> though...
> 


These figures can't possibly be true. No-one is using Python 3 yet. ;-)

FWIW I heard a few days ago about a UK government department, HMGCC (Her 
Majesty's Government Communication Centre - based in Milton Keynes), who use 
Python for research projects. They switched to using Python 3 a while ago.

All the best,

Michael Foord

> Mark
> 
> On 21/12/2011 6:16 PM, Chris Withers wrote:
>> What's the python-dev view on this?
>> 
>>  Original Message 
>> Subject: Anyone still using Python 2.5?
>> Date: Wed, 21 Dec 2011 07:15:46 +
>> From: Chris Withers 
>> To: Python List ,
>> "[email protected]" ,
>> [email protected]
>> 
>> Hi All,
>> 
>> What's the general consensus on supporting Python 2.5 nowadays?
>> 
>> Do people still have to use this in commercial environments or is
>> everyone on 2.6+ nowadays?
>> 
>> I'm finally getting some continuous integration set up for my packages
>> and it's highlighting some 2.5 compatibility issues. I'm wondering
>> whether to fix those (lots of ugly "from __future__ import
>> with_statement" everywhere) or just to drop Python 2.5 support.
>> 
>> What do people feel?
>> 
>> cheers,
>> 
>> Chris
>> 
> 
> ___
> Python-Dev mailing list
> [email protected]
> http://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: 
> http://mail.python.org/mailman/options/python-dev/fuzzyman%40voidspace.org.uk
> 


--
http://www.voidspace.org.uk/


May you do good and not evil
May you find forgiveness for yourself and forgive others
May you share freely, never taking more than you give.
-- the sqlite blessing 
http://www.sqlite.org/different.html





___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Fwd: Anyone still using Python 2.5?

2011-12-21 Thread Victor Stinner

What's the general consensus on supporting Python 2.5 nowadays?


There is no such consensus :-)


Do people still have to use this in commercial environments or is
everyone on 2.6+ nowadays?


At work, we are still using Python 2.5. Six months ago, we started a 
project to upgrade to 2.7, but we have now more urgent tasks, so the 
upgrade is delayed to later. Even if we upgrade new clients to 2.7, we 
will have to continue to support 2.5 for some more months (or years?).


In a personal project (the IPy library), I dropped support of Python 2.5 
in february 2011. Recently, I got a mail asking me where the previous 
version of my library (supporting Python 2.4) can be downloaded! Someone 
is still using Python 2.4: "I'm stuck with python 2.4 in my work 
environment."



What do people feel?


For a new project, try to support Python 2.5, especially if you would 
like to write a portable library. For a new application working on Mac 
OS X, Windows and Linux, you can only support Python 2.6.


Victor
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Fwd: Anyone still using Python 2.5?

2011-12-21 Thread Victor Stinner

On 21/12/2011 15:26, anatoly techtonik wrote:

I believe most AppEngine applications in Python are still using 2.5
run-time. So are development boxes for these applications. It may take
another year or two for the transition.


App engine 1.6 improved support of Python 2.7, so I hope that -slowly- 
everybody will move to Python 3. Oops, I mean Python 2.7 ;-)


http://code.google.com/appengine/docs/python/python27/

Victor
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Adding features to 2to3... cpython/default right? can I backport to 2.7?

2011-12-21 Thread Benjamin Peterson
2011/12/21 Gregory P. Smith :
> I have some features I need to add to lib2to3 to make it more useful for our
> purposes at work supporting our massive code base in a Python 2 to 3
> transition. Which tree should I develop these and check these into?
>
> cpython/default?
>
> Can I backport this to 3.2 and 2.7?  It counts as a feature addition which
> is normally a no-no for backports.  But in this case I'm enhancing 2to3
> which is a useful tool.

You may backport things for 2to3. It's exempt from feature freeze.

>
> No big deal to me _personally_ if I can't backport from 3.3
> (cpython/default) as I'd apply the changes to our copy at work internally
> but it seems wise to me for us to keep enhancing and improving 2to3 in a
> Python 2.x/3.x release independent manner to make people's conversions
> easier.
>
> The features I want to commit (all pretty easy additions) are command line
> flag / constructor option support for:
>   1) writing output files to a different directory tree instead of
> overwriting the input file.
>   2) modifying the output filename by altering the suffix (.py -> .py3 for
> example)
>   3) always writing output files even if there were no changes to make
> (useful in combination with the above to effectively act as a "copy library
> X to this directory converting it to python 3 syntax along the way").
>
> The old http://hg.python.org/2to3/ tree exists but it really looks like an
> out of date version.

Indeed; I should probably just delete it.



-- 
Regards,
Benjamin
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Anyone still using Python 2.5?

2011-12-21 Thread Mike Meyer
On Thu, 22 Dec 2011 01:49:37 +
Michael Foord  wrote:
> These figures can't possibly be true. No-one is using Python 3 yet. ;-)

Since you brought it up. Is anyone paying people (or trying to hire
people) to write Python 3?

Thanks,
 http://www.mired.org/
Independent Software developer/SCM consultant, email for more information.

O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Anyone still using Python 2.5?

2011-12-21 Thread Matt Joiner
I'm paid to write Python3. I've also been writing Python3 for hobby
projects since mid 2010. I'm on the verge of going back to 2.7 due to
compatibility issues :(

On Thu, Dec 22, 2011 at 1:45 PM, Mike Meyer  wrote:
> On Thu, 22 Dec 2011 01:49:37 +
> Michael Foord  wrote:
>> These figures can't possibly be true. No-one is using Python 3 yet. ;-)
>
> Since you brought it up. Is anyone paying people (or trying to hire
> people) to write Python 3?
>
>        Thanks,
>         --
> Mike Meyer               http://www.mired.org/
> Independent Software developer/SCM consultant, email for more information.
>
> O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
> ___
> Python-Dev mailing list
> [email protected]
> http://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: 
> http://mail.python.org/mailman/options/python-dev/anacrolix%40gmail.com



-- 
ಠ_ಠ
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Fwd: Anyone still using Python 2.5?

2011-12-21 Thread Toshio Kuratomi
On Thu, Dec 22, 2011 at 02:49:06AM +0100, Victor Stinner wrote:
> 
> >Do people still have to use this in commercial environments or is
> >everyone on 2.6+ nowadays?
> 
> At work, we are still using Python 2.5. Six months ago, we started a
> project to upgrade to 2.7, but we have now more urgent tasks, so the
> upgrade is delayed to later. Even if we upgrade new clients to 2.7,
> we will have to continue to support 2.5 for some more months (or
> years?).
> 
At my work, I'm on RHEL5 and RHEL6.  So I'm currently supporting python-2.4
and python-2.6.  We're up to 75% RHEL6 (though, not the machines where most
of our deployed, custom written apps are running) so I shouldn't have to
support python-2.4 for much longer.

> In a personal project (the IPy library), I dropped support of Python
> 2.5 in february 2011. Recently, I got a mail asking me where the
> previous version of my library (supporting Python 2.4) can be
> downloaded! Someone is still using Python 2.4: "I'm stuck with python
> 2.4 in my work environment."
> 
As part of work, I package for EPEL5 (addon packages for RHEL5).  Sometimes
we need a new version of a package or a new package for RHEL5 and thus need
to have python-2.4 compatible versions of the package and any of its
dependencies.

When I no longer need to maintain python-2.4 stuff for work, I'm hoping to
not have to do quite so much of this but sometimes I know I'll still get
requests to update an existing package to fix a bug or fix a feature and
that will require updates of dependent libraries.  I'll still be stuck
looking for python-2.4 compatible versions of all of these :-(

> >What do people feel?
> 
> For a new project, try to support Python 2.5, especially if you would
> like to write a portable library. For a new application working on
> Mac OS X, Windows and Linux, you can only support Python 2.6.
> 
I agree that libraries have a need to go farther back than applications.
I have one library that I support on python-2.3 (for RHEL4... I'm counting
down the months on that one :-).  Every other library I maintain, I make sure
I support at least python-2.4.

Application-wise, I currently have to support python-2.4+ but given that
Linux distros seem to all have some version out that supports at least
python-2.6, I don't think I'll be developing any applications that
intentionally support less than that once I get moved away from RHEL-5 at my
workplace.

-Toshio


pgpxLKFA2jIf4.pgp
Description: PGP signature
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Anyone still using Python 2.5?

2011-12-21 Thread anatoly techtonik
On Thu, Dec 22, 2011 at 4:49 AM, Michael Foord wrote:

>
> On 22 Dec 2011, at 01:25, Mark Hammond wrote:
>
> > FWIW, the most recent version of pywin32 has the following download
> counts (rounded to the nearest thousand)
> >
> > Version 32bit   64bit
> > -
> > 3.2 -  75,000   9,000
> > 3.1 -   4,000   1,000
> > 2.7 - 126,000  16,000
> > 2.6 -  46,000   6,000
> > 2.5 -  21,000 n/a
> > 2.4 -   3,000 n/a
> > 2.3 -   1,000 n/a
> >
> > So ISTM that 2.5 isn't hugely popular these days, but also isn't
> insignificant.  It probably means I could "safely" drop 2.3 and 2.4 support
> though...
> >
>
>
> These figures can't possibly be true. No-one is using Python 3 yet. ;-)
>

python.org should have a poll/settings for active python.org accounts to
allow people mark when they switch to Python 3.

FWIW I heard a few days ago about a UK government department, HMGCC (Her
> Majesty's Government Communication Centre - based in Milton Keynes), who
> use Python for research projects. They switched to using Python 3 a while
> ago.
>

 if that == True:
 front_page.response(news_template.render("News About Her Majesty
switched to Python 3"))

Can't stand to do a +1 for the news item.

All the best,
>
> Michael Foord
>
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com