wangxiaolei

Results 114 comments of wangxiaolei

for mysql driver,if `InterpolateParams` is false, it will return `driver.ErrSkip`. sqlhooks `onError` callback can ignore it. Then `onError` callback return this err, the golang `sql` package can handle it, do...

i am not sure why i run `./python Lib/test/test_funcattrs.py`: `test__builtins__` failed

> I mean `System.Exit(1)` not panic. As second picture that you attatched, `FatalLevel` should calls `logger.Exit(1)` I have check the code,this is a [demo](https://goplay.tools/snippet/wWIW2R-NrMO),work as expect.

i read the code - call `entry.Fatal` this function will call `entry.logger.Exit` - call `entry.Log`, this function only panic when `level

When call `model.json` or `model.dict` without `include` params, it using `self.__include_fields__` and `origin fields` to calculate final export keys. ```python class Org(BaseModel): id: int users: list[OrgUser] = Field(include={"__all__": {"first_name", "phone"}})...

@samuelcolvin i suggest a little fix: https://github.com/pydantic/pydantic/blob/1a5b56e1b2020fd74800064d038becf614d64a61/pydantic/main.py#L897 change ``` keys &= include.keys() ``` to ``` keys |= include.keys() ```

Please post some example code working on the Go Playground. Here is [a template](https://go.dev/play/p/CKPijIE9iYe).