n application-specific configuration directory).
Or an .ini file with two sections (although I don't think you can re-use
key-names in a single ini file)
--
|_|O|_|
|_|_|O| Github: https://github.com/dpurgert
|O|O|O| PGP: DDAB 23FB 19FA 7D85 1CC1 E067 6D65 70E5 4CE7 2860
--
https://mail.python.org/mailman/listinfo/python-list
On 12/6/2023 6:35 AM, Barry Scott via Python-list wrote:
On 6 Dec 2023, at 09:32, Chris Green via Python-list
wrote:
My requirement is *slightly* more complex than just key value pairs,
it has one level of hierarchy, e.g.:-
KEY1:
a: v1
c: v3
d: v4
KEY2:
a
On 12/6/2023 1:12 PM, MRAB via Python-list wrote:
On 2023-12-06 12:23, Thomas Passin via Python-list wrote:
On 12/6/2023 6:35 AM, Barry Scott via Python-list wrote:
On 6 Dec 2023, at 09:32, Chris Green via Python-list
wrote:
My requirement is *slightly* more complex than just key value
you-enjoy-the-new-releases-7>We
hope you enjoy the new releases!
Thanks to all of the many volunteers who help make Python Development and
these releases possible! Please consider supporting our efforts by
volunteering yourself or through organization contributions to the Python
Software Foundation <https://www.python.org/psf-landing/>.
Your release team,
Thomas Wouters
Ned Deily
Steve Dower
Łukasz Langa
--
Thomas Wouters
--
https://mail.python.org/mailman/listinfo/python-list
er valid sensor test strip Reading.")
I converted the variable to int along with the if statement comparison and it
works as expected.
See if it fails for you...
Steve
--
https://mail.python.org/mailman/listinfo/python-list
user can enter any text, they might enter ".01" or "hello" or al kinds of
nonsense.
If you converted to numbers and tested whether it failed, ...
-Original Message-
From: Python-list On
Behalf Of Steve GS via Python-list
Sent: Saturday, December 9, 2023 9:42 PM
To: pyth
On 12/9/2023 9:42 PM, Steve GS via Python-list wrote:
If I enter a one-digit input or a three-digit number, the code works but if I
enter a two digit number, the if statement fails and the else condition
prevails.
tsReading = input(" Enter the " + Brand + " tes
;:0, 'name':'BowProp Volts'}
It's effectively a 'table' with columns named 'dev', 'input' and
'name' and I want to access the values of the table using the variable
name.
I could, obviously, store the data in a database (sqlite), I have some
similar data in a database already but the above sort of format in
Python source is more human readable and accessible. I'm just looking
for a less laborious way of entering it really.
--
Chris Green
·
--
https://mail.python.org/mailman/listinfo/python-list
', 'dev':'bbb', 'input':'0', 'name':'Starter volts'},
{'abbr':'la', 'dev':'bbb', 'input':'2', 'name':'Leisure Amps'},
{'abbr':'sa', 'dev':'bbb', 'input':'3', 'name':'Starter Amps'},
{'abbr':'bv', 'dev':'adc2', 'input':0, 'name':'BowProp Volts'}
]
This pickles nicely, I just want an easy way to enter the data!
> I could, obviously, store the data in a database (sqlite), I have some
> similar data in a database already but the above sort of format in
> Python source is more human readable and accessible. I'm just looking
> for a less laborious way of entering it really.
>
--
Chris Green
·
--
https://mail.python.org/mailman/listinfo/python-list
On 2023-12-11, Chris Green via Python-list wrote:
> Is there a way to abbreviate the following code somehow?
>
> lv = {'dev':'bbb', 'input':'1', 'name':'Leisure volts'}
> sv = {'dev':'bbb',
#x27;input':'1', 'name':'Leisure volts'},
> {'abbr':'sv', 'dev':'bbb', 'input':'0', 'name':'Starter volts'},
> {'abbr':'la', 'dev':'bbb', 'input':'2', 'name':'Leisure Amps'},
> {'abbr':'sa', 'dev':'bbb', 'input':'3', 'name':'Starter Amps'},
> {'abbr':'bv', 'dev':'adc2', 'input':0, 'name':'BowProp Volts'}
> ]
>
> This pickles nicely, I just want an easy way to enter the data!
adccfg = [
dict(zip(('abbr', 'dev', 'input', 'name'), row))
for row in (
('lv', 'bbb', '1', 'Leisure volts'),
('sv', 'bbb', '0', 'Starter volts'),
('la', 'bbb', '2', 'Leisure Amps'),
('sa', 'bbb', '3', 'Starter Amps'),
('bv', 'adc2', 0, 'BowProp Volts'),
)
]
--
https://mail.python.org/mailman/listinfo/python-list
', 'name':'Starter volts'},
> > {'abbr':'la', 'dev':'bbb', 'input':'2', 'name':'Leisure Amps'},
> > {'abbr':'sa', 'dev':'bbb', 'input':'3', 'name':'Starter Amps'},
> > {'abbr':'bv', 'dev':'adc2', 'input':0, 'name':'BowProp Volts'}
> > ]
> >
> > This pickles nicely, I just want an easy way to enter the data!
>
> adccfg = [
> dict(zip(('abbr', 'dev', 'input', 'name'), row))
> for row in (
> ('lv', 'bbb', '1', 'Leisure volts'),
> ('sv', 'bbb', '0', 'Starter volts'),
> ('la', 'bbb', '2', 'Leisure Amps'),
> ('sa', 'bbb', '3', 'Starter Amps'),
> ('bv', 'adc2', 0, 'BowProp Volts'),
> )
> ]
Neat, I like that, thank you.
--
Chris Green
·
--
https://mail.python.org/mailman/listinfo/python-list
, obviously, store the data in a database (sqlite), I have some
similar data in a database already but the above sort of format in
Python source is more human readable and accessible. I'm just looking
for a less laborious way of entering it really.
Maybe a dict of dicts:
tx = {lv: {'dev':'bbb', 'input':'1', 'name':'Leisure volts'},
sv: {'dev':'bbb', 'input':'0', 'name':'Starter volts'},
...}
Might have one or two advantages.
bye,
--
piergiorgio
--
https://mail.python.org/mailman/listinfo/python-list
now more of a
curiosity as I did use the
integer comparisons.
SGA
-Original Message-
From: Python-list
On
Behalf Of dn via Python-list
Sent: Sunday, December 10,
2023 12:53 AM
To: [email protected]
Subject: Re: A problem with
str VS int.
On 10/12/23 15:42, Steve GS
via Python-list
it every time.
If this is inappropriate to
post this here, please tell me
where to go.
Life should be so
complicated.
--
https://mail.python.org/mailman/listinfo/python-list
Op 12/12/2023 om 9:22 schreef Steve GS via Python-list:
With all these suggestions on
how to fix it, no one seems to
answer why it fails only when
entering a two-digit number.
One and three work fine when
comparing with str values. It
is interesting that the
leading 0 on a two digit
worked
aracter strings to
mean anything unless programmed to examine them a certain way. And often, the
same people cannot sole a simple puzzle like "SEND" + "MORE" == "MONEY"
-Original Message-
From: Python-list On
Behalf Of Roel Schroeven via Python-list
Sent: Tuesda
Hi!
Am Di., 12. Dez. 2023 um 09:28 Uhr schrieb Steve GS via Python-list
:
>
> Maybe this already exists but
> I have never seen it in any
> editor that I have used.
You might want to choose Microsoft Code from its Visual Studio family
of software, or, if you're ready for a dee
On 2023-12-12 08:22, Steve GS via Python-list wrote:
> Maybe this already exists but
> I have never seen it in any
> editor that I have used.
>
> It would be nice to have a
> pull-down text box that lists
> all of the searches I have
> used during this session. It
&g
On 12/12/23 13:50, Thomas Passin via Python-list wrote:
On 2023-12-12 08:22, Steve GS via Python-list wrote:
> Maybe this already exists but
> I have never seen it in any
> editor that I have used.
>
> It would be nice to have a
> pull-down text box that lists
> all o
Does anything from the Visual Studio family of software have a pull down menu
that lists previous searches so that I don’t have to enter them every time?
SGA
-Original Message-
From: Friedrich Romstedt
Sent: Tuesday, December 12, 2023 12:52 PM
To: Steve GS
Cc: [email protected]
'DbParams']). But I would still like
an answer to the original question, as I am sure similar situations will
occur without such a simple solution.
Thanks
Frank Millman
--
https://mail.python.org/mailman/listinfo/python-list
ince I imagine config_database() would accept any kind of mapping
(dicts, etc etc).
Cheers,
Cameron Simpson
--
https://mail.python.org/mailman/listinfo/python-list
feedback using the issue tracker at [3].
Regards,
Vinay Sajip
[1] https://pypi.org/project/distlib/0.3.8/
[2]
https://distlib.readthedocs.io/en/latest/overview.html#change-log-for-distlib
[3] https://github.com/pypa/distlib/issues/new/choose
--
https://mail.python.org/mailman/listinfo/python-list
https://pypi.org/project/python-gnupg/0.5.2
[3] https://github.com/vsajip/python-gnupg/issues
[4] https://github.com/vsajip/python-gnupg/releases/
[5] https://docs.red-dove.com/python-gnupg/
--
https://mail.python.org/mailman/listinfo/python-list
On 12/13/23 00:19, Frank Millman via Python-list wrote:
I have to add 'import configparser' at the top of each of these modules
in order to type hint the method.
This seems verbose. If it is the correct way of doing it I can live with
it, but I wondered if there was an easier way.
ke a TLS
> syslog handler but don’t seem to have been maintained for a long time. For a
> feature like this, it makes sense to have it in core python rather than an
> unmaintained package.
Feedback and bug reports are very welcome.
Thanks,
Tammy
--
https://mail.python.org/mailman/listinfo/python-list
e problems and possible solutions I created
this minimal examples. I also do plan a tutorial repo about Debian
Python Packaging using the same approach with minimal examples
illustrating different use cases.
Thanks in advance,
Christian
--
https://mail.python.org/mailman/listinfo/python-list
On 12/13/2023 11:17 AM, Mats Wichmann via Python-list wrote:
On 12/13/23 00:19, Frank Millman via Python-list wrote:
I have to add 'import configparser' at the top of each of these
modules in order to type hint the method.
This seems verbose. If it is the correct way of doing it
x27;C:\usr\bin\env\python
"C:\Eigen\Src\launcher_versuche.py" ': Das System kann die angegebene
Datei nicht finden."
Without the "env" in the shebang line and only without it everything
works as expected - but that's contrary to the documentation, isn't it?
Thank you for information,
Sibylle
--
https://mail.python.org/mailman/listinfo/python-list
Am 22.12.2023 um 14:13 schrieb Barry:
On 22 Dec 2023, at 12:39, Sibylle Koczian via Python-list
wrote:
Hello,
I always install Python on Windows in the same manner:
- Python is not on the path,
- it is installed for all users,
- the Python Launcher is installed for all users,
- the file
is usually "#!/usr/bin/env python3".
Disable BOM in your editor and re-save all files.
--
//Aho
--
https://mail.python.org/mailman/listinfo/python-list
What is the "command line" on your Windows 11?
On Windows 10 it usually is "cmd.exe" (Windows Command Prompt).
On Windows 11 it usually is the "Terminal" which is different from
cmd.exe.
--
https://mail.python.org/mailman/listinfo/python-list
ks parameter in the is_dir, is_file, ... methods.
--
Antoon Pardon.
--
https://mail.python.org/mailman/listinfo/python-list
Antoon,
On 12/23/23 01:00, Antoon Pardon via Python-list wrote:
I am writing a program that goes through file hierarchies and I am mostly
using scandir for that which produces DirEntry instances.
At times it would be usefull if I could make my own DirEntry for a specific
path, however when I
On 12/22/2023 7:36 AM, Sibylle Koczian via Python-list wrote:
Hello,
I always install Python on Windows in the same manner:
- Python is not on the path,
- it is installed for all users,
- the Python Launcher is installed for all users,
- the file types .py, .pyw etc. are associated with Python
On 12/22/2023 9:29 AM, Sibylle Koczian via Python-list wrote:
Am 22.12.2023 um 14:13 schrieb Barry:
On 22 Dec 2023, at 12:39, Sibylle Koczian via Python-list
wrote:
Hello,
I always install Python on Windows in the same manner:
- Python is not on the path,
- it is installed for all
On 12/22/23 11:42, Thomas Passin via Python-list wrote:
> There is some important context that is missing here. Python on Windows
> does not normally install to that location. That is not even a Windows
> path, neither by directory name nor by path separators.
No, that's just
On 12/22/23 07:02, Thomas Passin via Python-list wrote:
> On my Windows 10 machine, Python scripts run without a shebang line.
> Perhaps Windows 11 has added the ability to use one, but then you would
> need to use the actual location of your Python executable.
Yes if you associate .p
On 12/22/2023 7:19 PM, Barry wrote:
On 23 Dec 2023, at 00:15, Thomas Passin via Python-list
wrote:
In neither case is the shebang line used.
As i understand it, not in front of my windows box to check.
The handler for .py file extension is set to be the py.exe
It is py.exe that
On 12/22/2023 7:27 PM, Michael Torrie via Python-list wrote:
On 12/22/23 07:02, Thomas Passin via Python-list wrote:
On my Windows 10 machine, Python scripts run without a shebang line.
Perhaps Windows 11 has added the ability to use one, but then you would
need to use the actual location of
Op 22/12/2023 om 21:39 schreef DL Neil via Python-list:
Antoon,
On 12/23/23 01:00, Antoon Pardon via Python-list wrote:
I am writing a program that goes through file hierarchies and I am
mostly
using scandir for that which produces DirEntry instances.
At times it would be usefull if I could
> On 23 Dec 2023, at 09:48, Antoon Pardon via Python-list
> wrote:
>
> Because I have functions with DirEntry parameters.
I would duck-type a class I control to be my DirEnrry in this situation.
Would also help you when debugging as you can tell injected DirEntry from
&qu
> On 23 Dec 2023, at 03:01, Thomas Passin via Python-list
> wrote:
>
> Not on my system. It may depend on whether Python gets installed to Program
> Files or to %USERPROFILE%/AppData/Local/Programs/Python. Python 3.9 is the
> last verson I installed to Program Fil
Op 23/12/2023 om 12:34 schreef Barry Scott:
On 23 Dec 2023, at 09:48, Antoon Pardon via Python-list
wrote:
Because I have functions with DirEntry parameters.
I would duck-type a class I control to be my DirEnrry in this situation.
Would also help you when debugging as you can tell
On 12/22/23 20:56, Thomas Passin via Python-list wrote:
> It's just better not to make assumptions about which version of Python
> will be running. Just specify it yourself when you can, and then you can
> be sure.
Precisely, which is why the shebang is so useful, even on W
would anyone want to overwrite
paths s.a. platlib or purelib _by installing some package_? This
sounds like it would just break the whole Python installation...
Thanks!
--
https://mail.python.org/mailman/listinfo/python-list
p-2024#Schedule>.
Register now <https://workshop.dipy.org/workshops/dipy-workshop-2024>!
On behalf of the DIPY developers,
Eleftherios Garyfallidis, Ariel Rokem, Serge Koudoro
https://dipy.org/contributors
--
https://mail.python.org/mailman/listinfo/python-list
is file as "/bin/bash" --
> that cannot be right, or is it?
>
> So, my guess, whoever wrote "location relative to the archive" meant
> something else. But what? What was this feature trying to accomplish?
> The whole passage makes no sense... Why would anyone want to overwrite
> paths s.a. platlib or purelib _by installing some package_? This
> sounds like it would just break the whole Python installation...
>
> Thanks!
--
https://mail.python.org/mailman/listinfo/python-list
On 12/22/23 20:16, rbowman via Python-list wrote:
> On Fri, 22 Dec 2023 17:27:58 -0700, Michael Torrie wrote:
>
>> Using the py launcher as your Windows association with .py and.pyw files
>> you can have multiple versions of python installed and everything works
>> as it s
4 December 2023 3:35:42 am AEDT, Michael Torrie via Python-list
wrote:
>On 12/22/23 20:56, Thomas Passin via Python-list wrote:
>> It's just better not to make assumptions about which version of Python
>> will be running. Just specify it yourself when you can, and then you c
On Mon, 25 Dec 2023 at 15:42, Mike Dewhirst via Python-list
wrote:
>
> Apologies for top posting - my phone seems unable to do otherwise.
>
> Here's my view - which may not be popular.
You're right about that part, anyhow :)
> 4. Shebang lines are pretty much redun
or: invalid syntax
>
> What am I doing wrong? Suggested reading?
> TIA,
> Mike
best commercial property in noida...
https://sayastatus129.in/
https://sikkamallnoida.com/
https://paras133.com/
https://gygynoida.in/
https://experion45noida.in/
https://krasacentrade.com/
--
https://mail.python.org/mailman/listinfo/python-list
Well spotted Chris. 4 was a generalisation based on my own
circumstances.However, I'm not wrong about Microsoft motivationsM--(Unsigned
mail from my phone)
Original message From: Chris Angelico via Python-list
Date: 25/12/23 15:57 (GMT+10:00) To: Michael Torrie
via P
On 25/12/2023 05:34, geetanajali homes via Python-list wrote:
>> import numpy as np
>> import pandas as pd
>> import random
>> import matplotlib.pyplot as plt
>> %matplotlib inline
>>
>> I get an error on the last line. I am running this code in Idl
essarily mean that
you'll experienced issues using python 3.4, but much has changed in the 7
years since that article was written.
On Mon, Dec 25, 2023, 2:53 PM Alan Gauld via Python-list <
[email protected]> wrote:
> On 25/12/2023 05:34, geetanajali homes via Python-list wrote
On Tue, 26 Dec 2023 at 07:27, Chris Grace via Python-list
wrote:
> I'd also recommend a newer version of python. Python 3.4 reached end of
> life almost 5 years ago.
Uhh, putting this in perspective... until a spammer revived the thread
just now, it was asked, answered, and finishe
e can then be accessed by both scripts.
The biggest caveat is that the shared variable MUST exist before it can be
examined or used (not surprising).
I sincerely hope this helps.
Greg
--
*My memory check bounced*
Greg Walters
--
https://mail.python.org/mailman/listinfo/python-list
Thanks. I tried asking there.
On Sun, Dec 24, 2023 at 11:53 PM Barry wrote:
>
>
>
> On 24 Dec 2023, at 00:58, Left Right via Python-list
> wrote:
>
> I'm trying to understand the contents of Wheel files
>
>
> There are lots of packaging experts that hang o
On 12/28/2023 12:20 AM EST rbowman via Python-list
<[1][email protected]> wrote:
On Wed, 27 Dec 2023 03:53:42 -0600, Greg Walters wrote:
The biggest caveat is that the shared variable MUST exist before it
can
be examined or used (not surp
is can work for any number of modules. You aren't limited to just two.
I hope this helps.
Greg
--
*My memory check bounced*
Greg Walters
--
https://mail.python.org/mailman/listinfo/python-list
n.org/mailman/listinfo/python-list
ow on Linux, Windows has WSL2 and Visual Studio Linux development tools
to help you develop software for Linux, SQL Server (despite still being
commercial software except for the Express and Developer versions) is on
Linux, etc.
--
https://mail.python.org/mailman/listinfo/python-list
On Fri, 29 Dec 2023 at 12:23, Félix An via Python-list
wrote:
>
> On 2023-12-25 12:36, Mike Dewhirst wrote:
> >
> > 3. You cannot trust Microsoft. You can trust Python Software Foundation.
> > Python from PSF works the same in all environments - or if not it is a bug.
&
2 with mypy 1.0.1 on Debian.
Karsten
--
GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7D4F C89B
--
https://mail.python.org/mailman/listinfo/python-list
Am Fri, Dec 29, 2023 at 01:15:29PM +0100 schrieb Karsten Hilbert via
Python-list:
> I am not sure why mypy thinks this
>
> gmPG2.py:554: error: Argument "queries" to "run_rw_queries" has incompatible
> type "List[Dict[str, str]]"; expected
> "
;
> Thanks. I tried asking there.
>
> On Sun, Dec 24, 2023 at 11:53 PM Barry wrote:
> >
> >
> >
> > On 24 Dec 2023, at 00:58, Left Right via Python-list
> > wrote:
> >
> > I'm trying to understand the contents of Wheel files
> &
On Fri, 29 Dec 2023 at 13:04, Left Right via Python-list
wrote:
>
> Wow. That place turned out to be the toxic pit I didn't expect.
>
> It's a shame that a public discussion of public goods was entrusted to
> a bunch of gatekeepers with no sense of responsibility for
That's not the discussion that was toxic. But the one that was --
doesn't exist anymore since the forum owners deleted it.
The part where the forum owners delete whatever they disagree with is
the toxic part.
On Fri, Dec 29, 2023 at 2:57 PM Oscar Benjamin via Python-list
wrote:
>
On Sat, 30 Dec 2023 at 01:16, Left Right via Python-list
wrote:
>
> That's not the discussion that was toxic. But the one that was --
> doesn't exist anymore since the forum owners deleted it.
>
> The part where the forum owners delete whatever they disagree with i
ithout provocation? Just why? What do you
stand to gain from this?
--
https://mail.python.org/mailman/listinfo/python-list
On 12/29/23 05:15, Karsten Hilbert via Python-list wrote:
Hi all,
I am not sure why mypy thinks this
gmPG2.py:554: error: Argument "queries" to "run_rw_queries" has incompatible type
"List[Dict[str, str]]"; expected
"List[Dict[str, Union[str, List[
Am Fri, Dec 29, 2023 at 07:49:17AM -0700 schrieb Mats Wichmann via Python-list:
> >I am not sure why mypy thinks this
> >
> >gmPG2.py:554: error: Argument "queries" to "run_rw_queries" has incompatible
> >type "List[Dict[str, str]]"; expe
On 2023-12-28, Peter J. Holzer via Python-list wrote:
> On 2023-12-28 05:20:07 +, rbowman via Python-list wrote:
>> On Wed, 27 Dec 2023 03:53:42 -0600, Greg Walters wrote:
>> > The biggest caveat is that the shared variable MUST exist before it can
>> > be exami
TONNE of examples, full documentation and a number of
tutorials. The Sourceforge acts as the main help site, but there is also a
Discord site dedicated to help and support.
I sincerely hope this helps!
Greg Walters
--
*My memory check bounced*
Greg Walters
--
https://mail.python.org/mailman/listinfo/python-list
On 12/28/23 18:05, Félix An via Python-list wrote:
I'm used to C# WinForms, which has an easy-to-use drag-and-drop GUI
designer in Visual Studio. Is there anything similar for Tk? How about
Qt? What do you recommend as the easiest way to create GUI programs in
Python, similar to the ea
On 12/29/23 08:02, Karsten Hilbert via Python-list wrote:
Dict[str, str] means the key type and value type should both be strings,
Indeed, I know that much, list[dict[str, str]] is what is getting
passed in in this particular invocation of run_rw_queries().
For what it's worth here&
is about.
And when it comes to rudeness, let's just say, you reap what you sow.
ChrisA
--
https://mail.python.org/mailman/listinfo/python-list
ng into the distance, rather than becoming more attainable.
--
https://mail.python.org/mailman/listinfo/python-list
.
ChrisA
--
https://mail.python.org/mailman/listinfo/python-list
Am Fri, Dec 29, 2023 at 11:04:59AM -0700 schrieb Mats Wichmann via Python-list:
> >For what it's worth here's the signature of that function:
> >
> > def run_rw_queries (
> > link_obj:_TLnkObj=None,
> > queries:list[dict
n, similar to the ease of use of C# WinForms?
For tkinter, there is a GUI designer,
http://page.sourceforge.net/
--
https://mail.python.org/mailman/listinfo/python-list
lement its advertised policies. I cannot
just take over them... that'd be illegal even if I somehow managed to
physically pull it off.
--
https://mail.python.org/mailman/listinfo/python-list
On Fri, 29 Dec 2023 at 22:38, Left Right via Python-list
wrote:
>
> > Then your understanding is flat-out wrong. Encouraging participation
> > by everyone DOES mean deleting what is unproductive, offensive, and
> > likely to discourage participation.
>
> I haven't
way to be sure
of that.
You could try declaring it as a collections.Mapping, which is immutable.
--
Greg
--
https://mail.python.org/mailman/listinfo/python-list
On 29/12/2023 12:09 pm, Félix An via Python-list wrote:
On 2023-12-25 12:36, Mike Dewhirst wrote:
3. You cannot trust Microsoft. You can trust Python Software
Foundation. Python from PSF works the same in all environments - or
if not it is a bug. Python from Microsoft is tweaked to satisfy
On Sat, 30 Dec 2023 at 14:06, Mike Dewhirst via Python-list
wrote:
>
> On 29/12/2023 12:09 pm, Félix An via Python-list wrote:
> > On 2023-12-25 12:36, Mike Dewhirst wrote:
> >>
> >> 3. You cannot trust Microsoft. You can trust Python Software
> >> Founda
in either str
or int
and have type checking pass either input as valid" -- yet mypy doesn't seem
to share that idea.
Or else there's something I haven't wrapped my head around yet. But what ?
Karsten
--
https://mail.python.org/mailman/listinfo/python-list
Peter J. Holzer wrote:
> [-- text/plain, encoding quoted-printable, charset: us-ascii, 40 lines --]
>
> On 2023-12-29 09:01:24 -0800, Grant Edwards via Python-list wrote:
> > On 2023-12-28, Peter J. Holzer via Python-list
> > wrote:
> > > On 2023-12-28 05:20:07
On 12/29/2023 10:02 AM, Karsten Hilbert via Python-list wrote:
I agree that mypy's grasp of my intent from
queries:list[dict[str, str | list | dict[str, Any]]]=None,
into
"List[Dict[str, Union[str, List[Any], Dict[str, Any"
seems accurate. I just don't
On 29/12/2023 01:05, Félix An via Python-list wrote:
> I'm used to C# WinForms, which has an easy-to-use drag-and-drop GUI
> designer in Visual Studio. Is there anything similar for Tk? How about
> Qt?
There are any number of them but few that work well. The best
I found was Da
ueries)
and run mypy over that (at least inside my complex codebase) I will
get a type mismatch being hinted at.
So far I don't grasp at which point my reasoning above is faulty.
Karsten
--
https://mail.python.org/mailman/listinfo/python-list
On 12/30/2023 10:08 AM, Karsten Hilbert via Python-list wrote:
Dear Thomas,
thanks for taking the time to look into my issue.
Maybe it helps if I explain what I want (sorry that my web mailer does not
respect
indentation, I will insert dots).
I want a function to run SQL queries
On 12/30/2023 10:08 AM, Karsten Hilbert via Python-list wrote:
Dear Thomas,
thanks for taking the time to look into my issue.
Maybe it helps if I explain what I want (sorry that my web mailer does not
respect
indentation, I will insert dots).
I want a function to run SQL queries
ll take it as an opportunity to refactor them.
So, at least that much good has come from the mypy hint ;-)
Karsten
--
https://mail.python.org/mailman/listinfo/python-list
On 12/29/2023 10:02 AM, Karsten Hilbert via Python-list wrote:
Am Fri, Dec 29, 2023 at 07:49:17AM -0700 schrieb Mats Wichmann via Python-list:
I am not sure why mypy thinks this
gmPG2.py:554: error: Argument "queries" to "run_rw_queries" has incompatible type
"List[D
Those are then used
in display rather than being fed to run_queries().
Karsten
--
https://mail.python.org/mailman/listinfo/python-list
On Sun, 31 Dec 2023 at 03:38, Thomas Passin via Python-list
wrote:
> I am not very expert in Python type hints. In working up the example
> program I just posted, I got an error message from mypy that remarked
> that "list" is invariant, and to try Sequence which is "cov
On 12/30/2023 9:14 AM, Thomas Passin via Python-list wrote:
On 12/29/2023 10:02 AM, Karsten Hilbert via Python-list wrote:
I agree that mypy's grasp of my intent from
queries:list[dict[str, str | list | dict[str, Any]]]=None,
into
"List[Dict[str, Union[str, List[Any], Dic
itself that's the problem,
but the fact that there's a *mutable container* containing that type.
--
Greg
--
https://mail.python.org/mailman/listinfo/python-list
4001 - 4100 of 5869 matches
Mail list logo