On Mon, 12 May 2025 at 03:35, Left Right wrote:
>
> https://gitlab.com/doodles-archive/protopy/-/blob/master/cris-angelico-is-a-moron.org?ref_type=heads
> Here's a proof that I have commit rights to this repo
>
I didn't ask for that, and you don't even have the respect to spell my
name correctly.
On Mon, 12 May 2025 at 01:24, Left Right via Python-list
wrote:
>
> But, sure, go ahead, foam at the mouth, if it
> makes you feel better about it.
Projecting, much?
ChrisA
--
https://mail.python.org/mailman/listinfo/python-list
On Mon, 12 May 2025 at 01:19, Left Right wrote:
>
> > Have you ever built a language parser?
>
> I've lost count by now. Probably fewer than hundred times though.
Show me then. Prove it. You're all hot air and opinions and bluster.
Show some actual code, and show that you can do right what you're
On Sun, 11 May 2025 at 20:38, Left Right via Python-list
wrote:
>
> My comment was more of an irony really. It's plenty obvious that the
> grammar is a lie. The reason is that it's tedious to put the actual
> intender rules into the grammar, and so whoever wrote the grammar
> decided to cut corner
On Tue, 11 Feb 2025 at 05:56, Grant Edwards via Python-list
wrote:
> The -dev packages also contain the man pages for the libraries. It
> surprised me at first that the man pages weren't installed by the
> "normal" lib packages. But, if you're not writing/building apps that
> link with library X,
On Tue, 11 Feb 2025 at 04:04, Grant Edwards via Python-list
wrote:
>
> On 2025-02-09, Left Right via Python-list wrote:
>
> > You need the sources of the OpenSSL library, not the compiled library.
> > On Ubuntu, the packages with sources are typically named xxx-dev where
> > xxx is the package th
Peter J. Holzer wrote:
> [-- text/plain, encoding quoted-printable, charset: us-ascii, 32 lines --]
>
> On 2025-01-14 11:32:35 +0000, Chris Green via Python-list wrote:
> > Use a virtual environment, what do I have to do then to make using
> > my program (t
and
use that. My PYTHONPATH will need to point to it but I can't see
any further issues with doing this.
Anything else? As far as I can see using pipx doesn't help me at
all (see recent thread here).
--
Chris Green
·
--
https://mail.python.org/mailman/listinfo/python-list
se I might as well use a GUI. I have written
a (fairly simple) Gtk based python program, I was just trying to avoid
all the GUI overheads for a little new project.
--
Chris Green
·
--
https://mail.python.org/mailman/listinfo/python-list
rustbuck...@nope.com wrote:
>
> This is what I was going to suggest. Rich is super easy to use.
OK, thanks, Rich is on my shortlist then.
--
Chris Green
·
--
https://mail.python.org/mailman/listinfo/python-list
Stefan Ram wrote:
> Chris Green wrote or quoted:
> >E.g. I want to install and use pksheet but, as it's not available from
> >the Debian repositories, I'll have to install it from PyPi.
>
> I can't dig up any "pksheet" on PyPI. So, you got to ta
in its own environment. Can pipx help me with this?
--
Chris Green
·
--
https://mail.python.org/mailman/listinfo/python-list
Are there any packages that offer this sort of thing? I'd prefer ones
from the Debian repositories but that's not absolutely necessary.
It might also be possible/useful to use the mouse for this.
--
Chris Green
·
--
https://mail.python.org/mailman/listinfo/python-list
Stefan Ram wrote:
> Chris Green wrote or quoted:
> >From: =?utf-8?B?U8OpYmFzdGllbiBDcmlnbm9u?=
>
> In Python, when you roll with decode_header from the email.header
> module, it spits out a list of parts, where each part is like
> a tuple of (decoded string, cha
wrapped bit
altogether as I'm only interested in the 'real' address. How can I
easily remove the UTF8 section in a way that will work whether or not
it's there?
--
Chris Green
·
--
https://mail.python.org/mailman/listinfo/python-list
On Sat, 4 Jan 2025 at 09:22, aotto1968 via Python-list
wrote:
>
> On 30.12.24 18:29, Michael Torrie wrote:
> > On 12/26/24 12:34 AM, aotto1968 via Python-list wrote:
> >> sorry you don't understand the problem…
> >>
> >> > You managed to make a build of Python that attempts to link to a DLL
> >>
On Mon, 30 Dec 2024 at 15:02, aotto1968 via Python-list
wrote:
> > You managed to make a build of Python that attempts to link to a DLL
>
> I never touch the OpenSUSE python. the OpenSUSE python try to use my
> sqalite3.
You keep saying this, but do you even know what "make install" does?
Are y
quite nicely with a text mode E-Mail client such
as mutt so you can keep threads separate, follow sub-threads, etc.
Not quite as good as this list gatewayed to usenet though, there's
really nothing so good as usenet for proper discourse (!).
--
Chris Green
·
--
https://mail.python.org/mailman/listinfo/python-list
On Thu, 26 Dec 2024 at 14:57, Michael Torrie via Python-list
wrote:
>
> On 12/25/24 3:55 PM, Chris Angelico via Python-list wrote:
> > On Thu, 26 Dec 2024 at 09:27, aotto1968 via Python-list
> > wrote:
> >> It is not only an *usage* error it is also an *security* error
On Thu, 26 Dec 2024 at 09:27, aotto1968 via Python-list
wrote:
> It is not only an *usage* error it is also an *security* error because:
>
> 1) "cnf" is using OS python
> 2) os "root" python
> 3) using **my** local non-root library
Yes. And YOU were the one who installed a new root Python. This i
On Sun, 15 Dec 2024 at 06:05, aotto1968 via Python-list
wrote:
> The CORE problem is that python3 works well in *my* environment but the
> installation is done as root and root does not use *my* environment.
>
So, it's an environment problem, NOT a Python problem. You messed up
your installation.
On Thu, 14 Nov 2024 at 18:05, Left Right via Python-list
wrote:
>
> > On any Unix system this is untrue. Rotating a log file is quite simple:
>
> I realized I posted this without cc'ing the list:
> http://jdebp.info/FGA/do-not-use-logrotate.html .
>
> The link above gives a more detailed descript
On Wed, 13 Nov 2024 at 07:29, Mats Wichmann via Python-list
wrote:
>
> On 11/12/24 12:10, Left Right via Python-list wrote:
>
> > Finally, if you want your logs to go to a file, and currently, your
> > only option is stderr, your shell gives you a really, really simple
> > way of redirecting stder
On Tue, 12 Nov 2024 at 01:59, Loris Bennett via Python-list
wrote:
> 2. In terms of generating a helpful error message, how should one
>distinguish between the config file not existing and the log file not
>existing?
By looking at the exception's attributes rather than assuming and
hard-c
.
Me rocking Python?
/Martin
You have to understand Stefan tries to use American slang, not always
entirely accurately. I think 'bee's knees' died out around 1931.
Not sure about America, but the bee's knees is still in common use in the UK
--
Chris
--
https://mail.python.org/mailman/listinfo/python-list
On Thu, 3 Oct 2024 at 08:48, Left Right wrote:
>
> > You can't validate an IP packet without having all of it. Your notion
> > of "streaming" is nonsensical.
>
> Whoa, whoa, hold your horses! "nonsensical" needs a little bit of
> justification :)
>
> It seems you don't understand the difference be
On Wed, 2 Oct 2024 at 23:53, Left Right via Python-list
wrote:
> In the same email you replied to, I gave examples of languages for
> which parsers can be streaming (in general): SCSI or IP.
You can't validate an IP packet without having all of it. Your notion
of "streaming" is nonsensical.
Chri
On Tue, 1 Oct 2024 at 08:56, Grant Edwards via Python-list
wrote:
>
> On 2024-09-30, Dan Sommers via Python-list wrote:
>
> > In Common Lisp, integers can be written in any integer base from two
> > to thirty six, inclusive. So knowing the last digit doesn't tell
> > you whether an integer is ev
On Tue, 1 Oct 2024 at 04:30, Dan Sommers via Python-list
wrote:
>
> But why do I need to start with the least
> significant digit?
If you start from the most significant, you don't know anything about
the number until you finish parsing it. There's almost nothing you can
say about a number given
On Tue, 1 Oct 2024 at 02:20, Thomas Passin via Python-list
wrote:
>
> On 9/30/2024 11:30 AM, Barry via Python-list wrote:
> >
> >
> >> On 30 Sep 2024, at 06:52, Abdur-Rahmaan Janhangeer via Python-list
> >> wrote:
> >>
> >>
> >> import polars as pl
> >> pl.read_json("file.json")
> >>
> >>
> >
>
On Thu, 8 Aug 2024 at 03:40, Tobiah via Python-list
wrote:
> The one under rcs.dbi contains:
>
> from dbi import *
> from regos import *
>
You probably want these to be package-relative now:
from .dbi import *
from .regos import *
Or, since you're using namespaced imports anyway ("rcs
On Tue, 6 Aug 2024 at 08:48, aotto1968 via Python-list
wrote:
>
> hi,
>
> Is it possible to run two completely independent Python interpreters in one
> process, each using a thread?
>
> By independent, I mean that no data is shared between the interpreters and
> thus the C API can be used withou
Stefan Ram wrote:
> Chris Green wrote or quoted:
> >That's exactly the sort of solution I was wondering about. Is there a
> >ready made module/library for handling this sort of thing? Basically
> >it will just be a string of a few tens of characters that would be
Lawrence D'Oliveiro wrote:
> On Sat, 6 Jul 2024 08:28:41 +0100, Chris Green wrote:
>
> > One fairly obvious way is to have single process/script which reads the
> > A2D values continuously and writes them to a file. All other scripts
> > then read from the file as n
Piergiorgio Sartor
wrote:
> On 06/07/2024 09.28, Chris Green wrote:
> > I have a Raspberry Pi in my boat that uses I2C to read a number of
> > voltages and currents (using ADS1115 A2D) so I can monitor the battery
> > condition etc.
> >
> > At present various
self has a mutex but I don't think this guarantees that
(for example) an A2D reading is atomic because one reading takes more
than one I2C bus access.
Would a mutex of some sort around each I2C transaction (i.e. complete
A2D reading) be a better way to go?
--
Chris Green
·
--
https://mail.pyt
On Wed, 26 Jun 2024 at 03:40, Anton Shepelev via Python-list
wrote:
>
> Chris Angelico to dn:
>
> > > Python mailing-lists are covered by the Code of Conduct
> > > and monitored by ListAdmins. Thus, there are controls
> > > which limit the impact which a
On Tue, 25 Jun 2024 at 11:41, Grant Edwards via Python-list
wrote:
> I've been using the same e-mail address for about 20 years. I've use
> that e-mail address with probably close to 100 retailers, charities,
> open-source projects, media sites, and various other organizations.
Mostly the same, a
On Tue, 25 Jun 2024 at 08:31, dn via Python-list wrote:
> Python mailing-lists are covered by the Code of Conduct and monitored by
> ListAdmins. Thus, there are controls which limit the impact which
> advertisers and others with non-pythonic aims might otherwise exert!
>
So long as there's a news
On Mon, 24 Jun 2024 at 10:18, MRAB via Python-list
wrote:
> Tkinter in recent versions of Python can handle astral characters, at
> least back to Python 3.8, the oldest I have on my Windows PC.
Good to know, thanks! I was hoping that would be the case, but I don't
have a Windows system to check o
On Mon, 24 Jun 2024 at 08:20, Rayner Lucas via Python-list
wrote:
>
> In article ,
> ros...@gmail.com says...
> >
> > If you switch to a Linux system, it should work correctly, and you'll
> > be able to migrate the rest of the way onto Python 3. Once you achieve
> > that, you'll be able to operate
On Sat, 22 Jun 2024 at 03:28, Rayner Lucas via Python-list
wrote:
> I'm curious about something I've encountered while updating a very old
> Tk app (originally written in Python 1, but I've ported it to Python 2
> as a first step towards getting it running on modern systems).
>
> I am using Python
On Sat, 15 Jun 2024 at 08:32, dn via Python-list wrote:
> These mailing-lists all run under the Python Code of Conduct.
>
The newsgroup, however, is not. Which means that anyone who posts on
the newsgroup is subject to no such restrictions - and that might
explain the, shall we say, quite differe
Chris Angelico wrote:
> On Thu, 13 Jun 2024 at 10:58, wrote:
> >
> > Chris,
> >
> > You seem to have perceived an insult that I remain unaware of.
>
> If you're not aware that you're saying this, then don't say it.
>
Er, um, that really make
On Thu, 13 Jun 2024 at 10:58, wrote:
>
> Chris,
>
> You seem to have perceived an insult that I remain unaware of.
If you're not aware that you're saying this, then don't say it.
> I looked up FUD and sharply disagree with suggestions I am trying to somehow
> ca
On Thu, 13 Jun 2024 at 09:20, wrote:
> My point was that version 4 COULD HAPPEN one day and I meant INCOMPATIBLE
> version not 4. Obviously we can make a version 4 that is not incompatible
> too.
This is still FUD. Back your words with something, or stop trying to
imply that there's another incom
pdate it while retaining a
legacy system.
On Thu, 13 Jun 2024 at 08:51, Greg Ewing via Python-list
wrote:
> On 13/06/24 10:09 am, Chris Angelico wrote:
> > So if anyone
> > actually does need to use pip with Python 2.7, they probably need to
> > set up a local server
>
&
On Thu, 13 Jun 2024 at 07:57, Oscar Benjamin via Python-list
wrote:
> They are seeing a warning that explicitly says "You can upgrade to a
> newer version of Python to solve this". I don't know whether that SSL
> warning is directly connected to pip not finding any versions of numpy
> but with the
On Thu, 13 Jun 2024 at 07:36, wrote:
> But if the goal was to deprecate python 2 and in some sense phase it out, it
> is perhaps not working well for some. Frankly, issuing so many updates like
> 2.7 and including backporting of new features has helped make it possible to
> delay any upgrade.
The
On Thu, 13 Jun 2024 at 06:55, Thomas Passin via Python-list
wrote:
> The project cannot move to a Python-3 compatible version because Jython
> 3.xx doesn't exist and may never exist. The saving grace is that my
> project doesn't have to use packages like numpy, scipy, and so forth.
Exactly. If y
On Thu, 13 Jun 2024 at 03:41, AVI GROSS via Python-list
wrote:
>
> Change is hard even when it may be necessary.
>
> The argument often is about whether some things are necessary or not.
>
> Python made a decision but clearly not a unanimous one.
What decision? To not release any new versions of
On Wed, 12 Jun 2024 at 21:32, marc nicole via Python-list
wrote:
>
> I am trying to install numpy library on Python 2.7.15 in PyCharm but the
> error message I get is:
>
> You can upgrade to a newer version of Python to solve this.
The answer is right there in the error message.
ChrisA
--
https
On Wed, 5 Jun 2024 at 02:49, Edward Teach via Python-list
wrote:
>
> On Mon, 03 Jun 2024 14:58:26 -0400 (EDT)
> Grant Edwards wrote:
>
> > On 2024-06-03, Edward Teach via Python-list
> > wrote:
> >
> > > The Gutenburg Project publishes "plain text". That's another
> > > problem, because "plain
On Wed, 29 May 2024 at 23:06, Dan Sommers via Python-list
wrote:
> (For the history-impaired, getopt existed long before Python and will
> likely exist long after it, but getopt's "replacement" optparse lasted
> only from 2003 until 2011.)
Depends on your definition of "lasted". It's not getting
On Wed, 29 May 2024 at 16:03, Cameron Simpson via Python-list
wrote:
> By which Thomas means stuff like this:
>
> print(f'if block {name[index]} and index {index}')
>
> Notice the leading "f'". Personally I wouldn't even go that far, just:
>
> print('if block', name[index], 'and index',
On Sun, 19 May 2024 at 04:10, Abdur-Rahmaan Janhangeer via Python-list
wrote:
>
> Yes, this year's pretty exciting, great keynotes, great lightnings, great
> location, great even sponsor talks (thought they would be pumping a lot of
> marketing, but the ones i went were pretty awesome technically)
On Sat, 18 May 2024 at 21:44, Skip Montanaro via Python-list
wrote:
>
> >
> > > I’m at PyCon in Pittsburgh and I’m haven’t an amazing time!
> >
> > s/haven’t/having/
> >
>
> No need to explain/correct. We understand you are excited. Many of us have
> been in the same state before. ;-)
>
We're flu
On Tue, 7 May 2024 at 03:42, jak via Python-list wrote:
>
> Loris Bennett ha scritto:
> > r...@zedat.fu-berlin.de (Stefan Ram) writes:
> >
> >>Me (indented by 2) and the chatbot (flush left). Lines lengths > 72!
> >
> > Is there a name for this kind of indentation, i.e. the stuff you are
> > w
On Tue, 7 May 2024 at 03:38, Alan Bawden via Python-list
wrote:
> A good error message shouldn't withhold any information that can
> _easily_ be included. Debugging is more art than science, so there is
> no real way to predict what information might prove useful in solving
> the crime. I emphas
On Fri, 22 Mar 2024 at 18:35, Lars Liedtke via Python-list
wrote:
>
> Hey,
>
> As far as I know (might be old news) flask does not support asyncio.
>
> You would have to use a different framework, like e.g. FastAPI or similar.
> Maybe someone has already written "flask with asyncio" but I don't k
On Wed, 20 Mar 2024 at 18:31, Greg Ewing via Python-list
wrote:
>
> On 20/03/24 4:14 pm, Lawrence D'Oliveiro wrote:
> > not to
> > mention the latency when there isn’t quite enough memory for an allocation
> > and you have to wait until the next GC run to proceed. Run the GC a
> > thousand times a
On Tue, 12 Mar 2024 at 08:04, Ivan "Rambius" Ivanov
wrote:
> > A Singleton is just a global variable. Why do this? Did someone tell
> > you "global variables are bad, don't use them"?
>
> I have bad experience with global variables because it is hard to
> track what and when modifies them. I don't
On Tue, 12 Mar 2024 at 07:54, Ivan "Rambius" Ivanov via Python-list
wrote:
> I am refactoring some code and I would like to get rid of a global
> variable. Here is the outline:
>
> ...
>
> I have never done that in Python because I deliberately avoided such
> complicated situations up to now. I kn
On Sat, 9 Mar 2024 at 03:42, Grant Edwards via Python-list
wrote:
>
> On 2024-03-08, Chris Angelico via Python-list wrote:
> > On Sat, 9 Mar 2024 at 00:51, Grant Edwards via Python-list
> > wrote:
> >
> >> One might argue that "global" isn't
On Sat, 9 Mar 2024 at 00:51, Grant Edwards via Python-list
wrote:
> One might argue that "global" isn't a good choice for what to call the
> scope in question, since it's not global. It's limited to that source
> file. It doesn't make sense to me to call a binding "global", when
> there can be mul
Grant Edwards wrote:
> On 2024-02-16, Chris Green via Python-list wrote:
>
> > I'm looking for a simple way to make NaN values output as something
> > like '-' or even just a space instead of the string 'nan'.
>
> It would probably help if yo
dn wrote:
> On 18/02/24 09:53, Grant Edwards via Python-list wrote:
> > On 2024-02-17, Cameron Simpson via Python-list
> > wrote:
> >> On 16Feb2024 22:12, Chris Green wrote:
> >>> I'm looking for a simple way to make NaN values output as something
>
On Mon, 19 Feb 2024 at 06:47, Grant Edwards via Python-list
wrote:
> I would be tempted to try monkey-patching the float class to override
> the __format__ method. I have no idea what side effects that might
> have, or if it's even used by the various formatting mechanisms, so
> you might end up s
Amps
Starter Battery - nan voltsnan Amps
What I would like is for those 'nan' strings to be just a '-' or
something similar.
Obviously I can write conditional code to check for float('nan')
values but is there a neater way with any sort of formattin
On Fri, 9 Feb 2024 at 17:03, Cameron Simpson via Python-list
wrote:
>
> On 08Feb2024 12:21, tony.fl...@btinternet.com
> wrote:
> >I know that mappings by default support the ** operator, to unpack the
> >mapping into key word arguments.
> >
> >Has it been considered implementing a dunder method
On Sat, 27 Jan 2024 at 11:01, Greg Ewing via Python-list
wrote:
>
> If it helps at all, you can think of an async function as being
> very similar to a generator, and "await" as being very similar to
> "yield from". In the current implementation they're almost exactly
> the same thing underneath.
On Wed, 17 Jan 2024 at 01:45, Frank Millman via Python-list
wrote:
>
> On 2024-01-16 2:15 PM, Chris Angelico via Python-list wrote:
> >
> > Where do you tend to "leave a reference dangling somewhere"? How is
> > this occurring? Is it a result of an incomplete tra
On Tue, 16 Jan 2024 at 23:08, Frank Millman via Python-list
wrote:
>
> On 2024-01-15 3:51 PM, Frank Millman via Python-list wrote:
> > Hi all
> >
> > I have read that one should not have to worry about garbage collection
> > in modern versions of Python - it 'just works'.
> >
> > I don't want to r
ods of cleaning up after those objects.
>
> Chris Angelico writes:
> > Got any examples of that?
>
> The big one for me was gdk-pixbuf, part of GTK. When you do something like
> gtk.gdk.pixbuf_new_from_file(), there's a Python object that gets created,
> but ther
On Tue, 16 Jan 2024 at 06:32, Akkana Peck via Python-list
wrote:
>
> > Frank Millman wrote at 2024-1-15 15:51 +0200:
> > >I have read that one should not have to worry about garbage collection
> > >in modern versions of Python - it 'just works'.
>
> Dieter Maurer via Python-list writes:
> > There
On Mon, 15 Jan 2024 at 19:26, Greg Ewing via Python-list
wrote:
>
> On 15/01/24 9:07 pm, Chris Angelico wrote:
> > The grammar *can't* specify everything. If it did, it would have to
> > have rules for combining individual letters into a NAME and individual
> > cha
On Mon, 15 Jan 2024 at 18:56, Greg Ewing via Python-list
wrote:
>
> On 15/01/24 1:28 am, Left Right wrote:
> > Python isn't a context-free language, so the grammar that is used to
> > describe it doesn't actually describe the language
>
> Very few languages have a formal grammar that *fully* descr
On Mon, 15 Jan 2024 at 12:42, dn via Python-list wrote:
>
> On 15/01/24 14:33, Chris Angelico via Python-list wrote:
> > On Mon, 15 Jan 2024 at 12:12, dn via Python-list
> > wrote:
> >> Here's another witticism I'll often toss at trainees (in many langua
On Mon, 15 Jan 2024 at 12:12, dn via Python-list wrote:
> Here's another witticism I'll often toss at trainees (in many languages,
> and especially in UX): just because we can do it, doesn't make it a good
> idea!
>
Programming. We were so busy with whether we COULD that we didn't stop
to think i
On Mon, 15 Jan 2024 at 09:40, dn via Python-list wrote:
> The basic challenge came from my earlier (and blasé) repetition of the
> Python refrain "everything in Python is an object". Which led to:
>
> <<<
> For example, you may say "functions in Python are
> objects", but you cannot put a function
On Mon, 15 Jan 2024 at 08:15, Left Right wrote:
> Python grammar rules prevent function definition from
> appearing in left-hand side of the head of the for loop. However, a
> variable declaration, which is also a statement, is allowed there.
What is a "variable declaration" in Python? Please el
On Mon, 15 Jan 2024 at 00:27, Left Right wrote:
>
> > What do you mean?
> >
> > for x in lambda: ...:
> > ...
> >
> > Perfectly grammatical.
>
> 1. You put the lambda definition in the wrong place (it should be in
> the left-hand side, or as Python calls it "star_targets", but you put
> it into
On Sun, 14 Jan 2024 at 23:28, Left Right wrote:
> Having worked with a bunch of different grammar languages, the one
> used for Python isn't a recognizable BNF derivative.
That might possibly be because it isn't? It's not BNF. It's PEG. Or
are you a long way behind the times?
> For example, you
On Sun, 14 Jan 2024 at 14:43, dn via Python-list wrote:
> Similarly, whilst we could write:
>
> a, b, c = 1, 2, 3
>
I would only do this when it aligns particularly well with the
algorithm being implemented. For example, you could start a Fibonacci
evaluator with "a, b = 0, 1". Otherwise, there's
On Sat, 13 Jan 2024 at 13:11, Left Right via Python-list
wrote:
>
> Very few
> languages allow arbitrary complex expressions in the same place they
> allow variable introduction.
What do you mean by this? Most languages I've worked with allow
variables to be initialized with arbitrary expression
On Fri, 12 Jan 2024 at 08:56, Left Right via Python-list
wrote:
>
> By the way, in an attempt to golf this problem, I discovered this,
> which seems like a parser problem:
When you jump immediately to "this is a bug", all you do is make
yourself look like an idiot. Unsurprisingly, this is NOT a b
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 "covariant". I
> don't know w
red in a
file to provide what I need. The Python json package is very simple
to use and with an 'indent=' setting the resulting json is reasonably
human readable which is all I need.
Thus programs simply read the values from the json file into a
dictionary of dictionaries and the 'updater of values' program can
write them back after changes.
--
Chris Green
·
--
https://mail.python.org/mailman/listinfo/python-list
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
> >> Foundation. Python from PSF works the same in all
On Sat, 30 Dec 2023 at 06:58, Left Right wrote:
> My understanding is that "welcome and encourage participation by
> everyone" is in stark contradiction to banning someone disagreeing
> with you.
Then your understanding is flat-out wrong. Encouraging participation
by everyone DOES mean deleting w
On Sat, 30 Dec 2023 at 01:37, Left Right wrote:
>
> > Yeah, because you have the God-given RIGHT to be able to say anything
> > you like, on anyone's web site, and nobody's allowed to delete
> > anything you say! That's how it goes, right?
>
> I don't believe in god, and I don't believe he / she c
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 is
> the toxic part.
Yeah, becaus
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.
> > Python from Microsoft i
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
"%matplotlib inline" is a magic command that changes how plots render when
working with IPython. Read more here: https://stackoverflow.com/a/43028034
The article you linked assumes you are working in an IPython shell, not
IDLE. This is common in the data science world.
You may already have IPytho
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 redundant now that most python inter
Jon Ribbens wrote:
> On 2023-12-11, Chris Green wrote:
> > Chris Green wrote:
> >> Is there a way to abbreviate the following code somehow?
> >>
> >> lv = {'dev':'bbb', 'input':'1', 'name':'Leisure v
Chris Green wrote:
> Is there a way to abbreviate the following code somehow?
>
> lv = {'dev':'bbb', 'input':'1', 'name':'Leisure volts'}
> sv = {'dev':'bbb', 'input':'0',
;: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
Thank you everyone for all the suggestions, I now have several
possibilities to follow up. :-)
--
Chris Green
·
--
https://mail.python.org/mailman/listinfo/python-list
1 - 100 of 4867 matches
Mail list logo