Attributes[symbol]
gives the list of attributes for a symbol.
Attributes["symbol"]
gives the attributes for the symbol named"symbol" if it exists.
Attributes[{s1,s2,…}]
gives a list of the attributes for each of thesi.


Attributes
Attributes[symbol]
gives the list of attributes for a symbol.
Attributes["symbol"]
gives the attributes for the symbol named"symbol" if it exists.
Attributes[{s1,s2,…}]
gives a list of the attributes for each of thesi.
Details


- The attributes of a symbol can be set by assigning a value toAttributes[s]. If a single attribute is assigned, it need not be in a list.
- Attributes[s]={} clears all attributes of a symbol.
- Attributes for functions must be set before any definitions that involve the functions are given.
- The complete list of possible attributes for a symbolf is:
Constant all derivatives off are zero Flat f is associative HoldAll all the arguments off are not evaluated HoldAllComplete the arguments off are completely shielded from evaluation HoldFirst the first argument off is not evaluated HoldRest all but the first argument off are not evaluated Listable f is automatically "threaded" over lists Locked attributes off cannot be changed NHoldAll the arguments off are not affected byN NHoldFirst the first argument off is not affected byN NHoldRest all but the first argument off are not affected byN NumericFunction the value off is assumed to be a number when its arguments are numbers OneIdentity f[a],f[f[a]], etc. are equivalent toa in pattern matching Orderless f is commutative Protected values off cannot be changed ReadProtected values off cannot be read SequenceHold Sequence objects in the arguments off are not flattened out Stub Needs is automatically called if the symbol is ever input Temporary f is a local variable, removed when no longer used - Attributes has attributesListable andHoldAll.
Examples
open allclose allScope (1)
Properties & Relations (4)
Add a single attribute to the symbolsf andg:
SetAttributes adds to the already existing attributes;Attributes[g]=… resets them:
An assignment toAttributes is associated withf, not withAttributes:
Protecting a symbol is equivalent to setting theProtected attribute:
Attributes has the attributeHoldAll:
Related Guides
History
Introduced in 1988(1.0) |Updated in 1996(3.0)
Text
Wolfram Research (1988), Attributes, Wolfram Language function, https://reference.wolfram.com/language/ref/Attributes.html (updated 1996).
CMS
Wolfram Language. 1988. "Attributes." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 1996. https://reference.wolfram.com/language/ref/Attributes.html.
APA
Wolfram Language. (1988). Attributes. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Attributes.html
BibTeX
@misc{reference.wolfram_2025_attributes, author="Wolfram Research", title="{Attributes}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/Attributes.html}", note=[Accessed: 29-November-2025]}
BibLaTeX
@online{reference.wolfram_2025_attributes, organization={Wolfram Research}, title={Attributes}, year={1996}, url={https://reference.wolfram.com/language/ref/Attributes.html}, note=[Accessed: 29-November-2025]}
[8]ページ先頭