[Python-checkins] python/nondist/peps pep-0305.txt,1.11,1.12

montanaro@users.sourceforge.net montanaro@users.sourceforge.net
Sun, 02 Feb 2003 18:25:28 -0800


Update of /cvsroot/python/python/nondist/peps
In directory sc8-pr-cvs1:/tmp/cvs-serv22612

Modified Files:
	pep-0305.txt 
Log Message:
set_dialect is the wrong name.  It conveys the notion of a single dialect.
register_dialect is better.


Index: pep-0305.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep-0305.txt,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** pep-0305.txt	3 Feb 2003 02:07:37 -0000	1.11
--- pep-0305.txt	3 Feb 2003 02:25:26 -0000	1.12
***************
*** 170,174 ****
  Three functions are defined in the API to set, get and list dialects::
  
!     set_dialect(name, dialect)
      dialect = get_dialect(name)
      known_dialects = list_dialects()
--- 170,174 ----
  Three functions are defined in the API to set, get and list dialects::
  
!     register_dialect(name, dialect)
      dialect = get_dialect(name)
      known_dialects = list_dialects()
***************
*** 177,181 ****
  formatting parameters defined in the next section.  The
  list_dialects() function returns all the registered dialect names as
! given in previous set_dialect() calls (both predefined and
  user-defined).
  
--- 177,181 ----
  formatting parameters defined in the next section.  The
  list_dialects() function returns all the registered dialect names as
! given in previous register_dialect() calls (both predefined and
  user-defined).
  
***************
*** 187,191 ****
  formatting parameters, specified as keyword parameters.  The
  parameters are also the keys for the input and output mapping objects
! for the set_dialect() and get_dialect() module functions.
  
  - ``quotechar`` specifies a one-character string to use as the quoting
--- 187,191 ----
  formatting parameters, specified as keyword parameters.  The
  parameters are also the keys for the input and output mapping objects
! for the register_dialect() and get_dialect() module functions.
  
  - ``quotechar`` specifies a one-character string to use as the quoting