Hello, Is it possible in python access name of variable? I want to convert the name of the variable to the string, not the value of variable to the string.
For example for item inclass Aref: List.append( str(name_of _item) ) i want 'Rfirstauthor' to be inserted in List[0], not the value of variable Rfirstauthor = 'John Smith' models.py class Aref(models.Model): Rfirstauthor=models.CharField(max_length=500, blank=True, default='') ..... thanks, gintare -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.