[Python-checkins] CVS: /python/nondist/src/Compiler/tests test_func.py,1.6,1.7

Jeremy Hylton jhylton@cnri.reston.va.us
Tue, 15 Feb 2000 19:52:06 -0500


Update of /projects/cvsroot//python/nondist/src/Compiler/tests
In directory goon.cnri.reston.va.us:/home/jhylton/python/nondist/src/Compiler/tests

Modified Files:
	test_func.py 
Log Message:
add example with implicit tuple unpacking for arguments




Index: test_func.py
===================================================================
RCS file: /projects/cvsroot//python/nondist/src/Compiler/tests/test_func.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** test_func.py	2000/02/15 22:10:33	1.6
--- test_func.py	2000/02/16 00:52:04	1.7
***************
*** 10,18 ****
      return zfill(a, 10)
  
  def test():
      print test1(2)
      print test2('a', b='c', c='d', abc='42')
      print test3(None, Ellipsis, "365")
  
! test();
  
--- 10,22 ----
      return zfill(a, 10)
  
+ def test4(((a, b), c), x, (d, (e, f))):
+     return a + b * c - d / e + f
+ 
  def test():
      print test1(2)
      print test2('a', b='c', c='d', abc='42')
      print test3(None, Ellipsis, "365")
+     print test4(((10, 6), 2), 0, (6, (3, 22)))
  
! test()