[Tutor] Slack Token Invalid Syntax

Alan G alan.gauld at btinternet.com
Tue Apr 19 13:50:36 EDT 2016


   Apologies for top posting.... I blame the tablet!

   Malcolm, don't make us guess, show us how you put the quotes in and the
   error messages (in full).

   Alan g.

   Sent from my Fonepad

   Malcolm Boone <oasis.boone at gmail.com> wrote:

   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 <[1]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 = [2]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
     [3]http://www.alan-g.me.uk/
     [4]http://www.amazon.com/author/alan_gauld
     Follow my photo-blog on Flickr at:
     [5]http://www.flickr.com/photos/alangauldphotos

     _______________________________________________
     Tutor maillist  -  [6]Tutor at python.org
     To unsubscribe or change subscription options:
     [7]https://mail.python.org/mailman/listinfo/tutor

References

   Visible links
   1. mailto:alan.gauld at btinternet.com
   2. http://oasis-vape.slack.com/
   3. http://www.alan-g.me.uk/
   4. http://www.amazon.com/author/alan_gauld
   5. http://www.flickr.com/photos/alangauldphotos
   6. mailto:Tutor at python.org
   7. https://mail.python.org/mailman/listinfo/tutor


More information about the Tutor mailing list