Thread: Loop over list
View Single Post
Old 04-10-2015, 09:55 AM   #5
ivanm
e^bored
ivanm began at the beginning.
 
Posts: 44
Karma: 10
Join Date: Jun 2010
Device: Kobo Aura HD, BeBook Neo
So I've tried writing my own function that applies that entire shortening/initialisation process over each element of a series list, but I when I try and use it I get the error "EXCEPTION: global name re is not defined"; adding "import re" at the top of the definition didn't work.

Alternatively, how do I call standard template functions in a custom function? The documentation just says that all instructions are in the dialog, and it just says the required syntax, not how to call other functions. (I haven't done much Python for a while; I usually use Haskell, so I'm not used to trying to find dynamically-typed values in an object )
ivanm is offline   Reply With Quote