Name

first

Synopsis

                        b.first( )

Sets b’s current record to the first record, and returns a pair ( key,value ) for the first record. The order of records is arbitrary, except for BTree objects, which ensure records are sorted in alphabetical order of their keys. b .first( ) raises KeyError if b is empty.

Get Python in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.