From hcharnaw at vmware.com Tue May 1 20:44:08 2007 From: hcharnaw at vmware.com (Hayley Charnaw (c)) Date: Tue, 1 May 2007 11:44:08 -0700 Subject: [Baypiggies] VMware - Seeking Python Engineer Message-ID: <040EC1DE5CE40647A1E7BEECD85F62CB06D180A6@PA-EXCH04.vmware.com> Python Software Engineer - ESX Installation and Update Management Location: Palo Alto, CA VMware Inc., a pioneer in virtualization software for industry-standard computers, is seeking a software engineer with strong distributed systems, client-server and scalable applications development experience. ESX server is a robust, production-proved virtualization layer than abstracts processor, memory, storage and networking resources into multiple virtual machines. ESX Server delivers the highest levels of performance, scalability and flexibility required for enterprise IT environments. This R&D position resides in our Core Technologies Group and will be a part of our Kernel Applications Group. This is open source software. The engineer in this role will gain exposure to many parts of our core OS and our applications. As a result of this exposure, he/she will interface with many groups in and outside of R&D. This is an extremely visible role, at VMware we strive to make our user experience seamless. This is an opportunity to work with the best and brightest in the industry. Responsibilities: This position's primary role is in the design and implementation of Open Source software for ESX installation, deployment and distribution. Work will involve interaction with product management and will require work with releases of new operating system versions, driver updates, and building Red Hat Package Management (RPM) packages. Most of the coding will be in done in Python with some limited use of Perl and C. Requirements: BS in Computer Science or equivalent. Fluent in Python. Experience in Linux administration and configuration. Experience with RPMs. Experience building a Linux distribution or Linux rescue disk is preferred. C and C++ programming is desired. Experience with signature verification (GPG, Checksums) desired Experience with GTK or Glade a plus. Experience with YUM a plus. Interested parties please contact Hayley Charnaw hcharnaw at vmware.com or 650-475-5377 Hayley Charnaw Recruiter, R&D 650-475-5377 Direct Let's Connect! http://www.linkedin.com/in/hayleycharnaw -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/baypiggies/attachments/20070501/eee1d7e5/attachment.htm From jjinux at gmail.com Wed May 2 01:10:02 2007 From: jjinux at gmail.com (Shannon -jj Behrens) Date: Tue, 1 May 2007 16:10:02 -0700 Subject: [Baypiggies] VMware - Seeking Python Engineer In-Reply-To: <040EC1DE5CE40647A1E7BEECD85F62CB06D180A6@PA-EXCH04.vmware.com> References: <040EC1DE5CE40647A1E7BEECD85F62CB06D180A6@PA-EXCH04.vmware.com> Message-ID: Hi Hayley, Sorry, but we do not permit recruiters to post to this mailing list. Please refer to http://www.baypiggies.net/jobs.html. Your best bet is to write the email and then have one of the hiring managers (an engineer) send it. Otherwise, a pack of wild Python programmers will hunt me down and flame me to death for not doing my duty of protecting this mailing list ;) Thanks! -jj On 5/1/07, Hayley Charnaw (c) wrote: > Python Software Engineer ? ESX Installation and Update Management > > Location: Palo Alto, CA > > > > VMware Inc., a pioneer in virtualization software for industry-standard > computers, is seeking a software engineer with strong distributed systems, > client-server and scalable applications development experience. ESX server > is a robust, production-proved virtualization layer than abstracts > processor, memory, storage and networking resources into multiple virtual > machines. ESX Server delivers the highest levels of performance, > scalability and flexibility required for enterprise IT environments. > > This R&D position resides in our Core Technologies Group and will be a part > of our Kernel Applications Group. This is open source software. The > engineer in this role will gain exposure to many parts of our core OS and > our applications. As a result of this exposure, he/she will interface with > many groups in and outside of R&D. This is an extremely visible role, at > VMware we strive to make our user experience seamless. This is an > opportunity to work with the best and brightest in the industry. > > Responsibilities: > This position's primary role is in the design and implementation of Open > Source software for ESX installation, deployment and distribution. Work will > involve interaction with product management and will require work with > releases of new operating system versions, driver updates, and building Red > Hat Package Management (RPM) packages. Most of the coding will be in done in > Python with some limited use of Perl and C. > > Requirements: > BS in Computer Science or equivalent. > Fluent in Python. > Experience in Linux administration and configuration. > Experience with RPMs. > Experience building a Linux distribution or Linux rescue disk is preferred. > C and C++ programming is desired. > > Experience with signature verification (GPG, Checksums) desired > Experience with GTK or Glade a plus. > Experience with YUM a plus. > > > > > > Interested parties please contact Hayley Charnaw hcharnaw at vmware.com or > 650-475-5377 > > Hayley Charnaw > Recruiter, R&D > > > 650-475-5377 Direct > > Let's Connect! > > http://www.linkedin.com/in/hayleycharnaw -- http://jjinux.blogspot.com/ From jjinux at gmail.com Wed May 2 18:22:09 2007 From: jjinux at gmail.com (Shannon -jj Behrens) Date: Wed, 2 May 2007 09:22:09 -0700 Subject: [Baypiggies] VMware - Seeking Python Engineer In-Reply-To: <20070502155258.GA12854@panix.com> References: <040EC1DE5CE40647A1E7BEECD85F62CB06D180A6@PA-EXCH04.vmware.com> <20070502155258.GA12854@panix.com> Message-ID: On 5/2/07, Aahz wrote: > On Tue, May 01, 2007, Shannon -jj Behrens wrote: > > > > Sorry, but we do not permit recruiters to post to this mailing list. > > Please refer to http://www.baypiggies.net/jobs.html. Your best bet is > > to write the email and then have one of the hiring managers (an > > engineer) send it. Otherwise, a pack of wild Python programmers will > > hunt me down and flame me to death for not doing my duty of protecting > > this mailing list ;) > > Hrm. I thought in-house recruiters were fine, as they are considered > part of the principals doing the hiring. Hayley, I apologize. I was slightly unclear on the details. It says, "Principals only, no recruiters. We prefer ads to come from technical people to make it easier to get questions answered." It sounds like you qualify as a "principal". Best Regards, -jj -- http://jjinux.blogspot.com/ From bsergean at gmail.com Fri May 4 17:10:23 2007 From: bsergean at gmail.com (Benjamin Sergeant) Date: Fri, 4 May 2007 08:10:23 -0700 Subject: [Baypiggies] newbies night newbies In-Reply-To: References: <55dc209b0704220906t4c91345bt9fbc06a7671e84cb@mail.gmail.com> Message-ID: <1621f9fa0705040810s817ecf7ud3d4d9720d20364c@mail.gmail.com> Some cents to give people the will to learn python: add a link to the python challenge on the slides on the newbies night: It's really important for me to have your hands on something when learning a new langage. The riddles are a good exemple. http://www.pythonchallenge.com/ Another good idea (to me), is to show how to recode a historical program (coreutils, etc ...) in a few line (or maybe more) of code. One of the good example is the wget.py from Guido. Maybe this will be more attractive to Unix / Linux users thought. Find area where for other langage it's really a hassle to program (if you don't use third party), like: - Looping, iterating, working with containers. Differentiate the horror that is to learn the C++ STL syntax as opposed to the for i in a: - garbage collecting. Explain that the memory leak hunting does not exist in python. - And for last the pain to deal with string in C or C++ (the prehistorical function like strcat, dealing with unicode and the ugly wcstr ... functions). The comparaison could be: for point A, 2 lines for python, 6 lines for C, etc ... Benjamin. From jjinux at gmail.com Fri May 4 20:01:03 2007 From: jjinux at gmail.com (Shannon -jj Behrens) Date: Fri, 4 May 2007 11:01:03 -0700 Subject: [Baypiggies] newbies night newbies In-Reply-To: <1621f9fa0705040810s817ecf7ud3d4d9720d20364c@mail.gmail.com> References: <55dc209b0704220906t4c91345bt9fbc06a7671e84cb@mail.gmail.com> <1621f9fa0705040810s817ecf7ud3d4d9720d20364c@mail.gmail.com> Message-ID: On 5/4/07, Benjamin Sergeant wrote: > Some cents to give people the will to learn python: add a link to the > python challenge on the slides on the newbies night: > It's really important for me to have your hands on something when > learning a new langage. The riddles are a good exemple. > > http://www.pythonchallenge.com/ > > Another good idea (to me), is to show how to recode a historical > program (coreutils, etc ...) in a few line (or maybe more) of code. > One of the good example is the wget.py from Guido. > Maybe this will be more attractive to Unix / Linux users thought. > > Find area where for other langage it's really a hassle to program (if > you don't use third party), like: > > - Looping, iterating, working with containers. Differentiate the > horror that is to learn the C++ STL syntax as opposed to the for i in > a: > - garbage collecting. Explain that the memory leak hunting does not > exist in python. > - And for last the pain to deal with string in C or C++ (the > prehistorical function like strcat, dealing with unicode and the ugly > wcstr ... functions). > > The comparaison could be: for point A, 2 lines for python, 6 lines for > C, etc ... I agree with everything above, except the bit about PythonChallenge. I like to think that I'm a pretty good Python programmer, but that challenge drove me nuts because I could never figure out what it was trying to get me to do! ;) Oh well, -jj -- http://jjinux.blogspot.com/ From vnarayan at intelleflex.com Sat May 5 04:38:14 2007 From: vnarayan at intelleflex.com (Vishwa Narayan) Date: Fri, 4 May 2007 19:38:14 -0700 Subject: [Baypiggies] Seeking consultant to develop GUI test tool for RFID reader Message-ID: Hello, I am looking for a Python expert to develop a GUI test tool that will: * connect to TCP/IP enabled RFID readers; send commands over socket connections to reader, receive responses from reader * reader receives commands and sends data via XML; use XML parser to interpret * set up test cases from the GUI (e.g., set reader settings such as transmit power, antenna select, or loop thru reader parameters such as transmit power levels) * define test routine, such as number of times to read tag, or time at which to read tag, etc., * receive response from reader, filter and sort if needed, and save to files on local host; save test settings on local host so that they may be reloaded * assign tag IDs (reported by reader) to objects such as a name, or an icon file, and display this instead of tag ID * interactively change "skin" of GUI (e.g., title page look and feel) There is extensive C++ code available that may be borrowed from to do some of the above tasks (such as interacting with the reader, for example). Guesstimate that this is a 20 to 60 hour job. Scope can be increased 2X. Requirement is immediate. Please call or e-mail me. Weekend calls OK. Thank you Vishwa Vishwa Narayan Intelleflex Corp - the intelligent RFID platform company 2465 Augustine Dr., Suite 102, Santa Clara, CA 95054 W: 408-200-6500 F: 408-200-6599 M: 972 369 901 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/baypiggies/attachments/20070504/87477286/attachment.html From kenobi at gmail.com Mon May 7 17:58:13 2007 From: kenobi at gmail.com (Rick Kwan) Date: Mon, 7 May 2007 08:58:13 -0700 Subject: [Baypiggies] Python intro for scientists and engineers Message-ID: While we're talking about newbies, this fits in for a particular class of them... The May/June 2007 issue of Computing in Science & Engineering (CiSE) is devoted to "Python: Batteries Included". CiSE is a peer-reviewed joint publication of the IEEE Computer Society and the American Institute of Physics. The two lead articles (by Dubois and Oliphant) are posted at http://computer.org/cise. Actually, years ago, it was because of this publication that I became aware of Python for scientific computing, and started exploring it as an alternative to other languages. I was stunned to find Numerical Python, Numarray, and finally Matplotlib (http://matplotlib.sourceforge.net) which produces some really nice graphs. From jim at well.com Mon May 7 18:11:03 2007 From: jim at well.com (jim stockford) Date: Mon, 7 May 2007 09:11:03 -0700 Subject: [Baypiggies] Python: bayPIGgies newbies night this Thursday Message-ID: remember to bring a friend this Thursday. Note that the program is a little different from that described on the website: just Alex Martelli presenting the first half of his Python for Programmers talk, with time enough for questions and answers. Thanks again to Tony for this suggestion. below is the text I sent out to various local user groups: Overview of the Python Programming Language, Part 1 On May 10 at Google, bayPIGgies features Newbies Night, part one. Alex Martelli will present the first half of his Python for Programmers talk, with time for questions and answers. The talk presents an overview of current features of the Python programming language. This "newbie night" talk is suitable for people who already have programming experience in other languages. Those who are entirely new to programming are welcome, but are warned--the talk presumes familiarity with programming concepts. Newbies Night, part two, will be held on Thursday, July 12, when Alex will present the second half of his talk. BayPIGgies is the Bay area Python Interest Group. BayPIGgies holds its meetings on the 2nd Thursday of every month from 7:30 PM - 9 PM at Google 1600 Amphitheatre Pkwy, Mtn View 94043 Bldg 43, Tunis room If you plan to attend, try to sign up on the wiki at http://wiki.python.org/moin/BayPiggiesGoogleMeetings and you'll have a badge waiting for you. Otherwise, you're welcome but you'll have to register at the door (come a little early to allow time). Join the BayPIGgies mailing list at http://mail.python.org/mailman/listinfo/baypiggies From dave at krondo.com Tue May 8 03:38:52 2007 From: dave at krondo.com (Dave Peticolas) Date: Mon, 07 May 2007 18:38:52 -0700 Subject: [Baypiggies] python job Message-ID: <463FD4AC.50802@krondo.com> I'm a programmer at Lucasfilm, they have a python position open right now: Position Title: Information Systems /Tools Programmer (Python) Job Number: LCL00233 Department: Software Development Reports To: Director, Information Systems Division: Lucasfilm Entertainment Company Ltd. Location: San Francisco, CA Summary: Develops tools and applications to assist productions and CG Resources in managing resources, render processes and CG assets. Provides support to individuals and groups using these tools. Primary Responsibilities: Improves, develops, tests, maintains, and documents script libraries and large-scale applications for use by CG Resources and ILM Productions. Develops and distributes new systems and script releases and maintains relevant versions and libraries; assists with and follows up on integration. Receives requests and changes from Resources and Productions. Performs analysis, develops and integrates these changes into existing scripts and applications. Troubleshoots specific tools/applications issues with users and provides guidelines and assistance for all new development occurring outside the department. Education, Experience and Skills: Bachelor's degree in Computer Science or other technical degree with 4-6 years experience in a professional software development environment required. Demonstrated ability to serve as an effective contributor on mid to large scale development projects. Proficient in UNIX. Python experience required. Shell and scripting language such as TCL or perl WBN. Experience with computer graphics production a plus. SQL and database experience a must. Familiar with software development and Quality Assurance practices. Good communication and organization skills. To Apply: If you or someone you know is interested in this position, please visit http://www.lucasfilm.com/employment/jobs or submit a resume directly at http://www.lucasfilm.com/employment/apply. From mrbmahoney at gmail.com Tue May 8 02:56:08 2007 From: mrbmahoney at gmail.com (Brian Mahoney) Date: Mon, 7 May 2007 17:56:08 -0700 Subject: [Baypiggies] Dinner Announcement - Thursday, May 10, 6 pm Message-ID: <5538c19b0705071756m7258d7cm2a09d97ed4c346c1@mail.gmail.com> For Thursday, May 10, I can coordinate a pre-meeting dinner in Mountain View, before the BayPIGgies meeting at Google . Restaurant reservations may be sent to my email until Thursday afternoon (earlier is better). We eat family-style, there are vegetarian and non-vegetarian dishes. Cost around $10 per person, including tax and tip. Bring cash, please. Start dinner at 6pm and I will keep things moving so that we finish and get everyone headed towards Google to complete sign-in before the 7:30 meeting start. The restaurant is Cafe Yulong in downtown Mountain View (650) 960-1677 743 W Dana Street, 1/2 block from Castro where Books, Inc is on the corner. Parking lots all around, but downtown Mountain View parking is still difficult. It is a slightly out of the ordinary Chinese restaurant. This link has a downtown map and additional information. http://www.mountainviewca.net/restaurants/cafeyulong.html I've made reservations under "Python" for 6pm Thursday. If you wish to join us for dinner please e-mail me by 3 pm Thursday (earlier is better) so I may confirm the headcount. From Trisha.Buendia at dreamworks.com Wed May 9 00:16:34 2007 From: Trisha.Buendia at dreamworks.com (Buendia, Trisha) Date: Tue, 8 May 2007 15:16:34 -0700 Subject: [Baypiggies] DreamWorks Animation Hiring - Technology Positions - 5/8/07 Message-ID: <3D0ED99268547D4F90B09EED37878873074F6B7D@megaera.pdi.com> DreamWorks Animation is hiring! Positions are located at both of our California studios: *Redwood City (San Francisco Bay area) *Glendale (Los Angeles area) TO APPLY: Please paste/copy resume in the body of an email and send to jobs at dreamworks.com . (DO NOT HIT REPLY TO THIS ADDRESS) Please do not send attachments due to virus concerns. Shrek us out at www.dreamworksanimation.com for more detailed job descriptions and studio information. CURRENT OPEN POSITIONS Production (Python) Engineer (Glendale & Redwood City) The Production Engineering group designs, implements, and maintains software that "glues" together the software and data used in the creation of animated feature films. Production engineers understand the entire computer animation process and use that knowledge to develop the DreamWorks global animation pipeline. We are seeking a highly motivated person with experience in both software development and in computer animation production. Software Infrastructure Engineer - Python Lead (Glendale) DreamWorks Animation is looking for an experienced software engineer with a strong background in developing python libraries and python interfaces for C and C++ libraries. Responsibilities will include developing core python libraries, leading the effort of porting tools written in our proprietary scripting language to python, expanding python interfaces for internally developed C and C++ libraries, and providing guidance/training for development teams to create and maintain python interfaces. This engineer will interact closely with technical production teams; good communication skills and an attention to detail are essential. R&D Manager (Redwood City) The R&D Manager is responsible for leading the overall operational direction, goals, and strategies of the software group. A desire to keep abreast of developments and new technologies in the field, and an ability to nurture and promote technical creativity at PDI/DreamWorks are a must. The position affords immersion with projects from the pre-production stage through project delivery. Software Engineer - Animation Tools (Glendale & Redwood City) DreamWorks Animation is looking for an experienced software engineer to join the development team responsible for the company's proprietary character animation tools. Responsibilities will include a mix of developing new systems, maintaining existing tools, and supporting artists in their production tasks. This engineer will interact closely with animators and technical users to help establish the direction for these tools. Attention to detail and good communication skills are essential. Software Engineer - Core Libraries (Glendale & Redwood City) DreamWorks Animation is looking for an experienced software engineer with strong background in core library development. Responsibilities include interacting closely with application and production engineers to support and enhance core libraries and APIs common to many applications used in our feature animation pipeline. Additional responsibilities involve helping establish long term technical direction surrounding these libraries, object models and interfaces. Attention to detail and good communication skills are essential. Software Engineer - Rigging (Glendale & Redwood City) DreamWorks Animation is looking for an experienced, detail oriented C++ software engineer to join the development team responsible for the company's proprietary character setup tools. Responsibilities will include a mix of developing new systems, maintaining existing tools, and supporting artists in their production tasks. This engineer will interact closely with Char TD artists and technical users to help establish the direction for these tools. Good communication skills are essential. Software Infrastructure Engineer - Geometry Pipeline / OpenGL (Glendale & Redwood City) DreamWorks Animation is looking for an experienced software engineer with a strong background in OpenGL development with real time GPU / GPGPU experience. Responsibilities will include developing a next generation geometry display pipeline, to be leveraged by our proprietary animation and rendering tools. Candidates should have experience with highly complex data sets with an understanding of 3D geometry principles. Attention to detail and good communication skills are essential. Software Engineer - Rendering (Glendale & Redwood City) DreamWorks Animation is looking for an experienced software engineer to join the development team responsible for the company's proprietary lighting and rendering tools. Responsibilities will include a mix of developing new systems, maintaining existing tools, and supporting artists in their production tasks. This engineer will interact closely with lighters and technical users to help establish the direction for these tools. Attention to detail and good communication skills are essential. Software Application Engineer - Crowd Tools (Glendale & Redwood City) DreamWorks Animation is looking for an experienced software engineer to join the development team responsible for the company's crowd simulation tools. This engineer will interact closely with production artists, pipeline engineers and systems engineers to help establish the direction of these tools. Attention to detail and good communication skills are essential. Post Technology Engineer - Media Tools (Redwood City) Responsibilities include define and provide support for editorial pipelines and Post Technology processes across both Redwood City & Glendale sites, working with other departmental engineers to advance the direction and technology of editorial workflow, supporting the existing software pipeline infrastructure, deployment and support of proprietary tools, supporting editorial staff and production by providing assistance and/or training when needed, working with Production Management, the editorial staffs on all shows, and Technical Production Staff to determine structure of technical process for the editorial/deliveries pipeline and integration, interfacing with editorial and production artists to determine their needs and prioritize against studio initiatives, interface with Marketing/Public Relations on Consumer Products projects that require editorial-related tasks, working with Production Management & Technical Production staff on deliverables (i.e. digital cinema, film) and other tape & file formats Post Technology Engineer - Imaging (Glendale & Redwood City) The Post Technology Engineer is primarily responsible for providing support to our team of color and digital playback developers, and existing Post Technology toolsets. The engineer will interface with other Technology departments on a limited basis in support of projects currently in co-development, as well as Production, and Post Production, throughout the creative process, and through to delivery. We are looking for someone who has a broad and agile knowledge base who can interface well with users from a variety of backgrounds, and with varied skill sets. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/baypiggies/attachments/20070508/f76c3793/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 6032 bytes Desc: image001.jpg Url : http://mail.python.org/pipermail/baypiggies/attachments/20070508/f76c3793/attachment-0002.jpe -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 1346 bytes Desc: image002.jpg Url : http://mail.python.org/pipermail/baypiggies/attachments/20070508/f76c3793/attachment-0003.jpe From drewp at bigasterisk.com Wed May 9 07:56:31 2007 From: drewp at bigasterisk.com (Drew Perttula) Date: Tue, 08 May 2007 22:56:31 -0700 Subject: [Baypiggies] DreamWorks Animation Hiring - Technology Positions - 5/8/07 In-Reply-To: <3D0ED99268547D4F90B09EED37878873074F6B7D@megaera.pdi.com> References: <3D0ED99268547D4F90B09EED37878873074F6B7D@megaera.pdi.com> Message-ID: <4641628F.5000103@bigasterisk.com> Buendia, Trisha wrote: > > *CURRENT OPEN POSITIONS_ _* > > *Production (Python) Engineer *(Glendale & Redwood City) > > > > The Production Engineering group designs, implements, and maintains > software that "glues" together the software and data used in the > creation of animated feature films. Production engineers understand the > entire computer animation process and use that knowledge to develop the > DreamWorks global animation pipeline. We are seeking a highly motivated > person with experience in both software development and in computer > animation production. ^ This one is in the same group that I'm in, and it's definitely a python job. The 'python lead' one is obviously a python/C++ integration role like it says. The other open positions are not as python-focused, but we're obviously trying to get more python in use all around, so there might be room for some interesting new projects. Based on how I've seen things run at DreamWorks in the past, all those currently-listed positions seem like pretty cool jobs with room for exploring new projects and technologies. Our customers are in-house, technically-savvy, supportive people which makes it even more fun to code for them. Please find me Thursday night if you'd like to hear more. -drew From ross at pcnt.com Thu May 10 18:13:09 2007 From: ross at pcnt.com (Ross Parlette) Date: Thu, 10 May 2007 09:13:09 -0700 Subject: [Baypiggies] More moin or less In-Reply-To: References: Message-ID: The following is meta-discussion: Earlier this week, I took it upon myself to add the May 10th meeting to the Very Professional Bay Area Python Interest Group (BayPIGgies) sign-up page for the meetings at Google (moin). After several mis-steps, I think it's in working order, but it would be well for a moin-ista who is more experienced, more talented, and overall more worthy to review the page. In particular, I hesitated to remove the April 12 stuff, although it probably could go. I also don't know the status of the cups and if that link should remain or go as well, vicar. In any case, it seems to be working - many more people have signed up since I added myself and my boss to the top of the May 10 meeting sign-up. End of meta-discussion. You may now resume actual Python discussion. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/baypiggies/attachments/20070510/f9eb369e/attachment.htm From lhawthorn at google.com Thu May 10 18:47:22 2007 From: lhawthorn at google.com (Leslie Hawthorn) Date: Thu, 10 May 2007 09:47:22 -0700 Subject: [Baypiggies] urgentish - registration and room for this evening Message-ID: <4869cee70705100947n28bedb62y4fd9f8cb5faadb2c@mail.gmail.com> Hello everyone, My apologies for not getting this message out earlier this week; I'm in the middle of hosting a user group conference. It looks like no one has signed up on the wiki, so please plan to sign in when you arrive. We'll be meeting in Seville Tech Talk in Building 40, so please plan to check in at Building 41 reception and then security will escort you to reception. Cheers, LH -- Leslie Hawthorn Open Source Program Office Google Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/baypiggies/attachments/20070510/4caf81cc/attachment.htm From lhawthorn at google.com Thu May 10 19:32:10 2007 From: lhawthorn at google.com (Leslie Hawthorn) Date: Thu, 10 May 2007 10:32:10 -0700 Subject: [Baypiggies] urgentish - registration and room for this evening In-Reply-To: <4869cee70705100947n28bedb62y4fd9f8cb5faadb2c@mail.gmail.com> References: <4869cee70705100947n28bedb62y4fd9f8cb5faadb2c@mail.gmail.com> Message-ID: <4869cee70705101032l603c2babwc9ea3d53ef136624@mail.gmail.com> I should learn not to send mail pre-cup of coffee #2. Daming was kind enough to point out that there *are* folks registered on the wiki for this evening's meeting. I'll go ahead and make sure you folks have badges pre-printed upon arrival. Brian, you too. :) Cheers, LH On 5/10/07, Leslie Hawthorn wrote: > > Hello everyone, > > My apologies for not getting this message out earlier this week; I'm in > the middle of hosting a user group conference. > > It looks like no one has signed up on the wiki, > so please plan to sign in when you arrive. We'll be meeting in Seville Tech > Talk in Building 40, so please plan to check in at Building 41 reception and > then security will escort you to reception. > > Cheers, > LH > > > -- > Leslie Hawthorn > Open Source Program Office > Google Inc. -- Leslie Hawthorn Open Source Program Office Google Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/baypiggies/attachments/20070510/3ebc04a9/attachment.html From mark.gentry at gmail.com Thu May 10 20:35:48 2007 From: mark.gentry at gmail.com (Mark Gentry) Date: Thu, 10 May 2007 11:35:48 -0700 Subject: [Baypiggies] Bittorrent is looking for python talent. Message-ID: <3b29459d0705101135j4b898325oac24b03afdfb2d4f@mail.gmail.com> BitTorrent Inc. is a hot startup with millions of users, tons of media attention, and plenty of funding. We're located in downtown San Francisco, right next to all forms of public transportation. BitTorrent is the global standard for delivering high-quality files over the Internet. With an installed base of over 150 million clients worldwide, BitTorrent technology has turned conventional distribution economics on its head. The more popular a large video, audio or software file, the faster and cheaper it can be transferred with BitTorrent. The result is a better digital entertainment experience for everyone. We have difficult challenging problems to solve and are looking for people who are either python experts or are experts with other languages and have discovered python. We have a very democratic hiring processes we don't care about schools and grades. We care about native ability and passion. Solve the challenge below and send us your resume and we will take a look. Use python to solve the problem. What is the exponent of the largest power of two whose base seven representation doesn't contain three zeros in a row? Send response to jobs at bittorrent.com -- Mark Gentry -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/baypiggies/attachments/20070510/15e7819b/attachment.html From jim at well.com Thu May 10 23:55:29 2007 From: jim at well.com (jim stockford) Date: Thu, 10 May 2007 14:55:29 -0700 Subject: [Baypiggies] urgentish - registration and room for this evening In-Reply-To: <4869cee70705100947n28bedb62y4fd9f8cb5faadb2c@mail.gmail.com> References: <4869cee70705100947n28bedb62y4fd9f8cb5faadb2c@mail.gmail.com> Message-ID: <156dfcc066a67ef82962bc15d771ca55@well.com> i signed up as did a number of others. now our info is gone. something happened. On May 10, 2007, at 9:47 AM, Leslie Hawthorn wrote: > Hello everyone, > > My apologies for not getting this message out earlier this week; I'm > in the middle of hosting a user group conference.? > > It looks like no one has signed up on the wiki, so please plan to sign > in when you arrive.? We'll be meeting in Seville Tech Talk in Building > 40, so please plan to check in at Building 41 reception and then > security will escort you to reception. > > Cheers, > LH > > > -- > Leslie Hawthorn > Open Source Program Office > Google Inc._______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies From lhawthorn at google.com Thu May 10 23:54:36 2007 From: lhawthorn at google.com (Leslie Hawthorn) Date: Thu, 10 May 2007 14:54:36 -0700 Subject: [Baypiggies] urgentish - registration and room for this evening In-Reply-To: <156dfcc066a67ef82962bc15d771ca55@well.com> References: <4869cee70705100947n28bedb62y4fd9f8cb5faadb2c@mail.gmail.com> <156dfcc066a67ef82962bc15d771ca55@well.com> Message-ID: <4869cee70705101454g64e3c41dmff995c4d0bc7c3c5@mail.gmail.com> If your name was on the wiki as 10:32 AM this morning, a badge will be waiting for you. If not, please plan to sign in when you arrive. Cheers, LH On 5/10/07, jim stockford wrote: > > > i signed up as did a number of others. now our > info is gone. something happened. > > On May 10, 2007, at 9:47 AM, Leslie Hawthorn wrote: > > > Hello everyone, > > > > My apologies for not getting this message out earlier this week; I'm > > in the middle of hosting a user group conference. > > > > It looks like no one has signed up on the wiki, so please plan to sign > > in when you arrive. We'll be meeting in Seville Tech Talk in Building > > 40, so please plan to check in at Building 41 reception and then > > security will escort you to reception. > > > > Cheers, > > LH > > > > > > -- > > Leslie Hawthorn > > Open Source Program Office > > Google Inc._______________________________________________ > > Baypiggies mailing list > > Baypiggies at python.org > > To change your subscription options or unsubscribe: > > http://mail.python.org/mailman/listinfo/baypiggies > -- Leslie Hawthorn Open Source Program Office Google Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/baypiggies/attachments/20070510/eb4226b9/attachment.html From jjinux at gmail.com Fri May 11 10:03:44 2007 From: jjinux at gmail.com (Shannon -jj Behrens) Date: Fri, 11 May 2007 01:03:44 -0700 Subject: [Baypiggies] lambda for newbies Message-ID: Hey guys, I often hear Python newbies who are confused about lambda. Let's start with some code: >>> def double(x): ... return x * 2 ... >>> items = [1, 2, 9, 7] >>> doubled = [] >>> for i in items: ... doubled.append(double(i)) ... >>> print doubled [2, 4, 18, 14] These days, with list comprehensions, you can just write: >>> doubled = [double(i) for i in items] >>> doubled [2, 4, 18, 14] A more traditional lisp approach is to use the map function: >>> doubled = map(double, items) >>> doubled [2, 4, 18, 14] map applies a function (in this case, double) to the elements of an iterable (in this case, the list items). Notice we had to define the function above: >>> def double(x): ... return x * 2 ... For such a simple function, it'd be nice to just do it *in line* with the actual code. That's what lambda is for. It's creates a little *on the fly* function that doesn't even have a name: >>> doubled = map(lambda x: x * 2, items) >>> doubled [2, 4, 18, 14] In this case, lambda x: x * 2 is a function that takes x and returns x * 2. Note that lambda is purposely very limited. It's limited to a single expression that's automatically the return value. Things like print statements aren't allowed because they don't have return values. You don't actually say return, because it's implied. If your function is too complicated to fit in a lambda, write a function (a def) and give it a name. I think Guido made a conscious decision to say, "Hey, if you're going to make a non-trivial function, giving it a name makes it a lot more readable." Happy Hacking! -jj -- http://jjinux.blogspot.com/ From dan+baypiggies at danimal.org Fri May 11 14:21:11 2007 From: dan+baypiggies at danimal.org (Dan Weeks) Date: Fri, 11 May 2007 05:21:11 -0700 Subject: [Baypiggies] lambda for newbies In-Reply-To: References: Message-ID: <20070511122111.GI4637@danimal.org> On 2007-05-11 01:03, Shannon -jj Behrens threw down some bits like this: > Hey guys, > > I often hear Python newbies who are confused about lambda. Let's > start with some code: > These days, with list comprehensions, you can just write: While it's great that to teach about lambda and lisp-like programming I think focusing on list comprehensions is well more worth while, especially since they're more pythonic and the lisp-like lambda, filter(), map(), and reduce() are slated for removal in Python 3000. Of course there is code that exists that needs to be maintained now and you've done a good job of explaining lambda for newbies so they can do that. Taking the approach that lambda, filter, map, and reduce are okay in existing code is fine, but all new code really should be using lists comprehensions. Of course here I am saying this and not following jj's example of providing a tutorial. Maybe if I have more time today I can reply with a list comprehension version of what jj gave. Dan From collinw at gmail.com Fri May 11 17:06:49 2007 From: collinw at gmail.com (Collin Winter) Date: Fri, 11 May 2007 08:06:49 -0700 Subject: [Baypiggies] lambda for newbies In-Reply-To: <20070511122111.GI4637@danimal.org> References: <20070511122111.GI4637@danimal.org> Message-ID: <43aa6ff70705110806v5311bf76p4466f00344755bd0@mail.gmail.com> On 5/11/07, Dan Weeks wrote: > On 2007-05-11 01:03, Shannon -jj Behrens threw down some bits like this: > > Hey guys, > > > > I often hear Python newbies who are confused about lambda. Let's > > start with some code: > > > These days, with list comprehensions, you can just write: > > While it's great that to teach about lambda and lisp-like programming > I think focusing on list comprehensions is well more worth while, > especially since they're more pythonic and the lisp-like lambda, > filter(), map(), and reduce() are slated for removal in Python 3000. > Of course there is code that exists that needs to be maintained now and > you've done a good job of explaining lambda for newbies so they can do > that. map() and filter() will stay; only reduce() is being removed. Collin Winter From bsergean at gmail.com Fri May 11 17:22:28 2007 From: bsergean at gmail.com (Benjamin Sergeant) Date: Fri, 11 May 2007 08:22:28 -0700 Subject: [Baypiggies] lambda for newbies In-Reply-To: <43aa6ff70705110806v5311bf76p4466f00344755bd0@mail.gmail.com> References: <20070511122111.GI4637@danimal.org> <43aa6ff70705110806v5311bf76p4466f00344755bd0@mail.gmail.com> Message-ID: <1621f9fa0705110822u693345c7vee85cf6e4f8997ed@mail.gmail.com> And as there was nothing about reduce in this tutorial it was perfect :) On 5/11/07, Collin Winter wrote: > On 5/11/07, Dan Weeks wrote: > > On 2007-05-11 01:03, Shannon -jj Behrens threw down some bits like this: > > > Hey guys, > > > > > > I often hear Python newbies who are confused about lambda. Let's > > > start with some code: > > > > > These days, with list comprehensions, you can just write: > > > > While it's great that to teach about lambda and lisp-like programming > > I think focusing on list comprehensions is well more worth while, > > especially since they're more pythonic and the lisp-like lambda, > > filter(), map(), and reduce() are slated for removal in Python 3000. > > Of course there is code that exists that needs to be maintained now and > > you've done a good job of explaining lambda for newbies so they can do > > that. > > map() and filter() will stay; only reduce() is being removed. > > Collin Winter > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > From tungwaiyip at yahoo.com Fri May 11 18:53:06 2007 From: tungwaiyip at yahoo.com (Tung Wai Yip) Date: Fri, 11 May 2007 09:53:06 -0700 Subject: [Baypiggies] lambda for newbies In-Reply-To: References: Message-ID: On Fri, 11 May 2007 01:03:44 -0700, Shannon -jj Behrens wrote: > These days, with list comprehensions, you can just write: >>>> doubled = [double(i) for i in items] > A more traditional lisp approach is to use the map function: >>>> doubled = map(double, items) Whether list comprehension is more readable than functional programming is in the eyes of beholder. When I was learning Python, it takes me a long time to learn to read list comprehension. First of all it has a relative unique syntax not found in other major language. Secondly Python throw a lot of keywords into the syntax without distinctive punctuations. In its general form, list comprehesion looks like a jumble of characters: [256 - p for p in m if p > 0] Is it readable? Not for me initially. Eventually I have learned to break it down into three parts like below. Only then do each fragment make sense to me. [256 - p ... for p in m ... if p > 0] Still it is not alway easy for my eyes to parse. I wish my editor can be more smart to do some syntax highlighting for me. I actually find the Haskell syntax, the construct that inspired Python, more readable because of the punctuations it uses: [256 - p | p <- m, p > 0] Looking at JJ little example above I would say map(double, items) is more readable than list comprehesion. Of course this is my subjective judgement. And it assume the user already have a method double defined. Otherwise they will have to use lambda to define it on the fly and readability start to suffer: map(lambda x: x * 2, items) There are some idioms I that I frequently used that is expressed quite nicely with map() and filter(). >>> l = ['peter', '', 'paul'] >>> filter(None, l) ['peter', 'paul'] >>> s = 'peter, paul, mary' >>> map(str.strip, s.split(',')) ['peter', 'paul', 'mary'] Again this is probably depends on your background. I guess people with more mathematical training will be more receptive to functional programming. Wai Yip P.S. The map(str.strip,x) example I have used is semi broken. It fails when there is unicode string. Can't wait the day when text string is always unicode. From d_berthelot at yahoo.com Fri May 11 20:01:55 2007 From: d_berthelot at yahoo.com (David Berthelot) Date: Fri, 11 May 2007 11:01:55 -0700 (PDT) Subject: [Baypiggies] lambda for newbies Message-ID: <197380.81513.qm@web52106.mail.re2.yahoo.com> Ok, it's my first post on the list, hi everyone. That being said, what is the reason for removal of reduce() ? I love this function, how is its functionality going to be done next ? ----- Original Message ---- From: Collin Winter To: Dan Weeks Cc: Python Sent: Friday, May 11, 2007 8:06:49 AM Subject: Re: [Baypiggies] lambda for newbies On 5/11/07, Dan Weeks wrote: > On 2007-05-11 01:03, Shannon -jj Behrens threw down some bits like this: > > Hey guys, > > > > I often hear Python newbies who are confused about lambda. Let's > > start with some code: > > > These days, with list comprehensions, you can just write: > > While it's great that to teach about lambda and lisp-like programming > I think focusing on list comprehensions is well more worth while, > especially since they're more pythonic and the lisp-like lambda, > filter(), map(), and reduce() are slated for removal in Python 3000. > Of course there is code that exists that needs to be maintained now and > you've done a good job of explaining lambda for newbies so they can do > that. map() and filter() will stay; only reduce() is being removed. Collin Winter _______________________________________________ Baypiggies mailing list Baypiggies at python.org To change your subscription options or unsubscribe: http://mail.python.org/mailman/listinfo/baypiggies ____________________________________________________________________________________Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=list&sid=396545469 From collinw at gmail.com Fri May 11 20:18:16 2007 From: collinw at gmail.com (Collin Winter) Date: Fri, 11 May 2007 11:18:16 -0700 Subject: [Baypiggies] lambda for newbies In-Reply-To: <197380.81513.qm@web52106.mail.re2.yahoo.com> References: <197380.81513.qm@web52106.mail.re2.yahoo.com> Message-ID: <43aa6ff70705111118t4768e98wb835a9c245a953cc@mail.gmail.com> On 5/11/07, David Berthelot wrote: > Ok, it's my first post on the list, hi everyone. > > That being said, what is the reason for removal of reduce() ? > I love this function, how is its functionality going to be done next ? Guido's position: http://www.artima.com/weblogs/viewpost.jsp?thread=98196 My own functional package (http://cheeseshop.python.org/pypi/functional/) provides reduce() and other functional programming constructs; it will continue to be available for Python 3. Collin Winter > ----- Original Message ---- > From: Collin Winter > To: Dan Weeks > Cc: Python > Sent: Friday, May 11, 2007 8:06:49 AM > Subject: Re: [Baypiggies] lambda for newbies > > On 5/11/07, Dan Weeks wrote: > > On 2007-05-11 01:03, Shannon -jj Behrens threw down some bits like this: > > > Hey guys, > > > > > > I often hear Python newbies who are confused about lambda. Let's > > > start with some code: > > > > > These days, with list comprehensions, you can just write: > > > > While it's great that to teach about lambda and lisp-like programming > > I think focusing on list comprehensions is well more worth while, > > especially since they're more pythonic and the lisp-like lambda, > > filter(), map(), and reduce() are slated for removal in Python 3000. > > Of course there is code that exists that needs to be maintained now and > > you've done a good job of explaining lambda for newbies so they can do > > that. > > map() and filter() will stay; only reduce() is being removed. > > Collin Winter > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > > > > > > > ____________________________________________________________________________________Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out. > http://answers.yahoo.com/dir/?link=list&sid=396545469 > From d_berthelot at yahoo.com Fri May 11 21:08:48 2007 From: d_berthelot at yahoo.com (David Berthelot) Date: Fri, 11 May 2007 12:08:48 -0700 (PDT) Subject: [Baypiggies] lambda for newbies Message-ID: <311909.18111.qm@web52108.mail.re2.yahoo.com> Ok thanks for the links (I bookmarked your functional package, because I'm also a heavy user of partial function application, why right now I do by doing something along the line of fz5 = lambda x,y:f(x,y,z=5)) So basically Guido really wants to bin lambda,map,reduce,filter which are constructs I use a lot. I can understand for map,filter given the redundant semantic. I can accept that reduce is easier to read written as a loop, although I find it useful for combining one-to-one elements in lists (and lists of lists, etc...). Now for lambda, basically it's still very useful even without filter,reduce or map. That's probably the most controversial one to me. I often use it to pass basic functions (that are so basic that keeping them unnamed is perfect) to other functions. If I have to name all those unnamed lambda functions to use them, that's going to be quite verbose, probably a bit too much. ----- Original Message ---- From: Collin Winter To: David Berthelot Cc: Dan Weeks ; Python Sent: Friday, May 11, 2007 11:18:16 AM Subject: Re: [Baypiggies] lambda for newbies On 5/11/07, David Berthelot wrote: > Ok, it's my first post on the list, hi everyone. > > That being said, what is the reason for removal of reduce() ? > I love this function, how is its functionality going to be done next ? Guido's position: http://www.artima.com/weblogs/viewpost.jsp?thread=98196 My own functional package (http://cheeseshop.python.org/pypi/functional/) provides reduce() and other functional programming constructs; it will continue to be available for Python 3. Collin Winter > ----- Original Message ---- > From: Collin Winter > To: Dan Weeks > Cc: Python > Sent: Friday, May 11, 2007 8:06:49 AM > Subject: Re: [Baypiggies] lambda for newbies > > On 5/11/07, Dan Weeks wrote: > > On 2007-05-11 01:03, Shannon -jj Behrens threw down some bits like this: > > > Hey guys, > > > > > > I often hear Python newbies who are confused about lambda. Let's > > > start with some code: > > > > > These days, with list comprehensions, you can just write: > > > > While it's great that to teach about lambda and lisp-like programming > > I think focusing on list comprehensions is well more worth while, > > especially since they're more pythonic and the lisp-like lambda, > > filter(), map(), and reduce() are slated for removal in Python 3000. > > Of course there is code that exists that needs to be maintained now and > > you've done a good job of explaining lambda for newbies so they can do > > that. > > map() and filter() will stay; only reduce() is being removed. > > Collin Winter > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > > > > > > > ____________________________________________________________________________________Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out. > http://answers.yahoo.com/dir/?link=list&sid=396545469 > ____________________________________________________________________________________Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more. http://mobile.yahoo.com/go?refer=1GNXIC From collinw at gmail.com Fri May 11 21:14:07 2007 From: collinw at gmail.com (Collin Winter) Date: Fri, 11 May 2007 12:14:07 -0700 Subject: [Baypiggies] lambda for newbies In-Reply-To: <311909.18111.qm@web52108.mail.re2.yahoo.com> References: <311909.18111.qm@web52108.mail.re2.yahoo.com> Message-ID: <43aa6ff70705111214n2744bee9m5de9722c31f6b57c@mail.gmail.com> On 5/11/07, David Berthelot wrote: > Ok thanks for the links (I bookmarked your functional package, because I'm also a heavy user of partial function application, why right now I do by doing something along the line of fz5 = lambda x,y:f(x,y,z=5)) > > So basically Guido really wants to bin lambda,map,reduce,filter which are constructs I use a lot. > > I can understand for map,filter given the redundant semantic. I can accept that reduce is easier to read written as a loop, although I find it useful for combining one-to-one elements in lists (and lists of lists, etc...). > > Now for lambda, basically it's still very useful even without filter,reduce or map. That's probably the most controversial one to me. > > I often use it to pass basic functions (that are so basic that keeping them unnamed is perfect) to other functions. If I have to name all those unnamed lambda functions to use them, that's going to be quite verbose, probably a bit too much. Sorry, I forgot to mention that that article is somewhat out-of-date. Only the section on reduce() is still really relevant: lambda, map and filter are all going to stay in the language. PEPs 3099 and 3100 provide a good summary of what will and won't change in Python 3. Collin Winter > ----- Original Message ---- > From: Collin Winter > To: David Berthelot > Cc: Dan Weeks ; Python > Sent: Friday, May 11, 2007 11:18:16 AM > Subject: Re: [Baypiggies] lambda for newbies > > On 5/11/07, David Berthelot wrote: > > Ok, it's my first post on the list, hi everyone. > > > > That being said, what is the reason for removal of reduce() ? > > I love this function, how is its functionality going to be done next ? > > Guido's position: http://www.artima.com/weblogs/viewpost.jsp?thread=98196 > > My own functional package > (http://cheeseshop.python.org/pypi/functional/) provides reduce() and > other functional programming constructs; it will continue to be > available for Python 3. > > Collin Winter > > > > ----- Original Message ---- > > From: Collin Winter > > To: Dan Weeks > > Cc: Python > > Sent: Friday, May 11, 2007 8:06:49 AM > > Subject: Re: [Baypiggies] lambda for newbies > > > > On 5/11/07, Dan Weeks wrote: > > > On 2007-05-11 01:03, Shannon -jj Behrens threw down some bits like this: > > > > Hey guys, > > > > > > > > I often hear Python newbies who are confused about lambda. Let's > > > > start with some code: > > > > > > > These days, with list comprehensions, you can just write: > > > > > > While it's great that to teach about lambda and lisp-like programming > > > I think focusing on list comprehensions is well more worth while, > > > especially since they're more pythonic and the lisp-like lambda, > > > filter(), map(), and reduce() are slated for removal in Python 3000. > > > Of course there is code that exists that needs to be maintained now and > > > you've done a good job of explaining lambda for newbies so they can do > > > that. > > > > map() and filter() will stay; only reduce() is being removed. > > > > Collin Winter > > _______________________________________________ > > Baypiggies mailing list > > Baypiggies at python.org > > To change your subscription options or unsubscribe: > > http://mail.python.org/mailman/listinfo/baypiggies > > > > > > > > > > > > > > ____________________________________________________________________________________Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out. > > http://answers.yahoo.com/dir/?link=list&sid=396545469 > > > > > > > > > ____________________________________________________________________________________Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more. > http://mobile.yahoo.com/go?refer=1GNXIC > From dan+baypiggies at danimal.org Fri May 11 22:10:34 2007 From: dan+baypiggies at danimal.org (Dan Weeks) Date: Fri, 11 May 2007 13:10:34 -0700 Subject: [Baypiggies] lambda for newbies In-Reply-To: <43aa6ff70705111214n2744bee9m5de9722c31f6b57c@mail.gmail.com> References: <311909.18111.qm@web52108.mail.re2.yahoo.com> <43aa6ff70705111214n2744bee9m5de9722c31f6b57c@mail.gmail.com> Message-ID: <20070511201034.GP4637@danimal.org> On 2007-05-11 12:14, Collin Winter threw down some bits like this: > Sorry, I forgot to mention that that article is somewhat out-of-date. > Only the section on reduce() is still really relevant: lambda, map and > filter are all going to stay in the language. PEPs 3099 and 3100 > provide a good summary of what will and won't change in Python 3. Which is why: (a) I really should keep up on my PEPs before opening my mouth (b) I should hold off writing at 5am when I'm waking up for an early morning training ride on my bike. With the bike I have the luxury of muscle memory to get my butt to the destination. Sorry for stirring the pot. Dan From kelly at nttmcl.com Fri May 11 22:34:59 2007 From: kelly at nttmcl.com (Kelly Yancey) Date: Fri, 11 May 2007 13:34:59 -0700 Subject: [Baypiggies] lambda for newbies In-Reply-To: <311909.18111.qm@web52108.mail.re2.yahoo.com> References: <311909.18111.qm@web52108.mail.re2.yahoo.com> Message-ID: <4644D373.8010206@nttmcl.com> David Berthelot wrote:: > Ok thanks for the links (I bookmarked your functional package, > because I'm also a heavy user of partial function application, why > right now I do by doing something along the line of fz5 = lambda > x,y:f(x,y,z=5)) > You'll love python 2.5's new functools.partial function then. Kelly -- Kelly Yancey http://kbyanc.blogspot.com/ From warren at muse.com Tue May 15 00:12:06 2007 From: warren at muse.com (Warren Stringer) Date: Mon, 14 May 2007 15:12:06 -0700 Subject: [Baypiggies] Idiotmatic Savanica In-Reply-To: References: <55dc209b0704220906t4c91345bt9fbc06a7671e84cb@mail.gmail.com><1621f9fa0705040810s817ecf7ud3d4d9720d20364c@mail.gmail.com> Message-ID: <001701c79674$e87f2d50$240110ac@Muse> Last Thursday's newbie night was inspiring! Even though, I watched Alex Martelli's earlier presentation via google video (http://video.google.com/videosearch?q=alex+martelli ) there's nothing like being there in person, hearing questions, learning what 'is' is (quite aside from Bill Clinton's "'is' is", and getting immersed in the idiom. I had no idea that YouTube was 100% Python. Amazing! So, what happened? I revised the spec on an executable media ontology, called Tr3, which I mentioned to a few of you. Between May 10 and 12, I made Tr3 a bit more idiomatic to Python and removed about half of the semantics. That's right *half*. The number of pages describing it have been cut in half, as well. My thanks to Alex and organizers. Also, my apologies to anyone who spent time with prior and bloated writeup of Tr3 - am profoundly embarrassed. I asked Alex how to create a hierarchy of dictionaries. He suggested that I override the dict class with a new __setattrib__, here goes: www.muse.com/tr3/tr3.py Is there a more idiomatic way of expressing this? Perhaps a faster, yet pythy solution? Cheers, \~/ From aleax at google.com Tue May 15 01:46:59 2007 From: aleax at google.com (Alex Martelli) Date: Mon, 14 May 2007 16:46:59 -0700 Subject: [Baypiggies] Idiotmatic Savanica In-Reply-To: <001701c79674$e87f2d50$240110ac@Muse> References: <55dc209b0704220906t4c91345bt9fbc06a7671e84cb@mail.gmail.com> <1621f9fa0705040810s817ecf7ud3d4d9720d20364c@mail.gmail.com> <001701c79674$e87f2d50$240110ac@Muse> Message-ID: <55dc209b0705141646tbd736deg70e2d5924341f441@mail.gmail.com> On 5/14/07, Warren Stringer wrote: > > Last Thursday's newbie night was inspiring! Glad you liked it! Is there a more idiomatic way of expressing this? Perhaps a faster, yet > pythy solution? I would change things to be more idiomatic in several ways: a. use "if key in somedict" rather than "if somedict.has_key(key)" b. know that __getattr__ is only called if OTHER normal ways to get the attribute fail (so don't bother checking if one of such normal ways would have succeeded!) -- __setattr__ is different c. add unit tests to make sure one can change and refactor with much more confidence I'm not going to tackle (c), but, without testing, here's roughly how I might rephrase things...: class Tr3(dict): _ok_attrs = set('who what child parent'.split()) def __init__(self, parent=None, who='tr3'): self.who = who self.what = None self.child = {} self.parent = parent def __call__(self, v=None): self.what = v def __str__(self): if self.parent is not None: return '%s.%s' % (self.parent, self.who) else: return self.who def __getattr__(self, name): if name[:2] == '__' == name[-2:]: return dict.__getattr__(self, name) if name not in self.child: self.child[name] = Tr3(self, name) return self.child[name] def __setattr__(self, name, value): if name in self._ok_attrs or name in self.__dict__: self.__dict__[name] = value else: if name not in self.child: self.child[name] = Tr3(self, name) self.child[name].what = value The intent is to get the same semantics as you had on your page, just in a slightly more fluid and idiomatic way. (I'm not quite sure how any name except those in _ok_attrs would ever end up in self.__dict__, so I do suspect that test in __setattr__ can be simplifited, but as I said I'm trying to keep the same semantics as you had, so I avoided performing that simplification myself). As I abhor repetition so deeply, I'd probably add a tiny auxiliary method: def _setInChild(self, name): if name not in self.child: self.child[name] = Tr3(self, name) and call self._setInChild(name) in the two places which now have, instead, repetitions of this guarded assignment (but I realize that most people don't abhor repetition as intensely as I do:-). Alex -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/baypiggies/attachments/20070514/53bf6d3d/attachment.htm From warren at muse.com Tue May 15 04:44:03 2007 From: warren at muse.com (Warren Stringer) Date: Mon, 14 May 2007 19:44:03 -0700 Subject: [Baypiggies] Idiotmatic Savanica In-Reply-To: <55dc209b0705141646tbd736deg70e2d5924341f441@mail.gmail.com> References: <55dc209b0704220906t4c91345bt9fbc06a7671e84cb@mail.gmail.com> <1621f9fa0705040810s817ecf7ud3d4d9720d20364c@mail.gmail.com> <001701c79674$e87f2d50$240110ac@Muse> <55dc209b0705141646tbd736deg70e2d5924341f441@mail.gmail.com> Message-ID: <002701c7969a$e6ae2190$240110ac@Muse> Cool; it works! Your suggestion about simplifying __setattr__ seems to work, as well. I like encapsulating any redundancy into a def - which is another form of documentation. So, took your suggestion about adding a _setInChild(name). I did diverge, shown here: www.muse.com/tr3/tr3_martelli_tweaked.py ; with some trepidation, I use double underscores for __setInChild__ and __ok_attrs__ . Why? Because it simplifies watching variables, during debug. The ActiveState IDE for Visual Studio hides attributes with __myname__ convention. Does any other IDE do this? Tracing through thousands of embedded dictionaries will be much easier. \~/ Heh, just had an odd thought; I've probably spent as much time reading Martelli as Tolstoy. _____ From: Alex Martelli [mailto:aleax at google.com] Sent: Monday, May 14, 2007 4:47 PM To: Warren Stringer Cc: Python Subject: Re: [Baypiggies] Idiotmatic Savanica On 5/14/07, Warren Stringer wrote: Last Thursday's newbie night was inspiring! Glad you liked it! Is there a more idiomatic way of expressing this? Perhaps a faster, yet pythy solution? I would change things to be more idiomatic in several ways: a. use "if key in somedict" rather than "if somedict.has_key(key)" b. know that __getattr__ is only called if OTHER normal ways to get the attribute fail (so don't bother checking if one of such normal ways would have succeeded!) -- __setattr__ is different c. add unit tests to make sure one can change and refactor with much more confidence I'm not going to tackle (c), but, without testing, here's roughly how I might rephrase things...: class Tr3(dict): _ok_attrs = set('who what child parent'.split()) def __init__(self, parent=None, who='tr3'): self.who = who self.what = None self.child = {} self.parent = parent def __call__(self, v=None): self.what = v def __str__(self): if self.parent is not None: return '%s.%s' % ( self.parent, self.who) else: return self.who def __getattr__(self, name): if name[:2] == '__' == name[-2:]: return dict.__getattr__(self, name) if name not in self.child: self.child[name] = Tr3(self, name) return self.child[name] def __setattr__(self, name, value): if name in self._ok_attrs or name in self.__dict__: self.__dict__[name] = value else: if name not in self.child: self.child[name] = Tr3(self, name) self.child[name].what = value The intent is to get the same semantics as you had on your page, just in a slightly more fluid and idiomatic way. (I'm not quite sure how any name except those in _ok_attrs would ever end up in self.__dict__, so I do suspect that test in __setattr__ can be simplifited, but as I said I'm trying to keep the same semantics as you had, so I avoided performing that simplification myself). As I abhor repetition so deeply, I'd probably add a tiny auxiliary method: def _setInChild(self, name): if name not in self.child: self.child[name] = Tr3(self, name) and call self._setInChild(name) in the two places which now have, instead, repetitions of this guarded assignment (but I realize that most people don't abhor repetition as intensely as I do:-). Alex -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/baypiggies/attachments/20070514/e86ac4dd/attachment.html From hsuclarklarry at sbcglobal.net Tue May 15 05:18:48 2007 From: hsuclarklarry at sbcglobal.net (Laurence Clark) Date: Mon, 14 May 2007 20:18:48 -0700 Subject: [Baypiggies] lambda for newbies -- a true newbie question In-Reply-To: <43aa6ff70705111214n2744bee9m5de9722c31f6b57c@mail.gmail.com> References: <311909.18111.qm@web52108.mail.re2.yahoo.com> <43aa6ff70705111214n2744bee9m5de9722c31f6b57c@mail.gmail.com> Message-ID: <46492698.7060709@sbcglobal.net> On 5/11/07, David Berthelot wrote: "I often use it to pass basic functions (that are so basic that keeping them unnamed is perfect) to other functions. If I have to name all those unnamed lambda functions to use them, that's going to be quite verbose, probably a bit too much." Pardon the dumb question, but surely there must be some other way in python to put little anonymous functions into expressions?? Some way to say: my $hundreda = myaddfunction ( sub{return 99;}, 1); my $hundredb = sub{return 99;}->() + 1; Comments anyone? From aleax at google.com Tue May 15 06:20:00 2007 From: aleax at google.com (Alex Martelli) Date: Mon, 14 May 2007 21:20:00 -0700 Subject: [Baypiggies] Idiotmatic Savanica In-Reply-To: <002701c7969a$e6ae2190$240110ac@Muse> References: <55dc209b0704220906t4c91345bt9fbc06a7671e84cb@mail.gmail.com> <1621f9fa0705040810s817ecf7ud3d4d9720d20364c@mail.gmail.com> <001701c79674$e87f2d50$240110ac@Muse> <55dc209b0705141646tbd736deg70e2d5924341f441@mail.gmail.com> <002701c7969a$e6ae2190$240110ac@Muse> Message-ID: <55dc209b0705142120t1f944ef8m66c52fee864798e9@mail.gmail.com> On 5/14/07, Warren Stringer wrote: ... > Cool; it works! Your suggestion about simplifying __setattr__ seems to work, > as well. Good! > I like encapsulating any redundancy into a def ? which is another form of > documentation. So, took your suggestion about adding a _setInChild(name). Better! > I did diverge, shown here: > www.muse.com/tr3/tr3_martelli_tweaked.py ; with some > trepidation, I use double underscores for __setInChild__ and __ok_attrs__ . > Why? Because it simplifies watching variables, during debug. The ActiveState > IDE for Visual Studio hides attributes with __myname__ convention. Does any > other IDE do this? Tracing through thousands of embedded dictionaries will > be much easier. Looks like you're trying to take advantage of a weird special feature of your IDE and thereby violating Python conventions (_in theory_ the whole set of names starting and ending with two underscores is reserved to the Python implementers -- we might add one clashing with your use anytime w/o warning -- of course, it's _unlikely_ to actually happen:-). > Heh, just had an odd thought; I've probably spent as much time reading > Martelli as Tolstoy? Oops, I must definitely take steps to become more concise...!!! Alex From warren at muse.com Tue May 15 07:21:57 2007 From: warren at muse.com (Warren Stringer) Date: Mon, 14 May 2007 22:21:57 -0700 Subject: [Baypiggies] Idiotmatic Savanica In-Reply-To: <55dc209b0705142120t1f944ef8m66c52fee864798e9@mail.gmail.com> References: <55dc209b0704220906t4c91345bt9fbc06a7671e84cb@mail.gmail.com> <1621f9fa0705040810s817ecf7ud3d4d9720d20364c@mail.gmail.com> <001701c79674$e87f2d50$240110ac@Muse> <55dc209b0705141646tbd736deg70e2d5924341f441@mail.gmail.com> <002701c7969a$e6ae2190$240110ac@Muse> <55dc209b0705142120t1f944ef8m66c52fee864798e9@mail.gmail.com> Message-ID: <000801c796b0$f6065890$240110ac@Muse> >> Heh, just had an odd thought; I've probably spent as much time reading Martelli as Tolstoy. > Oops, I must definitely take steps to become more concise...!!! Was thinking of Tolstoy as you both deal with "legions"! Perhaps Hemingway? > Looks like you're trying to take advantage of a weird special feature of your IDE and thereby violating Python conventions Awww ... I guess I should write my own IDE. From kelly at nttmcl.com Tue May 15 20:59:17 2007 From: kelly at nttmcl.com (Kelly Yancey) Date: Tue, 15 May 2007 11:59:17 -0700 Subject: [Baypiggies] lambda for newbies -- a true newbie question In-Reply-To: <46492698.7060709@sbcglobal.net> References: <311909.18111.qm@web52108.mail.re2.yahoo.com> <43aa6ff70705111214n2744bee9m5de9722c31f6b57c@mail.gmail.com> <46492698.7060709@sbcglobal.net> Message-ID: <464A0305.30606@nttmcl.com> Laurence Clark wrote:: > On 5/11/07, David Berthelot wrote: "I often > use it to pass basic functions (that are so basic that keeping them > unnamed is perfect) to other functions. If I have to name all those > unnamed lambda functions to use them, that's going to be quite > verbose, probably a bit too much." > > > Pardon the dumb question, but surely there must be some other way in > python to put little anonymous functions into expressions?? Some way > to say: > > my $hundreda = myaddfunction ( sub{return 99;}, 1); > my $hundredb = sub{return 99;}->() + 1; > > Comments anyone? > Perhaps I'm missing the point of your question, but your examples aren't that different when expressed in python syntax... myaddfunction = lambda *args: sum(args) hundreda = myaddfunction((lambda: 99)() , 1) hundredb = (lambda: 99)() + 1 In fact they are slightly more concise than the perl equivalents. The key is to use parenthesis to encapsulate the lambda expression (sort of like you need brackets in perl to do the same). Then you can call the lambda expression just like any other function. Kelly -- Kelly Yancey http://kbyanc.blogspot.com/ From warren at muse.com Tue May 15 21:57:41 2007 From: warren at muse.com (Warren Stringer) Date: Tue, 15 May 2007 12:57:41 -0700 Subject: [Baypiggies] Idiotmatic Savanica In-Reply-To: <55dc209b0705142120t1f944ef8m66c52fee864798e9@mail.gmail.com> References: <55dc209b0704220906t4c91345bt9fbc06a7671e84cb@mail.gmail.com> <1621f9fa0705040810s817ecf7ud3d4d9720d20364c@mail.gmail.com> <001701c79674$e87f2d50$240110ac@Muse> <55dc209b0705141646tbd736deg70e2d5924341f441@mail.gmail.com> <002701c7969a$e6ae2190$240110ac@Muse> <55dc209b0705142120t1f944ef8m66c52fee864798e9@mail.gmail.com> Message-ID: <004001c7972b$4c5f7260$240110ac@Muse> >> I use double underscores for __setInChild__ and __ok_attrs__ ... > Looks like you're trying to take advantage of a weird special feature of your IDE and thereby violating Python conventions (_in theory_ the whole set of names starting and ending with two underscores is reserved to the Python ... Ok, I got rid of the double underscores - did so by, creating my own SUB-legion -- let's call it a platoon -- with a single leading underscore for member names, like so: www.muse.com/tr3/tr3_platoon.py So, instead of putting each member into a list, as previously done: _ok_attrs = set('who what child parent'.split()) ... if name in self._ok_attrs: ... Now it simply tests for leading underscore if name[:1] == '_': ... >> I like encapsulating any redundancy into a def - which is another form of documentation. So, took your suggestion about adding a _setInChild(name). > Better! Usually Better is best. But, I've spent some time thinking about _setInChild(name) and its callers. If we were to look at their entropy by replacing nouns with single letters, and verbs with single symbols, then the inline and called versions would look like this: _______________________________ g(n) ? d.n ^d.n ? !c.n #inline c.n = t.n ^c.n s(n,v) ? k.n s.n = v : ? !c.n #inline c.n = t.n c.n.w = v _______________________________ i(n) ? !c.n c.n = t.n g(n) ? d.n ^d.n i(n) #called ^c.n s(n,v) ? k.n s.n = v : i(n) #called c.n.w = v _______________________________ Further replacing INDENT NEWLINE DEDENT with / | \ reduces both to roughly the same size: g(n)/?d.n/^d.n\?!c.n/c.n=t.n\^c.n\s(n,v)/?k.n/s.n=v\:/?!c.n/c.n=t.n\c.n.w=v\ \ i(n)/?!c.n/c.n=t.n\\g(n)/?d.n/^d.n\i(n)|^c.n\s(n,v)/?k.n/s.n=v\:/i(n)|c.n.w= v\\ Does this mean they're the same? Perhaps for a machine! I'm too lazy to do any predictive compression to know for sure. Am more concerned about Human coders. For us, this is a wetware decompression problem. Regard the noun sets for each version of inline and called: inline: { g:[n,d,c,t], s:[n,v,k,s,c,t,w] } called: { g:[n,d,i,c], s:[n,v,k,s,i,c,w], i:[n,c,t] } Sooo, I'd say that the called version has more conceptual overhead. Moreover, for the called version, the eye must shift focus to find i somewhere else on screen, which results in, at least, a 200 millisecond saccade, where a human doesn't see anything. Furthermore, if you must scroll to find i, then add a few more seconds to the seek time. So, _setInChild(name) is gone. \~/ Legionnaire's quote for the day: ARTHUR: "Run away! Run away!" From spmcinerney at hotmail.com Tue May 15 22:31:24 2007 From: spmcinerney at hotmail.com (Stephen McInerney) Date: Tue, 15 May 2007 13:31:24 -0700 Subject: [Baypiggies] lambda for newbies -- a true newbie question In-Reply-To: <464A0305.30606@nttmcl.com> Message-ID: Wasn't the question "how will we do this in Python 3000 when lambda is deprecated?" Stephen >From: Kelly Yancey > >Laurence Clark wrote:: > > On 5/11/07, David Berthelot wrote: "I often > > use it to pass basic functions (that are so basic that keeping them > > unnamed is perfect) to other functions. If I have to name all those > > unnamed lambda functions to use them, that's going to be quite > > verbose, probably a bit too much." > > > > > > Pardon the dumb question, but surely there must be some other way in > > python to put little anonymous functions into expressions?? Some way > > to say: > > > > my $hundreda = myaddfunction ( sub{return 99;}, 1); > > my $hundredb = sub{return 99;}->() + 1; > > > > Comments anyone? > > > > Perhaps I'm missing the point of your question, but your examples >aren't that different when expressed in python syntax... > > myaddfunction = lambda *args: sum(args) > > hundreda = myaddfunction((lambda: 99)() , 1) > hundredb = (lambda: 99)() + 1 > > In fact they are slightly more concise than the perl equivalents. >The key is to use parenthesis to encapsulate the lambda expression (sort >of like you need brackets in perl to do the same). Then you can call >the lambda expression just like any other function. > > Kelly > _________________________________________________________________ More photos, more messages, more storage?get 2GB with Windows Live Hotmail. http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_2G_0507 From kelly at nttmcl.com Tue May 15 22:33:00 2007 From: kelly at nttmcl.com (Kelly Yancey) Date: Tue, 15 May 2007 13:33:00 -0700 Subject: [Baypiggies] lambda for newbies -- a true newbie question In-Reply-To: References: Message-ID: <464A18FC.4040603@nttmcl.com> Stephen McInerney wrote:: > Wasn't the question "how will we do this in Python 3000 when lambda is > deprecated?" > Didn't we establish that lambda wasn't going away? Kelly > Stephen > >> From: Kelly Yancey >> >> Laurence Clark wrote:: >> > On 5/11/07, David Berthelot wrote: "I often >> > use it to pass basic functions (that are so basic that keeping them >> > unnamed is perfect) to other functions. If I have to name all those >> > unnamed lambda functions to use them, that's going to be quite >> > verbose, probably a bit too much." >> > >> > >> > Pardon the dumb question, but surely there must be some other way in >> > python to put little anonymous functions into expressions?? Some way >> > to say: >> > >> > my $hundreda = myaddfunction ( sub{return 99;}, 1); >> > my $hundredb = sub{return 99;}->() + 1; >> > >> > Comments anyone? >> > >> >> Perhaps I'm missing the point of your question, but your examples >> aren't that different when expressed in python syntax... >> >> myaddfunction = lambda *args: sum(args) >> >> hundreda = myaddfunction((lambda: 99)() , 1) >> hundredb = (lambda: 99)() + 1 >> >> In fact they are slightly more concise than the perl equivalents. >> The key is to use parenthesis to encapsulate the lambda expression (sort >> of like you need brackets in perl to do the same). Then you can call >> the lambda expression just like any other function. >> >> Kelly >> > > _________________________________________________________________ > More photos, more messages, more storage?et 2GB with Windows Live > Hotmail. > http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_2G_0507 > From ken at seehart.com Tue May 15 23:31:45 2007 From: ken at seehart.com (Ken Seehart) Date: Tue, 15 May 2007 14:31:45 -0700 Subject: [Baypiggies] Web integration of python In-Reply-To: <464A18FC.4040603@nttmcl.com> References: <464A18FC.4040603@nttmcl.com> Message-ID: <464A26C1.90102@seehart.com> How long till python can be used for browser based GUI applications with features comparable to wxPython, pyGTK, and pyQT? Must run in all major browsers. The application in question is currently being developed in wxPython, and we want to start thinking about eventual portability to a browser based solution - Ken From Chris.Clark at ingres.com Tue May 15 23:48:26 2007 From: Chris.Clark at ingres.com (Chris Clark) Date: Tue, 15 May 2007 14:48:26 -0700 Subject: [Baypiggies] Web integration of python In-Reply-To: <464A26C1.90102@seehart.com> References: <464A18FC.4040603@nttmcl.com> <464A26C1.90102@seehart.com> Message-ID: <464A2AAA.8090908@ingres.com> Ken Seehart wrote: > How long till python can be used for browser based GUI applications with > features comparable to wxPython, pyGTK, and pyQT? Must run in all major > browsers. > Dunno, depends on your definition of "comparable" ;-) > The application in question is currently being developed in wxPython, > and we want to start thinking about eventual portability to a browser > based solution > Depending on exactly what you want *today* you could take a look at http://pyjamas.pyworks.org/ and add what you need. You may want to take a look at a Summer of Code project http://code.google.com/p/pyjamas/wiki/SummerOfCode (which I think has two students assigned to it, there is a posting on this in the py-gwt mailing list) which is has a slightly different twist to your question (viz. adding an existing api to it). Chris From ken at seehart.com Wed May 16 00:52:25 2007 From: ken at seehart.com (Ken Seehart) Date: Tue, 15 May 2007 15:52:25 -0700 Subject: [Baypiggies] Web integration of python In-Reply-To: <464A2AAA.8090908@ingres.com> References: <464A18FC.4040603@nttmcl.com> <464A26C1.90102@seehart.com> <464A2AAA.8090908@ingres.com> Message-ID: <464A39A9.7060706@seehart.com> Chris Clark wrote: > Ken Seehart wrote: >> How long till python can be used for browser based GUI applications >> with features comparable to wxPython, pyGTK, and pyQT? Must run in >> all major browsers. >> > > Dunno, depends on your definition of "comparable" ;-) > That's a reasonable question. How about the following: * AUI interface (dynamic splitters, draggable tabs, etc) * Menus, popup menus * GDI (graphical device interface) capable of efficient drawing and animation including alpha channel. * Complete mouse event control * Python shell window - Ken >> The application in question is currently being developed in wxPython, >> and we want to start thinking about eventual portability to a browser >> based solution >> > > > Depending on exactly what you want *today* you could take a look at > http://pyjamas.pyworks.org/ and add what you need. > > You may want to take a look at a Summer of Code project > http://code.google.com/p/pyjamas/wiki/SummerOfCode (which I think has > two students assigned to it, there is a posting on this in the py-gwt > mailing list) which is has a slightly different twist to your question > (viz. adding an existing api to it). > > Chris > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/baypiggies/attachments/20070515/c9765702/attachment.html From guido at python.org Wed May 16 00:56:29 2007 From: guido at python.org (Guido van Rossum) Date: Tue, 15 May 2007 15:56:29 -0700 Subject: [Baypiggies] Web integration of python In-Reply-To: <464A39A9.7060706@seehart.com> References: <464A18FC.4040603@nttmcl.com> <464A26C1.90102@seehart.com> <464A2AAA.8090908@ingres.com> <464A39A9.7060706@seehart.com> Message-ID: Does pyjamas not fit your bill? On 5/15/07, Ken Seehart wrote: > > Chris Clark wrote: > Ken Seehart wrote: > > How long till python can be used for browser based GUI applications with > features comparable to wxPython, pyGTK, and pyQT? Must run in all major > browsers. > > Dunno, depends on your definition of "comparable" ;-) > > That's a reasonable question. How about the following: > > > AUI interface (dynamic splitters, draggable tabs, etc) > Menus, popup menus > GDI (graphical device interface) capable of efficient drawing and animation > including alpha channel. > Complete mouse event control > Python shell window - Ken > > > The application in question is currently being developed in wxPython, and we > want to start thinking about eventual portability to a browser based > solution > > > Depending on exactly what you want *today* you could take a look at > http://pyjamas.pyworks.org/ and add what you need. > > You may want to take a look at a Summer of Code project > http://code.google.com/p/pyjamas/wiki/SummerOfCode (which I > think has two students assigned to it, there is a posting on this in the > py-gwt mailing list) which is has a slightly different twist to your > question (viz. adding an existing api to it). > > Chris > > > > > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > -- --Guido van Rossum (home page: http://www.python.org/~guido/) From warren at muse.com Wed May 16 02:32:06 2007 From: warren at muse.com (Warren Stringer) Date: Tue, 15 May 2007 17:32:06 -0700 Subject: [Baypiggies] Web integration of python In-Reply-To: References: <464A18FC.4040603@nttmcl.com> <464A26C1.90102@seehart.com><464A2AAA.8090908@ingres.com> <464A39A9.7060706@seehart.com> Message-ID: <005801c79751$a22cd220$240110ac@Muse> Pyjamas Works for Mozilla 2.0.0.3 Fails for IE 7.0.5730.11 -----Original Message----- From: baypiggies-bounces+warren=muse.com at python.org [mailto:baypiggies-bounces+warren=muse.com at python.org] On Behalf Of Guido van Rossum Sent: Tuesday, May 15, 2007 3:56 PM To: Ken Seehart Cc: baypiggies at python.org Subject: Re: [Baypiggies] Web integration of python Does pyjamas not fit your bill? On 5/15/07, Ken Seehart wrote: > > Chris Clark wrote: > Ken Seehart wrote: > > How long till python can be used for browser based GUI applications with > features comparable to wxPython, pyGTK, and pyQT? Must run in all major > browsers. > > Dunno, depends on your definition of "comparable" ;-) > > That's a reasonable question. How about the following: > > > AUI interface (dynamic splitters, draggable tabs, etc) > Menus, popup menus > GDI (graphical device interface) capable of efficient drawing and animation > including alpha channel. > Complete mouse event control > Python shell window - Ken > > > The application in question is currently being developed in wxPython, and we > want to start thinking about eventual portability to a browser based > solution > > > Depending on exactly what you want *today* you could take a look at > http://pyjamas.pyworks.org/ and add what you need. > > You may want to take a look at a Summer of Code project > http://code.google.com/p/pyjamas/wiki/SummerOfCode (which I > think has two students assigned to it, there is a posting on this in the > py-gwt mailing list) which is has a slightly different twist to your > question (viz. adding an existing api to it). > > Chris > > > > > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > -- --Guido van Rossum (home page: http://www.python.org/~guido/) _______________________________________________ Baypiggies mailing list Baypiggies at python.org To change your subscription options or unsubscribe: http://mail.python.org/mailman/listinfo/baypiggies From keith at dartworks.biz Wed May 16 02:37:43 2007 From: keith at dartworks.biz (Keith Dart =?UTF-8?B?4pmC?=) Date: Tue, 15 May 2007 17:37:43 -0700 Subject: [Baypiggies] Web integration of python In-Reply-To: <005801c79751$a22cd220$240110ac@Muse> References: <464A18FC.4040603@nttmcl.com> <464A26C1.90102@seehart.com> <464A2AAA.8090908@ingres.com> <464A39A9.7060706@seehart.com> <005801c79751$a22cd220$240110ac@Muse> Message-ID: <20070515173743.25836682@psyche.corp.google.com> Warren Stringer wrote the following on 2007-05-15 at 17:32 PDT: === > Pyjamas > Works for Mozilla 2.0.0.3 > Fails for IE 7.0.5730.11 === IE 7 must be broken (surprise, surprise). File a bug report with Microsoft. -- -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Keith Dart public key: ID: 19017044 ===================================================================== From guido at python.org Wed May 16 03:29:23 2007 From: guido at python.org (Guido van Rossum) Date: Tue, 15 May 2007 18:29:23 -0700 Subject: [Baypiggies] Web integration of python In-Reply-To: <005801c79751$a22cd220$240110ac@Muse> References: <464A18FC.4040603@nttmcl.com> <464A26C1.90102@seehart.com> <464A2AAA.8090908@ingres.com> <464A39A9.7060706@seehart.com> <005801c79751$a22cd220$240110ac@Muse> Message-ID: It's open source (pyjamas, not IE7 :) so you can help fix it. On 5/15/07, Warren Stringer wrote: > Pyjamas > Works for Mozilla 2.0.0.3 > Fails for IE 7.0.5730.11 > > -----Original Message----- > From: baypiggies-bounces+warren=muse.com at python.org > [mailto:baypiggies-bounces+warren=muse.com at python.org] On Behalf Of Guido > van Rossum > Sent: Tuesday, May 15, 2007 3:56 PM > To: Ken Seehart > Cc: baypiggies at python.org > Subject: Re: [Baypiggies] Web integration of python > > Does pyjamas not fit your bill? > > On 5/15/07, Ken Seehart wrote: > > > > Chris Clark wrote: > > Ken Seehart wrote: > > > > How long till python can be used for browser based GUI applications with > > features comparable to wxPython, pyGTK, and pyQT? Must run in all major > > browsers. > > > > Dunno, depends on your definition of "comparable" ;-) > > > > That's a reasonable question. How about the following: > > > > > > AUI interface (dynamic splitters, draggable tabs, etc) > > Menus, popup menus > > GDI (graphical device interface) capable of efficient drawing and > animation > > including alpha channel. > > Complete mouse event control > > Python shell window - Ken > > > > > > The application in question is currently being developed in wxPython, and > we > > want to start thinking about eventual portability to a browser based > > solution > > > > > > Depending on exactly what you want *today* you could take a look at > > http://pyjamas.pyworks.org/ and add what you need. > > > > You may want to take a look at a Summer of Code project > > http://code.google.com/p/pyjamas/wiki/SummerOfCode (which I > > think has two students assigned to it, there is a posting on this in the > > py-gwt mailing list) which is has a slightly different twist to your > > question (viz. adding an existing api to it). > > > > Chris > > > > > > > > > > > > _______________________________________________ > > Baypiggies mailing list > > Baypiggies at python.org > > To change your subscription options or unsubscribe: > > http://mail.python.org/mailman/listinfo/baypiggies > > > > > -- > --Guido van Rossum (home page: http://www.python.org/~guido/) > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > -- --Guido van Rossum (home page: http://www.python.org/~guido/) From samsafyan at yahoo.com Wed May 16 04:07:06 2007 From: samsafyan at yahoo.com (Samuel Safyan) Date: Tue, 15 May 2007 19:07:06 -0700 (PDT) Subject: [Baypiggies] Learning Python for a Quality Assurance Engineer Message-ID: <6206.29608.qm@web82007.mail.mud.yahoo.com> I was wondering if there are any schools in the Bay Area, particularly in the Peninsula, that teach Advanced Quality Assurance methodologies? I would be very much interested in taking a course in Python/Jython that trains students in various Testing tools (e.g. Grinder Load test) and writing your own Test Scripts (e.g. browsing sites using urllib2 and comparing the HTML output). Thank you, Sam P.S. Even any good Quality Assurance related Python tutorial sites would be helpful. --------------------------------- Luggage? GPS? Comic books? Check out fitting gifts for grads at Yahoo! Search. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/baypiggies/attachments/20070515/49b03a55/attachment.html From ken at seehart.com Wed May 16 06:13:36 2007 From: ken at seehart.com (Ken Seehart) Date: Tue, 15 May 2007 21:13:36 -0700 Subject: [Baypiggies] Web integration of python In-Reply-To: References: <464A18FC.4040603@nttmcl.com> <464A26C1.90102@seehart.com> <464A2AAA.8090908@ingres.com> <464A39A9.7060706@seehart.com> Message-ID: <464A84F0.7030003@seehart.com> Hey, pyjamas looks great; way more interesting than last time I looked! Thanks! - Ken Guido van Rossum wrote: > Does pyjamas not fit your bill? > > On 5/15/07, Ken Seehart wrote: >> >> Chris Clark wrote: >> Ken Seehart wrote: >> >> How long till python can be used for browser based GUI applications with >> features comparable to wxPython, pyGTK, and pyQT? Must run in all major >> browsers. >> >> Dunno, depends on your definition of "comparable" ;-) >> >> That's a reasonable question. How about the following: >> >> >> AUI interface (dynamic splitters, draggable tabs, etc) >> Menus, popup menus >> GDI (graphical device interface) capable of efficient drawing and >> animation >> including alpha channel. >> Complete mouse event control >> Python shell window - Ken >> >> >> The application in question is currently being developed in wxPython, >> and we >> want to start thinking about eventual portability to a browser based >> solution >> >> >> Depending on exactly what you want *today* you could take a look at >> http://pyjamas.pyworks.org/ and add what you need. >> >> You may want to take a look at a Summer of Code project >> http://code.google.com/p/pyjamas/wiki/SummerOfCode (which I >> think has two students assigned to it, there is a posting on this in the >> py-gwt mailing list) which is has a slightly different twist to your >> question (viz. adding an existing api to it). >> >> Chris >> >> >> >> >> >> _______________________________________________ >> Baypiggies mailing list >> Baypiggies at python.org >> To change your subscription options or unsubscribe: >> http://mail.python.org/mailman/listinfo/baypiggies >> > > From hsuclarklarry at sbcglobal.net Wed May 16 06:21:40 2007 From: hsuclarklarry at sbcglobal.net (Laurence Clark) Date: Tue, 15 May 2007 21:21:40 -0700 Subject: [Baypiggies] lambda for newbies -- newbie clarification In-Reply-To: References: Message-ID: <464A86D4.8020404@sbcglobal.net> Shannon -jj Behrens wrote: > I think Guido made a conscious decision to say, "Hey, if you're going to make a non-trivial function, giving it a name makes it a lot more readable. Pardon me, I enjoy learning many different languages and using them as appropriate. The pitfall is occasional moments of confusion as they all run together. I guess I was looking for a way to cheat on Guido's decision -- thinking there must be some way to create anonymous functions WITHOUT lambda. It appears, on rereading the Python Tutorial that lambda is the only way. If I want a function with more than one statement, I must give it a name. I write a lot of little throw away scripts where readability is just not important. This reinforces my thinking that Python is appropriate for slightly larger programs rather than one-liners. From aldenm at gmail.com Wed May 16 16:29:17 2007 From: aldenm at gmail.com (Alden Meneses) Date: Wed, 16 May 2007 07:29:17 -0700 Subject: [Baypiggies] Web integration of python In-Reply-To: References: <464A18FC.4040603@nttmcl.com> <464A26C1.90102@seehart.com> <464A2AAA.8090908@ingres.com> <464A39A9.7060706@seehart.com> <005801c79751$a22cd220$240110ac@Muse> Message-ID: <221610dc0705160729x43a77c39qa90c701ab8055b2@mail.gmail.com> hmmm... wouldn't that add to the patent infringement list? On 5/15/07, Guido van Rossum wrote: > > It's open source (pyjamas, not IE7 :) so you can help fix it. > > On 5/15/07, Warren Stringer wrote: > > Pyjamas > > Works for Mozilla 2.0.0.3 > > Fails for IE 7.0.5730.11 > > > > -----Original Message----- > > From: baypiggies-bounces+warren=muse.com at python.org > > [mailto:baypiggies-bounces+warren=muse.com at python.org] On Behalf Of > Guido > > van Rossum > > Sent: Tuesday, May 15, 2007 3:56 PM > > To: Ken Seehart > > Cc: baypiggies at python.org > > Subject: Re: [Baypiggies] Web integration of python > > > > Does pyjamas not fit your bill? > > > > On 5/15/07, Ken Seehart wrote: > > > > > > Chris Clark wrote: > > > Ken Seehart wrote: > > > > > > How long till python can be used for browser based GUI applications > with > > > features comparable to wxPython, pyGTK, and pyQT? Must run in all > major > > > browsers. > > > > > > Dunno, depends on your definition of "comparable" ;-) > > > > > > That's a reasonable question. How about the following: > > > > > > > > > AUI interface (dynamic splitters, draggable tabs, etc) > > > Menus, popup menus > > > GDI (graphical device interface) capable of efficient drawing and > > animation > > > including alpha channel. > > > Complete mouse event control > > > Python shell window - Ken > > > > > > > > > The application in question is currently being developed in wxPython, > and > > we > > > want to start thinking about eventual portability to a browser based > > > solution > > > > > > > > > Depending on exactly what you want *today* you could take a look at > > > http://pyjamas.pyworks.org/ and add what you need. > > > > > > You may want to take a look at a Summer of Code project > > > http://code.google.com/p/pyjamas/wiki/SummerOfCode (which I > > > think has two students assigned to it, there is a posting on this in > the > > > py-gwt mailing list) which is has a slightly different twist to your > > > question (viz. adding an existing api to it). > > > > > > Chris > > > > > > > > > > > > > > > > > > _______________________________________________ > > > Baypiggies mailing list > > > Baypiggies at python.org > > > To change your subscription options or unsubscribe: > > > http://mail.python.org/mailman/listinfo/baypiggies > > > > > > > > > -- > > --Guido van Rossum (home page: http://www.python.org/~guido/) > > _______________________________________________ > > Baypiggies mailing list > > Baypiggies at python.org > > To change your subscription options or unsubscribe: > > http://mail.python.org/mailman/listinfo/baypiggies > > > > > > _______________________________________________ > > Baypiggies mailing list > > Baypiggies at python.org > > To change your subscription options or unsubscribe: > > http://mail.python.org/mailman/listinfo/baypiggies > > > > > -- > --Guido van Rossum (home page: http://www.python.org/~guido/) > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/baypiggies/attachments/20070516/0c4685a1/attachment.htm From guido at python.org Wed May 16 16:50:31 2007 From: guido at python.org (Guido van Rossum) Date: Wed, 16 May 2007 07:50:31 -0700 Subject: [Baypiggies] Web integration of python In-Reply-To: <221610dc0705160729x43a77c39qa90c701ab8055b2@mail.gmail.com> References: <464A18FC.4040603@nttmcl.com> <464A26C1.90102@seehart.com> <464A2AAA.8090908@ingres.com> <464A39A9.7060706@seehart.com> <005801c79751$a22cd220$240110ac@Muse> <221610dc0705160729x43a77c39qa90c701ab8055b2@mail.gmail.com> Message-ID: Huh? On 5/16/07, Alden Meneses wrote: > hmmm... wouldn't that add to the patent infringement list? > > > On 5/15/07, Guido van Rossum wrote: > > It's open source (pyjamas, not IE7 :) so you can help fix it. > > > > On 5/15/07, Warren Stringer < warren at muse.com> wrote: > > > Pyjamas > > > Works for Mozilla 2.0.0.3 > > > Fails for IE 7.0.5730.11 > > > > > > -----Original Message----- > > > From: baypiggies-bounces+warren=muse.com at python.org > > > [mailto:baypiggies-bounces+warren=muse.com at python.org ] > On Behalf Of Guido > > > van Rossum > > > Sent: Tuesday, May 15, 2007 3:56 PM > > > To: Ken Seehart > > > Cc: baypiggies at python.org > > > Subject: Re: [Baypiggies] Web integration of python > > > > > > Does pyjamas not fit your bill? > > > > > > On 5/15/07, Ken Seehart wrote: > > > > > > > > Chris Clark wrote: > > > > Ken Seehart wrote: > > > > > > > > How long till python can be used for browser based GUI applications > with > > > > features comparable to wxPython, pyGTK, and pyQT? Must run in all > major > > > > browsers. > > > > > > > > Dunno, depends on your definition of "comparable" ;-) > > > > > > > > That's a reasonable question. How about the following: > > > > > > > > > > > > AUI interface (dynamic splitters, draggable tabs, etc) > > > > Menus, popup menus > > > > GDI (graphical device interface) capable of efficient drawing and > > > animation > > > > including alpha channel. > > > > Complete mouse event control > > > > Python shell window - Ken > > > > > > > > > > > > The application in question is currently being developed in wxPython, > and > > > we > > > > want to start thinking about eventual portability to a browser based > > > > solution > > > > > > > > > > > > Depending on exactly what you want *today* you could take a look at > > > > http://pyjamas.pyworks.org/ and add what you need. > > > > > > > > You may want to take a look at a Summer of Code project > > > > http://code.google.com/p/pyjamas/wiki/SummerOfCode > (which I > > > > think has two students assigned to it, there is a posting on this in > the > > > > py-gwt mailing list) which is has a slightly different twist to your > > > > question (viz. adding an existing api to it). > > > > > > > > Chris > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > Baypiggies mailing list > > > > Baypiggies at python.org > > > > To change your subscription options or unsubscribe: > > > > http://mail.python.org/mailman/listinfo/baypiggies > > > > > > > > > > > > > -- > > > --Guido van Rossum (home page: http://www.python.org/~guido/) > > > _______________________________________________ > > > Baypiggies mailing list > > > Baypiggies at python.org > > > To change your subscription options or unsubscribe: > > > http://mail.python.org/mailman/listinfo/baypiggies > > > > > > > > > _______________________________________________ > > > Baypiggies mailing list > > > Baypiggies at python.org > > > To change your subscription options or unsubscribe: > > > http://mail.python.org/mailman/listinfo/baypiggies > > > > > > > > > -- > > --Guido van Rossum (home page: http://www.python.org/~guido/) > > _______________________________________________ > > Baypiggies mailing list > > Baypiggies at python.org > > To change your subscription options or unsubscribe: > > http://mail.python.org/mailman/listinfo/baypiggies > > > > -- --Guido van Rossum (home page: http://www.python.org/~guido/) From aldenm at gmail.com Wed May 16 17:13:17 2007 From: aldenm at gmail.com (Alden Meneses) Date: Wed, 16 May 2007 08:13:17 -0700 Subject: [Baypiggies] Web integration of python In-Reply-To: References: <464A18FC.4040603@nttmcl.com> <464A26C1.90102@seehart.com> <464A2AAA.8090908@ingres.com> <464A39A9.7060706@seehart.com> <005801c79751$a22cd220$240110ac@Muse> <221610dc0705160729x43a77c39qa90c701ab8055b2@mail.gmail.com> Message-ID: <221610dc0705160813h2d1e6ec0o8e52aa0b2c90d13f@mail.gmail.com> sorry. poor attempt at microsoft humour. need some coffee. On 5/16/07, Guido van Rossum wrote: > > Huh? > > On 5/16/07, Alden Meneses wrote: > > hmmm... wouldn't that add to the patent infringement list? > > > > > > On 5/15/07, Guido van Rossum wrote: > > > It's open source (pyjamas, not IE7 :) so you can help fix it. > > > > > > On 5/15/07, Warren Stringer < warren at muse.com> wrote: > > > > Pyjamas > > > > Works for Mozilla 2.0.0.3 > > > > Fails for IE 7.0.5730.11 > > > > > > > > -----Original Message----- > > > > From: baypiggies-bounces+warren=muse.com at python.org > > > > [mailto:baypiggies-bounces+warren=muse.com at python.org ] > > On Behalf Of Guido > > > > van Rossum > > > > Sent: Tuesday, May 15, 2007 3:56 PM > > > > To: Ken Seehart > > > > Cc: baypiggies at python.org > > > > Subject: Re: [Baypiggies] Web integration of python > > > > > > > > Does pyjamas not fit your bill? > > > > > > > > On 5/15/07, Ken Seehart wrote: > > > > > > > > > > Chris Clark wrote: > > > > > Ken Seehart wrote: > > > > > > > > > > How long till python can be used for browser based GUI > applications > > with > > > > > features comparable to wxPython, pyGTK, and pyQT? Must run in all > > major > > > > > browsers. > > > > > > > > > > Dunno, depends on your definition of "comparable" ;-) > > > > > > > > > > That's a reasonable question. How about the following: > > > > > > > > > > > > > > > AUI interface (dynamic splitters, draggable tabs, etc) > > > > > Menus, popup menus > > > > > GDI (graphical device interface) capable of efficient drawing and > > > > animation > > > > > including alpha channel. > > > > > Complete mouse event control > > > > > Python shell window - Ken > > > > > > > > > > > > > > > The application in question is currently being developed in > wxPython, > > and > > > > we > > > > > want to start thinking about eventual portability to a browser > based > > > > > solution > > > > > > > > > > > > > > > Depending on exactly what you want *today* you could take a look > at > > > > > http://pyjamas.pyworks.org/ and add what you need. > > > > > > > > > > You may want to take a look at a Summer of Code project > > > > > http://code.google.com/p/pyjamas/wiki/SummerOfCode > > (which I > > > > > think has two students assigned to it, there is a posting on this > in > > the > > > > > py-gwt mailing list) which is has a slightly different twist to > your > > > > > question (viz. adding an existing api to it). > > > > > > > > > > Chris > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > Baypiggies mailing list > > > > > Baypiggies at python.org > > > > > To change your subscription options or unsubscribe: > > > > > http://mail.python.org/mailman/listinfo/baypiggies > > > > > > > > > > > > > > > > > -- > > > > --Guido van Rossum (home page: http://www.python.org/~guido/) > > > > _______________________________________________ > > > > Baypiggies mailing list > > > > Baypiggies at python.org > > > > To change your subscription options or unsubscribe: > > > > http://mail.python.org/mailman/listinfo/baypiggies > > > > > > > > > > > > _______________________________________________ > > > > Baypiggies mailing list > > > > Baypiggies at python.org > > > > To change your subscription options or unsubscribe: > > > > http://mail.python.org/mailman/listinfo/baypiggies > > > > > > > > > > > > > -- > > > --Guido van Rossum (home page: http://www.python.org/~guido/) > > > _______________________________________________ > > > Baypiggies mailing list > > > Baypiggies at python.org > > > To change your subscription options or unsubscribe: > > > http://mail.python.org/mailman/listinfo/baypiggies > > > > > > > > > > -- > --Guido van Rossum (home page: http://www.python.org/~guido/) > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/baypiggies/attachments/20070516/c04c5897/attachment.html From warren at muse.com Wed May 16 17:30:14 2007 From: warren at muse.com (Warren Stringer) Date: Wed, 16 May 2007 08:30:14 -0700 Subject: [Baypiggies] Web integration of python In-Reply-To: <221610dc0705160813h2d1e6ec0o8e52aa0b2c90d13f@mail.gmail.com> References: <464A18FC.4040603@nttmcl.com> <464A26C1.90102@seehart.com> <464A2AAA.8090908@ingres.com> <464A39A9.7060706@seehart.com> <005801c79751$a22cd220$240110ac@Muse> <221610dc0705160729x43a77c39qa90c701ab8055b2@mail.gmail.com> <221610dc0705160813h2d1e6ec0o8e52aa0b2c90d13f@mail.gmail.com> Message-ID: <001101c797cf$1a3e1850$240110ac@Muse> I thought that was funny!!! Balmer has been saber rattling. >sorry. poor attempt at microsoft humour. need some coffee. >On 5/16/07, Guido van Rossum wrote: >>Huh? >>On 5/16/07, Alden Meneses > wrote: >>> hmmm... wouldn't that add to the patent infringement list? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/baypiggies/attachments/20070516/dc3928c8/attachment-0001.htm From cvanarsdall at mvista.com Wed May 16 18:00:52 2007 From: cvanarsdall at mvista.com (Carl J. Van Arsdall) Date: Wed, 16 May 2007 09:00:52 -0700 Subject: [Baypiggies] Learning Python for a Quality Assurance Engineer In-Reply-To: <6206.29608.qm@web82007.mail.mud.yahoo.com> References: <6206.29608.qm@web82007.mail.mud.yahoo.com> Message-ID: <464B2AB4.7060901@mvista.com> Samuel Safyan wrote: > I was wondering if there are any schools in the Bay Area, particularly > in the Peninsula, that teach Advanced Quality Assurance methodologies? > I would be very much interested in taking a course in Python/Jython > that trains students in various Testing tools (e.g. Grinder Load test) > and writing your own Test Scripts (e.g. browsing sites using urllib2 > and comparing the HTML output). > Thank you, > Sam > P.S. Even any good Quality Assurance related Python tutorial sites > would be helpful. Hey I don't know of any classes, but another technology you might want to check out is called STAF (http://staf.sourceforge.net/index.php). My company uses a modified version of this in its test environment, and others may as well. Its not only python but python is definitely a part of it. HTH -carl > Luggage? GPS? Comic books? > Check out fitting gifts for grads > > at Yahoo! Search. > ------------------------------------------------------------------------ > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies -- Carl J. Van Arsdall cvanarsdall at mvista.com Build and Release MontaVista Software From aldenm at gmail.com Wed May 16 19:45:15 2007 From: aldenm at gmail.com (Alden Meneses) Date: Wed, 16 May 2007 10:45:15 -0700 Subject: [Baypiggies] newbie question - automating my reporting tasks Message-ID: <221610dc0705161045l7b4da626s4fc94a7ca2f94581@mail.gmail.com> Hello all, It does seem that Python is easier to lean than PERL. and I like the interpreter. I have some text files that I download from an AS400 and format with Excel. Basically I convert the text to columns then sort and subtotal. The results are then emailed to various people and also used in other reports. Haven't really thought out how to automate this whole process but wanted to start with a project to learn python and go from there. I have skimmed throught the python tutorial and now getting into python in a nutshell, 2nd edition and would welcome any thoughts or suggestions in getting my project off the ground. I've taken programming courses in college - C, C++, PERL, FORTRAN, PASCAL, UNIX shell scripting and its been awhile since I had to rely on it. Thanks in advance, Alden -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/baypiggies/attachments/20070516/cfbebcad/attachment.html From cappy2112 at gmail.com Wed May 16 20:05:12 2007 From: cappy2112 at gmail.com (Tony Cappellini) Date: Wed, 16 May 2007 11:05:12 -0700 Subject: [Baypiggies] newbie question - automating my reporting tasks In-Reply-To: <221610dc0705161045l7b4da626s4fc94a7ca2f94581@mail.gmail.com> References: <221610dc0705161045l7b4da626s4fc94a7ca2f94581@mail.gmail.com> Message-ID: <8249c4ac0705161105q3f89554ene88add7669a8b90c@mail.gmail.com> Hello Alden, I've recently used this Python package for converting Excel files into .CSV files. http://www.lexicon.net/sjmachin/xlrd.htm It worked well for my needs, but it has some limitations. Good luck. On 5/16/07, Alden Meneses wrote: > Hello all, > > It does seem that Python is easier to lean than PERL. and I like the > interpreter. > > I have some text files that I download from an AS400 and format with Excel. > Basically I convert the text to columns then sort and subtotal. The results > are then emailed to various people and also used in other reports. Haven't > really thought out how to automate this whole process but wanted to start > with a project to learn python and go from there. > > I have skimmed throught the python tutorial and now getting into python in a > nutshell, 2nd edition and would welcome any thoughts or suggestions in > getting my project off the ground. I've taken programming courses in college > - C, C++, PERL, FORTRAN, PASCAL, UNIX shell scripting and its been awhile > since I had to rely on it. > > Thanks in advance, > Alden > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > From aldenm at gmail.com Wed May 16 20:13:30 2007 From: aldenm at gmail.com (Alden Meneses) Date: Wed, 16 May 2007 11:13:30 -0700 Subject: [Baypiggies] newbie question - automating my reporting tasks In-Reply-To: <8249c4ac0705161105q3f89554ene88add7669a8b90c@mail.gmail.com> References: <221610dc0705161045l7b4da626s4fc94a7ca2f94581@mail.gmail.com> <8249c4ac0705161105q3f89554ene88add7669a8b90c@mail.gmail.com> Message-ID: <221610dc0705161113x71ac0e2eh34ba6274a0966ab7@mail.gmail.com> thanks. I am sure this will come in handy. On 5/16/07, Tony Cappellini wrote: > > Hello Alden, > > I've recently used this Python package for converting Excel files into > .CSV files. > http://www.lexicon.net/sjmachin/xlrd.htm > > It worked well for my needs, but it has some limitations. > > Good luck. > > > On 5/16/07, Alden Meneses wrote: > > Hello all, > > > > It does seem that Python is easier to lean than PERL. and I like the > > interpreter. > > > > I have some text files that I download from an AS400 and format with > Excel. > > Basically I convert the text to columns then sort and subtotal. The > results > > are then emailed to various people and also used in other reports. > Haven't > > really thought out how to automate this whole process but wanted to > start > > with a project to learn python and go from there. > > > > I have skimmed throught the python tutorial and now getting into python > in a > > nutshell, 2nd edition and would welcome any thoughts or suggestions in > > getting my project off the ground. I've taken programming courses in > college > > - C, C++, PERL, FORTRAN, PASCAL, UNIX shell scripting and its been > awhile > > since I had to rely on it. > > > > Thanks in advance, > > Alden > > _______________________________________________ > > Baypiggies mailing list > > Baypiggies at python.org > > To change your subscription options or unsubscribe: > > http://mail.python.org/mailman/listinfo/baypiggies > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/baypiggies/attachments/20070516/57bc5d6f/attachment.htm From cbc at unc.edu Wed May 16 20:54:12 2007 From: cbc at unc.edu (Chris Calloway) Date: Wed, 16 May 2007 14:54:12 -0400 Subject: [Baypiggies] Web integration of python In-Reply-To: References: <464A18FC.4040603@nttmcl.com> <464A26C1.90102@seehart.com> <464A2AAA.8090908@ingres.com> <464A39A9.7060706@seehart.com> <005801c79751$a22cd220$240110ac@Muse> <221610dc0705160729x43a77c39qa90c701ab8055b2@mail.gmail.com> Message-ID: <464B5354.8000001@unc.edu> Guido van Rossum wrote: > Huh? > > On 5/16/07, Alden Meneses wrote: >> hmmm... wouldn't that add to the patent infringement list? http://yro.slashdot.org/article.pl?sid=07/05/14/0018242 http://yro.slashdot.org/article.pl?sid=07/05/14/2220246 http://yro.slashdot.org/article.pl?sid=07/05/15/1348209 http://yro.slashdot.org/article.pl?sid=07/05/15/203218 Yeah, it's about Linux. Kinda. Only 42 of the claimed 235 infringements are actually about Linux. The rest are about other FOSS which runs on Linux. Well, when the patents are actually named, maybe it will be. Until then, it's just FUD as usual. -- Sincerely, Chris Calloway http://www.seacoos.org office: 332 Chapman Hall phone: (919) 962-4323 mail: Campus Box #3300, UNC-CH, Chapel Hill, NC 27599 From Chris.Clark at ingres.com Wed May 16 21:13:48 2007 From: Chris.Clark at ingres.com (Chris Clark) Date: Wed, 16 May 2007 12:13:48 -0700 Subject: [Baypiggies] newbie question - automating my reporting tasks In-Reply-To: <221610dc0705161113x71ac0e2eh34ba6274a0966ab7@mail.gmail.com> References: <221610dc0705161045l7b4da626s4fc94a7ca2f94581@mail.gmail.com> <8249c4ac0705161105q3f89554ene88add7669a8b90c@mail.gmail.com> <221610dc0705161113x71ac0e2eh34ba6274a0966ab7@mail.gmail.com> Message-ID: <464B57EC.1040208@ingres.com> Are you wedded to Excel? It sounds like that part of the process would be a good candidate for removal and just process the raw text file in Python either via dict, lists, set, etc. or by dumping it into a database to do the grunt work (using a Python dbi driver). If you went that route, some of the file IO tutorials would be a good place to start. This one; http://www.penzilla.net/tutorials/python/fileio/ actually implements some summation but the first page of http://www.devshed.com/c/a/Python/File-Management-in-Python/ is probably a little easier to get started with. You should be able (eventually) to handle everything in python; pulling down the files, processing, mailing the results. If you stick with Excel you either need to make that part manual or deal with COM if you want to automate that part from Python. Tony - thanks for the xlrd link, that's going to save me *loads* of work for a pet project I've got :-) I thought I was going to have to use the Python-UNO bridge. Chris Alden Meneses wrote: > thanks. I am sure this will come in handy. > > On 5/16/07, *Tony Cappellini* > wrote: > > Hello Alden, > > I've recently used this Python package for converting Excel files into > .CSV files. > http://www.lexicon.net/sjmachin/xlrd.htm > > It worked well for my needs, but it has some limitations. > > Good luck. > > > On 5/16/07, Alden Meneses < aldenm at gmail.com > > wrote: > > Hello all, > > > > It does seem that Python is easier to lean than PERL. and I like the > > interpreter. > > > > I have some text files that I download from an AS400 and format > with Excel. > > Basically I convert the text to columns then sort and subtotal. > The results > > are then emailed to various people and also used in other > reports. Haven't > > really thought out how to automate this whole process but wanted > to start > > with a project to learn python and go from there. > > > > I have skimmed throught the python tutorial and now getting into > python in a > > nutshell, 2nd edition and would welcome any thoughts or > suggestions in > > getting my project off the ground. I've taken programming > courses in college > > - C, C++, PERL, FORTRAN, PASCAL, UNIX shell scripting and its > been awhile > > since I had to rely on it. > > > > Thanks in advance, > > Alden > > _______________________________________________ > > Baypiggies mailing list > > Baypiggies at python.org > > To change your subscription options or unsubscribe: > > http://mail.python.org/mailman/listinfo/baypiggies > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies From max at theslimmers.net Wed May 16 21:43:56 2007 From: max at theslimmers.net (Max Slimmer) Date: Wed, 16 May 2007 12:43:56 -0700 Subject: [Baypiggies] newbie question - automating my reporting tasks In-Reply-To: <221610dc0705161045l7b4da626s4fc94a7ca2f94581@mail.gmail.com> Message-ID: <200705161944.l4GJi3T5012307@a.mail.sonic.net> You indicated you receive text files, if they are comma delimited you can parse them with the csv library and thus read them into python lists of lists onece you have your data in a list of lists you could simply operate on it there or you could create objects from each list element leaving you with a list of objects exch representing one row. say you keep it simple and you have incoming data consisting of name, rate, amt. >>> data = [['name1',12.5, 123.66],['name2',5.6,421]] >>> data [['name1', 12.5, 123.66], ['name2', 5.5999999999999996, 421]] you can sum all the amt's with >>> tot = sum(row[2] for row in data) >>> tot 544.65999999999997 or you can sort the data by rate: >>> data.sort(key=lambda i:i[1]) # see http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/305304 for interesting things to do with sort >>> data [['name2', 5.5999999999999996, 421], ['name1', 12.5, 123.66]] play with the interactive interpreter max _____ From: baypiggies-bounces at python.org [mailto:baypiggies-bounces at python.org] On Behalf Of Alden Meneses Sent: Wednesday, May 16, 2007 10:45 AM To: baypiggies at python.org Subject: [Baypiggies] newbie question - automating my reporting tasks Hello all, It does seem that Python is easier to lean than PERL. and I like the interpreter. I have some text files that I download from an AS400 and format with Excel. Basically I convert the text to columns then sort and subtotal. The results are then emailed to various people and also used in other reports. Haven't really thought out how to automate this whole process but wanted to start with a project to learn python and go from there. I have skimmed throught the python tutorial and now getting into python in a nutshell, 2nd edition and would welcome any thoughts or suggestions in getting my project off the ground. I've taken programming courses in college - C, C++, PERL, FORTRAN, PASCAL, UNIX shell scripting and its been awhile since I had to rely on it. Thanks in advance, Alden -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/baypiggies/attachments/20070516/a74adcc5/attachment-0001.html From aldenm at gmail.com Thu May 17 00:25:16 2007 From: aldenm at gmail.com (Alden Meneses) Date: Wed, 16 May 2007 15:25:16 -0700 Subject: [Baypiggies] newbie question - automating my reporting tasks In-Reply-To: <200705161944.l4GJi3T5012307@a.mail.sonic.net> References: <221610dc0705161045l7b4da626s4fc94a7ca2f94581@mail.gmail.com> <200705161944.l4GJi3T5012307@a.mail.sonic.net> Message-ID: <221610dc0705161525qc6609deg2722f280d52df366@mail.gmail.com> Max - Thanks for your reply. The text files are not in csv format and I will need to figure out how to separate the fields. Space as a separator will not work as values have spaces in them. The current text file I am looking at seems to have fields that are at fixed width and the each line I want are encapsulated in "". The example you showed below will be usefull once I accomplish the above task. Chris - Thank you for your reply. The link you provided have some examples of file and string manipulation which will be a very useful read. Alden On 5/16/07, Max Slimmer wrote: > > You indicated you receive text files, if they are comma delimited you can > parse them with the csv library and thus read them into python lists of > lists > onece you have your data in a list of lists you could simply operate on it > there or you could create objects from each list element leaving you with a > list of objects exch representing one row. > > say you keep it simple and you have incoming data consisting of name, > rate, amt. > >>> data = [['name1',12.5, 123.66],['name2',5.6,421]] > >>> data > [['name1', 12.5, 123.66], ['name2', 5.5999999999999996, 421]] > you can sum all the amt's with > >>> tot = sum(row[2] for row in data) > >>> tot > 544.65999999999997 > or you can sort the data by rate: > >>> data.sort(key=lambda i:i[1]) # see > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/305304 for > interesting things to do with sort > >>> data > [['name2', 5.5999999999999996, 421], ['name1', 12.5, 123.66]] > > play with the interactive interpreter > > max > > > ------------------------------ > *From:* baypiggies-bounces at python.org [mailto:baypiggies-bounces at python.org] > *On Behalf Of *Alden Meneses > *Sent:* Wednesday, May 16, 2007 10:45 AM > *To:* baypiggies at python.org > *Subject:* [Baypiggies] newbie question - automating my reporting tasks > > > Hello all, > > It does seem that Python is easier to lean than PERL. and I like the > interpreter. > > I have some text files that I download from an AS400 and format with > Excel. Basically I convert the text to columns then sort and subtotal. The > results are then emailed to various people and also used in other reports. > Haven't really thought out how to automate this whole process but wanted to > start with a project to learn python and go from there. > > I have skimmed throught the python tutorial and now getting into python in > a nutshell, 2nd edition and would welcome any thoughts or suggestions in > getting my project off the ground. I've taken programming courses in > college - C, C++, PERL, FORTRAN, PASCAL, UNIX shell scripting and its been > awhile since I had to rely on it. > > Thanks in advance, > Alden > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/baypiggies/attachments/20070516/52cd48a0/attachment.html From max at theslimmers.net Thu May 17 01:15:39 2007 From: max at theslimmers.net (Max Slimmer) Date: Wed, 16 May 2007 16:15:39 -0700 Subject: [Baypiggies] newbie question - automating my reporting tasks In-Reply-To: <221610dc0705161525qc6609deg2722f280d52df366@mail.gmail.com> Message-ID: <200705162315.l4GNFkXs031212@a.mail.sonic.net> def getData(): f = open('datafile.txt') itmList = [] for line in f: itm = MYCLASS() itm.name = line[0:20].strip() # get name from 1st 20 chars in line and strip any trailing (in this case also leading vs rstrip()) whitespace itm.rate = float(line[20:28] itmList.append(itm) f.close() # now you can iterate over itmList you could also have just made a list of lists instead of a list of MYCLASS objects class MYCLASS(object): pass # this creates an empty object and you can dynamically add members to it. max _____ From: Alden Meneses [mailto:aldenm at gmail.com] Sent: Wednesday, May 16, 2007 3:25 PM To: Max Slimmer Cc: baypiggies at python.org Subject: Re: [Baypiggies] newbie question - automating my reporting tasks Max - Thanks for your reply. The text files are not in csv format and I will need to figure out how to separate the fields. Space as a separator will not work as values have spaces in them. The current text file I am looking at seems to have fields that are at fixed width and the each line I want are encapsulated in "". The example you showed below will be usefull once I accomplish the above task. Chris - Thank you for your reply. The link you provided have some examples of file and string manipulation which will be a very useful read. Alden On 5/16/07, Max Slimmer wrote: You indicated you receive text files, if they are comma delimited you can parse them with the csv library and thus read them into python lists of lists onece you have your data in a list of lists you could simply operate on it there or you could create objects from each list element leaving you with a list of objects exch representing one row. say you keep it simple and you have incoming data consisting of name, rate, amt. >>> data = [['name1',12.5, 123.66],['name2',5.6,421]] >>> data [['name1', 12.5, 123.66], ['name2', 5.5999999999999996, 421]] you can sum all the amt's with >>> tot = sum(row[2] for row in data) >>> tot 544.65999999999997 or you can sort the data by rate: >>> data.sort(key=lambda i:i[1]) # see http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/305304 for interesting things to do with sort >>> data [['name2', 5.5999999999999996, 421], ['name1', 12.5, 123.66]] play with the interactive interpreter max _____ From: baypiggies-bounces at python.org [mailto: baypiggies-bounces at python.org] On Behalf Of Alden Meneses Sent: Wednesday, May 16, 2007 10:45 AM To: baypiggies at python.org Subject: [Baypiggies] newbie question - automating my reporting tasks Hello all, It does seem that Python is easier to lean than PERL. and I like the interpreter. I have some text files that I download from an AS400 and format with Excel. Basically I convert the text to columns then sort and subtotal. The results are then emailed to various people and also used in other reports. Haven't really thought out how to automate this whole process but wanted to start with a project to learn python and go from there. I have skimmed throught the python tutorial and now getting into python in a nutshell, 2nd edition and would welcome any thoughts or suggestions in getting my project off the ground. I've taken programming courses in college - C, C++, PERL, FORTRAN, PASCAL, UNIX shell scripting and its been awhile since I had to rely on it. Thanks in advance, Alden -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/baypiggies/attachments/20070516/0cc0ca2f/attachment.html From jim at well.com Thu May 17 03:47:48 2007 From: jim at well.com (jim stockford) Date: Wed, 16 May 2007 18:47:48 -0700 Subject: [Baypiggies] Proposal for June meeting speaker--Collin Winter on unittest Message-ID: Proposal for the June meeting: Collin Winter is "interested in giving a talk during the June BayPiggies meeting about my work to redesign Python's unittest module. This would in essence be a preview of the presentation I'll be giving at EuroPython 2007 on the same topic. "I don't have my EuroPython abstract available from this machine, buthere are two blog posts I've written about test_harness (the unittest redesign)." http://oakwinter.com/code/motivation-for-rewriting-unittest/ http://oakwinter.com/code/a-new-unittest/ What do you think? Remember that Alex will present part 2 of his Python for Programmers talk in July, i.e. newbies night part 2. Wesley Chun has the following backup talk possibilities that he can present on short notice: - sockets and network programming - internet client programming - web/cgi programming - programming microsoft office (win32 COM client programming) jim From Vivian.Neou at nominum.com Thu May 17 05:46:30 2007 From: Vivian.Neou at nominum.com (Vivian Neou) Date: Wed, 16 May 2007 20:46:30 -0700 (PDT) Subject: [Baypiggies] Looking for a QA & Release Engineer Message-ID: <20070516202842.C50020@shell-ng.nominum.com> Hi - I'm looking for someone to join my test and release engineering team. Description below. Vivian Neou Nominum, Inc. ---------------------------- Position: Senior QA and Release Engineer Location: Redwood City, CA Description: This position will participate in all aspects of test and release engineering, including creating and extending testing and release frameworks in Python, writing and implementing test plans, and building and releasing products. The engineer will work closely with the development teams to make sure that identified problems are resolved. The ideal candidate will have senior level system/network admin skills as well as a testing background. Strong python skills are important. Experience with DHCP or DNS is a plus, as well as experience with Linux and/or Solaris. Attention to detail is important as well as good problem solving skills. Requirements: - Extensive Python experience - Solid analytical skills - Strong verbal and written communications skills Desired: - Experience with software testing, build and release engineering - Knowledge of subversion, scons, and other Unix-based software development tools - Knowledge and experience with at least two of the following operating systems: Solaris, Redhat Enterprise Linux, SuSE Enterprise Linux, and/or FreeBSD. - Knowledge of DHCP and DNS protocols To apply, please send your resume to jobs at nominum.com with "Senior QA and Release Engineer" in the subject. About Nominum: Nominum is a global provider of ENUM-based IP-application routing directory, DNS, and DHCP solutions that enable communication providers to deliver high quality always-on broadband internet and innovative services to their customers, including VoIP, push to talk, fixed-mobile convergence, IPTV, and triple-play. Nominum is a fun, flexible and fast moving place to work with interesting people, challenging tasks, and experienced leadership. Headquartered in Redwood City, CA., Nominum is a privately held company. From jjinux at gmail.com Thu May 17 11:54:03 2007 From: jjinux at gmail.com (Shannon -jj Behrens) Date: Thu, 17 May 2007 02:54:03 -0700 Subject: [Baypiggies] newbie question - automating my reporting tasks In-Reply-To: <221610dc0705161525qc6609deg2722f280d52df366@mail.gmail.com> References: <221610dc0705161045l7b4da626s4fc94a7ca2f94581@mail.gmail.com> <200705161944.l4GJi3T5012307@a.mail.sonic.net> <221610dc0705161525qc6609deg2722f280d52df366@mail.gmail.com> Message-ID: Don't forget about the "process" module if you need to "shell" out. If the fields are at fixed positions, read in the entire line and using string slicing to get them out. By the way, the csv module is pretty configurable. It can work with tabs, spaces, etc., with all sorts of quoting rules. I seem to remember seeing an example in some book of how to automate Excel using Python and COM. It may have been in "Learning Python" or the "Python Cookbook". There is a book for Python on Windows. Using COM in Python is surprisingly easy. Happy Hacking! -jj On 5/16/07, Alden Meneses wrote: > Max - Thanks for your reply. The text files are not in csv format and I will > need to figure out how to separate the fields. Space as a separator will not > work as values have spaces in them. The current text file I am looking at > seems to have fields that are at fixed width and the each line I want are > encapsulated in "". The example you showed below will be usefull once I > accomplish the above task. > > Chris - Thank you for your reply. The link you provided have some examples > of file and string manipulation which will be a very useful read. > > Alden > > > > On 5/16/07, Max Slimmer wrote: > > > > > > You indicated you receive text files, if they are comma delimited you can > parse them with the csv library and thus read them into python lists of > lists > > onece you have your data in a list of lists you could simply operate on it > there or you could create objects from each list element leaving you with a > list of objects exch representing one row. > > > > say you keep it simple and you have incoming data consisting of name, > rate, amt. > > >>> data = [['name1',12.5, 123.66],['name2',5.6,421]] > > >>> data > > [['name1', 12.5, 123.66], ['name2', 5.5999999999999996, 421]] > > you can sum all the amt's with > > >>> tot = sum(row[2] for row in data) > > >>> tot > > 544.65999999999997 > > or you can sort the data by rate: > > >>> data.sort(key=lambda i:i[1]) # see > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/305304 > for interesting things to do with sort > > >>> data > > [['name2', 5.5999999999999996, 421], ['name1', 12.5, 123.66]] > > > > play with the interactive interpreter > > > > max > > > > > > > > ________________________________ > From: baypiggies-bounces at python.org [mailto: baypiggies-bounces at python.org] > On Behalf Of Alden Meneses > > Sent: Wednesday, May 16, 2007 10:45 AM > > To: baypiggies at python.org > > Subject: [Baypiggies] newbie question - automating my reporting tasks > > > > > > > > > > Hello all, > > > > It does seem that Python is easier to lean than PERL. and I like the > interpreter. > > > > I have some text files that I download from an AS400 and format with > Excel. Basically I convert the text to columns then sort and subtotal. The > results are then emailed to various people and also used in other reports. > Haven't really thought out how to automate this whole process but wanted to > start with a project to learn python and go from there. > > > > I have skimmed throught the python tutorial and now getting into python in > a nutshell, 2nd edition and would welcome any thoughts or suggestions in > getting my project off the ground. I've taken programming courses in college > - C, C++, PERL, FORTRAN, PASCAL, UNIX shell scripting and its been awhile > since I had to rely on it. > > > > Thanks in advance, > > Alden > > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > -- http://jjinux.blogspot.com/ From jjinux at gmail.com Thu May 17 11:59:01 2007 From: jjinux at gmail.com (Shannon -jj Behrens) Date: Thu, 17 May 2007 02:59:01 -0700 Subject: [Baypiggies] Learning Python for a Quality Assurance Engineer In-Reply-To: <6206.29608.qm@web82007.mail.mud.yahoo.com> References: <6206.29608.qm@web82007.mail.mud.yahoo.com> Message-ID: On 5/15/07, Samuel Safyan wrote: > I was wondering if there are any schools in the Bay Area, particularly in > the Peninsula, that teach Advanced Quality Assurance methodologies? I would > be very much interested in taking a course in Python/Jython that trains > students in various Testing tools (e.g. Grinder Load test) and writing your > own Test Scripts (e.g. browsing sites using urllib2 and comparing the HTML > output). > Thank you, > Sam > P.S. Even any good Quality Assurance related Python tutorial sites would be > helpful. I took the Python Testing Tools tutorial at PyCon, and I did my best to summarize it: http://jjinux.blogspot.com/2007/02/pycon-testing-tools-in-python.html Happy Testing! -jj -- http://jjinux.blogspot.com/ From DennisR at dair.com Thu May 17 16:21:31 2007 From: DennisR at dair.com (Dennis Reinhardt) Date: Thu, 17 May 2007 07:21:31 -0700 Subject: [Baypiggies] newbie question - automating my reporting tasks In-Reply-To: References: <221610dc0705161525qc6609deg2722f280d52df366@mail.gmail.com> <221610dc0705161045l7b4da626s4fc94a7ca2f94581@mail.gmail.com> <200705161944.l4GJi3T5012307@a.mail.sonic.net> <221610dc0705161525qc6609deg2722f280d52df366@mail.gmail.com> Message-ID: <5.1.0.14.0.20070517071929.00c05740@localhost> At 02:54 AM 5/17/2007, Shannon -jj Behrens wrote: >I seem to remember seeing an example in some book of how to automate >Excel using Python and COM. It may have been in "Learning Python" or >the "Python Cookbook". There is a book for Python on Windows. Using >COM in Python is surprisingly easy. Chapter 9 of Python Programming on Win32 by Hammond & Robinson is titled Integration with Excel. --------------------------------- | Dennis | DennisR at dair.com | | Reinhardt | http://www.dair.com | --------------------------------- From bsergean at gmail.com Thu May 17 17:22:48 2007 From: bsergean at gmail.com (Benjamin Sergeant) Date: Thu, 17 May 2007 08:22:48 -0700 Subject: [Baypiggies] python webmail Message-ID: <1621f9fa0705170822nf7239ceje7b2a9d2c4cae8bd@mail.gmail.com> Hi folks, As you can guess from my email adress I like to use the gmail webmail provided by this small startup in mountain view. But I also have a company mail that I plug (plumber) to procmail, bogofilter, fetchmail, pine, each of those having their funky configuration file... For sure I could install kmail or thunderbill, but I would lost my poor hacker mojo and burn in hell ! I'm looking for something like squiremail, but what I found on the web (ppwm) was last updated in 2002. Maybe the developper retired in greenland and is preparing a full feature 1.0 release to be released soon ? With all stdlib email libraries, and the pletore of web framework available for python it looks like a place where python would shine. I'm not taking more time from you, you can go back to slashdot :) Benjamin. From wescpy at gmail.com Thu May 17 20:39:42 2007 From: wescpy at gmail.com (wesley chun) Date: Thu, 17 May 2007 11:39:42 -0700 Subject: [Baypiggies] newbie question - automating my reporting tasks In-Reply-To: References: <221610dc0705161045l7b4da626s4fc94a7ca2f94581@mail.gmail.com> <200705161944.l4GJi3T5012307@a.mail.sonic.net> <221610dc0705161525qc6609deg2722f280d52df366@mail.gmail.com> Message-ID: <78b3a9580705171139m75629744k1f0d072a3c780055@mail.gmail.com> > I seem to remember seeing an example in some book of how to automate > Excel using Python and COM. It may have been in "Learning Python" or > the "Python Cookbook"... Using > COM in Python is surprisingly easy. "Core Python" (2nd ed) has an entire section in the final chapter on using Python and COM with Excel, PowerPoint, Word, and Outlook. since you were the lead tech reviewer, i'm sure this was the book you were thinking of. ;-) i have a Win32/COM talk that i've developed based on the book's material that i would eventually like to deliver if there's sufficient interest. cheers, -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "Core Python Programming", Prentice Hall, (c)2007,2001 http://corepython.com wesley.j.chun :: wescpy-at-gmail.com python training and technical consulting cyberweb.consulting : silicon valley, ca http://cyberwebconsulting.com From jhawk at innovativerobotics.com Fri May 18 07:29:19 2007 From: jhawk at innovativerobotics.com (jhawk at innovativerobotics.com) Date: Fri, 18 May 2007 01:29:19 -0400 Subject: [Baypiggies] Word document manipulation ( newbie ) Message-ID: <5217487.192101179466159324.JavaMail.servlet@perfora> Sorry if this in the wrong forum. Please advise if so. But could some one point me in the direction of automating a word document. I have read that there is code written but unfortunately I don't know how to access it. I have installed python 2.4.4 with pywin32-210.win32-py2.4. Help From kelly at nttmcl.com Fri May 18 21:06:48 2007 From: kelly at nttmcl.com (Kelly Yancey) Date: Fri, 18 May 2007 12:06:48 -0700 Subject: [Baypiggies] Word document manipulation ( newbie ) In-Reply-To: <5217487.192101179466159324.JavaMail.servlet@perfora> References: <5217487.192101179466159324.JavaMail.servlet@perfora> Message-ID: <464DF948.9080909@nttmcl.com> jhawk at innovativerobotics.com wrote:: > Sorry if this in the wrong forum. Please advise if so. But could > some one point me in the direction of automating a word document. I > have read that there is code written but unfortunately I don't know > how to access it. I have installed python 2.4.4 with > pywin32-210.win32-py2.4. Help http://www.bstpierre.org/Projects/msword.py You might also want to pick up a copy of O'Reilly's "Python Programming on Win32": http://safari.oreilly.com/1565926218 Kelly -- Kelly Yancey http://kbyanc.blogspot.com/ From wescpy at gmail.com Sat May 19 00:36:52 2007 From: wescpy at gmail.com (wesley chun) Date: Fri, 18 May 2007 15:36:52 -0700 Subject: [Baypiggies] Word document manipulation ( newbie ) In-Reply-To: <5217487.192101179466159324.JavaMail.servlet@perfora> References: <5217487.192101179466159324.JavaMail.servlet@perfora> Message-ID: <78b3a9580705181536o2e5da756u972e35892d8cecf1@mail.gmail.com> > Sorry if this in the wrong forum. Please advise if so. But could some one point me in the direction of automating a word document. I have read that there is code written but unfortunately I don't know how to access it. I have installed python 2.4.4 with pywin32-210.win32-py2.4. Help what do you mean by automation? i have some code that automatically generates a Word document dynamically at runtime in ch23 of "Core Python". also see my recent Win32/COMment from yesterday: http://mail.python.org/pipermail/baypiggies/2007-May/002234.html hope this helps! -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "Core Python Programming", Prentice Hall, (c)2007,2001 http://corepython.com wesley.j.chun :: wescpy-at-gmail.com python training and technical consulting cyberweb.consulting : silicon valley, ca http://cyberwebconsulting.com From rdm at cfcl.com Wed May 23 00:58:10 2007 From: rdm at cfcl.com (Rich Morin) Date: Tue, 22 May 2007 15:58:10 -0700 Subject: [Baypiggies] BASS Meeting (SF), Wed. May 23 Message-ID: The Beer and Scripting SIG rides again! If you'd like to eat good Italian food, chat with other local scripters, and possibly take a look at laptop-demoed scripting hacks, this is the place to do it! For your convenience, here are the critical details: Date: Wednesday, May 23, 2007 (4th. Wed.) Time: 8:00 pm Place: Pasquales Pizzeria 701 Irving St. (At 8th. Ave.) San Francisco, California, USA 415/661-2140 See the BASS web page for more information: http://cfcl.com/rdm/bass/ -r -- http://www.cfcl.com/rdm Rich Morin http://www.cfcl.com/rdm/resume rdm at cfcl.com http://www.cfcl.com/rdm/weblog +1 650-873-7841 Technical editing and writing, programming, and web development From hcharnaw at vmware.com Wed May 23 01:10:13 2007 From: hcharnaw at vmware.com (Hayley Charnaw (c)) Date: Tue, 22 May 2007 16:10:13 -0700 Subject: [Baypiggies] VMware Python Engineer Message-ID: <040EC1DE5CE40647A1E7BEECD85F62CB06D1829C@PA-EXCH04.vmware.com> Python Software Engineer - ESX Installation and Update Management Location: Palo Alto, CA VMware Inc., a pioneer in virtualization software for industry-standard computers, is seeking a software engineer with strong distributed systems, client-server and scalable applications development experience. ESX server is a robust, production-proved virtualization layer than abstracts processor, memory, storage and networking resources into multiple virtual machines. ESX Server delivers the highest levels of performance, scalability and flexibility required for enterprise IT environments. This R&D position resides in our Core Technologies Group and will be a part of our Kernel Applications Group. This is open source software. The engineer in this role will gain exposure to many parts of our core OS and our applications. As a result of this exposure, he/she will interface with many groups in and outside of R&D. This is an extremely visible role, at VMware we strive to make our user experience seamless. This is an opportunity to work with the best and brightest in the industry. Responsibilities: This position's primary role is in the design and implementation of Open Source software for ESX installation, deployment and distribution. Work will involve interaction with product management and will require work with releases of new operating system versions, driver updates, and building Red Hat Package Management (RPM) packages. Most of the coding will be in done in Python with some limited use of Perl and C. Requirements: BS in Computer Science or equivalent. Fluent in Python. Experience in Linux administration and configuration. Experience with RPMs. Experience building a Linux distribution or Linux rescue disk is preferred. C and C++ programming is desired. Experience with signature verification (GPG, Checksums) desired Experience with GTK or Glade a plus. Experience with YUM a plus. Interested parties please contact Hayley Charnaw hcharnaw at vmware.com or 650-475-5377 Hayley Charnaw Recruiter, R&D 650-475-5377 Direct Let's Connect! http://www.linkedin.com/in/hayleycharnaw -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/baypiggies/attachments/20070522/19c06dba/attachment.htm From lhawthorn at google.com Wed May 23 01:46:51 2007 From: lhawthorn at google.com (Leslie Hawthorn) Date: Tue, 22 May 2007 16:46:51 -0700 Subject: [Baypiggies] video from last session Message-ID: <4869cee70705221646r3384c6acq3fa97cac7b43de32@mail.gmail.com> Hello everyone, It turns out that we did not collect the required release paperwork from last month's meeting - sorry about that. Can any speakers who were taped get in contact with me so we can get the right paperwork on file (and get the session video up on YouTube)? Cheers, LH -- Leslie Hawthorn Open Source Program Office Google Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/baypiggies/attachments/20070522/51990fa8/attachment.htm From anil at efrontier.com Wed May 23 04:24:13 2007 From: anil at efrontier.com (Anil Kamath) Date: Tue, 22 May 2007 19:24:13 -0700 Subject: [Baypiggies] Efficient Frontier Python Engineer In-Reply-To: <040EC1DE5CE40647A1E7BEECD85F62CB06D1829C@PA-EXCH04.vmware.com> References: <040EC1DE5CE40647A1E7BEECD85F62CB06D1829C@PA-EXCH04.vmware.com> Message-ID: <91F12D2E9C1E2944B36DCC7D7A5E7C16115565@efexch00.corp.efrontier.com> If you are interested in using Python to build scalable distributed systems on Linux platforms managing terabytes of data on PostgreSQL then this one is for you. Efficient Frontier Mountain View, CA http://www.efrontier.com/efficient_frontier/careers.htm Efficient Frontier(tm) is the largest provider of paid search engine marketing (SEM) solutions. By combining technology with sophisticated algorithms, Efficient Frontier maximizes customers ROI on advertising spend, delivering an average increase of 30 - 50% in return on advertising dollars. Efficient Frontier manages more than $400 million in annual PPC spend, counts 80 of the top 500 search advertisers as clients and manages over 25 million keywords.. Python Infrastructure Engineer Efficient Frontier is looking for dynamic individuals who want to be part of building solutions that change the economics of online marketing. As part of Efficient Frontier's world-class team, you will have the opportunity to be a part of a private company and work in a fast-paced, rewarding environment, addressing a red-hot market. We are looking for exceptional software engineers who have the ability to excel in a fast-paced environment where action and initiative are required. Responsibilities: You will work with other engineers to build a large-scale distributed application that acts as the backend to our patented optimizer. You will be writing applications using open-source components that access, process, and update real-time data from Google, Yahoo, MSN, Ask and other search engines. You will develop algorithms, and systems that guarantee high availability of the system. Requirements: * Strong command of Python, FreeBSD, and Unix/Linux. BSCS degree or equivalent and 2+ years of experience working through an entire life cycle of a web-based service from concept, implementation, testing to maintenance. * Ability to work closely with customers, provide technical support in understanding customers' requirements and translate these requirements into technically viable end-to-end solutions including implementation details. * Experience with databases such as Oracle, PostgreSQL, Sybase, mySQL, Ingres and/or Informix. * Familiarity with application level network protocols (e.g., HTTP and/or SSL). * Excellent communication and relationship skills along with being a strong team player. * Demonstrable analytical problem-solving skills. * Ability to thrive in a high-pressured, unstructured, customer-oriented environment. Please send your resumes to jobs at efrontier.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/baypiggies/attachments/20070522/706aa10c/attachment.html From keith at dartworks.biz Wed May 30 00:08:18 2007 From: keith at dartworks.biz (Keith Dart =?UTF-8?B?4pmC?=) Date: Tue, 29 May 2007 15:08:18 -0700 Subject: [Baypiggies] pyNMS update - forking to Pycopia Message-ID: <20070529150818.09daeda5@psyche.corp.google.com> FYI, The pyNMS project is being refactored and forked to a new project called "Pycopia". There is currently not an SVN repository for it, but there are source packages available on the Python cheeseshop: http://cheeseshop.python.org/pypi?%3Aaction=search&term=pycopia&submit=search I am also breaking it up into sub-packages. That is, collections of functionality. That is not complete yet. Once it's complete I'll import it into a new SVN repository. These packages now use the distutils and setuptools. However, some of them won't install by easy_install script. You have to download the source package and do the "distutils thing": "sudo python setup.py install" will work. -- -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Keith Dart public key: ID: 19017044 ===================================================================== From jim at well.com Wed May 30 06:55:28 2007 From: jim at well.com (jim stockford) Date: Tue, 29 May 2007 21:55:28 -0700 Subject: [Baypiggies] Tentative June speaker: Collin Winter on unittest Message-ID: <94b425ef9ba60fe30c23090cc8b81c4e@well.com> Per group response, it looks like our bayPIGgies speaker for June 14 will be Collin Winter talking about his unittest work. Here are links to Collin's "two blog posts I've written about > >> test_harness (the unittest redesign)." > >> http://oakwinter.com/code/motivation-for-rewriting-unittest/ > >> http://oakwinter.com/code/a-new-unittest/