Lelzin λ

Results 15 issues of Lelzin λ

> “Você sente orgulho do código que você produz?” - [PEP 20 - The Zen do Python ](https://peps.python.org/pep-0020) O Zen do Python Caso não haja tempo de interpretação indico o...

Seria muito interessante uma live escrevendo um servidor e um cliente em socket e utilizando selectors.. Apesar de existir [Live de Python #66 - Sockets - Com Rafael Matsuyama](https://www.youtube.com/watch?v=5fFTk5Dc1VM), acho...

**AND, && (E)** Verdadeiro se as duas entradas forem verdadeiras, caso contrário falso. ```py3 1 and 1 # 1 0 and 1 # 0 1 and 0 # 0 0...

- **Poetry version**: Poetry (version 1.7.1) - **Python version**: ``` Poetry Version: 1.7.1 Python: 3.11.6 Virtualenv Python: 3.11.4 Implementation: CPython Path: /home/lelzin/Área de trabalho/Doky/.venv Executable: /home/lelzin/Área de trabalho/Doky/.venv/bin/python Valid: True...

kind/bug
status/triage

Muito tempo atrás assisti ao vídeo chamado [Selenium com Python palestra - Conhecendo XPATH com Renne Rocha](https://www.youtube.com/watch?v=vuLNc2yCNYk), e com ele conheci o XPATH pela primeira vez, coisa mais linda que...

# Bug When defining fields with a `default` parameter, the `model_validate_doc` function works as it should, but when using `default_factory` the function treats it as a mandatory field. ### Current...

bug

# Bug The bug happens using pydantic's `model_validator`, when trying to modify one of the model's attributes, but works normally with pydantic's BaseModel. ``` AttributeError: 'Person' object has no attribute...

bug

# Feature request ### Context I don't want to waste database space writing empty data. ### Solution Adding `exclude_none` paramater to `model_dump_doc` would solve the problem.

enhancement

This PR closes #504 issue. Model example: ```python from odmantic import Field, Model, EmbeddedModel from typing import Optional class Mother(EmbeddedModel): name: Optional[str] = None class Person(Model): name: Optional[str] = None...