mirror of
https://github.com/python/cpython.git
synced 2025-11-27 05:44:16 +00:00
Make merging easier by formattng comment blocks the same in Py3.1
This commit is contained in:
parent
562a4ada56
commit
ae3f068fb5
1 changed files with 5 additions and 3 deletions
|
|
@ -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):
|
||||||
|
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
### 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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue