¡@

Home 

python Programming Glossary: num_converted

Change default Python version from 2.4 to 2.6

http://stackoverflow.com/questions/3339530/change-default-python-version-from-2-4-to-2-6

Python closure: Write to variable in parent scope

http://stackoverflow.com/questions/4851463/python-closure-write-to-variable-in-parent-scope

stored_blocks block_hash block return ' s ' block_hash num_converted 0 def convert_variables m name m.group 1 num_converted 1 return.. num_converted 0 def convert_variables m name m.group 1 num_converted 1 return ' s ' name fixed MATCH_DECLARE_NEW.sub '' template.. elements to stored_blocks works fine but I cannot increase num_converted in the second subfunction UnboundLocalError local variable 'num_converted'..