Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #68572 > unrolled thread
| Started by | muru kessan <murukessanap@gmail.com> |
|---|---|
| First post | 2014-03-20 14:49 +0530 |
| Last post | 2014-03-20 14:49 +0530 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
Decorator muru kessan <murukessanap@gmail.com> - 2014-03-20 14:49 +0530
| From | muru kessan <murukessanap@gmail.com> |
|---|---|
| Date | 2014-03-20 14:49 +0530 |
| Subject | Decorator |
| Message-ID | <mailman.8293.1395308236.18130.python-list@python.org> |
[Multipart message — attachments visible in raw view] — view raw
Hi guys,
Is there a difference between accessing decorators via '@' symbol and
hard coding that ? esp when the function passed to the decorator is a
recursive one?
See attachments
result from deco_with@ is
1 1 0 1 1 0 1 1 0
result from deco_without@ is
1 1 2 3 5 8 13 21 34
1 1 0 3 5 0 13 21 0
Thanks ,
muru
Back to top | Article view | comp.lang.python
csiph-web