X-FeedAbuse: http://nntpfeed.proxad.net/abuse.pl feeded by 78.192.65.63 Path: csiph.com!usenet.pasdenom.info!nntpfeed.proxad.net!news.muarf.org!news.roellig-ltd.de!open-news-network.org!border2.nntp.ams1.giganews.com!border1.nntp.ams1.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'source,': 0.04; 'porting': 0.09; 'subject:module': 0.09; 'cc:addr:python-list': 0.10; 'python': 0.11; 'python.': 0.11; 'syntax': 0.13; '2.7?': 0.16; '3.3.': 0.16; 'mark,': 0.16; 'minor,': 0.16; 'reinstated': 0.16; 'syntaxerror:': 0.16; 'wrote:': 0.16; 'python?': 0.18; '>>>': 0.20; 'library': 0.20; 'cc:2**0': 0.21; 'cc:addr:python.org': 0.21; '3.x': 0.22; 'lawrence': 0.22; 'strip': 0.22; '3.0': 0.23; 'ease': 0.23; 'seems': 0.24; 'header:In-Reply-To:1': 0.24; 'comfortable': 0.27; 'message-id:@mail.gmail.com': 0.28; 'fine': 0.29; "i'm": 0.29; 'guess': 0.29; 'url:mailman': 0.31; 'url:python': 0.33; 'another': 0.34; 'file': 0.34; 'received:google.com': 0.34; "i'll": 0.34; 'url:listinfo': 0.35; 'question,': 0.35; 'unicode': 0.35; 'really': 0.35; 'but': 0.36; 'url:org': 0.36; 'there': 0.36; 'hi,': 0.37; 'should': 0.37; 'subject:: ': 0.37; 'environment.': 0.37; 'front': 0.38; 'virtual': 0.38; 'version': 0.38; 'mark': 0.40; 'your': 0.60; 'even': 0.61; 'more': 0.62; 'due': 0.65; 'therefore': 0.65; 'here': 0.66; 'demand': 0.79; 'novice': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=Urb13W7k2AmwY4BGhkeWlZWc+WTc+iHFnJfzvz5fK0Y=; b=Rl9Nhpy2KjFbCqc7JE11zh9qUjKKhje3anqVgFYxOu3ZuDO+tLiiY0co9u5u3WIxPo Mj5p1cQazUQ7weWtY/w6RfrN8pUrFmFWGDys6PpPPkd1PmuETMgp7y636diMZ30V7dxP /WlhQb+5SHNnpmr6opIFpnzrU9+AqerdhUTLmZPULECYXcufdt8+dTW6/DsaI9uDTfxU DVVXrttGqUPB0Wm5jKYy3gyCw8yqqHhPVlwpzPfFFLGVxjBvCzF20r93hUQrzm4mSZ5Z GwQlff8V6DDjdZfm2EWMjs2i9EPmFm7NzrYFkFop2fE+88WAldmSPhFR+vwcwB9rHs+O xp/w== MIME-Version: 1.0 X-Received: by 10.180.218.137 with SMTP id pg9mr3228012wic.79.1432712826482; Wed, 27 May 2015 00:47:06 -0700 (PDT) In-Reply-To: References: Date: Wed, 27 May 2015 09:47:06 +0200 Subject: Re: SyntaxError on progress module From: David Palao To: alb Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 35 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1432712834 news.xs4all.nl 2922 [2001:888:2000:d::a6]:45523 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:91289 2015-05-27 9:30 GMT+02:00 alb : > Hi Mark, > Mark Lawrence wrote: > [] >>> File "/home/debian/repos/2418_IASI-NG/Documents/Tools/tex_tool/venv/= local/lib/python3.2/site-packages/progress/bar.py", line 48 >>> empty_fill =3D u'=E2=88=99' >>> ^ >>> SyntaxError: invalid syntax >>> > [] >> >> Python 3.0 removed the 'u' for unicode in front of strings but due to >> popular demand to ease porting it was reinstated in 3.3. Strip it away >> and you should be fine to go. > > I'm not particularly comfortable in fiddling with the library source, > even if the change seems really minor, therefore I guess that I'll > upgrade to a more recent version of Python/Debian. > > But here I have another question, as a python novice is there really any > reason for me to use any particular version of Python? > > Should I start directly with the newest? What about 2.7? > > Al > -- > https://mail.python.org/mailman/listinfo/python-list Hi, I would recommend to start with a 3.x Python. Perhaps 3.3 or 3.4? If the version provided by your OS is older, you can always use a virtual environment. Ask if you don't know about it. Best