mnba / shedskin

Automatically exported from code.google.com/p/shedskin
0 stars 0 forks source link

Add module support for bz2 #74

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Please add module support for bz2.
Currently Not covenient to read data from compressed files.

Original issue reported on code.google.com by jason.mi...@gmail.com on 28 May 2010 at 6:59

GoogleCodeExporter commented 9 years ago
it looks like it should be possible, but I'm not sure how generally useful 
support
for bz2 would be.. :-) do you have a use case where you really need this..?  

Original comment by mark.duf...@gmail.com on 28 May 2010 at 8:04

GoogleCodeExporter commented 9 years ago
Yes, that's why I bring this up. :) There are some data mining/analysis 
programs in 
my tool chain which handle huge data files (GBs) and most of them are 
compressed by 
bz2. 
Please consider it when possible

FYI
bzip lib: http://www.bzip.org/
bz2 module wrapper can be found in python source code

Thanks
Jason

Original comment by jason.mi...@gmail.com on 29 May 2010 at 4:31

GoogleCodeExporter commented 9 years ago
BTW, Is it possible to use modules in Shedskin through PythonVM ? So we don't 
need 
to translate non-performance critical or binary modules into c++. Flexibility 
will 
be greatly improved.
I know the iteroperability between c/c++ and python is good, but no experience 
in 
thare area 

Original comment by jason.mi...@gmail.com on 29 May 2010 at 5:35

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
yes, I guess, using shedskin -e.. :-) (see the tutorial, section Generating an
Extension Module for details)

Original comment by mark.duf...@gmail.com on 29 May 2010 at 6:51

GoogleCodeExporter commented 9 years ago
hehe, I mean if I used un-supported modules in code, possible to use Python VM 
to 
execute that module while my code are tranlated into c++?
For example: when I use bz2 module in a program, can we let cpython to execute 
bz2, 
and all other pure python code tranlated into c++.

Original comment by jason.mi...@gmail.com on 29 May 2010 at 8:24

GoogleCodeExporter commented 9 years ago
sorry I forgot to answer this. I don't think this will ever be possible, 
because of type inference constraints.. 

Original comment by mark.duf...@gmail.com on 13 Jun 2010 at 5:07

GoogleCodeExporter commented 9 years ago
I moved all standard library related issues into issue 106.

Original comment by mark.duf...@gmail.com on 27 Oct 2010 at 1:05