Re: How can i return more than one value from a function to more than one variable

2013-12-23 Thread Simon Hayward
basically what I wanna do is this : x = 4 y = 7 def switch (z,w): ***this will switch z to w and vice verca*** c= z z=w w=c print 'Now x =', w, 'and y = ' , z return w x = switch(x,y) How am I supposed to do so I can return also a value to the variable y

Re: Fairly OT: Why flufl?

2013-02-04 Thread Simon Hayward
On Feb 4, 2013 4:27 PM, nn prueba...@latinmail.com wrote: On Feb 4, 10:10 am, Chris Angelico ros...@gmail.com wrote: This isn't particularly related to the post I'm quoting, it's more a point of curiosity. On Mon, Feb 4, 2013 at 10:53 AM, João Bernardo jbv...@gmail.com wrote: Re:

[issue15345] HOWTOs Argparse tutorial - code example raises SyntaxError

2012-07-13 Thread Simon Hayward
New submission from Simon Hayward simonhayw...@gmail.com: HOWTOs - Argparse Tutorial, the code example will raise a syntax error when run. A trailing python3 reference (if called as a function): 'end=', to suppresses a newline remains. print {}^{} == .format(args.x, args.y), end= Should read