Loading presentation...

Present Remotely

Send the link below via email or IM


Present to your audience

Start remote presentation

  • Invited audience members will follow you as you navigate and present
  • People invited to a presentation do not need a Prezi account
  • This link expires 10 minutes after you close the presentation
  • A maximum of 30 users can follow your presentation
  • Learn more about this feature in our knowledge base article

Do you really want to delete this prezi?

Neither you, nor the coeditors you shared it with will be able to recover it again.


PEP 443

Overview of Single-dispatch generic functions in python 3.4

Craig Jellick

on 25 June 2014

Comments (0)

Please log in to add your comment.

Report abuse

Transcript of PEP 443

Courtesy of memegenerator.net
Formal definition
A generic function is composed of multiple functions implementing the same operation for different types. Which implementation should be used during a call is determined by the dispatch algorithm. When the implementation is chosen based on the type of a single argument, this is known as single dispatch.
PEP 443
Single-dispatch generic functions
References and Resources

Motivation and Goals
: Lots of generic functions in std lib with custom implementations: len(), iter(), copy.copy()
: Inspection (i.e. if/elif/else) considered an anti-pattern.
: Provide a uniform API to address dynamic overloading using decorators for both stdlib developers and "normal" developers.
Full transcript