Package nflgame :: Module game :: Class TeamStats
[frames] | no frames]

Class TeamStats

source code

object --+    
         |    
     tuple --+
             |
            TeamStats

TeamStats(first_downs, total_yds, passing_yds, rushing_yds, penalty_cnt, penalty_yds, turnovers, punt_cnt, punt_yds, punt_avg, pos_time)

Instance Methods
 
__getnewargs__(self)
Return self as a plain tuple.
source code
 
__repr__(self)
Return a nicely formatted representation string
source code

Inherited from tuple: __add__, __contains__, __eq__, __ge__, __getattribute__, __getitem__, __getslice__, __gt__, __hash__, __iter__, __le__, __len__, __lt__, __mul__, __ne__, __rmul__, __sizeof__, count, index

Inherited from object: __delattr__, __format__, __init__, __reduce__, __reduce_ex__, __setattr__, __str__, __subclasshook__

Static Methods
a new object with type S, a subtype of T
__new__(_cls, first_downs, total_yds, passing_yds, rushing_yds, penalty_cnt, penalty_yds, turnovers, punt_cnt, punt_yds, punt_avg, pos_time)
Create new instance of TeamStats(first_downs, total_yds, passing_yds, rushing_yds, penalty_cnt, penalty_yds, turnovers, punt_cnt, punt_yds, punt_avg, pos_time)
source code
Properties
  first_downs
Alias for field number 0
  passing_yds
Alias for field number 2
  penalty_cnt
Alias for field number 4
  penalty_yds
Alias for field number 5
  pos_time
Alias for field number 10
  punt_avg
Alias for field number 9
  punt_cnt
Alias for field number 7
  punt_yds
Alias for field number 8
  rushing_yds
Alias for field number 3
  total_yds
Alias for field number 1
  turnovers
Alias for field number 6

Inherited from object: __class__

Method Details

__getnewargs__(self)

source code 

Return self as a plain tuple. Used by copy and pickle.

Overrides: tuple.__getnewargs__

__new__(_cls, first_downs, total_yds, passing_yds, rushing_yds, penalty_cnt, penalty_yds, turnovers, punt_cnt, punt_yds, punt_avg, pos_time)
Static Method

source code 

Create new instance of TeamStats(first_downs, total_yds, passing_yds, rushing_yds, penalty_cnt, penalty_yds, turnovers, punt_cnt, punt_yds, punt_avg, pos_time)

Returns: a new object with type S, a subtype of T
Overrides: object.__new__

__repr__(self)
(Representation operator)

source code 

Return a nicely formatted representation string

Overrides: object.__repr__

Property Details

first_downs

Alias for field number 0

Get Method:
<operator.itemgetter object at 0x174ff50>

passing_yds

Alias for field number 2

Get Method:
<operator.itemgetter object at 0x174ffd0>

penalty_cnt

Alias for field number 4

Get Method:
<operator.itemgetter object at 0x18e3090>

penalty_yds

Alias for field number 5

Get Method:
<operator.itemgetter object at 0x18e30d0>

pos_time

Alias for field number 10

Get Method:
<operator.itemgetter object at 0x18e3210>

punt_avg

Alias for field number 9

Get Method:
<operator.itemgetter object at 0x18e31d0>

punt_cnt

Alias for field number 7

Get Method:
<operator.itemgetter object at 0x18e3150>

punt_yds

Alias for field number 8

Get Method:
<operator.itemgetter object at 0x18e3190>

rushing_yds

Alias for field number 3

Get Method:
<operator.itemgetter object at 0x18e3050>

total_yds

Alias for field number 1

Get Method:
<operator.itemgetter object at 0x174ff90>

turnovers

Alias for field number 6

Get Method:
<operator.itemgetter object at 0x18e3110>