[docs] Question mark in grammar notation

Georg Brandl georg at python.org
Sun Jun 27 12:48:09 CEST 2010


-----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-----


More information about the docs mailing list