[Python-Dev] Partial function application 'from the right' (original) (raw)
Alexander Belopolsky alexander.belopolsky at gmail.com
Sat Jan 31 04:02:21 CET 2009
- Previous message: [Python-Dev] Partial function application 'from the right'
- Next message: [Python-Dev] Partial function application 'from the right'
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, Jan 30, 2009 at 7:42 PM, Antoine Pitrou <solipsis at pitrou.net> wrote: ..
If one writes X = partial.skip, it looks quite nice:
splitone = partial(str.split, X, 1)
Or even
_ = partial.skip split_one = partial(str.split, _, 1)
- Previous message: [Python-Dev] Partial function application 'from the right'
- Next message: [Python-Dev] Partial function application 'from the right'
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]