Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module « matplotlib.animation »

Classe « BytesIO »

Informations générales

Héritage

builtins.object
    _IOBase
        _BufferedIOBase
            BytesIO

Définition

class BytesIO(_BufferedIOBase):

Description [extrait de BytesIO.__doc__]

Buffered I/O implementation using an in-memory bytes buffer.

Constructeur(s)

Signature du constructeur Description
__new__(*args, **kwargs) Create and return a new object. See help(type) for accurate signature. [extrait de __new__.__doc__]
__init__(self, /, *args, **kwargs) Initialize self. See help(type(self)) for accurate signature. [extrait de __init__.__doc__]

Liste des attributs statiques

Nom de l'attribut Valeur
closed<attribute 'closed' of '_io.BytesIO' objects>

Liste des opérateurs

Opérateurs hérités de la classe object

__eq__, __ge__, __gt__, __le__, __lt__, __ne__

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes dépréciées
Signature de la méthodeDescription
__getstate__
__iter__(self) Implement iter(self). [extrait de __iter__.__doc__]
__next__(self) Implement next(self). [extrait de __next__.__doc__]
__setstate__
__sizeof__
close(self) Disable all I/O operations. [extrait de close.__doc__]
flush(self) Does nothing. [extrait de flush.__doc__]
getbuffer(self) Get a read-write view over the contents of the BytesIO object. [extrait de getbuffer.__doc__]
getvalue(self) Retrieve the entire contents of the BytesIO object. [extrait de getvalue.__doc__]
isatty(self) Always returns False. [extrait de isatty.__doc__]
read(self, size=-1) Read at most size bytes, returned as a bytes object. [extrait de read.__doc__]
read1(self, size=-1) Read at most size bytes, returned as a bytes object. [extrait de read1.__doc__]
readable(self) Returns True if the IO object can be read. [extrait de readable.__doc__]
readinto(self, buffer) Read bytes into buffer. [extrait de readinto.__doc__]
readline(self, size=-1) Next line from the file, as a bytes object. [extrait de readline.__doc__]
readlines(self, size=None) List of bytes objects, each a line from the file. [extrait de readlines.__doc__]
seek(self, pos, whence=0) Change stream position. [extrait de seek.__doc__]
seekable(self) Returns True if the IO object can be seeked. [extrait de seekable.__doc__]
tell(self) Current file position, an integer. [extrait de tell.__doc__]
truncate(self, size=None) Truncate the file to at most size bytes. [extrait de truncate.__doc__]
writable(self) Returns True if the IO object can be written. [extrait de writable.__doc__]
write(self, b) Write bytes to file. [extrait de write.__doc__]
writelines(self, lines) Write lines to the file. [extrait de writelines.__doc__]

Méthodes héritées de la classe _BufferedIOBase

__init_subclass__, __subclasshook__, detach, readinto1

Méthodes héritées de la classe _IOBase

__del__, __enter__, __exit__, fileno

Méthodes héritées de la classe object

__delattr__, __dir__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__