On 2/22/2023 12:00 AM, orzodk wrote:
Thomas Passin writes:
On 2/21/2023 9:00 PM, Hen Hanna wrote:
what editor do you (all) use to write Python code? (i use Vim)
I usually use the Leo-editor (https://github.com/leo-editor/leo-editor
or PyPi). It's wonderful once you get it figured out but
Thomas Passin writes:
> On 2/21/2023 9:00 PM, Hen Hanna wrote:
>> what editor do you (all) use to write Python code? (i use Vim)
>
> I usually use the Leo-editor (https://github.com/leo-editor/leo-editor
> or PyPi). It's wonderful once you get it figured out but it's got a
> real learning curve
On 2/21/2023 9:00 PM, Hen Hanna wrote:
what editor do you (all) use to write Python code? (i use Vim)
I usually use the Leo-editor (https://github.com/leo-editor/leo-editor
or PyPi). It's wonderful once you get it figured out but it's got a
real learning curve.
--
https://mail.python.org
HH,
Just FYI, as a seeming newcomer to Python, there is a forum that may fit
some of your questions better as it is for sort of tutoring and related
purposes:
https://mail.python.org/mailman/listinfo/tutor
I am not discouraging you from posting here, just maybe not to overwhelm
this group with m
On Tue, 21 Feb 2023 18:00:20 -0800 (PST), Hen Hanna wrote:
> what editor do you (all) use to write Python code? (i use Vim)
I've used vim (gvim to be precise) for years and that has been my editor
of choice for Python. Lately I've been using Spyder.
As background, most of my Python work is wit
On 2/21/2023 8:52 PM, Hen Hanna wrote:
On Tuesday, February 21, 2023 at 10:39:54 AM UTC-8, Thomas Passin wrote:
On 2/21/2023 12:32 PM, Axy via Python-list wrote:
On 21/02/2023 04:13, Hen Hanna wrote:
(A) print( max( * LisX ))
(B) print( sum( * LisX ))
Vim 2% of the time, PyCharm (with VI plugin) 98% of the time.
From: Python-list on
behalf of Hen Hanna
Date: Tuesday, February 21, 2023 at 9:38 PM
To: python-list@python.org
Subject: Python + Vim editor
*** Attention: This is an external email. Use caution responding, opening
attachments or c
On Tuesday, February 21, 2023 at 10:39:54 AM UTC-8, Thomas Passin wrote:
> On 2/21/2023 12:32 PM, Axy via Python-list wrote:
> > On 21/02/2023 04:13, Hen Hanna wrote:
> >>
> >> (A) print( max( * LisX ))
> >> (B) print( sum( * LisX ))<--- Bad
> >
what editor do you (all) use to write Python code? (i use Vim)
yesterday (?) i started noticing this with Bing search
e.g. i type [synonymrich] whch gives several synonyms,
and so (next) i try to replace [rich] by
something like
Axy,
Nobody denies some of the many ways you can make a good design. But people
have different priorities that include not just conflicts between elements
of a design but also equally important factors like efficiency and deadlines
and not breaking too badly with the past.
You can easily enough d
On 21/02/2023 19:11, avi.e.gr...@gmail.com wrote:
In your own code, you may want to either design your own functions, or use them
as documented or perhaps create your own wrapper functions that carefully
examine what you ask them to do and re-arrange as needed to call the
function(s) you want
On Tuesday, February 21, 2023 at 9:33:29 AM UTC-8, Axy wrote:
> On 21/02/2023 04:13, Hen Hanna wrote:
> >
> > (A) print( max( * LisX ))
> > (B) print( sum( * LisX )) <--- Bad syntax !!!
> >
> > What's most surprising is (A) is ok, and (B) is not.
> >
> > even tho' max() and sum() hav
There are limits to anyone arguing for designs to be the way they want or
expect and Roel has explained this one below.
When it comes to designing a function, lots of rules people expect are beyond
irrelevant. Many functions can be implemented truly hundreds of ways with
varying numbers of argu
On 2/21/2023 12:32 PM, Axy via Python-list wrote:
On 21/02/2023 04:13, Hen Hanna wrote:
(A) print( max( * LisX ))
(B) print( sum( * LisX )) <--- Bad
syntax !!!
What's most surprising is (A) is ok, and (B) is not.
even th
Hen Hanna schreef op 21/02/2023 om 5:13:
(A) print( max( * LisX ))
(B) print( sum( * LisX ))<--- Bad syntax !!!
What's most surprising is (A) is ok, and (B) is not.
even tho' max() and sum() have (basically) the same
There is a very common misunderstanding by people learning python that a
tuple has something to do with parentheses. It confused me too at first.
A tuple is made by the use of one or more commas and no parentheses are
needed except when, like everything else, they are used for grouping as in
the a
On 21/02/2023 04:13, Hen Hanna wrote:
(A) print( max( * LisX ))
(B) print( sum( * LisX ))<--- Bad syntax !!!
What's most surprising is (A) is ok, and (B) is not.
even tho' max() and sum() have (basically) the same sy
On Monday, February 20, 2023 at 7:57:14 PM UTC-8, Michael Torrie wrote:
> On 2/20/23 20:36, Hen Hanna wrote:
> > For a while, i've been curious about a [Tuple Comprehension]
> I've never heard of a "Tuple comprehension." No such thing exists as
> far as I know.
> > So finally i tried it, and the
On 20Feb2023 19:36, Hen Hanna wrote:
For a while, i've been curious about a [Tuple Comprehension]
So finally i tried it, and the result was a bit surprising...
X= [ x for x in range(10) ]
This is a list comprehension, resulting in a list as its result.
X= ( x for x in range(10) )
19 matches
Mail list logo