Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #9411

Re: Functional style programming in python: what will you talk about if you have an hour on this topic?

From Terry Reedy <tjreedy@udel.edu>
Subject Re: Functional style programming in python: what will you talk about if you have an hour on this topic?
Date 2011-07-13 12:29 -0400
References <2b28da74-f054-4f46-8971-43603ab7cfd3@glegroupsg2000goo.googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.996.1310574602.1164.python-list@python.org> (permalink)

Show all headers | View raw


On 7/13/2011 8:39 AM, Anthony Kong wrote:

> I am giving a few presentations on python to my colleagues who are mainly java developers and starting to pick up python at work.
>
> <personal opinion>
> So I have picked this topic for one of my presentation. It is because functional programming technique is one of my favorite in my bag  of python trick. It also takes me to the rabbit hole of the functional programming world, which is vastly more interesting than the conventional procedural/OO languages.
> </personal opinion>
>
> I think I will go through the following items:
>
> itertools module

The iteration protocol and the notion of iteraables as the common data 
exchange format, with associated notions of iterators, generator 
functions, and generators, are important features of Python. Not really 
functional style, I guess.

> functools module
> concept of currying ('partial')
>
>
> I would therefore want to ask your input e.g.
>
> Is there any good example to illustrate the concept?
> What is the most important features you think I should cover?

Functions are first-class objects, like everything else.
Use of closures to create functions to be returned.


-- 
Terry Jan Reedy

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Functional style programming in python: what will you talk about if you have an hour on this topic? Anthony Kong <anthony.hw.kong@gmail.com> - 2011-07-13 05:39 -0700
  Re: Functional style programming in python: what will you talk about if you have an hour on this topic? gene heskett <gheskett@wdtv.com> - 2011-07-13 09:41 -0400
  Re: Functional style programming in python: what will you talk about if you have an hour on this topic? J Kenneth King <james@agentultra.com> - 2011-07-13 09:50 -0400
  Re: Functional style programming in python: what will you talk about if you have an hour on this topic? Terry Reedy <tjreedy@udel.edu> - 2011-07-13 12:29 -0400
  Re: Functional style programming in python: what will you talk about if you have an hour on this topic? Ian Kelly <ian.g.kelly@gmail.com> - 2011-07-13 11:09 -0600
  Re: Functional style programming in python: what will you talk about if   you have an hour on this topic? Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2011-07-14 15:32 +1200
    Re: Functional style programming in python: what will you talk about if   you have an hour on this topic? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-07-14 14:05 +1000
    Re: Functional style programming in python: what will you talk about if you have an hour on this topic? Jonathan Hartley <tartley@tartley.com> - 2011-07-14 03:33 -0700
  Re: Functional style programming in python: what will you talk about if you have an hour on this topic? Jonathan Hartley <tartley@tartley.com> - 2011-07-14 03:31 -0700

csiph-web