diff options
author | Alexandre Vassalotti <alexandre@peadrop.com> | 2010-01-09 22:14:46 +0000 |
---|---|---|
committer | Alexandre Vassalotti <alexandre@peadrop.com> | 2010-01-09 22:14:46 +0000 |
commit | a5c565a53493eefd9f0e531003bc2396e3cb726a (patch) | |
tree | 407e0072c1d10ac1003a4651a51095610ae887ed /Lib/test/test_bytes.py | |
parent | 0c0e229dd0a12eed81e08917339f2f11e12be96c (diff) | |
download | cpython-git-a5c565a53493eefd9f0e531003bc2396e3cb726a.tar.gz |
Issue #6688: Optimize PyBytes_FromObject().
- Add special-cases for list and tuple objects.
- Use _PyObject_LengthHint() instead of an arbitrary value for the
size of the initial buffer of the returned object.
Diffstat (limited to 'Lib/test/test_bytes.py')
0 files changed, 0 insertions, 0 deletions