Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #68604

Re: File Path/Global name issue

References <2089d20b-aa60-462f-aad0-51109849cf36@googlegroups.com>
Date 2014-03-20 15:05 -0500
Subject Re: File Path/Global name issue
From Skip Montanaro <skip@pobox.com>
Newsgroups comp.lang.python
Message-ID <mailman.8311.1395345950.18130.python-list@python.org> (permalink)

Show all headers | View raw


On Thu, Mar 20, 2014 at 2:55 PM,  <roy.snuffles@gmail.com> wrote:
> File "simpleRun.py", line 29
>     help= ~/home/lai/Downloads/influence_matrix_files/hprd_inf_.mat)
>            ^
> SyntaxError: invalid syntax

You need quotes around the filename. It's a string literal.

Skip

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

File Path/Global name issue roy.snuffles@gmail.com - 2014-03-20 12:55 -0700
  Re: File Path/Global name issue Skip Montanaro <skip@pobox.com> - 2014-03-20 15:05 -0500
    Re: File Path/Global name issue roy.snuffles@gmail.com - 2014-03-20 13:08 -0700
      Re: File Path/Global name issue Skip Montanaro <skip@pobox.com> - 2014-03-20 15:15 -0500
  Re: File Path/Global name issue Peter Otten <__peter__@web.de> - 2014-03-20 21:26 +0100
  Re: File Path/Global name issue John Gordon <gordon@panix.com> - 2014-03-20 21:31 +0000

csiph-web