Fwd: [BUG] missing ')' causes syntax error on next line

2020-07-22 Thread Jeff Linahan
-- Forwarded message -
From: Jeff Linahan 
Date: Wed, Jul 22, 2020, 5:23 PM
Subject: Fwd: [BUG] missing ')' causes syntax error on next line
To: 


Subscribing to the mailing list as per the bot's request and resending.

-- Forwarded message -
From: Jeff Linahan 
Date: Wed, Jul 22, 2020, 5:20 PM
Subject: [BUG] missing ')' causes syntax error on next line
To: 


See attached image.  Would be nice if it printed "SyntaxError: unbalanced
parens" as it can difficult to see the problem if code like this is run in
an environment that only prints the problematic line, which in this case
the compiler is confused and one line off.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Fwd: [BUG] missing ')' causes syntax error on next line

2020-08-26 Thread Greg Ewing

On 23/07/20 12:23 pm, dn wrote:

You be sure to have a nice day, now!


How do you feel about you be sure to have a nice day, now?

--
Greg
--
https://mail.python.org/mailman/listinfo/python-list


Re: Fwd: [BUG] missing ')' causes syntax error on next line

2020-07-22 Thread Ethan Furman

On 7/22/20 2:57 PM, Jeff Linahan wrote:


Subscribing to the mailing list as per the bot's request and resending.


*beep* *whir*

WE ARE NOT

*click* *whi*

A BOT.

*bzzzt*

WE ARE

*bzzzt* *click*

ADVANCED LIFE

*whi*

FORMS

*click*

*beep*

.

--
~eTHAN~
pYTHON lIST mODERATOR
NoT a BoT  (i ThInK...)
--
https://mail.python.org/mailman/listinfo/python-list


Re: Fwd: [BUG] missing ')' causes syntax error on next line

2020-07-22 Thread Joe Pfeiffer
Jeff Linahan  writes:
>
> See attached image.  Would be nice if it printed "SyntaxError: unbalanced
> parens" as it can difficult to see the problem if code like this is run in
> an environment that only prints the problematic line, which in this case
> the compiler is confused and one line off.

It would be indeed be nice, but it's reporting the error when it finds
it.  Suppose you were typing the program in at the console -- how could
it possibly go back and report the error on the previous line?  Given
python's syntax, does the error even really exist yet on that
previous line?
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Fwd: [BUG] missing ')' causes syntax error on next line

2020-07-22 Thread Kyle Stanley
>
> *beep* *whir*
>
> WE ARE NOT
>
> *click* *whi*
>
> A BOT.


*dial up noises*

SPEAK FOR YOURSELF


On Wed, Jul 22, 2020 at 6:46 PM Ethan Furman  wrote:

> On 7/22/20 2:57 PM, Jeff Linahan wrote:
>
> > Subscribing to the mailing list as per the bot's request and resending.
>
> *beep* *whir*
>
> WE ARE NOT
>
> *click* *whi*
>
> A BOT.
>
> *bzzzt*
>
> WE ARE
>
> *bzzzt* *click*
>
> ADVANCED LIFE
>
> *whi*
>
> FORMS
>
> *click*
>
> *beep*
>
> .
>
> --
> ~eTHAN~
> pYTHON lIST mODERATOR
> NoT a BoT  (i ThInK...)
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Fwd: [BUG] missing ')' causes syntax error on next line

2020-07-22 Thread dn via Python-list

On 23/07/2020 10:46, Ethan Furman wrote:

On 7/22/20 2:57 PM, Jeff Linahan wrote:


Subscribing to the mailing list as per the bot's request and resending.


*beep* *whir*

WE ARE NOT

*click* *whi*

A BOT.

*bzzzt*

WE ARE

*bzzzt* *click*

ADVANCED LIFE

*whi*

FORMS

*click*

*beep*

.

--
~eTHAN~
pYTHON lIST mODERATOR
NoT a BoT  (i ThInK...)



Enjoyed the joke!
(and thanks for all the efforts you exert on our behalf)


However, questions remain:-

Robot: any machine or mechanical device that operates automatically with 
humanlike skill


