* WolfRage <wolfrage8...@gmail.com> [150402 08:25]:
> These are just some questions that I have regarding the topic of 
> Functional Programming. I am working towards a more functional approach 
> to programming but acknowledge that it is far from Functional, 
> especially since this is mostly impossible in Python.
> Questions:
> What are the best practices to create more Functional Python?
> What are your thoughts on Functional in Python?
> Currently I am re-writing functions to reduce their side effects.
> I am also removing the state from objects and putting it into a closure 
> type function.
> However with callback based systems (GUI) this seemed impossible, so 
> instead I am abusing a coroutine to maintain the state of the application.
> But is it abuse or does it seem like a good way to handle the callback 
> system? The benefit to me at this time is limited, but any errors in 
> state are confined to a single location, which is nice.
> What do you think about using a coroutine to handle state, how would you 
> do it better in a callback based system.
> Thank you for your insights.
  You have already received valuable replies from two advanced
  python experts. 
  If you are looking for a book (available digitally for kindle)
  I would recommend 
  Guide To: Functional Python & Comprehension Constructs 
    by Matt Harrison
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to