~ubuntu-branches/ubuntu/precise/cython/precise

« back to all changes in this revision

Viewing changes to tests/errors/e_cdef_keywords_T241.pyx

  • Committer: Bazaar Package Importer
  • Author(s): Python Applications Packaging Team, Ryan Kavanagh, Jakub Wilk, Piotr Ożarowski
  • Date: 2009-08-10 23:18:51 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20090810231851-i6f7mr1ij1h2czkp
Tags: 0.11.2-1
[ Ryan Kavanagh ]
* New upstream release (Closes: #525620, #536213)

[ Jakub Wilk ]
* debian/rules: remove generated files.

[ Piotr Ożarowski ]
* Standards-Version bumped to 3.8.2 (no change needed)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
cdef some_function(x, y):
 
2
    pass
 
3
 
 
4
cdef class A:
 
5
    cdef some_method(self, x, y=1):
 
6
        pass
 
7
 
 
8
some_function(1, 2)
 
9
some_function(1, y=2)
 
10
 
 
11
cdef A a = A()
 
12
a.some_method(1)
 
13
a.some_method(1, 2)
 
14
a.some_method(1, y=2)
 
15
 
 
16
_ERRORS = u"""
 
17
9:13: Keyword arguments not allowed in cdef functions.
 
18
14:13: Keyword arguments not allowed in cdef functions.
 
19
"""