Message164351
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. |
|
Date |
User |
Action |
Args |
2012-06-29 19:53:25 | v+python | set | recipients:
+ v+python |
2012-06-29 19:53:25 | v+python | set | messageid: <1340999605.61.0.988726046922.issue15226@psf.upfronthosting.co.za> |
2012-06-29 19:53:25 | v+python | link | issue15226 messages |
2012-06-29 19:53:24 | v+python | create | |
|