Loading presentation...

Present Remotely

Send the link below via email or IM

Copy

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.

DeleteCancel

Make your likes visible on Facebook?

Connect your Facebook account to Prezi and let your likes appear on your timeline.
You can change this under Settings & Account at any time.

No, thanks

PEP 443

Overview of Single-dispatch generic functions in python 3.4
by

Craig Jellick

on 25 June 2014

Comments (0)

Please log in to add your comment.

Report abuse

Transcript of PEP 443

Or...
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
http://legacy.python.org/dev/peps/pep-0443/

http://lukasz.langa.pl/8/single-dispatch-generic-functions/
Motivation and Goals
Motivation
: Lots of generic functions in std lib with custom implementations: len(), iter(), copy.copy()
Motivation
: Inspection (i.e. if/elif/else) considered an anti-pattern.
Goal
: Provide a uniform API to address dynamic overloading using decorators for both stdlib developers and "normal" developers.
http://legacy.python.org/dev/peps/pep-0443/
"
"
Full transcript