From ams.fwd at gmail.com Thu Jan 3 01:38:52 2019 From: ams.fwd at gmail.com (Aseem Mohanty) Date: Wed, 2 Jan 2019 22:38:52 -0800 Subject: [Baypiggies] Descriptors with metaclasses don't quite seem to work Message-ID: Hi All. I have the following code where I am adding a metaclass to a descriptor. This is a reduction case so the metaclass really does nothing. Running this with python3 does not appear to trigger the descriptors __get__ or __set__. Without the metaclass things work as expected. I am not exactly sure why having the metaclass would not work as all the attributes for the descriptor appear to be preserved. Any help would be greatly appreciated. TIA AM #!/usr/bin/env python # -*- coding: utf-8 -*- class Meta(type): def __init__(cls, name, bases, attrs): print('meta init') super().__init__(name, bases, attrs) def __call__(cls, *args, **kwargs): print('meta call') inst = super().__call__() class X(metaclass=Meta): def __init__(self): print('init X') self._val = None def __get__(self, obj, obj_type): print('getting value') return self._val def __set__(self, obj, value): print('-- setting value') self._val = value class M: x = X() m = M() m.x = 1 -------------- next part -------------- An HTML attachment was scrubbed... URL: From chityala at gmail.com Thu Jan 3 01:41:39 2019 From: chityala at gmail.com (Ravi Chityala) Date: Wed, 2 Jan 2019 22:41:39 -0800 Subject: [Baypiggies] Python course at UCSC Extension Message-ID: Hello All, I will be teaching the evening 10-week long course, "Python for programmers" at the UCSC extension in Santa Clara every Wednesday from 6:30 - 9:30 pm starting from January 23rd, 2019 until March 27th, 2019. The course will cover the most important aspects of Python and will be very hands-on with in-class activity and homework. I will also provide Jupyter notebook that will contain many examples. To register for the course, visit http://course.ucsc-extension.edu/modules/shop/index.html?action=section&OfferingID=5591127&SectionID=6339223 and select section CMPR.X416.(22). UCSC Extension Silicon Valley is accredited by various bodies through the University of California, Santa Cruz. Hence, many employers will reimburse the cost of the course. Join now to become a Pythonista and program in one of the fastest growing language. You can email me at chityala at gmail.com if you have any questions. Thanks, Ravi Chityala Essential Python book https://www.amazon.com/Essential-Python-Sridevi-Pudipeddi/dp/0960060901 -------------- next part -------------- An HTML attachment was scrubbed... URL: From ams.fwd at gmail.com Thu Jan 3 02:13:12 2019 From: ams.fwd at gmail.com (Aseem Mohanty) Date: Wed, 2 Jan 2019 23:13:12 -0800 Subject: [Baypiggies] Descriptors with metaclasses don't quite seem to work In-Reply-To: References: Message-ID: Ah NM I is stupid late in the evening. __call__ needs to return the instance. On Wed, Jan 2, 2019 at 10:38 PM Aseem Mohanty wrote: > Hi All. > > I have the following code where I am adding a metaclass to a descriptor. > This is a reduction case so the metaclass really does nothing. > > Running this with python3 does not appear to trigger the descriptors > __get__ or __set__. Without the metaclass things work as expected. I am not > exactly sure why having the metaclass would not work as all the attributes > for the descriptor appear to be preserved. > > Any help would be greatly appreciated. > > TIA > AM > > > #!/usr/bin/env python > # -*- coding: utf-8 -*- > > class Meta(type): > > def __init__(cls, name, bases, attrs): > print('meta init') > super().__init__(name, bases, attrs) > > def __call__(cls, *args, **kwargs): > print('meta call') > inst = super().__call__() > > class X(metaclass=Meta): > > def __init__(self): > print('init X') > self._val = None > > def __get__(self, obj, obj_type): > print('getting value') > return self._val > > def __set__(self, obj, value): > print('-- setting value') > self._val = value > > class M: > x = X() > > m = M() > m.x = 1 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From davidalbertcox at gmail.com Sat Jan 5 16:53:47 2019 From: davidalbertcox at gmail.com (David Cox) Date: Sat, 5 Jan 2019 13:53:47 -0800 Subject: [Baypiggies] Call for Teaching Assistant volunteers for City College of San Francisco Intro to Python class Message-ID: <0DABB910-9157-4F10-9388-611FF620EF13@gmail.com> David Cox who teaches City College of San Francisco Intro to Python class 110A is reaching out for Teaching Assistant volunteers from Bay to assist in teaching our city?s community Python! Classes are on Thursday nights 6-9 at Batmale Hall at Ocean campus. If you are already a student at CCSF getting 6 credits or more you may apply as a student professional and be paid. If interested email David Cox at dcox at ccsf.edu Phone/text 415 4015227 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeffrey.fischer at gmail.com Mon Jan 7 13:43:54 2019 From: jeffrey.fischer at gmail.com (Jeff Fischer) Date: Mon, 7 Jan 2019 10:43:54 -0800 Subject: [Baypiggies] Looking for BayPiggies speakers and volunteers for 2019! Message-ID: Happy New Year! We had a lot of great BayPiggies meetings in 2018 and hope to continue the excitement this year. We are looking for speakers for 2019. Do you have an idea for a talk about Python, popular Python frameworks, or other topics of interest to Python developers? If so, please let us know! Talks can be Lightning Talks (5 to 10 minutes), Standard Talks (30 minutes), or long talks (60 to 90 minutes). We can accommodate newbies who've never given a talk before, super experienced speakers, or anyone in-between. To make it simple to tell us what we need to know, we've set up a short application form here: https://goo.gl/forms/YsZeERZUMqj8AZjw2. We are also looking for volunteers to help us with organizing things, behind the scenes work, and being the Master of Ceremonies at meetings. If you are interested, please let us know what you'd like to do here: https://goo.gl/forms/l5qpULhyeBXKhnHK2. Thanks and hope to hear from you soon! Regards, The BayPiggies organizers -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeffrey.fischer at gmail.com Thu Jan 17 12:31:01 2019 From: jeffrey.fischer at gmail.com (Jeff Fischer) Date: Thu, 17 Jan 2019 09:31:01 -0800 Subject: [Baypiggies] Next week's BayPiggies meeting: Two talks - Omnibus and Clean Architecture Message-ID: *BayPiggies January Meeting* *Thursday January 24, 2019* 7 pm to 9 pm LinkedIn, Unify Meeting Room, 950 West Maude Ave, Sunnyvale, CA Join us for the first BayPiggies meetup in 2019! We will have two talks this month: 1. Omnibus as a Solution for Dependency Hell by Aleksandr Kuzminsky 2. Clean Architecture with Python by Jair Vercosa *RSVP* Please RSVP at our meetup page: https://www.meetup.com/BAyPIGgies/events/257819623/ *Omnibus as a Solution for Dependency Hell* Packaging Python application has been always been a non-trivial problem. Omnibus creates a full stack installer that doesn't have dependencies. The owner decides what Python version the application runs, what modules and what version it uses. The package installs with a guarantee there are no conflicts and it cannot break existing environment. Check out how Omnibus makes it possible and how you can use it in your CI/CD workflows. *Speaker bio: *Aleks is a MySQL and data recovery expert. He worked as a MySQL performance consultant in Percona, helped Dropbox manages thousands of database instances. Now he's been working for Box where he's developing infrastructure projects. In his free time he's working on open source projects at TwinDB. *Clean Architecture with Python* On August 13, 2012 Robert C Martin released his article "Clean Architecture". Later on, it became a book with the same name and until today engineers diverge between loving and hating his concepts. This will show how to implement it with python using one of the most popular frameworks for python. Some concepts are simplified to help people to digest them better and enjoy the development process. It requires you to think a lot more about your application rather than just trust on frameworks and libraries that are out there. * Speaker bio:* Jair is a hands-on startup leader that loves to build stuff. He dedicated his career to build B2B products developing and architecting enterprise level software for the last 10 years. Currently he works as Engineer Director at Carta and manages the Enterprise Infrastructure team where he has the responsibility to lead the efforts for Carta's platform. *Speak or Volunteer* We are still accepting applications to be a speaker this yer. Just fill out this application form: https://goo.gl/forms/jH5OE0MSVkPwOTPr2 We are also looking for volunteers to help us organize BayPiggies and maintain the website, etc. If you are interested, let us know here: https://goo.gl/forms/m4ldz7P8PQBlyPo42 Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From jsalsman at gmail.com Sun Jan 27 00:58:03 2019 From: jsalsman at gmail.com (James Salsman) Date: Sat, 26 Jan 2019 21:58:03 -0800 Subject: [Baypiggies] job posting policy Message-ID: https://mail.python.org/mailman/listinfo/baypiggies says, "Before posting any job ad to the list, make sure to read the policy at http://baypiggies.net/job-listings; this page may also be used to post job ads on the baypiggies.net website." However, that link is down. I would like to post http://j.mp/pythonwebapp Best regards, Jim From bdbaddog at gmail.com Sun Jan 27 13:38:23 2019 From: bdbaddog at gmail.com (William Deegan) Date: Sun, 27 Jan 2019 10:38:23 -0800 Subject: [Baypiggies] job posting policy In-Reply-To: References: Message-ID: Here's an updated link: http://baypiggies.net/job_posting_rules.html Job Listings BayPIGgies is focused on discussion of Python programming and arranging community events. We want to encourage the Python job market, so we offer these guidelines for job ads; it's a win-win situation for everyone: - You must subscribe to the BayPIGgies mailing list so that you can read discussion of your ad - Principals only, no recruiters. We prefer ads to come from technical people to make it easier to get questions answered - Each company may post one ad per month - Please make clear how Python will be used on the job - Please restrict the geographic region to the greater SF Bay Area and Silicon Valley, roughly south down to Monterey, north to Santa Rosa, and (north)east to Sacramento - We will remove listings after 1 month and/or if they do not follow the above guidelines. - You may hit a larger audience by also sending to the mailing list. We reserve the right to change these guidelines any time; please check back each time before you post. On Sat, Jan 26, 2019 at 9:58 PM James Salsman wrote: > https://mail.python.org/mailman/listinfo/baypiggies says, "Before > posting any job ad to the list, make sure to read the policy at > http://baypiggies.net/job-listings; this page may also be used to post > job ads on the baypiggies.net website." However, that link is down. > > I would like to post http://j.mp/pythonwebapp > > Best regards, > Jim > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > https://mail.python.org/mailman/listinfo/baypiggies > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hasan.diwan at gmail.com Sun Jan 27 13:45:00 2019 From: hasan.diwan at gmail.com (Hasan Diwan) Date: Sun, 27 Jan 2019 10:45:00 -0800 Subject: [Baypiggies] job posting policy In-Reply-To: References: Message-ID: Little nits, in the job descriptions -- maybe add the date and poster's contact details as required fields on the job post? Many thanks! -- H On Sun, 27 Jan 2019 at 10:39, William Deegan wrote: > Here's an updated link: > http://baypiggies.net/job_posting_rules.html > > Job Listings > > BayPIGgies is focused on discussion of Python programming and arranging > community events. We want to encourage the Python job market, so we offer > these guidelines for job ads; it's a win-win situation for everyone: > > - You must subscribe to the BayPIGgies mailing list so that you can > read discussion of your ad > - Principals only, no recruiters. We prefer ads to come from technical > people to make it easier to get questions answered > - Each company may post one ad per month > - Please make clear how Python will be used on the job > - Please restrict the geographic region to the greater SF Bay Area and > Silicon Valley, roughly south down to Monterey, north to Santa Rosa, and > (north)east to Sacramento > - We will remove listings after 1 month and/or if they do not follow > the above guidelines. > - You may hit a larger audience by also sending to the mailing list. > > We reserve the right to change these guidelines any time; please check > back each time before you post. > > On Sat, Jan 26, 2019 at 9:58 PM James Salsman wrote: > >> https://mail.python.org/mailman/listinfo/baypiggies says, "Before >> posting any job ad to the list, make sure to read the policy at >> http://baypiggies.net/job-listings; this page may also be used to post >> job ads on the baypiggies.net website." However, that link is down. >> >> I would like to post http://j.mp/pythonwebapp >> >> Best regards, >> Jim >> _______________________________________________ >> Baypiggies mailing list >> Baypiggies at python.org >> To change your subscription options or unsubscribe: >> https://mail.python.org/mailman/listinfo/baypiggies >> > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > https://mail.python.org/mailman/listinfo/baypiggies > -- OpenPGP: https://sks-keyservers.net/pks/lookup?op=get&search=0xFEBAD7FFD041BBA1 If you wish to request my time, please do so using *bit.ly/hd1AppointmentRequest *. Si vous voudrais faire connnaisance, allez a *bit.ly/hd1AppointmentRequest *. Sent from my mobile device Envoye de mon portable -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill at baddogconsulting.com Sun Jan 27 14:15:24 2019 From: bill at baddogconsulting.com (Bill Deegan) Date: Sun, 27 Jan 2019 11:15:24 -0800 Subject: [Baypiggies] job posting policy In-Reply-To: References: Message-ID: Pull requests welcome.. https://github.com/BayPiggies/pelican_website On Sun, Jan 27, 2019 at 10:45 AM Hasan Diwan wrote: > Little nits, in the job descriptions -- maybe add the date and poster's > contact details as required fields on the job post? Many thanks! -- H > > On Sun, 27 Jan 2019 at 10:39, William Deegan wrote: > >> Here's an updated link: >> http://baypiggies.net/job_posting_rules.html >> >> Job Listings >> >> BayPIGgies is focused on discussion of Python programming and arranging >> community events. We want to encourage the Python job market, so we offer >> these guidelines for job ads; it's a win-win situation for everyone: >> >> - You must subscribe to the BayPIGgies mailing list so that you can >> read discussion of your ad >> - Principals only, no recruiters. We prefer ads to come from >> technical people to make it easier to get questions answered >> - Each company may post one ad per month >> - Please make clear how Python will be used on the job >> - Please restrict the geographic region to the greater SF Bay Area >> and Silicon Valley, roughly south down to Monterey, north to Santa Rosa, >> and (north)east to Sacramento >> - We will remove listings after 1 month and/or if they do not follow >> the above guidelines. >> - You may hit a larger audience by also sending to the mailing list. >> >> We reserve the right to change these guidelines any time; please check >> back each time before you post. >> >> On Sat, Jan 26, 2019 at 9:58 PM James Salsman wrote: >> >>> https://mail.python.org/mailman/listinfo/baypiggies says, "Before >>> posting any job ad to the list, make sure to read the policy at >>> http://baypiggies.net/job-listings; this page may also be used to post >>> job ads on the baypiggies.net website." However, that link is down. >>> >>> I would like to post http://j.mp/pythonwebapp >>> >>> Best regards, >>> Jim >>> _______________________________________________ >>> Baypiggies mailing list >>> Baypiggies at python.org >>> To change your subscription options or unsubscribe: >>> https://mail.python.org/mailman/listinfo/baypiggies >>> >> _______________________________________________ >> Baypiggies mailing list >> Baypiggies at python.org >> To change your subscription options or unsubscribe: >> https://mail.python.org/mailman/listinfo/baypiggies >> > > > -- > OpenPGP: > https://sks-keyservers.net/pks/lookup?op=get&search=0xFEBAD7FFD041BBA1 > If you wish to request my time, please do so using *bit.ly/hd1AppointmentRequest > *. > Si vous voudrais faire connnaisance, allez a *bit.ly/hd1AppointmentRequest > *. > > Sent > from my mobile device > Envoye de mon portable > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > https://mail.python.org/mailman/listinfo/baypiggies > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aahz at pythoncraft.com Tue Jan 29 10:20:17 2019 From: aahz at pythoncraft.com (Aahz) Date: Tue, 29 Jan 2019 07:20:17 -0800 Subject: [Baypiggies] job posting policy In-Reply-To: References: Message-ID: <20190129152017.GA26243@panix.com> On Sun, Jan 27, 2019, William Deegan wrote: > > Here's an updated link: > http://baypiggies.net/job_posting_rules.html Mailing list page now uses this URL. -- Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/ "The joy of coding Python should be in seeing short, concise, readable classes that express a lot of action in a small amount of clear code -- not in reams of trivial code that bores the reader to death." --GvR