Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved the first code snippet of the extension_types.rst to the exampl…
…es directory for testing.
- Loading branch information
gabrieldemarmiesse
committed
Jun 17, 2018
1 parent
f1815e7
commit 0333761
Showing
2 changed files
with
14 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from __future__ import print_function | ||
|
||
cdef class Shrubbery: | ||
cdef int width, height | ||
|
||
def __init__(self, w, h): | ||
self.width = w | ||
self.height = h | ||
|
||
def describe(self): | ||
print("This shrubbery is", self.width, | ||
"by", self.height, "cubits.") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters