From mrowley at gmail.com Tue Oct 12 18:40:23 2010 From: mrowley at gmail.com (Michelle Rowley) Date: Tue, 12 Oct 2010 09:40:23 -0700 Subject: [portland] Meeting tonight! 6:30pm @ Webtrends: Standard Library Thunderdome! Message-ID: Happy Second Tuesday! It's that time again. Tonight at 6:30pm four Pythonistas will present to us a module from the Python Standard Library in the first ever PDX Python Standard Library Thunderdome. Dan Colish, Michael Schurter, Adam Lowry and Chris McDonald will face off in the ring we know as the Webtrends lounge. Who will be victorious? That definitely can't be determined yet since I'm not sure what the rules are. Alas! There will be a bonus round at the end where you can jump in with your own favorite module! After this epic battle of intense Pythonic competition, we'll likely head over to Bailey's Taproom to share a beverage and discuss the results. ;) Hope to see you there! Michelle Details: 6:30pm @ Webtrends 851 SW 6th Ave Suite 1600* Portland, OR 97204 * Security guard in the lobby will bring you upstairs! -------------- next part -------------- An HTML attachment was scrubbed... URL: From kirby.urner at gmail.com Fri Oct 15 01:49:33 2010 From: kirby.urner at gmail.com (kirby urner) Date: Thu, 14 Oct 2010 16:49:33 -0700 Subject: [portland] dis.dis in IronPython / latest PPUG meetup Message-ID: Thanks to all for a fine evening last night. My blogged write-up linked below.** I was sounding pretty confidant that I knew what dis.dis would do on IronPython: spit out IL byte codes right? I just tested that hypothesis. But first, the CPython version: IDLE 2.6.6 >>> def f(x): return 2*pow(x,3) + 5*pow(x,2) + 1 >>> import dis >>> dis.dis(f) 1 0 LOAD_CONST 1 (2) 3 LOAD_GLOBAL 0 (pow) 6 LOAD_FAST 0 (x) 9 LOAD_CONST 2 (3) 12 CALL_FUNCTION 2 15 BINARY_MULTIPLY 16 LOAD_CONST 3 (5) 19 LOAD_GLOBAL 0 (pow) 22 LOAD_FAST 0 (x) 25 LOAD_CONST 1 (2) 28 CALL_FUNCTION 2 31 BINARY_MULTIPLY 32 BINARY_ADD 33 LOAD_CONST 4 (1) 36 BINARY_ADD 37 RETURN_VALUE >>> And now for something completely different.... IronPython 2.6.1 (2.6.10920.0) on .NET 4.0.30319.1 Type "help", "copyright", "credits" or "license" for more information. >>> 6+6 12 >>> import dis >>> def f(x): return 2*pow(x,3) + 5*pow(x,2) + 1 ... >>> dis.dis(f) Traceback (most recent call last): File "", line 1, in File "C:\Program Files (x86)\IronPython 2.6 for .NET 4.0\Lib\dis.py", line 42, in disassemble File "C:\Program Files (x86)\IronPython 2.6 for .NET 4.0\Lib\dis.py", line 64, in disassemble File "C:\Program Files (x86)\IronPython 2.6 for .NET 4.0\Lib\dis.py", line 183, in findlinestarts NotImplementedError I should do some reading obviously. It looks like it almost worked, but looks can be deceiving. See ya'll on chat maybe, Kirby ** http://controlroom.blogspot.com/2010/10/ppug-20101012.html PS: next PPUG I could do a lightning talk on what I'm up to with PSF a little. Here's some documentation. http://mail.python.org/pipermail/edu-sig/2010-October/010092.html For kids, I prefer Akbar font version: http://www.flickr.com/photos/17157315 at N00/5079860554/ http://www.flickr.com/photos/17157315 at N00/5079860510/ It's partly that Pycon / Havana I'm thinking about, also Pycon / Tehran. Anyone going to Python / Ukraine? Not me. Vilnius was great though (a EuroPython, not a Pycon). Or I could do 5 mins on Martian Math, which I shared through Reed College this summer. http://www.4dsolutions.net/satacad/martianmath/toc.html (lotsa Python + VPython) Michelle: +1 on health tips / diet including the esoteric stuff. :) This is a vital branch of geekology, per this new O'Reilly title: http://www.flickr.com/photos/17157315 at N00/4965449134/in/set-72157624771928073/ From xwraithanx at gmail.com Fri Oct 15 03:24:22 2010 From: xwraithanx at gmail.com (Chris McDonald) Date: Thu, 14 Oct 2010 18:24:22 -0700 Subject: [portland] dis.dis in IronPython / latest PPUG meetup In-Reply-To: References: Message-ID: Also with some version/implementations of python you can not use dis.dis on builtins or C functions. It will blow up with the same sort of NotImplemented error. -Chris On Thu, Oct 14, 2010 at 4:49 PM, kirby urner wrote: > Thanks to all for a fine evening last night. ?My blogged write-up > linked below.** > > I was sounding pretty confidant that I knew what dis.dis would do on > IronPython: ?spit out IL byte codes right? > > I just tested that hypothesis. ?But first, the CPython version: > > IDLE 2.6.6 >>>> def f(x): ?return 2*pow(x,3) + 5*pow(x,2) + 1 > >>>> import dis >>>> dis.dis(f) > ?1 ? ? ? ? ? 0 LOAD_CONST ? ? ? ? ? ? ? 1 (2) > ? ? ? ? ? ? ?3 LOAD_GLOBAL ? ? ? ? ? ? ?0 (pow) > ? ? ? ? ? ? ?6 LOAD_FAST ? ? ? ? ? ? ? ?0 (x) > ? ? ? ? ? ? ?9 LOAD_CONST ? ? ? ? ? ? ? 2 (3) > ? ? ? ? ? ? 12 CALL_FUNCTION ? ? ? ? ? ?2 > ? ? ? ? ? ? 15 BINARY_MULTIPLY > ? ? ? ? ? ? 16 LOAD_CONST ? ? ? ? ? ? ? 3 (5) > ? ? ? ? ? ? 19 LOAD_GLOBAL ? ? ? ? ? ? ?0 (pow) > ? ? ? ? ? ? 22 LOAD_FAST ? ? ? ? ? ? ? ?0 (x) > ? ? ? ? ? ? 25 LOAD_CONST ? ? ? ? ? ? ? 1 (2) > ? ? ? ? ? ? 28 CALL_FUNCTION ? ? ? ? ? ?2 > ? ? ? ? ? ? 31 BINARY_MULTIPLY > ? ? ? ? ? ? 32 BINARY_ADD > ? ? ? ? ? ? 33 LOAD_CONST ? ? ? ? ? ? ? 4 (1) > ? ? ? ? ? ? 36 BINARY_ADD > ? ? ? ? ? ? 37 RETURN_VALUE >>>> > > And now for something completely different.... > > IronPython 2.6.1 (2.6.10920.0) on .NET 4.0.30319.1 > Type "help", "copyright", "credits" or "license" for more information. >>>> 6+6 > 12 >>>> import dis >>>> def f(x): ?return 2*pow(x,3) + 5*pow(x,2) + 1 > ... >>>> dis.dis(f) > Traceback (most recent call last): > ?File "", line 1, in > ?File "C:\Program Files (x86)\IronPython 2.6 for .NET > 4.0\Lib\dis.py", line 42, in disassemble > ?File "C:\Program Files (x86)\IronPython 2.6 for .NET > 4.0\Lib\dis.py", line 64, in disassemble > ?File "C:\Program Files (x86)\IronPython 2.6 for .NET > 4.0\Lib\dis.py", line 183, in findlinestarts > NotImplementedError > > I should do some reading obviously. ?It looks like it almost worked, > but looks can be deceiving. > > See ya'll on chat maybe, > > Kirby > > ** http://controlroom.blogspot.com/2010/10/ppug-20101012.html > > PS: ?next PPUG I could do a lightning talk on what I'm up to with PSF a > little. ?Here's some documentation. > > http://mail.python.org/pipermail/edu-sig/2010-October/010092.html > > For kids, I prefer Akbar font version: > http://www.flickr.com/photos/17157315 at N00/5079860554/ > http://www.flickr.com/photos/17157315 at N00/5079860510/ > > It's partly that Pycon / Havana I'm thinking about, also Pycon / Tehran. > Anyone going to Python / Ukraine? ?Not me. ?Vilnius was great > though (a EuroPython, not a Pycon). > > Or I could do 5 mins on Martian Math, which I shared through > Reed College this summer. > > http://www.4dsolutions.net/satacad/martianmath/toc.html > (lotsa Python + VPython) > > Michelle: ?+1 on health tips / diet including the esoteric stuff. :) > This is a vital branch of geekology, per this new O'Reilly title: > http://www.flickr.com/photos/17157315 at N00/4965449134/in/set-72157624771928073/ > _______________________________________________ > Portland mailing list > Portland at python.org > http://mail.python.org/mailman/listinfo/portland > From igal at pragmaticraft.com Fri Oct 22 22:07:09 2010 From: igal at pragmaticraft.com (Igal Koshevoy) Date: Fri, 22 Oct 2010 13:07:09 -0700 Subject: [portland] OT: BarCamp Portland 4 is today and tomorrow Message-ID: Dear fellow Pythoneers, Today and tomorrow is BarCamp Portland 4. It's a free, popular unconference where geeks from all walks of life come together to create sessions on a broad range of topics and participate in spirited discussions. This has been one of my favorite events each year and I hope to see you there. Sessions from past years include: "Raising chickens", "The business value of Ruby on Rails", "Trainporn: why the curvy PCC is my favorite streetcar, in 200 saucy slides ", "Barter and alternative currencies", "Rat salad and other lessons from food safety", "Developing non-flash games for the web with open source software", "Introduction to Haskell", "Architecting Participation", "Arduino: microcontrollers, lights and awesome", etc. Complete details are at: http://barcampportland.org/ -igal PS: Sorry for missing recent Python meetings, I've been very busy at work, but hope to be able to attend regularly again in the upcoming months.