[Tutor] Slack Token Invalid Syntax

Malcolm Boone oasis.boone at gmail.com
Tue Apr 19 13:05:39 EDT 2016


So you are saying the right side should be a string, how do I do that? When
I put quotes around the token it creates a dozen or so new errors. Unless
I'm not even putting the quotes on correctly.

On Sat, Apr 16, 2016 at 5:18 PM, Alan Gauld <alan.gauld at btinternet.com>
wrote:

> On 14/04/16 01:22, Malcolm Boone wrote:
>
> > advance if I've done this wrong.
>
> Nope, for a first post its pretty good. :-)
>
> > this error:
> >
> >   File "C:\Users\malco\Anaconda3\Lib\Slack-File-Delete.py", line 6
> >     _token = xoxp-14301025207-14298191955-14452030292-**********
> >   SyntaxError: invalid syntax
> >
>
> Which is quite correct, that's not a valid line of Python.
> I suspect the right hand side should be a string?
>
> >
> > _token = xoxp-14301025207-14298191955-14452030292-**********
> > _domain = oasis-vape.slack.com
>
> And I'm pretty sure the same is true of the _domain line too?
>
>
>
> --
> 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
>
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
>


More information about the Tutor mailing list