Skip to content
Snippets Groups Projects
Commit 4354c85f authored by Laurent Peuch's avatar Laurent Peuch
Browse files

[doc] inform about python version for grammar diff

parent 8f1cba70
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -31,9 +31,14 @@ List of differences
**Some of the diff have been edited to isolate the focused difference of the
section**
 
Python 3.3 is the based grammar I've started diffing with, some of the grammar
differences marked as 3.3 are actually from older python version.
Print function
~~~~~~~~~~~~~~
 
Python 3.3 or earlier
.. image:: ./grammar_diff/print_function.png
 
Already done since the start.
Loading
Loading
@@ -44,26 +49,36 @@ TODO
Typed arguments
~~~~~~~~~~~~~~~
 
Python 3.3 or earlier
.. image:: ./grammar_diff/typed_args.png
 
Function return type
~~~~~~~~~~~~~~~~~~~~
 
Python 3.3 or earlier
.. image:: ./grammar_diff/function_return_type.png
 
Nonlocal statement
~~~~~~~~~~~~~~~~~~
 
Python 3.3 or earlier
.. image:: ./grammar_diff/nonlocal_statement.png
 
Exec function
~~~~~~~~~~~~~
 
Python 3.3 or earlier
.. image:: ./grammar_diff/exec_function.png
 
*var generalisation
~~~~~~~~~~~~~~~~~~~
 
Python 3.3 or earlier
.. image:: ./grammar_diff/testlist_start_expressiong.png
 
.. image:: ./grammar_diff/star_expr.png
Loading
Loading
@@ -75,16 +90,22 @@ Exec function
Raise from
~~~~~~~~~~
 
Python 3.3 or earlier
.. image:: ./grammar_diff/raise_from.png
 
Ellipsis in from import
~~~~~~~~~~~~~~~~~~~~~~~
 
Python 3.3 or earlier
.. image:: ./grammar_diff/ellipsis_in_from_import.png
 
New lambda grammar
~~~~~~~~~~~~~~~~~~
 
Python 3.3 or earlier
I have no idea on what to do with this one yet.
 
.. image:: ./grammar_diff/new_lambda_grammar.png
Loading
Loading
@@ -94,6 +115,8 @@ I have no idea on what to do with this one yet.
Remove old list comprehension syntax
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
Python 3.3 or earlier
I'm not sure on how to handle both situations (and it is needed? Old list
comprehension syntax is like super edgy, I really wonder if anyonne has
actually used that one that?)
Loading
Loading
@@ -105,6 +128,8 @@ actually used that one that?)
False|True|None|... are now atoms in the grammar
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
Python 3.3 or earlier
Do I need to do anything about that?
 
.. image:: ./grammar_diff/more_atoms.png
Loading
Loading
@@ -112,6 +137,8 @@ Do I need to do anything about that?
Inheritance in class definition uses arglist now
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
Python 3.3 or earlier
I have no idea on why this is here but that's easy to change.
 
.. image:: ./grammar_diff/class_inherit_is_arglist_now.png
Loading
Loading
@@ -119,6 +146,8 @@ I have no idea on why this is here but that's easy to change.
Yield From
~~~~~~~~~~
 
Python 3.3 or earlier
.. image:: ./grammar_diff/yield_from.png
 
 
Loading
Loading
@@ -137,14 +166,20 @@ to support (and we already do) so we don't have to do anything.
No more commat syntax in except close
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
Python 3.3 or earlier
.. image:: ./grammar_diff/no_more_commat_in_execption_close.png
 
No more backquote syntax
~~~~~~~~~~~~~~~~~~~~~~~~
 
Python 3.3 or earlier
.. image:: ./grammar_diff/no_more_backquote_syntax.png
 
No more '.' '.' '.' in the grammar
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
Python 3.3 or earlier
.. image:: ./grammar_diff/ellipsis_is_first_class_now_not_needed_anymore.png
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment