.com/photos/alangauldphotos
--
https://mail.python.org/mailman/listinfo/python-list
e reporting and some updates showing as having happened in
the future!
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos
--
https://mail.python.org/mailman/listinfo/python-list
om/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos
--
https://mail.python.org/mailman/listinfo/python-list
photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos
--
https://mail.python.org/mailman/listinfo/python-list
people. Most still see it
as a benefit because they get longer working daylight.
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos
--
https://mail.python.org/mailman/listinfo/python-list
7 -0500, Igor Korot wrote:
Will this syntax work in python 2?
Yes. It's just a redundant pair of parentheses.
hp
--
https://mail.python.org/mailman/listinfo/python-list
to be able to
call.
It'd be nice to just be able to tell the "size of data", or something like
that, that was stored in the *data? I note there is len "field" in the
structure mpd_t
Sorry for the dumb question
Thanks,Duncan
--
https://mail.python.org/mailman/listinfo/python-list
issue - except
we'd be an hour out of sync with the EU. (Post Brexit that may
not be seen as a problem!! :-)
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos
--
https://mail.python.org/mailman/listinfo/python-list
ave one extra put it here. If you have two, put
one here and one there. My method had all kinds of bells and whistles that
this specific case did not need.
Let me end with asking if anyone has ever seen a mild variant of this:
... # code
while false
apologize()
... # more code
-Original M
the user 😉
Bottom line I find is it is a great idea to write comments as even if you are
the one reviewing the code much later, you may struggle to figure out what you
did and why.
-Original Message-
From: Python-list On
Behalf Of Dennis Lee Bieber
Sent: Sunday, September 5, 2021 12
in the python version, has anyone made a generator that returned NULL or
the like so you can say uselessly:
for ( _ in forever() ) ...
-Original Message-----
From: Python-list On
Behalf Of Stefan Ram
Sent: Monday, September 6, 2021 12:34 PM
To: python-list@python.org
Subject: Re: on wri
():
print("repeating ...")
The above gives me a nice infinite loop, with the second one looking like a
normal loop but actually doing nothing much.
-----Original Message-
From: Python-list On
Behalf Of 2qdxy4rzwzuui...@potatochowder.com
Sent: Monday, September 6, 2021 8:28 PM
To:
ormal then head off into hyperspace at warp speed.
Python too has a way to write fairly unsophisticated programs as well as
idioms and methods that rapidly become hard to comprehend.
-Original Message-----
From: Python-list On
Behalf Of Stefan Ram
Sent: Monday, September 6, 2021 7:49 PM
To: p
the one to use
beyond that point.
So, I am not sanguine on trying to enforce some standards to make your code
easy to read by others and am more a fan of suggesting enough comments in
the code to guide anyone on your own idiosyncratic uses.
-Original Message-
From: Python-list On
Behalf Of
?!) for a while.
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos
--
https://mail.python.org/mailman/listinfo/python-list
though at the fact that python, by using indentation rather than
things like curly braces, would make some of the games like shown below
quite a bit more difficult.
-Original Message-
From: Python-list On
Behalf Of Greg Ewing
Sent: Tuesday, September 7, 2021 9:08 PM
To: python-list
another object means you over-rode the meaning of
+= for instance.
-Original Message-
From: Python-list On
Behalf Of Richard Damon
Sent: Tuesday, September 7, 2021 10:09 PM
To: python-list@python.org
Subject: Re: on writing a while loop for rolling two dice
On 9/7/21 3:51 PM, Avi Gross via
w one, just use what works and
leave others that like it alone. Make your own religion and let others keep
theirs.
However, improvements and increased functionality may be more welcome, than
examples where the interface was changed with no benefits.
-Original Message-
From: Python-lis
d:M-b'
Replace D and M with _D_, _M_
>>> percol.view.STACKLINE = re.sub(r'([DM])', r'_\1_',
percol.view.STACKLINE)
'Fold:F1,F2,F3 Push:C-p Pop:_M_-p Script:_M_-s _D_ir:_M_-d _D_ircmd:_M_-b'
Regards,
Roland
> How to achieve this purpose?
>
shown?
Python 3.9.6 (default, Jul 16 2021, 00:00:00)
[GCC 11.1.1 20210531 (Red Hat 11.1.1-3)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> UL = '\033[4m'
>>> UL
'\x1b[4m'
>>> ENDC
On 09/09/2021 22:36, dn via Python-list wrote:
> Even in fairly modest Python constructs, we quickly repeal the one-in,
> one-out philosophy because try...except operates by providing another
> exit-path.
Exceptions are exceptional by their nature (or should be!) As such
they can ar
om/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos
--
https://mail.python.org/mailman/listinfo/python-list
e with a loop.
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos
--
https://mail.python.org/mailman/listinfo/python-list
inal understands unicode, Combining Low Line: U+0332
> might help
>
>
> The problem was to get the string to this mail. In my terminal it was OK.
--
https://mail.python.org/mailman/listinfo/python-list
over and over for "if" statements and perhaps
some kind of case/switch statement and while loops and so on, may be
parsimonious but ...
-Original Message-
From: Python-list On
Behalf Of Alan Gauld via Python-list
Sent: Friday, September 10, 2021 11:58 AM
To: python-list@pytho
age and still fail. Throw in the reality that your loop may
use variable manipulated in parallel by other threads and that your thread may
be killed as it runs and I wonder.
-Original Message-
From: Python-list On
Behalf Of Greg Ewing
Sent: Friday, September 10, 2021 2:40 AM
To: py
/listinfo/python-list
tp://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos
--
https://mail.python.org/mailman/listinfo/python-list
SE statements each with another WHILE.
But is that an ideal way to do this or perhaps instead use some variant of a
switch statement or a dictionary pointing to functions to invoke or
something.
Time to go do something lese of even minor usefulness!
-Original Message-
From: Python-list O
methods too like map/reduce or vectorized operations?
-Original Message-
From: Python-list On
Behalf Of Peter J. Holzer
Sent: Saturday, September 11, 2021 10:42 AM
To: python-list@python.org
Subject: Re: Friday Finking: Contorted loops
On 2021-09-10 12:26:24 +0100, Alan Gauld via Python
f times. But in Pascal I use it regularly.
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos
--
https://mail.python.org/mailman/listinfo/python-list
multiple exit methods and so on. But you can add bells and
whistles like the ELSE clause but not get many to actually use it as there
are more standard ways to do that without confusion, especially if it is
confusing to some.
-Original Message-
From: Python-list On
Behalf Of Peter J. Holzer
Sent
needs to do things in the current environment and
thus only part of the functionality can be moved away.
-Original Message-
From: Python-list On
Behalf Of Stefan Ram
Sent: Saturday, September 11, 2021 10:56 PM
To: python-list@python.org
Subject: Re: Friday Finking: Contorted loops
&quo
hat's good enough for me :-)
On Sunday, 12 September 2021, 18:11:21 BST, Abdur-Rahmaan Janhangeer
wrote:
Used by 4.8k but only ... 4 stars
--
https://mail.python.org/mailman/listinfo/python-list
power can come great responsibility to use it well
and make sure others can figure it out.
-Original Message-----
From: Python-list On
Behalf Of Peter J. Holzer
Sent: Sunday, September 12, 2021 4:49 PM
To: python-list@python.org
Subject: Re: Friday Finking: Contorted loops
On 2021-09-12 10:2
thor/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos
--
https://mail.python.org/mailman/listinfo/python-list
ething, such as an object
like a deque, you get to know it so well that you may stop commenting on how
you are using some built-in feature as it seems routine.
-Original Message-
From: Python-list On
Behalf Of Peter J. Holzer
Sent: Monday, September 13, 2021 3:28 PM
To: python-list@pyth
-list On
Behalf Of Mostowski Collapse
Sent: Thursday, September 16, 2021 3:59 PM
To: python-list@python.org
Subject: Re: ANN: Dogelog Runtime, Prolog to the Moon (2021)
Here is a challenge for Python.
Can Python solve Sudoku?
Mostowski Collapse wrote:
> I am not testing this use-case. Bu
be indented as part of the if statement above?
> #Other than that if user says 'no', reply 'just kidding we're done here haha'
> elif answer == "no" :
> print("just kidding we're done here haha")
But the code always gets to the end, there is nothing
to stop it exiting.
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos
--
https://mail.python.org/mailman/listinfo/python-list
-
From: Python-list On
Behalf Of Alan Gauld via Python-list
Sent: Thursday, September 16, 2021 8:11 PM
To: python-list@python.org
Subject: Re: Question again
On 16/09/2021 06:50, af kh wrote:
> Hello,
> I was doing some coding on a website called replit
I have no idea what that
at
# class
def __init__(self, *a, **k): super().__init__(*a, *k) self.__something = 0
def get_something(self): return self.something
op = opaque.make_opaque()
# But I want to have this as type MyClass. This obviously doesn't work:
my_object = MyClass(op)
# But what does?
--
https://mail.python.org/mailman/listinfo/python-list
l.etree.ElemenTree and .Element to circumvent its idiotic namespace
handling. For that I need inheritance since I want to override the find..()
functions to return my derived MyElement classes. I think it could work but I
somehow need to convert the root Element to a MyElement.
--
https://mail.python.org/mailman/listinfo/python-list
ndard
assumptions with sufficiently evil or badly-written classes.
e.g.:
>>> class intt(int):
... def __add__(self, other):
... return int(self) + int(other) * 2
...
>>> a = intt(2)
>>> b = intt(3)
>>> a + b
8
>>> b + a
7
--
https://mail.python.org/mailman/listinfo/python-list
alm voice until you have reached sufficient safe
distance, then turn and run.
--
https://mail.python.org/mailman/listinfo/python-list
tools. In JSON all that checking is entirely
> handled by the consuming program(s).
That's not true. You can use "JSON Schema" to create a schema
for validating JSON files, and there appear to be at least four
implementations in Python.
--
https://mail.python.org/mailman/listinfo/python-list
take only one LineEdit for all these tree
> situations, or I have to implement 9 small squares for small fonts and a
> big one for the big fonts?
> Any help and suggestion is welcome and appreciated.
>
> Best regards
> Mohsen
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
https://mail.python.org/mailman/listinfo/python-list
.3/
[3] https://bitbucket.org/pypa/distlib/issues/new
--
https://mail.python.org/mailman/listinfo/python-list
well be a fairly slow and
even error-prone way to solve a problem.
-Original Message-----
From: Python-list On
Behalf Of Chris Angelico
Sent: Thursday, September 23, 2021 9:27 AM
To: Python
Subject: Re: XML Considered Harmful
On Thu, Sep 23, 2021 at 10:55 PM Mats Wichmann wrote:
>
>
more like that?
-Original Message-
From: Python-list On
Behalf Of Stefan Ram
Sent: Thursday, September 23, 2021 5:43 PM
To: python-list@python.org
Subject: Re: XML Considered Harmful
"Avi Gross" writes:
>But scientific papers seemingly allow oodles of authors and any time
rmats are also available ;-)
--
https://mail.python.org/mailman/listinfo/python-list
= Foo('abc')
print(foo.x) # prints '{'abc'}
--
https://mail.python.org/mailman/listinfo/python-list
phone)
Original message From: dn via Python-list
Date: 24/9/21 15:42 (GMT+10:00) To:
python-list@python.org Subject: Re: XML Considered Harmful On 24/09/2021 14.07,
Stefan Ram wrote:> dn writes:>> With that, why
not code it as Python expressions, and include the mod
On 2021-09-24, Chris Angelico wrote:
> On Sat, Sep 25, 2021 at 8:53 AM dn via Python-list
> wrote:
>> On 25/09/2021 06.59, Peter J. Holzer wrote:
>> > CSV: Good for tabular data of a single data type (strings). As soon as
>> > there's a second data type (numb
On 2021-09-25, Peter J. Holzer wrote:
> On 2021-09-24 23:32:47 -, Jon Ribbens via Python-list wrote:
>> JSON Schema provides a way to denote composite types.
>
> I probably wasn't clear what I meant. In XML, every element has a tag,
> which is basically its type. So by
https://mail.python.org/mailman/listinfo/python-list
thers have already produced the data using
other tools, in which case you have to read it in at least once/
-Original Message-
From: Python-list On
Behalf Of Michael F. Stemper
Sent: Saturday, September 25, 2021 4:20 PM
To: python-list@python.org
Subject: Re: XML Considered Harmful
O
m numbers. Again, if you
have or build such code, it is not clear it needs to be written to disk and
then read back. You may of course want to save it, perhaps as a log, to show
what your program was working on.
-Original Message-----
From: Python-list On
Behalf Of Michael F. Stemper
Sent:
ike you
do want something easier to create while editing.
-Original Message-----
From: Python-list On
Behalf Of Michael F. Stemper
Sent: Tuesday, September 28, 2021 11:38 AM
To: python-list@python.org
Subject: Re: XML Considered Harmful
On 27/09/2021 20.01, Avi Gross wrote:
> Michae
mainly in PASCAL.
Ah the good old days.
-Original Message-
From: Python-list On
Behalf Of Michael F. Stemper
Sent: Tuesday, September 28, 2021 11:45 AM
To: python-list@python.org
Subject: Re: XML Considered Harmful
On 28/09/2021 02.25, Peter J. Holzer wrote:
> On 2021-09-27 21:01:04 -0
we worked on what Hypertext should look like, ...
-Original Message-
From: Python-list On
Behalf Of Michael F. Stemper
Sent: Tuesday, September 28, 2021 2:41 PM
To: python-list@python.org
Subject: Re: XML Considered Harmful
On 28/09/2021 13.27, Avi Gross wrote:
> Well, Michael, if
does Python have?
[] - list comprehension
{} - dictionary OR set comprehension
() - generator expression
Tuples are incomprehensible and I wonder if any other comprehensions might
make sense to add, albeit we may need new symbols.
-Original Message-
From: Python-list On
Behalf Of Michael
+1000,
Chris Angelico wrote:
On Wed, Sep 29, 2021 at 9:10 AM <2qdxy4rzwzuui...@potatochowder.com> wrote:
On 2021-09-29 at 11:38:22 +1300,
dn via Python-list wrote:
For those of us who remember/can compute in binary, octal, hex, or
decimal as-needed:
Why do programmers confuse
-----
From: Python-list On
Behalf Of Anil Anvesh
Sent: Thursday, September 30, 2021 1:11 AM
To: python-list@python.org
Subject: How to pass a method as argument?
I want to write a python calculator program that has different methods to
add, subtract, multiply which takes 2 parameters. I need to have
private key. If you import my public key you can
automatically decrypt my signature and be sure it came from me. Just
ask and I'll send it to you. Your email software can handle signing.
OpenPGP_signature
Description: OpenPGP digital signature
--
https://mail.python.org/mailman/listinfo/python-list
updated pyzstd for a long time, because
that breaks py7zr which needs a version lower as 0.15.0.
Any chance that py7zr is going to be updated?
--
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
--
https://mail.python.org/mailman/listinfo/python-list
another. Here are examples I just typed:
+1
1
+1
1
+-+-+-1
-1
---1
-1
--1
1
Luckily since Python has no ++ or -- pre or post operators, these are legal,
albeit a tad weird.
-Original Message-
From: Python-list On
Behalf Of dn via Python-list
Sent: Tuesday, October 5, 2021 7:11 PM
To
Grant Edwards writes:
> On 2021-10-04, Cecil Westerhof via Python-list wrote:
>> When I run:
>> pip3 list --outdated
>>
>> I get:
>> Package Version Latest Type
>> --- -- -
>> cryptography 3.4.8 35.0.0
.
-Original Message-
From: Python-list On
Behalf Of Alan Gauld
Sent: Tuesday, October 12, 2021 6:56 PM
To: python-list@python.org
Subject: Fwd: Re: sum() vs. loop
On 10/10/2021 09:49, Steve Keller wrote:
> I have found the sum() function to be much slower than to loop over
> the op
worry
the original might be changed out from under.
My apologies if it was understood to mean I had shown it was copied.
-Original Message-
From: Python-list On
Behalf Of Stefan Ram
Sent: Tuesday, October 12, 2021 9:49 PM
To: python-list@python.org
Subject: Re: sum() vs. loop
&quo
ion?
Best wishes
Rob Cliffe
On 22/10/2021 12:19, Antoon Pardon wrote:
I have a file with python code but the name doesn't end with the '.py'
suffix.
What is the easiest way to import this code as a module without
changing its name?
--
https://mail.python.org/mailman/listinfo/python-list
but the attribute references "self.ctr" is no identifier!
This seems a surprising omission. You'd expect at least 'attributeref'
and 'subscription' to be allowed, if not the whole of 'target'.
--
https://mail.python.org/mailman/listinfo/python-list
to show that
this special case is special enough to be given its own unique
existence. It's a bit surprising that the PEP doesn't discuss this
decision at all.
--
https://mail.python.org/mailman/listinfo/python-list
On 2021-10-23, Chris Angelico wrote:
> On Sun, Oct 24, 2021 at 4:39 AM Jon Ribbens via Python-list
> wrote:
>> On 2021-10-23, Chris Angelico wrote:
>> > In what situations do you need to mutate an attribute and also test
>> > it, and how much hassle is it to simp
need to check your version of Python to see if the
feature exists before ...
-Original Message-
From: Python-list On
Behalf Of Alan Bawden
Sent: Sunday, October 24, 2021 3:53 AM
To: python-list@python.org
Subject: Re: New assignmens ...
It seemed weird to me that only an identifier was
) events?
(I'm not familiar with tkinter, but in wxpython you can.)
And if so, does trapping KeyUp solve the problem?
Best wishes
Rob Cliffe
--
https://mail.python.org/mailman/listinfo/python-list
paste operation for the more complex scenarios
even if they remember the fancy version exists and is bound to some
forgotten series of keys clicked together like control-X control-alt-t or
something.
-Original Message-
From: Python-list On
Behalf Of Antoon Pardon
Sent: Monday, October 2
anced Odobenus
rosmarus operator like ::== ...
-Original Message-
From: Python-list On
Behalf Of Christman, Roger Graydon
Sent: Monday, October 25, 2021 12:48 PM
To: python-list@python.org
Subject: Re: New assignmens ...
Message: 8
Date: Mon, 25 Oct 2021 11:20:52 +0200
From: Antoon Pardo
.
Avi
-Original Message-
From: Python-list On
Behalf Of Chris Angelico
Sent: Monday, October 25, 2021 6:25 PM
To: Python
Subject: Re: Beginner in python
On Tue, Oct 26, 2021 at 9:23 AM Kian Kwame wrote:
>
> hi buddie
> am new to python somebody kindly advice the coding which w
d
not be a souped-up generalized_sum() function when a simple one will do and
be faster when invoked so many times.
And note often what is used is a temporary lambda anonymous function that
may look like \(x,y) x+y ... or whatever syntax your language uses.
-Original Message-----
From: Pytho
in contact and lets you add friends and view them
-Original Message-
From: Python-list On
Behalf Of Chris Angelico
Sent: Tuesday, October 26, 2021 2:36 AM
To: Python
Subject: Re: Create a contact book
On Tue, Oct 26, 2021 at 5:30 PM anders Limpan wrote:
>
> i would like to
the walrus and like it and it makes
coding easier AND they ask for more, it may come, at incremental cost.
-Original Message-
From: Python-list On
Behalf Of Antoon Pardon
Sent: Wednesday, October 27, 2021 2:59 AM
To: python-list@python.org
Subject: Re: New assignmens ...
Op 26/10/2021 om
normally have enough local help.
-Original Message-----
From: Python-list On
Behalf Of dn via Python-list
Sent: Wednesday, October 27, 2021 12:15 AM
To: python-list@python.org
Subject: Re: Create a contact book
On 27/10/2021 04.16, Avi Gross via Python-list wrote:
> Chris,
>
> I thin
are added, for completeness, add the
post-increment version of index++ ...
I mean if cost is no object, and worrying how it may impact current programs
or conflicts is nothing to be concerned about in the interest of some
academic purity ...
-Original Message-
From: Python-list On
Behalf
castic.
--
https://mail.python.org/mailman/listinfo/python-list
I just realized I left out **= so my apologies. Are there other such
abbreviations and does anyone use them?
-Original Message-
From: Python-list On
Behalf Of Avi Gross via Python-list
Sent: Wednesday, October 27, 2021 8:57 PM
To: python-list@python.org
Subject: walrus with a twist
haps a :U instead of Ü or
allowing an SS to be typed instead of ß. When used on character-only
scenarios, obviously you let the users mis-spell these ways but that is not
an ideal way to learn a language or write in it.
-Original Message-----
From: Python-list On
Behalf Of Chris Angelico
Sent:
we got along fine before a walrus came along, ...
or did we?
-Original Message-
From: Python-list On
Behalf Of MRAB
Sent: Wednesday, October 27, 2021 9:21 PM
To: python-list@python.org
Subject: Re: walrus with a twist :+= or ...
On 2021-10-28 02:06, Avi Gross via Python-list wrote:
>
ven't studied the PEP so I don't know if there was a particular
> rationale.
Well, that's what I was saying: there's no rationale - the limitation
is not even mentioned, let alone explained.
--
https://mail.python.org/mailman/listinfo/python-list
p within reasonable (printable) line lengths gets hard.
MyHumoungousDictionaryContainingElectionResults[SomeCountyInSomeStateOfTheUS
] =
MyHumoungousDictionaryContainingElectionResults[SomeCountyInSomeStateOfTheUS
] + TheOfficialCertifiedVoteCountOfThisRegion
-Original Message-
From: Python-
, 5+cos(x))) …
Not necessarily pretty and I am sure there may well be reasons it won’t work,
but I wonder if it will work in more places than the currently minimal walrus
operator.
From: Antoon Pardon
Sent: Thursday, October 28, 2021 3:03 AM
To: Avi Gross ; python-list@python.org
Subj
ything like I am describing (or something much better)
is being looked at?
-Original Message-----
From: Python-list On
Behalf Of Peter J. Holzer
Sent: Thursday, October 28, 2021 5:08 AM
To: python-list@python.org
Subject: Re: walrus with a twist :+= or ...
On 2021-10-27 22:15:09 -0400, Avi
s. It is
not at all a foreign concept to have multiple names point to the same things.
Often, it helps make the code clearer.
-----Original Message-
From: Python-list On
Behalf Of Stefan Ram
Sent: Thursday, October 28, 2021 2:07 PM
To: python-list@python.org
Subject: Re: The task is to inven
, that should do even on standard keyboards.
∴
-Original Message-
From: Python-list On
Behalf Of Chris Angelico
Sent: Thursday, October 28, 2021 3:24 PM
To: Python
Subject: Re: walrus with a twist :+= or ...
On Fri, Oct 29, 2021 at 5:53 AM Avi Gross via Python-list
wrote:
> Is ther
gs it follows:
A real customer walks into the bar and doesn't order anything,
but asks where the toilets are.
The bar explodes in flames.
--
https://mail.python.org/mailman/listinfo/python-list
tting down some such abilities is exactly why
people code defensively and try to hide the inner aspects of an object by doing
things like having a proxy in front of it and creating getters and setters.
-Original Message-
From: Python-list On
Behalf Of Antoon Pardon
Sent: Friday, October
it for them, as in some asking about HW.
I am not joining this one. 😉
-Original Message-
From: Python-list On
Behalf Of Karsten Hilbert
Sent: Sunday, October 31, 2021 4:00 PM
To: python-list@python.org
Subject: Re: How to apply a self defined function in Pandas
Am Sun, Oct 31, 2021 at
As it reaches the contact() statement, I get this error:
TypeError: first argument must be an iterable of pandas objects, you passed an
object of type "DataFrame"
Based on the definition I wrote in the beginning of the code, "dict[name]"
should be a dataframe. Isn't that?
How can I fix that?
Regards,
Mahmood
--
https://mail.python.org/mailman/listinfo/python-list
 0
M3Â 0, 'K1':Â Â Â Value
0 10
1Â 5
2 10
6Â 2
7Â 2
8Â 2, 'K2':Â Â Â Value
3 20
4 10
5 15}
For K1, there should be three rows and two columns labeled as Value.
Regards,
Mahmood
--
https://mail.python.org/mailman/listinfo/python-list
  Value
0Â Â 10.0NaN
15.0NaN
2Â Â 10.0NaN
6NaN2.0
7NaN2.0
8NaN2.0, 'K2':Value
3 20
4 10
5 15}
Regards,
Mahmood
--
https://mail.python.org/mailman/listinfo/python-list
uth\_service_account_info.py", line
71, in from_filename
with io.open(filename, 'r', encoding='utf-8') as json_file:
FileNotFoundError: [Errno 2] No such file or directory:
'E:\\comms-nlp-service\\src\\GoogleAuthentication\\ xyz .json'
"}
Any suggestions on this would be a great help.
--
Thanks,
Vijay Karavadra
--
https://mail.python.org/mailman/listinfo/python-list
2801 - 2900 of 5713 matches
Mail list logo