helwardany / pyscripter

Automatically exported from code.google.com/p/pyscripter
0 stars 0 forks source link

end keyword for print function not working #553

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What's wrong with this example code? It usually works on other interpreters.

def main():
    s = 'try'
    while s:
        print(s, end= '')
        s = s[1:]

if __name__ == '__main__':
    main()

Greetings.

Original issue reported on code.google.com by rosn...@gmail.com on 23 Aug 2011 at 8:48

GoogleCodeExporter commented 9 years ago
Works for me in PyScripter.  This is Python 3, so are you sure you're not 
trying to execute it in Python 2.x, where it should fail?

Original comment by cspwc...@gmail.com on 29 Aug 2011 at 7:54

GoogleCodeExporter commented 9 years ago
Didn't notice the detail...thanks. Using the portable edition of pyScripter 
I've was sure it used the proper 3.x version of the interpreter instead it 
relied on the system's 2.7

Original comment by rosn...@gmail.com on 30 Aug 2011 at 7:53

GoogleCodeExporter commented 9 years ago

Original comment by pyscripter on 2 Sep 2011 at 9:27