# HG changeset patch
# User William Stein <wstein@gmail.com>
# Date 1200673022 28800
# Node ID ed92b4e4e4ea6f35cd7fa529c5a242df3cf4b373
# Parent a0816545261f870771bfe8f09c719dfc4925c6e2
trac #1718 -- bug in number_of_arguments for constants
diff -r a0816545261f -r ed92b4e4e4ea sage/functions/constants.py
a
|
b
|
class Constant(Function): |
260 | 260 | def __init__(self, conversions={}, parent=sage.calculus.calculus.SR): |
261 | 261 | self._conversions = conversions |
262 | 262 | RingElement.__init__(self, parent) |
| 263 | |
| 264 | def number_of_arguments(self): |
| 265 | """ |
| 266 | Returns the number of arguments of this constant, viewed as a function. |
| 267 | This is of course always 0. |
| 268 | |
| 269 | EXAMPLES: |
| 270 | sage: pi.number_of_arguments() |
| 271 | 0 |
| 272 | """ |
| 273 | return 0 |
263 | 274 | |
264 | 275 | # The maxima one is special: |
265 | 276 | def _maxima_(self, session=None): |