[Tutor] Collating date data from a csv file
boB Stepp
robertvstepp at gmail.com
Wed May 8 23:46:13 EDT 2019
On Wed, May 8, 2019 at 10:29 PM boB Stepp <robertvstepp at gmail.com> wrote:
>
> On Wed, May 8, 2019 at 10:09 PM Cameron Simpson <cs at cskk.id.au> wrote:
> >
> > A defaultdict is a dict which magicly makes missing elements when they
> > get access, using a factory function you supply. Here we're using "int"
> > as that factory, as int() returns zero.
>
> Is int() guaranteed to always return zero as Python versions progress?
> More importantly, perhaps, where would I go to look to find the
> answer to this question myself?
It must be time to go to bed! Somehow my eyes missed the int() return
behavior at https://docs.python.org/3/library/functions.html#int my
first time through. Sorry for the noise!
> boB
--
boB
More information about the Tutor
mailing list