Sharing this again because Emlyn O’Regan has completed the series with Part 4.

Sharing this again because Emlyn O’Regan has completed the series with Part 4.

The idea behind this series of articles is to enable serialization of Python functions so they can be pushed out and run on remote servers. The wrinkle is that functions that use recursion have to reference themselves in a closure and this makes them not easy to serialize.

Emlyn shows the process of working around this limitation by using the venerable Y-Combinator to allow fully serializable recursive functions.

Part 1

https://medium.com/@emlynoregan/serialising-all-the-functions-in-python-cd880a63b591#.ej8h56229

Part 2

https://medium.com/@emlynoregan/digging-deeper-into-recursive-inner-functions-in-python-8ec6c5b1cbb#.v7irzomv4

Part 3

https://medium.com/@emlynoregan/manually-rewriting-recursive-inner-functions-to-be-serialisable-in-python-83895792b176#.qhj113ozp 

Part 4

https://medium.com/@emlynoregan/automatically-serialising-recursive-inner-functions-in-python-using-the-y-combinator-fc5d37e50b29#.e6ltr3i9t

Originally shared by Emlyn O’Regan

This is part 1 of 2 of 4. In part 2 the other parts I’ll present what appears to be a novel approach to serialising recursive inner functions in Python using the Y Combinator.

Why? Why Y of course.

Why? Why Y of course.

Part 1

https://medium.com/@emlynoregan/serialising-all-the-functions-in-python-cd880a63b591#.ej8h56229

Part 2

https://medium.com/@emlynoregan/digging-deeper-into-recursive-inner-functions-in-python-8ec6c5b1cbb#.v7irzomv4

Part 3

https://medium.com/@emlynoregan/manually-rewriting-recursive-inner-functions-to-be-serialisable-in-python-83895792b176#.qhj113ozp 

Part 4

https://medium.com/@emlynoregan/automatically-serialising-recursive-inner-functions-in-python-using-the-y-combinator-fc5d37e50b29#.e6ltr3i9t

Originally shared by Emlyn O’Regan

This is part 1 of 2 of 4. In part 2 the other parts I’ll present what appears to be a novel approach to serialising recursive inner functions in Python using the Y Combinator.