Serializacion Flashcards

1
Q

Pickle

A

Permite serializar y deserializar objetos

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Riesgo de uso de pickle

A

No es seguro para datos De Fuentes no confiables

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Como se serializa en pickle

A

pickle.dumps(obj) pickle.dump(obj, file)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Como se deserializa en pickle

A

pickle.loads(data)
pickle.load(file)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

JSON

A

permite serializar y deserializar objetos más básicos, opción mas segura y universal

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

serializacion con json

A

json.dumps(obj)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

deserializacion con json

A

json.loads(data)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Codificación de bytes

A

str.encode()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Decodificación de Bytes

A

bytes.decode() convierte bytes en cadenas

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly