New submission from Carl Chenet:
I'm trying to use a tar stream to a Python tarfile object but each time I do
have a TypeError: can't concat bytes to str error
Here is my test:
-8-
#!/usr/bin/python3.4
import tarfile
import sys
tarobj = tarfile.open(mode='r|', fileobj=sys.stdin
New submission from Carl Chenet cha...@ohmytux.com:
Hi,
Could the rsplit() method be mentioned mistakenly two times in the following
sentence of the current What's new in Python 3.2 ?
The fast-search algorithm in stringlib is now used by the split(), rsplit(),
splitlines() and replace
New submission from Carl Chenet cha...@ohmytux.com:
Hi,
It seems a mistake could be in the What's new in Python 3.2 (rc3)
documentation in the sysconfig.get_config_var('SO') example :
sysconfig.get_config_var('SO') # find the full filename extension
'cpython-32mu.so'
On my system
New submission from Carl Chenet cha...@ohmytux.com:
Hi,
In the current documentation at
http://docs.python.org/library/stdtypes.html#memoryview, the first example
announces :
v = memoryview('abcefg')
v[1]
'b'
v[-1]
'g'
v[1:4]
memory at 0x77ab28
str(v[1:4])
'bce'
Trying to reproduce
Carl Chenet cha...@ohmytux.com added the comment:
Hi,
Maybe you have some ideas on this patch? I think it could be a nice
feature e.g in my app I need to support every hash algorithms available
so with optparse module it is possible to write something like :
for __hashtype in ('md5
Carl Chenet cha...@ohmytux.com added the comment:
flox : You're right, sorry about that.
Here is a fixed patch.
--
Added file:
http://bugs.python.org/file15437/algorithms_constant_value_in_hashlib_module.diff
___
Python tracker rep
Changes by Carl Chenet cha...@ohmytux.com:
Removed file:
http://bugs.python.org/file15437/algorithms_constant_value_in_hashlib_module.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7418
Carl Chenet cha...@ohmytux.com added the comment:
The fixed file :
algorithms_constant_attribute_in_hashlib_module_update1.diff
--
Added file:
http://bugs.python.org/file15438/algorithms_constant_attribute_in_hashlib_module_update1.diff
___
Python
New submission from Carl Chenet cha...@ohmytux.com:
Hi,
The hashlib module could provide a tuple offering the names of the
different hash algorithms which are guaranteed to be supported.
The expected result:
import hashlib
hashlib.algorithms
('md5', 'sha1', 'sha224', 'sha256', 'sha384