473,395 Members | 1,639 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Python 3000 and "Python Regrets"

I just came across the slides for Guido van Rossum's "Python Regrets"
talk, given in 2002. It worries me that much of my Python code would
be broken if all of his ideas were implemented. He doesn't even like
'print'. Of course, I am not qualified to argue with Van Rossum about
the direction of Python.

When is Python "3000" expected to appear? Is there a list of expected
incompatibilities with Python 2.3? Are serious Python programmers
already taking care to avoid using Python features that may disappear
in Python 3000?
Jul 18 '05 #1
12 2692
be*******@aol.com wrote:
I just came across the slides for Guido van Rossum's "Python Regrets"
talk, given in 2002. It worries me that much of my Python code would
be broken if all of his ideas were implemented. He doesn't even like
'print'. Of course, I am not qualified to argue with Van Rossum about
the direction of Python.

When is Python "3000" expected to appear? Is there a list of expected
incompatibilities with Python 2.3? Are serious Python programmers
already taking care to avoid using Python features that may disappear
in Python 3000?


Python 3000 is kind of imaginary. It's a what-if: what if Guido could
do whatever he wanted without worrying about backward compatibility?

At one point Python 3000 and Python 3.0 were kind of the same thing (or
the same plan -- neither are implemented or even thoroughly planned).
Now they are separate ideas -- if you see references to Python 3.0, it
also includes some backward incompatible changes and cleanup, like maybe
input() will disappear, and integer division will go away, and things
like range() will return iterators (and xrange goes away). But it's
much more conservative, and presented as a more realistic plan. print
will still be around.

--
Ian Bicking / ia**@colorstudy.com / http://blog.ianbicking.org
Jul 18 '05 #2
[be*******@aol.com]
I just came across the slides for Guido van Rossum's "Python
Regrets" talk, given in 2002. It worries me that much of my Python
code would be broken if all of his ideas were implemented.
Actually, none of it would break, provided you don't change the Python
implementation you use.
He doesn't even like 'print'. Of course, I am not qualified to argue
with Van Rossum about the direction of Python.

When is Python "3000" expected to appear?
This is usually expressed an as a positive offset from the time hell
freezes over, but people vary in their estimation of both parts. At a
minimum, it requires that Guido first get a job where he can
concentrate on Python development. That will happen when hell freezes
over, but may happen before then. Hard to say.
Is there a list of expected incompatibilities with Python 2.3?
No.
Are serious Python programmers already taking care to avoid
using Python features that may disappear in Python 3000?


No, although some naturally avoid dubious features without being
threatened <wink>.
Jul 18 '05 #3
Anyway, what's to worry about? When the time comes just whip out a little
script that converts Python 1.6 (or whatever you like) to Python3K; it will
only take seven lines of P3K code.
Jul 18 '05 #4
Matt Gerrans wrote:
Anyway, what's to worry about? When the time comes just whip out a little
script that converts Python 1.6 (or whatever you like) to Python3K; it will
only take seven lines of P3K code.


How about 'import classic'
Jul 18 '05 #5
Brad Tilley wrote:
Matt Gerrans wrote:
Anyway, what's to worry about? When the time comes just whip out a
little script that converts Python 1.6 (or whatever you like) to
Python3K; it will only take seven lines of P3K code.


How about 'import classic'


.... or

from __past__ import __mistakes__

looking-forwards-to-christmas-ly y'rs - steve
--
http://www.holdenweb.com
http://pydish.holdenweb.com
Holden Web LLC +1 800 494 3119
Jul 18 '05 #6
Brad Tilley wrote:
Matt Gerrans wrote:
Anyway, what's to worry about? When the time comes just whip out a
little script that converts Python 1.6 (or whatever you like) to
Python3K; it will only take seven lines of P3K code.


How about 'import classic'


from past import python23

:-)
--
Gustavo Córdova Avila <gu*************@q-voz.com>
<mailto:gu*************@q-voz.com>
*Tel:* +52 (81) 8130-1919 ext. 127
Integraciones del Norte, S.A. de C.V.
Padua #6047, Colonia Satélite Acueducto
Monterrey, Nuevo León, México.
Jul 18 '05 #7
Steve Holden wrote:
Brad Tilley wrote:
Matt Gerrans wrote:
Anyway, what's to worry about? When the time comes just whip out a
little script that converts Python 1.6 (or whatever you like) to
Python3K; it will only take seven lines of P3K code.


