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


Groups > comp.lang.python > #91289

Re: SyntaxError on progress module

References <csjitvF6cptU1@mid.individual.net> <mailman.58.1432655950.5151.python-list@python.org> <csla4lFjduaU2@mid.individual.net>
Date 2015-05-27 09:47 +0200
Subject Re: SyntaxError on progress module
From David Palao <dpalao.python@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.75.1432712834.5151.python-list@python.org> (permalink)

Show all headers | View raw


2015-05-27 9:30 GMT+02:00 alb <al.basili@gmail.com>:
> Hi Mark,
> Mark Lawrence <breamoreboy@yahoo.co.uk> 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 = u'∙'
>>>                        ^
>>> 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

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


Thread

SyntaxError on progress module al.basili@gmail.com (alb) - 2015-05-26 15:48 +0000
  Re: SyntaxError on progress module Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-05-26 16:59 +0100
    Re: SyntaxError on progress module al.basili@gmail.com (alb) - 2015-05-27 07:30 +0000
      Re: SyntaxError on progress module David Palao <dpalao.python@gmail.com> - 2015-05-27 09:47 +0200
      Re: SyntaxError on progress module Chris Angelico <rosuav@gmail.com> - 2015-05-27 18:22 +1000
      Re: SyntaxError on progress module Cecil Westerhof <Cecil@decebal.nl> - 2015-05-27 10:42 +0200
        Re: SyntaxError on progress module Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-05-27 14:44 +0100
          Re: SyntaxError on progress module Cecil Westerhof <Cecil@decebal.nl> - 2015-05-27 16:11 +0200
            Re: SyntaxError on progress module Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-05-27 15:51 +0100
              Re: SyntaxError on progress module Cecil Westerhof <Cecil@decebal.nl> - 2015-05-27 17:18 +0200
                Re: SyntaxError on progress module Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-05-27 21:03 +0100
                Re: SyntaxError on progress module Steven D'Aprano <steve@pearwood.info> - 2015-05-28 11:39 +1000
  Re: SyntaxError on progress module Chris Angelico <rosuav@gmail.com> - 2015-05-27 02:27 +1000
    Re: SyntaxError on progress module al.basili@gmail.com (alb) - 2015-05-27 07:24 +0000

csiph-web