On Sat, Jun 8, 2024 at 10:39 AM Mats Wichmann via Python-list <
python-list@python.org> wrote:
> On 6/5/24 05:10, Thomas Passin via Python-list wrote:
>
> > Of course, we see this lack of clarity all the time in questions to the
> > list. I often wonder how these askers can possibly come up with
model that uses an enum model:
class Config:
use_enum_values = True
> > On Tue, May 28, 2024 at 2:50 PM Larry Martell via Python-list
> > wrote:
> > >
> > > Just getting started with pydantic. I have this example code:
> > >
> > > class FinishRe
Yeah, I know I can do this, but I seem to recall reading that pydantic
handled serialization. Guess not.
> On Tue, May 28, 2024 at 2:50 PM Larry Martell via Python-list
> wrote:
> >
> > Just getting started with pydantic. I have this example code:
> >
> > class
Just getting started with pydantic. I have this example code:
class FinishReason(Enum):
stop = 'stop'
class Choice(BaseModel):
finish_reason: FinishReason = Field(...)
But I cannot serialize this:
json.dumps(Choice(finish_reason=FinishReason.stop).dict())
*** TypeError: Object of type
LOn Fri, May 17, 2024 at 8:57 PM Larry Martell
wrote:
> I’m at PyCon in Pittsburgh and I’m haven’t an amazing time!
s/haven’t/having/
--
https://mail.python.org/mailman/listinfo/python-list
I’m at PyCon in Pittsburgh and I’m haven’t an amazing time!
--
https://mail.python.org/mailman/listinfo/python-list
On Wed, May 15, 2024 at 2:43 PM Popov, Dmitry Yu via Python-list
wrote:
>
> What would be the easiest way to learn which version of NumPy I have with my
> Anaconda distribution?
>>> import numpy
>>> numpy.__version__
'1.24.4'
--
https://mail.python.org/mailman/listinfo/python-list
On Tue, Jan 30, 2024 at 1:13 AM AVI GROSS via Python-list
wrote:
>
> It can be quite frustrating figuring out what someone wants, Grant,
> especially when they just change it.
>
> It is worse when instead of starting a new thread with an appropriate
> subject line, it continues and old one that wa
On Sat, Oct 21, 2023 at 12:10 PM Johannes Findeisen wrote:
>
> On Sat, 21 Oct 2023 11:32:03 -0400
> Larry Martell wrote:
>
> > On Sat, Oct 21, 2023 at 9:49 AM Johannes Findeisen
> > wrote:
> > >
> > > On Sat, 21 Oct 2023 09:01:18 -0400
> > > La
On Sat, Oct 21, 2023 at 9:49 AM Johannes Findeisen wrote:
>
> On Sat, 21 Oct 2023 09:01:18 -0400
> Larry Martell via Python-list wrote:
>
> > I have a python script, and from that I want to run another script in
> > a subprocess in a venv. What is the best way to do t
I have a python script, and from that I want to run another script in
a subprocess in a venv. What is the best way to do that? I could write
a file that activates the venv then runs the script, then run that
file, but that seems messy. Is there a better way?
--
https://mail.python.org/mailman/list
On Wed, Sep 27, 2023 at 12:53 PM Niktar Lirik wrote:
>
> Hi Larry,
>
> You could just create venv with option '—copies'
>
>
>
> For example:
>
> python -m venv -–copies .venv
Thanks! That is just what I was looking for.
> From: Larry Martell via Py
On Wed, Sep 27, 2023 at 12:42 PM Jon Ribbens via Python-list
wrote:
>
> On 2023-09-27, Larry Martell wrote:
> > I was under the impression that in a venv the python used would be in
> > the venv's bin dir. But in my venvs I see this in the bin dirs:
> >
> > lrwxrwxrwx 1 larrymartell larrymartell
I was under the impression that in a venv the python used would be in
the venv's bin dir. But in my venvs I see this in the bin dirs:
lrwxrwxrwx 1 larrymartell larrymartell7 Sep 27 11:21 python -> python3
lrwxrwxrwx 1 larrymartell larrymartell 16 Sep 27 11:21 python3 ->
/usr/bin/python3
Goo
On Thu, Aug 31, 2023 at 3:19 PM Chris Green via Python-list
wrote:
>
> I'm obviously doing something very silly here but at the moment I
> can't see what.
>
> Here's the code:-
>
> #!/usr/bin/python3
> #
> #
> # GPIO
> #
> import gpiod
> #
> #
> # Simple wrapper
On Fri, Jul 21, 2023 at 11:08 AM Larry Martell wrote:
>
> I am trying to set up and maintain a venv with pip-sync. On my bare
> metal I have the apparmor python package installed, but it is not
> installed in my venv and it's not in my requirements file. When I run
> pip-sync I get:
>
> Found exis
I am trying to set up and maintain a venv with pip-sync. On my bare
metal I have the apparmor python package installed, but it is not
installed in my venv and it's not in my requirements file. When I run
pip-sync I get:
Found existing installation: apparmor 2.13.3
ERROR: Cannot uninstall 'apparmor
17 matches
Mail list logo