Re: Can Python function return multiple data?

2015-06-06 Thread Amir Arsalan
Tnx Steven, You are right completly.I try more subtilize thanks for your hint. On Sun, Jun 7, 2015 at 10:03 AM, Steven D'Aprano wrote: > Hi Amir, and welcome! > > On Sun, 7 Jun 2015 02:38 am, Amir Arsalan wrote: > > > you can use yield structure in python for multiple

Re: Can Python function return multiple data?

2015-06-06 Thread Amir Arsalan
;a*3" if you dont understand tell me that i complete explain for u. or send pm on hangouts, Best, Amir Arsalan On Sat, Jun 6, 2015 at 10:27 PM, fl wrote: > On Saturday, June 6, 2015 at 9:39:19 AM UTC-7, Amir Arsalan wrote: > > you can use yield structure in pytho

Re: Can Python function return multiple data?

2015-06-06 Thread Amir Arsalan
you can use yield structure in python for multiple return. ex: def func(a): yield a*2 print "a*2" yield a*3 print "a*3" ... data = func(5) --> data = (10,15,... ) On Wed, Jun 3, 2015 at 1:57 AM, fl wrote: > Hi, > > I just see the tutorial says Python can return value in fun

Re: application console with window

2015-01-12 Thread Amir Arsalan
and u have another below choice http://docs.python.org/howto/curses.html http://urwid.org/ On Thu, Jan 8, 2015 at 12:54 AM, Amir Arsalan wrote: > Hi adam, > > U can use from npyscreen. > > Npyscreen.readthedocs.org > On Jan 8, 2015 12:50 AM, "adam" wrote: >

Re: application console with window

2015-01-12 Thread Amir Arsalan
Hi adam, U can use from npyscreen. Npyscreen.readthedocs.org On Jan 8, 2015 12:50 AM, "adam" wrote: > Is in here maybe someone who speak Polish? > > I would like to write application witch looks like this > http://linuxiarze.pl/obrazy/internet1/ceni1.png > > I'm looking for some libs, tutorials

Re: surprise - byte in set

2015-01-05 Thread Amir Arsalan
Hi my friends. On last result you have a , b , c binary. >> set('abc') {'a','b','c') >> set(b'abc') {97,98,99} On Jan 3, 2015 10:25 PM, "patrick vrijlandt" wrote: > Hello list, > > Let me first wish you all the best in 2015! > > Today I was trying to test for occurrence of a byte in a set ...