Hello! For example I have variable p in sage notebook. I need my class can find out the name of variable:
sage: p = 3
sage: my_class(p)
ans: 'p'
How to implement this feature? Thanks.
| 1 | initial version |
Hello! For example I have variable p in sage notebook. I need my class can find out the name of variable:
sage: p = 3
sage: my_class(p)
ans: 'p'
How to implement this feature? Thanks.
| 2 | No.2 Revision |
Hello! For example I have variable p in sage notebook. I need my class can find out the name of variable:
sage: p = 3
sage: my_class(p)
ans: 'p'
How to implement this feature? Thanks.Thanks.
P.S.: sorry if my english isn't good.
| 3 | retagged |
Hello! For example I have variable p in sage notebook. I need my class can find out the name of variable:
sage: p = 3
sage: my_class(p)
ans: 'p'
How to implement this feature? Thanks. P.S.: sorry if my english isn't good.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.