From ramin.najarbashi at gmail.com Sat Mar 7 07:48:00 2015 From: ramin.najarbashi at gmail.com (Ramin Najjarbashi) Date: Sat, 7 Mar 2015 10:18:00 +0330 Subject: [TehPUG] =?utf-8?b?2LTYsdmI2Lkg2KvYqNiqINmG2KfZhSDYr9mI2YXbjNmG?= =?utf-8?b?INqp2YbZgdix2KfZhtizINm+2KfbjNiq2YjZhiDYp9uM2LHYp9mG?= Message-ID: ?? ???? ??? ?? ??? ?? ?????? ?????? ??????? ????? ??????? ?????? ????? ????? ??. ??? ?? ?????? ???? ??????? ?? ??? ?????? ?? ?? ????? ????? ????. ?? ????? ?? ???? ?? ??????? ?? ??????? ????? ????? ?? ?? ??????? ?? ?????? ?????? ????? ?? ???? ?? ????? ????. ?? ????? ?? ???? ?? ???????? ????? ?? ?? ???? ????: info at pycon.ir ? ?: ?????? ?? ??????? ????? ?????? ??? ?? ???????? ??????? ? ... ????? ? ?? ?? ?????????? ?? ??? ?? ???? ?? ?????? ?? ????? ??????? ??? ?????? ??? ???? ?? ?? ?? ???? ?????. ??? ????? ?? ??????? ????? ?? ???? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ehsun.zz at gmail.com Sat Mar 7 08:58:56 2015 From: ehsun.zz at gmail.com (Ehsan Sadeqi) Date: Sat, 7 Mar 2015 11:28:56 +0330 Subject: [TehPUG] =?utf-8?b?2LTYsdmI2Lkg2KvYqNiqINmG2KfZhSDYr9mI2YXbjNmG?= =?utf-8?b?INqp2YbZgdix2KfZhtizINm+2KfbjNiq2YjZhiDYp9uM2LHYp9mG?= In-Reply-To: References: Message-ID: ???? ????? ????? ?? ???? ?? ?????? ???? . ??? ???? ????? ???????? ?? ?? ??? ????? ?? ????? ??? ??? ?? ???? ????? ????. 2015-03-07 10:18 GMT+03:30 Ramin Najjarbashi : > ?? ???? > ??? ?? ??? ?? ?????? ?????? ??????? ????? ??????? ?????? ????? ????? ??. > ??? ?? ?????? ???? ??????? ?? ??? ?????? ?? ?? ????? ????? ????. > ?? ????? ?? ???? ?? ??????? ?? ??????? ????? ????? ?? ?? ??????? ?? ?????? > ?????? ????? ?? ???? ?? ????? ????. > > ?? ????? ?? ???? ?? ???????? ????? ?? ?? ???? ????: > info at pycon.ir > > ? ?: ?????? ?? ??????? ????? ?????? ??? ?? ???????? ??????? ? ... ????? ? > ?? ?? ?????????? ?? ??? ?? ???? ?? ?????? ?? ????? ??????? ??? ?????? ??? > ???? ?? ?? ?? ???? ?????. > > ??? ????? ?? ??????? ????? > > ?? ???? > > _______________________________________________ > TehPUG mailing list > Website: http://tehpug.ir > List Address" TehPUG at python.org > List Options: https://mail.python.org/mailman/listinfo/tehpug > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mobinest at gmail.com Sat Mar 7 16:37:48 2015 From: mobinest at gmail.com (Mobin Sh) Date: Sat, 7 Mar 2015 19:07:48 +0330 Subject: [TehPUG] =?utf-8?b?2b7Yp9uM2KrZiNmGINmF2K7YtdmI2LUg2YfZiNi0INmF?= =?utf-8?b?2LXZhtmI2LnbjCDYqNmHINmI24zamNmHINiv2KfYr9mHINqp2KfZiNuM?= Message-ID: ?? ???? ?? ?????? ????? ?????? ???? ???? ???? ?? ????? ???? ?? ????? ???? ? ? ?? ?????? ?? ???? ?? ??????? ????? ??? ? ??? ???? ?? ???????? ?????? ?? ??? ??????? ???? ??? ???? ????? ???? ?? ????? ? ????? ???? ???????? ???? ??? - NLTK, Natural Language Toolkit - Pandas, Python Data Analysis Library - plotly, https://plot.ly/api/python - Matplotlib, matplotlib.orgpython plotting - Matplotlib 1.1.1 documentation - mrjob, python.org mrjob - mrjob 0.3.5 documentation - Orange, Data Mining Fruitful & Fun - pybrain, PyBrain - mlpy, mlpy - Machine Learning Python - Scrapy, An open source web scraping framework for Python - NetworkX (For dealing with graphs), NetworkX - IPython*,* Interactive console with IDE-like features, that makes data-mining tasks much more efficient...IPython - Numpy/Scipy, Scientific Computing Tools For Python - ScikitLearn, great ML resource and library scikit-learn: machine learning in Python - Gensim, gensim: topic modelling for humans - Theano, deep learning Tutorial - Theano 0.6rc3 documentation -------------- next part -------------- An HTML attachment was scrubbed... URL: From tarashikashanifatemeh at gmail.com Sat Mar 7 18:34:52 2015 From: tarashikashanifatemeh at gmail.com (Fatemeh Tarashi) Date: Sat, 7 Mar 2015 09:34:52 -0800 Subject: [TehPUG] =?utf-8?b?2b7Yp9uM2KrZiNmGINmF2K7YtdmI2LUg2YfZiNi0INmF?= =?utf-8?b?2LXZhtmI2LnbjCDYqNmHINmI24zamNmHINiv2KfYr9mHINqp2KfZiNuM?= In-Reply-To: References: Message-ID: ????. ?? ???? ?? ?? ???? Orange ??? ?? ????? ???? ???????? ???? ????? ???. ?? ???? ?????? ?? ???? ??? ???? python vs matlab ???? ???? ????. ??? ?????? ??????? ???? ???? ???? ?? ??? ???? ?? ???????? ????? ???? ???????? ???? ???? ???? ?? ??????? ?? ?????? | ???????? ???? ?? ????? ? ?? ???? ??? ? ????? ?????? ?? ??????? ????. ( ?? ?????? ?? ??????? ?? ??????? ????? ??? SymPy vs Mathematica ) ?? ??? ?????: numpy , scipylib , matplotlib , Ipython , sympy , pandas ??? ?? ???? ??? ?????? ? scipy ????? ???? ???? ???? ?? ????? ?? ??? ???? ? ????????? ?? ?? ??? ???. ??? ???????? ?????? ???? ??????? ?? ???? ?? ??? ?????? ?? ? ?? ???? ?? ?? ???? ?? ????????. (???? numpy ???? ?????? ???? , matplotli ????? ???? ???, ??????? ????? ???????? ?? ??? ????? - ???? ??? ?? ???? ??? ? ?? ???? ?????.) plotly ?? ???????? ? ??????? ??? ?? ????? ??? ?????? ?????????? ?? ?? mstplotli ??? ??????? ? ?????? ? ??????? ????. theano ?? ?? ???????? ??? ?? ??????? ????? ? ???? ?? ? ????? ???? ???? ?? ????? ?????. ?.?: ?? ???? ????? ? ????? ???????? ?????? ?????. On Sat, Mar 7, 2015 at 7:37 AM, Mobin Sh wrote: > ?? ???? > > ?? ?????? ????? ?????? ???? ???? ???? ?? ????? ???? ?? ????? ???? ? > ? ?? ?????? ?? ???? ?? ??????? ????? ??? ? > ??? ???? ?? ???????? ?????? ?? ??? ??????? ???? ??? ???? ????? ???? ?? > ????? ? > ????? ???? ???????? ???? ??? > > > - NLTK, Natural Language Toolkit > - Pandas, Python Data Analysis Library > - plotly, https://plot.ly/api/python > - Matplotlib, matplotlib.orgpython plotting - Matplotlib 1.1.1 > documentation > - mrjob, > python.org > mrjob - mrjob 0.3.5 documentation > - Orange, Data Mining Fruitful & Fun > - pybrain, PyBrain > - mlpy, mlpy - Machine Learning Python > - Scrapy, An open source web scraping framework for Python > > - NetworkX (For dealing with graphs), NetworkX > > - IPython*,* Interactive console with IDE-like features, that makes > data-mining tasks much more efficient...IPython > - Numpy/Scipy, Scientific Computing Tools For Python > > - ScikitLearn, great ML resource and library scikit-learn: machine > learning in Python > - Gensim, gensim: topic modelling for humans > > - Theano, deep learning Tutorial - Theano 0.6rc3 documentation > > > > > _______________________________________________ > TehPUG mailing list > Website: http://tehpug.ir > List Address" TehPUG at python.org > List Options: https://mail.python.org/mailman/listinfo/tehpug > -------------- next part -------------- An HTML attachment was scrubbed... URL: From vahidmaani at gmail.com Mon Mar 9 19:33:02 2015 From: vahidmaani at gmail.com (Vahid Maani) Date: Mon, 09 Mar 2015 22:03:02 +0330 Subject: [TehPUG] =?utf-8?b?2KrYqNiv24zZhCDbsiDZhtmI2Lkg2K/Yp9iv2YcgdHVw?= =?utf-8?b?bGUg2KjZhyDbjNqpIGRpY3Q=?= Message-ID: <54FDE75E.5020209@gmail.com> An HTML attachment was scrubbed... URL: From ramin.najarbashi at gmail.com Mon Mar 9 19:48:15 2015 From: ramin.najarbashi at gmail.com (Ramin Najjarbashi) Date: Mon, 9 Mar 2015 22:18:15 +0330 Subject: [TehPUG] =?utf-8?b?2KrYqNiv24zZhCDbsiDZhtmI2Lkg2K/Yp9iv2YcgdHVw?= =?utf-8?b?bGUg2KjZhyDbjNqpIGRpY3Q=?= In-Reply-To: <54FDE75E.5020209@gmail.com> References: <54FDE75E.5020209@gmail.com> Message-ID: ???? ???? ???? ??? ???? ??? ???: dict(zip(tup2,tup1)) 2015-03-09 22:03 GMT+03:30 Vahid Maani : > tup2 = ('one', 'two', 'three') -------------- next part -------------- An HTML attachment was scrubbed... URL: From moshen212 at gmail.com Mon Mar 9 19:50:54 2015 From: moshen212 at gmail.com (Mohsen Javid) Date: Mon, 9 Mar 2015 22:20:54 +0330 Subject: [TehPUG] =?utf-8?b?2KrYqNiv24zZhCDbsiDZhtmI2Lkg2K/Yp9iv2YcgdHVw?= =?utf-8?b?bGUg2KjZhyDbjNqpIGRpY3Q=?= In-Reply-To: <54FDE75E.5020209@gmail.com> References: <54FDE75E.5020209@gmail.com> Message-ID: { tup1[i]: tup2[i] for i in range(len(tup1)) } 2015-03-09 22:03 GMT+03:30 Vahid Maani : > ???? ?????? > > ??? ???? ??? ??? ???? tuple ?? ??????? ??? ?????: > > tup1 = (1, 2,3) > > tup2 = ('one', 'two', 'three') > > ? ?? ??? ????? ??? ??? ?? ?? ???? ?? ?? ??? ???? ?? ??????? ??? ?? ??? > ????: > > dic1 = {'one': 1, 'two': 2, 'three': 3} > > ???? ????? ??? ??? ?? ?? ???????? ???? ????? ??? ??? ?????????? > > ?? ???????? ?? ?????? ????? > > > -- > ???? ????? > Vahid Maani | vahid.maani at gmail.comhttp://www.gnutips.ir | https://github.com/vahit > > > _______________________________________________ > TehPUG mailing list > Website: http://tehpug.ir > List Address" TehPUG at python.org > List Options: https://mail.python.org/mailman/listinfo/tehpug > -------------- next part -------------- An HTML attachment was scrubbed... URL: From saber.rastikerdar at gmail.com Mon Mar 9 20:39:51 2015 From: saber.rastikerdar at gmail.com (Saber Rastikerdar) Date: Mon, 09 Mar 2015 23:09:51 +0330 Subject: [TehPUG] =?utf-8?b?2KrYqNiv24zZhCDbsiDZhtmI2Lkg2K/Yp9iv2YcgdHVw?= =?utf-8?b?bGUg2KjZhyDbjNqpIGRpY3Q=?= In-Reply-To: References: <54FDE75E.5020209@gmail.com> Message-ID: <54FDF707.3030605@gmail.com> An HTML attachment was scrubbed... URL: From s.h.mahdavi at chmail.ir Mon Mar 9 22:16:14 2015 From: s.h.mahdavi at chmail.ir (=?utf-8?B?2LPbjNivINit2YXbjNivINmF2YfYr9mI24w=?=) Date: Tue, 10 Mar 2015 00:46:14 +0330 (IRST) Subject: [TehPUG] =?utf-8?b?2KrYqNiv24zZhCDbsiDZhtmI2Lkg2K/Yp9iv2YcgdHVw?= =?utf-8?b?bGUg2KjZhyDbjNqpIGRpY3Q=?= In-Reply-To: <54FDF707.3030605@gmail.com> Message-ID: <105876053.216411.1425935774765.JavaMail.Chmail@mstpb.chmail.ir> ?? ??? ??? ?? ?? ??? tup1 = (1, 2,3) tup2 = iter(('one', 'two', 'three')) dic1 = dict() for i in tup1: dic1[i] = tup2.__next__() print(dic1) ------------------------------ ???? ???? ------------------------------ ??: ?Saber Rastikerdar ? ??: ?Tehran Python User Group ? ????? ???: ??????? 18 ????? 1393 11:09:51 ?????: Re: [TehPUG] ????? ? ??? ???? tuple ?? ?? dict ?? ??? ?????? ?????? ??????? ?? ?????: >>> do_what_i_think_about(exactly=True, efficiently=True, pretty=True, lovely=True, ...) # thank you honey {'one': 1, 'two': 2, 'three': 3} ??? ?? ?? ?? ??: >>> do_nothing_alone_by_yourself(); # please! Calf! Fatal error! On 03/09/2015 10:20 PM, Mohsen Javid wrote: { tup1[i]: tup2[i] for i in range(len(tup1)) } 2015-03-09 22:03 GMT+03:30 Vahid Maani : ???? ?????? ??? ???? ??? ??? ???? tuple ?? ???‌??? ??? ?????: tup1 = (1, 2,3) tup2 = ('one', 'two', 'three') ? ?? ??? ????? ??? ??? ?? ?? ???? ?? ?? ??? ???? ?? ??????? ??? ?? ??? ????: dic1 = {'one': 1, 'two': 2, 'three': 3} ???? ????? ??? ??? ?? ?? ???‌???? ???? ????? ??? ??? ??‌??????? ?? ???‌???? ?? ?????? ????? -- ???? ????? Vahid Maani | vahid.maani at gmail.comhttp://www.gnutips.ir | https://github.com/vahit _______________________________________________ TehPUG mailing list Website: http://tehpug.ir List Address" TehPUG at python.org List Options: https://mail.python.org/mailman/listinfo/tehpug _______________________________________________ TehPUG mailing list Website: http://tehpug.ir List Address" TehPUG at python.org List Options: https://mail.python.org/mailman/listinfo/tehpug -------------- next part -------------- An HTML attachment was scrubbed... URL: From saber.rastikerdar at gmail.com Mon Mar 9 22:23:54 2015 From: saber.rastikerdar at gmail.com (Saber Rastikerdar) Date: Tue, 10 Mar 2015 00:53:54 +0330 Subject: [TehPUG] =?utf-8?b?2KrYqNiv24zZhCDbsiDZhtmI2Lkg2K/Yp9iv2YcgdHVw?= =?utf-8?b?bGUg2KjZhyDbjNqpIGRpY3Q=?= In-Reply-To: References: <54FDE75E.5020209@gmail.com> Message-ID: <54FE0F6A.1040105@gmail.com> An HTML attachment was scrubbed... URL: From vahidmaani at gmail.com Tue Mar 10 21:13:04 2015 From: vahidmaani at gmail.com (Vahid Maani) Date: Tue, 10 Mar 2015 23:43:04 +0330 Subject: [TehPUG] =?utf-8?b?2KrYqNiv24zZhCDbsiDZhtmI2Lkg2K/Yp9iv2YcgdHVw?= =?utf-8?b?bGUg2KjZhyDbjNqpIGRpY3Q=?= In-Reply-To: <54FE0F6A.1040105@gmail.com> References: <54FDE75E.5020209@gmail.com> <54FE0F6A.1040105@gmail.com> Message-ID: <54FF5050.2070500@gmail.com> An HTML attachment was scrubbed... URL: From mr.kamalifard at gmail.com Tue Mar 10 21:47:47 2015 From: mr.kamalifard at gmail.com (Mohammad Reza Kamalifard) Date: Wed, 11 Mar 2015 00:17:47 +0330 Subject: [TehPUG] =?utf-8?b?2KrYqNiv24zZhCDbsiDZhtmI2Lkg2K/Yp9iv2YcgdHVw?= =?utf-8?b?bGUg2KjZhyDbjNqpIGRpY3Q=?= In-Reply-To: <54FF5050.2070500@gmail.com> References: <54FDE75E.5020209@gmail.com> <54FE0F6A.1040105@gmail.com> <54FF5050.2070500@gmail.com> Message-ID: ???? ??? ??? ??? ?? ???? ?? ??? ??? ?? ??? ??? ???? ?? ????????? ???? 2015-03-10 23:43 GMT+03:30 Vahid Maani : > @Mohsen Javid > > ????? ????? ????? ????? ??? ???????? ??????? ?? ??? ??????? ?????. :) > > > @??? ???? ????? > > ?? ?????? iterator ?? ??? ??? ????? ???? ???? ??? ????. > > > @Saber Rastikerdar > > ????? ???? ???? ?? ??????? ?? ?? ??? ?????? ????? ??? ? ?? ????? ???? ???? > ???? ?????? ?? ?? ???? ?????? ??? ???? ????????? ????. > > > ?? ????? ?????? ?? ?? ???? ??? ?????? ? ??? ???? ?????? :) > > On 03/10/2015 12:53 AM, Saber Rastikerdar wrote: > > ???? ????? ?? ??? ???? ??? ?? ?? ???????? ??????? ?? ??? ??? ???? ????? > ???? ??? ?? ????? ???? ???????? ?? ??? ???? ? ?? ????? ????????? ????? > ????. ?? ???? ?? ???? ??????? ???? ???? ???? ???? > https://github.com/pytoolz/toolz > https://github.com/serkanyersen/underscore.py > > ???? ??? underscore: > from underscore import _ as u > u.zipObject(tup2,tup1) > > ??? ?? ???? ???? ???????? ????? ?? ?????? ????. ??? ???? ?? ?? ?? ???? > ???? ????. > > On 03/09/2015 10:20 PM, Mohsen Javid wrote: > > { tup1[i]: tup2[i] for i in range(len(tup1)) } > > 2015-03-09 22:03 GMT+03:30 Vahid Maani : > >> ???? ?????? >> >> ??? ???? ??? ??? ???? tuple ?? ??????? ??? ?????: >> >> tup1 = (1, 2,3) >> >> tup2 = ('one', 'two', 'three') >> >> ? ?? ??? ????? ??? ??? ?? ?? ???? ?? ?? ??? ???? ?? ??????? ??? ?? ??? >> ????: >> >> dic1 = {'one': 1, 'two': 2, 'three': 3} >> >> ???? ????? ??? ??? ?? ?? ???????? ???? ????? ??? ??? ?????????? >> >> ?? ???????? ?? ?????? ????? >> >> >> -- >> ???? ????? >> Vahid Maani | vahid.maani at gmail.comhttp://www.gnutips.ir | https://github.com/vahit >> >> >> _______________________________________________ >> TehPUG mailing list >> Website: http://tehpug.ir >> List Address" TehPUG at python.org >> List Options: https://mail.python.org/mailman/listinfo/tehpug >> > > > > _______________________________________________ > TehPUG mailing list > Website: http://tehpug.ir > List Address" TehPUG at python.org > List Options: https://mail.python.org/mailman/listinfo/tehpug > > > > > _______________________________________________ > TehPUG mailing list > Website: http://tehpug.ir > List Address" TehPUG at python.org > List Options: https://mail.python.org/mailman/listinfo/tehpug > > > -- > ???? ????? > Vahid Maani | vahid.maani at gmail.comhttp://www.gnutips.ir | https://github.com/vahit > > > _______________________________________________ > TehPUG mailing list > Website: http://tehpug.ir > List Address" TehPUG at python.org > List Options: https://mail.python.org/mailman/listinfo/tehpug > -------------- next part -------------- An HTML attachment was scrubbed... URL: From relive.mn at gmail.com Mon Mar 16 12:30:50 2015 From: relive.mn at gmail.com (Masoud Naservand) Date: Mon, 16 Mar 2015 15:00:50 +0330 Subject: [TehPUG] =?utf-8?b?2KrYqNiv24zZhCDbsiDZhtmI2Lkg2K/Yp9iv2YcgdHVw?= =?utf-8?b?bGUg2KjZhyDbjNqpIGRpY3Q=?= In-Reply-To: References: <54FDE75E.5020209@gmail.com> <54FE0F6A.1040105@gmail.com> <54FF5050.2070500@gmail.com> Message-ID: ??? __next__() ?? ??? ???????? next(tup2) ????? 2015-03-11 0:17 GMT+03:30 Mohammad Reza Kamalifard : > ???? ??? ??? ??? ?? ???? ?? ??? ??? ?? ??? ??? ???? ?? ????????? > ???? > > 2015-03-10 23:43 GMT+03:30 Vahid Maani : >> >> @Mohsen Javid >> >> ????? ????? ????? ????? ??? ???????? ??????? ?? ??? ??????? ?????. :) >> >> >> @??? ???? ????? >> >> ?? ?????? iterator ?? ??? ??? ????? ???? ???? ??? ????. >> >> >> @Saber Rastikerdar >> >> ????? ???? ???? ?? ??????? ?? ?? ??? ?????? ????? ??? ? ?? ????? ???? ???? >> ???? ?????? ?? ?? ???? ?????? ??? ???? ????????? ????. >> >> >> ?? ????? ?????? ?? ?? ???? ??? ?????? ? ??? ???? ?????? :) >> >> On 03/10/2015 12:53 AM, Saber Rastikerdar wrote: >> >> ???? ????? ?? ??? ???? ??? ?? ?? ???????? ??????? ?? ??? ??? ???? ????? >> ???? ??? ?? ????? ???? ???????? ?? ??? ???? ? ?? ????? ????????? ????? ????. >> ?? ???? ?? ???? ??????? ???? ???? ???? ???? >> https://github.com/pytoolz/toolz >> https://github.com/serkanyersen/underscore.py >> >> ???? ??? underscore: >> from underscore import _ as u >> u.zipObject(tup2,tup1) >> >> ??? ?? ???? ???? ???????? ????? ?? ?????? ????. ??? ???? ?? ?? ?? ???? >> ???? ????. >> >> On 03/09/2015 10:20 PM, Mohsen Javid wrote: >> >> { tup1[i]: tup2[i] for i in range(len(tup1)) } >> >> 2015-03-09 22:03 GMT+03:30 Vahid Maani : >>> >>> ???? ?????? >>> >>> ??? ???? ??? ??? ???? tuple ?? ??????? ??? ?????: >>> >>> tup1 = (1, 2,3) >>> >>> tup2 = ('one', 'two', 'three') >>> >>> ? ?? ??? ????? ??? ??? ?? ?? ???? ?? ?? ??? ???? ?? ??????? ??? ?? ??? >>> ????: >>> >>> dic1 = {'one': 1, 'two': 2, 'three': 3} >>> >>> ???? ????? ??? ??? ?? ?? ???????? ???? ????? ??? ??? ?????????? >>> >>> ?? ???????? ?? ?????? ????? >>> >>> >>> -- >>> ???? ????? >>> Vahid Maani | vahid.maani at gmail.com >>> http://www.gnutips.ir | https://github.com/vahit >>> >>> >>> _______________________________________________ >>> TehPUG mailing list >>> Website: http://tehpug.ir >>> List Address" TehPUG at python.org >>> List Options: https://mail.python.org/mailman/listinfo/tehpug >> >> >> >> >> _______________________________________________ >> TehPUG mailing list >> Website: http://tehpug.ir >> List Address" TehPUG at python.org >> List Options: https://mail.python.org/mailman/listinfo/tehpug >> >> >> >> >> _______________________________________________ >> TehPUG mailing list >> Website: http://tehpug.ir >> List Address" TehPUG at python.org >> List Options: https://mail.python.org/mailman/listinfo/tehpug >> >> >> -- >> ???? ????? >> Vahid Maani | vahid.maani at gmail.com >> http://www.gnutips.ir | https://github.com/vahit >> >> >> _______________________________________________ >> TehPUG mailing list >> Website: http://tehpug.ir >> List Address" TehPUG at python.org >> List Options: https://mail.python.org/mailman/listinfo/tehpug > > > > _______________________________________________ > TehPUG mailing list > Website: http://tehpug.ir > List Address" TehPUG at python.org > List Options: https://mail.python.org/mailman/listinfo/tehpug From rootnt.1 at gmail.com Wed Mar 18 07:18:14 2015 From: rootnt.1 at gmail.com (Roo Tnt) Date: Wed, 18 Mar 2015 09:48:14 +0330 Subject: [TehPUG] =?utf-8?b?2KrYqNiv24zZhCDbsiDZhtmI2Lkg2K/Yp9iv2YcgdHVw?= =?utf-8?b?bGUg2KjZhyDbjNqpIGRpY3Q=?= In-Reply-To: References: <54FDE75E.5020209@gmail.com> <54FE0F6A.1040105@gmail.com> <54FF5050.2070500@gmail.com> Message-ID: ???? ????? ???? ????? ?? ?? { tup1[i]: tup2[i] for i in range(len(tup1)) } ?????? ??????? ?? ??? ?? ?? ?? ?????? ????? ??? ????? ??? ????? ?? ????? ?? ???????? ?? ? ??????? ?? ??????? ??? ?-? ???? ??? ?? ??? ????? ???????? ?????? ????? ?? ???? ?? ??? ?????? ????? ??? ???? ???? ? ??? ???? ??? ??? ?? ???? ??? ????? ????? ???? ???? { tup1[i]: tup2[i] for i in range(len(tup1)) } ?? ????? ??????? ??????? ?????? ????? 2015-03-16 15:00 GMT+03:30 Masoud Naservand : > ??? > __next__() > ?? ??? ???????? > next(tup2) > ????? > > 2015-03-11 0:17 GMT+03:30 Mohammad Reza Kamalifard < > mr.kamalifard at gmail.com>: > > ???? ??? ??? ??? ?? ???? ?? ??? ??? ?? ??? ??? ???? ?? ????????? > > ???? > > > > 2015-03-10 23:43 GMT+03:30 Vahid Maani : > >> > >> @Mohsen Javid > >> > >> ????? ????? ????? ????? ??? ???????? ??????? ?? ??? ??????? ?????. :) > >> > >> > >> @??? ???? ????? > >> > >> ?? ?????? iterator ?? ??? ??? ????? ???? ???? ??? ????. > >> > >> > >> @Saber Rastikerdar > >> > >> ????? ???? ???? ?? ??????? ?? ?? ??? ?????? ????? ??? ? ?? ????? ???? > ???? > >> ???? ?????? ?? ?? ???? ?????? ??? ???? ????????? ????. > >> > >> > >> ?? ????? ?????? ?? ?? ???? ??? ?????? ? ??? ???? ?????? :) > >> > >> On 03/10/2015 12:53 AM, Saber Rastikerdar wrote: > >> > >> ???? ????? ?? ??? ???? ??? ?? ?? ???????? ??????? ?? ??? ??? ???? ????? > >> ???? ??? ?? ????? ???? ???????? ?? ??? ???? ? ?? ????? ????????? ????? > ????. > >> ?? ???? ?? ???? ??????? ???? ???? ???? ???? > >> https://github.com/pytoolz/toolz > >> https://github.com/serkanyersen/underscore.py > >> > >> ???? ??? underscore: > >> from underscore import _ as u > >> u.zipObject(tup2,tup1) > >> > >> ??? ?? ???? ???? ???????? ????? ?? ?????? ????. ??? ???? ?? ?? ?? ???? > >> ???? ????. > >> > >> On 03/09/2015 10:20 PM, Mohsen Javid wrote: > >> > >> { tup1[i]: tup2[i] for i in range(len(tup1)) } > >> > >> 2015-03-09 22:03 GMT+03:30 Vahid Maani : > >>> > >>> ???? ?????? > >>> > >>> ??? ???? ??? ??? ???? tuple ?? ??????? ??? ?????: > >>> > >>> tup1 = (1, 2,3) > >>> > >>> tup2 = ('one', 'two', 'three') > >>> > >>> ? ?? ??? ????? ??? ??? ?? ?? ???? ?? ?? ??? ???? ?? ??????? ??? ?? ??? > >>> ????: > >>> > >>> dic1 = {'one': 1, 'two': 2, 'three': 3} > >>> > >>> ???? ????? ??? ??? ?? ?? ???????? ???? ????? ??? ??? ?????????? > >>> > >>> ?? ???????? ?? ?????? ????? > >>> > >>> > >>> -- > >>> ???? ????? > >>> Vahid Maani | vahid.maani at gmail.com > >>> http://www.gnutips.ir | https://github.com/vahit > >>> > >>> > >>> _______________________________________________ > >>> TehPUG mailing list > >>> Website: http://tehpug.ir > >>> List Address" TehPUG at python.org > >>> List Options: https://mail.python.org/mailman/listinfo/tehpug > >> > >> > >> > >> > >> _______________________________________________ > >> TehPUG mailing list > >> Website: http://tehpug.ir > >> List Address" TehPUG at python.org > >> List Options: https://mail.python.org/mailman/listinfo/tehpug > >> > >> > >> > >> > >> _______________________________________________ > >> TehPUG mailing list > >> Website: http://tehpug.ir > >> List Address" TehPUG at python.org > >> List Options: https://mail.python.org/mailman/listinfo/tehpug > >> > >> > >> -- > >> ???? ????? > >> Vahid Maani | vahid.maani at gmail.com > >> http://www.gnutips.ir | https://github.com/vahit > >> > >> > >> _______________________________________________ > >> TehPUG mailing list > >> Website: http://tehpug.ir > >> List Address" TehPUG at python.org > >> List Options: https://mail.python.org/mailman/listinfo/tehpug > > > > > > > > _______________________________________________ > > TehPUG mailing list > > Website: http://tehpug.ir > > List Address" TehPUG at python.org > > List Options: https://mail.python.org/mailman/listinfo/tehpug > _______________________________________________ > TehPUG mailing list > Website: http://tehpug.ir > List Address" TehPUG at python.org > List Options: https://mail.python.org/mailman/listinfo/tehpug > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ehsun.zz at gmail.com Thu Mar 19 15:37:08 2015 From: ehsun.zz at gmail.com (Ehsan Sadeqi) Date: Thu, 19 Mar 2015 18:07:08 +0330 Subject: [TehPUG] =?utf-8?b?2KfbjNmGINiv2YjYqtinINqG2Ycg2YHYsdmC24wg2K8=?= =?utf-8?b?2KfYsdmG2J8=?= Message-ID: ???? ????? ???? ??? ??? ??? ?? ????: >>>mylist = [[((1, 1), 'w', 1), (0, 0), 10], [((2, 2), 's', 2), (1, 1), 0]] >>>mylist.sort(key=itemgetter(2)) >>>print mylist *[[((2, 2), 's', 2), (1, 1), 0], [((1, 1), 'w', 1), (0, 0), 10]]* ??? ???? ?? ??? ??? ??? ?? ???? ????? ??? ?????. ??? ?? ??? ... >>>fringe = [[(problem.getStartState(), None, 0), None, 0]] >>>fringe.extend([i, parent, cost]) # 'i' is a tuple with 3 items like (problem.getStartState(), None, 0) >>>fringe.sort(key=itemgetter(2)) *fringe.sort(key=itemgetter(2)) IndexError: tuple index out of range* ??? ?? ???? ???? ???? !!! ?? ???? ???? (?????? ?? ???? ??? ? ??????? ??? ??? ???? ?? ???? ?? ??? ???? ???? :?? ) -------------- next part -------------- An HTML attachment was scrubbed... URL: From ehsun.zz at gmail.com Thu Mar 19 16:28:45 2015 From: ehsun.zz at gmail.com (Ehsan Sadeqi) Date: Thu, 19 Mar 2015 18:58:45 +0330 Subject: [TehPUG] =?utf-8?b?2KfbjNmGINiv2YjYqtinINqG2Ycg2YHYsdmC24wg2K8=?= =?utf-8?b?2KfYsdmG2J8=?= In-Reply-To: References: Message-ID: ?? ??.??????. 2015-03-19 18:07 GMT+03:30 Ehsan Sadeqi : > ???? > ????? ???? ??? ??? ??? ?? ????: > > >>>mylist = [[((1, 1), 'w', 1), (0, 0), 10], [((2, 2), 's', 2), (1, 1), 0]] > >>>mylist.sort(key=itemgetter(2)) > >>>print mylist > *[[((2, 2), 's', 2), (1, 1), 0], [((1, 1), 'w', 1), (0, 0), 10]]* > > > ??? ???? ?? ??? ??? ??? ?? ???? ????? ??? ?????. ??? ?? ??? ... > > >>>fringe = [[(problem.getStartState(), None, 0), None, 0]] > >>>fringe.extend([i, parent, cost]) # 'i' is a tuple with 3 items like (problem.getStartState(), None, 0) > >>>fringe.sort(key=itemgetter(2)) > *fringe.sort(key=itemgetter(2)) > IndexError: tuple index out of range* > > > ??? ?? ???? ???? ???? !!! ?? ???? ???? > (?????? ?? ???? ??? ? ??????? ??? ??? ???? ?? ???? ?? ??? ???? ???? :?? ) > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: