I love the 'x' mode open in recent versions of Python. I just discovered
that lzma.open doesn't support it. It seems there's an elif that explicitly
checks the modes allowed. I added x and xb to the choices and now it
seems to work as I would like.
patch.lzma.py
Description: Binary data
Please open a bug report on bugs.python.org so this doesn't get lost.
--
Eric.
On Oct 8, 2013, at 8:49 PM, Tim Heaney thea...@gmail.com wrote:
I love the 'x' mode open in recent versions of Python. I just discovered that
lzma.open doesn't support it. It seems there's an elif that
On Tue, 08 Oct 2013 20:49:17 -0400, Tim Heaney thea...@gmail.com wrote:
I love the 'x' mode open in recent versions of Python. I just discovered
that lzma.open doesn't support it. It seems there's an elif that explicitly
checks the modes allowed. I added x and xb to the choices and now it
Done.
http://bugs.python.org/issue19201
I guess I should have known that. Sorry to bother python-dev with this.
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
When I build python from sources I have no lzma support (module _lzma
cannot be built).
There are lzma packages installed in my Ubuntu 11.10 box: lzma,
lzma-dev and lzma-sources.
I can see lib files (headers are also can be found in linux-headers):
andrew@tiktaalik ~/p/cpython locate lzma.so
On Fri, Mar 16, 2012 at 07:30:31PM -0700, Andrew Svetlov wrote:
When I build python from sources I have no lzma support (module _lzma
cannot be built).
I have liblzma-dev, liblzma2 and lzma packages installed on ubuntu. I
am able to build and import lzma module.
Thanks,
Senthil
liblzma-dev has solved my problem.
Thank you, Senthil.
On Fri, Mar 16, 2012 at 7:38 PM, Senthil Kumaran sent...@uthcode.com wrote:
On Fri, Mar 16, 2012 at 07:30:31PM -0700, Andrew Svetlov wrote:
When I build python from sources I have no lzma support (module _lzma
cannot be built).
I have
Hey folks,
I'm pleased to announce that as of changeset 74d182cf0187, the
standard library now includes support for the LZMA compression
algorithm (as well as the associated .xz and .lzma file formats). The
new lzma module has a very similar API to the existing bz2 module; it
should serve as a
2011/11/29 Nadeem Vawda nadeem.va...@gmail.com
I'm pleased to announce that as of changeset 74d182cf0187, the
standard library now includes support for the LZMA compression
algorithm
Congratulations!
I'd like to ask the owners of (non-Windows) buildbots to install the
XZ Utils
Congrats, this is an excellent feature.
On Wed, Nov 30, 2011 at 10:34 AM, Amaury Forgeot d'Arc
amaur...@gmail.com wrote:
2011/11/29 Nadeem Vawda nadeem.va...@gmail.com
I'm pleased to announce that as of changeset 74d182cf0187, the
standard library now includes support for the LZMA compression
On Tue, Nov 29, 2011 at 4:59 PM, Nadeem Vawda nadeem.va...@gmail.com wrote:
liblzma-dev; on Fedora I believe the correct package is xz-devel.
xz-devel is right. I just verified a build of the new module on a
fresh F16 system.
--
Meador
___
Another update - I've added proper documentation. Now the code should be
pretty much complete - all that's missing is the necessary bits and pieces
to build it on Windows.
Cheers,
Nadeem
___
Python-Dev mailing list
Python-Dev@python.org
I've posted an updated patch to the bug tracker, with a complete implementation
of the lzma module, including 100% test coverage for the LZMAFile class (which
is implemented entirely in Python). It doesn't include ReST documentation (yet),
but the docstrings are quite detailed.
Please take a look
On Aug 27, 2011, at 10:36 PM, Nadeem Vawda wrote:
I talked to Antoine about this on IRC; he didn't seem to think a PEP would be
necessary. But a summary of the discussion on the tracker issue might still
be a useful thing to have, given how long it's gotten.
I agree with Antoine - no PEP should
I've updated the issue http://bugs.python.org/issue6715 with a patch
containing my work so far - the LZMACompressor and LZMADecompressor classes,
along with some tests. These two classes should provide a fairly complete
interface to liblzma; it will be possible to implement LZMAFile on top of
I just want to talk about it - for now.
python-ideas is a better place to just talk than python-dev.
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
Dan Stromberg, 27.08.2011 21:58:
On Sat, Aug 27, 2011 at 9:04 AM, Nick Coghlan wrote:
On Sun, Aug 28, 2011 at 1:58 AM, Nadeem Vawda wrote:
On Sat, Aug 27, 2011 at 5:52 PM, Nick Coghlan wrote:
It's acceptable for the Python version to use ctypes in the case of
wrapping an existing library, but
On Sat, Aug 27, 2011 at 10:36 PM, Dan Stromberg drsali...@gmail.com wrote:
On Sat, Aug 27, 2011 at 8:57 PM, Guido van Rossum gu...@python.org wrote:
On Sat, Aug 27, 2011 at 3:14 PM, Dan Stromberg drsali...@gmail.com
wrote:
IMO, we really, really need some common way of accessing C libraries
Guido van Rossum wrote:
On Sat, Aug 27, 2011 at 3:14 PM, Dan Stromberg drsali...@gmail.com wrote:
IMO, we really, really need some common way of accessing C libraries that
works for all major Python variants.
We have one. It's called writing an extension module.
I think Dan means some way
Hello all,
I'd like to propose the addition of a new module in Python 3.3. The 'lzma'
module will provide support for compression and decompression using the LZMA
algorithm, and the .xz and .lzma file formats. The matter has already been
discussed on the tracker http://bugs.python.org/issue6715,
I'd like to propose the addition of a new module in Python 3.3. The 'lzma'
module will provide support for compression and decompression using the LZMA
algorithm, and the .xz and .lzma file formats. The matter has already been
discussed on the tracker http://bugs.python.org/issue6715, where
The implementation will also be similar to bz2 - basic compressor and
decompressor classes written in C, with convenience functions and a file
interface implemented on top of those in Python.
When I reviewed lzma, I found that this approach might not be
appropriate. lzma has many more options
On Sat, Aug 27, 2011 at 4:50 PM, Martin v. Löwis mar...@v.loewis.de wrote:
The implementation will also be similar to bz2 - basic compressor and
decompressor classes written in C, with convenience functions and a file
interface implemented on top of those in Python.
When I reviewed lzma, I
As for file formats, these are handled by liblzma itself; the extension module
just selects which compressor/decompressor initializer function to use
depending
on the value of the format argument. Our code won't contain anything along
the
lines of GzipFile; all of that work is done by the
On Sat, Aug 27, 2011 at 5:15 PM, Martin v. Löwis mar...@v.loewis.de wrote:
As for file formats, these are handled by liblzma itself; the extension
module
just selects which compressor/decompressor initializer function to use
depending
on the value of the format argument. Our code won't
On Sun, Aug 28, 2011 at 1:15 AM, Martin v. Löwis mar...@v.loewis.de wrote:
This is exactly what I worry about. I think adding file I/O to bz2 was a
mistake, as this doesn't integrate with Python's IO library (it used
to, but now after dropping stdio, they were incompatible. Indeed, for
Python
It is not my intention for the _lzma C module to do I/O - that will be done by
the LZMAFile class, which will be written in Python. My comparison with bz2
was
in reference to the state of the module after it was rewritten for issue 5863.
Ok. I'll defer my judgement then until actual code is
On Sun, 28 Aug 2011 01:36:50 +1000
Nick Coghlan ncogh...@gmail.com wrote:
On Sun, Aug 28, 2011 at 1:15 AM, Martin v. Löwis mar...@v.loewis.de wrote:
This is exactly what I worry about. I think adding file I/O to bz2 was a
mistake, as this doesn't integrate with Python's IO library (it used
On Sun, Aug 28, 2011 at 1:40 AM, Antoine Pitrou solip...@pitrou.net wrote:
On Sun, 28 Aug 2011 01:36:50 +1000
Nick Coghlan ncogh...@gmail.com wrote:
On Sun, Aug 28, 2011 at 1:15 AM, Martin v. Löwis mar...@v.loewis.de
wrote:
This is exactly what I worry about. I think adding file I/O to bz2
On Sat, Aug 27, 2011 at 5:42 PM, Martin v. Löwis mar...@v.loewis.de wrote:
Not sure whether you already have this: supporting the tarfile module
would be nice.
Yes, got that - issue 5689. Also of interest is issue 5411 - adding .xz
support to distutils. But I think that these are separate
On Sun, Aug 28, 2011 at 1:58 AM, Nadeem Vawda nadeem.va...@gmail.com wrote:
On Sat, Aug 27, 2011 at 5:52 PM, Nick Coghlan ncogh...@gmail.com wrote:
It's acceptable for the Python version to use ctypes in the case of
wrapping an existing library, but the Python version should still
exist.
I'm
On Sun, 28 Aug 2011 01:52:51 +1000
Nick Coghlan ncogh...@gmail.com wrote:
The plausible story being that we basically wrap an existing library?
I don't think PyPy et al have pure Python versions of the zlib or
OpenSSL, do they?
If we start taking PEP 399 conformance to such levels, we
PEP 399 also comes into play - we need a pure Python version for PyPy
et al (or a plausible story for why an exception should be granted).
No, we don't. We can grant an exception, which I'm very willing to do.
The PEP lists wrapping a specific C-based library as a plausible reason.
It's
On Sat, 27 Aug 2011 18:50:40 +0200
Antoine Pitrou solip...@pitrou.net wrote:
On Sun, 28 Aug 2011 01:52:51 +1000
Nick Coghlan ncogh...@gmail.com wrote:
The plausible story being that we basically wrap an existing library?
I don't think PyPy et al have pure Python versions of the zlib or
On 8/27/2011 9:47 AM, Nadeem Vawda wrote:
I'd like to propose the addition of a new module in Python 3.3. The 'lzma'
module will provide support for compression and decompression using the LZMA
algorithm, and the .xz and .lzma file formats. The matter has already been
discussed on the
On Sat, Aug 27, 2011 at 9:04 AM, Nick Coghlan ncogh...@gmail.com wrote:
On Sun, Aug 28, 2011 at 1:58 AM, Nadeem Vawda nadeem.va...@gmail.com
wrote:
On Sat, Aug 27, 2011 at 5:52 PM, Nick Coghlan ncogh...@gmail.com
wrote:
It's acceptable for the Python version to use ctypes in the case of
I'd like to better understand why ctypes is (sometimes) frowned upon.
Is it the brittleness? Tendency to segfault?
That, and Python should work completely if ctypes is not available.
FWIW, I have a partial implementation of a module that does xz from
Python using ctypes.
So does it work
On Sat, Aug 27, 2011 at 9:47 PM, Terry Reedy tjre...@udel.edu wrote:
On 8/27/2011 9:47 AM, Nadeem Vawda wrote:
I'd like to propose the addition of a new module in Python 3.3. The 'lzma'
module will provide support for compression and decompression using the
LZMA
algorithm, and the .xz and
On Sat, Aug 27, 2011 at 1:21 PM, Martin v. Löwis mar...@v.loewis.dewrote:
I'd like to better understand why ctypes is (sometimes) frowned upon.
Is it the brittleness? Tendency to segfault?
That, and Python should work completely if ctypes is not available.
What are the most major
On Sat, Aug 27, 2011 at 10:41 PM, Dan Stromberg drsali...@gmail.com wrote:
It seems like there should be some way of coming up with an xml file
describing the types of the various bits of data and formal arguments -
perhaps using gccxml or something like it.
The problem is that you would need
On Sat, Aug 27, 2011 at 2:38 PM, Nadeem Vawda nadeem.va...@gmail.comwrote:
On Sat, Aug 27, 2011 at 10:41 PM, Dan Stromberg drsali...@gmail.com
wrote:
It seems like there should be some way of coming up with an xml file
describing the types of the various bits of data and formal arguments -
On Sat, 27 Aug 2011 15:14:15 -0700
Dan Stromberg drsali...@gmail.com wrote:
On Sat, Aug 27, 2011 at 2:38 PM, Nadeem Vawda nadeem.va...@gmail.comwrote:
On Sat, Aug 27, 2011 at 10:41 PM, Dan Stromberg drsali...@gmail.com
wrote:
It seems like there should be some way of coming up with an
Why -can't- we expect the user to have liblzma headers installed?
Couldn't it just be a dependency in the package management system?
Please give it up. You just won't convince that list that ctypes
is a viable approach for the standard library.
Regards,
Martin
On Sat, Aug 27, 2011 at 3:26 PM, Antoine Pitrou solip...@pitrou.net wrote:
On Sat, 27 Aug 2011 15:14:15 -0700
Dan Stromberg drsali...@gmail.com wrote:
On Sat, Aug 27, 2011 at 2:38 PM, Nadeem Vawda nadeem.va...@gmail.com
wrote:
On Sat, Aug 27, 2011 at 10:41 PM, Dan Stromberg
On Sat, 27 Aug 2011 16:19:01 -0700
Dan Stromberg drsali...@gmail.com wrote:
2) It's a rather arbitrary distinction that's being drawn between dev and
nondev today. There's no particular reason why the line couldn't be drawn
somewhere else.
Sure. Now please convince Linux distributions first,
On Sat, Aug 27, 2011 at 4:27 PM, Antoine Pitrou solip...@pitrou.net wrote:
Sure. Now please convince Linux distributions first, because this
particular subthread is going nowhere.
I hope you're not a solipsist.
Anyway, if the mere -discussion- of embracing a standard and safe way of
making
On Sat, Aug 27, 2011 at 4:27 PM, Antoine Pitrou solip...@pitrou.net wrote:
On Sat, 27 Aug 2011 16:19:01 -0700
Dan Stromberg drsali...@gmail.com wrote:
2) It's a rather arbitrary distinction that's being drawn between dev and
nondev today. There's no particular reason why the line couldn't
On Sat, Aug 27, 2011 at 3:14 PM, Dan Stromberg drsali...@gmail.com wrote:
IMO, we really, really need some common way of accessing C libraries that
works for all major Python variants.
We have one. It's called writing an extension module.
ctypes is a crutch because it doesn't realistically
On Sat, Aug 27, 2011 at 8:57 PM, Guido van Rossum gu...@python.org wrote:
On Sat, Aug 27, 2011 at 3:14 PM, Dan Stromberg drsali...@gmail.com
wrote:
IMO, we really, really need some common way of accessing C libraries that
works for all major Python variants.
We have one. It's called
49 matches
Mail list logo