I am not sure if it was made clear that there is a general rule in python for
what is HASHABLE and lists are changeable while tuples are not so the latter
can be hashed as a simple copy of a list, albeit the contents must also be
immutable.
The memorize function uses a dictionary to store
On 2024-03-31 09:04, marc nicole wrote:
Thanks for the first comment which I incorporated
but when you say "You can't use a list as a key, but you can use a
tuple as a key,
provided that the elements of the tuple are also immutable."
does it mean the result of sum of the array is not
On 2024-03-31 12:27:34 -0600, Mats Wichmann via Python-list wrote:
> On 3/30/24 10:31, MRAB via Python-list wrote:
> > On 2024-03-30 11:25, Skip Montanaro via Python-list wrote:
> > > > > https://xkcd.com/1306/
> > > > > what does SIGIL mean?
> > > >
> > > > I think
On 2024-03-30 17:58:08 +, Alan Gauld via Python-list wrote:
> On 30/03/2024 07:04, Greg Ewing via Python-list wrote:
> > On 30/03/24 7:21 pm, HenHanna wrote:
> >> https://xkcd.com/1306/
> >> what does SIGIL mean?
> >
> > I think its' a Perl term, referring to the
On 3/30/24 10:31, MRAB via Python-list wrote:
On 2024-03-30 11:25, Skip Montanaro via Python-list wrote:
> https://xkcd.com/1306/
> what does SIGIL mean?
I think its' a Perl term, referring to the $/@/# symbols in front of
identifiers.
I wouldn't consider '@' to
> On 31 Mar 2024, at 13:24, Jacob Kruger via Python-list
> wrote:
>
> pkg_resources.DistributionNotFound: The 'altgraph' distribution was not found
> and is required by the application
I think I have seen this error being discussed before…
A web search for pyinstaller and that error leads
This started happening this past week, and, while it's worked fine in
the past, the moment I try to launch the pyinstaller process at all, to
generate compiled output, or even if just launch it with no command line
options, I receive the following error message:
Thanks for the first comment which I incorporated
but when you say "You can't use a list as a key, but you can use a tuple as
a key,
provided that the elements of the tuple are also immutable."
does it mean the result of sum of the array is not convenient to use as
key as I do?
Which tuple I