On 12/09/19 10:37 AM, Alan Bawden wrote:
DL Neil writes:
... However, reversing the question in my mind led me to ask (myself):
how many scripts do I have (in "production use") which are ever used
(also) as a module by some other script? I think the answer is/was:
"none"! Accordingly, (spoiler
On 12/09/19 5:06 PM, Srinivas Pullabhotla wrote:
Hello,
I am trying to fetch email messages from a gmail inbox. So, there will be 1000s
of messages sent to Inbox and since they are 1000s, the emails are grouped 100
per each email item.
When I tried this method, the program only fetches some b
Hello,
I am trying to fetch email messages from a gmail inbox. So, there will be 1000s
of messages sent to Inbox and since they are 1000s, the emails are grouped 100
per each email item.
When I tried this method, the program only fetches some but not all and
especially it happens with grouped
On 12Sep2019 08:24, DL Neil wrote:
In this day-and-age do you have a script in live/production-use,
which is also a module? What is the justification/use case?
Many. Many many.
1: Many of my modules run their unit tests if invoked as the main
programme.
2: Several modules are their own uti
DL Neil writes:
> ... However, reversing the question in my mind led me to ask (myself):
> how many scripts do I have (in "production use") which are ever used
> (also) as a module by some other script? I think the answer is/was:
> "none"! Accordingly, (spoiler alert: this statement may be heresy
On Thu, Sep 12, 2019 at 7:34 AM DL Neil via Python-list
wrote:
>
> On 12/09/19 8:43 AM, Chris Angelico wrote:
> > Yes, absolutely. It's the easiest way to share code between two
> > scripts. Here's an example that I created recently:
> >
> > https://github.com/Rosuav/shed/blob/master/BL1_find_item
On 12/09/19 8:43 AM, Chris Angelico wrote:
On Thu, Sep 12, 2019 at 6:34 AM DL Neil via Python-list
wrote:
In this day-and-age do you have a script in live/production-use, which
is also a module? What is the justification/use case?
Yes, absolutely. It's the easiest way to share code between
On Thu, Sep 12, 2019 at 6:34 AM DL Neil via Python-list
wrote:
>
> In this day-and-age do you have a script in live/production-use, which
> is also a module? What is the justification/use case?
>
Yes, absolutely. It's the easiest way to share code between two
scripts. Here's an example that I cre
In this day-and-age do you have a script in live/production-use, which
is also a module? What is the justification/use case?
(discounting distutils and similar installation tools, or unit testing
methodology)
There are over 500 questions on StackOverflow which refer to Python's
if _
On 11/09/2019 17:48, Manasiz Paul wrote:
Dear Sir/Madam,
I have installed the latest version of Python but while running it, I am
facing this issue continuously.
[image: Untitled.png]
I'm afraid the mailing list stripped off your attachment. Please copy
and paste the error messages into the
Sayth Renshaw schreef op 11/09/2019 om 12:11:
I want to allow as many lists as needed to be passed into a function.
But how can I determine how many lists have been passed in?
I expected this to return 3 but it only returned 1.
matrix1 = [[1, -2], [-3, 4],]
matrix2 = [[2, -1], [0, -1]]
matrix3
Dear Sir/Madam,
I have installed the latest version of Python but while running it, I am
facing this issue continuously.
[image: Untitled.png]
Kindly let me know how to resolve this issue.
--
https://mail.python.org/mailman/listinfo/python-list
> I expected this to return 3 but it only returned 1.
>
> matrix1 = [[1, -2], [-3, 4],]
> matrix2 = [[2, -1], [0, -1]]
> matrix3 = [[2, -1], [0, -1]]
>
> def add(*matrix):
> print(len(locals()))
>
> print(add(matrix1, matrix2))
In this case, locals will be a dictionary with exactly one key.
Le 11/09/2019 à 12:11, Sayth Renshaw a écrit :
Hi
I want to allow as many lists as needed to be passed into a function.
But how can I determine how many lists have been passed in?
I expected this to return 3 but it only returned 1.
matrix1 = [[1, -2], [-3, 4],]
matrix2 = [[2, -1], [0, -1]]
mat
On Wednesday, 11 September 2019 20:25:32 UTC+10, Sayth Renshaw wrote:
> On Wednesday, 11 September 2019 20:11:21 UTC+10, Sayth Renshaw wrote:
> > Hi
> >
> > I want to allow as many lists as needed to be passed into a function.
> > But how can I determine how many lists have been passed in?
> >
On Wednesday, 11 September 2019 20:11:21 UTC+10, Sayth Renshaw wrote:
> Hi
>
> I want to allow as many lists as needed to be passed into a function.
> But how can I determine how many lists have been passed in?
>
> I expected this to return 3 but it only returned 1.
>
> matrix1 = [[1, -2], [-3,
Hi
I want to allow as many lists as needed to be passed into a function.
But how can I determine how many lists have been passed in?
I expected this to return 3 but it only returned 1.
matrix1 = [[1, -2], [-3, 4],]
matrix2 = [[2, -1], [0, -1]]
matrix3 = [[2, -1], [0, -1]]
# print(add(matrix1, ma
17 matches
Mail list logo