Difference between revisions of "Smart Terminal Convert from 2.7 to 3.6"

From OpenCircuits
Jump to navigation Jump to search
(Created page with "= General = *'''[https://docs.python.org/3/whatsnew/3.0.html What’s New In Python 3.0 — Python 3.6.1rc1 documentation ]''' = Exceptions = *'''[https://www.python.org/de...")
 
Line 1: Line 1:
 
= General =  
 
= General =  
 +
 +
Look at this for general info:
 +
 
*'''[https://docs.python.org/3/whatsnew/3.0.html What’s New In Python 3.0 — Python 3.6.1rc1 documentation ]'''
 
*'''[https://docs.python.org/3/whatsnew/3.0.html What’s New In Python 3.0 — Python 3.6.1rc1 documentation ]'''
  
Line 8: Line 11:
  
 
<pre>
 
<pre>
 
 
 
         except Exception, ex_arg:
 
         except Exception, ex_arg:
  
Line 16: Line 17:
 
         except Exception as ex_arg:
 
         except Exception as ex_arg:
  
code
 
 
</pre>
 
</pre>

Revision as of 08:14, 12 March 2017

General

Look at this for general info:

Exceptions


        except Exception, ex_arg:

change to

        except Exception as ex_arg: