A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-March/043104.html below:

[Python-Dev] Joys of Optimization

[Python-Dev] Joys of Optimization [Python-Dev] Joys of OptimizationRaymond Hettinger python at rcn.com
Fri Mar 12 10:49:03 EST 2004
[Michael Hudson]
> Just a couple of thoughts:
> 
> 1) listextend_internal calls PyObject_Size twice, for no obvious
>    reason.

Good eye.  Will remove the duplicate call.


> 2) It's a little odd that listextend_internal consumes a reference to
>    b.  Perhaps a comment?

It probably was a good idea before all the refactoring because it
simplified the calling code and because the b argument was always a
temporary sequence.  Now that there is only one caller, the
responsibility for the DECREF could be shifted back to the caller --
it's a matter of taste.


Raymond


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4