From the main python.org homepage, I see the announcement for Python 3.3.1 as well. What's curious is... Python 3.2.4 and Python 3.3.1 final have been released. Published: Sun , 6 April 2013, 22:30 +0200 Python 2.7.4 has been released. Published: Sat , 6 April 2013, 11:00 -0500
Python 2.7.4 Released
41–50 of 50 posts
Re: Python 2.7.4 Released
#42After years, better integration between the old and new buffer interfaces was finally sneaked in as a bug fix. You can now call `memoryview(some_buffer)` and it'll DTRT. The whole buffers situation is a depressing mess.
Re: Python 2.7.4 Released
#43Earlier quoted context omitted.
Why would you use/support the fork? Why not just upgrade?
It is pretty clear that the current users of Python 2.x have voted that they don't want to move to Python 3. Some language changes and lots of library changes. Everything has to be ported to upgrade.
Re: Python 2.7.4 Released
#44After years, better integration between the old and new buffer interfaces was finally sneaked in as a bug fix. You can now call `memoryview(some_buffer)` and it'll DTRT. The whole buffers situation is a depressing mess.
Re: Python 2.7.4 Released
#45After years, better integration between the old and new buffer interfaces was finally sneaked in as a bug fix. You can now call `memoryview(some_buffer)` and it'll DTRT. The whole buffers situation is a depressing mess.
Re: Python 2.7.4 Released
#46It seems weird that large features like dictionary comprehensions and syntax changes like set literals are making it int0 2.7.x, but I'm not complaining - most of my projects are stuck on 2.7 due to deployment environment or library limitations and I'd love to be able to use these features.
They made it into 2.7.0, that happened 3 years ago...
Re: Python 2.7.4 Released
#47After years, better integration between the old and new buffer interfaces was finally sneaked in as a bug fix. You can now call `memoryview(some_buffer)` and it'll DTRT. The whole buffers situation is a depressing mess.
I too would like more details on this. 2.7.3 already had memoryview objects IIRC, though I found them almost as frustrating to work with as the 2.6.x world of not having them. What really changed in 2.7.4?
And you can create a memoryview which is the "new" and more flexible buffer interface: http://docs.python.org/2/library/stdtypes.html#typememoryvie...
You can get a buffer of a string:
>>> buffer("foo")
and a view of a string: >>> memoryview("foo")
but when you get this unhelpful and really stupid result: >>> memoryview(buffer("foo"))
Traceback (most recent call last):
File "", line 1, in
TypeError: cannot make memory view because object does not have the buffer interface
2.7.4 fixed this so it actually works and you can get a memoryview out of an old buffer.Re: Python 2.7.4 Released
#48After years, better integration between the old and new buffer interfaces was finally sneaked in as a bug fix. You can now call `memoryview(some_buffer)` and it'll DTRT. The whole buffers situation is a depressing mess.
Since you have been voted to the top of the thread for this comment, can you be more concrete on your complaint?
Basically, Python has the "buffer" object which is a 0-copy view of some memory area (lets an object expose itself as a bytes array of sorts). It's always been plagued with a number of issues.
In Python 3, `buffer` was removed and replaced with `memoryview`, which was backported to Python 2.7. But in said Python 2.7, `buffer` and `memoryview` both exist and fill very similar need so e.g. older libraries will likely return a buffer which newer code will want to use as a memoryview. No such luck, they're not compatible.
2.7.4 fixes that so you can get a memoryview from a buffer.
Re: Python 2.7.4 Released
#49Earlier quoted context omitted.
I too would like more details on this. 2.7.3 already had memoryview objects IIRC, though I found them almost as frustrating to work with as the 2.6.x world of not having them. What really changed in 2.7.4?
In 2.7.3, you can create a buffer which is the "old" buffer interface: http://docs.python.org/2/library/functions.html#buffer And you can create a memoryview which is the "new" and more flexible buffer interface: http://docs.python.org/2/library/stdtypes.html#typememoryvie... You can get a buffer of a string: >>> buffer("foo") and a view of a string: >>> memoryview("foo") but when you get this unhelpful and really st…
Re: Python 2.7.4 Released
#50Earlier quoted context omitted.
Why would you use/support the fork? Why not just upgrade?
It is pretty clear that the current users of Python 2.x have voted that they don't want to move to Python 3. Some language changes and lots of library changes. Everything has to be ported to upgrade.
"Python 3.0 final was released on December 3rd, 2008"