[Edu-sig] the zip( ) function in Algebra 2?

Kirby Urner kurner at oreillyschool.com
Fri Aug 30 15:46:09 CEST 2013


For those of you still scratching your heads, there's a version issue here
as well.

Since I teach 3.x for a living, these little difference are in my face all
the time.

More from FaceBook:

Steve Holden:

Zip() not a function?

Where on Earth did you get that strange story from?

It may return an iterator, but that doesn't mean it's not a function ...

Me:

I just mean it's neither of <class 'function'> nor <class
'builtin_function_or_method'>.
zip is now a type, like int, str, list, tuple etc. -- none of which are
functions either.

Talking Python 3. You're likely thinking of 2.7:

>>> type(zip) # 3.2
<class 'type'>
>>> type(zip) # 2.7
<type 'builtin_function_or_method'>


Also, I've clued our peers on the math board (listserv) for those wishing
to understand our "namespaces" better.
Same thread as before.



> http://mathforum.org/kb/thread.jspa?threadID=2592483
>
> Kirby
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/edu-sig/attachments/20130830/f9645463/attachment.html>


More information about the Edu-sig mailing list