[ 
https://issues.apache.org/jira/browse/BEAM-7840?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Bradshaw resolved BEAM-7840.
-----------------------------------
    Resolution: Fixed

> Create MapTuple and FlatMapTuple to ease migration to Python 3.
> ---------------------------------------------------------------
>
>                 Key: BEAM-7840
>                 URL: https://issues.apache.org/jira/browse/BEAM-7840
>             Project: Beam
>          Issue Type: Test
>          Components: sdk-py-core
>            Reporter: Robert Bradshaw
>            Assignee: Robert Bradshaw
>            Priority: Major
>             Fix For: 2.15.0
>
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> These are like Map and FlatMap but expand out tuple input elements across
> several arguments. This will be useful as tuple argument unpacking has been
> removed in Python 3. Instead of having to convert
>     Map(lambda (k, v): expresion(k, v))
> into
>     Map(lambda k_v: expression(k_v[0], k_v[1]))
> one can now write
>     MapTuple(lambda k, v: expression(k, v))



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to