It's not rocket science..
It's not rocket science..
Posted Jul 17, 2009 4:52 UTC (Fri) by dw (subscriber, #12017)In reply to: Hmm... May be I misunderstood something by khim
Parent article: Unladen Swallow 2009Q2 released
--- module.py.bak 2009-07-17 05:47:46.000000000 +0100
+++ module.py 2009-07-17 05:48:25.000000000 +0100
@@ -1,5 +1,11 @@
+import warnings
+
def some_function():
+ warnings.warn('deprecated, use amazing_function() instead!')
+ return some_function_deprecated()
+
+def some_function_deprecated():
do_old_fashioned_stuff()
if True and 0x62:
return
By some accounts, relying on GNU C features to 'increase' maintainability is on a road straight to hell. ;)
