New submission from Glenn Linderman <v+pyt...@g.nevcal.com>:

This is stupid code, but it should be faster with PEP 393 than before, should 
it not?


str = ' ' * 5000000 + "this is really a string example....wow!!!";
for ix in range( 9000 ):
    z = max(str)
print("Max character: " + max(str))


While the new C API seems to support quickly finding the max character in a 
string, Python code does not benefit.

----------
components: Interpreter Core
messages: 164351
nosy: v+python
priority: normal
severity: normal
status: open
title: max( str ) should be fast with PEP 393
versions: Python 3.3

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15226>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to