From brianhray at gmail.com Mon May 2 17:57:16 2011 From: brianhray at gmail.com (Brian Ray) Date: Mon, 2 May 2011 10:57:16 -0500 Subject: [Chicago] Venue Offer for May Message-ID: Threadless... Best EVER! let's see some +1 pls -- Brian Ray -------------- next part -------------- An HTML attachment was scrubbed... URL: From emperorcezar at gmail.com Mon May 2 17:58:05 2011 From: emperorcezar at gmail.com (Adam Jenkins) Date: Mon, 2 May 2011 10:58:05 -0500 Subject: [Chicago] Venue Offer for May In-Reply-To: References: Message-ID: +1 On Mon, May 2, 2011 at 10:57 AM, Brian Ray wrote: > Threadless... Best EVER! > let's see some +1 pls > > -- > > Brian Ray > > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > > From brian.curtin at gmail.com Mon May 2 17:59:38 2011 From: brian.curtin at gmail.com (Brian Curtin) Date: Mon, 2 May 2011 10:59:38 -0500 Subject: [Chicago] Venue Offer for May In-Reply-To: References: Message-ID: On Mon, May 2, 2011 at 10:57, Brian Ray wrote: > Threadless... Best EVER! > > let's see some +1 pls > Anything is better than ITA. +1, Threadless seems like a cool place. -------------- next part -------------- An HTML attachment was scrubbed... URL: From johnstoner2 at gmail.com Mon May 2 17:59:41 2011 From: johnstoner2 at gmail.com (John Stoner) Date: Mon, 2 May 2011 10:59:41 -0500 Subject: [Chicago] Venue Offer for May In-Reply-To: References: Message-ID: +1 On Mon, May 2, 2011 at 10:57 AM, Brian Ray wrote: > Threadless... Best EVER! > > let's see some +1 pls > > -- > > Brian Ray > > > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > > -- blogs: http://johnstoner.wordpress.com/ 'In knowledge is power; in wisdom, humility.' -------------- next part -------------- An HTML attachment was scrubbed... URL: From lifestyleignition at gmail.com Mon May 2 18:44:41 2011 From: lifestyleignition at gmail.com (lifestyleignition at gmail.com) Date: Mon, 2 May 2011 11:44:41 -0500 Subject: [Chicago] Venue Offer for May In-Reply-To: References: Message-ID: Wow. +1 Sent from my iPhone On May 2, 2011, at 10:59 AM, John Stoner wrote: > +1 > > On Mon, May 2, 2011 at 10:57 AM, Brian Ray wrote: > Threadless... Best EVER! > > let's see some +1 pls > > -- > > Brian Ray > > > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > > > > > -- > blogs: > http://johnstoner.wordpress.com/ > 'In knowledge is power; in wisdom, humility.' > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago -------------- next part -------------- An HTML attachment was scrubbed... URL: From verisimilidude at gmail.com Mon May 2 18:57:59 2011 From: verisimilidude at gmail.com (Phil Robare) Date: Mon, 2 May 2011 11:57:59 -0500 Subject: [Chicago] Venue Offer for May In-Reply-To: References: Message-ID: +1 On Mon, May 2, 2011 at 10:57 AM, Brian Ray wrote: > Threadless... Best EVER! > let's see some +1 pls > From jough.dempsey at gmail.com Mon May 2 19:14:39 2011 From: jough.dempsey at gmail.com (Jough Dempsey) Date: Mon, 2 May 2011 12:14:39 -0500 Subject: [Chicago] Venue Offer for May In-Reply-To: References: Message-ID: +1 - been wanting to see the new offices. On Mon, May 2, 2011 at 11:57 AM, Phil Robare wrote: > +1 > > On Mon, May 2, 2011 at 10:57 AM, Brian Ray wrote: >> Threadless... Best EVER! >> let's see some +1 pls >> > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > -- Jough Dempsey http://jough.com 312.576.6738 (mobile) From kumar.mcmillan at gmail.com Tue May 3 00:12:45 2011 From: kumar.mcmillan at gmail.com (Kumar McMillan) Date: Mon, 2 May 2011 17:12:45 -0500 Subject: [Chicago] Venue Offer for May In-Reply-To: References: Message-ID: +1 !!!!!!!111!!111 On Mon, May 2, 2011 at 12:14 PM, Jough Dempsey wrote: > +1 - been wanting to see the new offices. > > On Mon, May 2, 2011 at 11:57 AM, Phil Robare wrote: >> +1 >> >> On Mon, May 2, 2011 at 10:57 AM, Brian Ray wrote: >>> Threadless... Best EVER! >>> let's see some +1 pls >>> >> _______________________________________________ >> Chicago mailing list >> Chicago at python.org >> http://mail.python.org/mailman/listinfo/chicago >> > > > > -- > Jough Dempsey > http://jough.com > 312.576.6738?(mobile) > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > From brianhray at gmail.com Tue May 3 20:47:34 2011 From: brianhray at gmail.com (Brian Ray) Date: Tue, 3 May 2011 13:47:34 -0500 Subject: [Chicago] Greenlet In-Reply-To: References: Message-ID: On Sun, Mar 27, 2011 at 5:09 AM, Brantley Harris wrote: > It lives on in Eventlet > > It's absolutely awesome, and might give a talk about it one of these days. > > I think this could be considered a talk proposal, right ! For May? We also have the robotics talk in May. -- Brian Ray -------------- next part -------------- An HTML attachment was scrubbed... URL: From deadwisdom at gmail.com Tue May 3 20:57:46 2011 From: deadwisdom at gmail.com (Brantley Harris) Date: Tue, 3 May 2011 13:57:46 -0500 Subject: [Chicago] Greenlet In-Reply-To: References: Message-ID: The next meeting is on the 19th right? If that's the case there's a good chance I will be on my honeymoon. Still trying to resolve the exact time for that, so it's still in the air right now. If I am here, I would love to do a talk on Eventlet. On Tue, May 3, 2011 at 1:47 PM, Brian Ray wrote: > > > On Sun, Mar 27, 2011 at 5:09 AM, Brantley Harris > wrote: >> >> It lives on in Eventlet >> >> It's absolutely awesome, and might give a talk about it one of these days. >> > > I think this could be considered a talk proposal, right ! ?For May? ?We also > have the robotics talk in May. > > -- > > Brian Ray > > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > > From brianhray at gmail.com Tue May 3 21:56:13 2011 From: brianhray at gmail.com (Brian Ray) Date: Tue, 3 May 2011 14:56:13 -0500 Subject: [Chicago] Analyte Health is hiring Python developers In-Reply-To: References: Message-ID: On Wed, Apr 6, 2011 at 9:37 AM, Leon Chism wrote: > Analyte Health is hiring developers at all experience levels to join the > technology team in our Chicago office. Analyte Health is an on-line > physician's practice using the power of the Internet to create convenient, > private, and patient-focused medical care for our patients. See the full > listing, and apply, at > http://jobs.analytehealth.com/apply/YEtIiX/Software-Developer.html > > Analyte Health will be our Food sponsors for the May meeting, Yay! -- Brian Ray -------------- next part -------------- An HTML attachment was scrubbed... URL: From brianhray at gmail.com Tue May 3 21:59:09 2011 From: brianhray at gmail.com (Brian Ray) Date: Tue, 3 May 2011 14:59:09 -0500 Subject: [Chicago] Greenlet In-Reply-To: References: Message-ID: On Tue, May 3, 2011 at 1:57 PM, Brantley Harris wrote: > The next meeting is on the 19th right? If that's the case there's a > good chance I will be on my honeymoon. Still trying to resolve the > exact time for that, so it's still in the air right now. If I am > here, I would love to do a talk on Eventlet. > > 12th actually. Congrats again! -- Brian Ray -------------- next part -------------- An HTML attachment was scrubbed... URL: From deadwisdom at gmail.com Tue May 3 22:28:30 2011 From: deadwisdom at gmail.com (Brantley Harris) Date: Tue, 3 May 2011 15:28:30 -0500 Subject: [Chicago] Greenlet In-Reply-To: References: Message-ID: 12th, then yes, I will commit to doing a talk on Eventlet/Greenlet. On Tue, May 3, 2011 at 2:59 PM, Brian Ray wrote: > > > On Tue, May 3, 2011 at 1:57 PM, Brantley Harris > wrote: >> >> The next meeting is on the 19th right? ?If that's the case there's a >> good chance I will be on my honeymoon. ?Still trying to resolve the >> exact time for that, so it's still in the air right now. ?If I am >> here, I would love to do a talk on Eventlet. >> > > 12th actually. Congrats again! > -- > > Brian Ray > > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > > From cwebber at dustycloud.org Thu May 5 14:14:23 2011 From: cwebber at dustycloud.org (Christopher Allan Webber) Date: Thu, 05 May 2011 07:14:23 -0500 Subject: [Chicago] Greenlet In-Reply-To: (Brantley Harris's message of "Tue, 3 May 2011 15:28:30 -0500") References: Message-ID: <87wri5cpk0.fsf@grumps.lan> Too bad I'll be at Libre Graphics Meeting. I'd love to drive into Chicago to see this one. Good luck at your talk, and congrats on getting married & your honeymoon Brantley! Brantley Harris writes: > 12th, then yes, I will commit to doing a talk on Eventlet/Greenlet. > > On Tue, May 3, 2011 at 2:59 PM, Brian Ray wrote: >> >> >> On Tue, May 3, 2011 at 1:57 PM, Brantley Harris >> wrote: >>> >>> The next meeting is on the 19th right? ?If that's the case there's a >>> good chance I will be on my honeymoon. ?Still trying to resolve the >>> exact time for that, so it's still in the air right now. ?If I am >>> here, I would love to do a talk on Eventlet. >>> >> >> 12th actually. Congrats again! >> -- >> >> Brian Ray >> >> _______________________________________________ >> Chicago mailing list >> Chicago at python.org >> http://mail.python.org/mailman/listinfo/chicago >> >> > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > -- http://dustycloud.org/ From eviljoel at linux.com Thu May 5 15:33:02 2011 From: eviljoel at linux.com (eviljoel) Date: Thu, 5 May 2011 08:33:02 -0500 Subject: [Chicago] Greenlet In-Reply-To: References: Message-ID: Hey Brantley, Why would you miss our best meeting ever for your honeymoon? - EJ On Tue, May 3, 2011 at 1:57 PM, Brantley Harris wrote: > The next meeting is on the 19th right? ?If that's the case there's a > good chance I will be on my honeymoon. ?Still trying to resolve the > exact time for that, so it's still in the air right now. ?If I am > here, I would love to do a talk on Eventlet. > > On Tue, May 3, 2011 at 1:47 PM, Brian Ray wrote: >> >> >> On Sun, Mar 27, 2011 at 5:09 AM, Brantley Harris >> wrote: >>> >>> It lives on in Eventlet >>> >>> It's absolutely awesome, and might give a talk about it one of these days. >>> >> >> I think this could be considered a talk proposal, right ! ?For May? ?We also >> have the robotics talk in May. >> >> -- >> >> Brian Ray >> >> _______________________________________________ >> Chicago mailing list >> Chicago at python.org >> http://mail.python.org/mailman/listinfo/chicago >> >> > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > From brianhray at gmail.com Fri May 6 03:51:42 2011 From: brianhray at gmail.com (Brian Ray) Date: Thu, 5 May 2011 20:51:42 -0500 Subject: [Chicago] Next Week's Meeting will be best ever! Message-ID: Things are coming together ... great venue, great presentation ( Eventlet/Greenlet ), and even food sponsor... one thing we could use is more presentations. Anyone have any interesting things to talk about for next week. It could be stackless, concurrency, or something else completely different.. just so it is interesting to those who will attend. Proposals pls.... i'm planning .... for .... best ... meeting .... ever, folks! best ever! happy Cinco de Mayo. Cheers, Brian -- Brian Ray (773) 669-7717 From rom at jefframnani.com Tue May 3 21:43:31 2011 From: rom at jefframnani.com (Jeff Ramnani) Date: Tue, 3 May 2011 14:43:31 -0500 Subject: [Chicago] Venue Offer for May In-Reply-To: References: Message-ID: +1 Sounds like fun. On Mon, May 2, 2011 at 5:12 PM, Kumar McMillan wrote: > +1 !!!!!!!111!!111 > > On Mon, May 2, 2011 at 12:14 PM, Jough Dempsey > wrote: > > +1 - been wanting to see the new offices. > > > > On Mon, May 2, 2011 at 11:57 AM, Phil Robare > wrote: > >> +1 > >> > >> On Mon, May 2, 2011 at 10:57 AM, Brian Ray wrote: > >>> Threadless... Best EVER! > >>> let's see some +1 pls > >>> > >> _______________________________________________ > >> Chicago mailing list > >> Chicago at python.org > >> http://mail.python.org/mailman/listinfo/chicago > >> > > > > > > > > -- > > Jough Dempsey > > http://jough.com > > 312.576.6738 (mobile) > > _______________________________________________ > > Chicago mailing list > > Chicago at python.org > > http://mail.python.org/mailman/listinfo/chicago > > > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gvelazqu at teksystems.com Thu May 5 22:07:40 2011 From: gvelazqu at teksystems.com (Velazquez, Gabriel J.) Date: Thu, 5 May 2011 16:07:40 -0400 Subject: [Chicago] Seeking a Python Developer Message-ID: Hi ChiPy community, I have a long term contract, which will more than likely turn into a contract-to-hire, at a large Investment Bank in downtown Chicago. We're ideally seeking a Python Developer that has 2+ years of "hands on" Python experience. The client will consider someone that has never worked with Python if they have good experience with Perl or Ruby and are interested in learning Python. We have a very competitive hourly rate. Even if you're not in the market at the moment, I'd be happy to speak with you to network as I do see Python positions on a fairly regular basis. Feel free to email me back or call me at the number below. Here is the job description: Our client is developing a new application that can evaluate rules across several documentation and settlement platforms. The project includes designing, developing, and supporting a Python based application for reference data retrieval and rules evaluation. The development team and partners are based in Chicago, New York, London, Toronto, and India. Coordination across all regions and front office development teams will be required to deliver a trade confirmation solution that will provide central and efficient confirm generation/matching for equity derivatives. The candidate will be a mid level to senior developer responsible for contributing to all phases of the SDLC including analysis, design, development, QA, UAT, and tier 2 production support. Interaction with architects, business analysts, and developers within and outside of the hiring department will be required. Required Technical Skills: * 2+yrs of experience with Object-Oriented Design and Development * 2+yrs of experience with Python, Ruby, or Perl * 2+yrs of experience with rules engine development * Experience with test driven development. * Knowledge of database architecture and design (Sybase 12.5/15) * Full project development lifecycle * Experience with derivative operations processes, including static data, is desirable Required Personal Skills: * Structured & logical thinking * Problem solving * Results oriented * Client focus * Strong communication (written & verbal) Thanks! Gabe Velazquez Lead Recruiter - Financial Services Vertical 111 N. Canal St. Suite 105, Chicago, IL 60606 T 312.879.7762 F 312.879.1012 [cid:image001.gif at 01CC0B2F.C1D45BB0] [cid:image003.png at 01CC0B36.2D7F9FE0] ________________________________ This electronic mail (including any attachments) may contain information that is privileged, confidential, and/or otherwise protected from disclosure to anyone other than its intended recipient(s). Any dissemination or use of this electronic mail or its contents (including any attachments) by persons other than the intended recipient(s) is strictly prohibited. If you have received this message in error, please notify us immediately by reply e-mail so that we may correct our internal records. Please then delete the original message (including any attachments) in its entirety. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 3681 bytes Desc: image001.gif URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.png Type: image/png Size: 14821 bytes Desc: image003.png URL: From brianherman at gmail.com Fri May 6 04:44:59 2011 From: brianherman at gmail.com (Brian Herman) Date: Thu, 5 May 2011 21:44:59 -0500 Subject: [Chicago] Greenlet In-Reply-To: References: Message-ID: I don't know Joel I think an honeymoon is way better than a chipy meeting. Thanks, Brian Herman brianjherman.com brianherman at acm.org On Thu, May 5, 2011 at 8:33 AM, eviljoel wrote: > Hey Brantley, > > Why would you miss our best meeting ever for your honeymoon? > > - EJ > > > On Tue, May 3, 2011 at 1:57 PM, Brantley Harris > wrote: > > The next meeting is on the 19th right? If that's the case there's a > > good chance I will be on my honeymoon. Still trying to resolve the > > exact time for that, so it's still in the air right now. If I am > > here, I would love to do a talk on Eventlet. > > > > On Tue, May 3, 2011 at 1:47 PM, Brian Ray wrote: > >> > >> > >> On Sun, Mar 27, 2011 at 5:09 AM, Brantley Harris > >> wrote: > >>> > >>> It lives on in Eventlet > >>> > >>> It's absolutely awesome, and might give a talk about it one of these > days. > >>> > >> > >> I think this could be considered a talk proposal, right ! For May? We > also > >> have the robotics talk in May. > >> > >> -- > >> > >> Brian Ray > >> > >> _______________________________________________ > >> Chicago mailing list > >> Chicago at python.org > >> http://mail.python.org/mailman/listinfo/chicago > >> > >> > > _______________________________________________ > > Chicago mailing list > > Chicago at python.org > > http://mail.python.org/mailman/listinfo/chicago > > > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > -------------- next part -------------- An HTML attachment was scrubbed... URL: From orblivion at gmail.com Fri May 6 04:56:16 2011 From: orblivion at gmail.com (Dan Krol) Date: Thu, 5 May 2011 21:56:16 -0500 Subject: [Chicago] Greenlet In-Reply-To: References: Message-ID: Honeymoon: Best meeting ever On Thu, May 5, 2011 at 9:44 PM, Brian Herman wrote: > I don't know Joel I think an honeymoon is way better than a chipy meeting. > Thanks, > Brian Herman > > brianjherman.com > brianherman at acm.org > > > > > > > > > On Thu, May 5, 2011 at 8:33 AM, eviljoel wrote: >> >> Hey Brantley, >> >> Why would you miss our best meeting ever for your honeymoon? >> >> - EJ >> >> >> On Tue, May 3, 2011 at 1:57 PM, Brantley Harris >> wrote: >> > The next meeting is on the 19th right? ?If that's the case there's a >> > good chance I will be on my honeymoon. ?Still trying to resolve the >> > exact time for that, so it's still in the air right now. ?If I am >> > here, I would love to do a talk on Eventlet. >> > >> > On Tue, May 3, 2011 at 1:47 PM, Brian Ray wrote: >> >> >> >> >> >> On Sun, Mar 27, 2011 at 5:09 AM, Brantley Harris >> >> wrote: >> >>> >> >>> It lives on in Eventlet >> >>> >> >>> It's absolutely awesome, and might give a talk about it one of these >> >>> days. >> >>> >> >> >> >> I think this could be considered a talk proposal, right ! ?For May? ?We >> >> also >> >> have the robotics talk in May. >> >> >> >> -- >> >> >> >> Brian Ray >> >> >> >> _______________________________________________ >> >> Chicago mailing list >> >> Chicago at python.org >> >> http://mail.python.org/mailman/listinfo/chicago >> >> >> >> >> > _______________________________________________ >> > Chicago mailing list >> > Chicago at python.org >> > http://mail.python.org/mailman/listinfo/chicago >> > >> _______________________________________________ >> Chicago mailing list >> Chicago at python.org >> http://mail.python.org/mailman/listinfo/chicago > > > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > > From maney at two14.net Sun May 8 03:25:19 2011 From: maney at two14.net (Martin Maney) Date: Sat, 7 May 2011 20:25:19 -0500 Subject: [Chicago] Greenlet In-Reply-To: References: Message-ID: <20110508012519.GB16961@furrr.two14.net> On Thu, May 05, 2011 at 09:56:16PM -0500, Dan Krol wrote: > Honeymoon: Best meeting ever And if it isn't, then you know that you married the wrong job. -- The vulnerabilities will come, a couple of them a week, for years and years...until people stop looking for them. Waiting six months isn't going to make this OS [Windows XP] safer. -- Bruce Schneier From brianhray at gmail.com Mon May 9 16:01:53 2011 From: brianhray at gmail.com (Brian Ray) Date: Mon, 9 May 2011 09:01:53 -0500 Subject: [Chicago] Presentations for Thursday Message-ID: We need 1-2 more speakers for Thursday's meeting. Anyone got something they want to talk about? Otherwise, we will go into lightening talk mode or perhaps do some small group discussion. -- Brian Ray From clydeforrester at gmail.com Tue May 10 01:32:20 2011 From: clydeforrester at gmail.com (Clyde Forrester) Date: Mon, 09 May 2011 18:32:20 -0500 Subject: [Chicago] Reading From a Directory Message-ID: <4DC87984.5000009@gmail.com> What I want to do is open a directory and read file names from it. The standard answer I get by Googling seems to be: No you don't. Are you mad? Why would you want to do that? Clearly you want to do something else. It's a scripting language and you have no business "programming" in it. Why don't you just pass the buck to a shell (os.popen) and handle it that way? Or use a magic module glob.glob) to get a complete list, or something. Perl and Ruby have directory classes with open, read, and close methods. Why doesn't Python? Now it does occur to me that any time I want to read from a directory, I want all the files. Even if I'm using a wild card, I want to apply it to all the files in the directory, not just the first one or two. But somehow calling out to a shell, or invoking a module seems as "easy" as hiring a subcontractor to tie my shoes. I don't things have to get that complicated. c4 From jongman at gmail.com Tue May 10 01:35:21 2011 From: jongman at gmail.com (JongMan Koo) Date: Mon, 9 May 2011 18:35:21 -0500 Subject: [Chicago] Reading From a Directory In-Reply-To: <4DC87984.5000009@gmail.com> References: <4DC87984.5000009@gmail.com> Message-ID: Well, this was the first link on my google search "python list directory": http://stackoverflow.com/questions/120656/directory-listing-in-python It doesn't say it's mad.. --JongMan 2011/5/9 Clyde Forrester > What I want to do is open a directory and read file names from it. > > The standard answer I get by Googling seems to be: > No you don't. Are you mad? Why would you want to do that? Clearly you want > to do something else. It's a scripting language and you have no business > "programming" in it. Why don't you just pass the buck to a shell (os.popen) > and handle it that way? Or use a magic module glob.glob) to get a complete > list, or something. > > Perl and Ruby have directory classes with open, read, and close methods. > Why doesn't Python? > > Now it does occur to me that any time I want to read from a directory, I > want all the files. Even if I'm using a wild card, I want to apply it to all > the files in the directory, not just the first one or two. But somehow > calling out to a shell, or invoking a module seems as "easy" as hiring a > subcontractor to tie my shoes. I don't things have to get that complicated. > > c4 > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > -------------- next part -------------- An HTML attachment was scrubbed... URL: From orblivion at gmail.com Tue May 10 01:36:55 2011 From: orblivion at gmail.com (Dan Krol) Date: Mon, 9 May 2011 18:36:55 -0500 Subject: [Chicago] Reading From a Directory In-Reply-To: <4DC87984.5000009@gmail.com> References: <4DC87984.5000009@gmail.com> Message-ID: You can get the list of files thusly: http://docs.python.org/library/os.html#os.listdir And you can open each file for their contents from there. Will that do? On Mon, May 9, 2011 at 6:32 PM, Clyde Forrester wrote: > What I want to do is open a directory and read file names from it. > > The standard answer I get by Googling seems to be: > No you don't. Are you mad? Why would you want to do that? Clearly you want > to do something else. It's a scripting language and you have no business > "programming" in it. Why don't you just pass the buck to a shell (os.popen) > and handle it that way? Or use a magic module glob.glob) to get a complete > list, or something. > > Perl and Ruby have directory classes with open, read, and close methods. > Why doesn't Python? > > Now it does occur to me that any time I want to read from a directory, I > want all the files. Even if I'm using a wild card, I want to apply it to all > the files in the directory, not just the first one or two. But somehow > calling out to a shell, or invoking a module seems as "easy" as hiring a > subcontractor to tie my shoes. I don't things have to get that complicated. > > c4 > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > -------------- next part -------------- An HTML attachment was scrubbed... URL: From brant.sean at gmail.com Tue May 10 01:38:18 2011 From: brant.sean at gmail.com (Sean Brant) Date: Mon, 9 May 2011 18:38:18 -0500 Subject: [Chicago] Reading From a Directory In-Reply-To: <4DC87984.5000009@gmail.com> References: <4DC87984.5000009@gmail.com> Message-ID: On May 9, 2011, at 6:32 PM, Clyde Forrester wrote: > What I want to do is open a directory and read file names from it. > > The standard answer I get by Googling seems to be: > No you don't. Are you mad? Why would you want to do that? Clearly you want to do something else. It's a scripting language and you have no business "programming" in it. Why don't you just pass the buck to a shell (os.popen) and handle it that way? Or use a magic module glob.glob) to get a complete list, or something. > > Perl and Ruby have directory classes with open, read, and close methods. Why doesn't Python? > > Now it does occur to me that any time I want to read from a directory, I want all the files. Even if I'm using a wild card, I want to apply it to all the files in the directory, not just the first one or two. But somehow calling out to a shell, or invoking a module seems as "easy" as hiring a subcontractor to tie my shoes. I don't things have to get that complicated. If you just need to list the files in a directory do os.listdir [1]. If need Unix style shell matching use the glob module [2]. [1] http://docs.python.org/library/os.html#os.listdir [2] http://docs.python.org/library/glob.html > c4 > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago From dpmcgee at gmail.com Tue May 10 01:39:18 2011 From: dpmcgee at gmail.com (Dan McGee) Date: Mon, 9 May 2011 18:39:18 -0500 Subject: [Chicago] Reading From a Directory In-Reply-To: <4DC87984.5000009@gmail.com> References: <4DC87984.5000009@gmail.com> Message-ID: On Mon, May 9, 2011 at 6:32 PM, Clyde Forrester wrote: > What I want to do is open a directory and read file names from it. Will none of the following do what you are looking for? http://docs.python.org/library/os.html#os.walk http://docs.python.org/library/os.html#os.listdir http://docs.python.org/library/glob.html -Dan From steder at gmail.com Tue May 10 01:40:48 2011 From: steder at gmail.com (Mike Steder) Date: Mon, 9 May 2011 18:40:48 -0500 Subject: [Chicago] Reading From a Directory Message-ID: Take a look at pypi.python.org/pypi/filepath/0.1. If you do filepath.FilePath(".").globChildren("*") you'll get back a list of file objects. I think it is a nice abstraction for working with the filesystem. -Mike On May 9, 2011 6:32 PM, "Clyde Forrester" wrote: -------------- next part -------------- An HTML attachment was scrubbed... URL: From carl at personnelware.com Tue May 10 01:47:47 2011 From: carl at personnelware.com (Carl Karsten) Date: Mon, 9 May 2011 18:47:47 -0500 Subject: [Chicago] Reading From a Directory In-Reply-To: <4DC87984.5000009@gmail.com> References: <4DC87984.5000009@gmail.com> Message-ID: On Mon, May 9, 2011 at 6:32 PM, Clyde Forrester wrote: > What I want to do is open a directory and read file names from it. Your word choice kinda imposes some implementation details. My guess is you want the list of files in a dir, and don't care how that happens. -- Carl K From clydeforrester at gmail.com Tue May 10 02:01:32 2011 From: clydeforrester at gmail.com (Clyde Forrester) Date: Mon, 09 May 2011 19:01:32 -0500 Subject: [Chicago] Reading From a Directory In-Reply-To: References: <4DC87984.5000009@gmail.com> Message-ID: <4DC8805C.5030807@gmail.com> Sean Brant wrote: > On May 9, 2011, at 6:32 PM, Clyde Forrester wrote: > >> What I want to do is open a directory and read file names from it. >> >> The standard answer I get by Googling seems to be: >> No you don't. Are you mad? Why would you want to do that? Clearly you want to do something else. It's a scripting language and you have no business "programming" in it. Why don't you just pass the buck to a shell (os.popen) and handle it that way? Or use a magic module glob.glob) to get a complete list, or something. >> >> Perl and Ruby have directory classes with open, read, and close methods. Why doesn't Python? >> >> Now it does occur to me that any time I want to read from a directory, I want all the files. Even if I'm using a wild card, I want to apply it to all the files in the directory, not just the first one or two. But somehow calling out to a shell, or invoking a module seems as "easy" as hiring a subcontractor to tie my shoes. I don't things have to get that complicated. > > If you just need to list the files in a directory do os.listdir [1]. If need Unix style shell matching use the glob module [2]. > > [1] http://docs.python.org/library/os.html#os.listdir > [2] http://docs.python.org/library/glob.html > >> c4 Thank you, Sean, Dan, JongMan, Dan, Mike, and Carl. It seems that os.listdir and glob are, in fact, the properly Pythonic ways of going about it. Outsourcing something that fundamental to a shell or module still bugs me, but I think I have to adapt my way of thinking to the more pragmatic viewpoint. As Carl pointed out: > My guess is you want the list of files in a dir, and don't care how > that happens. Again, thank you. From orblivion at gmail.com Tue May 10 02:04:26 2011 From: orblivion at gmail.com (Dan Krol) Date: Mon, 9 May 2011 19:04:26 -0500 Subject: [Chicago] Reading From a Directory In-Reply-To: <4DC8805C.5030807@gmail.com> References: <4DC87984.5000009@gmail.com> <4DC8805C.5030807@gmail.com> Message-ID: Lots of fundamental things are outsourced. Heck, think about sys.exit(). It's an interface to the OS, not a part of the language, so it makes sense. On Mon, May 9, 2011 at 7:01 PM, Clyde Forrester wrote: > Sean Brant wrote: > >> On May 9, 2011, at 6:32 PM, Clyde Forrester wrote: >> >> What I want to do is open a directory and read file names from it. >>> >>> The standard answer I get by Googling seems to be: >>> No you don't. Are you mad? Why would you want to do that? Clearly you >>> want to do something else. It's a scripting language and you have no >>> business "programming" in it. Why don't you just pass the buck to a shell >>> (os.popen) and handle it that way? Or use a magic module glob.glob) to get a >>> complete list, or something. >>> >>> Perl and Ruby have directory classes with open, read, and close methods. >>> Why doesn't Python? >>> >>> Now it does occur to me that any time I want to read from a directory, I >>> want all the files. Even if I'm using a wild card, I want to apply it to all >>> the files in the directory, not just the first one or two. But somehow >>> calling out to a shell, or invoking a module seems as "easy" as hiring a >>> subcontractor to tie my shoes. I don't things have to get that complicated. >>> >> >> If you just need to list the files in a directory do os.listdir [1]. If >> need Unix style shell matching use the glob module [2]. >> >> [1] http://docs.python.org/library/os.html#os.listdir >> [2] http://docs.python.org/library/glob.html >> >> c4 >>> >> > Thank you, Sean, Dan, JongMan, Dan, Mike, and Carl. > > It seems that os.listdir and glob are, in fact, the properly Pythonic ways > of going about it. Outsourcing something that fundamental to a shell or > module still bugs me, but I think I have to adapt my way of thinking to the > more pragmatic viewpoint. > > As Carl pointed out: > > > My guess is you want the list of files in a dir, and don't care how >> that happens. >> > > Again, thank you. > > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mtobis at gmail.com Tue May 10 02:13:55 2011 From: mtobis at gmail.com (Michael Tobis) Date: Mon, 9 May 2011 19:13:55 -0500 Subject: [Chicago] Reading From a Directory In-Reply-To: References: <4DC87984.5000009@gmail.com> <4DC8805C.5030807@gmail.com> Message-ID: This is just a matter of emphasis. Clearly os.listdir is among the batteries which are included. If you're writing the sort of smallish script that moves files around, it may be convenient to just put "from os import *" "from os.path import *" at the top of the script and maybe the resulting language will better fulfill your expectations, at the expense of a greatly increased set of keywords to keep track of. On Mon, May 9, 2011 at 7:04 PM, Dan Krol wrote: >>>> It's a scripting language and you have no >>>> business "programming" in it. That baffles me. If anything your complaint seems to me like it would be the other way around. mt From mtobis at gmail.com Tue May 10 02:15:28 2011 From: mtobis at gmail.com (Michael Tobis) Date: Mon, 9 May 2011 19:15:28 -0500 Subject: [Chicago] Reading From a Directory In-Reply-To: References: <4DC87984.5000009@gmail.com> <4DC8805C.5030807@gmail.com> Message-ID: Sorry about the misattribution... Clyde Forrester wrote: >>>>> It's a scripting language and you have no >>>>> business "programming" in it. mt From carl at personnelware.com Tue May 10 02:20:21 2011 From: carl at personnelware.com (Carl Karsten) Date: Mon, 9 May 2011 19:20:21 -0500 Subject: [Chicago] Reading From a Directory In-Reply-To: <4DC8805C.5030807@gmail.com> References: <4DC87984.5000009@gmail.com> <4DC8805C.5030807@gmail.com> Message-ID: On Mon, May 9, 2011 at 7:01 PM, Clyde Forrester wrote: > Outsourcing something that fundamental to a shell or module still bugs me, that statement bugs me :) os.listdir() is an interface between the python vm and the OS's api to do what you want. It is about as elegant as you can get. Curious: what bugs you about it? -- Carl K From eviljoel at linux.com Tue May 10 02:34:53 2011 From: eviljoel at linux.com (eviljoel) Date: Mon, 9 May 2011 19:34:53 -0500 Subject: [Chicago] Reading From a Directory In-Reply-To: References: <4DC87984.5000009@gmail.com> <4DC8805C.5030807@gmail.com> Message-ID: Hello Carl, Well, if it was delegating to a shell, you might not have a shell running to delegate to. But as you said, it looks like it is calling the operating system which pretty much has to be there. Later, EJ On Mon, May 9, 2011 at 7:20 PM, Carl Karsten wrote: > On Mon, May 9, 2011 at 7:01 PM, Clyde Forrester > wrote: >> Outsourcing something that fundamental to a shell or module still bugs me, > > that statement bugs me :) > > os.listdir() is an interface between the python vm and the OS's api to > do what you want. ?It is about as elegant as you can get. ?Curious: > what bugs you about it? > > > -- > Carl K > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > From carl at personnelware.com Tue May 10 02:57:03 2011 From: carl at personnelware.com (Carl Karsten) Date: Mon, 9 May 2011 19:57:03 -0500 Subject: [Chicago] Reading From a Directory In-Reply-To: References: <4DC87984.5000009@gmail.com> <4DC8805C.5030807@gmail.com> Message-ID: the shell comment has me so befuddled I wasn't sure how to address it :) Oh yeah, something else: The python language is pretty simple. It can do some math, has a bunch of syntax for manipulating lists and dictionaries, flow control and class / function definitions. This is the stuff that every single program needs. everything else is pushed off into a module. That doesn't make things in modules any worse, it's just means the stuff you aren't using isn't cluttering memory and name spaces. and whoever said to do "from foo import *" should be sent to the corner. On Mon, May 9, 2011 at 7:34 PM, eviljoel wrote: > Hello Carl, > > Well, if it was delegating to a shell, you might not have a shell > running to delegate to. ?But as you said, it looks like it is calling > the operating system which pretty much has to be there. > > Later, > EJ > > > On Mon, May 9, 2011 at 7:20 PM, Carl Karsten wrote: >> On Mon, May 9, 2011 at 7:01 PM, Clyde Forrester >> wrote: >>> Outsourcing something that fundamental to a shell or module still bugs me, >> >> that statement bugs me :) >> >> os.listdir() is an interface between the python vm and the OS's api to >> do what you want. ?It is about as elegant as you can get. ?Curious: >> what bugs you about it? >> >> >> -- >> Carl K >> _______________________________________________ >> Chicago mailing list >> Chicago at python.org >> http://mail.python.org/mailman/listinfo/chicago >> > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > -- Carl K From clydeforrester at gmail.com Tue May 10 05:08:11 2011 From: clydeforrester at gmail.com (Clyde Forrester) Date: Mon, 09 May 2011 22:08:11 -0500 Subject: [Chicago] Reading From a Directory In-Reply-To: References: <4DC87984.5000009@gmail.com> <4DC8805C.5030807@gmail.com> Message-ID: <4DC8AC1B.8000907@gmail.com> Carl Karsten wrote: > On Mon, May 9, 2011 at 7:01 PM, Clyde Forrester > wrote: >> Outsourcing something that fundamental to a shell or module still bugs me, > > that statement bugs me :) > > os.listdir() is an interface between the python vm and the OS's api to > do what you want. It is about as elegant as you can get. Curious: > what bugs you about it? > > I'm making the tough mental shift from It's so trivially easy that everyone EXCEPT Python has the ability to open, read, and close a directory. What could be easier? to Just because you CAN do it that way, doesn't mean you SHOULD. Or, for that matter, that it's the most direct or simplest way. Yeah, yeah. I'll get over it. c4 From maney at two14.net Tue May 10 05:38:56 2011 From: maney at two14.net (Martin Maney) Date: Mon, 9 May 2011 22:38:56 -0500 Subject: [Chicago] Reading From a Directory In-Reply-To: <4DC8AC1B.8000907@gmail.com> References: <4DC87984.5000009@gmail.com> <4DC8805C.5030807@gmail.com> <4DC8AC1B.8000907@gmail.com> Message-ID: <20110510033856.GC16961@furrr.two14.net> On Mon, May 09, 2011 at 10:08:11PM -0500, Clyde Forrester wrote: > I'm making the tough mental shift from > > It's so trivially easy that everyone EXCEPT Python has the ability > to open, read, and close a directory. What could be easier? > > to > > Just because you CAN do it that way, doesn't mean you SHOULD. Or, > for that matter, that it's the most direct or simplest way. Well, you CAN do it that way... in, say, Perl. In C, C++, Python, and a horde of other languages, it's not a hardwired feature of the language, but an external function. Modules (and Packages) are Python's way of managing external code. In fact, despite the different appearances, ALL these languages "pass the buck" to the OS in the end: they only differ in how they present the slot for receiving the buck. And a bazillion other things are like this... > Yeah, yeah. I'll get over it. I hope you do, because Python very generally prefers to package things into modules rather than making them builtins or keywords or whatever. You don't half know what Python is if you haven't gotten to know the standard library. Not know it all by heart - I doubt anyone does. But knowing that it's there, and how to find out what's in there that you don't already know about is not important, it's essential. -- During almost fifteen centuries has the legal establishment of Christianity been on trial. What have been its fruits? More or less in all places, pride and indolence in the Clergy, ignorance and servility in the laity, in both, superstition, bigotry and persecution. -- James Madison From clydeforrester at gmail.com Tue May 10 06:35:49 2011 From: clydeforrester at gmail.com (Clyde Forrester) Date: Mon, 09 May 2011 23:35:49 -0500 Subject: [Chicago] Reading From a Directory In-Reply-To: <20110510033856.GC16961@furrr.two14.net> References: <4DC87984.5000009@gmail.com> <4DC8805C.5030807@gmail.com> <4DC8AC1B.8000907@gmail.com> <20110510033856.GC16961@furrr.two14.net> Message-ID: <4DC8C0A5.1000801@gmail.com> Martin Maney wrote: > On Mon, May 09, 2011 at 10:08:11PM -0500, Clyde Forrester wrote: >> I'm making the tough mental shift from >> >> It's so trivially easy that everyone EXCEPT Python has the ability >> to open, read, and close a directory. What could be easier? >> >> to >> >> Just because you CAN do it that way, doesn't mean you SHOULD. Or, >> for that matter, that it's the most direct or simplest way. > > Well, you CAN do it that way... in, say, Perl. In C, C++, Python, and > a horde of other languages, it's not a hardwired feature of the > language, but an external function. Modules (and Packages) are > Python's way of managing external code. In fact, despite the different > appearances, ALL these languages "pass the buck" to the OS in the end: > they only differ in how they present the slot for receiving the buck. > And a bazillion other things are like this... I don't think that you understand my objection. C has libraries for opening and reading directories. Python does not. I have no objection to modules, packages and libraries. What I'm objecting to is the notion that Python can't inherently read directories. What goes on in the module? Is it secret code? Is it in another language? Is Python's standard solution to anything tricky to write a module in another language and then invoke the module from Python? Most languages just treat directories as a special sort of file, and just don't get all that worked up. > >> Yeah, yeah. I'll get over it. > > I hope you do, because Python very generally prefers to package things > into modules rather than making them builtins or keywords or whatever. > You don't half know what Python is if you haven't gotten to know the > standard library. Not know it all by heart - I doubt anyone does. But > knowing that it's there, and how to find out what's in there that you > don't already know about is not important, it's essential. > Again, you've misread my intent. I've gotten used to extensive modules and libraries in languages like Java. That's not my complaint. That's not what I'm getting used to. I'm getting used to the idea that I don't have to actively read a directory end to end, so much as I just want to get all of its contents. With files, much of the time one just wants the whole thing also. But not always. If I'm doing a compare and it fails on the first block, then boom, I'm done, it failed, no need to go on. But with directories, there isn't a situation where I don't want to examine the whole thing. That was a big blindspot in my mind, and that's what I'm getting used to. From jongman at gmail.com Tue May 10 07:49:29 2011 From: jongman at gmail.com (JongMan Koo) Date: Tue, 10 May 2011 00:49:29 -0500 Subject: [Chicago] Reading From a Directory In-Reply-To: <4DC8C0A5.1000801@gmail.com> References: <4DC87984.5000009@gmail.com> <4DC8805C.5030807@gmail.com> <4DC8AC1B.8000907@gmail.com> <20110510033856.GC16961@furrr.two14.net> <4DC8C0A5.1000801@gmail.com> Message-ID: A few things to clarify... > C has libraries for opening and reading directories. No, it doesn't. The C language standard doesn't define any standard way to work with directories. To access directories C programs have to use platform dependent code: In POSIX you must use opendir, readdir and company, and in Windows you must use FindFirstFile and company. > Python does not. Yes, it does. All the methods mentioned above (os.listdir and glob.glob) are included in Python's standard library. > Most languages just treat directories as a special sort of file, and just > don't get all that worked up. I don't understand why you are treating standard libraries as something not inherent with the language. All the directory access functionality in all the languages come from some kind of standard library or some code in the runtime. So the only difference between those "most languages" and Python would be whether they are "included" by default (or bound to the language syntax, which sounds like an worse option to me), or you have to elect for it. Doesn't look like a big difference to me. --JongMan 2011/5/9 Clyde Forrester > Martin Maney wrote: > >> On Mon, May 09, 2011 at 10:08:11PM -0500, Clyde Forrester wrote: >> >>> I'm making the tough mental shift from >>> >>> It's so trivially easy that everyone EXCEPT Python has the ability >>> to open, read, and close a directory. What could be easier? >>> >>> to >>> >>> Just because you CAN do it that way, doesn't mean you SHOULD. Or, >>> for that matter, that it's the most direct or simplest way. >>> >> >> Well, you CAN do it that way... in, say, Perl. In C, C++, Python, and >> a horde of other languages, it's not a hardwired feature of the >> language, but an external function. Modules (and Packages) are >> Python's way of managing external code. In fact, despite the different >> appearances, ALL these languages "pass the buck" to the OS in the end: >> they only differ in how they present the slot for receiving the buck. And >> a bazillion other things are like this... >> > I don't think that you understand my objection. > I have no objection to modules, packages and libraries. > > >> Yeah, yeah. I'll get over it. >>> >> >> I hope you do, because Python very generally prefers to package things >> into modules rather than making them builtins or keywords or whatever. You >> don't half know what Python is if you haven't gotten to know the >> standard library. Not know it all by heart - I doubt anyone does. But >> knowing that it's there, and how to find out what's in there that you >> don't already know about is not important, it's essential. >> >> Again, you've misread my intent. I've gotten used to extensive modules > and libraries in languages like Java. That's not my complaint. That's not > what I'm getting used to. > With files, much of the time one just wants the whole thing also. But not > always. If I'm doing a compare and it fails on the first block, then boom, > I'm done, it failed, no need to go on. But with directories, there isn't a > situation where I don't want to examine the whole thing. That was a big > blindspot in my mind, and that's what I'm getting used to. > > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tonkinjs at yahoo.com Tue May 10 13:37:44 2011 From: tonkinjs at yahoo.com (Jonathan Tonkin) Date: Tue, 10 May 2011 04:37:44 -0700 (PDT) Subject: [Chicago] Several items that may be of interest to group members Message-ID: <144556.73682.qm@web111309.mail.gq1.yahoo.com> Hello, While this may not be directly related to group topics, here are several items that may be of interest to group members. 1.) (shortest first) The Chicago Chapter of the ACM is now on Facebook and Twitter.? Join our Facebook Group (http://www.facebook.com/group.php?gid=59120137059) or follow us on Twitter (username:? chicagoacm). 2.)? Next ACM Meeting: May 11, 2011 A joint meeting with the Loyola University Computer Science Department Speaker: Massimo Di Pierro Topic: "web2py: Web Development Made Easy" Wednesday, March 16, 2011, 6:30 pm 5:30 pm -6:30 pm (Social Hour) Loyola University Water Tower Campus (Chicago/Michigan Area) Corboy Law Center (CLC) Room 211 25 E Pearson Street, Chicago, IL 60611 Campus map: http://www.luc.edu/about/pdfs/wtc_may09.pdf Admission: Free (General Admission, No Reserved Seats) Reservations: To make a reservation, use this form: (https://spreadsheets2.google.com/a/chicagoacm.org/viewform?authkey=CI2RoYoH&formkey=dHpfZ0Y0a2ZPNFM4clRaNVJPS2JTeVE6MA&ndplr=1#gid=0) or send an e-mail to greg at neumarke.net. About the Topic: web2py was inspired by Ruby on Rails and, as Rails, it focuses on rapid development and follows a Model View Controller design. web2py was also inspired by Django and, as Django, it has the ability to generate forms from database tables and it includes an extensive set of validators. web2py is less verbose than Java-based frameworks and its syntax is much cleaner than PHP-based frameworks. This makes applications simpler to develop, and easier to read and maintain. About the Speaker: Dr. Massimo Di Pierro is an Associate Professor of Computer Science in the School of Computing of DePaul University in Chicago and the director of the MS in Computational Finance. Massimo is also the CEO of MetaCryption LLC.? He also conducts research in Lattice Quantum Chromodynamics supported by the US Department of Energy. Thanks, Jonathan Tonkin -------------- next part -------------- An HTML attachment was scrubbed... URL: From maney at two14.net Tue May 10 15:51:59 2011 From: maney at two14.net (Martin Maney) Date: Tue, 10 May 2011 08:51:59 -0500 Subject: [Chicago] Reading From a Directory In-Reply-To: <4DC8C0A5.1000801@gmail.com> References: <4DC87984.5000009@gmail.com> <4DC8805C.5030807@gmail.com> <4DC8AC1B.8000907@gmail.com> <20110510033856.GC16961@furrr.two14.net> <4DC8C0A5.1000801@gmail.com> Message-ID: <20110510135159.GB14571@furrr.two14.net> On Mon, May 09, 2011 at 11:35:49PM -0500, Clyde Forrester wrote: > I don't think that you understand my objection. C has libraries for > opening and reading directories. Python does not. I have no > objection to modules, packages and libraries. What I'm objecting to Well, of course I (and others) misunderstood you, since you made so much about modules as a problem - or so it sounded. When someone new (and forgive me, but I don't recognize your name, so I have to guess at what might be between the lines (1)) asks a question with so much chaff surrounding it, well, that we guess wrong is hardly surprising. > Most languages just treat directories as a special sort of file, and just > don't get all that worked up. In fact, all the scripting languages are relatively thin veneers over a VM and runtime that is written in another language. Even Java - the JIT is a relatively recent optimization of its interpreted VM model. It is in fact one of Python's strengths that it's fairly easy to adapt many foreign (C, mostly) libraries, or to provide a compatible binary (C again, nearly always) replacement for a pure Python implementation when the latter is actually a performance issue. > done, it failed, no need to go on. But with directories, there isn't > a situation where I don't want to examine the whole thing. That was > a big blindspot in my mind, and that's what I'm getting used to. Ah, right. This is a small example of the sort of thing that gives rise to the "Guido's time machine" theory. Over and over, folks like you and me discover that Python already does something that we thought we'd have to assemble from parts, or that it just wouldn't have. The theory is that Guido went back in his time machine and made it so that it was always so, 'cause how else could it have been in there all this time? Hmmm, let me see if I can find the .Sig item about that... (1) I didn't think of it last evening, but I'll bet a lot of the "no, you don't want to do that" that Google found you was about people who asked (or seemed to ask) how to literally open and read a directory - not the sensible readdir, but actually reading it like a file. That is something which, in fact, you almost never should wish to do, and although it's been a long time since I've hung out in C-heavy areas, I do recall that it used to be one of the fairly common queries. -- To fix that one, I'd have to travel all the way back to the early eighties and convince the BSD design team to improve the diagnostics abilities of the Unix kernel in general, and of select(2) in particular. And while I could certainly do that, I'm worried of the consequences - the BSD vs. System V split might never have happened, Unix would have ruled the world, we'd all be programming in awk++, and Bill Gates would be an obscure patent lawyer that no one had heard of. -- Guido van Rossum From brian.curtin at gmail.com Tue May 10 16:17:06 2011 From: brian.curtin at gmail.com (Brian Curtin) Date: Tue, 10 May 2011 09:17:06 -0500 Subject: [Chicago] Reading From a Directory In-Reply-To: <4DC8C0A5.1000801@gmail.com> References: <4DC87984.5000009@gmail.com> <4DC8805C.5030807@gmail.com> <4DC8AC1B.8000907@gmail.com> <20110510033856.GC16961@furrr.two14.net> <4DC8C0A5.1000801@gmail.com> Message-ID: On Mon, May 9, 2011 at 23:35, Clyde Forrester wrote: > > I don't think that you understand my objection. C has libraries for opening > and reading directories. Python does not. If you wanted to, you could use ctypes and access whatever POSIX shared libraries you want and you could write the exact same code in Python as you could in C. > I have no objection to modules, packages and libraries. What I'm objecting > to is the notion that Python can't inherently read directories. What goes on > in the module? Is it secret code? Is it in another language? The os module is 10,176 lines of C (in Modules/posixmodule.c) and 832 lines of Python (in Lib/os.py), joined together to provide a fairly thin layer over the platform libraries (POSIX, Windows API, etc). os.listdir in particular boils down to around 75 lines of C, most of which is error checking, argument conversion boilerplate (converting from a Python string to a char* directory name), etc. Stripping all of that out, you get an opendir call, then we loop readdir calls around that result. > Is Python's standard solution to anything tricky to write a module in > another language and then invoke the module from Python? Most languages just > treat directories as a special sort of file, and just don't get all that > worked up. Like most high level languages, stuff like listing a directory is simplified and abstracted away. You end up with a one line call "os.listdir(dir)" rather than everyone re-inventing the wheel with their own opendir/readdir loop. Directories aren't really treated as anything other than a string name - you pass a directory name to various functions and they operate on the directory for you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From carl at personnelware.com Tue May 10 17:20:27 2011 From: carl at personnelware.com (Carl Karsten) Date: Tue, 10 May 2011 10:20:27 -0500 Subject: [Chicago] tell us how you do something Message-ID: We are light on talks. The moment someone proposes talking, I'll spam the local lists announcing it. Someone must have something they are proud of. Don't worry if you don't think anyone will find it useful. Generally I like talks that try to educate the group about something some may apply in the near future. I have noticed that there is value in the talks that even if no one will apply the primary subject, the resulting chatter it generates is good. -- Carl K From carl at personnelware.com Tue May 10 17:29:32 2011 From: carl at personnelware.com (Carl Karsten) Date: Tue, 10 May 2011 10:29:32 -0500 Subject: [Chicago] tell us how you do something In-Reply-To: References: Message-ID: On Tue, May 10, 2011 at 10:20 AM, Carl Karsten wrote: > We are light on talks. ?The moment someone proposes talking, I'll spam > the local lists announcing it. > > Someone must have something they are proud of. ?Don't worry if you > don't think anyone will find it useful. > > Generally I like talks that try to educate the group about something > some may apply in the near future. ?I have noticed that there is value > in the talks that even if no one will apply the primary subject, the > resulting chatter it generates is good. > Personally I am interested in how people deploy stuff, starting with: Code is in a code repo, developers say it is ready. How does it get tested and deployed while the devs keep working on new stuff? I just install git on my production box and check out master. works fine most of the time, but every so often I wish I was able to fix a bug without having to pull down stuff that isn't really ready yet. -- Carl K From kumar.mcmillan at gmail.com Tue May 10 17:39:56 2011 From: kumar.mcmillan at gmail.com (Kumar McMillan) Date: Tue, 10 May 2011 10:39:56 -0500 Subject: [Chicago] Presentations for Thursday In-Reply-To: References: Message-ID: On Mon, May 9, 2011 at 9:01 AM, Brian Ray wrote: > We need 1-2 more speakers for Thursday's meeting. Anyone got something > they want to talk about? Otherwise, we will go into lightening talk > mode or perhaps do some small group discussion. Argh, I am out of town this Thursday otherwise I'd give a quick talk on Playdoh: http://mozilla.github.com/playdoh/ Next meeting! Lightning talks are always a good idea because it's less pressure, someone will pop up with a talk the day of. > > -- > > Brian Ray > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > From matt at tplus1.com Tue May 10 17:45:50 2011 From: matt at tplus1.com (W. Matthew Wilson) Date: Tue, 10 May 2011 11:45:50 -0400 Subject: [Chicago] tell us how you do something In-Reply-To: References: Message-ID: I run production from a checkout of a branch named "maint", short for maintenance. Then I have a master branch. Usually, if I'm really OCD, I'll make a separate branch off master for each feature or bug. Then I merge the topic into master as I finish. Most of the time, I just develop directly on master though. I got all these ideas by reading the git workflows manual page. If you have an hour, read this: $ git help workflows I use fabric to do my production upgrades. My fabric script does this: 1. Make an SSH connection to the production box 2. Tell supervisord to stop the webapp and the background scripts 3. Do $ git pull origin maint; # think svn up if you're not familiar with git. 4. Tell supervisord to start the webapp and the background scripts. Sometimes I have to do stuff like alter the database schema, or use easy_install to pull some new packages, or maybe do other sysadmin tasks. I'm still experimenting with how to do that stuff elegantly. I'm probably going to do a talk at PyOhio this summer on using python for system administration and deployment. Right now I'm looking for interesting (non-trivial) tasks that people want to automate but don't know how to. So, please, let me know if you face a thorny problem. Matt On Tue, May 10, 2011 at 11:29 AM, Carl Karsten wrote: > On Tue, May 10, 2011 at 10:20 AM, Carl Karsten wrote: >> We are light on talks. ?The moment someone proposes talking, I'll spam >> the local lists announcing it. >> >> Someone must have something they are proud of. ?Don't worry if you >> don't think anyone will find it useful. >> >> Generally I like talks that try to educate the group about something >> some may apply in the near future. ?I have noticed that there is value >> in the talks that even if no one will apply the primary subject, the >> resulting chatter it generates is good. >> > > > Personally I am interested in how people deploy stuff, starting with: > Code is in a code repo, developers say it is ready. ?How does it get > tested and deployed while the devs keep working on new stuff? > > I just install git on my production box and check out master. ?works > fine most of the time, but every so often I wish I was able to fix a > bug without having to pull down stuff that isn't really ready yet. > > -- > Carl K > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > -- W. Matthew Wilson matt at tplus1.com http://tplus1.com From carl at personnelware.com Tue May 10 18:01:58 2011 From: carl at personnelware.com (Carl Karsten) Date: Tue, 10 May 2011 11:01:58 -0500 Subject: [Chicago] Greenlet In-Reply-To: References: Message-ID: On Tue, May 3, 2011 at 3:28 PM, Brantley Harris wrote: > 12th, then yes, I will commit to doing a talk on Eventlet/Greenlet. > > On Tue, May 3, 2011 at 2:59 PM, Brian Ray wrote: >> >> >> On Tue, May 3, 2011 at 1:57 PM, Brantley Harris >> wrote: >>> >>> The next meeting is on the 19th right? ?If that's the case there's a >>> good chance I will be on my honeymoon. ?Still trying to resolve the >>> exact time for that, so it's still in the air right now. ?If I am >>> here, I would love to do a talk on Eventlet. >>> Brantley, Can you confirm you are doing this by giving me description for the announcement/video and permission to video? Sorry if it is posted somewhere else, I got tired of skimming posts. -- Carl K From tottinge at gmail.com Tue May 10 19:35:46 2011 From: tottinge at gmail.com (Tim Ottinger) Date: Tue, 10 May 2011 12:35:46 -0500 Subject: [Chicago] Reading From a Directory In-Reply-To: <4DC87984.5000009@gmail.com> References: <4DC87984.5000009@gmail.com> Message-ID: By now there have been plenty of responses suggesting glob and listdir and the like. The thing I didn't see was mention that opening a directory and reading it certainly can be as "simple" as you say. You can open it as a binary file and try to figure out what the bytes mean. Of course, in *nix world, most of the time a dir is a string and an inode of some size. However, there are a great many non-*nix file systems in use even in Linux world. Is it Fat16? NTFS? ExtXX? Wanting to read Windows directories is rather different than wanting to read unix. Do you really want to get below the compatibility layer to deal with file system layouts, byte orderings, file allocation chains, journals, and the like? Or do you just want to know what's in a directory? I don't think you ever really described the problem well enough for me to know. I suspect that either os.listdir() or os.walk() are what you want. Finally "invoking a module" is "import" here, and that's almost identical to "#include" in C. I wouldn't consider it a hardship or an exceptional expense. -- Tim Ottinger, Sr. Consultant, Industrial Logic ------------------------------------- http://www.industriallogic.com/ http://agileinaflash.com/ http://agileotter.blogspot.com/ From robkapteyn at gmail.com Tue May 10 20:04:10 2011 From: robkapteyn at gmail.com (Rob Kapteyn) Date: Tue, 10 May 2011 13:04:10 -0500 Subject: [Chicago] Reading From a Directory In-Reply-To: References: <4DC87984.5000009@gmail.com> <4DC8805C.5030807@gmail.com> <4DC8AC1B.8000907@gmail.com> <20110510033856.GC16961@furrr.two14.net> <4DC8C0A5.1000801@gmail.com> Message-ID: <2E1ACD00-FCC3-4A43-BACF-F2BDDC650668@gmail.com> I think its rather brilliant that Guido, et al., put all of he file system functionality in the os module of the standard library. There are lots of real-world computers that don't have any filesystem at all. Most embedded systems just get a program loaded into memory from an external programmer and then just run. (this also explains why sys.exit() is in an external module) The Superboard II that Dave Beasley brought to ChiPy is another example. Programs are loaded from tape and run. No disk, no filesystem. sys.exit() == power switch. And, while I can't think of a really good example, it is my impression that Python is getting some traction in the embedded systems world. -Rob On May 10, 2011, at 9:17 AM, Brian Curtin wrote: > On Mon, May 9, 2011 at 23:35, Clyde Forrester wrote: > I don't think that you understand my objection. C has libraries for opening and reading directories. Python does not. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From clydeforrester at gmail.com Tue May 10 20:20:18 2011 From: clydeforrester at gmail.com (Clyde Forrester) Date: Tue, 10 May 2011 13:20:18 -0500 Subject: [Chicago] Reading From a Directory In-Reply-To: References: <4DC87984.5000009@gmail.com> Message-ID: <4DC981E2.5000205@gmail.com> Tim Ottinger wrote: > Do you really want to get below the compatibility layer to deal with > file system layouts, byte orderings, file allocation chains, journals, > and the like? Or do you just want to know what's in a directory? > > I don't think you ever really described the problem well enough for me to know. I wanted to get a list of files. I thought it would be easiest to just open the directory and get the file names one by one, like I have done in so many (well, uh, 2 actually) other languages. Sort of like when I want to go through a text file. Turns out I "just want to know what's in [the] directory". Yeah. All that commotion over this. > > I suspect that either os.listdir() or os.walk() are what you want. > > Finally "invoking a module" is "import" here, and that's almost > identical to "#include" in C. I wouldn't consider it a hardship or an > exceptional expense. What I'm learning here is where language creators draw the line between built-ins and libraries/modules. Right now the focus is on the line between one part of the file system (files) and another part of the file system (directories). As others have pointed out, Guido seems to have spotted an important distinction here, and has seen no need to provide directory micro-management when there's no call for it. What I've failed to realize, and therefore mention, is that my initial impression of the os.whatever() calls (as eluded to in various forum sites) was that it was an expedient, but crude shell-summoning hack. It looked a first like I would be asking for a ton of text, and then have to beat the snot out of it with regexps or something. c4 From deadwisdom at gmail.com Tue May 10 20:34:00 2011 From: deadwisdom at gmail.com (Brantley Harris) Date: Tue, 10 May 2011 13:34:00 -0500 Subject: [Chicago] Greenlet In-Reply-To: References: Message-ID: The talk is entitled: "Eventlet/Greenlet - Coroutines and the Future of Concurrency" Description: Concurrent network programming using coroutines; Why threads suck; How coroutines work; and how they can replace threads for simplicity, fun, and speed. I, Brantley Harris, hereby give anyone, but specifically Carl Karsten et al., to record, both audio and visual, for purposes of whatever, my talk as described above and taking place on Thursday the 12th of May at the Chicago Python Users Group meeting. On Tue, May 10, 2011 at 11:01 AM, Carl Karsten wrote: > On Tue, May 3, 2011 at 3:28 PM, Brantley Harris wrote: >> 12th, then yes, I will commit to doing a talk on Eventlet/Greenlet. >> >> On Tue, May 3, 2011 at 2:59 PM, Brian Ray wrote: >>> >>> >>> On Tue, May 3, 2011 at 1:57 PM, Brantley Harris >>> wrote: >>>> >>>> The next meeting is on the 19th right? ?If that's the case there's a >>>> good chance I will be on my honeymoon. ?Still trying to resolve the >>>> exact time for that, so it's still in the air right now. ?If I am >>>> here, I would love to do a talk on Eventlet. >>>> > > Brantley, > > Can you confirm you are doing this by giving me > description for the announcement/video > and permission to video? > > Sorry if it is posted somewhere else, I got tired of skimming posts. > > -- > Carl K > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > From carl at personnelware.com Tue May 10 20:53:14 2011 From: carl at personnelware.com (Carl Karsten) Date: Tue, 10 May 2011 13:53:14 -0500 Subject: [Chicago] Greenlet In-Reply-To: References: Message-ID: On Tue, May 10, 2011 at 1:34 PM, Brantley Harris wrote: > The talk is entitled: "Eventlet/Greenlet - Coroutines and the Future > of Concurrency" > Description: Concurrent network programming using coroutines; Why > threads suck; How coroutines work; and how they can replace threads > for simplicity, fun, and speed. > nice. > I, Brantley Harris, hereby give anyone, but specifically Carl Karsten > et al., to record, both audio and visual, for purposes of whatever, my > talk as described above and taking place on Thursday the 12th of May > at the Chicago Python Users Group meeting. lol @ purposes of whatever > > On Tue, May 10, 2011 at 11:01 AM, Carl Karsten wrote: >> On Tue, May 3, 2011 at 3:28 PM, Brantley Harris wrote: >>> 12th, then yes, I will commit to doing a talk on Eventlet/Greenlet. >>> >>> On Tue, May 3, 2011 at 2:59 PM, Brian Ray wrote: >>>> >>>> >>>> On Tue, May 3, 2011 at 1:57 PM, Brantley Harris >>>> wrote: >>>>> >>>>> The next meeting is on the 19th right? ?If that's the case there's a >>>>> good chance I will be on my honeymoon. ?Still trying to resolve the >>>>> exact time for that, so it's still in the air right now. ?If I am >>>>> here, I would love to do a talk on Eventlet. >>>>> >> >> Brantley, >> >> Can you confirm you are doing this by giving me >> description for the announcement/video >> and permission to video? >> >> Sorry if it is posted somewhere else, I got tired of skimming posts. >> >> -- >> Carl K >> _______________________________________________ >> Chicago mailing list >> Chicago at python.org >> http://mail.python.org/mailman/listinfo/chicago >> > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > -- Carl K From orblivion at gmail.com Wed May 11 00:44:08 2011 From: orblivion at gmail.com (Dan Krol) Date: Tue, 10 May 2011 17:44:08 -0500 Subject: [Chicago] The Chicago LUG (sortof) Message-ID: Hi all, I just thought I'd reach out this list to try to find any people who considered themselves members or fans of the Chicago LUG (which may seem to have all but faded into nonexistence), and to any new people who may be interested. Well, we're getting the band back together on May 21st 3PM, and we will be meeting at Pumping Station One, Chicago's friendly neighborhood hackerspace: http://tinyurl.com/chiglug-first-2011 (Details still forming) We had some issues with our old site, and list (which is why I'm looking for people here), so at this point we're trying to (re)assemble anybody interested in staying in the loop onto here: http://groups.google.com/group/chicagolinux-discuss At this point we've decided it isn't a Linux User's Group anymore, and never exactly was, at least for a long time. We're a group of people who like to meet up on a Saturday afternoon, drink beer, and listen to talks about interesting stuff in the realm of open source and programming. We're still working on a name change, but a strong contender is Chicago Open Source Enthusiasts. For now though, we're just gonna try meeting up again and see where it goes. Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From maney at two14.net Wed May 11 04:52:35 2011 From: maney at two14.net (Martin Maney) Date: Tue, 10 May 2011 21:52:35 -0500 Subject: [Chicago] tell us how you do something In-Reply-To: References: Message-ID: <20110511025235.GA20230@furrr.two14.net> On Tue, May 10, 2011 at 10:29:32AM -0500, Carl Karsten wrote: > I just install git on my production box and check out master. works > fine most of the time, but every so often I wish I was able to fix a > bug without having to pull down stuff that isn't really ready yet. Sounds like you just need to use git for more than just syncing. Start a new branch and drop your changes in, or cherrypick that delta from upstream, or... whatever. Merge master back in when it's stable for you. Lather, rinse, repeat as necessary... -- The phenomenon of financial excess associated with promising novel technologies is a recurring feature of the last two centuries. -- Andrew Odlyzko From brianhray at gmail.com Wed May 11 17:54:23 2011 From: brianhray at gmail.com (Brian Ray) Date: Wed, 11 May 2011 10:54:23 -0500 Subject: [Chicago] ANN: ChiPy May Meeting Tomorrow Thurs. at Threadless Message-ID: Save the date! You are invited to what will undoubtably be the best meeting ever... no threads attached! When: Thursday May 12th 2011 7 p.m. Where: Threadless 1260 W. Madison, ample parking, close to Ashland & Lake Green/Pink "L" stop Special Thanks to Threadless and Chris McAvoy http://www.threadless.com/ for hosting! Please RSVP ?https://spreadsheets.google.com/viewform?formkey=dHVLOTNTU3oxTzJKYjB3RmV4eVZkMEE6MA Topics: Eventlet/Greenlet - Coroutines and the Future of Concurrency (:50 Fifty Minutes) By: Brantley Harris Description: Concurrent network programming using coroutines; Why threads suck; How coroutines work; and how they can replace threads for simplicity, fun, and speed. Pizza and Socialize (:20 Twenty Minutes) Special thanks to our food sponsor Leon Chis and Analyte Health http://www.analytehealth.com/, Online clinic built with Python, "Leveraging the internet to deliver convenient and high quality healthcare" Lightening and Thunder (:45 Forty Five Minutes) We will break out into 4 groups based on interest for round tables and lightening talks. The groups will be: ?* Web Dev and Hacker Journalism ?* Database, Hosting, and Systems ?* Mobile, Embedded Hacking ?* Scientific Also the new Chipy Mentoring Program has just conducted their first release of the http://chipy.org site. ?Stay tuned for some new features and to meet the 7 contributors in next month's meeting. ChiPy is a group of Chicago Python Programmers, l33t, and n00bs. Meetings are held monthly at various locations around Chicago. Also, ChiPy is a proud sponsor of many Open Source and Educational efforts in Chicago. Stay tuned to the mailing list for more info. ChiPy website: ChiPy Mailing List: ChiPy Announcement *ONLY* Mailing List: Python website: From danieltpeters at gmail.com Wed May 11 20:37:40 2011 From: danieltpeters at gmail.com (Daniel Peters) Date: Wed, 11 May 2011 13:37:40 -0500 Subject: [Chicago] Looking for a designer who has experience with Django Message-ID: And I would love any advice on finding one, or individual recommendations. The experience with Django is not a hard and fast rule, just would be nice. The project will probably use Jinja2, jQuery and HTML5 among others, its also a moderately large site with traffic for the current version seeing 60,000 uniques a day sometimes. I can happily provide more details on the project to anyone interested, I've never handled the sub-contracting of design work myself before this, so *any * advice will be sincerely welcomed. -------------- next part -------------- An HTML attachment was scrubbed... URL: From brianhray at gmail.com Thu May 12 22:34:41 2011 From: brianhray at gmail.com (Brian Ray) Date: Thu, 12 May 2011 15:34:41 -0500 Subject: [Chicago] Reminder: ChiPy Meeting tonight Message-ID: Hey all, at 7pm we are meeting at Threadless, see http://chipy.org It is not required you RSVP but if helps me order pizza, so if you get a chance RSVP: https://spreadsheets.google.com/viewform?formkey=dHVLOTNTU3oxTzJKYjB3RmV4eVZkMEE6MA There are quite a few RSVP rolling in today and this will be a casual and fun meeting at a fun venue. Stop in and say hello. See you soon, Brian -- Brian Ray (773) 669-7717 From brianhray at gmail.com Fri May 13 14:54:35 2011 From: brianhray at gmail.com (Brian Ray) Date: Fri, 13 May 2011 07:54:35 -0500 Subject: [Chicago] Great Loop Meeting, Now for the North meeting ... Message-ID: Thanks everyone, very nice meeting. In discussion with key North meeting organizers, ehem Steve and Ed, we would like to propose moving the North meeting to the 4th Thursday two weeks from the Loop meeting. That will give us more time to plan. I imagine the next meeting will be at Textura. How does May 26th sound? If I hear no complaints, I will presume this is ok and we will start making arrangements to make this happen. Anybody have something they want to present? -- Brian Ray (773) 669-7717 From dean at gianthead.net Fri May 13 22:20:13 2011 From: dean at gianthead.net (Dean Sellis) Date: Fri, 13 May 2011 15:20:13 -0500 Subject: [Chicago] Great Loop Meeting, Now for the North meeting ... In-Reply-To: References: Message-ID: That sounds good to me too. I have more of my presentation on Python web frameworks complete and it will definitely be ready by the 26th. I am going to start with web.py and finish with web2py. Dean On Fri, May 13, 2011 at 7:54 AM, Brian Ray wrote: > Thanks everyone, very nice meeting. > > In discussion with key North meeting organizers, ehem Steve and Ed, we > would like to propose moving the North meeting to the 4th Thursday two > weeks from the Loop meeting. That will give us more time to plan. I > imagine the next meeting will be at Textura. How does May 26th sound? > If I hear no complaints, I will presume this is ok and we will start > making arrangements to make this happen. > > Anybody have something they want to present? > > > -- > > Brian Ray > (773) 669-7717 > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > -------------- next part -------------- An HTML attachment was scrubbed... URL: From carl at personnelware.com Sat May 14 00:20:54 2011 From: carl at personnelware.com (Carl Karsten) Date: Fri, 13 May 2011 17:20:54 -0500 Subject: [Chicago] vid up Message-ID: http://python.mirocommunity.org/video/4330/eventletgreenlet-coroutines-an -- Carl K From malcolm.newsome at gmail.com Sat May 14 05:21:42 2011 From: malcolm.newsome at gmail.com (Malcolm Newsome) Date: Fri, 13 May 2011 22:21:42 -0500 Subject: [Chicago] Great Loop Meeting, Now for the North meeting ... In-Reply-To: References: Message-ID: Sounds great! Malcolm On Fri, May 13, 2011 at 3:20 PM, Dean Sellis wrote: > That sounds good to me too. I have more of my presentation on Python web > frameworks complete and it will definitely be ready by the 26th. I am going > to start with web.py and finish with web2py. > > Dean > > On Fri, May 13, 2011 at 7:54 AM, Brian Ray wrote: > >> Thanks everyone, very nice meeting. >> >> In discussion with key North meeting organizers, ehem Steve and Ed, we >> would like to propose moving the North meeting to the 4th Thursday two >> weeks from the Loop meeting. That will give us more time to plan. I >> imagine the next meeting will be at Textura. How does May 26th sound? >> If I hear no complaints, I will presume this is ok and we will start >> making arrangements to make this happen. >> >> Anybody have something they want to present? >> >> >> -- >> >> Brian Ray >> (773) 669-7717 >> _______________________________________________ >> Chicago mailing list >> Chicago at python.org >> http://mail.python.org/mailman/listinfo/chicago >> > > > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From carl at personnelware.com Sat May 14 17:08:46 2011 From: carl at personnelware.com (Carl Karsten) Date: Sat, 14 May 2011 10:08:46 -0500 Subject: [Chicago] Great Loop Meeting, Now for the North meeting ... In-Reply-To: References: Message-ID: On Fri, May 13, 2011 at 7:54 AM, Brian Ray wrote: > Thanks everyone, very nice meeting. > > In discussion with key North meeting organizers, ehem Steve and Ed, we > would like to propose moving the North meeting to the 4th Thursday two > weeks from the Loop meeting. ?That will give us more time to plan. I > imagine the next meeting will be at Textura. How does May 26th sound? > If I hear no complaints, I will presume this is ok and we will start > making arrangements to make this happen. > Is it a go? chipy.org says "Meetings happen ... in the Northern Suburbs every other month on the Third Thursday. " -- Carl K From carl at personnelware.com Sat May 14 17:36:00 2011 From: carl at personnelware.com (Carl Karsten) Date: Sat, 14 May 2011 10:36:00 -0500 Subject: [Chicago] Great Loop Meeting, Now for the North meeting ... In-Reply-To: References: Message-ID: On Sat, May 14, 2011 at 10:08 AM, Carl Karsten wrote: > On Fri, May 13, 2011 at 7:54 AM, Brian Ray wrote: >> Thanks everyone, very nice meeting. >> >> In discussion with key North meeting organizers, ehem Steve and Ed, we >> would like to propose moving the North meeting to the 4th Thursday two >> weeks from the Loop meeting. ?That will give us more time to plan. I >> imagine the next meeting will be at Textura. How does May 26th sound? >> If I hear no complaints, I will presume this is ok and we will start >> making arrangements to make this happen. >> > > Is it a go? > > chipy.org says > > "Meetings happen ... in the Northern Suburbs every other month on the > Third Thursday. " Also, there's no North meetings on: http://chipy.org/meetings/past/ What's Textura's address? -- Carl K From vapor.noob at gmail.com Sat May 14 17:45:10 2011 From: vapor.noob at gmail.com (Dan S) Date: Sat, 14 May 2011 10:45:10 -0500 Subject: [Chicago] Great Loop Meeting, Now for the North meeting ... In-Reply-To: References: Message-ID: Textura Headquarters 1405 Lake Cook Road Deerfield, IL 60015 On Sat, May 14, 2011 at 10:36 AM, Carl Karsten wrote: > On Sat, May 14, 2011 at 10:08 AM, Carl Karsten > wrote: > > On Fri, May 13, 2011 at 7:54 AM, Brian Ray wrote: > >> Thanks everyone, very nice meeting. > >> > >> In discussion with key North meeting organizers, ehem Steve and Ed, we > >> would like to propose moving the North meeting to the 4th Thursday two > >> weeks from the Loop meeting. That will give us more time to plan. I > >> imagine the next meeting will be at Textura. How does May 26th sound? > >> If I hear no complaints, I will presume this is ok and we will start > >> making arrangements to make this happen. > >> > > > > Is it a go? > > > > chipy.org says > > > > "Meetings happen ... in the Northern Suburbs every other month on the > > Third Thursday. " > > Also, there's no North meetings on: > > http://chipy.org/meetings/past/ > > What's Textura's address? > > -- > Carl K > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > -------------- next part -------------- An HTML attachment was scrubbed... URL: From carl at personnelware.com Sat May 14 17:50:02 2011 From: carl at personnelware.com (Carl Karsten) Date: Sat, 14 May 2011 10:50:02 -0500 Subject: [Chicago] Great Loop Meeting, Now for the North meeting ... In-Reply-To: References: Message-ID: Thanks. Hoping to make it up. On Sat, May 14, 2011 at 10:45 AM, Dan S wrote: > Textura Headquarters > 1405 Lake Cook Road > Deerfield, IL 60015 > > On Sat, May 14, 2011 at 10:36 AM, Carl Karsten > wrote: >> >> On Sat, May 14, 2011 at 10:08 AM, Carl Karsten >> wrote: >> > On Fri, May 13, 2011 at 7:54 AM, Brian Ray wrote: >> >> Thanks everyone, very nice meeting. >> >> >> >> In discussion with key North meeting organizers, ehem Steve and Ed, we >> >> would like to propose moving the North meeting to the 4th Thursday two >> >> weeks from the Loop meeting. ?That will give us more time to plan. I >> >> imagine the next meeting will be at Textura. How does May 26th sound? >> >> If I hear no complaints, I will presume this is ok and we will start >> >> making arrangements to make this happen. >> >> >> > >> > Is it a go? >> > >> > chipy.org says >> > >> > "Meetings happen ... in the Northern Suburbs every other month on the >> > Third Thursday. " >> >> Also, there's no North meetings on: >> >> http://chipy.org/meetings/past/ >> >> What's Textura's address? >> >> -- >> Carl K >> _______________________________________________ >> Chicago mailing list >> Chicago at python.org >> http://mail.python.org/mailman/listinfo/chicago > > > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > > -- Carl K From Dawn at porticohr.com Mon May 9 20:42:21 2011 From: Dawn at porticohr.com (Dawn Vale) Date: Mon, 9 May 2011 13:42:21 -0500 Subject: [Chicago] Django Developers Needed Message-ID: <35F40966557A7649B71A316225FE15D9295ACA@PHR-SERVER.porticohr.local> I am a recruiter in Des Moines, IA working with a client that is in need of Django Developers. My client, an Iowa?based company that offers the first and only end?to?end solution for external financial reporting. The company develops and markets a fully?integrated, cloud?based solution dedicated to meeting SEC reporting requirements. Growing company which offers excellent benefits and stock options starting day one. If you or know of anyone that would be interested, below is my contact information. Dawn Vale PorticoHR 2910 Westown Parkway, Ste. 106 W. Des Moines, IA 50266 dawn at porticohr.com www.porticohr.com 515-221-3233 - phone 515-707-6460 - cell 515-221-3236 - fax Please Be GREEN Don't print this e-mail unless really necessary! https://twitter.com/PorticoHR http://porticohr.blogspot.com Directions: We are located one block EAST of Valley West Mall on the southeast corner of Westown Parkway and 30th. Turn south on 30th and make a left into the parking lot. We are the first floor. Make a left at the elevator and we are at the end of the hall. -------------- next part -------------- An HTML attachment was scrubbed... URL: From japhy at pearachute.com Sat May 14 21:16:46 2011 From: japhy at pearachute.com (Japhy Bartlett) Date: Sat, 14 May 2011 15:16:46 -0400 Subject: [Chicago] Looking for a designer who has experience with Django In-Reply-To: References: Message-ID: I'm a freelancer working out of Michigan (across the Lake ;), more on backend stuff than what you're looking for, but I would advise: hire someone with a personal portfolio so that you get someone with an aesthetic you like. It's easy to know if something is complete / satisfactory from a tech perspective, but it can get murky when you're dealing with art! - Japhy On Wed, May 11, 2011 at 2:37 PM, Daniel Peters wrote: > And I would love any advice on finding one, or individual recommendations. > The experience with Django is not a hard and fast rule, just would be nice. > The project will probably use Jinja2, jQuery and HTML5 among others, its > also a moderately large site with traffic for the current version seeing > 60,000 uniques a day sometimes. > I can happily provide more details on the project to anyone interested, I've > never handled the sub-contracting of design work myself before this, so any > advice will be sincerely welcomed. > > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > > From danieltpeters at gmail.com Mon May 16 05:03:04 2011 From: danieltpeters at gmail.com (Daniel Peters) Date: Sun, 15 May 2011 22:03:04 -0500 Subject: [Chicago] Looking for a designer who has experience with Django In-Reply-To: References: Message-ID: Thanks Japhy, much appreciated. On Sat, May 14, 2011 at 2:16 PM, Japhy Bartlett wrote: > I'm a freelancer working out of Michigan (across the Lake ;), more on > backend stuff than what you're looking for, but I would advise: hire > someone with a personal portfolio so that you get someone with an > aesthetic you like. > > It's easy to know if something is complete / satisfactory from a tech > perspective, but it can get murky when you're dealing with art! > > - Japhy > > On Wed, May 11, 2011 at 2:37 PM, Daniel Peters > wrote: > > And I would love any advice on finding one, or individual > recommendations. > > The experience with Django is not a hard and fast rule, just would be > nice. > > The project will probably use Jinja2, jQuery and HTML5 among others, its > > also a moderately large site with traffic for the current version seeing > > 60,000 uniques a day sometimes. > > I can happily provide more details on the project to anyone interested, > I've > > never handled the sub-contracting of design work myself before this, so > any > > advice will be sincerely welcomed. > > > > _______________________________________________ > > Chicago mailing list > > Chicago at python.org > > http://mail.python.org/mailman/listinfo/chicago > > > > > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > -------------- next part -------------- An HTML attachment was scrubbed... URL: From john.shafaee at quattrosource.com Tue May 17 00:03:09 2011 From: john.shafaee at quattrosource.com (John Shafaee) Date: Mon, 16 May 2011 17:03:09 -0500 Subject: [Chicago] Job Opportunity with Quattrosource Message-ID: Hello All, We're a Chicago based python shop looking for a few skilled python developers. Please see below for the details. Send resumes to jobs at quattrosource.com. Regards, John Job Description and responsibilities: Quattrosource is seeking talented individuals with experience in programming Linux based systems and technologies. The projects are fully comprehensive systems with user interfaces, complex business logic and back-end workflow processing for heavy data analysis and processing. The topics include: - Systems development automation - Large volume email sending/tracking - Web analytics gathering - Social media data analysis - Machine learning and natural language processing Most topics dealing with extremely large volumes of data originating from several different data providers. The systems employ many different technologies including: - Python, including Django and NLTK - Relational and non-relational databases, including MySQL, MongoDB, Celery/RabbitMQ - Cloud computing on open source stacks like Hadoop, HDFS and PIG - Web applications, including HTML5 and dynamic client-side functionality Selected candidates will have the opportunity to contribute to various parts of each project and gain hands-on experience with cutting edge technologies. You will be working alongside senior developers locally and at remote development centers to design/write code and deliver working systems based on design requirements which you will help determine. Candidates must be independent and demonstrate strong problem solving skills. This is a hands-on role at a small but rapidly growing company. We?re currently seeking candidates for full time employment but will also consider candidates seeking contractual opportunities as well. If you?re looking to work with other technologists who embrace and encourage working with new technologies, this will be a great environment for you. The Ideal Candidate: We look for a strong background in programming and a solid understanding of the Linux operating system. Strong understanding of networking and systems technologies is a plus as many projects will involve systems with Bash and other related automation technologies. The following minimum skills are required: - At least three years of professional experience, demonstrated by referrals - Proficient with at least one OO programming language: Python (preferred), Java, C/C++, etc. - Solid grasp of core computer science foundations including algorithm design, data structures, program flow, operating system concepts and computer architecture - Database schema design, programming SQL and stored procedures - Distributed programming knowledge is a major plus: map/reduce, SOA, etc. - Experience developing automation scripts and building scalable systems - Good written and oral communication skills - Bachelor's degree from an accredited university About the Company: Quattrosource is an enterprise consulting firm focusing on the design and development of large-scale data processing applications, high performance computing and enterprise-grade hosted applications. We are currently working with a number of major companies in the Chicago area, on projects ranging from initial technology assessment and proof of concept exploration to development and operation of full production systems. The company was established in 2001 by a group of local technologists with the goal of taking cutting-edge technologies and applying them in novel ways to real-world problems. Much of our work involves early adoption of new technologies. We are strong proponents of the open source movement and base most of our projects on an open source stack. To Apply: Please e-mail resumes and/or cover letter to jobs at quattrosource.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From verisimilidude at gmail.com Tue May 17 18:01:29 2011 From: verisimilidude at gmail.com (Phil Robare) Date: Tue, 17 May 2011 11:01:29 -0500 Subject: [Chicago] Job Opportunity with Quattrosource In-Reply-To: References: Message-ID: John, Where are you located? I don't see either in your post or on www.quattrosource.com whether you are city or suburbs or get assigned to client sites. Thanks, Phil On Mon, May 16, 2011 at 5:03 PM, John Shafaee wrote: > Hello All, > > We're a Chicago based python shop looking for a few skilled python > developers. Please see below for the details. > ... From john.shafaee at quattrosource.com Tue May 17 19:12:04 2011 From: john.shafaee at quattrosource.com (John Shafaee) Date: Tue, 17 May 2011 12:12:04 -0500 Subject: [Chicago] Job Opportunity with Quattrosource In-Reply-To: References: Message-ID: Phil, We're located in the River North neighborhood (Chicago & Wells) in downtown Chicago. We work out of our own office and very rarely have to make visits to the client site. Regards, John On Tue, May 17, 2011 at 11:01 AM, Phil Robare wrote: > John, > > Where are you located? I don't see either in your post or on > www.quattrosource.com whether you are city or suburbs or get assigned > to client sites. > > Thanks, > Phil > > > On Mon, May 16, 2011 at 5:03 PM, John Shafaee > wrote: > > Hello All, > > > > We're a Chicago based python shop looking for a few skilled python > > developers. Please see below for the details. > > ... > -------------- next part -------------- An HTML attachment was scrubbed... URL: From malcolm.newsome at gmail.com Tue May 17 22:54:28 2011 From: malcolm.newsome at gmail.com (Malcolm Newsome) Date: Tue, 17 May 2011 15:54:28 -0500 Subject: [Chicago] Dedicated Server Hosting Recommendations? In-Reply-To: References: Message-ID: Hey All! As a promised follow up to this thread from the end of March...I decided to go with a dedicated server at Server4You (http://www.server4you.com/). I'm paying $68.99/mo (no setup fee) for the following: The EcoServer was a strong selling point for me since my website will be featuring deals for the "conscious consumer" (green, eco-friendly, organic, natural, etc...). I decided on a new name...QiVeev.com. It's being fully developed using Django. Here some of the server specs *EcoServer LARGE* CPU TypeAMD Athlon? II X4 QuantityQuad-Core Clock Rate4x 2.3 GHz Main Memory Capacity8 GB TypeDDR3 ECC Hard Disks Quantity2 Capacity1,000 GB TypeSATA II, 5,400 rpm, 8 MB RAIDRAID 1 by software Mainboard ChipsetAMD 785G NetworkBroadcom BCM57780 On Thu, Mar 24, 2011 at 10:26 AM, Malcolm Newsome wrote: > I definitely don't want to be the cause of any email thread related > deaths! I'll definitely report back once I've checked out your > recommendations and made a selection :-) > > Malcolm > > > > > From: Brian Herman >> >> You have to tell us which one you picked. >> The suspense is killing us. >> >> Thanks, >> Brian Herman >> >> brianjherman.com >> brianherman at acm.org >> >> >> >> >> >> >> >> >> On Wed, Mar 23, 2011 at 8:12 AM, Malcolm Newsome < >> malcolm.newsome at gmail.com> wrote: >> >>> Thank you all for the recommendations! >>> >>> Malcolm >>> >>> >>> >>> >>> ____________________________________________________________________________ >>> _____________________________ >>> >>> I have personally used http://www.rapidxen.net/ and Amazon web services. >>> I >>> love both of those. >>> >>> Thanks, >>> Brian Herman >>> >>> brianjherman.com >>> brianherman at acm.org >>> >>> >>> >>> On Tue, Mar 22, 2011 at 3:58 PM, Brian Herman >>> wrote: >>> >>> > linode? >>> > Storage >>> > *48GB >>> > Ram >>> > **1536MB >>> > Transfer >>> > **600GB >>> > **$59.95* >>> > http://www.linode.com/features.cfm >>> > >>> > - Deploy multiple Linux distributions >>> > - Create Configuration Profiles which associate disk images and >>> device >>> > nodes >>> > - Boot between configuration profiles >>> > - Share disk images between configuration profiles >>> > - Resize disk images >>> > - Network and CPU usage graphs >>> > - Multiple IP address support >>> > - Managed/hosted DNS service with slave support >>> > - Custom reverse DNS (rdns) >>> > - Access Out of band console access using Lish >>> > - Lish menu system to issue jobs to your Linode >>> > - Lish access via SSH keys >>> > - Support for booting into single user mode, init=/bin/bash >>> > - Support for booting with a custom "root=" kernel parameter >>> > - Support for booting with an initrd >>> > - Bootable recovery distribution (Finnix) >>> > - Add and remove extra resources to and from your Linode >>> > - Shutdown Watchdog will automatically reboot your Linode in case of >>> a >>> > crash >>> > - Clone a Linode to another >>> > - Move IPs from one Linode to another >>> > - IP address fail over support for high availability setups >>> > >>> > >>> > >>> > Thanks, >>> > Brian Herman >>> > >>> > brianjherman.com >>> > brianherman at acm.org >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > On Tue, Mar 22, 2011 at 10:51 AM, wrote: >>> > >>> >> >>> >> Malcolm> I'm on the hunt for the "best" price/performance for >>> dedicated >>> >> Malcolm> (non-managed) server hosting. Does anyone have any >>> >> Malcolm> recommendations? >>> >> >>> >> I use tummy.com. I'm sure they are not the cheapest, and my virtual >>> host >>> >> was created several years ago and probably doesn't run on >>> state-of-the-art >>> >> hardware anymore, but they do a bang-up job keeping my OS up-to-date >>> and >>> >> squashing network problems. They also offer dedicated hosting if >>> that's >>> >> what you want. >>> >> >>> >> On top of that, Sean Reifschneider, co-founder and CTO, is involved in >>> the >>> >> Python community generally, and more specifically, he keeps many parts >>> of >>> >> the python.org hardware infrastructure coherent and up-to-date. (I >>> think >>> >> he >>> >> almost single-handedly rescued the wireless network at PyCon 2008.) >>> This >>> >> being open source, he does all that for free, so I like to think I'm >>> >> paying >>> >> him back in some small way for his largesse. >>> >> >>> >> I should also point out that my son works for Gigenet in Arlington >>> >> Heights. >>> >> I'm sure I could get a better deal there (maybe even free), but I >>> consider >>> >> my money well-spent at tummy.com. >>> >> >>> >> Here's /proc/cpuinfo from my virtual server: >>> >> >>> >> $ cat /proc/cpuinfo >>> >> processor : 0 >>> >> vendor_id : GenuineIntel >>> >> cpu family : 6 >>> >> model : 23 >>> >> model name : Intel(R) Core(TM)2 Quad CPU Q9550 @ 2.83GHz >>> >> stepping : 7 >>> >> cpu MHz : 2826.250 >>> >> cache size : 6144 KB >>> >> fdiv_bug : no >>> >> hlt_bug : no >>> >> f00f_bug : no >>> >> coma_bug : no >>> >> fpu : yes >>> >> fpu_exception : yes >>> >> cpuid level : 10 >>> >> wp : yes >>> >> flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr >>> pge >>> >> mca >>> >> cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss nx lm >>> constant_tsc >>> >> up >>> >> arch_perfmon pebs bts pni ssse3 cx16 sse4_1 lahf_lm >>> >> bogomips : 5652.50 >>> >> clflush size : 64 >>> >> power management: >>> >> >>> >> Malcolm> Also, does anyone have experience using dedicated servers >>> >> Malcolm> overseas for hosting? Is this something I should consider >>> or >>> >> Malcolm> absolutely stay away from (given that most traffic will be >>> >> Malcolm> coming from the US)? >>> >> >>> >> The python.org servers (except for bugs.python.org) are hosted at >>> >> XS4ALL.net >>> >> in the Netherlands. I don't know if they offer retail hosting (I >>> don't >>> >> read >>> >> Dutch), but if they do, they obviously have the capability to host >>> busy >>> >> servers which have large amounts of US-based traffic. >>> >> >>> >> -- >>> >> Skip Montanaro - skip at pobox.com - http://www.smontanaro.net/ >>> >>> _______________________________________________ >>> Chicago mailing list >>> Chicago at python.org >>> http://mail.python.org/mailman/listinfo/chicago >>> >> >> >> _______________________________________________ >> Chicago mailing list >> Chicago at python.org >> http://mail.python.org/mailman/listinfo/chicago >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From carl at personnelware.com Thu May 19 00:19:48 2011 From: carl at personnelware.com (Carl Karsten) Date: Wed, 18 May 2011 17:19:48 -0500 Subject: [Chicago] Great Loop Meeting, Now for the North meeting ... In-Reply-To: References: Message-ID: bump On Sat, May 14, 2011 at 10:08 AM, Carl Karsten wrote: > On Fri, May 13, 2011 at 7:54 AM, Brian Ray wrote: >> Thanks everyone, very nice meeting. >> >> In discussion with key North meeting organizers, ehem Steve and Ed, we >> would like to propose moving the North meeting to the 4th Thursday two >> weeks from the Loop meeting. ?That will give us more time to plan. I >> imagine the next meeting will be at Textura. How does May 26th sound? >> If I hear no complaints, I will presume this is ok and we will start >> making arrangements to make this happen. >> > > Is it a go? > > chipy.org says > > "Meetings happen ... in the Northern Suburbs every other month on the > Third Thursday. " > > -- > Carl K > -- Carl K From brianhray at gmail.com Thu May 19 00:27:49 2011 From: brianhray at gmail.com (Brian Ray) Date: Wed, 18 May 2011 17:27:49 -0500 Subject: [Chicago] Great Loop Meeting, Now for the North meeting ... In-Reply-To: References: Message-ID: North meeting will occur 26th 7pm at Textura. We will update the website. On May 18, 2011, at 5:19 PM, Carl Karsten wrote: > bump > > On Sat, May 14, 2011 at 10:08 AM, Carl Karsten wrote: >> On Fri, May 13, 2011 at 7:54 AM, Brian Ray wrote: >>> Thanks everyone, very nice meeting. >>> >>> In discussion with key North meeting organizers, ehem Steve and Ed, we >>> would like to propose moving the North meeting to the 4th Thursday two >>> weeks from the Loop meeting. That will give us more time to plan. I >>> imagine the next meeting will be at Textura. How does May 26th sound? >>> If I hear no complaints, I will presume this is ok and we will start >>> making arrangements to make this happen. >>> >> >> Is it a go? >> >> chipy.org says >> >> "Meetings happen ... in the Northern Suburbs every other month on the >> Third Thursday. " >> >> -- >> Carl K >> > > > > -- > Carl K > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago From aphor at me.com Thu May 19 17:27:04 2011 From: aphor at me.com (Jeremy McMillan) Date: Thu, 19 May 2011 10:27:04 -0500 Subject: [Chicago] duck typing to handle a string or iterable of strings Message-ID: <6A521068-C56F-4BC2-9C08-B5AC39414940@me.com> So I want a function or method to operate on one or more strings, but if the convention is usually one, I hate requiring the tuple/list wrapper around a string argument. I want really smart argument handling. I found this, but it's not conclusive: http://stackoverflow.com/questions/4237434/pythonic-way-to-verify-parameter-is-a-sequence-but-not-string And there's this... > >>> foo = set(dir('a string!')) > >>> bar = set(dir(['a string', 'and another one'])) > >>> foo.difference(bar) > set(['upper', 'lstrip', 'rpartition', 'replace', 'endswith', 'splitlines', 'expandtabs', 'strip', 'isdigit', '__rmod__', '__getnewargs__', 'find', 'rjust', 'ljust', 'isalnum', 'title', 'rindex', 'rsplit', 'decode', 'isalpha', 'split', 'rstrip', 'encode', '_formatter_parser', 'translate', 'isspace', 'startswith', 'format', 'swapcase', 'zfill', 'capitalize', 'lower', 'join', 'center', '__mod__', 'partition', 'rfind', 'istitle', '_formatter_field_name_split', 'islower', 'isupper']) > >>> len(foo.difference(bar)) > 41 The whole point of duck-typing is to be as lenient as possible with subclasses and workalike objects. Theoretically, it would work pretty well to use any of those 41 methods and attributes, but which one is optimal depends on convention. Which one is least likely to be left out of some stringlike object? Can anyone weigh in on forward compatibility with Python3? My guess: I think the string method I use most heavily is split. I would feel deep disappointment if something returned a string object and discovered later that it didn't implement split(). Moreover: this is the canonical way to convert a string into an iterable of stings, so I think it is formally correct. For instance, it seems absurd for an iterable to implement split(). I went to the interwebs for confirmation, but I don't see an understanding, so now ChiPy please tell me what you think? -------------- next part -------------- An HTML attachment was scrubbed... URL: From dgriff1 at gmail.com Thu May 19 17:35:46 2011 From: dgriff1 at gmail.com (Daniel Griffin) Date: Thu, 19 May 2011 10:35:46 -0500 Subject: [Chicago] duck typing to handle a string or iterable of strings In-Reply-To: <6A521068-C56F-4BC2-9C08-B5AC39414940@me.com> References: <6A521068-C56F-4BC2-9C08-B5AC39414940@me.com> Message-ID: If you want to check the type, like list vs str then use isinstance. if isinstance("some str", str): if isinstance(["some str", "Another" ], str) On Thu, May 19, 2011 at 10:27 AM, Jeremy McMillan wrote: > So I want a function or method to operate on one or more strings, but if > the convention is usually one, I hate requiring the tuple/list wrapper > around a string argument. I want really smart argument handling. > > I found this, but it's not conclusive: > > http://stackoverflow.com/questions/4237434/pythonic-way-to-verify-parameter-is-a-sequence-but-not-string > > And there's this... > > >>> foo = set(dir('a string!')) > >>> bar = set(dir(['a string', 'and another one'])) > >>> foo.difference(bar) > set(['upper', 'lstrip', 'rpartition', 'replace', 'endswith', 'splitlines', > 'expandtabs', 'strip', 'isdigit', '__rmod__', '__getnewargs__', 'find', > 'rjust', 'ljust', 'isalnum', 'title', 'rindex', 'rsplit', 'decode', > 'isalpha', 'split', 'rstrip', 'encode', '_formatter_parser', 'translate', > 'isspace', 'startswith', 'format', 'swapcase', 'zfill', 'capitalize', > 'lower', 'join', 'center', '__mod__', 'partition', 'rfind', 'istitle', > '_formatter_field_name_split', 'islower', 'isupper']) > >>> len(foo.difference(bar)) > 41 > > > The whole point of duck-typing is to be as lenient as possible with > subclasses and workalike objects. Theoretically, it would work pretty well > to use any of those 41 methods and attributes, but which one is optimal > depends on convention. Which one is least likely to be left out of some > stringlike object? Can anyone weigh in on forward compatibility with > Python3? > > My guess: I think the string method I use most heavily is split. I would > feel deep disappointment if something returned a string object and > discovered later that it didn't implement split(). Moreover: this is the > canonical way to convert a string into an iterable of stings, so I think it > is formally correct. For instance, it seems absurd for an iterable to > implement split(). > > I went to the interwebs for confirmation, but I don't see an understanding, > so now ChiPy please tell me what you think? > > > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kenschutte at gmail.com Thu May 19 17:37:42 2011 From: kenschutte at gmail.com (Ken Schutte) Date: Thu, 19 May 2011 10:37:42 -0500 Subject: [Chicago] duck typing to handle a string or iterable of strings In-Reply-To: <6A521068-C56F-4BC2-9C08-B5AC39414940@me.com> References: <6A521068-C56F-4BC2-9C08-B5AC39414940@me.com> Message-ID: What about doing this: ? def foo(x): if isinstance(x, basestring): x = [x] # now, assume x is a list of strings. On Thu, May 19, 2011 at 10:27 AM, Jeremy McMillan wrote: > So I want a function or method to operate on one or more strings, but if the > convention is usually one, I hate requiring the tuple/list wrapper around a > string argument. I want really smart argument handling. > I found this, but it's not conclusive: > http://stackoverflow.com/questions/4237434/pythonic-way-to-verify-parameter-is-a-sequence-but-not-string > And there's this... > >>>> foo = set(dir('a string!')) >>>> bar = set(dir(['a string', 'and another one'])) >>>> foo.difference(bar) > set(['upper', 'lstrip', 'rpartition', 'replace', 'endswith', 'splitlines', > 'expandtabs', 'strip', 'isdigit', '__rmod__', '__getnewargs__', 'find', > 'rjust', 'ljust', 'isalnum', 'title', 'rindex', 'rsplit', 'decode', > 'isalpha', 'split', 'rstrip', 'encode', '_formatter_parser', 'translate', > 'isspace', 'startswith', 'format', 'swapcase', 'zfill', 'capitalize', > 'lower', 'join', 'center', '__mod__', 'partition', 'rfind', 'istitle', > '_formatter_field_name_split', 'islower', 'isupper']) >>>> len(foo.difference(bar)) > 41 > > The whole point of duck-typing is to be as lenient as possible with > subclasses and workalike objects. Theoretically, it would work pretty well > to use any of those 41 methods and attributes, but which one is optimal > depends on convention. Which one is least likely to be left out of some > stringlike object? Can anyone weigh in on forward compatibility with > Python3? > My guess: I think the string method I use most heavily is split. I would > feel deep disappointment if something returned a string object and > discovered later that it didn't implement split(). Moreover: this is the > canonical way to convert a string into an iterable of stings, so I think it > is formally correct. For instance, it seems absurd for an iterable to > implement split(). > I went to the interwebs for confirmation, but I don't see an understanding, > so now ChiPy please tell me what you think? > > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > > From carl at oddbird.net Thu May 19 17:53:49 2011 From: carl at oddbird.net (Carl Meyer) Date: Thu, 19 May 2011 10:53:49 -0500 Subject: [Chicago] duck typing to handle a string or iterable of strings In-Reply-To: <6A521068-C56F-4BC2-9C08-B5AC39414940@me.com> References: <6A521068-C56F-4BC2-9C08-B5AC39414940@me.com> Message-ID: <4DD53D0D.6050605@oddbird.net> On 05/19/2011 10:27 AM, Jeremy McMillan wrote: > So I want a function or method to operate on one or more strings, but if > the convention is usually one, I hate requiring the tuple/list wrapper > around a string argument. I want really smart argument handling. So, in the (apparently popular) spirit of not actually answering your question, why not just do this: def foo(*strings): # you can safely assume "strings" is a tuple Then it can be called like foo("one") or foo("one", "two"). I think the reason your actual question isn't getting answered is that there isn't a great answer. Personally, I think choosing any one of those 41 methods as the definitive marker of "string-ness" is wrong and kind of smelly. I'd much sooner use "isinstance(x, basestr)" (in Python 2) or "from types import StringType; isinstance(x, StringType)". I know that isn't duck-typing, but duck-typing isn't an absolute imperative. Frankly, I don't think there is any inherent behavioral difference between strings and other iterables in Python that allows you to differentiate them reliably via duck-typing. I certainly don't think "split" qualifies as such a behavior (and I can certainly imagine many possible non-string iterable types that would have good reason to have a method named "split"). Also, FWIW, I've never in the wild seen a type that was attempting to masquerade as string-like that didn't inherit from a real string type. My .02, Carl From jdh2358 at gmail.com Thu May 19 18:37:33 2011 From: jdh2358 at gmail.com (John Hunter) Date: Thu, 19 May 2011 11:37:33 -0500 Subject: [Chicago] duck typing to handle a string or iterable of strings In-Reply-To: <6A521068-C56F-4BC2-9C08-B5AC39414940@me.com> References: <6A521068-C56F-4BC2-9C08-B5AC39414940@me.com> Message-ID: On Thu, May 19, 2011 at 10:27 AM, Jeremy McMillan wrote: > So I want a function or method to operate on one or more strings, but if > the convention is usually one, I hate requiring the tuple/list wrapper > around a string argument. I want really smart argument handling. > > I found this, but it's not conclusive: > > http://stackoverflow.com/questions/4237434/pythonic-way-to-verify-parameter-is-a-sequence-but-not-string > > And there's this... > matplotlib.cbook defines many duck-typing functions, including "is_string_like" and "is_sequence_of_strings". Here is their implementation: def iterable(obj): 'return true if *obj* is iterable' try: len(obj) except: return False return True def is_string_like(obj): 'Return True if *obj* looks like a string' if isinstance(obj, (str, unicode)): return True # numpy strings are subclass of str, ma strings are not if ma.isMaskedArray(obj): if obj.ndim == 0 and obj.dtype.kind in 'SU': return True else: return False try: obj + '' except: return False return True def is_sequence_of_strings(obj): """ Returns true if *obj* is iterable and contains strings """ if not iterable(obj): return False if is_string_like(obj): return False for o in obj: if not is_string_like(o): return False return True -------------- next part -------------- An HTML attachment was scrubbed... URL: From shekay at pobox.com Thu May 19 19:11:43 2011 From: shekay at pobox.com (sheila miguez) Date: Thu, 19 May 2011 12:11:43 -0500 Subject: [Chicago] 'tweener at Resi's on Tuesday Message-ID: >From what I've heard, there is a 'tweener at Resi's on the coming Tuesday. -- sheila From brianherman at gmail.com Thu May 19 19:27:49 2011 From: brianherman at gmail.com (Brian Herman) Date: Thu, 19 May 2011 12:27:49 -0500 Subject: [Chicago] 'tweener at Resi's on Tuesday In-Reply-To: References: Message-ID: what is a tweener? Thanks, Brian Herman brianjherman.com brianherman at acm.org On Thu, May 19, 2011 at 12:11 PM, sheila miguez wrote: > >From what I've heard, there is a 'tweener at Resi's on the coming Tuesday. > > -- > sheila > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > -------------- next part -------------- An HTML attachment was scrubbed... URL: From maney at two14.net Thu May 19 19:14:37 2011 From: maney at two14.net (Martin Maney) Date: Thu, 19 May 2011 12:14:37 -0500 Subject: [Chicago] duck typing to handle a string or iterable of strings In-Reply-To: <6A521068-C56F-4BC2-9C08-B5AC39414940@me.com> References: <6A521068-C56F-4BC2-9C08-B5AC39414940@me.com> Message-ID: <20110519171437.GA29415@furrr.two14.net> On Thu, May 19, 2011 at 10:27:04AM -0500, Jeremy McMillan wrote: > So I want a function or method to operate on one or more strings, ... My first thought was what Carl suggested: foo(*args). But if the problem is you have too many semi-competent programmers and must accomodate their lack of attention to detail I suppose this won't appeal to you either. And I'll bet it's much too late to give them a simpler interface such as foo(one_string) and foo_many(list_of_strings). > The whole point of duck-typing is to be as lenient as possible with > subclasses and workalike objects. Theoretically, it would work pretty > well to use any of those 41 methods and attributes, but which one is > optimal depends on convention. Nope. Duck typing means you only care about the methods or attributes that you need; examining the type, directly or by sniffing out other methods as you seem to want to do, is not ducky. ;-/ Duck-typing means you test, very possibly by just doing it, exactly the methods or attributes you need. Pre-testing even for one or more of these is rare; the Pythonic idiom is that it's easier to seek forgiveness (catch an exception) than get permission (viz., if getattr(x, 'foo', None): bar(x.foo) ). -- The vulnerabilities will come, a couple of them a week, for years and years...until people stop looking for them. Waiting six months isn't going to make this OS [Windows XP] safer. -- Bruce Schneier From g at rre.tt Thu May 19 21:00:22 2011 From: g at rre.tt (Garrett Smith) Date: Thu, 19 May 2011 14:00:22 -0500 Subject: [Chicago] 'tweener at Resi's on Tuesday In-Reply-To: References: Message-ID: Meeting <-> 'tweener <-> Meeting On Thu, May 19, 2011 at 12:27 PM, Brian Herman wrote: > what is a tweener? > Thanks, > Brian Herman > > brianjherman.com > brianherman at acm.org > > > > > > > > > On Thu, May 19, 2011 at 12:11 PM, sheila miguez wrote: >> >> >From what I've heard, there is a 'tweener at Resi's on the coming >> Tuesday. >> >> -- >> sheila >> _______________________________________________ >> Chicago mailing list >> Chicago at python.org >> http://mail.python.org/mailman/listinfo/chicago > > > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > > From jesselondon at gmail.com Fri May 20 05:13:49 2011 From: jesselondon at gmail.com (Jesse London) Date: Thu, 19 May 2011 22:13:49 -0500 Subject: [Chicago] duck typing to handle a string or iterable of strings In-Reply-To: <6A521068-C56F-4BC2-9C08-B5AC39414940@me.com> References: <6A521068-C56F-4BC2-9C08-B5AC39414940@me.com> Message-ID: > > So I want a function or method to operate on one or more strings, but if > the convention is usually one, I hate requiring the tuple/list wrapper > around a string argument. > It sounds like what you really care about is whether or not you were handed an iterable. If you don't want to say: def foo(*strings): ... then you can reliably duck-type like so: def foo(strings): if not hasattr(strings, '__iter__'): strings = (strings,) ... Jesse -------------- next part -------------- An HTML attachment was scrubbed... URL: From carl at oddbird.net Fri May 20 05:34:34 2011 From: carl at oddbird.net (Carl Meyer) Date: Thu, 19 May 2011 22:34:34 -0500 Subject: [Chicago] duck typing to handle a string or iterable of strings In-Reply-To: References: <6A521068-C56F-4BC2-9C08-B5AC39414940@me.com> Message-ID: <4DD5E14A.3040106@oddbird.net> On 05/19/2011 10:13 PM, Jesse London wrote: > It sounds like what you really care about is whether or not you were > handed an iterable. If you don't want to say: > > def foo(*strings): > ... > > then you can reliably duck-type like so: > > def foo(strings): > if not hasattr(strings, '__iter__'): > strings = (strings,) > ... Not in Python 3, FWIW. Since strings are an iterable, it was really only ever an oversight that they lacked __iter__, and that was fixed in Python 3. Carl From carl at personnelware.com Fri May 20 05:52:22 2011 From: carl at personnelware.com (Carl Karsten) Date: Thu, 19 May 2011 22:52:22 -0500 Subject: [Chicago] duck typing to handle a string or iterable of strings In-Reply-To: <6A521068-C56F-4BC2-9C08-B5AC39414940@me.com> References: <6A521068-C56F-4BC2-9C08-B5AC39414940@me.com> Message-ID: On Thu, May 19, 2011 at 10:27 AM, Jeremy McMillan wrote: > So I want a function or method to operate on one or more strings, but if the > convention is usually one, I hate requiring the tuple/list wrapper around a > string argument. I want really smart argument handling. > I found this, but it's not conclusive: > http://stackoverflow.com/questions/4237434/pythonic-way-to-verify-parameter-is-a-sequence-but-not-string > And there's this... > >>>> foo = set(dir('a string!')) >>>> bar = set(dir(['a string', 'and another one'])) >>>> foo.difference(bar) > set(['upper', 'lstrip', 'rpartition', 'replace', 'endswith', 'splitlines', > 'expandtabs', 'strip', 'isdigit', '__rmod__', '__getnewargs__', 'find', > 'rjust', 'ljust', 'isalnum', 'title', 'rindex', 'rsplit', 'decode', > 'isalpha', 'split', 'rstrip', 'encode', '_formatter_parser', 'translate', > 'isspace', 'startswith', 'format', 'swapcase', 'zfill', 'capitalize', > 'lower', 'join', 'center', '__mod__', 'partition', 'rfind', 'istitle', > '_formatter_field_name_split', 'islower', 'isupper']) >>>> len(foo.difference(bar)) > 41 > > The whole point of duck-typing is to be as lenient as possible with > subclasses and workalike objects. Theoretically, it would work pretty well > to use any of those 41 methods and attributes, but which one is optimal > depends on convention. Which one is least likely to be left out of some > stringlike object? Can anyone weigh in on forward compatibility with > Python3? > My guess: I think the string method I use most heavily is split. I would > feel deep disappointment if something returned a string object and > discovered later that it didn't implement split(). Moreover: this is the > canonical way to convert a string into an iterable of stings, so I think it > is formally correct. For instance, it seems absurd for an iterable to > implement split(). > I went to the interwebs for confirmation, but I don't see an understanding, > so now ChiPy please tell me what you think? > recursion! What's the function do? Lets see the doc string - I am sure that will splain it perfectly, right? I have bumped into this with a popen wrapper: it takes a list of command line args. like I want to type all those quotes and commas (exact opposite of your problem.) but on occasion I do want to pass a list of options. and just to make this extra stupid, I want to log the command so if a list is passed, I ''join it, and if a string is passed I .split it. https://github.com/CarlFK/veyepar/blob/master/dj/scripts/process.py#L51 I don't think this helps you at all. -- Carl K From alex.gaynor at gmail.com Fri May 20 05:55:20 2011 From: alex.gaynor at gmail.com (Alex Gaynor) Date: Thu, 19 May 2011 22:55:20 -0500 Subject: [Chicago] duck typing to handle a string or iterable of strings In-Reply-To: <4DD5E14A.3040106@oddbird.net> References: <6A521068-C56F-4BC2-9C08-B5AC39414940@me.com> <4DD5E14A.3040106@oddbird.net> Message-ID: On Thu, May 19, 2011 at 10:34 PM, Carl Meyer wrote: > On 05/19/2011 10:13 PM, Jesse London wrote: > > It sounds like what you really care about is whether or not you were > > handed an iterable. If you don't want to say: > > > > def foo(*strings): > > ... > > > > then you can reliably duck-type like so: > > > > def foo(strings): > > if not hasattr(strings, '__iter__'): > > strings = (strings,) > > ... > > Not in Python 3, FWIW. Since strings are an iterable, it was really only > ever an oversight that they lacked __iter__, and that was fixed in Python > 3. > > Carl > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > It wasn't in any way an oversight, in fact the __iter__ on list and tuples are totally superflous. Types which define __getitem__ are automatically iterable and a default iterator is used for them which calls __getitem__ with successive integers until an IndexError is raised. Alex -- "I disapprove of what you say, but I will defend to the death your right to say it." -- Evelyn Beatrice Hall (summarizing Voltaire) "The people's good is the highest law." -- Cicero -------------- next part -------------- An HTML attachment was scrubbed... URL: From jesselondon at gmail.com Fri May 20 06:46:44 2011 From: jesselondon at gmail.com (Jesse London) Date: Thu, 19 May 2011 23:46:44 -0500 Subject: [Chicago] duck typing to handle a string or iterable of strings In-Reply-To: <4DD5E14A.3040106@oddbird.net> References: <6A521068-C56F-4BC2-9C08-B5AC39414940@me.com> <4DD5E14A.3040106@oddbird.net> Message-ID: On Thu, May 19, 2011 at 10:34 PM, Carl Meyer wrote: > On 05/19/2011 10:13 PM, Jesse London wrote: > > It sounds like what you really care about is whether or not you were > > handed an iterable. If you don't want to say: > > > > def foo(*strings): > > ... > > > > then you can reliably duck-type like so: > > > > def foo(strings): > > if not hasattr(strings, '__iter__'): > > strings = (strings,) > > ... > > Not in Python 3, FWIW. Since strings are an iterable, it was really only > ever an oversight that they lacked __iter__, and that was fixed in Python > 3. > > Carl > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > Well! Good to know. You could still perhaps duck-type, depending upon what you plan to do with the object you're passed. If you were in fact planning to use 'split()', then it would make sense to check for that. But, if you just want to iterate over an iterable of strings, and you want to accommodate the single string, (which is itself an iterable of strings), then, yeah, you'd better use `*strings` or `isinstance(strings, basestring)`. No shame in that. -------------- next part -------------- An HTML attachment was scrubbed... URL: From shekay at pobox.com Fri May 20 17:09:08 2011 From: shekay at pobox.com (sheila miguez) Date: Fri, 20 May 2011 10:09:08 -0500 Subject: [Chicago] 'tweener at Resi's on Tuesday In-Reply-To: References: Message-ID: Yes, and I heard there is one this coming Tuesday. Do we want to invite Erlangers too? On Thu, May 19, 2011 at 2:00 PM, Garrett Smith wrote: > Meeting <-> 'tweener <-> Meeting > > On Thu, May 19, 2011 at 12:27 PM, Brian Herman wrote: >> what is a tweener? >> Thanks, >> Brian Herman >> >> brianjherman.com >> brianherman at acm.org >> >> >> >> >> >> >> >> >> On Thu, May 19, 2011 at 12:11 PM, sheila miguez wrote: >>> >>> >From what I've heard, there is a 'tweener at Resi's on the coming >>> Tuesday. >>> >>> -- >>> sheila >>> _______________________________________________ >>> Chicago mailing list >>> Chicago at python.org >>> http://mail.python.org/mailman/listinfo/chicago >> >> >> _______________________________________________ >> Chicago mailing list >> Chicago at python.org >> http://mail.python.org/mailman/listinfo/chicago >> >> > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > -- sheila From carl at oddbird.net Fri May 20 17:34:40 2011 From: carl at oddbird.net (Carl Meyer) Date: Fri, 20 May 2011 10:34:40 -0500 Subject: [Chicago] duck typing to handle a string or iterable of strings In-Reply-To: References: <6A521068-C56F-4BC2-9C08-B5AC39414940@me.com> <4DD5E14A.3040106@oddbird.net> Message-ID: <4DD68A10.40003@oddbird.net> Hey Alex, On 05/19/2011 10:55 PM, Alex Gaynor wrote: > It wasn't in any way an oversight, in fact the __iter__ on list and > tuples are totally superflous. Types which define __getitem__ are > automatically iterable and a default iterator is used for them which > calls __getitem__ with successive integers until an IndexError is raised. Yes, I know about the __getitem__ iteration fallback :-) Obviously you can iterate over a string in Python 2. "Oversight" may have been a strong word, but it was decided to make an intentional shift that all iterable objects should have an __iter__ method (its part of the Iterable ABC interface). It seems at least halfway reasonable, in light of this decision for greater consistency, to characterize the earlier omission, in retrospect, an "oversight." Or perhaps not ;-) Carl From carl at personnelware.com Fri May 20 17:39:23 2011 From: carl at personnelware.com (Carl Karsten) Date: Fri, 20 May 2011 10:39:23 -0500 Subject: [Chicago] 'tweener at Resi's on Tuesday In-Reply-To: References: Message-ID: Only if they promise not to drink all the beer. On Fri, May 20, 2011 at 10:09 AM, sheila miguez wrote: > Yes, and I heard there is one this coming Tuesday. Do we want to > invite Erlangers too? > > On Thu, May 19, 2011 at 2:00 PM, Garrett Smith wrote: >> Meeting <-> 'tweener <-> Meeting >> >> On Thu, May 19, 2011 at 12:27 PM, Brian Herman wrote: >>> what is a tweener? >>> Thanks, >>> Brian Herman >>> >>> brianjherman.com >>> brianherman at acm.org >>> >>> >>> >>> >>> >>> >>> >>> >>> On Thu, May 19, 2011 at 12:11 PM, sheila miguez wrote: >>>> >>>> >From what I've heard, there is a 'tweener at Resi's on the coming >>>> Tuesday. >>>> >>>> -- >>>> sheila >>>> _______________________________________________ >>>> Chicago mailing list >>>> Chicago at python.org >>>> http://mail.python.org/mailman/listinfo/chicago >>> >>> >>> _______________________________________________ >>> Chicago mailing list >>> Chicago at python.org >>> http://mail.python.org/mailman/listinfo/chicago >>> >>> >> _______________________________________________ >> Chicago mailing list >> Chicago at python.org >> http://mail.python.org/mailman/listinfo/chicago >> > > > > -- > sheila > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > -- Carl K From mtobis at gmail.com Fri May 20 17:58:52 2011 From: mtobis at gmail.com (Michael Tobis) Date: Fri, 20 May 2011 10:58:52 -0500 Subject: [Chicago] duck typing to handle a string or iterable of strings In-Reply-To: <4DD68A10.40003@oddbird.net> References: <6A521068-C56F-4BC2-9C08-B5AC39414940@me.com> <4DD5E14A.3040106@oddbird.net> <4DD68A10.40003@oddbird.net> Message-ID: OK, but still. I have also faced this problem. Flattening nested lists which contain strings is an example. Because a string is an iterable, if we want a method that tolerates a single string or a list of strings, treating the single string the same as a list with one element, we have to be able to treat the string as a non-iterable. The question is what the most elegant way to do this is if we are building general purpose utility functions that we don;'t want to violate duck typing. I recall punting, but I also recall wondering the same thing. So, consider a routine that is intended to flatten a nested list. We want to write a recursive routine that takes [1,[2,3,[4,5],"fred"]] to [1,2,3,4,5,"fred"] and not to [1,2,3,4,5,"f","r","e","d"]. And even the latter is not as easy as you'd expect. It totally violated least surprise for me when I did something like >>> def atomprint(thing): ... try: ... for item in thing: ... atomprint(item) ... except TypeError: ... print thing It works beautifully for lists of integers, floats, various other things. I felt satisfied and ever so pythonic. But it overflows the stack when you pass it a non-empty string! mt From jdh2358 at gmail.com Fri May 20 18:18:20 2011 From: jdh2358 at gmail.com (John Hunter) Date: Fri, 20 May 2011 11:18:20 -0500 Subject: [Chicago] duck typing to handle a string or iterable of strings In-Reply-To: References: <6A521068-C56F-4BC2-9C08-B5AC39414940@me.com> <4DD5E14A.3040106@oddbird.net> <4DD68A10.40003@oddbird.net> Message-ID: On Fri, May 20, 2011 at 10:58 AM, Michael Tobis wrote: > OK, but still. > > I have also faced this problem. > > Flattening nested lists which contain strings is an example. > > Because a string is an iterable, if we want a method that tolerates a > single string or a list of strings, treating the single string the > same as a list with one element, we have to be able to treat the > string as a non-iterable. The question is what the most elegant way to > do this is if we are building general purpose utility functions that > we don;'t want to violate duck typing. I recall punting, but I also > recall wondering the same thing. > > So, consider a routine that is intended to flatten a nested list. We > want to write a recursive routine that takes [1,[2,3,[4,5],"fred"]] to > [1,2,3,4,5,"fred"] and not to [1,2,3,4,5,"f","r","e","d"]. And even > the latter is not as easy as you'd expect. > > It totally violated least surprise for me when I did something like > > >>> def atomprint(thing): > ... try: > ... for item in thing: > ... atomprint(item) > ... except TypeError: > ... print thing > > It works beautifully for lists of integers, floats, various other > things. I felt satisfied and ever so pythonic. But it overflows the > stack when you pass it a non-empty string! > matplotlib.cbook defines "flatten" with a scalar customizable scalarp function to do what you want (the default returns True on non-iterables and strings). The module defines def is_scalar_or_string(val): return is_string_like(val) or not iterable(val) def flatten(seq, scalarp=is_scalar_or_string): """ this generator flattens nested containers such as >>> l=( ('John', 'Hunter'), (1,23), [[[[42,(5,23)]]]]) so that >>> for i in flatten(l): print i, John Hunter 1 23 42 5 23 By: Composite of Holger Krekel and Luther Blissett From: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/121294 and Recipe 1.12 in cookbook """ for item in seq: if scalarp(item): yield item else: for subitem in flatten(item, scalarp): yield subitem When applied to your example, it yields In [49]: import matplotlib.cbook as cbook In [51]: for row in cbook.flatten ([1,[2,3,[4,5],"fred"]] ): ....: print row ....: ....: 1 2 3 4 5 fred -------------- next part -------------- An HTML attachment was scrubbed... URL: From mtobis at gmail.com Fri May 20 18:51:18 2011 From: mtobis at gmail.com (Michael Tobis) Date: Fri, 20 May 2011 11:51:18 -0500 Subject: [Chicago] duck typing to handle a string or iterable of strings In-Reply-To: References: <6A521068-C56F-4BC2-9C08-B5AC39414940@me.com> <4DD5E14A.3040106@oddbird.net> <4DD68A10.40003@oddbird.net> Message-ID: John, thanks, but that's sort of what I meant by punting. And you haven't told us what is_string_like() looks like. In short, something as fundamental as a character probably shouldn't have been implemented as a container containing itself. >>> a = [] >>> a.append(a) >>> a [ [ ... ] ] a is a pretty weird object which will kill your flatten routine in the same way that "X" will kill mine. In the end it's sort of a quibble but I am not entirely happy that "X" has this bottomless nature and that I lost some time figuring that out. mt From jdh2358 at gmail.com Fri May 20 19:03:32 2011 From: jdh2358 at gmail.com (John Hunter) Date: Fri, 20 May 2011 12:03:32 -0500 Subject: [Chicago] duck typing to handle a string or iterable of strings In-Reply-To: References: <6A521068-C56F-4BC2-9C08-B5AC39414940@me.com> <4DD5E14A.3040106@oddbird.net> <4DD68A10.40003@oddbird.net> Message-ID: On May 20, 2011, at 11:51 AM, Michael Tobis wrote: > John, thanks, but that's sort of what I meant by punting. And you > haven't told us what is_string_like() looks like. > > I posted is_string_like and iterable in my response to this thread yesterday. It's also defined in the matplotlib.cbook src. From shekay at pobox.com Fri May 20 19:13:03 2011 From: shekay at pobox.com (sheila miguez) Date: Fri, 20 May 2011 12:13:03 -0500 Subject: [Chicago] 'tweener at Resi's on Tuesday In-Reply-To: References: Message-ID: Ok, noted. I sent them email and told them not to drink all of the beer. On Fri, May 20, 2011 at 10:39 AM, Carl Karsten wrote: > Only if they promise not to drink all the beer. > > On Fri, May 20, 2011 at 10:09 AM, sheila miguez wrote: >> Yes, and I heard there is one this coming Tuesday. Do we want to >> invite Erlangers too? >> >> On Thu, May 19, 2011 at 2:00 PM, Garrett Smith wrote: >>> Meeting <-> 'tweener <-> Meeting >>> >>> On Thu, May 19, 2011 at 12:27 PM, Brian Herman wrote: >>>> what is a tweener? >>>> Thanks, >>>> Brian Herman >>>> >>>> brianjherman.com >>>> brianherman at acm.org >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> On Thu, May 19, 2011 at 12:11 PM, sheila miguez wrote: >>>>> >>>>> >From what I've heard, there is a 'tweener at Resi's on the coming >>>>> Tuesday. >>>>> >>>>> -- >>>>> sheila >>>>> _______________________________________________ >>>>> Chicago mailing list >>>>> Chicago at python.org >>>>> http://mail.python.org/mailman/listinfo/chicago >>>> >>>> >>>> _______________________________________________ >>>> Chicago mailing list >>>> Chicago at python.org >>>> http://mail.python.org/mailman/listinfo/chicago >>>> >>>> >>> _______________________________________________ >>> Chicago mailing list >>> Chicago at python.org >>> http://mail.python.org/mailman/listinfo/chicago >>> >> >> >> >> -- >> sheila >> _______________________________________________ >> Chicago mailing list >> Chicago at python.org >> http://mail.python.org/mailman/listinfo/chicago >> > > > > -- > Carl K > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > -- sheila From shekay at pobox.com Fri May 20 19:14:33 2011 From: shekay at pobox.com (sheila miguez) Date: Fri, 20 May 2011 12:14:33 -0500 Subject: [Chicago] 'tweener at Resi's on Tuesday In-Reply-To: References: Message-ID: For people unfamiliar with the location of Resi's http://www.yelp.com/biz/resis-bierstube-restaurant-and-tavern-chicago On Fri, May 20, 2011 at 12:13 PM, sheila miguez wrote: > Ok, noted. I sent them email and told them not to drink all of the beer. > > On Fri, May 20, 2011 at 10:39 AM, Carl Karsten wrote: >> Only if they promise not to drink all the beer. >> >> On Fri, May 20, 2011 at 10:09 AM, sheila miguez wrote: >>> Yes, and I heard there is one this coming Tuesday. Do we want to >>> invite Erlangers too? >>> >>> On Thu, May 19, 2011 at 2:00 PM, Garrett Smith wrote: >>>> Meeting <-> 'tweener <-> Meeting >>>> >>>> On Thu, May 19, 2011 at 12:27 PM, Brian Herman wrote: >>>>> what is a tweener? >>>>> Thanks, >>>>> Brian Herman >>>>> >>>>> brianjherman.com >>>>> brianherman at acm.org >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> On Thu, May 19, 2011 at 12:11 PM, sheila miguez wrote: >>>>>> >>>>>> >From what I've heard, there is a 'tweener at Resi's on the coming >>>>>> Tuesday. >>>>>> >>>>>> -- >>>>>> sheila >>>>>> _______________________________________________ >>>>>> Chicago mailing list >>>>>> Chicago at python.org >>>>>> http://mail.python.org/mailman/listinfo/chicago >>>>> >>>>> >>>>> _______________________________________________ >>>>> Chicago mailing list >>>>> Chicago at python.org >>>>> http://mail.python.org/mailman/listinfo/chicago >>>>> >>>>> >>>> _______________________________________________ >>>> Chicago mailing list >>>> Chicago at python.org >>>> http://mail.python.org/mailman/listinfo/chicago >>>> >>> >>> >>> >>> -- >>> sheila >>> _______________________________________________ >>> Chicago mailing list >>> Chicago at python.org >>> http://mail.python.org/mailman/listinfo/chicago >>> >> >> >> >> -- >> Carl K >> _______________________________________________ >> Chicago mailing list >> Chicago at python.org >> http://mail.python.org/mailman/listinfo/chicago >> > > > > -- > sheila > -- sheila From kumar.mcmillan at gmail.com Sat May 21 02:30:45 2011 From: kumar.mcmillan at gmail.com (Kumar McMillan) Date: Fri, 20 May 2011 19:30:45 -0500 Subject: [Chicago] 'tweener at Resi's on Tuesday In-Reply-To: References: Message-ID: On Fri, May 20, 2011 at 10:39 AM, Carl Karsten wrote: > Only if they promise not to drink all the beer. Is this because it's faster to drink beer asynchronously? > > On Fri, May 20, 2011 at 10:09 AM, sheila miguez wrote: >> Yes, and I heard there is one this coming Tuesday. Do we want to >> invite Erlangers too? >> >> On Thu, May 19, 2011 at 2:00 PM, Garrett Smith wrote: >>> Meeting <-> 'tweener <-> Meeting >>> >>> On Thu, May 19, 2011 at 12:27 PM, Brian Herman wrote: >>>> what is a tweener? >>>> Thanks, >>>> Brian Herman >>>> >>>> brianjherman.com >>>> brianherman at acm.org >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> On Thu, May 19, 2011 at 12:11 PM, sheila miguez wrote: >>>>> >>>>> >From what I've heard, there is a 'tweener at Resi's on the coming >>>>> Tuesday. >>>>> >>>>> -- >>>>> sheila >>>>> _______________________________________________ >>>>> Chicago mailing list >>>>> Chicago at python.org >>>>> http://mail.python.org/mailman/listinfo/chicago >>>> >>>> >>>> _______________________________________________ >>>> Chicago mailing list >>>> Chicago at python.org >>>> http://mail.python.org/mailman/listinfo/chicago >>>> >>>> >>> _______________________________________________ >>> Chicago mailing list >>> Chicago at python.org >>> http://mail.python.org/mailman/listinfo/chicago >>> >> >> >> >> -- >> sheila >> _______________________________________________ >> Chicago mailing list >> Chicago at python.org >> http://mail.python.org/mailman/listinfo/chicago >> > > > > -- > Carl K > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > From g at rre.tt Sat May 21 02:32:25 2011 From: g at rre.tt (Garrett Smith) Date: Fri, 20 May 2011 19:32:25 -0500 Subject: [Chicago] 'tweener at Resi's on Tuesday In-Reply-To: References: Message-ID: It's more the massive concurrency. On Fri, May 20, 2011 at 7:30 PM, Kumar McMillan wrote: > On Fri, May 20, 2011 at 10:39 AM, Carl Karsten wrote: >> Only if they promise not to drink all the beer. > > Is this because it's faster to drink beer asynchronously? > >> >> On Fri, May 20, 2011 at 10:09 AM, sheila miguez wrote: >>> Yes, and I heard there is one this coming Tuesday. Do we want to >>> invite Erlangers too? >>> >>> On Thu, May 19, 2011 at 2:00 PM, Garrett Smith wrote: >>>> Meeting <-> 'tweener <-> Meeting >>>> >>>> On Thu, May 19, 2011 at 12:27 PM, Brian Herman wrote: >>>>> what is a tweener? >>>>> Thanks, >>>>> Brian Herman >>>>> >>>>> brianjherman.com >>>>> brianherman at acm.org >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> On Thu, May 19, 2011 at 12:11 PM, sheila miguez wrote: >>>>>> >>>>>> >From what I've heard, there is a 'tweener at Resi's on the coming >>>>>> Tuesday. >>>>>> >>>>>> -- >>>>>> sheila >>>>>> _______________________________________________ >>>>>> Chicago mailing list >>>>>> Chicago at python.org >>>>>> http://mail.python.org/mailman/listinfo/chicago >>>>> >>>>> >>>>> _______________________________________________ >>>>> Chicago mailing list >>>>> Chicago at python.org >>>>> http://mail.python.org/mailman/listinfo/chicago >>>>> >>>>> >>>> _______________________________________________ >>>> Chicago mailing list >>>> Chicago at python.org >>>> http://mail.python.org/mailman/listinfo/chicago >>>> >>> >>> >>> >>> -- >>> sheila >>> _______________________________________________ >>> Chicago mailing list >>> Chicago at python.org >>> http://mail.python.org/mailman/listinfo/chicago >>> >> >> >> >> -- >> Carl K >> _______________________________________________ >> Chicago mailing list >> Chicago at python.org >> http://mail.python.org/mailman/listinfo/chicago >> > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > From brianherman at gmail.com Sat May 21 03:03:07 2011 From: brianherman at gmail.com (Brian Herman) Date: Fri, 20 May 2011 21:03:07 -0400 Subject: [Chicago] 'tweener at Resi's on Tuesday In-Reply-To: References: Message-ID: I think everyone learned last week how to drink beers with coroutines I think we should be fine. Thanks, Brian Herman brianjherman.com brianherman at acm.org On Fri, May 20, 2011 at 8:32 PM, Garrett Smith wrote: > It's more the massive concurrency. > > On Fri, May 20, 2011 at 7:30 PM, Kumar McMillan > wrote: > > On Fri, May 20, 2011 at 10:39 AM, Carl Karsten > wrote: > >> Only if they promise not to drink all the beer. > > > > Is this because it's faster to drink beer asynchronously? > > > >> > >> On Fri, May 20, 2011 at 10:09 AM, sheila miguez > wrote: > >>> Yes, and I heard there is one this coming Tuesday. Do we want to > >>> invite Erlangers too? > >>> > >>> On Thu, May 19, 2011 at 2:00 PM, Garrett Smith wrote: > >>>> Meeting <-> 'tweener <-> Meeting > >>>> > >>>> On Thu, May 19, 2011 at 12:27 PM, Brian Herman > wrote: > >>>>> what is a tweener? > >>>>> Thanks, > >>>>> Brian Herman > >>>>> > >>>>> brianjherman.com > >>>>> brianherman at acm.org > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> On Thu, May 19, 2011 at 12:11 PM, sheila miguez > wrote: > >>>>>> > >>>>>> >From what I've heard, there is a 'tweener at Resi's on the coming > >>>>>> Tuesday. > >>>>>> > >>>>>> -- > >>>>>> sheila > >>>>>> _______________________________________________ > >>>>>> Chicago mailing list > >>>>>> Chicago at python.org > >>>>>> http://mail.python.org/mailman/listinfo/chicago > >>>>> > >>>>> > >>>>> _______________________________________________ > >>>>> Chicago mailing list > >>>>> Chicago at python.org > >>>>> http://mail.python.org/mailman/listinfo/chicago > >>>>> > >>>>> > >>>> _______________________________________________ > >>>> Chicago mailing list > >>>> Chicago at python.org > >>>> http://mail.python.org/mailman/listinfo/chicago > >>>> > >>> > >>> > >>> > >>> -- > >>> sheila > >>> _______________________________________________ > >>> Chicago mailing list > >>> Chicago at python.org > >>> http://mail.python.org/mailman/listinfo/chicago > >>> > >> > >> > >> > >> -- > >> Carl K > >> _______________________________________________ > >> Chicago mailing list > >> Chicago at python.org > >> http://mail.python.org/mailman/listinfo/chicago > >> > > _______________________________________________ > > Chicago mailing list > > Chicago at python.org > > http://mail.python.org/mailman/listinfo/chicago > > > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > -------------- next part -------------- An HTML attachment was scrubbed... URL: From brianhray at gmail.com Mon May 23 17:30:22 2011 From: brianhray at gmail.com (Brian Ray) Date: Mon, 23 May 2011 10:30:22 -0500 Subject: [Chicago] [ANN] North May Meeting this Thursday May 26th Message-ID: The North meeting will happen this week on Thursday (Note: now 4th thurs). Please RSVP: https://spreadsheets.google.com/viewform?formkey=dHVLOTNTU3oxTzJKYjB3RmV4eVZkMEE6MA When: Thursday May 26th 2011 7 p.m. Where: Textura 1405 Lake Cook Road Deerfield, IL 60015. Walking distance (10-15 min) from MD-N Lake Cook RD. Amply parking. Ping list for car pool options. Topics: 1) Web Frameworks: from web.py to web2py. (:45 Forty-Five Minutes) By: Dean Sellis 2-3) Not official yet, there may be some late additions. Think modern approaches: agile, scrum, and fitness... TBD Stay tuned to the website http://chipy.org and mailing list for more. Best North Meeting Ever... hope you can make it. -- Brian Ray (773) 669-7717 -------------- next part -------------- An HTML attachment was scrubbed... URL: From carl at personnelware.com Tue May 24 02:35:44 2011 From: carl at personnelware.com (Carl Karsten) Date: Mon, 23 May 2011 19:35:44 -0500 Subject: [Chicago] June meeting venue Message-ID: Who wants to host the June loop meeting? (Threadless is not available in June) -- Carl K From jason at multiply.org Tue May 24 03:10:28 2011 From: jason at multiply.org (jason gessner) Date: Mon, 23 May 2011 20:10:28 -0500 Subject: [Chicago] June meeting venue In-Reply-To: References: Message-ID: i think i will be out of town for the next meeting, but i'll set up Google Chicago as a host for July if that sounds good to folks. -jason On Mon, May 23, 2011 at 7:35 PM, Carl Karsten wrote: > Who wants to host the June loop meeting? > > (Threadless is not available in June) > > -- > Carl K > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > -------------- next part -------------- An HTML attachment was scrubbed... URL: From brianhray at gmail.com Tue May 24 04:08:10 2011 From: brianhray at gmail.com (Brian Ray) Date: Mon, 23 May 2011 21:08:10 -0500 Subject: [Chicago] June Topics Message-ID: Looks like we have a viable office location (Google). We have food/drink sponsors (Coupon Cabin). I think we might have some presentations on the table, as well (Robotics? aka OpenCV). Can we confirm that last point, Bill? Who else has something they want to propose? Recall folks, we are planning the best meeting ever. -- Brian Ray (773) 669-7717 From jason at multiply.org Tue May 24 04:30:37 2011 From: jason at multiply.org (jason gessner) Date: Mon, 23 May 2011 21:30:37 -0500 Subject: [Chicago] June Topics In-Reply-To: References: Message-ID: So this will be on the 9th, right? I'll talk to facilities tomorrow to make sure we don't have a conflict and confirm by the end of the week. -jason On Mon, May 23, 2011 at 9:08 PM, Brian Ray wrote: > Looks like we have a viable office location (Google). We have > food/drink sponsors (Coupon Cabin). I think we might have some > presentations on the table, as well (Robotics? aka OpenCV). Can we > confirm that last point, Bill? > > Who else has something they want to propose? Recall folks, we are > planning the best meeting ever. > > > -- > > Brian Ray > (773) 669-7717 > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > -------------- next part -------------- An HTML attachment was scrubbed... URL: From brianhray at gmail.com Tue May 24 04:35:15 2011 From: brianhray at gmail.com (Brian Ray) Date: Mon, 23 May 2011 21:35:15 -0500 Subject: [Chicago] June Topics In-Reply-To: References: Message-ID: On Mon, May 23, 2011 at 9:30 PM, jason gessner wrote: > So this will be on the 9th, right? ?I'll talk to facilities tomorrow to make > sure we don't have a conflict and confirm by the end of the week. > -jason Yes, the 9th. Thanks, Jason. -- Brian Ray (773) 669-7717 From carl at personnelware.com Tue May 24 05:03:40 2011 From: carl at personnelware.com (Carl Karsten) Date: Mon, 23 May 2011 22:03:40 -0500 Subject: [Chicago] June Topics In-Reply-To: References: Message-ID: goog is july. On Mon, May 23, 2011 at 9:08 PM, Brian Ray wrote: > Looks like we have a viable office location (Google). We have > food/drink sponsors (Coupon Cabin). I think we might have some > presentations on the table, as well (Robotics? aka OpenCV). ?Can we > confirm that last point, Bill? > > Who else has something they want to propose? Recall folks, we are > planning the best meeting ever. > > > -- > > Brian Ray > (773) 669-7717 > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > -- Carl K From jason at multiply.org Tue May 24 05:16:10 2011 From: jason at multiply.org (jason gessner) Date: Mon, 23 May 2011 22:16:10 -0500 Subject: [Chicago] June Topics In-Reply-To: References: Message-ID: i can do either, actually. I thought the meeting was later in the month, which is why i suggested july originally. plus, i wouldn't want to not host the best meeting ever. :) -jason On Mon, May 23, 2011 at 10:03 PM, Carl Karsten wrote: > goog is july. > > > On Mon, May 23, 2011 at 9:08 PM, Brian Ray wrote: > > Looks like we have a viable office location (Google). We have > > food/drink sponsors (Coupon Cabin). I think we might have some > > presentations on the table, as well (Robotics? aka OpenCV). Can we > > confirm that last point, Bill? > > > > Who else has something they want to propose? Recall folks, we are > > planning the best meeting ever. > > > > > > -- > > > > Brian Ray > > (773) 669-7717 > > _______________________________________________ > > Chicago mailing list > > Chicago at python.org > > http://mail.python.org/mailman/listinfo/chicago > > > > > > -- > Carl K > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > -------------- next part -------------- An HTML attachment was scrubbed... URL: From maniabill at yahoo.com Tue May 24 12:36:18 2011 From: maniabill at yahoo.com (Bill Mania) Date: Tue, 24 May 2011 05:36:18 -0500 Subject: [Chicago] June Topics In-Reply-To: References: Message-ID: <20110524103618.GA27288@bill-desktop> Brian, On Mon, May 23, 2011 at 09:08:10PM -0500, Brian Ray wrote: > food/drink sponsors (Coupon Cabin). I think we might have some > presentations on the table, as well (Robotics? aka OpenCV). Can we > confirm that last point, Bill? Yes, we'll be continuing the semi-annual ChiPy robotics presentations with a demonstration of OpenCV in action. -- Bill Mania dum ni vivas, ni vivu! From akekhofananaye at yahoo.co.uk Tue May 24 17:16:20 2011 From: akekhofananaye at yahoo.co.uk (SKHUMBUZO ZIKHALI) Date: Tue, 24 May 2011 16:16:20 +0100 (BST) Subject: [Chicago] Codes do not run Message-ID: <928284.18783.qm@web24007.mail.ird.yahoo.com> Hi: I am learning Python on my own using a " Guide to Programming with Python" book.?Author of the book is Micheal?Dawson and I am using version 2.3.5 of python. ?When I try to run the code?I do?not get required results. The picture could not be loaded. I get trackback message regarding undefined module.The example from the book is as follows: from liveswires import games games.init(screen_width = 640, screen_height = 480, fps = 50) wall_image = games.load_image("wall.jpg", transparent = False) games.screen.background = wall_image games.screen.mainloop() Can anyone please assist me. Thank you Sikhumbuzo -------------- next part -------------- An HTML attachment was scrubbed... URL: From shekay at pobox.com Tue May 24 17:26:33 2011 From: shekay at pobox.com (sheila miguez) Date: Tue, 24 May 2011 10:26:33 -0500 Subject: [Chicago] Reminder: Co-tweener tonight at Resi's Message-ID: 'Tweener at Resi's tonight. Show up around 6:30 PM or as you like. Make puns about co-rou-tweeners. Resi's Bierstube -- sheila From genia.likes.science at gmail.com Tue May 24 17:31:43 2011 From: genia.likes.science at gmail.com (Eugenia Gabrielova) Date: Tue, 24 May 2011 10:31:43 -0500 Subject: [Chicago] Codes do not run In-Reply-To: <928284.18783.qm@web24007.mail.ird.yahoo.com> References: <928284.18783.qm@web24007.mail.ird.yahoo.com> Message-ID: Hi Sikhumbuzo, Try "from livewires import games" - looks like you have an extra "s" in liveswires. Cheers, Eugenia On Tue, May 24, 2011 at 10:16 AM, SKHUMBUZO ZIKHALI < akekhofananaye at yahoo.co.uk> wrote: > Hi: > > I am learning Python on my own using a " Guide to Programming with Python" > book. Author of the book is Micheal Dawson and I am using version 2.3.5 of > python. When I try to run the code I do not get required results. The > picture could not be loaded. I get trackback message regarding undefined > module.The example from the book is as follows: > > from liveswires import games > > games.init(screen_width = 640, screen_height = 480, fps = 50) > wall_image = games.load_image("wall.jpg", transparent = False) > games.screen.background = wall_image > > games.screen.mainloop() > > Can anyone please assist me. > > Thank you > > Sikhumbuzo > > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From orblivion at gmail.com Tue May 24 17:45:52 2011 From: orblivion at gmail.com (Dan Krol) Date: Tue, 24 May 2011 10:45:52 -0500 Subject: [Chicago] Codes do not run Message-ID: Also livewires is a package on pypi.org that I am guessing isn't part of the standard library. You would have to install that with pip or easyinstall or maybe your operating system's package manager if you use something like Linux. Also, 2.3 is quite old, unless the course recommends it I would try to upgrade, you may run into more issues down the line. On May 24, 2011 10:16 AM, "SKHUMBUZO ZIKHALI" wrote: > Hi: > > I am learning Python on my own using a " Guide to Programming with Python" > book. Author of the book is Micheal Dawson and I am using version 2.3.5 of > python. When I try to run the code I do not get required results. The picture > could not be loaded. I get trackback message regarding undefined module.The > example from the book is as follows: > > from liveswires import games > > games.init(screen_width = 640, screen_height = 480, fps = 50) > wall_image = games.load_image("wall.jpg", transparent = False) > games.screen.background = wall_image > > games.screen.mainloop() > > Can anyone please assist me. > > Thank you > > Sikhumbuzo -------------- next part -------------- An HTML attachment was scrubbed... URL: From orblivion at gmail.com Tue May 24 17:47:14 2011 From: orblivion at gmail.com (Dan Krol) Date: Tue, 24 May 2011 10:47:14 -0500 Subject: [Chicago] Codes do not run In-Reply-To: References: Message-ID: Sorry, I meant http://pypi.python.org On May 24, 2011 10:45 AM, "Dan Krol" wrote: > Also livewires is a package on pypi.org that I am guessing isn't part of the > standard library. You would have to install that with pip or easyinstall or > maybe your operating system's package manager if you use something like > Linux. Also, 2.3 is quite old, unless the course recommends it I would try > to upgrade, you may run into more issues down the line. > On May 24, 2011 10:16 AM, "SKHUMBUZO ZIKHALI" > wrote: >> Hi: >> >> I am learning Python on my own using a " Guide to Programming with Python" > >> book. Author of the book is Micheal Dawson and I am using version 2.3.5 of > >> python. When I try to run the code I do not get required results. The > picture >> could not be loaded. I get trackback message regarding undefined > module.The >> example from the book is as follows: >> >> from liveswires import games >> >> games.init(screen_width = 640, screen_height = 480, fps = 50) >> wall_image = games.load_image("wall.jpg", transparent = False) >> games.screen.background = wall_image >> >> games.screen.mainloop() >> >> Can anyone please assist me. >> >> Thank you >> >> Sikhumbuzo -------------- next part -------------- An HTML attachment was scrubbed... URL: From carl at personnelware.com Tue May 24 17:57:16 2011 From: carl at personnelware.com (Carl Karsten) Date: Tue, 24 May 2011 10:57:16 -0500 Subject: [Chicago] Codes do not run In-Reply-To: <928284.18783.qm@web24007.mail.ird.yahoo.com> References: <928284.18783.qm@web24007.mail.ird.yahoo.com> Message-ID: On Tue, May 24, 2011 at 10:16 AM, SKHUMBUZO ZIKHALI wrote: > The picture could not be loaded. I get trackback message regarding undefined > module. I strongly recomend learning how to cut/paste in/out of whatever shell you are using. in Linux, use the mouse to select some text, right click, Cut. In windows, ummm.. it has been a while, there is a menu off of the command box: "Edit, Cut" and use the mouse to select text. right clicking on the text might work too. if you need help with this, ask - it is very important that you can post things like the error message, and the whole thing, so reading and typing it is no good. -- Carl K From carl at personnelware.com Tue May 24 23:03:04 2011 From: carl at personnelware.com (Carl Karsten) Date: Tue, 24 May 2011 16:03:04 -0500 Subject: [Chicago] Reminder: Co-tweener tonight at Resi's In-Reply-To: References: Message-ID: are more or less than 4 going to show up? Sheila and I make 2. if 2 more chime in I will get a larger table. On Tue, May 24, 2011 at 10:26 AM, sheila miguez wrote: > 'Tweener at Resi's tonight. Show up around 6:30 PM or as you like. > Make puns about co-rou-tweeners. > > Resi's Bierstube > > > -- > sheila > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > -- Carl K From kumar.mcmillan at gmail.com Tue May 24 23:44:13 2011 From: kumar.mcmillan at gmail.com (Kumar McMillan) Date: Tue, 24 May 2011 16:44:13 -0500 Subject: [Chicago] Codes do not run In-Reply-To: <928284.18783.qm@web24007.mail.ird.yahoo.com> References: <928284.18783.qm@web24007.mail.ird.yahoo.com> Message-ID: On Tue, May 24, 2011 at 10:16 AM, SKHUMBUZO ZIKHALI wrote: > Hi: > > I am learning Python on my own using a " Guide to Programming with Python" > book. You may also want to take a read through http://learnpythonthehardway.org/ > Author of the book is Micheal?Dawson and I am using version 2.3.5 of > python. ?When I try to run the code?I do?not get required results. The > picture could not be loaded. I get trackback message regarding undefined > module.The example from the book is as follows: > > from liveswires import games > > games.init(screen_width = 640, screen_height = 480, fps = 50) > wall_image = games.load_image("wall.jpg", transparent = False) > games.screen.background = wall_image > > games.screen.mainloop() > > Can anyone please assist me. > > Thank you > > Sikhumbuzo > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > > From brianhray at gmail.com Tue May 24 23:49:14 2011 From: brianhray at gmail.com (Brian Ray) Date: Tue, 24 May 2011 16:49:14 -0500 Subject: [Chicago] Codes do not run In-Reply-To: References: <928284.18783.qm@web24007.mail.ird.yahoo.com> Message-ID: On Tue, May 24, 2011 at 4:44 PM, Kumar McMillan wrote: > On Tue, May 24, 2011 at 10:16 AM, SKHUMBUZO ZIKHALI > wrote: >> Hi: >> >> I am learning Python on my own using a " Guide to Programming with Python" >> book. > > You may also want to take a read through http://learnpythonthehardway.org/ > Now I am wondering if Zed should be convinced to update this book with Python 3 footnotes. Not hugely different except perhaps with all the string formatting. -- Brian Ray (773) 669-7717 From g at rre.tt Wed May 25 00:06:31 2011 From: g at rre.tt (Garrett Smith) Date: Tue, 24 May 2011 17:06:31 -0500 Subject: [Chicago] Reminder: Co-tweener tonight at Resi's In-Reply-To: References: Message-ID: I had planned on it, but got roped into something else tonight :( On May 24, 2011 4:03 PM, "Carl Karsten" wrote: > are more or less than 4 going to show up? Sheila and I make 2. if 2 > more chime in I will get a larger table. > > On Tue, May 24, 2011 at 10:26 AM, sheila miguez wrote: >> 'Tweener at Resi's tonight. Show up around 6:30 PM or as you like. >> Make puns about co-rou-tweeners. >> >> Resi's Bierstube >> >> >> -- >> sheila >> _______________________________________________ >> Chicago mailing list >> Chicago at python.org >> http://mail.python.org/mailman/listinfo/chicago >> > > > > -- > Carl K > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago -------------- next part -------------- An HTML attachment was scrubbed... URL: From heflin.rosst at gmail.com Wed May 25 01:09:49 2011 From: heflin.rosst at gmail.com (Ross Heflin) Date: Tue, 24 May 2011 18:09:49 -0500 Subject: [Chicago] Reminder: Co-tweener tonight at Resi's In-Reply-To: References: Message-ID: I'm up for it. Should arrive between 7 and 7:30 On May 24, 2011 5:17 PM, "Garrett Smith" wrote: > I had planned on it, but got roped into something else tonight :( > On May 24, 2011 4:03 PM, "Carl Karsten" wrote: >> are more or less than 4 going to show up? Sheila and I make 2. if 2 >> more chime in I will get a larger table. >> >> On Tue, May 24, 2011 at 10:26 AM, sheila miguez wrote: >>> 'Tweener at Resi's tonight. Show up around 6:30 PM or as you like. >>> Make puns about co-rou-tweeners. >>> >>> Resi's Bierstube >>> >>> >>> -- >>> sheila >>> _______________________________________________ >>> Chicago mailing list >>> Chicago at python.org >>> http://mail.python.org/mailman/listinfo/chicago >>> >> >> >> >> -- >> Carl K >> _______________________________________________ >> Chicago mailing list >> Chicago at python.org >> http://mail.python.org/mailman/listinfo/chicago -------------- next part -------------- An HTML attachment was scrubbed... URL: From carl at personnelware.com Wed May 25 01:12:24 2011 From: carl at personnelware.com (Carl Karsten) Date: Tue, 24 May 2011 18:12:24 -0500 Subject: [Chicago] Reminder: Co-tweener tonight at Resi's In-Reply-To: References: Message-ID: woot - we have 4! the big table it is. On Tue, May 24, 2011 at 6:09 PM, Ross Heflin wrote: > I'm up for it.? Should arrive between 7 and 7:30 > > On May 24, 2011 5:17 PM, "Garrett Smith" wrote: >> I had planned on it, but got roped into something else tonight :( >> On May 24, 2011 4:03 PM, "Carl Karsten" wrote: >>> are more or less than 4 going to show up? Sheila and I make 2. if 2 >>> more chime in I will get a larger table. >>> >>> On Tue, May 24, 2011 at 10:26 AM, sheila miguez wrote: >>>> 'Tweener at Resi's tonight. Show up around 6:30 PM or as you like. >>>> Make puns about co-rou-tweeners. >>>> >>>> Resi's Bierstube >>>> >>>> >>>> -- >>>> sheila >>>> _______________________________________________ >>>> Chicago mailing list >>>> Chicago at python.org >>>> http://mail.python.org/mailman/listinfo/chicago >>>> >>> >>> >>> >>> -- >>> Carl K >>> _______________________________________________ >>> Chicago mailing list >>> Chicago at python.org >>> http://mail.python.org/mailman/listinfo/chicago > > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > > -- Carl K From brianhray at gmail.com Wed May 25 22:50:43 2011 From: brianhray at gmail.com (Brian Ray) Date: Wed, 25 May 2011 15:50:43 -0500 Subject: [Chicago] ChiPy North Tomorrow Night Message-ID: Reminder: Chicago Python User Group (ChiPy) North chapter is tomorrow. If you think you might make it please RSVP: https://spreadsheets.google.com/viewform?formkey=dHVLOTNTU3oxTzJKYjB3RmV4eVZkMEE6MA -- Brian Ray -------------- next part -------------- An HTML attachment was scrubbed... URL: From brianhray at gmail.com Thu May 26 23:24:34 2011 From: brianhray at gmail.com (Brian Ray) Date: Thu, 26 May 2011 16:24:34 -0500 Subject: [Chicago] Chipy North tonight: Lettuce entertain you. Message-ID: We have dozen or so RSVP for the meeting tonight. There will be some pizze with the option to pitch in to cover costs. I did not ask for sponsorship for food. Regarding presentations, if the group is interested, I can give a lightening talk on Lettuce. http://packages.python.org/lettuce/tutorial/simple.html See you up North! -- Brian Ray -------------- next part -------------- An HTML attachment was scrubbed... URL: From dean.sellis at gmail.com Fri May 27 00:44:47 2011 From: dean.sellis at gmail.com (Dean Sellis) Date: Thu, 26 May 2011 17:44:47 -0500 Subject: [Chicago] Chipy North tonight: Lettuce entertain you. In-Reply-To: References: Message-ID: <7B291E43-11C2-4B9A-830C-A8CC616D992E@gmail.com> +1 on the talk! On May 26, 2011, at 4:24 PM, Brian Ray wrote: > > We have dozen or so RSVP for the meeting tonight. There will be some pizze with the option to pitch in to cover costs. I did not ask for sponsorship for food. > > Regarding presentations, if the group is interested, I can give a lightening talk on Lettuce. http://packages.python.org/lettuce/tutorial/simple.html > > > See you up North! > > -- > > Brian Ray > > > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago -------------- next part -------------- An HTML attachment was scrubbed... URL: From jason at multiply.org Fri May 27 20:32:37 2011 From: jason at multiply.org (jason gessner) Date: Fri, 27 May 2011 13:32:37 -0500 Subject: [Chicago] June Topics In-Reply-To: <20110524103618.GA27288@bill-desktop> References: <20110524103618.GA27288@bill-desktop> Message-ID: I have the 17th floor at the Google office on Kinzie reserved for the meeting. Brian, would you get me an estimate on attendee count? thanks! -jason On Tue, May 24, 2011 at 5:36 AM, Bill Mania wrote: > Brian, > > On Mon, May 23, 2011 at 09:08:10PM -0500, Brian Ray wrote: > > food/drink sponsors (Coupon Cabin). I think we might have some > > presentations on the table, as well (Robotics? aka OpenCV). Can we > > confirm that last point, Bill? > > Yes, we'll be continuing the semi-annual ChiPy robotics > presentations with a demonstration of OpenCV in action. > > -- > Bill Mania > dum ni vivas, ni vivu! > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > -------------- next part -------------- An HTML attachment was scrubbed... URL: From brianhray at gmail.com Fri May 27 20:45:59 2011 From: brianhray at gmail.com (Brian Ray) Date: Fri, 27 May 2011 13:45:59 -0500 Subject: [Chicago] June Topics In-Reply-To: References: <20110524103618.GA27288@bill-desktop> Message-ID: We had 45+ last month, and 120+ the month before. I imagine this will be the best meeting ever. On Fri, May 27, 2011 at 1:32 PM, jason gessner wrote: > I have the 17th floor at the Google office on Kinzie reserved for the > meeting. > > Brian, would you get me an estimate on attendee count? > > thanks! > > -jason > > On Tue, May 24, 2011 at 5:36 AM, Bill Mania wrote: > >> Brian, >> >> On Mon, May 23, 2011 at 09:08:10PM -0500, Brian Ray wrote: >> > food/drink sponsors (Coupon Cabin). I think we might have some >> > presentations on the table, as well (Robotics? aka OpenCV). Can we >> > confirm that last point, Bill? >> >> Yes, we'll be continuing the semi-annual ChiPy robotics >> presentations with a demonstration of OpenCV in action. >> >> -- >> Bill Mania >> dum ni vivas, ni vivu! >> _______________________________________________ >> Chicago mailing list >> Chicago at python.org >> http://mail.python.org/mailman/listinfo/chicago >> > > > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago > > -- Brian Ray (773) 669-7717 -------------- next part -------------- An HTML attachment was scrubbed... URL: From brianhray at gmail.com Tue May 31 17:41:26 2011 From: brianhray at gmail.com (Brian Ray) Date: Tue, 31 May 2011 10:41:26 -0500 Subject: [Chicago] Potential talk: Web2Py Message-ID: Here is a talk proposal from Massimo Di Pierro for our next Loop meeting?on updates to web2py: - wizard - versioning - digitally signed callbacks - federated authentication - multi-tenancy He could also talk about csvstudio (a utility to extract data from csv files that work with web2py and django). Any interests? I imagine we can work in 20 minutes for this; although, I have not asked how long he planned on talking. -- Brian Ray (773) 669-7717 From mdipierro at cs.depaul.edu Tue May 31 17:49:54 2011 From: mdipierro at cs.depaul.edu (Massimo Di Pierro) Date: Tue, 31 May 2011 10:49:54 -0500 Subject: [Chicago] Potential talk: Web2Py In-Reply-To: References: Message-ID: <18DC5BC0-FEFE-49E9-8F33-3295B9C91788@cs.depaul.edu> Hello Brian, I look forward to attend the meeting since this is the end of the quarter for me. :-) I'd rather listen than talk but I can fill a time slot if necessary. I have three possible topics: 1) new web2py features (listed below by Brian) 2) csvstudio (a tool for analyzing csv files and build web2py/django models from them) 3) VisIt (visualization tool from NERSC) programming in Python Let me know what (if) you are interested. Massimo On May 31, 2011, at 10:41 AM, Brian Ray wrote: > Here is a talk proposal from Massimo Di Pierro for our next Loop > meeting on updates to web2py: > > - wizard > - versioning > - digitally signed callbacks > - federated authentication > - multi-tenancy > > He could also talk about csvstudio (a utility to extract data from csv > files that work with web2py and django). > > Any interests? I imagine we can work in 20 minutes for this; although, > I have not asked how long he planned on talking. > > > > -- > > Brian Ray > (773) 669-7717 > _______________________________________________ > Chicago mailing list > Chicago at python.org > http://mail.python.org/mailman/listinfo/chicago From verisimilidude at gmail.com Tue May 31 20:39:43 2011 From: verisimilidude at gmail.com (Phil Robare) Date: Tue, 31 May 2011 13:39:43 -0500 Subject: [Chicago] Potential talk: Web2Py In-Reply-To: <18DC5BC0-FEFE-49E9-8F33-3295B9C91788@cs.depaul.edu> References: <18DC5BC0-FEFE-49E9-8F33-3295B9C91788@cs.depaul.edu> Message-ID: On Tue, May 31, 2011 at 10:49 AM, Massimo Di Pierro wrote: > ... > I can fill a time slot if necessary. > > I have three possible topics: > 1) new ?web2py features (listed below by Brian) > 2) csvstudio (a tool for analyzing csv files and build web2py/django models from them) > 3) VisIt (visualization tool from NERSC) programming in Python > > Let me know what (if) you are interested. > > Massimo I'd vote for the VisIt talk (wooh - pretty pictures) but would be happy having Massimo give any of these. I've always found his talks fun. Phil From mdipierro at cs.depaul.edu Tue May 31 20:45:27 2011 From: mdipierro at cs.depaul.edu (Massimo Di Pierro) Date: Tue, 31 May 2011 13:45:27 -0500 Subject: [Chicago] Potential talk: Web2Py In-Reply-To: References: <18DC5BC0-FEFE-49E9-8F33-3295B9C91788@cs.depaul.edu> Message-ID: On May 31, 2011, at 1:39 PM, Phil Robare wrote: > I'd vote for the VisIt talk (wooh - pretty pictures) but would be > happy having Massimo give any of these. I've always found his talks > fun. Is it my mafioso accent? ;-)