This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author v+python
Recipients v+python
Date 2012-06-29.19:53:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1340999605.61.0.988726046922.issue15226@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-06-29 19:53:25v+pythonsetrecipients: + v+python
2012-06-29 19:53:25v+pythonsetmessageid: <1340999605.61.0.988726046922.issue15226@psf.upfronthosting.co.za>
2012-06-29 19:53:25v+pythonlinkissue15226 messages
2012-06-29 19:53:24v+pythoncreate