changeset 149:7f5d4dd8e7c8

created
author 127.0.0.1
date Thu, 30 Jan 2014 09:31:15 +0100
parents 407bd940bc84
children 40120aa31d5d
files import%20in%20function
diffstat 1 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/import%20in%20function	Thu Jan 30 09:31:15 2014 +0100
@@ -0,0 +1,14 @@
+**Wrong:**
+{{{#!python
+def do_something():
+    from something import do_it
+    do_it()
+}}}
+
+**Better:**
+{{{#!python
+import something
+
+def do_something():
+    something.do_it()
+}}}
\ No newline at end of file