How about 'import classic'

... or

from __past__ import __mistakes__


LOL! Better yet:

import __past__
del __past__.__mistakes__

Boy, what a load off!

Merry Christmas in advance,
Dave
Jul 18 '05 #8
Dave Benjamin wrote:
Steve Holden wrote:
from __past__ import __mistakes__


LOL! Better yet:

import __past__
del __past__.__mistakes__

You can't change the past, as everyone knows, so
the names in that module are constants, like None
is in Python 2.4.

It's better simply not to spend time looking at it,
following the Pythonic DCOSM** idiom clearly suggests:

from __past__ import __mistakes__
del __mistakes__
Of course, those who forget history are doomed to repeat
it, so it might be better to do this, even though it's
in violation of common Python stylistic advice:

from __past__ import *
del __mistakes__

Unfortunately, I'm not sure whether you'll get a NameError
here, because the "from xx import *" pattern generally
doesn't retrieve names that begin with an underscore...

-sucking-up-bandwidth-for-all-its-worth-ly y'rs,
Peter

** "Don't cry over spilt milk", of course...
Jul 18 '05 #9
Dave Benjamin schrieb:
LOL! Better yet:

import __past__
del __past__.__mistakes__

Boy, what a load off!

Merry Christmas in advance,


from __future__ import NewYear

A Happy New Year to everybody!

;)

--
-------------------------------------------------------------------
Peter Maas, M+R Infosysteme, D-52070 Aachen, Tel +49-241-93878-0
E-mail 'cGV0ZXIubWFhc0BtcGx1c3IuZGU=\n'.decode('base64')
-------------------------------------------------------------------
Jul 18 '05 #10
On Wed, 01 Dec 2004 15:44:03 -0500, rumours say that Steve Holden
<st***@holdenweb.com> might have written:
Brad Tilley wrote:
How about 'import classic'


... or

from __past__ import __mistakes__


I'll drink to that!
looking-forwards-to-christmas-ly y'rs - steve


In the PSU HQ everyday it's Chr
--
TZOTZIOY, I speak England very best,
"Tssss!" --Brad Pitt as Achilles in unprecedented Ancient Greek
Jul 18 '05 #11
Tim Peters <ti********@gmail.com> writes on Wed, 1 Dec 2004 13:38:49 -0500:
...
Are serious Python programmers already taking care to avoid
using Python features that may disappear in Python 3000?


No, although some naturally avoid dubious features without being
threatened <wink>.


Are there dubious features in Python? :-)
Dieter
Jul 18 '05 #12
Tim Peters wrote:
[be*******@aol.com]
Is there a list of expected incompatibilities with Python 2.3?


No.


PEP 3000 doesn't count?

Actually, PEP 3000 should be taken with a (large) grain of salt, since it's only
updated somewhat irregularly - but it's the closest thing I know of to a
proposed feature list for Py3K/3.0.

Cheers,
Nick.
Jul 18 '05 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Mike Meng | last post by:
Hi all, I just finished reading Learning Python 3rd ed, and am doing my first Python application, which retrieves and process text and XML documents from Web. Python helped me to write the...
14
by: Paddy3118 | last post by:
This month there was/is a 1000+ long thread called: "merits of Lisp vs Python" In comp.lang.lisp. If you followed even parts of the thread, AND previously used only one of the languages AND...
11
by: Wojciech Gryc | last post by:
Hi, I recently started using Python and am extremely happy with how productive it's made me, even as a new user. I'm hoping to continue using the language for my research, and have come across a...
41
by: none | last post by:
Hello, IIRC, I once saw an explanation how Python doesn't have "variables" in the sense that, say, C does, and instead has bindings from names to objects. Does anyone have a link? Thanks, ...
92
by: ureuffyrtu955 | last post by:
Python is a good programming language, but "Python" is not a good name. First, python also means snake, Monty Python. If we search "python" in google, emule, many results are not programming...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.