See also, Turing Machine 
(https://www.cl.cam.ac.uk/projects/raspberrypi/tutorials/turing-machine/one.html)

--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list


Re: Fwd: [BUG] missing ')' causes syntax error on next line

2020-07-22 Thread Chris Angelico
On Thu, Jul 23, 2020 at 9:17 AM dn via Python-list
 wrote:
> However, questions remain:-
>
> Robot: any machine or mechanical device that operates automatically with
> humanlike skill
>

What about a human that operates mechanically with merely robot-like
skill? I'm pretty sure I've spoken to them on the phone many times.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Fwd: [BUG] missing ')' causes syntax error on next line

2020-07-22 Thread dn via Python-list

On 23/07/2020 11:51, Chris Angelico wrote:

On Thu, Jul 23, 2020 at 9:17 AM dn via Python-list
 wrote:

However, questions remain:-

Robot: any machine or mechanical device that operates automatically with
humanlike skill



What about a human that operates mechanically with merely robot-like
skill? I'm pretty sure I've spoken to them on the phone many times.

Can't say - I've never tried to speak with @Ethan over the phone.

...and what do you call the robot which can't/won't operate by phone, 
and takes a week to respond to your email - and then often by asking for 
information previously provided, eg a certain book-seller's "Mr Neil 
would you please confirm that your voucher number is 12345?"



However, on the Turing machine side, I recall creating an abbreviated 
version for a University Open Day - way back in the seventies and when 
VDU-terminals were a novelty and thus curiosities.


The program worked in similar manner to the famous "Eliza" 
(https://en.wikipedia.org/wiki/ELIZA) - attempting to give an illusion 
of understanding and conversation. It stored a mere top-twenty phrases. 
When the user entered some text, it would randomly select one of these 
and 'reply'. The user was invited to give feedback, ie whether it was a 
good reply or not. These were used to score/grade the phrases. Then the 
user's data-entry was added to the 'database of phrases' in place of the 
existing phrase with the lowest score. Thus the conversation continued.


'On the day', many of our visitors were convinced that either the 
computer was capable of holding a conversation (à la Turing), or that 
there was a person hidden-away somewhere, providing the 'answers'.


Most telling, reviewing the 'database' at the end, showed twenty of the 
most innocuous phrases in English conversation - those which were so 
multi-purpose that they could be used in almost any situation (phatic 
phrases: https://en.wikipedia.org/wiki/Phatic_expression).


You be sure to have a nice day, now!
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list


Re: Fwd: [BUG] missing ')' causes syntax error on next line

2020-07-22 Thread Gene Heskett
On Wednesday 22 July 2020 19:51:42 Chris Angelico wrote:

> On Thu, Jul 23, 2020 at 9:17 AM dn via Python-list
>
>  wrote:
> > However, questions remain:-
> >
> > Robot: any machine or mechanical device that operates automatically
> > with humanlike skill
>
> What about a human that operates mechanically with merely robot-like
> skill? I'm pretty sure I've spoken to them on the phone many times.
>
> ChrisA

Thats more common than you might think Chris.  Whats nice is that you can 
often take over that robot and use his or her hands to troubleshoot an 
off the air tv transmitter from a thousand miles away.  That was my 
field of expertise for 60 years.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Fwd: [BUG] missing ')' causes syntax error on next line

2020-07-22 Thread Chris Angelico
On Thu, Jul 23, 2020 at 10:30 AM Gene Heskett  wrote:
>
> On Wednesday 22 July 2020 19:51:42 Chris Angelico wrote:
>
> > On Thu, Jul 23, 2020 at 9:17 AM dn via Python-list
> >
> >  wrote:
> > > However, questions remain:-
> > >
> > > Robot: any machine or mechanical device that operates automatically
> > > with humanlike skill
> >
> > What about a human that operates mechanically with merely robot-like
> > skill? I'm pretty sure I've spoken to them on the phone many times.
> >
> > ChrisA
>
> Thats more common than you might think Chris.  Whats nice is that you can
> often take over that robot and use his or her hands to troubleshoot an
> off the air tv transmitter from a thousand miles away.  That was my
> field of expertise for 60 years.
>

Ah yes. I was more thinking of the ones you get when you call for
support. "Have you rebooted your computer and router?" "THERE IS NO
ADSL SYNC. Rebooting my computer is not going to change that."

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Fwd: [BUG] missing ')' causes syntax error on next line

2020-07-23 Thread Chris Angelico
On Fri, Jul 24, 2020 at 4:00 AM Dennis Lee Bieber  wrote:
>
> On Thu, 23 Jul 2020 09:51:42 +1000, Chris Angelico 
> declaimed the following:
>
> >On Thu, Jul 23, 2020 at 9:17 AM dn via Python-list
> > wrote:
> >> However, questions remain:-
> >>
> >> Robot: any machine or mechanical device that operates automatically with
> >> humanlike skill
> >>
> >
> >What about a human that operates mechanically with merely robot-like
> >skill? I'm pretty sure I've spoken to them on the phone many times.
>
> Would that be... a computer?
>
>
>
> Using the original meaning of "one who computes"
>

I suspect that even that is too generous for some of them. They merely
follow instructions like good little automatons, until the caller
gives up...

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Fwd: [BUG] missing ')' causes syntax error on next line

2020-07-23 Thread Jeff Linahan
Interesting PEG thing.  C++ compilers are getting better at suggesting
fixes for minor syntax errors (in 2011 on MSVC I remember seeing pages of
errors for forgetting a semicolon after a struct.) but python seems to be
lagging behind in this regard.. will check out superhelp, maybe it'll help
me patiently wait for the day where the python compiler does machine
learning on my specific style of mistakes to suggest fixes lol.

On Thu, Jul 23, 2020, 2:09 PM Chris Angelico  wrote:

> On Fri, Jul 24, 2020 at 4:00 AM Dennis Lee Bieber 
> wrote:
> >
> > On Thu, 23 Jul 2020 09:51:42 +1000, Chris Angelico 
> > declaimed the following:
> >
> > >On Thu, Jul 23, 2020 at 9:17 AM dn via Python-list
> > > wrote:
> > >> However, questions remain:-
> > >>
> > >> Robot: any machine or mechanical device that operates automatically
> with
> > >> humanlike skill
> > >>
> > >
> > >What about a human that operates mechanically with merely robot-like
> > >skill? I'm pretty sure I've spoken to them on the phone many times.
> >
> > Would that be... a computer?
> >
> >
> >
> > Using the original meaning of "one who computes"
> >
>
> I suspect that even that is too generous for some of them. They merely
> follow instructions like good little automatons, until the caller
> gives up...
>
> ChrisA
> --
> https://mail.python.org/mailman/listinfo/python-l
> 
>
-- 
https://mail.python.org/mailman/listinfo/python-list