Changeset 3789:1f440490d2ed in livinglogic.python.xist

Show
Ignore:
Timestamp:
06/09/09 17:32:11 (10 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Document addition of misc.itersplitat(). Reformat misc.itersplitat docstring.

Files:
2 modified

Legend:

Unmodified
Added
Removed
  • NEWS.rst

    r3787 r3789  
    4646*   Fixed a bug in the remote :meth:`stat` method for ssh URLs (it seems that 
    4747    the :class:`posix.stat_result` tuple objects can no longer be pickled). 
     48 
     49*   There's a new function :func:`misc.itersplitat` for splitting a string at 
     50    specified positions. 
    4851 
    4952 
  • src/ll/misc.py

    r3788 r3789  
    430430    Split :var:`string` at the positions specified in :var:`positions`. 
    431431 
    432     This is a generator. For example:: 
     432    For example:: 
    433433 
    434434        >>> from ll import misc 
     
    436436        >>> datetime.datetime(*map(int, misc.itersplitat("20090609172345", (4, 6, 8, 10, 12)))) 
    437437        datetime.datetime(2009, 6, 9, 17, 23, 45) 
     438 
     439    This is a generator. 
    438440    """ 
    439441    curpos = 0