Dear Admin, In http://docs.python.org/py3k/library/string.html#format-string-syntax a question mark is used at the definition of the grammar for a replacement field: arg_name ::= (identifier | integer)? However, it is not defined in http://docs.python.org/py3k/reference/introduction.html#notation Would it be the same as arg_name ::= [identifier | integer] ? Thank you for your attention, Thomas Oliveira
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 24.06.2010 04:04, schrieb Thomas Oliveira:
Dear Admin,
In http://docs.python.org/py3k/library/string.html#format-string-syntax a question mark is used at the definition of the grammar for a replacement field:
arg_name ::= (identifier | integer)?
However, it is not defined in http://docs.python.org/py3k/reference/introduction.html#notation
Would it be the same as arg_name ::= [identifier | integer] ?
Yes, you are right; the latter should be used. I've fixed that now. thanks, Georg -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (GNU/Linux) iEYEARECAAYFAkwnLGkACgkQN9GcIYhpnLABmQCcD+T6I7GVpE5JCmmks+yCgBAU SNIAoJjt5ByeCWuOPdG8GDw5XVoDpPSH =N9hn -----END PGP SIGNATURE-----
participants (2)
-
Georg Brandl -
Thomas Oliveira