class_docstr: Wrapper of ``pandas_market_calendars`` for a trading calendar. The package
  ``pandas_market_calendar`` must be installed
  
  Params:
  
    - ``calendar`` (default ``None``)
  
      The param ``calendar`` accepts the following:
  
      - string: the name of one of the calendars supported, for example
        `NYSE`. The wrapper will attempt to get a calendar instance
  
      - calendar instance: as returned by ``get_calendar('NYSE')``
  
    - ``cachesize`` (default ``365``)
  
      Number of days to cache in advance for lookup
  
  See also:
  
    - https://github.com/rsheftel/pandas_market_calendars
  
    - http://pandas-market-calendars.readthedocs.io/
class_docstr_tok: ["Wrapper","of","``","pandas_market_calendars","``","for","a","trading","calendar",".","The","package","``","pandas_market_calendar","``","must","be","installed","Params",":","-","``","calendar","``","(","default","``","None","``",")","The","param","``","calendar","``","accepts","the","following",":","-","string",":","the","name","of","one","of","the","calendars","supported",",","for","example","`","NYSE","`",".","The","wrapper","will","attempt","to","get","a","calendar","instance","-","calendar","instance",":","as","returned","by","``","get_calendar","(","'NYSE","'",")","``","-","``","cachesize","``","(","default","``","365","``",")","Number","of","days","to","cache","in","advance","for","lookup","See","also",":","-","https",":","\/\/github.com\/rsheftel\/pandas_market_calendars","-","http",":","\/\/pandas-market-calendars.readthedocs.io\/"]
docstr: Returns the next trading day (datetime/date instance) after ``day``
  (datetime/date instance) and the isocalendar components
  
  The return value is a tuple with 2 components: (nextday, (y, w, d))
docstr_tok: ["Returns","the","next","trading","day","(","datetime\/date","instance",")","after","``","day","``","(","datetime\/date","instance",")","and","the","isocalendar","components","The","return","value","is","a","tuple","with","2","components",":","(","nextday",",","(","y",",","w",",","d",")",")"]
code: def _nextday(self, day):
      """
      Returns the next trading day (datetime/date instance) after ``day``
      (datetime/date instance) and the isocalendar components
  
      The return value is a tuple with 2 components: (nextday, (y, w, d))
      """
      day += ONEDAY
      while True:
          i = self.dcache.searchsorted(day)
          if i == len(self.dcache):
              # keep a cache of 1 year to speed up searching
              self.dcache = self._calendar.valid_days(
                  day, day + self.csize
              )
              continue
  
          d = self.dcache[i].to_pydatetime()
          return d, d.isocalendar()
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  from datetime import datetime, timedelta, time
  from .metabase import MetaParams
  from backtrader.utils.py3 import string_types, with_metaclass
  from backtrader.utils import UTC
label_desc: Use image node_id 2 for calling the PandasMarketCalendar obj's underlying member method code with example usage: obj._nextday(day) and returns: d,  d