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/2006-May/065146.html below:

[Python-Dev] PySequence_Fast_GET_ITEM in string join

[Python-Dev] PySequence_Fast_GET_ITEM in string join [Python-Dev] PySequence_Fast_GET_ITEM in string joinAndrew Dalke dalke at dalkescientific.com
Tue May 23 16:52:21 CEST 2006
Me [Andrew Dalke] said:
> The relevant code in stringobject uses PySequence_Fast_GET_ITEM(seq, 
> i),
> which likely doesn't know about my derived __getitem__.

Oops, I didn't know what the code was doing well enough.  The
relevant problem is

         seq = PySequence_Fast(orig, "");

That calls __iter__ on my derived list object, which knows nothing
about my overridden __getitem__

So things are working as designed.

Well, back to blundering about.  Too much brennivin. ;)

					Andrew
					dalke at dalkescientific.com

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