[ python-Bugs-1010239 ] Add strings module
noreply at pgfoundry.org
noreply at pgfoundry.org
Mon Jan 28 02:44:13 UTC 2008
Bugs item #1010239, was opened at 2008-01-15 20:52
You can respond by visiting:
http://pgfoundry.org/tracker/?func=detail&atid=442&aid=1010239&group_id=1000094
Category: lo/foundation
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 3
Submitted By: James Pye (jwp)
Assigned to: James Pye (jwp)
Summary: Add strings module
Initial Comment:
Add a strings module to foundation.
This module will provide split routines for working with SQL identifiers and SQL literals. Join routines for common SQL serializations.
----------------------------------------------------------------------
>Comment By: James Pye (jwp)
Date: 2008-01-27 19:44
Message:
Done and checked into head.
----------------------------------------------------------------------
Comment By: James Pye (jwp)
Date: 2008-01-27 14:46
Message:
Some simple functions are finished on this. split_qname works and has tests written for it.
The primary split function provides a simple way to segregate quoted sections from non-quoted sections:
split("select 'foo'") -> ['select ', ("'", 'foo'), '']
With the trailing empty string indicating that the quoted section was terminated properly.
----------------------------------------------------------------------
You can respond by visiting:
http://pgfoundry.org/tracker/?func=detail&atid=442&aid=1010239&group_id=1000094
More information about the Python-general
mailing list