ntax
> ----
>
> This isn't great, but experience with lots of programming languages
> tells me that an error is noticed where or after it actually occurs, so
> it's easy to see that there is a comma missing just bef
On 07Aug2023 08:02, Barry wrote:
On 7 Aug 2023, at 05:28, Cameron Simpson via Python-list
wrote:
Used to use a Pascal compiler once which was uncannily good at
suggesting where you'd missing a semicolon.
Was that on DEC VMS? It was a goal at DEC for its compilers to do this well.
No, a
> On 7 Aug 2023, at 05:28, Cameron Simpson via Python-list
> wrote:
>
> Used to use a Pascal compiler once which was uncannily good at suggesting
> where you'd missing a semicolon.
Was that on DEC VMS? It was a goal at DEC for its compilers to do this well.
They could output the errors in
On 06Aug2023 22:41, Peter J. Holzer wrote:
Mostly, error messages got a lot better in Python 3.10, but this one had
me scratching my head for a few minutes.
Consider this useless and faulty script:
r = {
"x": (1 + 2 +
paste step, per above?
(and need for my assumption of where the error is located)
Hope you've exerted copyright over the "clairvoyant" description!
* JetBrains kindly sponsor our PUG with a monthly door-prize.
--
--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list
ot;: (4 + 5 + 6)
^
SyntaxError: invalid syntax
This isn't great, but experience with lots of programming languages
tells me that an error is noticed where or after it actually occurs, so
it's easy to see that there is a comma missing
[EMAIL PROTECTED] wrote:
... And my problem was that the commands worked on windows but not on
linux.
By the way, shouldn't you be using numpy? I thought numarray was going
away by mid-2008 i.e. now.
I know, but i'm not sure that it's the problem.
It's your job to get certain of some
Maybe I didn't explain correctly what i wanted to do. I have a
database and I just want to pick data under a certain criteria. So I
wanted to use a function like nonzero or find or where to find the
line for corresponding to the data following this criteria. So to find
the lines, I used nonzero
On Jun 27, 7:54 pm, [EMAIL PROTECTED] wrote:
Maybe I didn't explain correctly what i wanted to do. I have a
database and I just want to pick data under a certain criteria. So I
wanted to use a function like nonzero or find or where to find the
line for corresponding to the data following this
There was an error with the name of the variable I would not ask
this if it was just a question of different variable names !
diff_temp=(logical_and(values[:,5] -2,values[:,5] 2)).nonzero()
new_values=values[diff_temp,:]
Okay, I'm going to try to explain that more specifically that I
On Jun 27, 10:12 pm, [EMAIL PROTECTED] wrote:
There was an error with the name of the variable I would not ask
this if it was just a question of different variable names !
Calm down. Stop shouting. It is not evident whether the above means
that diff_temp_Stumpf was an error (should
I think that you mean that diff_temp will be an array of the numberS
(plural) of the lines (rows?) in values array that met the -2 x 2
criterion. Now you want to be able to use diff_temp to get the
corresponding subset of some other array. Am I getting close?
I think that you're getting
I think that you mean that diff_temp will be an array of the numberS
(plural) of the lines (rows?) in values array that met the -2 x 2
criterion. Now you want to be able to use diff_temp to get the
corresponding subset of some other array. Am I getting close?
I think that you're getting
I think that you mean that diff_temp will be an array of the numberS
(plural) of the lines (rows?) in values array that met the -2 x 2
criterion. Now you want to be able to use diff_temp to get the
corresponding subset of some other array. Am I getting close?
I think that you're getting
I think that you mean that diff_temp will be an array of the numberS
(plural) of the lines (rows?) in values array that met the -2 x 2
criterion. Now you want to be able to use diff_temp to get the
corresponding subset of some other array. Am I getting close?
I think that you're getting
I think that you mean that diff_temp will be an array of the numberS
(plural) of the lines (rows?) in values array that met the -2 x 2
criterion. Now you want to be able to use diff_temp to get the
corresponding subset of some other array. Am I getting close?
I think that you're getting
Hello,
I'm trying to assign data into an array with the nonzero function.
There is my code.
from numarray import *
diff_temp=(logical_and(values[:,5] -2,values[:,5] 2)).nonzero()
This command works fine but when I apply the following,
values_matchup=values_Stumpf[diff_temp_Stumpf,:]
I have
[EMAIL PROTECTED] wrote:
Hello,
I'm trying to assign data into an array with the nonzero function.
There is my code.
from numarray import *
diff_temp=(logical_and(values[:,5] -2,values[:,5] 2)).nonzero()
Does that have something to do with the question below?
This command works fine
hello,
when i run the following code to Read and tokenize data from a tagged text as follows :
from nltk.corpus import brownfrom nltk.tagger import TaggedTokenizerfrom nltk.tokenizer import *tagged_txt_str=open('corpus.txt'
19 matches
Mail list logo