From mark at microenh.com Wed Mar 10 21:34:07 2010 From: mark at microenh.com (Mark Erbaugh) Date: Wed, 10 Mar 2010 15:34:07 -0500 Subject: [CentralOH] Files and context manager Message-ID: <077B3F36-43B9-446F-BBDC-10518D6FF5C8@microenh.com> Hi, A common idiom with older versions of Python is: x = open(filename,'rb').read() With context managers in 2.6+ you could say: with open(filename,'rb') as f: x = f.read() Is the later safer in that it explicitly will call close() whereas the former depends on the file destructor to close the file? Thanks, Mark From mark at microenh.com Wed Mar 10 21:39:19 2010 From: mark at microenh.com (Mark Erbaugh) Date: Wed, 10 Mar 2010 15:39:19 -0500 Subject: [CentralOH] Files and context manager In-Reply-To: <077B3F36-43B9-446F-BBDC-10518D6FF5C8@microenh.com> References: <077B3F36-43B9-446F-BBDC-10518D6FF5C8@microenh.com> Message-ID: <3C60935B-9162-4B9E-ADE3-D72A831398E8@microenh.com> > > A common idiom with older versions of Python is: > > x = open(filename,'rb').read() > > With context managers in 2.6+ you could say: > > with open(filename,'rb') as f: > x = f.read() > > Is the later safer in that it explicitly will call close() whereas the former depends on the file destructor to close the file? > I forgot the second half of my question. Is a function like: def getData(filename): with open(filename,'rb') as f: return f.read() a good idea? -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian.costlow at gmail.com Wed Mar 10 23:34:27 2010 From: brian.costlow at gmail.com (Brian Costlow) Date: Wed, 10 Mar 2010 17:34:27 -0500 Subject: [CentralOH] Files and context manager In-Reply-To: <3C60935B-9162-4B9E-ADE3-D72A831398E8@microenh.com> References: <077B3F36-43B9-446F-BBDC-10518D6FF5C8@microenh.com> <3C60935B-9162-4B9E-ADE3-D72A831398E8@microenh.com> Message-ID: <89d8b1b01003101434r6812d707he6ae967036f4b3c0@mail.gmail.com> Hi Mark, Yes. Although you can get that same level of safety without them. The way contexts are used with file objects in python is they are a shortcut for try: x = open(filename,'rb').read() # do stuff with x finally: x.close() If you need to do error handling though, you still need to catch exceptions. But if you are catching them farther upstream you don't need to clutter your code with try blocks just for the file open/read/close idiom. Not sure what you mean by a good idea. If you have code in a bunch of places in an app that opens and reads files by filename, of course putting that in a function is a good idea. But if you are asking, is it okay to just read a (potentially large) file into memory using read(), I do it all the time for files in the 5-35 mb range in an app that checksums images. On Wed, Mar 10, 2010 at 3:39 PM, Mark Erbaugh wrote: > > > A common idiom with older versions of Python is: > > x = open(filename,'rb').read() > > With context managers in 2.6+ you could say: > > with open(filename,'rb') as f: > x = f.read() > > Is the later safer in that it explicitly will call close() whereas the > former depends on the file destructor to close the file? > > > I forgot the second half of my question. > Is a function like: > def getData(filename): > with open(filename,'rb') as f: > ?? ? ? ? ? ? return f.read() > > a good idea? > _______________________________________________ > CentralOH mailing list > CentralOH at python.org > http://mail.python.org/mailman/listinfo/centraloh > > From brian.costlow at gmail.com Thu Mar 11 22:07:15 2010 From: brian.costlow at gmail.com (Brian Costlow) Date: Thu, 11 Mar 2010 16:07:15 -0500 Subject: [CentralOH] Fwd: Files and context manager In-Reply-To: <89d8b1b01003111255t70b98566x98415164e4e11a15@mail.gmail.com> References: <077B3F36-43B9-446F-BBDC-10518D6FF5C8@microenh.com> <3C60935B-9162-4B9E-ADE3-D72A831398E8@microenh.com> <89d8b1b01003101434r6812d707he6ae967036f4b3c0@mail.gmail.com> <89d8b1b01003111255t70b98566x98415164e4e11a15@mail.gmail.com> Message-ID: <89d8b1b01003111307r37c5c11cre334d455cdcf9313@mail.gmail.com> forgot to reply all on this..so forwarding to the group ---------- Forwarded message ---------- From: Brian Costlow Date: Thu, Mar 11, 2010 at 3:55 PM Subject: Re: [CentralOH] Files and context manager To: Mark Erbaugh On Thu, Mar 11, 2010 at 3:02 PM, Mark Erbaugh wrote: > Brian, > > Thanks for the reply. ?The point of my question was > > I guess the real point about > > x = open(filename,'rb').read() > > is that close is never called. Is that safe, just relying on the file object's destructor. Not really. If you are doing something that opens a lot of files you can get in a situation where file handles run out. This can especially bite if you handle errors somewhere upstream, and don't exit, or if you end up with circular refs somehow. Hard to debug because everything usually seems fine, but you run out of file handles. Or, in Windows, you can leave files possibly unaccessible by other apps. If it's just a command line util that opens a couple of files, does something, then exits, you can get away with it. But I don't think it's good practice. > > My second question was more about the details of context managers: > > > with open(filename,'rb') as f: > ? ? ? ?return f.read() > > What happens when a return statement terminates a context manager rather than falling off the end of the code. It doesn't need to 'fall off the end', just exit the block, which the return does. Here's some sample code that shows this. Substitute a real file path for /some/file/path, import os def foo(file_path): ? ? ? ?with open(file_path,'rb') as f: ? ? ? ? ? ? ? ?fnum = f.fileno() ? ? ? ? ? ? ? ?return (f.read(),fnum) ? ? ? ? ? ? ? ?print 'unreachable\n' contents,fid = foo('/some/file/path') os.fstat(fid) Will raise a OSError: [Errno 9] Bad file descriptor on the descriptor since it's been closed. > > Is it a shortcut for > > try: > ?x = open(filename,'rb') > ?return x.read() > finally: > ?x.close() > > Thanks, > Mark > > On Mar 10, 2010, at 5:34 PM, Brian Costlow wrote: > >> Hi Mark, >> >> Yes. Although you can get that same level of safety without them. >> >> The way contexts are used with file objects in python is they are a shortcut for >> >> try: >> ? ?x = open(filename,'rb').read() >> ? ?# do stuff with x >> finally: >> ? ?x.close() >> >> If you need to do error handling though, you still need to catch >> exceptions. But if you are catching them farther upstream you don't >> need to clutter your code with try blocks just for the file >> open/read/close idiom. >> >> Not sure what you mean by a good idea. If you have code in a bunch of >> places in an app that opens and reads files by filename, of course >> putting that in a function is a good idea. But if you are asking, is >> it okay to just read a (potentially large) file into memory using >> read(), I do it all the time for files in the 5-35 mb range in an app >> that checksums images. >> >> >> >> >> On Wed, Mar 10, 2010 at 3:39 PM, Mark Erbaugh wrote: >>> >>> >>> A common idiom with older versions of Python is: >>> >>> x = open(filename,'rb').read() >>> >>> With context managers in 2.6+ you could say: >>> >>> with open(filename,'rb') as f: >>> x = f.read() >>> >>> Is the later safer in that it explicitly will call close() whereas the >>> former depends on the file destructor to close the file? >>> >>> >>> I forgot the second half of my question. >>> Is a function like: >>> def getData(filename): >>> with open(filename,'rb') as f: >>> ? ? ? ? ? ? ?return f.read() >>> >>> a good idea? >>> _______________________________________________ >>> CentralOH mailing list >>> CentralOH at python.org >>> http://mail.python.org/mailman/listinfo/centraloh >>> >>> > > From eric at intellovations.com Thu Mar 11 22:13:00 2010 From: eric at intellovations.com (Eric Floehr) Date: Thu, 11 Mar 2010 16:13:00 -0500 Subject: [CentralOH] Fwd: Files and context manager In-Reply-To: <89d8b1b01003111307r37c5c11cre334d455cdcf9313@mail.gmail.com> References: <077B3F36-43B9-446F-BBDC-10518D6FF5C8@microenh.com> <3C60935B-9162-4B9E-ADE3-D72A831398E8@microenh.com> <89d8b1b01003101434r6812d707he6ae967036f4b3c0@mail.gmail.com> <89d8b1b01003111255t70b98566x98415164e4e11a15@mail.gmail.com> <89d8b1b01003111307r37c5c11cre334d455cdcf9313@mail.gmail.com> Message-ID: <34f468871003111313t7758016dgcc3cbdc29c66d459@mail.gmail.com> On Thu, Mar 11, 2010 at 4:07 PM, Brian Costlow wrote: > forgot to reply all on this..so forwarding to the group > > Ok, practicality wins out over academic purity of email headers. I've switched centraloh reply-to to go to the list rather than poster. We all can benefit from replies to this list...this isn't an announcement list or what-not, but a discussion board. No more forgetting to "reply-all" :-). -Eric -------------- next part -------------- An HTML attachment was scrubbed... URL: From nick.albright at gmail.com Thu Mar 11 22:17:08 2010 From: nick.albright at gmail.com (Nick Albright) Date: Thu, 11 Mar 2010 16:17:08 -0500 Subject: [CentralOH] Fwd: Files and context manager In-Reply-To: <34f468871003111313t7758016dgcc3cbdc29c66d459@mail.gmail.com> References: <077B3F36-43B9-446F-BBDC-10518D6FF5C8@microenh.com> <3C60935B-9162-4B9E-ADE3-D72A831398E8@microenh.com> <89d8b1b01003101434r6812d707he6ae967036f4b3c0@mail.gmail.com> <89d8b1b01003111255t70b98566x98415164e4e11a15@mail.gmail.com> <89d8b1b01003111307r37c5c11cre334d455cdcf9313@mail.gmail.com> <34f468871003111313t7758016dgcc3cbdc29c66d459@mail.gmail.com> Message-ID: <7ec143011003111317q487c7aadsf8cc3ea4d28e31fc@mail.gmail.com> G'Bless you E! = ) -Nick On Thu, Mar 11, 2010 at 4:13 PM, Eric Floehr wrote: > On Thu, Mar 11, 2010 at 4:07 PM, Brian Costlow wrote: > >> forgot to reply all on this..so forwarding to the group >> >> > > Ok, practicality wins out over academic purity of email headers. I've > switched centraloh reply-to to go to the list rather than poster. We all > can benefit from replies to this list...this isn't an announcement list or > what-not, but a discussion board. > > No more forgetting to "reply-all" :-). > > -Eric > > > _______________________________________________ > CentralOH mailing list > CentralOH at python.org > http://mail.python.org/mailman/listinfo/centraloh > > -- Please note that as of 1/20 I no longer have a land phone line, only my cell. -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian.costlow at gmail.com Fri Mar 12 01:49:12 2010 From: brian.costlow at gmail.com (Brian Costlow) Date: Thu, 11 Mar 2010 19:49:12 -0500 Subject: [CentralOH] Fwd: Files and context manager In-Reply-To: <34f468871003111313t7758016dgcc3cbdc29c66d459@mail.gmail.com> References: <077B3F36-43B9-446F-BBDC-10518D6FF5C8@microenh.com> <3C60935B-9162-4B9E-ADE3-D72A831398E8@microenh.com> <89d8b1b01003101434r6812d707he6ae967036f4b3c0@mail.gmail.com> <89d8b1b01003111255t70b98566x98415164e4e11a15@mail.gmail.com> <89d8b1b01003111307r37c5c11cre334d455cdcf9313@mail.gmail.com> <34f468871003111313t7758016dgcc3cbdc29c66d459@mail.gmail.com> Message-ID: <89d8b1b01003111649s5c20158awfe9dcbfbea85e356@mail.gmail.com> It's that clumsy gmail reply-all interface that got me :-( On Thu, Mar 11, 2010 at 4:13 PM, Eric Floehr wrote: > On Thu, Mar 11, 2010 at 4:07 PM, Brian Costlow > wrote: >> >> forgot to reply all on this..so forwarding to the group >> > > > Ok, practicality wins out over academic purity of email headers.? I've > switched centraloh reply-to to go to the list rather than poster.? We all > can benefit from replies to this list...this isn't an announcement list or > what-not, but a discussion board. > > No more forgetting to "reply-all" :-). > > -Eric > > From mark at microenh.com Thu Mar 18 17:36:48 2010 From: mark at microenh.com (Mark Erbaugh) Date: Thu, 18 Mar 2010 12:36:48 -0400 Subject: [CentralOH] Python Programmable PDA Message-ID: I'm thinking of replacing my Palm Z22 PDA. Are there any current PDA's where I can run Python apps? I'd like to write a couple of small database data entry type apps for tracking stuff. Thanks, Mark From josh at globalherald.net Thu Mar 18 19:46:33 2010 From: josh at globalherald.net (Joshua Kramer) Date: Thu, 18 Mar 2010 14:46:33 -0400 (EDT) Subject: [CentralOH] Python Programmable PDA In-Reply-To: References: Message-ID: There are a few tablets coming out that run Android... and if I remember correctly, there's a kit that allows you to write Android Apps in Python: http://code.google.com/p/android-scripting/ I'm not sure if there are any non-phone Android devices that also contain a hardware keyboard, however. On Thu, 18 Mar 2010, Mark Erbaugh wrote: > Date: Thu, 18 Mar 2010 12:36:48 -0400 > From: Mark Erbaugh > Reply-To: "Mailing list for Central Ohio Python User Group (COhPy)" > > To: centraloh > Subject: [CentralOH] Python Programmable PDA > > I'm thinking of replacing my Palm Z22 PDA. Are there any current PDA's where I can run Python apps? I'd like to write a couple of small database data entry type apps for tracking stuff. > > Thanks, > Mark > _______________________________________________ > CentralOH mailing list > CentralOH at python.org > http://mail.python.org/mailman/listinfo/centraloh > -- ----- http://www.globalherald.net/jb01 GlobalHerald.NET, the Smarter Social Network! (tm) From douglas.m.stanley at gmail.com Thu Mar 18 17:45:29 2010 From: douglas.m.stanley at gmail.com (Douglas Stanley) Date: Thu, 18 Mar 2010 12:45:29 -0400 Subject: [CentralOH] Python Programmable PDA In-Reply-To: References: Message-ID: nokia n800/n810/n900...not really "PDA"'s per se...in fact the 900 is a full fledged phone too I think, and a bit pricey (~$500-600). The n810/800 is reasonably priced though...but from personal experience, they're a bit heavy (actual weight). Not something you want in your pocket all day. Android phones have the ASE (android scripting environment). Are the zaurus' (zaurii) still around? I'd love to see a hackable small device/pda that runs python well. For now, android phone is my fav (just don't try editing a large script with the virtual keyboard). Doug On Thu, Mar 18, 2010 at 12:36 PM, Mark Erbaugh wrote: > I'm thinking of replacing my Palm Z22 PDA. Are there any current PDA's where I can run Python apps? ?I'd like to write a couple of small database data entry type apps for tracking stuff. > > Thanks, > Mark > _______________________________________________ > CentralOH mailing list > CentralOH at python.org > http://mail.python.org/mailman/listinfo/centraloh > -- Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html From eric at intellovations.com Thu Mar 18 23:50:51 2010 From: eric at intellovations.com (Eric Floehr) Date: Thu, 18 Mar 2010 18:50:51 -0400 Subject: [CentralOH] Python One-Line web server Message-ID: <34f468871003181550i45f41709h439d0ddd3606c3e@mail.gmail.com> Saw this on "Top Ten One-Liners From CommandLineFu Explained": http://www.catonmat.net/blog/top-ten-one-liners-from-commandlinefu-explained/ If you want a simple web server to serve up the documents in a particular directory, for testing or whatever, you can simply do: # python -m SimpleHTTPServer It will attach to port 80 on all interfaces (not just localhost). You can specify the port by appending the port like: # python -m SimpleHTTPServer 8080 You can do this yourself so long as your module is on the PYTHONPATH and your module does something when run in that manner. You can do that by having the following in your file: if __name__ == '__main__': ...stuff to do (oftentimes it's call a function)... The special variable __name__ is usually set to the name of the module (i.e. "SimpleHTTPServer"). However, when started from the command line, the module works as if it was imported (all initialization code runs, etc.) but the __name__ variable is set to "__main__". If the PYTHONPATH is not set, it is generally the current directory and the standard python library directory (like /usr/lib/python2.6). Also, if you want to execute a python file in the current directory, you don't need the "-m". Without the -m, the python interpreter will execute a file, not a module. Best Regards, Eric -------------- next part -------------- An HTML attachment was scrubbed... URL: From eric at intellovations.com Fri Mar 19 19:54:22 2010 From: eric at intellovations.com (Eric Floehr) Date: Fri, 19 Mar 2010 14:54:22 -0400 Subject: [CentralOH] Google's Python Class Message-ID: <34f468871003191154r1fc9e039ge7765b750d96ad4a@mail.gmail.com> Google uses Python quite a bit, and they have a training class for its employees who are unfamiliar with it. Google has generously made the class training and material available for all. Here is the description: Welcome to Google's Python Class -- this is a free class for people with a little bit of programming experience who want to learn Python. The class includes written materials, lecture videos, and lots of code exercises to practice Python coding. These materials are used within Google to introduce Python to people who have just a little programming experience. The first exercises work on basic Python concepts like strings and lists, building up to the later exercises which are full programs dealing with text files, processes, and http connections. The class is geared for people who have a little bit of programming experience in some language, enough to know what a "variable" or "if statement" is. Beyond that, you do not need to be an expert programmer to use this material. The link to the course is here: http://code.google.com/edu/languages/google-python-class/ Best Regards, Eric -------------- next part -------------- An HTML attachment was scrubbed... URL: From eric at intellovations.com Wed Mar 24 22:16:24 2010 From: eric at intellovations.com (Eric Floehr) Date: Wed, 24 Mar 2010 17:16:24 -0400 Subject: [CentralOH] Volunteers Needed for May Meeting Message-ID: <34f468871003241416x3caec870s11f9ac472652ea33@mail.gmail.com> All, I would like to do something different for our May meeting in two months. Instead of a single speaker, I'd like to have a laptops-open, hands-on meeting. Basically, I'd like two to five volunteers to walk through a Python component (library, module, third-party API, etc.) from the basics to a program that does something. It doesn't have to be anything fancy, but by the end someone should have gotten their feet wet and understand how to use that particular component. It could be a component you are very familiar with and use often, or a cool component you have discovered, or, one that you'd like to learn more about (getting together a short talk to teach someone else is often the best way to learn!). Some examples of the types of things that could be interesting: 1. Using lxml or BeautifulSoup or etc. to scrape a web page 2. Creating a TwitterBot 3. Creating a UI that graphs some data 4. ??? The goal would be to work up to the app, so that when done, the audience would feel comfortable taking the next step with the app...so a little more than just a line-by-line explanation of the app. Suggestions? Anyone interested? Best Regards, Eric From miles.groman at gmail.com Thu Mar 25 01:27:55 2010 From: miles.groman at gmail.com (m g) Date: Wed, 24 Mar 2010 20:27:55 -0400 Subject: [CentralOH] Volunteers Needed for May Meeting In-Reply-To: <34f468871003241416x3caec870s11f9ac472652ea33@mail.gmail.com> References: <34f468871003241416x3caec870s11f9ac472652ea33@mail.gmail.com> Message-ID: Im about halfway through that Learning Python book, so I am sure I can come up with something. From ericlake at gmail.com Thu Mar 25 02:45:22 2010 From: ericlake at gmail.com (Eric Lake) Date: Wed, 24 Mar 2010 21:45:22 -0400 Subject: [CentralOH] Volunteers Needed for May Meeting In-Reply-To: <34f468871003241416x3caec870s11f9ac472652ea33@mail.gmail.com> References: <34f468871003241416x3caec870s11f9ac472652ea33@mail.gmail.com> Message-ID: <4BAAC032.2060109@gmail.com> On 03/24/2010 05:16 PM, Eric Floehr wrote: > All, > > I would like to do something different for our May meeting in two > months. Instead of a single speaker, I'd like to have a laptops-open, > hands-on meeting. Basically, I'd like two to five volunteers to walk > through a Python component (library, module, third-party API, etc.) > from the basics to a program that does something. It doesn't have to > be anything fancy, but by the end someone should have gotten their > feet wet and understand how to use that particular component. > > It could be a component you are very familiar with and use often, or a > cool component you have discovered, or, one that you'd like to learn > more about (getting together a short talk to teach someone else is > often the best way to learn!). Some examples of the types of things > that could be interesting: > > 1. Using lxml or BeautifulSoup or etc. to scrape a web page > 2. Creating a TwitterBot > 3. Creating a UI that graphs some data > 4. ??? > > The goal would be to work up to the app, so that when done, the > audience would feel comfortable taking the next step with the app...so > a little more than just a line-by-line explanation of the app. > > Suggestions? Anyone interested? > > Best Regards, > Eric > _______________________________________________ > CentralOH mailing list > CentralOH at python.org > http://mail.python.org/mailman/listinfo/centraloh If only I lived in Ohio :/ Please post how this turns out. I may see if I can replicate it within my LUG. -- Thanks. Eric Lake -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 899 bytes Desc: OpenPGP digital signature URL: From nludban at osc.edu Thu Mar 25 17:50:45 2010 From: nludban at osc.edu (Neil Ludban) Date: Thu, 25 Mar 2010 12:50:45 -0400 Subject: [CentralOH] Volunteers Needed for May Meeting In-Reply-To: <34f468871003241416x3caec870s11f9ac472652ea33@mail.gmail.com> References: <34f468871003241416x3caec870s11f9ac472652ea33@mail.gmail.com> Message-ID: <2D8C93C5-4F39-47F9-BB4D-57039516DF46@osc.edu> On Mar 24, 2010, at 5:16 PM, Eric Floehr wrote: > > I would like to do something different for our May meeting in two > months. Instead of a single speaker, I'd like to have a laptops-open, > hands-on meeting. Basically, I'd like two to five volunteers to walk > through a Python component (library, module, third-party API, etc.) > from the basics to a program that does something. It doesn't have to > be anything fancy, but by the end someone should have gotten their > feet wet and understand how to use that particular component. Any interest in "Network Programming the Hard Way" using socket, os, select, and threading? Basically just translating some of the examples from Stevens' APUE and Unix Network Programming books from C to Python, although I can't guarantee everything would work under Windows given my other time commitments. From mark at microenh.com Thu Mar 25 18:51:33 2010 From: mark at microenh.com (Mark Erbaugh) Date: Thu, 25 Mar 2010 13:51:33 -0400 Subject: [CentralOH] Volunteers Needed for May Meeting In-Reply-To: <34f468871003241416x3caec870s11f9ac472652ea33@mail.gmail.com> References: <34f468871003241416x3caec870s11f9ac472652ea33@mail.gmail.com> Message-ID: On Mar 24, 2010, at 5:16 PM, Eric Floehr wrote: > All, > > I would like to do something different for our May meeting in two > months. Instead of a single speaker, I'd like to have a laptops-open, > hands-on meeting. Basically, I'd like two to five volunteers to walk > through a Python component (library, module, third-party API, etc.) > from the basics to a program that does something. It doesn't have to > be anything fancy, but by the end someone should have gotten their > feet wet and understand how to use that particular component. > > It could be a component you are very familiar with and use often, or a > cool component you have discovered, or, one that you'd like to learn > more about (getting together a short talk to teach someone else is > often the best way to learn!). Some examples of the types of things > that could be interesting: > > 1. Using lxml or BeautifulSoup or etc. to scrape a web page > 2. Creating a TwitterBot > 3. Creating a UI that graphs some data > 4. ??? > > The goal would be to work up to the app, so that when done, the > audience would feel comfortable taking the next step with the app...so > a little more than just a line-by-line explanation of the app. > > Suggestions? Anyone interested? > > Best Regards, > Eric When is the May meeting? I'm unavailable through the 16th, but assuming the meeting is later in the month, I could present something on using SQLAlchemy and SQLITE3. Mark From rtfm at columbus.rr.com Thu Mar 25 19:33:54 2010 From: rtfm at columbus.rr.com (Mike Schoenborn) Date: Thu, 25 Mar 2010 14:33:54 -0400 Subject: [CentralOH] Volunteers Needed for May Meeting In-Reply-To: <2D8C93C5-4F39-47F9-BB4D-57039516DF46@osc.edu> References: <34f468871003241416x3caec870s11f9ac472652ea33@mail.gmail.com> <2D8C93C5-4F39-47F9-BB4D-57039516DF46@osc.edu> Message-ID: <1269542034.13001.3.camel@egg> On Thu, 2010-03-25 at 12:50 -0400, Neil Ludban wrote: > Any interest in "Network Programming the Hard Way" using socket, > os, select, and threading? Absolutely. The "batteries NOT included" approach always catches my attention. From eric at intellovations.com Fri Mar 26 14:29:29 2010 From: eric at intellovations.com (Eric Floehr) Date: Fri, 26 Mar 2010 09:29:29 -0400 Subject: [CentralOH] PyMOTW turns 3 Message-ID: <34f468871003260629l42a48de3qee2644d5d65541b7@mail.gmail.com> http://blog.doughellmann.com/2010/03/pymotw-turns-3.html "The Python Module of the Week series started March 25, 2007 as a personal challenge to learn more about the Python standard library. Since that time, it has grown into something bigger than I ever expected. The series now includes 149 articles with example code showing how to use different parts of the Python standard library. The latest release of the collection includes examples for 119 modules and the PDF version spans 670 pages." The PDF can be downloaded here: http://www.doughellmann.com/PyMOTW/PyMOTW-1.117.pdf Best Regards, Eric From scott.scites at railcar88.com Sat Mar 27 15:20:11 2010 From: scott.scites at railcar88.com (Scott Scites) Date: Sat, 27 Mar 2010 10:20:11 -0400 Subject: [CentralOH] CentralOH Digest, Vol 35, Issue 7 In-Reply-To: References: Message-ID: Eric and All, Additionally, I noticed Brian Jones (@bkjones) is starting a PyTPMOTW series for third party python apps. http://www.protocolostomy.com/2010/03/26/pytpmotw-first-post/ Also, there is a new podcast coming soon from our Python brothers at clepy, Dave Stanek (@dstanek), Chris Miller (@codeshaman) and Mike Crute (@mcrute) called, "From Python Import Podcast": http://www.unquietdesperation.com/2010/03/24/from-python-import-podcast/ Exciting times! Scott Scites -------------- next part -------------- An HTML attachment was scrubbed... URL: From amonroe at columbus.rr.com Sun Mar 28 17:25:15 2010 From: amonroe at columbus.rr.com (R. Alan Monroe) Date: Sun, 28 Mar 2010 11:25:15 -0400 Subject: [CentralOH] http://pyweek.org/10/ Message-ID: <196349904005.20100328112515@columbus.rr.com> http://pyweek.org/10/ begins today, Sun Mar 28. Alan From miles.groman at gmail.com Mon Mar 29 15:56:49 2010 From: miles.groman at gmail.com (m g) Date: Mon, 29 Mar 2010 09:56:49 -0400 Subject: [CentralOH] CentralOH Digest, Vol 35, Issue 7 In-Reply-To: References: Message-ID: Clever podcast name, I like On Sat, Mar 27, 2010 at 10:20 AM, Scott Scites wrote: > Eric and All, > Additionally, I noticed Brian Jones (@bkjones) is starting a PyTPMOTW series > for third party python apps. > http://www.protocolostomy.com/2010/03/26/pytpmotw-first-post/ > Also, there is a new podcast coming soon from our Python brothers at clepy, > Dave Stanek (@dstanek), Chris Miller (@codeshaman) and Mike Crute (@mcrute) > called, "From Python Import Podcast": > http://www.unquietdesperation.com/2010/03/24/from-python-import-podcast/ > Exciting times! > Scott Scites > > _______________________________________________ > CentralOH mailing list > CentralOH at python.org > http://mail.python.org/mailman/listinfo/centraloh > > From godber at gmail.com Tue Mar 30 05:03:12 2010 From: godber at gmail.com (Austin Godber) Date: Mon, 29 Mar 2010 21:03:12 -0600 Subject: [CentralOH] Great Meeting, Python Koans Message-ID: <50c31cc41003292003t51a7416fw844a77440853b30@mail.gmail.com> Hello Everyone, I wanted to send and email saying that tonights meeting was great and I look forward to the next one I can attend. Also, I wanted to ask Greg, if he's on the list, what the URL to his python koans are, but then I thought to google it and found it here: http://bitbucket.org/gregmalcolm/python_koans/overview/ for those interested in trying them. Hopefully I will see everyone next month. Austin -------------- next part -------------- An HTML attachment was scrubbed... URL: From miles.groman at gmail.com Tue Mar 30 15:21:21 2010 From: miles.groman at gmail.com (m g) Date: Tue, 30 Mar 2010 09:21:21 -0400 Subject: [CentralOH] Great Meeting, Python Koans In-Reply-To: <50c31cc41003292003t51a7416fw844a77440853b30@mail.gmail.com> References: <50c31cc41003292003t51a7416fw844a77440853b30@mail.gmail.com> Message-ID: I agree, one of the best meetings we have had. From wm.melvin at gmail.com Wed Mar 31 16:15:04 2010 From: wm.melvin at gmail.com (William Melvin) Date: Wed, 31 Mar 2010 10:15:04 -0400 Subject: [CentralOH] Resolver One Message-ID: If you're interested in a Python-powered spreadsheet you might want check out Resolver One. They're having a special today. http://www.resolversystems.com "On 31 March, for one day only, we are selling full commercial licenses for Resolver One 1.8 for $40..." Found out about this via a RT from one of the Resolver Systems devs, Michael Foord http://twitter.com/voidspace I've been wanting to check this out since I heard about it in an interview with Michael on the Hanselminutes podcast. http://www.hanselminutes.com/default.aspx?showID=177 -Bill Melvin From eric at intellovations.com Wed Mar 31 20:23:43 2010 From: eric at intellovations.com (Eric Floehr) Date: Wed, 31 Mar 2010 14:23:43 -0400 Subject: [CentralOH] Python Teaching Volunteers Needed Message-ID: John Langkals of Explorers Post 891 asked me to forward this request on. His organization is looking for OSU students or others who would be interested in teaching High School students Python. They meet at OSU Hitchcock Hall every Wednesday from 7pm to 9:30pm. Instructors can go early as needed. If you are interested you can contact John at: 327.3732 or langkals.1 at osu.edu More details from John follow: Over the past thirty years we have been involved in an outstanding career educational organization open to area high school students. We would like to approach the OSU Open Source Club and the Central Ohio Python Users Group with the possibility of finding a few individuals interested in volunteering teaching Python to area high school students. We are currently hosted by the OSU Department of Engineering and have access to a computer lab. As a computer post, our teaching focuses on the UNIX operating system. The first class series, Beginning Unix, is an introduction to navigating the command line and Bash shell scripting. Then there is an end-of-class exam the students must pass in order to continue. The second class series is usually systems administration, web design, or a programming class like Java. In the past, we have held a microprocessors, C programming, ruby, and other classes. After the introductory program, class selection is a very interactive process, with the students providing input on topics they would like to learn. In the past, the students were interested in learning basic robotics and game programming. Our post usually meets every Wednesday from 7 to 9:30pm. It's an awesome time and a lot of fun for an outstanding cause. Let me know what you think. Thank you, John From eric at intellovations.com Wed Mar 31 20:34:31 2010 From: eric at intellovations.com (Eric Floehr) Date: Wed, 31 Mar 2010 14:34:31 -0400 Subject: [CentralOH] PyOhio 2010! Message-ID: All, PyOhio 2010 planning is kicking into gear. If anyone is interested in helping out (as little or as much as you'd like) please let me know! There is a Staff page at the wiki: http://wiki.python.org/moin/PyOhio/Staff if there are particular areas or interests or skills you'd like to volunteer. Even if a box is filled, if you are interested there will be things for you to help with. PyOhio was a resounding success last year, attracting folks from throughout the Midwest. Additionally, the official call for talks will go out tomorrow, so if you are interested in submitting a talk proposal, leading/organizing a panel discussion, or teaching a segment of a beginner's track, start thinking about what you'd like to do. Please let me know if you are interested in helping out. Or, if you are interested in attending PyOhio, make sure you are a subscriber to the PyOhio mailing list: http://mail.python.org/mailman/listinfo/pyohio There you will receive announcements, notices, and other info about the PyOhio conference. Best Regards, Eric From eric at intellovations.com Wed Mar 31 20:44:26 2010 From: eric at intellovations.com (Eric Floehr) Date: Wed, 31 Mar 2010 14:44:26 -0400 Subject: [CentralOH] COhPy May Meeting Message-ID: All, The May meeting of COhPy will be a "hands-on" meeting, with a few 20 minute zero-to-simple-working-app presentations on various topics. The meeting will be on Monday, May 24. We've had three volunteers to present. If you are interested, but haven't yet emailed, please do! If it turns out well, we'll certainly do it again! Here are the topics that have been proposed: Miles Groman -- something Neil Ludban -- Network Programming the Hard Way Mark Erbaugh -- SQLAlchemy and SQLITE3 Did I miss anyone? If not, this will be our lineup, which looks really strong. Best Regards, Eric