Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Created June 27, 2018 23:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fhernd/7bed6848887e6e823d038f139aa3808e to your computer and use it in GitHub Desktop.
Save Fhernd/7bed6848887e6e823d038f139aa3808e to your computer and use it in GitHub Desktop.
Iteración indeterminada (infinita) con la función iter(). OrtizOL.
PARTICIONAMIENTO = 8192
def leerDatos(entrada):
for parte in iter(lambda: s.recv(PARTICIONAMIENTO), b''):
pass
# realizar procesamiento con los datos leídos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment