Advertisement
Fhernd

mejora_rendimiento_instanciacion.py

Dec 7th, 2018
1,705
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. class Fecha:
  2.     __slots__ = ['aghnio', 'mes', 'dia']
  3.    
  4.     def __init__(self, aghnio, mes, dia):
  5.         self.aghnio = aghnio
  6.         self.mes = mes
  7.         self.dia = dia
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement