Kaydet (Commit) ae3f068f authored tarafından Raymond Hettinger's avatar Raymond Hettinger

Make merging easier by formattng comment blocks the same in Py3.1

üst 562a4ada
...@@ -12,8 +12,9 @@ import sys as _sys ...@@ -12,8 +12,9 @@ import sys as _sys
import heapq as _heapq import heapq as _heapq
from itertools import repeat as _repeat, chain as _chain, starmap as _starmap, ifilter as _ifilter from itertools import repeat as _repeat, chain as _chain, starmap as _starmap, ifilter as _ifilter
######################################################################## ################################################################################
### namedtuple ####################################################### ### namedtuple
################################################################################
def namedtuple(typename, field_names, verbose=False): def namedtuple(typename, field_names, verbose=False):
"""Returns a new subclass of tuple with named fields. """Returns a new subclass of tuple with named fields.
...@@ -114,7 +115,8 @@ def namedtuple(typename, field_names, verbose=False): ...@@ -114,7 +115,8 @@ def namedtuple(typename, field_names, verbose=False):
######################################################################## ########################################################################
### Counter ########################################################## ### Counter
########################################################################
class Counter(dict): class Counter(dict):
'''Dict subclass for counting hashable items. Sometimes called a bag '''Dict subclass for counting hashable items. Sometimes called a bag
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment