Mailing List Archive

Subject Sender Date
Free Packt ebook "Python Testing: Beginner's Guide" today. - Packt has been giving away an ebook each day this month leading up to Xmas.  Today's book introduces testing in Python through DocTest, unittest, nose, Mocker, and twill.  The book is a little old (2010, Python 2.6), and doesn MJ Dec 20, 2014 4:02 AM
[Job] Senior Python Developer - Preview not available James G. Dec 19, 2014 5:16 PM
Re: [python-181] Error when launching scrapy crawler - $ which python /Applications/anaconda/bin/pyt­hon $ which pip /Applications/anaco Feyzi B. Dec 16, 2014 3:23 PM
Re: [python-181] Python script to add or update Copyright in source code - Preview not available PK S. Dec 16, 2014 9:13 AM
Re: [python-181] Python script to add or update Copyright in source code - Mary, that permissions error looks like a blessing in disguise. Unless there's a line missing from MJ Dec 16, 2014 3:31 AM
Re: [python-181] Python script to add or update Copyright in source code - I'm assuming this is shutil.move? When the destination is an existing file, I believe shutil.move is equivalent to os.rename. There appears to be a Windows bug related to this (http://bugs.python.org/issue8­828). Looks like there may be an alternative i Ricardo N. Dec 16, 2014 12:17 AM
Re: [python-181] Python script to add or update Copyright in source code - How many times does it write the copyright notice to the target file?  From the code here, it looks like the message gets written as many times as there are lines in the source file. On MJ Dec 16, 2014 12:08 AM
Re: [python-181] Python script to add or update Copyright in source code - Of course to be truly defensive, maybe you should ensure you have a backup of the files before you start. Aborting in the middle of writing a file is only one possible catastrophic result... the really nasty results don't look like failures until much Ricardo N. Dec 15, 2014 11:40 PM
Re: [python-181] Python script to add or update Copyright in source code - This is a fine point, and maybe overly defensive programming, but unless you are sure of having backups for the files, when I rewrite in place, I like to rename the old file, write the new file, delete the old file. This way you are protect Haakon C. Dec 15, 2014 10:41 PM
Re: [python-181] Python script to add or update Copyright in source code - Thanks for all of the feedback and article references! So, I looked at many of these Mary S. Dec 15, 2014 9:34 PM
Re: [python-181] Python script to add or update Copyright in source code - To do this in python, one way is simply to iterate over the list of files, opening each file, reading the text into memory, applying the transform, then writing it straight back into the file. Assuming each file can fit comfortably in memory, this is pro Ricardo N. Dec 15, 2014 11:21 AM
Re: [python-181] Python script to add or update Copyright in source code - It depends on your goals. You can do it in memory but the convention is to rename the original f Steve M. Dec 14, 2014 10:59 PM
Re: [python-181] Error when launching scrapy crawler - Is the python you're using, the same one associated with the pip you used to install zope.interface? What paths are returned when you type up "which python" and "which pip"? What happens MJ Dec 14, 2014 6:22 PM
Re: [python-181] Python script to add or update Copyright in source code - If you are on a *nix system (Linux, OS X, ...), I'd recommend doing this through a Bash shell script and using awk or sed. Are all the files in the same directory? On MJ Dec 14, 2014 1:27 PM
Re: [python-181] Python script to add or update Copyright in source code - Sorry...more details... I want to write a Python script that goes through C++ files and adds a comment header with Copyrig Mary S. Dec 14, 2014 6:51 AM
Error when launching scrapy crawler - Feyzi B. Dec 13, 2014 8:23 PM
Re: [python-181] Python script to add or update Copyright in source code - I think more details might be needed. sent from my handy. typos are just part of the fun. On Dec 12,[masked]:59 PM, "Mary Slocum" < maryslocu Jon K. Dec 12, 2014 5:06 PM
Python script to add or update Copyright in source code - Hello, I'm newly getting back into Python and I recall a script for creating or updating Copyright disclaimer/comment header in files. Does anyone have one or know where I can find one? Thanks, Mary Sent from my iPhone Mary S. Dec 12, 2014 4:02 PM
[Job] Operations Lead at Lightkeeper - Lightkeeper is looking for an William B. Dec 12, 2014 3:11 PM
[Job] needed: experienced python/django consultant to help the needy - Hi, we're looking for an experienced django/python develope Steve Dec 11, 2014 5:57 PM
Re: [python-181] Paranoid pirate pattern using Python - On Wed, Dec 10, 2014 at 3:55 AM, kavitha < [address removed] > wrote: Ches M. Dec 9, 2014 5:54 PM
Re: [python-181] Paranoid pirate pattern using Python - Kavi, Since this is all new to you you may want to initially limit yourself to just using ZMQ and add twisted later on if it becomes necessary.  To help you get started look at the sample Python code available in the ZMQ John M. C. Dec 9, 2014 4:04 PM
Paranoid pirate pattern using Python - I am working on a distributed application written using Paranoid Pirate pattern. i need to write functional tests in python to test the behavior of client,worker and router(message queue) when either of these goes down. kavitha Dec 9, 2014 2:55 PM
Re: Python Windows module - So far this looks the most promising.  For those interested, here's the test script I wrote and it let's me display the status of all services. import sys import os sys.path.append(os Matt S. Dec 3, 2014 3:45 PM
Come Play with My 'Toys" on December 4 at the Python Project Night - Hi, JOSEPH O. Dec 2, 2014 11:22 PM
Re: [python-181] Python Windows module - From what I remember the way to do this is through WMI? ( https://en.wikipedia.org/wiki/­Windows_Management_Instrumenta­tion )  Google shows some Ricardo B. Dec 2, 2014 6:41 PM
Re: [python-181] Python Windows module - On Tue, Dec 2, 2014 at 5:16 PM, Corey Goldberg wrote: >>> On Tue, Dec 2, 2014 at 1:21 PM, Matt Shields wrote: >>>> I'm running a Flask/python app on a Linux box and I'm looking for a module >>>> that will l Corey G. Dec 2, 2014 5:23 PM
Re: [python-181] Python Windows module - This takes care of the windows service stuff: http://code.activestate.com/re­cipes/59872-manipulating-windo­ws-services/ One then needs to wrap some kind of head on top of this to 'surface' it to Linux (i.e. make it accessible from Linux). Some p Paul H. Dec 2, 2014 5:12 PM
Re: [python-181] Python Windows module - AutoHotKey appears to be a Windows application.  The python module I'm looking for needs to work under Linux and query the Windows service. Matt Matt S. Dec 2, 2014 4:51 PM
Re: [python-181] Python Windows module - Perhaps look at AutoHotKey. It can poke into all sorts of Windows functions. E.g.:  http://www.autohotkey.com/boa E B Dec 2, 2014 4:44 PM
Python Windows module - I'm running a Flask/python app on a Linux box and I'm looking for a module that will let me query/start/stop a Windows service.  Does anyone know of any such module? Matt Matt S. Dec 2, 2014 4:11 PM
Showoff to Boston Python - November 2014 - Hi All, We're featuring five submissions for our inaugural showoff email. We have two libraries focused on Scott S. Nov 30, 2014 11:52 PM
Re: [python-181] Help with if_name_=="_main_" issue - for reference...  this magic idiom is called "dunder"** ... for "Double UNDERscore".  so... "dunder main" in your case.  easy to remember and pronounce that way.  Thank Ned for this h Corey G. Nov 29, 2014 12:04 AM
Re: [python-181] Help with if_name_=="_main_" issue - Thank you everyone. That did the trick! Sent from my iPhone On Nov 28, 2014, at 9:55 PM, James < Tom M. Nov 28, 2014 10:00 PM
Re: [python-181] Help with if_name_=="_main_" issue - each of the underscores should be repeated twice. LINK included for ann example. http://stackoverflow.com/quest­ions/419163/what-does-if-name-­main James Nov 28, 2014 9:24 PM
Help with if_name_=="_main_" issue - Hi everyone, I was looking to get some help on an error message I am getting while trying to write a program. I keep getting the message name not defined when I type the code if _name_ == "_main_" code. With the instructions I was reading that is th Tom M. Nov 28, 2014 5:59 PM
Other events you might be interested in - Hi all,  Shopping for a new python job or just some new nerdy connections? We've got you covered!  More about this list here, Deb N. Nov 28, 2014 1:42 PM
[Job] Help me with data extraction, manipulation, and formatting. - Mike F. Nov 19, 2014 9:22 AM
Re: [python-181] Showoff to Boston Python! - Update: I accidentally listed incorrect email addresses in my earlier message about the Showoff list.  The correct addresses are  showoff@boston Scott S. Nov 14, 2014 12:06 PM
Showoff to Boston Python! - Hi Pythonistas, Scott S. Nov 14, 2014 1:05 AM
Talks for December 11th? - Hey all, We have a presentation night scheduled for Thursday December 11th, but no speakers yet!! If you would like to give a talk, send me an email. Tell me your topic, with a paragraph about what you will cover, who the talk is aimed at, and Ned B. Nov 11, 2014 4:06 PM
[Job] HourlyNerd is hiring a senior dev - we're a Flask shop! - Hello Fellow Developers! I work at a great startup called HourlyNerd -- we are a quickly growing online marketplace and project management solution for consultants in the realm of business and finance. We're a small s Margaret S. Nov 10, 2014 8:02 PM
[Job] ClusterHQ is hiring: distributed systems, open source, work/life balance - Hi, We're a startup with a mission t Itamar T. Oct 25, 2014 8:03 AM
Other events you might be interested in - Hi all, Fall brings lots of local educational and network building opportunities! Guidelines for posting other events are on our "About page" here, http://www.meetup.com/bosto Deb N. Oct 23, 2014 1:17 PM
[Job] Test Engineer at Veson Nautical - Kerry O. Oct 9, 2014 9:03 AM
[Job] Quant Analyst at Windhaven - Tansu D. Oct 7, 2014 11:36 AM
Some Potter Humour - http://imgur.com/gallery/iwrf4­ES Hope all Eric M. Sep 29, 2014 5:23 PM
Web Application Developer Job at Vertex Pharmaceuticals - Michael G. Sep 26, 2014 1:13 PM
[Job] Software Engineer @ Pazien - BosPythonistas, I recently joined a startup located in Newton Upper Falls: Pazien ( Mike C. Sep 24, 2014 12:46 PM
[Job] Web Developer at EnergySage ("the Expedia of Solar") - We're looking for capable web developers to join our Kendall Square based engineering team. We're a Django shop using jQuery, Git, MySQL, AWS and always looking to learn from each other. Come have fun building something that can really make a diff Jamie B. Sep 17, 2014 1:48 PM
PyCon Presentation Proposal Writing - Hey, what's good, y'all? For those who too are getting in during these last few days their proposals for next year's PyCon, yesterday, in the Pycoder newsletter ( https:// MJ Sep 6, 2014 2:41 AM
[job] Senior Python/Django developer for educational project - Hi everyone! Six Red Marbles is looking for a Senior Python/Django developer to join our development team here in Boston. We are looking for someone that can code yes, but also someone that can understand business require Leonardo S. Sep 2, 2014 2:00 PM
Boston Data-Con Event (Registration Update) - Hi Folks, A Boston Data-Con event will be held at Microsoft NERD the weekend of 9/12 to 9/14.  The event is organized in "sessions blocks", e.g. Python, Text Anal John V. Aug 27, 2014 7:50 PM
Boston Data-Con Event -- Includes Python Sessions!!! - Hi Folks, The Boston Data-Con event will be held at Microsoft NERD the weekend of 9/12 to 9/14.  The event is organized in "sessions blocks", e.g. Python, Text Analytics, Data V John V. Aug 27, 2014 5:11 PM
[job] Quantopian Operations Engineer - Jonathan K. Aug 27, 2014 4:52 PM
[Job] Python developer - Hi everybody, ADS at Harvard-Smithsonian Center for Astrophysics has a new position for a python developer - she/he will be writing a software that is used by thousands of very clever guys across the world every day (righ Roman Aug 26, 2014 2:52 PM
[Job] Community Manager at edX - EdX has an opening for a high-profile position leading the Open edX effort: Ned B. Aug 26, 2014 10:35 AM
Other events you might be interested in - Hi all, Next month brings a little local action and some events you might want to plan your fall travel around. Guidelines for posting other events are on our "About page" here, Deb N. Aug 25, 2014 1:15 PM
PyCon talk proposals - Hey all, PyCon 2015 will be in Montreal in April: https://us.pycon.org/2015/ That seems like a long way away, but the proposals for talks are due by September 15th, a little more than three weeks from now! Speaking at PyCon is a great experience Ned B. Aug 22, 2014 11:40 PM
[Job] Civic-minded developer needed - Make government better through code - If you're civic-minded, projects don't get much better. When this one is done, we will have accomplished something important. Here's the item you'll be able to add to your resume: Primary developer for a client management system that dramatically Steve Aug 20, 2014 11:19 PM
[Job} Software Test Engineer at Veson Nautical - Kerry O. Aug 13, 2014 2:48 PM
Re: [python-181] PyGotham in NYC next weekend - On Sun, Aug 10, 2014 at 06:15:28PM -0400, Ned Batchelder wrote: > A message from Sarah Guido down in New York City: > > Hi, > > My name is Sarah Guido and a bunch of us from NYC Python (http://nycpython.org) > are running a Python conference on Au Paul T. Aug 10, 2014 7:02 PM
PyGotham in NYC next weekend - A message from Sarah Guido down in New York City: Ned B. Aug 10, 2014 6:12 PM
"Boston Data-Con" Event: Invitation to Present on PyData - Hi Folks, In September "Boston Data-Con" will be held on the weekend of 9/12-9/14 at Microsoft NERD.  The event will include several sessions pertaining to Python. John V. Aug 9, 2014 5:02 PM
[Job] Looking for engineers and a lead at WordStream - Good morning, I would share with you a couple positions WordStream is looking for. I am Laurent-Philippe Gros, Director of Solutions Architecture and Advanced Algorithms. I presented at our last meetup and I will present more of the thing we build Laurent-Philippe G. Aug 1, 2014 4:17 PM
[Job] HourlyNerd is hiring Engineers (Chinatown) - Brian M Jul 31, 2014 1:41 PM
[Job] AppNeta is hiring engineers, designer, & product manager - Hi Boston Python!  At AppNeta we love Python and are currently hiring for a variety of roles that I'd like to share with you all! Chris E. Jul 31, 2014 11:06 AM
[job] Quantopian hiring DevOps! - Quantopian needs a world-class DevOps Engine Jonathan K. Jul 29, 2014 7:20 AM
Follow ups on yesterday talk -- Bouncer | Monarch - Hi guys, Thanks for having me last night.  Wanted to share links to the open-source projects, as well as  elaborate on one of the questions asked during the Q&A after my presentation: R Jonathan T. Jul 23, 2014 4:27 PM
Other events you might be interested in - Hi all, We got both kinds of free this month, with tons of free software *and* a code you can use for free admission. Guidelines for posting other events are on our "About page" here, Deb N. Jul 22, 2014 3:34 PM
[Job] ZEFR Boston | Hiring Experienced Engineers - Hi Guys, tl;dr; Jonathan T. Jul 21, 2014 11:39 AM
RE: [python-181] Removal of non-ASCII chars from a text file using Python - Preview not available Alex A Jul 14, 2014 1:33 PM
Re: [python-181] Removal of non-ASCII chars from a text file using Python - https://docs.python.org/2/libr­ary/stdtypes.html#str.translat­e '...For string objects, set the table argument to David C. P. Jul 10, 2014 8:21 AM
Re: [python-181] Removal of non-ASCII chars from a text file using Python - Cool idea with maketrans but I think it's harder to do a negation (i.e. "not these characters"). Then again since it's only ascii you could do something like [chr(x) for x in set(range(128)) - set([11, 12, 15 ...])] or som Mali A. Jul 9, 2014 9:22 PM
Re: [python-181] Removal of non-ASCII chars from a text file using Python - There might even be a more literal translation from tr to Python using maketrans and trans Matt M. Jul 9, 2014 7:29 PM
Re: [python-181] Removal of non-ASCII chars from a text file using Python - You didn't say why you needed to do this with Python, but it seems a shame to invoke a subprocess to Ned B. Jul 9, 2014 7:21 PM
Re: [python-181] Removal of non-ASCII chars from a text file using Python - Rather than simply removing the emojibake characters, check out the ftfy module for fixing broken Unicode. It will fix most of the common problems with Unicode encodings. Tim L. Jul 9, 2014 5:45 PM
RE: [python-181] Removal of non-ASCII chars from a text file using Python - Richard L. Jul 9, 2014 5:31 PM
RE: [python-181] Removal of non-ASCII chars from a text file using Python - Preview not available Alex A Jul 9, 2014 3:27 PM
Re: [python-181] Removal of non-ASCII chars from a text file using Python - If you could enclose a sample row or two that would make answering the question easier On Jul 9, 2014, at 12:39 PM, Alex A < bob b. Jul 9, 2014 3:09 PM
Re: [python-181] Removal of non-ASCII chars from a text file using Python - You don't necessarily need Python for this. Since you're already using bash (tr command), why not just use sed: cat dirtyfile | sed 's/[^[:print:]]//g' > cleanfile Alex T. Jul 9, 2014 1:47 PM
Re: [python-181] Removal of non-ASCII chars from a text file using Python - Preview not available John B. Jul 9, 2014 1:26 PM
Re: [python-181] Removal of non-ASCII chars from a text file using Python - "s" is the string you are sanitizing: ''.join(c for c in s if c.isalnum()) On Wed, Jul 9, 2014 at 12:40 PM, Alex A wrote: > Hi, > > Does anyone know how to remove junk characters from a text log file using > Python? > Corey G. Jul 9, 2014 1:03 PM
Re: [python-181] Removal of non-ASCII chars from a text file using Python - Simple Example >> t = '**~~\nhello world\n~~**' >> t.strip('*~\n')  'hello world' Also take a look at unicodedata.normalize: Tom Jul 9, 2014 12:54 PM
Re: [python-181] Removal of non-ASCII chars from a text file using Python - Preview not available John B. Jul 9, 2014 12:50 PM
Re: [python-181] Removal of non-ASCII chars from a text file using Python - First you'll have to define "junk characters". Any non-alpha numeric, including punctuations or non-printing chars... what? Check the str functions in  JoeC Jul 9, 2014 12:48 PM
Re: [python-181] Removal of non-ASCII chars from a text file using Python - Alex, if you're simply trying to remove (or apply a decent brute-force conversion) of non-ascii characters to ascii, I would check out Unidecode. It's similar to date_util in its utility for converting unicode to ascii. Jeff T. Jul 9, 2014 12:45 PM
Removal of non-ASCII chars from a text file using Python - Preview not available Alex A Jul 9, 2014 11:22 AM
Looking for talks: What I Built at Work - The July presentation night is about What I Built at Work. I'm looking for talks about the solution to an interesting challenge at work. If you think you've done something cool or unusual for your job, tell us about it! Send me an email telling m Ned B. Jul 8, 2014 9:29 PM
[Job] Seeking Team Lead / Architect - Are you a Python rock star with team leadership experience, open mentoring style, and serious architectural chops?  Do you wish you could use your skills and experience to meaningfully contribute to the well being of your fellow Nick K. Jul 3, 2014 2:26 PM
Re: [python-181] Favorite Python data structure - My favorite Python data structure has to be collections.defaultdict. Seriously, it should just be a builtin.  My favorite general data structure is the trie. Not a ton of utility, but it's such a cool idea! M Max R. Jul 3, 2014 11:44 AM
RE: [python-181] Favorite Python data structure - 1) http://www.amazon.com/Problem-­Solving-Algorithms-Structures-­EDITION/dp/1590282574/ref=pd_s­im_b_6?ie=UTF8&refRID=18VDYN0H­Y3CD24G9S0BP 2) http://www.amazon.com/Fundamen­tals-Python-Structures-Kenneth­-Lambert/dp/1285752007/ref=pd_­sim_b_2?ie=UTF8&refRID=0V Mikhail G. Jul 3, 2014 10:12 AM
Re: [python-181] Favorite Python data structure - Brandon Rhodes gave a fabulous talk on python data structures at pycon 2014 Here's the video: http://pyvideo.org/video/2571/­all- Pamela M. Jul 3, 2014 9:58 AM
Re: [python-181] Favorite Python data structure - A data structure that is built into the main Python library that I've found handy on a few occasions is priority queue. The underlying data structure in memory is an array, but the priority queue algorithm just organizes an implicit bin Adam D. Jul 3, 2014 8:32 AM
Re: [python-181] Favorite Python data structure - I like django's [deprecated] SortedDict. I'm guessing it's being replaced by collections.OrderedDict, but SortedDict allows you to reorder the keys in place, while as near as I can tell, OrderedDict requires you to build a new OrderedDict to reorder ms Jul 3, 2014 3:02 AM
Re: [python-181] Favorite Python data structure - I also love defaultdict. They help you eliminate a lot of boilerplate creation code when you have a dict of another complex data structure, like a dict of lists or a dict of dicts. Mali A. Jul 2, 2014 9:59 PM
Re: [python-181] Favorite Python data structure - I mentioned Counters.  I've got an iPython notebook that demonstrates some cool ways to use them.  You can read it on nbviewer: Allen D. Jul 2, 2014 7:39 PM
Re: [python-181] Favorite Python data structure - My recollection (pun intended) is that they were Counter and namedtuple (both in collections). I sort of put in a plug for Counter, since I used it in my puzzle solution, but namedtuple is mighty fine too.  Incidentall Haakon C. Jul 2, 2014 6:42 PM
[Job] CFPB Hiring Software Developers to Make Financial Products Work for Consumers - Bruce A. Jul 2, 2014 5:50 PM
Re: [python-181] Favorite Python data structure - The two mentioned were a `Counter` and `namedtuple` from https://docs.python.org/2/libr­ary/collections.html (Just to start the thread) Paul T. Jul 2, 2014 5:09 PM

Our Sponsors

  • Addgene

    Addgene is sponsoring the January project night

  • indico

    indico is sponsoring pizza for the December presentation night

  • Akamai

    Akamai is sponsoring pizza and space for the November project night

  • Quantopian

    Quantopian is sponsoring pizza for the October presentation night

  • Cogo Labs

    Cogo Labs is sponsoring drinks after the October presentation night

  • Vertex

    Vertex is sponsoring pizza for the October project night

  • InsightSquared

    InsightSquared is sponsoring drinks for the September presentation night

  • NetProspex

    NetProspex is sponsoring pizza for the September presentation night

  • AppNeta

    AppNeta is sponsoring pizza for the September project night

  • Twilio

    Twilio is sponsoring the August project night

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy