[issue23453] Opening a stream with tarfile.open() triggers a TypeError: can't concat bytes to str error

2015-02-12 Thread Carl Chenet
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

[issue11296] Possible error in What's new in Python 3.2 : duplication of rsplit() mention

2011-02-22 Thread Carl Chenet
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

[issue11234] Possible error in What's new Python3.2(rc3) documentation (sysconfig.get_config_var)

2011-02-17 Thread Carl Chenet
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

[issue9304] unreproducible example in the memoryview documentation

2010-07-19 Thread Carl Chenet
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

[issue7418] hashlib : the names of the different hash algorithms

2009-12-24 Thread Carl Chenet
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

[issue7418] hashlib : the names of the different hash algorithms

2009-12-02 Thread Carl Chenet
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

[issue7418] hashlib : the names of the different hash algorithms

2009-12-02 Thread Carl Chenet
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

[issue7418] hashlib : the names of the different hash algorithms

2009-12-02 Thread Carl Chenet
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

[issue7418] hashlib : the names of the different hash algorithms

2009-12-01 Thread Carl Chenet
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