Skip to main content
6 events
when toggle format what by license comment
S Sep 13, 2015 at 19:12 history suggested Peter Mortensen CC BY-SA 3.0
Copy edited (ref. <http://en.wikipedia.org/wiki/Python_%28programming_language%29>).
Sep 13, 2015 at 18:42 review Suggested edits
S Sep 13, 2015 at 19:12
Sep 12, 2015 at 15:51 comment added meuh I'd find it difficult to quote something using nested functions, indeed I don't find nonlocal anywhere in my currently installed python libs. Perhaps you can take heart from textwrap.py which has a TextWrapper class, but also a def wrap(text) function which simply creates a TextWrapper instance, calls the .wrap() method on it and returns. So use a class, but add some convenience functions.
Sep 12, 2015 at 15:34 comment added iCanLearn Thanks. And do you know anything in the standard library which sounds like what I have in the question?
Sep 12, 2015 at 15:06 review First posts
Sep 12, 2015 at 19:32
Sep 12, 2015 at 15:01 history answered meuh CC BY-SA 3.0