From cbc at unc.edu Mon Apr 2 10:29:05 2018 From: cbc at unc.edu (Calloway, Chris) Date: Mon, 2 Apr 2018 14:29:05 +0000 Subject: [TriPython] FW: [PSF-Community] test the new Python Package Index (now in beta) In-Reply-To: <45f0438e-9e38-ef10-1a8e-993641b974ef@changeset.nyc> References: <45f0438e-9e38-ef10-1a8e-993641b974ef@changeset.nyc> Message-ID: On 3/26/18, 6:01 PM, "PSF-Community on behalf of Sumana Harihareswara" wrote: The new Python Package Index at https://pypi.org is now in beta. This means the site is robust, but we anticipate needing more user testing and changes before it is "production-ready" and can fully replace https://pypi.python.org . We hope to complete the transition before the end of April 2018. We're still working to ensure the new codebase and infrastructure are reliable. So please don't rely on it (yet) unless you can handle the occasional minor outage. But we want you to try the new PyPI, test it, and tell us if you have any problems. We have IRC and Twitter livechats coming up between March 27th and April 5th to get feedback from you: * Tuesday, March 27th, 16:00-17:00 UTC * Friday, March 30th, 14:00-15:00 UTC * Tuesday, April 3rd, 15:00-16:00 UTC * Friday, April 5th, 0:00-1:00 UTC More at https://pyfound.blogspot.com/2018/03/warehouse-all-new-pypi-is-now-in-beta.html . For future PyPI news, please subscribe to the low-traffic PyPI announcement email list: https://mail.python.org/mm3/archives/list/pypi-announce at python.org/ Thank you. -- Sumana Harihareswara Warehouse project manager Changeset Consulting https://changeset.nyc _______________________________________________ PSF-Community mailing list PSF-Community at python.org https://mail.python.org/mailman/listinfo/psf-community From ginnyghezzo at gmail.com Tue Apr 3 10:04:07 2018 From: ginnyghezzo at gmail.com (Ginny Ghezzo) Date: Tue, 3 Apr 2018 10:04:07 -0400 Subject: [TriPython] PyLadies Kaggle Session (April 18) Message-ID: The PyLadies RDU Meetup has a great line up about Kaggle for our April 18th session. Sign up here https://www.meetup.com/pyladies-rdu/events/248536621/ We have multiple speakers talking about their experience with Kaggle and hands on opportunity to get started. We meet at Genesys. We start at 6pm. We are open to anyone who abides by the PyLadies Code of Conduct. If you know of women interested in Python or Data Science that need a friendly face to connect with, feel free to reach out to me or other PyLadies organizers. The PyLadies RDU chapter is fun, useful and easy to get involved with! Cheers, Ginny Ghezzo -------------- next part -------------- The PyLadies RDU Meetup has a great line up about Kaggle for our April 18th session.** Sign up here [1]https://www.meetup.com/pyladies-rdu/events/248536621/ We have multiple speakers talking about their experience with Kaggle and hands on opportunity to get started. We meet at Genesys. We start at 6pm. We are open to anyone who abides by the PyLadies Code of Conduct.** If you know of women interested in Python or Data Science that need a friendly face to connect with, feel free to reach out to me** or other PyLadies organizers. The PyLadies RDU chapter is fun, useful and easy to get involved with!** Cheers,** Ginny Ghezzo** References Visible links 1. https://www.meetup.com/pyladies-rdu/events/248536621/ From cbc at unc.edu Tue Apr 10 15:11:11 2018 From: cbc at unc.edu (Calloway, Chris) Date: Tue, 10 Apr 2018 19:11:11 +0000 Subject: [TriPython] Reminder: Chapel Hill Project Night Message-ID: <8E8ECCAD-D63A-46DB-8F0A-AC480F18666B@unc.edu> The usual fun and games. With pizza: http://tripython.org/Members/cbc/apr-18-chpn When: Wednesday April 11, 2018 Where: Renaissance Computing Institute (RENCI) Biltmore Conference Room 5th Floor, Europa Center 100 Europa Drive, Suite 590 Chapel Hill What: Chapel Hill Project Night meets on second Wednesdays. Have a project you want to show off, share, seek help with, or just get some work done surrounded by like-minded Python lovers? Join us for our monthly project night and do just that! Don't have something to work on? Just need some help with Python? Show up and enjoy the energy, sprint on an open source project, find something interesting to contribute to or be inspired by! The setting is informal and there is no schedule, so don't worry if you show up past the start time. Whether you are a Python newbie needing help or have an open source project you want to share, come hang out and hack. We will be joined again this month by the Triangle Deep Learning Study Group. Plenty of free after hours parking is available in the RENCI parking deck. Bring your laptop. -- Sincerely, Chris Calloway Applications Analyst University of North Carolina Renaissance Computing Institute (919) 599-3530 -------------- next part -------------- The usual fun and games. With pizza: http://tripython.org/Members/cbc/apr-18-chpn When: Wednesday April 11, 2018 Where: Renaissance Computing Institute (RENCI) Biltmore Conference Room 5th Floor, Europa Center 100 Europa Drive, Suite 590 Chapel Hill What: Chapel Hill Project Night meets on second Wednesdays. Have a project you want to show off, share, seek help with, or just get some work done surrounded by like-minded Python lovers? Join us for our monthly project night and do just that! Don't have something to work on? Just need some help with Python? Show up and enjoy the energy, sprint on an open source project, find something interesting to contribute to or be inspired by! The setting is informal and there is no schedule, so don't worry if you show up past the start time. Whether you are a Python newbie needing help or have an open source project you want to share, come hang out and hack. We will be joined again this month by the Triangle Deep Learning Study Group. Plenty of free after hours parking is available in the RENCI parking deck. Bring your laptop. -- Sincerely, Chris Calloway Applications Analyst University of North Carolina Renaissance Computing Institute (919) 599-3530 From cbc at unc.edu Fri Apr 13 11:27:05 2018 From: cbc at unc.edu (Calloway, Chris) Date: Fri, 13 Apr 2018 15:27:05 +0000 Subject: [TriPython] Reminder: Durham Project Night Message-ID: <102A8B50-8095-44C7-8E92-AB151092AC67@unc.edu> Reminder that Caktus is graciously hosting our Durham Project Night on third Mondays (this coming Monday): http://tripython.org/Members/markdlavin/apr-18-dpn When: Monday, April 16, 6-9pm Where: Caktus Group Tech Space, 108 Morris St., Durham What: Have a project you want to show off, share, seek help with, or just get some work done surrounded by like-minded Python lovers? Join us for our monthly project night and do just that! Don't have something to work on? Just need some help with Python? Show up and enjoy the energy, sprint on an open source project, find something interesting to contribute to or be inspired! The setting is informal and there is no schedule, so don't worry if you show up past the start time. Whether you are a Python newbie needing help or have an open source project you want to share, come hang out and hack. Park in the municipal deck on the other side of the Arts Council across W. Morgan St. The entrance to the Caktus Tech Space is on Morris St. Bring your laptop. -- Sincerely, Chris Calloway Applications Analyst University of North Carolina Renaissance Computing Institute (919) 599-3530 -------------- next part -------------- Reminder that Caktus is graciously hosting our Durham Project Night on third Mondays (this coming Monday): http://tripython.org/Members/markdlavin/apr-18-dpn When: Monday, April 16, 6-9pm Where: Caktus Group Tech Space, 108 Morris St., Durham What: Have a project you want to show off, share, seek help with, or just get some work done surrounded by like-minded Python lovers? Join us for our monthly project night and do just that! Don't have something to work on? Just need some help with Python? Show up and enjoy the energy, sprint on an open source project, find something interesting to contribute to or be inspired! The setting is informal and there is no schedule, so don't worry if you show up past the start time. Whether you are a Python newbie needing help or have an open source project you want to share, come hang out and hack. Park in the municipal deck on the other side of the Arts Council across W. Morgan St. The entrance to the Caktus Tech Space is on Morris St. Bring your laptop. -- Sincerely, Chris Calloway Applications Analyst University of North Carolina Renaissance Computing Institute (919) 599-3530 From cbc at unc.edu Fri Apr 13 15:17:12 2018 From: cbc at unc.edu (Calloway, Chris) Date: Fri, 13 Apr 2018 19:17:12 +0000 Subject: [TriPython] Raleigh Project Night Is Back! Message-ID: Each of us should thank Steve Gambino, who has been hosting Raleigh Project Night monthly at WebAssign for five years, for his faithful service. Steve and I are passing the Raleigh Project Night mantle to Kevin Howell at Red Hat as we need a break. Steve, however, will continue hosting the quarterly Raleigh featured speaker meeting at WebAssign as he has been doing since 2012, including the upcoming May meeting yet to be announced. Thanks ever so much to Steve and WebAssign! The good news is Kevin Howell is resurrecting Raleigh Project Night, still on first Tuesdays, at Red Hat Annex in downtown Raleigh starting May 1. Kevin enthusiastically embraced this and got this on track in less than two days. Thanks, Kevin! Kevin and I are asking that attendees of Raleigh Project Night at Red Hat Annex please RSVP on meetup.com as Red Hat would like a list of attendees the day before each event in order to prepare visitor badges. http://tripython.org/Members/kahowell/may-18-rpn/ https://www.meetup.com/tripython/events/gqnhppyxhbcb/ When: Tuesday, May 1, 6-9pm Where: Red Hat Annex, 190 E Davie St, Raleigh What: Raleigh Project Night meets on first Tuesdays. Have a project you want to show off, share, seek help with, or just get some work done surrounded by like-minded Python lovers? Join us for our monthly project night and do just that! Don't have something to work on? Just need some help with Python? Show up and enjoy the energy, sprint on an open source project, find something interesting to contribute to or be inspired by! The setting is informal and there is no schedule, so don't worry if you show up past the start time. Whether you are a Python newbie needing help or have an open source project you want to share, come hang out and hack. Bring your laptop. -- Sincerely, Chris Calloway Applications Analyst University of North Carolina Renaissance Computing Institute (919) 599-3530 -------------- next part -------------- Each of us should thank Steve Gambino, who has been hosting Raleigh Project Night monthly at WebAssign for five years, for his faithful service. Steve and I are passing the Raleigh Project Night mantle to Kevin Howell at Red Hat as we need a break. Steve, however, will continue hosting the quarterly Raleigh featured speaker meeting at WebAssign as he has been doing since 2012, including the upcoming May meeting yet to be announced. Thanks ever so much to Steve and WebAssign! The good news is Kevin Howell is resurrecting Raleigh Project Night, still on first Tuesdays, at Red Hat Annex in downtown Raleigh starting May 1. Kevin enthusiastically embraced this and got this on track in less than two days. Thanks, Kevin! Kevin and I are asking that attendees of Raleigh Project Night at Red Hat Annex please RSVP on meetup.com as Red Hat would like a list of attendees the day before each event in order to prepare visitor badges. [1]http://tripython.org/Members/kahowell/may-18-rpn/ [2]https://www.meetup.com/tripython/events/gqnhppyxhbcb/ When: Tuesday, May 1, 6-9pm Where: Red Hat Annex, 190 E Davie St, Raleigh What: Raleigh Project Night meets on first Tuesdays. Have a project you want to show off, share, seek help with, or just get some work done surrounded by like-minded Python lovers? Join us for our monthly project night and do just that! Don't have something to work on? Just need some help with Python? Show up and enjoy the energy, sprint on an open source project, find something interesting to contribute to or be inspired by! The setting is informal and there is no schedule, so don't worry if you show up past the start time. Whether you are a Python newbie needing help or have an open source project you want to share, come hang out and hack. Bring your laptop. -- Sincerely, Chris Calloway Applications Analyst University of North Carolina Renaissance Computing Institute (919) 599-3530 References Visible links 1. http://tripython.org/Members/kahowell/may-18-rpn/ 2. https://www.meetup.com/tripython/events/gqnhppyxhbcb/ From lgtateos at ncsu.edu Fri Apr 13 16:00:36 2018 From: lgtateos at ncsu.edu (Laura Tateosian) Date: Fri, 13 Apr 2018 16:00:36 -0400 Subject: [TriPython] April Speaker Desired In-Reply-To: References: <821833EB-CB26-497A-948D-DDD543782E2F@unc.edu> Message-ID: Hi Chris, I never saw a reply to the below. I'm guessing this means either, you're way to busy for words or there was zero interest in the topic. If it's the former, could you connect me with the new guy? If it's the latter, boooo hisss. :) Best, Laura On Tue, Mar 20, 2018 at 5:54 PM, Laura Tateosian wrote: > Will you be in Raleigh in May? I could do a talk on Python for ArcGIS if > you think that could be of interest. > > On Tue, Mar 20, 2018 at 5:09 PM, Calloway, Chris wrote: > >> Good news. The organizer of the Triad Python Users Group in >> Winston-Salem, Francois Dion, will be speaking to us in April on >> "Exploratory Visualization of Data and Text." >> >> Anybody want to volunteer for May or June? July? >> >> -- >> Sincerely, >> >> Chris Calloway >> Applications Analyst >> University of North Carolina >> Renaissance Computing Institute >> (919) 599-3530 >> >> ?On 3/20/18, 3:59 PM, "TriZPUG on behalf of Calloway, Chris" >> wrote: >> >> I?m looking for someone who wants to give the featured speaker talk >> at the April 26 meeting at RENCI. >> >> Or speakers for any month after that, for that matter. >> >> -- >> Sincerely, >> >> Chris Calloway >> Applications Analyst >> University of North Carolina >> Renaissance Computing Institute >> (919) 599-3530 >> >> >> >> _______________________________________________ >> TriZPUG mailing list >> TriZPUG at python.org >> https://mail.python.org/mailman/listinfo/trizpug >> http://tripython.org is the Triangle Python Users Group >> > > > > -- > Dr. Tateosian > Research Assistant Professor > Center for Geospatial Analytics > North Carolina State University > http://www4.ncsu.edu/~lgtateos/ > 919-515-3435 <(919)%20515-3435> > -- Dr. Tateosian Research Assistant Professor Center for Geospatial Analytics North Carolina State University http://www4.ncsu.edu/~lgtateos/ 919-515-3435 -------------- next part -------------- Hi Chris, I never saw a reply to the below.** I'm guessing this means either, you're way to busy for words or there was zero interest in the topic.** If it's the former, could you connect me with the new guy?** If it's the latter, boooo hisss. :) Best, Laura On Tue, Mar 20, 2018 at 5:54 PM, Laura Tateosian <[1]lgtateos at ncsu.edu> wrote: Will you be in Raleigh in May?** **I could do a talk on Python for ArcGIS if you think that could be of interest. On Tue, Mar 20, 2018 at 5:09 PM, Calloway, Chris <[2]cbc at unc.edu> wrote: Good news. The organizer of the Triad Python Users Group in Winston-Salem, Francois Dion, will be speaking to us in April on "Exploratory Visualization of Data and Text." Anybody want to volunteer for May or June? July? -- Sincerely, Chris Calloway Applications Analyst University of North Carolina Renaissance Computing Institute [3](919) 599-3530 ***On 3/20/18, 3:59 PM, "TriZPUG on behalf of Calloway, Chris" wrote: ** ** I***m looking for someone who wants to give the featured speaker talk at the April 26 meeting at RENCI. ** ** Or speakers for any month after that, for that matter. ** ** -- ** ** Sincerely, ** ** Chris Calloway ** ** Applications Analyst ** ** University of North Carolina ** ** Renaissance Computing Institute ** ** [6](919) 599-3530 _______________________________________________ TriZPUG mailing list [7]TriZPUG at python.org [8]https://mail.python.org/mailman/listinfo/trizpug [9]http://tripython.org is the Triangle Python Users Group -- Dr. Tateosian Research Assistant Professor Center for Geospatial Analytics North Carolina State University [10]http://www4.ncsu.edu/~lgtateos/ [11]919-515-3435 -- Dr. Tateosian Research Assistant Professor Center for Geospatial Analytics North Carolina State University [12]http://www4.ncsu.edu/~lgtateos/ 919-515-3435 References Visible links 1. mailto:lgtateos at ncsu.edu 2. mailto:cbc at unc.edu 3. file:///tmp/tel:%28919%29%20599-3530 4. mailto:unc.edu at python.org 5. mailto:cbc at unc.edu 6. file:///tmp/tel:%28919%29%20599-3530 7. mailto:TriZPUG at python.org 8. https://mail.python.org/mailman/listinfo/trizpug 9. http://tripython.org/ 10. http://www4.ncsu.edu/~lgtateos/ 11. file:///tmp/tel:(919)%20515-3435 12. http://www4.ncsu.edu/~lgtateos/ From cbc at unc.edu Fri Apr 13 16:08:17 2018 From: cbc at unc.edu (Calloway, Chris) Date: Fri, 13 Apr 2018 20:08:17 +0000 Subject: [TriPython] April Speaker Desired In-Reply-To: References: <821833EB-CB26-497A-948D-DDD543782E2F@unc.edu> Message-ID: <517A4BBB-C55A-4DC1-B84D-9BD3240C00C3@unc.edu> Laura, On Wed Mar 21 10:45:42 EDT 2018 I replied to the list: "Laura, yes, we are meeting at WebAssign in May. And we are overdue for an ArcPy talk. May I put you on the schedule?" I was wondering why I did hear back. :-) -- Sincerely, Chris Calloway Applications Analyst University of North Carolina Renaissance Computing Institute (919) 599-3530 ?On 4/13/18, 4:00 PM, "TriZPUG on behalf of Laura Tateosian" wrote: Hi Chris, I never saw a reply to the below. I'm guessing this means either, you're way to busy for words or there was zero interest in the topic. If it's the former, could you connect me with the new guy? If it's the latter, boooo hisss. :) Best, Laura On Tue, Mar 20, 2018 at 5:54 PM, Laura Tateosian wrote: > Will you be in Raleigh in May? I could do a talk on Python for ArcGIS if > you think that could be of interest. > > On Tue, Mar 20, 2018 at 5:09 PM, Calloway, Chris wrote: > >> Good news. The organizer of the Triad Python Users Group in >> Winston-Salem, Francois Dion, will be speaking to us in April on >> "Exploratory Visualization of Data and Text." >> >> Anybody want to volunteer for May or June? July? >> >> -- >> Sincerely, >> >> Chris Calloway >> Applications Analyst >> University of North Carolina >> Renaissance Computing Institute >> (919) 599-3530 >> >> On 3/20/18, 3:59 PM, "TriZPUG on behalf of Calloway, Chris" >> wrote: >> >> I?m looking for someone who wants to give the featured speaker talk >> at the April 26 meeting at RENCI. >> >> Or speakers for any month after that, for that matter. >> >> -- >> Sincerely, >> >> Chris Calloway >> Applications Analyst >> University of North Carolina >> Renaissance Computing Institute >> (919) 599-3530 >> >> >> >> _______________________________________________ >> TriZPUG mailing list >> TriZPUG at python.org >> https://mail.python.org/mailman/listinfo/trizpug >> http://tripython.org is the Triangle Python Users Group >> > > > > -- > Dr. Tateosian > Research Assistant Professor > Center for Geospatial Analytics > North Carolina State University > http://www4.ncsu.edu/~lgtateos/ > 919-515-3435 <(919)%20515-3435> > -- Dr. Tateosian Research Assistant Professor Center for Geospatial Analytics North Carolina State University http://www4.ncsu.edu/~lgtateos/ 919-515-3435 From cbc at unc.edu Fri Apr 13 13:05:11 2018 From: cbc at unc.edu (Calloway, Chris) Date: Fri, 13 Apr 2018 17:05:11 +0000 Subject: [TriPython] TriPython April 2018 Meeting: Exploratory Visualization of Data and Text Message-ID: <1BBDF05D-072E-40D8-BB42-3FFFE19A94AA@unc.edu> Francois will journey to see us from Winston-Salem again this month: http://tripython.org/Members/cbc/apr-18-mtg When: Thursday, April 26, 7pm Where: Renaissance Computing Institute (RENCI) Biltmore Conference Room, 5th Floor 100 Europa Drive, Suite 590 Chapel Hill What: Francois Dion, organizer of the Piedmont Triad Python User Group and founder and chief data scientist at Dion Research will present on Exploratory Visualization of Data and Text. Extemporaneous "lightning talks" of 5-10 minute duration are also welcome and don't need to be pre-announced. Lightning talks are for you to "show and tell" something you've learned about Python recently, no matter how small. We all use Python, therefore, we are always learning something new about Python that we can tell others. Plenty of free parking is available in the RENCI parking deck. The meeting will be followed by our usual after-meeting at a nearby tavern for food and beverage. Come join us for a fun and informative evening. -- Sincerely, Chris Calloway Applications Analyst University of North Carolina Renaissance Computing Institute (919) 599-3530 -------------- next part -------------- Francois will journey to see us from Winston-Salem again this month: [1]http://tripython.org/Members/cbc/apr-18-mtg When: Thursday, April 26, 7pm Where: Renaissance Computing Institute (RENCI) Biltmore Conference Room, 5th Floor 100 Europa Drive, Suite 590 Chapel Hill What: Francois Dion, organizer of the Piedmont Triad Python User Group and founder and chief data scientist at Dion Research will present on Exploratory Visualization of Data and Text. Extemporaneous "lightning talks" of 5-10 minute duration are also welcome and don't need to be pre-announced. Lightning talks are for you to "show and tell" something you've learned about Python recently, no matter how small. We all use Python, therefore, we are always learning something new about Python that we can tell others. Plenty of free parking is available in the RENCI parking deck. The meeting will be followed by our usual after-meeting at a nearby tavern for food and beverage. Come join us for a fun and informative evening. -- Sincerely, Chris Calloway Applications Analyst University of North Carolina Renaissance Computing Institute (919) 599-3530 References Visible links 1. http://tripython.org/Members/cbc/apr-18-mtg From livalencia at my.waketech.edu Wed Apr 18 20:45:48 2018 From: livalencia at my.waketech.edu (Luis Valencia) Date: Thu, 19 Apr 2018 00:45:48 +0000 Subject: [TriPython] Private variables and methods. Message-ID: Hello all, I'm having a bit of difficulty with the concept of private variables and methods. I was looking at StackOverflow and I came upon this https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes [https://cdn.sstatic.net/Sites/stackoverflow/img/apple-touch-icon at 2.png?v=73d79a89bded] class - Does Python have ?private? variables in classes ... stackoverflow.com I'm coming from the Java world and reading Bruce Eckels' Python 3 Patterns, Recipes and Idioms. While reading about classes, it goes on to say that in Python there is no need to declare instance Is this answer still acceptable? The reason why I'm ask is, since I'm taking a Python class some of the reading assignment says that Python "allows us to block access to any instance variable or method if we want to." But I think SO is telling me something else. Here's an excerpt from the lesson: By default, all instance variables and methods of an object are publicly accessible. That means client code (e.g. code in the main module) can access any instance variable and call any method of the object. Sometimes it may be a bad idea to make class members, especially instance variables, that wide open. Python allows us to block the access to any instance variable or method if we want to. In fact, it is a convention to make all instance variables private to protect their integrity. Thank you, Luis -------------- next part -------------- Hello all, I'm having a bit of difficulty with the concept of private variables and methods. I was looking at StackOverflow and I came upon this [1]https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes [2][IMG] [3]class - Does Python have "private" variables in classes ... stackoverflow.com I'm coming from the Java world and reading Bruce Eckels' Python 3 Patterns, Recipes and Idioms. While reading about classes, it goes on to say that in Python there is no need to declare instance Is this answer still acceptable? The reason why I'm ask is, since I'm taking a Python class some of the reading assignment says that Python "allows us to block access to any instance variable or method if we want to." But I think SO is telling me something else. Here's an excerpt from the lesson: By default, all instance variables and methods of an object are publicly accessible. That means client code (e.g. code in the main module) can access any instance variable and call any method of the object. Sometimes it may be a bad idea to make class members, especially instance variables, that wide open. Python allows us to block the access to any instance variable or method if we want to. In fact, it is a convention to make all instance variables private to protect their integrity. Thank you, Luis References Visible links 1. https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes 2. https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes 3. https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes From jwhisnant at gmail.com Thu Apr 19 09:26:54 2018 From: jwhisnant at gmail.com (James Whisnant) Date: Thu, 19 Apr 2018 09:26:54 -0400 Subject: [TriPython] Private variables and methods. In-Reply-To: References: Message-ID: Luis, Short answer : private variables and methods don't exist in python (not with the meaning of "private" from Java). By convention, in python _foo would be considered "private" from an API perspective. It is a warning to other developers. If you rely on my function, method or attribute named "_foo" - I may change it at anytime, for any reason, and may even remove it in later code. You can choose to use "_foo", but it is at YOUR risk. You should use "public API" methods instead, if I have provided them and they do what you need. I looked at Eckel's book very briefly. I would not recommend it. The code examples are not pythonic, nor are the book's suggestions. I think the paragraph you pasted below is factually incorrect with regards to python. " ? In fact, it is a convention to make all instance variables private to protect their integrity." is especially wrong (for python). You should challenge the lesson author to provide a concrete example(s) and also to reconcile these statements with the official python documentation for you. I would recommend the resources below for learning python. All are free. Tutorial: http://bit.ly/MCAhYx (You can program in another language, but don't know python syntax) New programmer? http://bit.ly/23X7emF or https://automatetheboringstuff.com/ or https://runestone.academy/runestone/static/thinkcspy/index.html I think the snippet below from https://docs.python.org/3/tutorial/classes.html explains private variables well, especially the first sentence. 9.6. Private Variables? ?Private? instance variables that cannot be accessed except from inside an object don?t exist in Python. However, there is a convention that is followed by most Python code: a name prefixed with an underscore (e.g. _spam) should be treated as a non-public part of the API (whether it is a function, a method or a data member). It should be considered an implementation detail and subject to change without notice. (more ...) ? ?James? On Wed, Apr 18, 2018 at 8:45 PM, Luis Valencia wrote: > Hello all, > > I'm having a bit of difficulty with the concept of private variables and > methods. I was looking at StackOverflow and I came upon > this [1] > ?? > https://stackoverflow.com/questions/1641219/does-python- > have-private-variables-in-classes > > [2][IMG] [3]class - Does Python have "private" variables in classes ... > stackoverflow.com > I'm coming from the Java world and reading Bruce Eckels' > Python 3 > Patterns, Recipes and Idioms. While reading about classes, it > goes on to say that in Python there is no need to declare > instance > > Is this answer still acceptable? The reason why I'm ask is, since I'm > taking a Python class some of the reading assignment says that Python > "allows us to block access to any instance variable or method if we want > to." But I think SO is telling me something else. > > Here's an excerpt from the lesson: > > By default, all instance variables and methods of an object are publicly > accessible. That means client code (e.g. code in the main module) can > access any instance variable and call any method of the object. > Sometimes > it may be a bad idea to make class members, especially instance > variables, > that wide open. Python allows us to block the access to any instance > variable or method if we want to. > ?? > In fact, it is a convention to make all > instance variables private to protect their integrity. > > > > Thank you, > Luis > > References > > Visible links > 1. https://stackoverflow.com/questions/1641219/does-python- > have-private-variables-in-classes > 2. https://stackoverflow.com/questions/1641219/does-python- > have-private-variables-in-classes > 3. https://stackoverflow.com/questions/1641219/does-python- > have-private-variables-in-classes > > _______________________________________________ > TriZPUG mailing list > TriZPUG at python.org > https://mail.python.org/mailman/listinfo/trizpug > http://tripython.org is the Triangle Python Users Group > > -------------- next part -------------- Luis, Short answer : private variables and methods don't exist in python (not with the meaning of "private" from Java). By convention, in python** _foo would be considered "private" from an API perspective. It is a warning to other developers. If you rely on my function, method or attribute named "_foo" - I may change it at anytime, for any reason, and may even remove it in later code. You can choose to use "_foo", but it is at YOUR risk. You should use "public API" methods instead, if I have provided them and they do what you need.** I looked at Eckel's book very briefly. I would not recommend it. The code examples are not pythonic, nor are the book's suggestions. I think the paragraph you pasted below is factually incorrect with regards to python. " ***In fact, it is a convention to make all**instance variables private to protect their integrity." is especially wrong (for python).** You should challenge the lesson author to provide a concrete example(s) and also to reconcile these statements with the official python documentation for you. I would recommend the resources below for learning python. All are free. Tutorial: [1]http://bit.ly/MCAhYx (You can program in another language, but don't know python syntax) New programmer? [2]http://bit.ly/23X7emF or [3]https://automatetheboringstuff.com/ or [4]https://runestone.academy/runestone/static/thinkcspy/index.html I think the snippet below from**[5]https://docs.python.org/3/tutorial/classes.html explains private variables well, especially the first sentence. 9.6. Private Variables[6]** ***Private*** instance variables that cannot be accessed except from inside an object don***t exist in Python. However, there is a convention that is followed by most Python code: a name prefixed with an underscore (e.g.**_spam) should be treated as a non-public part of the API (whether it is a function, a method or a data member). It should be considered an implementation detail and subject to change without notice. (more ...) *** ***James*** On Wed, Apr 18, 2018 at 8:45 PM, Luis Valencia <[7]livalencia at my.waketech.edu> wrote: ** **Hello all, ** **I'm having a bit of difficulty with the concept of private variables and ** **methods. I was looking at StackOverflow and I came upon ** **this [1] [8]******https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes ** **[2][IMG] [3]class - Does Python have "private" variables in classes ... ** ** ** ** ** ** [9]stackoverflow.com ** ** ** ** ** ** I'm coming from the Java world and reading Bruce Eckels' Python 3 ** ** ** ** ** ** Patterns, Recipes and Idioms. While reading about classes, it ** ** ** ** ** ** goes on to say that in Python there is no need to declare ** ** ** ** ** ** instance ** **Is this answer still acceptable? The reason why I'm ask is, since I'm ** **taking a Python class some of the reading assignment says that Python ** **"allows us to block access to any instance variable or method if we want ** **to." But I think SO is telling me something else. ** **Here's an excerpt from the lesson: ** **By default, all instance variables and methods of an object are publicly ** **accessible.** That means client code (e.g. code in the main module) can ** **access any instance variable and call any method of the object.** Sometimes ** **it may be a bad idea to make class members, especially instance variables, ** **that wide open.** Python allows us to block the access to any instance ** **variable or method if we want to.** ******In fact, it is a convention to make all ** **instance variables private to protect their integrity. ** **Thank you, ** **Luis References ** **Visible links ** **1. [10]https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes ** **2. [11]https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes ** **3. [12]https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes _______________________________________________ TriZPUG mailing list [13]TriZPUG at python.org [14]https://mail.python.org/mailman/listinfo/trizpug [15]http://tripython.org is the Triangle Python Users Group References Visible links 1. http://bit.ly/MCAhYx 2. http://bit.ly/23X7emF 3. https://automatetheboringstuff.com/ 4. https://runestone.academy/runestone/static/thinkcspy/index.html 5. https://docs.python.org/3/tutorial/classes.html 6. Permalink to this headline https://docs.python.org/3/tutorial/classes.html#private-variables 7. mailto:livalencia at my.waketech.edu 8. https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes 9. http://stackoverflow.com/ 10. https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes 11. https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes 12. https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes 13. mailto:TriZPUG at python.org 14. https://mail.python.org/mailman/listinfo/trizpug 15. http://tripython.org/ From lionface.lemonface at gmail.com Thu Apr 19 10:37:29 2018 From: lionface.lemonface at gmail.com (Josh Johnson) Date: Thu, 19 Apr 2018 10:37:29 -0400 Subject: [TriPython] Private variables and methods. In-Reply-To: References: Message-ID: <2A062A11-50F9-4882-84F9-8DC38E322AAF@gmail.com> +100 James. The only thing that came to mind to actually do this is pretending to make a property or method private by using descriptors or meta programming... I want to say I've been down that rabbit hole before but can't remember if its doable (regardless, if it is, its far from elegant and the antithesis of pythonic). JJ -- Brought to you by a grant from the "I'm finally one of the cool kids" foundation for the advancement of geek chic in the mainstream vernacular. > On Apr 19, 2018, at 9:26 AM, James Whisnant wrote: > > Luis, > Short answer : private variables and methods don't exist in python (not > with the meaning of "private" from Java). By convention, in python** _foo > would be considered "private" from an API perspective. It is a warning to > other developers. If you rely on my function, method or attribute named > "_foo" - I may change it at anytime, for any reason, and may even remove > it in later code. You can choose to use "_foo", but it is at YOUR risk. > You should use "public API" methods instead, if I have provided them and > they do what you need.** > I looked at Eckel's book very briefly. I would not recommend it. The code > examples are not pythonic, nor are the book's suggestions. > I think the paragraph you pasted below is factually incorrect with regards > to python. " > ***In fact, it is a convention to make all**instance variables private to > protect their integrity." is especially wrong (for python).** You should > challenge the lesson author to provide a concrete example(s) and also to > reconcile these statements with the official python documentation for you. > I would recommend the resources below for learning python. All are free. > > Tutorial: [1]http://bit.ly/MCAhYx (You can program in another language, but don't know python syntax) > > New programmer? [2]http://bit.ly/23X7emF or [3]https://automatetheboringstuff.com/ or [4]https://runestone.academy/runestone/static/thinkcspy/index.html > > I think the snippet below > from**[5]https://docs.python.org/3/tutorial/classes.html explains private > variables well, especially the first sentence. > > 9.6. Private Variables[6]** > > ***Private*** instance variables that cannot be accessed except from > inside an object don***t exist in Python. However, there is a convention > that is followed by most Python code: a name prefixed with an underscore > (e.g.**_spam) should be treated as a non-public part of the API (whether > it is a function, a method or a data member). It should be considered an > implementation detail and subject to change without notice. > > (more ...) > > *** > ***James*** > On Wed, Apr 18, 2018 at 8:45 PM, Luis Valencia > <[7]livalencia at my.waketech.edu> wrote: > > ** **Hello all, > > ** **I'm having a bit of difficulty with the concept of private > variables and > ** **methods. I was looking at StackOverflow and I came upon > ** **this [1] > [8]******https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes > > ** **[2][IMG] [3]class - Does Python have "private" variables in classes > ... > ** ** ** ** ** ** [9]stackoverflow.com > ** ** ** ** ** ** I'm coming from the Java world and reading Bruce > Eckels' Python 3 > ** ** ** ** ** ** Patterns, Recipes and Idioms. While reading about > classes, it > ** ** ** ** ** ** goes on to say that in Python there is no need to > declare > ** ** ** ** ** ** instance > > ** **Is this answer still acceptable? The reason why I'm ask is, since > I'm > ** **taking a Python class some of the reading assignment says that > Python > ** **"allows us to block access to any instance variable or method if we > want > ** **to." But I think SO is telling me something else. > > ** **Here's an excerpt from the lesson: > > ** **By default, all instance variables and methods of an object are > publicly > ** **accessible.** That means client code (e.g. code in the main module) > can > ** **access any instance variable and call any method of the object.** > Sometimes > ** **it may be a bad idea to make class members, especially instance > variables, > ** **that wide open.** Python allows us to block the access to any > instance > ** **variable or method if we want to.** > ******In fact, it is a convention to make all > ** **instance variables private to protect their integrity. > > ** **Thank you, > ** **Luis > > References > > ** **Visible links > ** **1. > [10]https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes > ** **2. > [11]https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes > ** **3. > [12]https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes > > _______________________________________________ > TriZPUG mailing list > [13]TriZPUG at python.org > [14]https://mail.python.org/mailman/listinfo/trizpug > [15]http://tripython.org is the Triangle Python Users Group > > References > > Visible links > 1. http://bit.ly/MCAhYx > 2. http://bit.ly/23X7emF > 3. https://automatetheboringstuff.com/ > 4. https://runestone.academy/runestone/static/thinkcspy/index.html > 5. https://docs.python.org/3/tutorial/classes.html > 6. Permalink to this headline > https://docs.python.org/3/tutorial/classes.html#private-variables > 7. mailto:livalencia at my.waketech.edu > 8. https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes > 9. http://stackoverflow.com/ > 10. https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes > 11. https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes > 12. https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes > 13. mailto:TriZPUG at python.org > 14. https://mail.python.org/mailman/listinfo/trizpug > 15. http://tripython.org/ > _______________________________________________ > TriZPUG mailing list > TriZPUG at python.org > https://mail.python.org/mailman/listinfo/trizpug > http://tripython.org is the Triangle Python Users Group From georgetten at gmail.com Thu Apr 19 10:39:07 2018 From: georgetten at gmail.com (Georgette Nicolaides) Date: Thu, 19 Apr 2018 10:39:07 -0400 Subject: [TriPython] TriZPUG Digest, Vol 120, Issue 6 In-Reply-To: References: Message-ID: Hello can you unsub me? My family is moving to NY. Thanks! Georgette Georgette Nicolaides 518.605.2914 919.714.9841 @IDeducator https://medium.com/@georgetten www.linkedin.com/in/georgettenicolaides Adobe Captivate | Camtasia | MS PowerPoint On Thu, Apr 19, 2018 at 10:37 AM, wrote: > Send TriZPUG mailing list submissions to > trizpug at python.org > > To subscribe or unsubscribe via the World Wide Web, visit > https://mail.python.org/mailman/listinfo/trizpug > or, via email, send a message with subject or body 'help' to > trizpug-request at python.org > > You can reach the person managing the list at > trizpug-owner at python.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of TriZPUG digest..." > > > Today's Topics: > > 1. Private variables and methods. (Luis Valencia) > 2. Re: Private variables and methods. (James Whisnant) > 3. Re: Private variables and methods. (Josh Johnson) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 19 Apr 2018 00:45:48 +0000 > From: Luis Valencia > To: "trizpug at python.org" > Subject: [TriPython] Private variables and methods. > Message-ID: > namprd04.prod.outlook.com> > > Content-Type: text/plain; charset="windows-1252" > > Hello all, > > > I'm having a bit of difficulty with the concept of private variables and > methods. I was looking at StackOverflow and I came upon this > https://stackoverflow.com/questions/1641219/does-python- > have-private-variables-in-classes > > [https://cdn.sstatic.net/Sites/stackoverflow/img/apple-touch-icon at 2.png?v= > 73d79a89bded] 1641219/does-python-have-private-variables-in-classes> > > class - Does Python have ?private? variables in classes ...< > https://stackoverflow.com/questions/1641219/does-python- > have-private-variables-in-classes> > stackoverflow.com > I'm coming from the Java world and reading Bruce Eckels' Python 3 > Patterns, Recipes and Idioms. While reading about classes, it goes on to > say that in Python there is no need to declare instance > > Is this answer still acceptable? The reason why I'm ask is, since I'm > taking a Python class some of the reading assignment says that Python > "allows us to block access to any instance variable or method if we want > to." But I think SO is telling me something else. > > Here's an excerpt from the lesson: > > By default, all instance variables and methods of an object are publicly > accessible. That means client code (e.g. code in the main module) can > access any instance variable and call any method of the object. Sometimes > it may be a bad idea to make class members, especially instance variables, > that wide open. Python allows us to block the access to any instance > variable or method if we want to. In fact, it is a convention to make all > instance variables private to protect their integrity. > > > > > Thank you, > Luis > -------------- next part -------------- > Hello all, > > I'm having a bit of difficulty with the concept of private variables and > methods. I was looking at StackOverflow and I came upon > this [1]https://stackoverflow.com/questions/1641219/does-python- > have-private-variables-in-classes > > [2][IMG] [3]class - Does Python have "private" variables in classes ... > stackoverflow.com > I'm coming from the Java world and reading Bruce Eckels' > Python 3 > Patterns, Recipes and Idioms. While reading about classes, it > goes on to say that in Python there is no need to declare > instance > > Is this answer still acceptable? The reason why I'm ask is, since I'm > taking a Python class some of the reading assignment says that Python > "allows us to block access to any instance variable or method if we want > to." But I think SO is telling me something else. > > Here's an excerpt from the lesson: > > By default, all instance variables and methods of an object are publicly > accessible. That means client code (e.g. code in the main module) can > access any instance variable and call any method of the object. > Sometimes > it may be a bad idea to make class members, especially instance > variables, > that wide open. Python allows us to block the access to any instance > variable or method if we want to. In fact, it is a convention to make > all > instance variables private to protect their integrity. > > > > Thank you, > Luis > > References > > Visible links > 1. https://stackoverflow.com/questions/1641219/does-python- > have-private-variables-in-classes > 2. https://stackoverflow.com/questions/1641219/does-python- > have-private-variables-in-classes > 3. https://stackoverflow.com/questions/1641219/does-python- > have-private-variables-in-classes > > ------------------------------ > > Message: 2 > Date: Thu, 19 Apr 2018 09:26:54 -0400 > From: James Whisnant > To: "Triangle (North Carolina) Python Users Group (formerly TriZPUG)" > > Subject: Re: [TriPython] Private variables and methods. > Message-ID: > gmail.com> > Content-Type: text/plain; charset="utf-8" > > Luis, > > Short answer : private variables and methods don't exist in python (not > with the meaning of "private" from Java). By convention, in python _foo > would be considered "private" from an API perspective. It is a warning to > other developers. If you rely on my function, method or attribute named > "_foo" - I may change it at anytime, for any reason, and may even remove it > in later code. You can choose to use "_foo", but it is at YOUR risk. You > should use "public API" methods instead, if I have provided them and they > do what you need. > > I looked at Eckel's book very briefly. I would not recommend it. The code > examples are not pythonic, nor are the book's suggestions. > > I think the paragraph you pasted below is factually incorrect with regards > to python. " > ? > In fact, it is a convention to make all instance variables private to > protect their integrity." is especially wrong (for python). You should > challenge the lesson author to provide a concrete example(s) and also to > reconcile these statements with the official python documentation for you. > > I would recommend the resources below for learning python. All are free. > > Tutorial: http://bit.ly/MCAhYx (You can program in another language, > but don't know python syntax) > > New programmer? http://bit.ly/23X7emF or > https://automatetheboringstuff.com/ or > https://runestone.academy/runestone/static/thinkcspy/index.html > > > I think the snippet below from > https://docs.python.org/3/tutorial/classes.html explains private variables > well, especially the first sentence. > > 9.6. Private Variables? > > > ?Private? instance variables that cannot be accessed except from inside an > object don?t exist in Python. However, there is a convention that is > followed by most Python code: a name prefixed with an underscore (e.g. > _spam) > should be treated as a non-public part of the API (whether it is a > function, a method or a data member). It should be considered an > implementation detail and subject to change without notice. > > (more ...) > ? > ?James? > > > On Wed, Apr 18, 2018 at 8:45 PM, Luis Valencia > > wrote: > > > Hello all, > > > > I'm having a bit of difficulty with the concept of private variables > and > > methods. I was looking at StackOverflow and I came upon > > this [1] > > ?? > > https://stackoverflow.com/questions/1641219/does-python- > > have-private-variables-in-classes > > > > [2][IMG] [3]class - Does Python have "private" variables in classes > ... > > stackoverflow.com > > I'm coming from the Java world and reading Bruce Eckels' > > Python 3 > > Patterns, Recipes and Idioms. While reading about classes, it > > goes on to say that in Python there is no need to declare > > instance > > > > Is this answer still acceptable? The reason why I'm ask is, since I'm > > taking a Python class some of the reading assignment says that Python > > "allows us to block access to any instance variable or method if we > want > > to." But I think SO is telling me something else. > > > > Here's an excerpt from the lesson: > > > > By default, all instance variables and methods of an object are > publicly > > accessible. That means client code (e.g. code in the main module) can > > access any instance variable and call any method of the object. > > Sometimes > > it may be a bad idea to make class members, especially instance > > variables, > > that wide open. Python allows us to block the access to any instance > > variable or method if we want to. > > ?? > > In fact, it is a convention to make all > > instance variables private to protect their integrity. > > > > > > > > Thank you, > > Luis > > > > References > > > > Visible links > > 1. https://stackoverflow.com/questions/1641219/does-python- > > have-private-variables-in-classes > > 2. https://stackoverflow.com/questions/1641219/does-python- > > have-private-variables-in-classes > > 3. https://stackoverflow.com/questions/1641219/does-python- > > have-private-variables-in-classes > > > > _______________________________________________ > > TriZPUG mailing list > > TriZPUG at python.org > > https://mail.python.org/mailman/listinfo/trizpug > > http://tripython.org is the Triangle Python Users Group > > > > > -------------- next part -------------- > Luis, > Short answer : private variables and methods don't exist in python (not > with the meaning of "private" from Java). By convention, in python** > _foo > would be considered "private" from an API perspective. It is a warning > to > other developers. If you rely on my function, method or attribute named > "_foo" - I may change it at anytime, for any reason, and may even remove > it in later code. You can choose to use "_foo", but it is at YOUR risk. > You should use "public API" methods instead, if I have provided them and > they do what you need.** > I looked at Eckel's book very briefly. I would not recommend it. The > code > examples are not pythonic, nor are the book's suggestions. > I think the paragraph you pasted below is factually incorrect with > regards > to python. " > ***In fact, it is a convention to make all**instance variables private > to > protect their integrity." is especially wrong (for python).** You should > challenge the lesson author to provide a concrete example(s) and also to > reconcile these statements with the official python documentation for > you. > I would recommend the resources below for learning python. All are free. > > Tutorial: [1]http://bit.ly/MCAhYx (You can program in another language, > but don't know python syntax) > > New programmer? [2]http://bit.ly/23X7emF or [3]https:// > automatetheboringstuff.com/ or [4]https://runestone.academy/ > runestone/static/thinkcspy/index.html > > I think the snippet below > from**[5]https://docs.python.org/3/tutorial/classes.html explains > private > variables well, especially the first sentence. > > 9.6. Private Variables[6]** > > ***Private*** instance variables that cannot be accessed except > from > inside an object don***t exist in Python. However, there is a > convention > that is followed by most Python code: a name prefixed with an > underscore > (e.g.**_spam) should be treated as a non-public part of the API > (whether > it is a function, a method or a data member). It should be considered > an > implementation detail and subject to change without notice. > > (more ...) > > *** > ***James*** > On Wed, Apr 18, 2018 at 8:45 PM, Luis Valencia > <[7]livalencia at my.waketech.edu> wrote: > > ** **Hello all, > > ** **I'm having a bit of difficulty with the concept of private > variables and > ** **methods. I was looking at StackOverflow and I came upon > ** **this [1] > [8]******https://stackoverflow.com/questions/ > 1641219/does-python-have-private-variables-in-classes > > ** **[2][IMG] [3]class - Does Python have "private" variables in > classes > ... > ** ** ** ** ** ** [9]stackoverflow.com > ** ** ** ** ** ** I'm coming from the Java world and reading Bruce > Eckels' Python 3 > ** ** ** ** ** ** Patterns, Recipes and Idioms. While reading about > classes, it > ** ** ** ** ** ** goes on to say that in Python there is no need to > declare > ** ** ** ** ** ** instance > > ** **Is this answer still acceptable? The reason why I'm ask is, since > I'm > ** **taking a Python class some of the reading assignment says that > Python > ** **"allows us to block access to any instance variable or method if > we > want > ** **to." But I think SO is telling me something else. > > ** **Here's an excerpt from the lesson: > > ** **By default, all instance variables and methods of an object are > publicly > ** **accessible.** That means client code (e.g. code in the main > module) > can > ** **access any instance variable and call any method of the object.** > Sometimes > ** **it may be a bad idea to make class members, especially instance > variables, > ** **that wide open.** Python allows us to block the access to any > instance > ** **variable or method if we want to.** > ******In fact, it is a convention to make all > ** **instance variables private to protect their integrity. > > ** **Thank you, > ** **Luis > > References > > ** **Visible links > ** **1. > [10]https://stackoverflow.com/questions/1641219/does-python- > have-private-variables-in-classes > ** **2. > [11]https://stackoverflow.com/questions/1641219/does-python- > have-private-variables-in-classes > ** **3. > [12]https://stackoverflow.com/questions/1641219/does-python- > have-private-variables-in-classes > > _______________________________________________ > TriZPUG mailing list > [13]TriZPUG at python.org > [14]https://mail.python.org/mailman/listinfo/trizpug > [15]http://tripython.org is the Triangle Python Users Group > > References > > Visible links > 1. http://bit.ly/MCAhYx > 2. http://bit.ly/23X7emF > 3. https://automatetheboringstuff.com/ > 4. https://runestone.academy/runestone/static/thinkcspy/index.html > 5. https://docs.python.org/3/tutorial/classes.html > 6. Permalink to this headline > https://docs.python.org/3/tutorial/classes.html#private-variables > 7. mailto:livalencia at my.waketech.edu > 8. https://stackoverflow.com/questions/1641219/does-python- > have-private-variables-in-classes > 9. http://stackoverflow.com/ > 10. https://stackoverflow.com/questions/1641219/does-python- > have-private-variables-in-classes > 11. https://stackoverflow.com/questions/1641219/does-python- > have-private-variables-in-classes > 12. https://stackoverflow.com/questions/1641219/does-python- > have-private-variables-in-classes > 13. mailto:TriZPUG at python.org > 14. https://mail.python.org/mailman/listinfo/trizpug > 15. http://tripython.org/ > > ------------------------------ > > Message: 3 > Date: Thu, 19 Apr 2018 10:37:29 -0400 > From: Josh Johnson > To: "Triangle (North Carolina) Python Users Group (formerly TriZPUG)" > > Subject: Re: [TriPython] Private variables and methods. > Message-ID: <2A062A11-50F9-4882-84F9-8DC38E322AAF at gmail.com> > Content-Type: text/plain; charset=us-ascii > > +100 James. > > The only thing that came to mind to actually do this is pretending to make > a property or method private by using descriptors or meta programming... I > want to say I've been down that rabbit hole before but can't remember if > its doable (regardless, if it is, its far from elegant and the antithesis > of pythonic). > > JJ > > -- > Brought to you by a grant from the "I'm finally one of the cool kids" > foundation for the advancement of geek chic in the mainstream vernacular. > > > On Apr 19, 2018, at 9:26 AM, James Whisnant wrote: > > > > Luis, > > Short answer : private variables and methods don't exist in python (not > > with the meaning of "private" from Java). By convention, in python** > _foo > > would be considered "private" from an API perspective. It is a warning > to > > other developers. If you rely on my function, method or attribute named > > "_foo" - I may change it at anytime, for any reason, and may even > remove > > it in later code. You can choose to use "_foo", but it is at YOUR risk. > > You should use "public API" methods instead, if I have provided them > and > > they do what you need.** > > I looked at Eckel's book very briefly. I would not recommend it. The > code > > examples are not pythonic, nor are the book's suggestions. > > I think the paragraph you pasted below is factually incorrect with > regards > > to python. " > > ***In fact, it is a convention to make all**instance variables private > to > > protect their integrity." is especially wrong (for python).** You > should > > challenge the lesson author to provide a concrete example(s) and also > to > > reconcile these statements with the official python documentation for > you. > > I would recommend the resources below for learning python. All are > free. > > > > Tutorial: [1]http://bit.ly/MCAhYx (You can program in another language, > but don't know python syntax) > > > > New programmer? [2]http://bit.ly/23X7emF or [3]https:// > automatetheboringstuff.com/ or [4]https://runestone.academy/ > runestone/static/thinkcspy/index.html > > > > I think the snippet below > > from**[5]https://docs.python.org/3/tutorial/classes.html explains > private > > variables well, especially the first sentence. > > > > 9.6. Private Variables[6]** > > > > ***Private*** instance variables that cannot be accessed except > from > > inside an object don***t exist in Python. However, there is a > convention > > that is followed by most Python code: a name prefixed with an > underscore > > (e.g.**_spam) should be treated as a non-public part of the API > (whether > > it is a function, a method or a data member). It should be > considered an > > implementation detail and subject to change without notice. > > > > (more ...) > > > > *** > > ***James*** > > On Wed, Apr 18, 2018 at 8:45 PM, Luis Valencia > > <[7]livalencia at my.waketech.edu> wrote: > > > > ** **Hello all, > > > > ** **I'm having a bit of difficulty with the concept of private > > variables and > > ** **methods. I was looking at StackOverflow and I came upon > > ** **this [1] > > [8]******https://stackoverflow.com/questions/ > 1641219/does-python-have-private-variables-in-classes > > > > ** **[2][IMG] [3]class - Does Python have "private" variables in > classes > > ... > > ** ** ** ** ** ** [9]stackoverflow.com > > ** ** ** ** ** ** I'm coming from the Java world and reading Bruce > > Eckels' Python 3 > > ** ** ** ** ** ** Patterns, Recipes and Idioms. While reading about > > classes, it > > ** ** ** ** ** ** goes on to say that in Python there is no need to > > declare > > ** ** ** ** ** ** instance > > > > ** **Is this answer still acceptable? The reason why I'm ask is, > since > > I'm > > ** **taking a Python class some of the reading assignment says that > > Python > > ** **"allows us to block access to any instance variable or method > if we > > want > > ** **to." But I think SO is telling me something else. > > > > ** **Here's an excerpt from the lesson: > > > > ** **By default, all instance variables and methods of an object are > > publicly > > ** **accessible.** That means client code (e.g. code in the main > module) > > can > > ** **access any instance variable and call any method of the > object.** > > Sometimes > > ** **it may be a bad idea to make class members, especially instance > > variables, > > ** **that wide open.** Python allows us to block the access to any > > instance > > ** **variable or method if we want to.** > > ******In fact, it is a convention to make all > > ** **instance variables private to protect their integrity. > > > > ** **Thank you, > > ** **Luis > > > > References > > > > ** **Visible links > > ** **1. > > [10]https://stackoverflow.com/questions/1641219/does-python- > have-private-variables-in-classes > > ** **2. > > [11]https://stackoverflow.com/questions/1641219/does-python- > have-private-variables-in-classes > > ** **3. > > [12]https://stackoverflow.com/questions/1641219/does-python- > have-private-variables-in-classes > > > > _______________________________________________ > > TriZPUG mailing list > > [13]TriZPUG at python.org > > [14]https://mail.python.org/mailman/listinfo/trizpug > > [15]http://tripython.org is the Triangle Python Users Group > > > > References > > > > Visible links > > 1. http://bit.ly/MCAhYx > > 2. http://bit.ly/23X7emF > > 3. https://automatetheboringstuff.com/ > > 4. https://runestone.academy/runestone/static/thinkcspy/index.html > > 5. https://docs.python.org/3/tutorial/classes.html > > 6. Permalink to this headline > > https://docs.python.org/3/tutorial/classes.html#private-variables > > 7. mailto:livalencia at my.waketech.edu > > 8. https://stackoverflow.com/questions/1641219/does-python- > have-private-variables-in-classes > > 9. http://stackoverflow.com/ > > 10. https://stackoverflow.com/questions/1641219/does-python- > have-private-variables-in-classes > > 11. https://stackoverflow.com/questions/1641219/does-python- > have-private-variables-in-classes > > 12. https://stackoverflow.com/questions/1641219/does-python- > have-private-variables-in-classes > > 13. mailto:TriZPUG at python.org > > 14. https://mail.python.org/mailman/listinfo/trizpug > > 15. http://tripython.org/ > > _______________________________________________ > > TriZPUG mailing list > > TriZPUG at python.org > > https://mail.python.org/mailman/listinfo/trizpug > > http://tripython.org is the Triangle Python Users Group > > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > TriZPUG mailing list > TriZPUG at python.org > https://mail.python.org/mailman/listinfo/trizpug > http://tripython.org is the Triangle Python Users Group > > > ------------------------------ > > End of TriZPUG Digest, Vol 120, Issue 6 > *************************************** > -------------- next part -------------- Hello can you unsub me? My family is moving to NY. Thanks! Georgette Georgette Nicolaides 518.605.2914 919.714.9841 @IDeducator [1]https://medium.com/@georgetten [2]www.linkedin.com/in/georgettenicolaides Adobe Captivate | Camtasia | MS PowerPoint On Thu, Apr 19, 2018 at 10:37 AM, <[3]trizpug-request at python.org> wrote: Send TriZPUG mailing list submissions to ** ** ** ** [4]trizpug at python.org To subscribe or unsubscribe via the World Wide Web, visit ** ** ** ** [5]https://mail.python.org/mailman/listinfo/trizpug or, via email, send a message with subject or body 'help' to ** ** ** ** [6]trizpug-request at python.org You can reach the person managing the list at ** ** ** ** [7]trizpug-owner at python.org When replying, please edit your Subject line so it is more specific than "Re: Contents of TriZPUG digest..." Today's Topics: ** **1. Private variables and methods. (Luis Valencia) ** **2. Re: Private variables and methods. (James Whisnant) ** **3. Re: Private variables and methods. (Josh Johnson) ---------------------------------------------------------------------- Message: 1 Date: Thu, 19 Apr 2018 00:45:48 +0000 From: Luis Valencia <[8]livalencia at my.waketech.edu> To: "[9]trizpug at python.org" <[10]trizpug at python.org> Subject: [TriPython] Private variables and methods. Message-ID: ** ** ** ** <[11]CY4PR04MB0953A9B8C44F188A001E186D86B50 at CY4PR04MB0953.namprd04.prod.outlook.com> Content-Type: text/plain; charset="windows-1252" Hello all, I'm having a bit of difficulty with the concept of private variables and methods. I was looking at StackOverflow and I came upon this [12]https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes [[13]https://cdn.sstatic.net/Sites/stackoverflow/img/apple-touch-icon at 2.png?v=73d79a89bded]<[14]https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes> class - Does Python have ?private? variables in classes ...<[15]https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes> [16]stackoverflow.com I'm coming from the Java world and reading Bruce Eckels' Python 3 Patterns, Recipes and Idioms. While reading about classes, it goes on to say that in Python there is no need to declare instance Is this answer still acceptable? The reason why I'm ask is, since I'm taking a Python class some of the reading assignment says that Python "allows us to block access to any instance variable or method if we want to." But I think SO is telling me something else. Here's an excerpt from the lesson: By default, all instance variables and methods of an object are publicly accessible.** That means client code (e.g. code in the main module) can access any instance variable and call any method of the object.** Sometimes it may be a bad idea to make class members, especially instance variables, that wide open.** Python allows us to block the access to any instance variable or method if we want to.** In fact, it is a convention to make all instance variables private to protect their integrity. Thank you, Luis -------------- next part -------------- ** **Hello all, ** **I'm having a bit of difficulty with the concept of private variables and ** **methods. I was looking at StackOverflow and I came upon ** **this [1][17]https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes ** **[2][IMG] [3]class - Does Python have "private" variables in classes ... ** ** ** ** ** ** [18]stackoverflow.com ** ** ** ** ** ** I'm coming from the Java world and reading Bruce Eckels' Python 3 ** ** ** ** ** ** Patterns, Recipes and Idioms. While reading about classes, it ** ** ** ** ** ** goes on to say that in Python there is no need to declare ** ** ** ** ** ** instance ** **Is this answer still acceptable? The reason why I'm ask is, since I'm ** **taking a Python class some of the reading assignment says that Python ** **"allows us to block access to any instance variable or method if we want ** **to." But I think SO is telling me something else. ** **Here's an excerpt from the lesson: ** **By default, all instance variables and methods of an object are publicly ** **accessible.** That means client code (e.g. code in the main module) can ** **access any instance variable and call any method of the object.** Sometimes ** **it may be a bad idea to make class members, especially instance variables, ** **that wide open.** Python allows us to block the access to any instance ** **variable or method if we want to.** In fact, it is a convention to make all ** **instance variables private to protect their integrity. ** **Thank you, ** **Luis References ** **Visible links ** **1. [19]https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes ** **2. [20]https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes ** **3. [21]https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes ------------------------------ Message: 2 Date: Thu, 19 Apr 2018 09:26:54 -0400 From: James Whisnant <[22]jwhisnant at gmail.com> To: "Triangle (North Carolina) Python Users Group (formerly TriZPUG)" ** ** ** ** <[23]trizpug at python.org> Subject: Re: [TriPython] Private variables and methods. Message-ID: ** ** ** ** <[24]CABGiAJEftsgikrZcyxcfgyFB4dhJ6j8tOpFWdujOnkMHizqN-g at mail.gmail.com> Content-Type: text/plain; charset="utf-8" Luis, Short answer : private variables and methods don't exist in python (not with the meaning of "private" from Java). By convention, in python** _foo would be considered "private" from an API perspective. It is a warning to other developers. If you rely on my function, method or attribute named "_foo" - I may change it at anytime, for any reason, and may even remove it in later code. You can choose to use "_foo", but it is at YOUR risk. You should use "public API" methods instead, if I have provided them and they do what you need. I looked at Eckel's book very briefly. I would not recommend it. The code examples are not pythonic, nor are the book's suggestions. I think the paragraph you pasted below is factually incorrect with regards to python. " ? In fact, it is a convention to make all instance variables private to protect their integrity." is especially wrong (for python).** You should challenge the lesson author to provide a concrete example(s) and also to reconcile these statements with the official python documentation for you. I would recommend the resources below for learning python. All are free. Tutorial: [25]http://bit.ly/MCAhYx (You can program in another language, but don't know python syntax) New programmer? [26]http://bit.ly/23X7emF or [27]https://automatetheboringstuff.com/ or [28]https://runestone.academy/runestone/static/thinkcspy/index.html I think the snippet below from [29]https://docs.python.org/3/tutorial/classes.html explains private variables well, especially the first sentence. 9.6. Private Variables? <[30]https://docs.python.org/3/tutorial/classes.html#private-variables> ?Private? instance variables that cannot be accessed except from inside an object don?t exist in Python. However, there is a convention that is followed by most Python code: a name prefixed with an underscore (e.g. _spam) should be treated as a non-public part of the API (whether it is a function, a method or a data member). It should be considered an implementation detail and subject to change without notice. (more ...) ? ?James? On Wed, Apr 18, 2018 at 8:45 PM, Luis Valencia <[31]livalencia at my.waketech.edu> wrote: >** ** Hello all, > >** ** I'm having a bit of difficulty with the concept of private variables and >** ** methods. I was looking at StackOverflow and I came upon >** ** this [1] > ?? > [32]https://stackoverflow.com/questions/1641219/does-python- > have-private-variables-in-classes > >** ** [2][IMG] [3]class - Does Python have "private" variables in classes ... >** ** ** ** ** ** **[33]stackoverflow.com >** ** ** ** ** ** **I'm coming from the Java world and reading Bruce Eckels' > Python 3 >** ** ** ** ** ** **Patterns, Recipes and Idioms. While reading about classes, it >** ** ** ** ** ** **goes on to say that in Python there is no need to declare >** ** ** ** ** ** **instance > >** ** Is this answer still acceptable? The reason why I'm ask is, since I'm >** ** taking a Python class some of the reading assignment says that Python >** ** "allows us to block access to any instance variable or method if we want >** ** to." But I think SO is telling me something else. > >** ** Here's an excerpt from the lesson: > >** ** By default, all instance variables and methods of an object are publicly >** ** accessible.** That means client code (e.g. code in the main module) can >** ** access any instance variable and call any method of the object. > Sometimes >** ** it may be a bad idea to make class members, especially instance > variables, >** ** that wide open.** Python allows us to block the access to any instance >** ** variable or method if we want to. > ?? > In fact, it is a convention to make all >** ** instance variables private to protect their integrity. > > > >** ** Thank you, >** ** Luis > > References > >** ** Visible links >** ** 1. [34]https://stackoverflow.com/questions/1641219/does-python- > have-private-variables-in-classes >** ** 2. [35]https://stackoverflow.com/questions/1641219/does-python- > have-private-variables-in-classes >** ** 3. [36]https://stackoverflow.com/questions/1641219/does-python- > have-private-variables-in-classes > > _______________________________________________ > TriZPUG mailing list > [37]TriZPUG at python.org > [38]https://mail.python.org/mailman/listinfo/trizpug > [39]http://tripython.org is the Triangle Python Users Group > > -------------- next part -------------- ** **Luis, ** **Short answer : private variables and methods don't exist in python (not ** **with the meaning of "private" from Java). By convention, in python** _foo ** **would be considered "private" from an API perspective. It is a warning to ** **other developers. If you rely on my function, method or attribute named ** **"_foo" - I may change it at anytime, for any reason, and may even remove ** **it in later code. You can choose to use "_foo", but it is at YOUR risk. ** **You should use "public API" methods instead, if I have provided them and ** **they do what you need.** ** **I looked at Eckel's book very briefly. I would not recommend it. The code ** **examples are not pythonic, nor are the book's suggestions. ** **I think the paragraph you pasted below is factually incorrect with regards ** **to python. " ** *****In fact, it is a convention to make all**instance variables private to ** **protect their integrity." is especially wrong (for python).** You should ** **challenge the lesson author to provide a concrete example(s) and also to ** **reconcile these statements with the official python documentation for you. ** **I would recommend the resources below for learning python. All are free. **Tutorial: [1][40]http://bit.ly/MCAhYx (You can program in another language, but don't know python syntax) **New programmer? [2][41]http://bit.ly/23X7emF or [3][42]https://automatetheboringstuff.com/ or [4][43]https://runestone.academy/runestone/static/thinkcspy/index.html ** **I think the snippet below ** **from**[5][44]https://docs.python.org/3/tutorial/classes.html explains private ** **variables well, especially the first sentence. 9.6. Private Variables[6]** ** *****Private*** instance** variables** that** cannot be** accessed** except** from ** **inside an object don***t exist in** Python. However, there is a** convention ** **that is followed by most Python** code: a name prefixed with an** underscore ** **(e.g.**_spam) should be treated as a** non-public part of the API** (whether ** **it is a function, a method or** a data member). It should be considered** an ** **implementation detail and subject to change without notice. ** **(more ...) ** ***** ** *****James*** ** **On Wed, Apr 18, 2018 at 8:45 PM, Luis Valencia ** **<[7][45]livalencia at my.waketech.edu> wrote: ** ** **** **Hello all, ** ** **** **I'm having a bit of difficulty with the concept of private ** ** **variables and ** ** **** **methods. I was looking at StackOverflow and I came upon ** ** **** **this [1] ** ** **[8]******[46]https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes ** ** **** **[2][IMG] [3]class - Does Python have "private" variables in classes ** ** **... ** ** **** ** ** ** ** ** [9][47]stackoverflow.com ** ** **** ** ** ** ** ** I'm coming from the Java world and reading Bruce ** ** **Eckels' Python 3 ** ** **** ** ** ** ** ** Patterns, Recipes and Idioms. While reading about ** ** **classes, it ** ** **** ** ** ** ** ** goes on to say that in Python there is no need to ** ** **declare ** ** **** ** ** ** ** ** instance ** ** **** **Is this answer still acceptable? The reason why I'm ask is, since ** ** **I'm ** ** **** **taking a Python class some of the reading assignment says that ** ** **Python ** ** **** **"allows us to block access to any instance variable or method if we ** ** **want ** ** **** **to." But I think SO is telling me something else. ** ** **** **Here's an excerpt from the lesson: ** ** **** **By default, all instance variables and methods of an object are ** ** **publicly ** ** **** **accessible.** That means client code (e.g. code in the main module) ** ** **can ** ** **** **access any instance variable and call any method of the object.** ** ** **Sometimes ** ** **** **it may be a bad idea to make class members, especially instance ** ** **variables, ** ** **** **that wide open.** Python allows us to block the access to any ** ** **instance ** ** **** **variable or method if we want to.** ** ** ********In fact, it is a convention to make all ** ** **** **instance variables private to protect their integrity. ** ** **** **Thank you, ** ** **** **Luis ** ** **References ** ** **** **Visible links ** ** **** **1. ** ** **[10][48]https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes ** ** **** **2. ** ** **[11][49]https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes ** ** **** **3. ** ** **[12][50]https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes ** ** **_______________________________________________ ** ** **TriZPUG mailing list ** ** **[13][51]TriZPUG at python.org ** ** **[14][52]https://mail.python.org/mailman/listinfo/trizpug ** ** **[15][53]http://tripython.org is the Triangle Python Users Group References ** **Visible links ** **1. [54]http://bit.ly/MCAhYx ** **2. [55]http://bit.ly/23X7emF ** **3. [56]https://automatetheboringstuff.com/ ** **4. [57]https://runestone.academy/runestone/static/thinkcspy/index.html ** **5. [58]https://docs.python.org/3/tutorial/classes.html ** **6. Permalink to this headline ** ** ** ** [59]https://docs.python.org/3/tutorial/classes.html#private-variables ** **7. mailto:[60]livalencia at my.waketech.edu ** **8. [61]https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes ** **9. [62]http://stackoverflow.com/ ** 10. [63]https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes ** 11. [64]https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes ** 12. [65]https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes ** 13. mailto:[66]TriZPUG at python.org ** 14. [67]https://mail.python.org/mailman/listinfo/trizpug ** 15. [68]http://tripython.org/ ------------------------------ Message: 3 Date: Thu, 19 Apr 2018 10:37:29 -0400 From: Josh Johnson <[69]lionface.lemonface at gmail.com> To: "Triangle (North Carolina) Python Users Group (formerly TriZPUG)" ** ** ** ** <[70]trizpug at python.org> Subject: Re: [TriPython] Private variables and methods. Message-ID: <[71]2A062A11-50F9-4882-84F9-8DC38E322AAF at gmail.com> Content-Type: text/plain;** ** ** **charset=us-ascii +100 James. The only thing that came to mind to actually do this is pretending to make a property or method private by using descriptors or meta programming... I want to say I've been down that rabbit hole before but can't remember if** its doable (regardless, if it is, its far from elegant and the antithesis of pythonic). JJ -- Brought to you by a grant from the "I'm finally one of the cool kids" foundation for the advancement of geek chic in the mainstream vernacular. > On Apr 19, 2018, at 9:26 AM, James Whisnant <[72]jwhisnant at gmail.com> wrote: > >** **Luis, >** **Short answer : private variables and methods don't exist in python (not >** **with the meaning of "private" from Java). By convention, in python** _foo >** **would be considered "private" from an API perspective. It is a warning to >** **other developers. If you rely on my function, method or attribute named >** **"_foo" - I may change it at anytime, for any reason, and may even remove >** **it in later code. You can choose to use "_foo", but it is at YOUR risk. >** **You should use "public API" methods instead, if I have provided them and >** **they do what you need.** >** **I looked at Eckel's book very briefly. I would not recommend it. The code >** **examples are not pythonic, nor are the book's suggestions. >** **I think the paragraph you pasted below is factually incorrect with regards >** **to python. " >** *****In fact, it is a convention to make all**instance variables private to >** **protect their integrity." is especially wrong (for python).** You should >** **challenge the lesson author to provide a concrete example(s) and also to >** **reconcile these statements with the official python documentation for you. >** **I would recommend the resources below for learning python. All are free. > > Tutorial: [1][73]http://bit.ly/MCAhYx (You can program in another language, but don't know python syntax) > > New programmer? [2][74]http://bit.ly/23X7emF or [3][75]https://automatetheboringstuff.com/ or [4][76]https://runestone.academy/runestone/static/thinkcspy/index.html > >** **I think the snippet below >** **from**[5][77]https://docs.python.org/3/tutorial/classes.html explains private >** **variables well, especially the first sentence. > > 9.6. Private Variables[6]** > >** *****Private*** instance** variables** that** cannot be** accessed** except** from >** **inside an object don***t exist in** Python. However, there is a** convention >** **that is followed by most Python** code: a name prefixed with an** underscore >** **(e.g.**_spam) should be treated as a** non-public part of the API** (whether >** **it is a function, a method or** a data member). It should be considered** an >** **implementation detail and subject to change without notice. > >** **(more ...) > >** ***** >** *****James*** >** **On Wed, Apr 18, 2018 at 8:45 PM, Luis Valencia >** **<[7][78]livalencia at my.waketech.edu> wrote: > >** ** **** **Hello all, > >** ** **** **I'm having a bit of difficulty with the concept of private >** ** **variables and >** ** **** **methods. I was looking at StackOverflow and I came upon >** ** **** **this [1] >** ** **[8]******[79]https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes > >** ** **** **[2][IMG] [3]class - Does Python have "private" variables in classes >** ** **... >** ** **** ** ** ** ** ** [9][80]stackoverflow.com >** ** **** ** ** ** ** ** I'm coming from the Java world and reading Bruce >** ** **Eckels' Python 3 >** ** **** ** ** ** ** ** Patterns, Recipes and Idioms. While reading about >** ** **classes, it >** ** **** ** ** ** ** ** goes on to say that in Python there is no need to >** ** **declare >** ** **** ** ** ** ** ** instance > >** ** **** **Is this answer still acceptable? The reason why I'm ask is, since >** ** **I'm >** ** **** **taking a Python class some of the reading assignment says that >** ** **Python >** ** **** **"allows us to block access to any instance variable or method if we >** ** **want >** ** **** **to." But I think SO is telling me something else. > >** ** **** **Here's an excerpt from the lesson: > >** ** **** **By default, all instance variables and methods of an object are >** ** **publicly >** ** **** **accessible.** That means client code (e.g. code in the main module) >** ** **can >** ** **** **access any instance variable and call any method of the object.** >** ** **Sometimes >** ** **** **it may be a bad idea to make class members, especially instance >** ** **variables, >** ** **** **that wide open.** Python allows us to block the access to any >** ** **instance >** ** **** **variable or method if we want to.** >** ** ********In fact, it is a convention to make all >** ** **** **instance variables private to protect their integrity. > >** ** **** **Thank you, >** ** **** **Luis > >** ** **References > >** ** **** **Visible links >** ** **** **1. >** ** **[10][81]https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes >** ** **** **2. >** ** **[11][82]https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes >** ** **** **3. >** ** **[12][83]https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes > >** ** **_______________________________________________ >** ** **TriZPUG mailing list >** ** **[13][84]TriZPUG at python.org >** ** **[14][85]https://mail.python.org/mailman/listinfo/trizpug >** ** **[15][86]http://tripython.org is the Triangle Python Users Group > > References > >** **Visible links >** **1. [87]http://bit.ly/MCAhYx >** **2. [88]http://bit.ly/23X7emF >** **3. [89]https://automatetheboringstuff.com/ >** **4. [90]https://runestone.academy/runestone/static/thinkcspy/index.html >** **5. [91]https://docs.python.org/3/tutorial/classes.html >** **6. Permalink to this headline >** ** [92]https://docs.python.org/3/tutorial/classes.html#private-variables >** **7. mailto:[93]livalencia at my.waketech.edu >** **8. [94]https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes >** **9. [95]http://stackoverflow.com/ >** 10. [96]https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes >** 11. [97]https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes >** 12. [98]https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes >** 13. mailto:[99]TriZPUG at python.org >** 14. [100]https://mail.python.org/mailman/listinfo/trizpug >** 15. [101]http://tripython.org/ > _______________________________________________ > TriZPUG mailing list > [102]TriZPUG at python.org > [103]https://mail.python.org/mailman/listinfo/trizpug > [104]http://tripython.org is the Triangle Python Users Group ------------------------------ Subject: Digest Footer _______________________________________________ TriZPUG mailing list [105]TriZPUG at python.org [106]https://mail.python.org/mailman/listinfo/trizpug [107]http://tripython.org is the Triangle Python Users Group ------------------------------ End of TriZPUG Digest, Vol 120, Issue 6 *************************************** References Visible links 1. https://medium.com/@georgetten 2. http://www.linkedin.com/in/georgettenicolaides 3. mailto:trizpug-request at python.org 4. mailto:trizpug at python.org 5. https://mail.python.org/mailman/listinfo/trizpug 6. mailto:trizpug-request at python.org 7. mailto:trizpug-owner at python.org 8. mailto:livalencia at my.waketech.edu 9. mailto:trizpug at python.org 10. mailto:trizpug at python.org 11. mailto:CY4PR04MB0953A9B8C44F188A001E186D86B50 at cy4pr04mb0953.namprd04.prod.outlook.com 12. https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes 13. https://cdn.sstatic.net/Sites/stackoverflow/img/apple-touch-icon at 2.png?v=73d79a89bded 14. https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes 15. https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes 16. http://stackoverflow.com/ 17. https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes 18. http://stackoverflow.com/ 19. https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes 20. https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes 21. https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes 22. mailto:jwhisnant at gmail.com 23. mailto:trizpug at python.org 24. mailto:CABGiAJEftsgikrZcyxcfgyFB4dhJ6j8tOpFWdujOnkMHizqN-g at mail.gmail.com 25. http://bit.ly/MCAhYx 26. http://bit.ly/23X7emF 27. https://automatetheboringstuff.com/ 28. https://runestone.academy/runestone/static/thinkcspy/index.html 29. https://docs.python.org/3/tutorial/classes.html 30. https://docs.python.org/3/tutorial/classes.html#private-variables 31. mailto:livalencia at my.waketech.edu 32. https://stackoverflow.com/questions/1641219/does-python- 33. http://stackoverflow.com/ 34. https://stackoverflow.com/questions/1641219/does-python- 35. https://stackoverflow.com/questions/1641219/does-python- 36. https://stackoverflow.com/questions/1641219/does-python- 37. mailto:TriZPUG at python.org 38. https://mail.python.org/mailman/listinfo/trizpug 39. http://tripython.org/ 40. http://bit.ly/MCAhYx 41. http://bit.ly/23X7emF 42. https://automatetheboringstuff.com/ 43. https://runestone.academy/runestone/static/thinkcspy/index.html 44. https://docs.python.org/3/tutorial/classes.html 45. mailto:livalencia at my.waketech.edu 46. https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes 47. http://stackoverflow.com/ 48. https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes 49. https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes 50. https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes 51. mailto:TriZPUG at python.org 52. https://mail.python.org/mailman/listinfo/trizpug 53. http://tripython.org/ 54. http://bit.ly/MCAhYx 55. http://bit.ly/23X7emF 56. https://automatetheboringstuff.com/ 57. https://runestone.academy/runestone/static/thinkcspy/index.html 58. https://docs.python.org/3/tutorial/classes.html 59. https://docs.python.org/3/tutorial/classes.html#private-variables 60. mailto:livalencia at my.waketech.edu 61. https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes 62. http://stackoverflow.com/ 63. https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes 64. https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes 65. https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes 66. mailto:TriZPUG at python.org 67. https://mail.python.org/mailman/listinfo/trizpug 68. http://tripython.org/ 69. mailto:lionface.lemonface at gmail.com 70. mailto:trizpug at python.org 71. mailto:2A062A11-50F9-4882-84F9-8DC38E322AAF at gmail.com 72. mailto:jwhisnant at gmail.com 73. http://bit.ly/MCAhYx 74. http://bit.ly/23X7emF 75. https://automatetheboringstuff.com/ 76. https://runestone.academy/runestone/static/thinkcspy/index.html 77. https://docs.python.org/3/tutorial/classes.html 78. mailto:livalencia at my.waketech.edu 79. https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes 80. http://stackoverflow.com/ 81. https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes 82. https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes 83. https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes 84. mailto:TriZPUG at python.org 85. https://mail.python.org/mailman/listinfo/trizpug 86. http://tripython.org/ 87. http://bit.ly/MCAhYx 88. http://bit.ly/23X7emF 89. https://automatetheboringstuff.com/ 90. https://runestone.academy/runestone/static/thinkcspy/index.html 91. https://docs.python.org/3/tutorial/classes.html 92. https://docs.python.org/3/tutorial/classes.html#private-variables 93. mailto:livalencia at my.waketech.edu 94. https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes 95. http://stackoverflow.com/ 96. https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes 97. https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes 98. https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes 99. mailto:TriZPUG at python.org 100. https://mail.python.org/mailman/listinfo/trizpug 101. http://tripython.org/ 102. mailto:TriZPUG at python.org 103. https://mail.python.org/mailman/listinfo/trizpug 104. http://tripython.org/ 105. mailto:TriZPUG at python.org 106. https://mail.python.org/mailman/listinfo/trizpug 107. http://tripython.org/ From lhasadad at gmail.com Thu Apr 19 18:58:56 2018 From: lhasadad at gmail.com (Bill Trautman) Date: Thu, 19 Apr 2018 18:58:56 -0400 Subject: [TriPython] Private variables and methods. In-Reply-To: References: Message-ID: <4ab34809-ebe6-175a-3b11-4c7102fa61c0@nc.rr.com> Luis, There are _ (under) and __ (Dunder, double underscore) attributes in python. the _ items do not modify the method name and are easily referenced from other code.?? the dunder named attributes have their name more obfuscated and are the closest thing you have to private attributes. As mentioned before,? they should not be considered part of the public contract of a class as they are fair game for later refactoring. Bill On 4/19/2018 9:26 AM, James Whisnant wrote: > Luis, > Short answer : private variables and methods don't exist in python (not > with the meaning of "private" from Java). By convention, in python** _foo > would be considered "private" from an API perspective. It is a warning to > other developers. If you rely on my function, method or attribute named > "_foo" - I may change it at anytime, for any reason, and may even remove > it in later code. You can choose to use "_foo", but it is at YOUR risk. > You should use "public API" methods instead, if I have provided them and > they do what you need.** > I looked at Eckel's book very briefly. I would not recommend it. The code > examples are not pythonic, nor are the book's suggestions. > I think the paragraph you pasted below is factually incorrect with regards > to python. " > ***In fact, it is a convention to make all**instance variables private to > protect their integrity." is especially wrong (for python).** You should > challenge the lesson author to provide a concrete example(s) and also to > reconcile these statements with the official python documentation for you. > I would recommend the resources below for learning python. All are free. > > Tutorial: [1]http://bit.ly/MCAhYx (You can program in another language, but don't know python syntax) > > New programmer? [2]http://bit.ly/23X7emF or [3]https://automatetheboringstuff.com/ or [4]https://runestone.academy/runestone/static/thinkcspy/index.html > > I think the snippet below > from**[5]https://docs.python.org/3/tutorial/classes.html explains private > variables well, especially the first sentence. > > 9.6. Private Variables[6]** > > ***Private*** instance variables that cannot be accessed except from > inside an object don***t exist in Python. However, there is a convention > that is followed by most Python code: a name prefixed with an underscore > (e.g.**_spam) should be treated as a non-public part of the API (whether > it is a function, a method or a data member). It should be considered an > implementation detail and subject to change without notice. > > (more ...) > > *** > ***James*** > On Wed, Apr 18, 2018 at 8:45 PM, Luis Valencia > <[7]livalencia at my.waketech.edu> wrote: > > ** **Hello all, > > ** **I'm having a bit of difficulty with the concept of private > variables and > ** **methods. I was looking at StackOverflow and I came upon > ** **this [1] > [8]******https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes > > ** **[2][IMG] [3]class - Does Python have "private" variables in classes > ... > ** ** ** ** ** ** [9]stackoverflow.com > ** ** ** ** ** ** I'm coming from the Java world and reading Bruce > Eckels' Python 3 > ** ** ** ** ** ** Patterns, Recipes and Idioms. While reading about > classes, it > ** ** ** ** ** ** goes on to say that in Python there is no need to > declare > ** ** ** ** ** ** instance > > ** **Is this answer still acceptable? The reason why I'm ask is, since > I'm > ** **taking a Python class some of the reading assignment says that > Python > ** **"allows us to block access to any instance variable or method if we > want > ** **to." But I think SO is telling me something else. > > ** **Here's an excerpt from the lesson: > > ** **By default, all instance variables and methods of an object are > publicly > ** **accessible.** That means client code (e.g. code in the main module) > can > ** **access any instance variable and call any method of the object.** > Sometimes > ** **it may be a bad idea to make class members, especially instance > variables, > ** **that wide open.** Python allows us to block the access to any > instance > ** **variable or method if we want to.** > ******In fact, it is a convention to make all > ** **instance variables private to protect their integrity. > > ** **Thank you, > ** **Luis > > References > > ** **Visible links > ** **1. > [10]https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes > ** **2. > [11]https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes > ** **3. > [12]https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes > > _______________________________________________ > TriZPUG mailing list > [13]TriZPUG at python.org > [14]https://mail.python.org/mailman/listinfo/trizpug > [15]http://tripython.org is the Triangle Python Users Group > > References > > Visible links > 1. http://bit.ly/MCAhYx > 2. http://bit.ly/23X7emF > 3. https://automatetheboringstuff.com/ > 4. https://runestone.academy/runestone/static/thinkcspy/index.html > 5. https://docs.python.org/3/tutorial/classes.html > 6. Permalink to this headline > https://docs.python.org/3/tutorial/classes.html#private-variables > 7. mailto:livalencia at my.waketech.edu > 8. https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes > 9. http://stackoverflow.com/ > 10. https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes > 11. https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes > 12. https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes > 13. mailto:TriZPUG at python.org > 14. https://mail.python.org/mailman/listinfo/trizpug > 15. http://tripython.org/ > > > > _______________________________________________ > TriZPUG mailing list > TriZPUG at python.org > https://mail.python.org/mailman/listinfo/trizpug > http://tripython.org is the Triangle Python Users Group -------------- next part -------------- Luis, There are _ (under) and __ (Dunder, double underscore) attributes in python. the _ items do not modify the method name and are easily referenced from other code. the dunder named attributes have their name more obfuscated and are the closest thing you have to private attributes. As mentioned before, they should not be considered part of the public contract of a class as they are fair game for later refactoring. Bill On 4/19/2018 9:26 AM, James Whisnant wrote: Luis, Short answer : private variables and methods don't exist in python (not with the meaning of "private" from Java). By convention, in python** _foo would be considered "private" from an API perspective. It is a warning to other developers. If you rely on my function, method or attribute named "_foo" - I may change it at anytime, for any reason, and may even remove it in later code. You can choose to use "_foo", but it is at YOUR risk. You should use "public API" methods instead, if I have provided them and they do what you need.** I looked at Eckel's book very briefly. I would not recommend it. The code examples are not pythonic, nor are the book's suggestions. I think the paragraph you pasted below is factually incorrect with regards to python. " ***In fact, it is a convention to make all**instance variables private to protect their integrity." is especially wrong (for python).** You should challenge the lesson author to provide a concrete example(s) and also to reconcile these statements with the official python documentation for you. I would recommend the resources below for learning python. All are free. Tutorial: [1][1]http://bit.ly/MCAhYx (You can program in another language, but don't know python syntax) New programmer? [2][2]http://bit.ly/23X7emF or [3][3]https://automatetheboringstuff.com/ or [4][4]https://runestone.academy/runestone/static/thinkcspy/index.html I think the snippet below from**[5][5]https://docs.python.org/3/tutorial/classes.html explains private variables well, especially the first sentence. 9.6. Private Variables[6]** ***Private*** instance variables that cannot be accessed except from inside an object don***t exist in Python. However, there is a convention that is followed by most Python code: a name prefixed with an underscore (e.g.**_spam) should be treated as a non-public part of the API (whether it is a function, a method or a data member). It should be considered an implementation detail and subject to change without notice. (more ...) *** ***James*** On Wed, Apr 18, 2018 at 8:45 PM, Luis Valencia [6]<[7]livalencia at my.waketech.edu> wrote: ** **Hello all, ** **I'm having a bit of difficulty with the concept of private variables and ** **methods. I was looking at StackOverflow and I came upon ** **this [1] [8]******[7]https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes ** **[2][IMG] [3]class - Does Python have "private" variables in classes ... ** ** ** ** ** ** [9]stackoverflow.com ** ** ** ** ** ** I'm coming from the Java world and reading Bruce Eckels' Python 3 ** ** ** ** ** ** Patterns, Recipes and Idioms. While reading about classes, it ** ** ** ** ** ** goes on to say that in Python there is no need to declare ** ** ** ** ** ** instance ** **Is this answer still acceptable? The reason why I'm ask is, since I'm ** **taking a Python class some of the reading assignment says that Python ** **"allows us to block access to any instance variable or method if we want ** **to." But I think SO is telling me something else. ** **Here's an excerpt from the lesson: ** **By default, all instance variables and methods of an object are publicly ** **accessible.** That means client code (e.g. code in the main module) can ** **access any instance variable and call any method of the object.** Sometimes ** **it may be a bad idea to make class members, especially instance variables, ** **that wide open.** Python allows us to block the access to any instance ** **variable or method if we want to.** ******In fact, it is a convention to make all ** **instance variables private to protect their integrity. ** **Thank you, ** **Luis References ** **Visible links ** **1. [10][8]https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes ** **2. [11][9]https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes ** **3. [12][10]https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes _______________________________________________ TriZPUG mailing list [[11]13]TriZPUG at python.org [14][12]https://mail.python.org/mailman/listinfo/trizpug [15][13]http://tripython.org is the Triangle Python Users Group References Visible links 1. [14]http://bit.ly/MCAhYx 2. [15]http://bit.ly/23X7emF 3. [16]https://automatetheboringstuff.com/ 4. [17]https://runestone.academy/runestone/static/thinkcspy/index.html 5. [18]https://docs.python.org/3/tutorial/classes.html 6. Permalink to this headline [19]https://docs.python.org/3/tutorial/classes.html#private-variables 7. [20]mailto:livalencia at my.waketech.edu 8. [21]https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes 9. [22]http://stackoverflow.com/ 10. [23]https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes 11. [24]https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes 12. [25]https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes 13. [26]mailto:TriZPUG at python.org 14. [27]https://mail.python.org/mailman/listinfo/trizpug 15. [28]http://tripython.org/ _______________________________________________ TriZPUG mailing list [29]TriZPUG at python.org [30]https://mail.python.org/mailman/listinfo/trizpug [31]http://tripython.org is the Triangle Python Users Group References Visible links 1. http://bit.ly/MCAhYx 2. http://bit.ly/23X7emF 3. https://automatetheboringstuff.com/ 4. https://runestone.academy/runestone/static/thinkcspy/index.html 5. https://docs.python.org/3/tutorial/classes.html 6. mailto:[7]livalencia at my.waketech.edu 7. https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes 8. https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes 9. https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes 10. https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes 11. mailto:13]TriZPUG at python.org 12. https://mail.python.org/mailman/listinfo/trizpug 13. http://tripython.org/ 14. http://bit.ly/MCAhYx 15. http://bit.ly/23X7emF 16. https://automatetheboringstuff.com/ 17. https://runestone.academy/runestone/static/thinkcspy/index.html 18. https://docs.python.org/3/tutorial/classes.html 19. https://docs.python.org/3/tutorial/classes.html#private-variables 20. mailto:livalencia at my.waketech.edu 21. https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes 22. http://stackoverflow.com/ 23. https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes 24. https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes 25. https://stackoverflow.com/questions/1641219/does-python-have-private-variables-in-classes 26. mailto:TriZPUG at python.org 27. https://mail.python.org/mailman/listinfo/trizpug 28. http://tripython.org/ 29. mailto:TriZPUG at python.org 30. https://mail.python.org/mailman/listinfo/trizpug 31. http://tripython.org/ From holmessn at live.unc.edu Wed Apr 25 11:57:16 2018 From: holmessn at live.unc.edu (Holmes, Scott Nolan) Date: Wed, 25 Apr 2018 15:57:16 +0000 Subject: [TriPython] [Python Help for UNC PhD Student with a Conference Deadline][Scott from UNC] Message-ID: Dear TriPython Members, Chris mentioned I can ask on the mailing list whether anyone is available today (5/25) or tomorrow morning to help me with some Python scripting. Name your rate and I can compensate for your time since it is on short notice I am a UNC Phd student modeling cells using python and another program. I am competent in the modeling, but need help on the python since I have to submit to a conference soon. I plan to be at Thursday's meeting, but I wanted to see if anyone was available sooner. Sincerely, Scott Holmes UNC-CH/NCSU Joint Dept. Biomedical Engineering -------------- next part -------------- Dear TriPython Members, Chris mentioned I can ask on the mailing list whether anyone is available today (5/25) or tomorrow morning to help me with some Python scripting. Name your rate and I can compensate for your time since it is on short notice I am a UNC Phd student modeling cells using python and another program. I am competent in the modeling, but need help on the python since I have to submit to a conference soon. I plan to be at Thursday's meeting, but I wanted to see if anyone was available sooner. Sincerely, Scott Holmes UNC-CH/NCSU Joint Dept. Biomedical Engineering From cbc at unc.edu Wed Apr 25 12:03:56 2018 From: cbc at unc.edu (Calloway, Chris) Date: Wed, 25 Apr 2018 16:03:56 +0000 Subject: [TriPython] [Python Help for UNC PhD Student with a Conference Deadline][Scott from UNC] Message-ID: <1403561B-9B02-4626-8099-7337FCDC6203@unc.edu> PS, I believe Scott is working with a package called CompuCell3D (http://www.compucell3d.org/). It appears to use VTK, if any of the KitWare members are aware of CompuCell3D. -- Sincerely, Chris Calloway Applications Analyst University of North Carolina Renaissance Computing Institute (919) 599-3530 ?On 4/25/18, 11:57 AM, "TriZPUG on behalf of Holmes, Scott Nolan" wrote: [This sender failed our fraud detection checks and may not be who they appear to be. Learn about spoofing at http://aka.ms/LearnAboutSpoofing] Dear TriPython Members, Chris mentioned I can ask on the mailing list whether anyone is available today (5/25) or tomorrow morning to help me with some Python scripting. Name your rate and I can compensate for your time since it is on short notice I am a UNC Phd student modeling cells using python and another program. I am competent in the modeling, but need help on the python since I have to submit to a conference soon. I plan to be at Thursday's meeting, but I wanted to see if anyone was available sooner. Sincerely, Scott Holmes UNC-CH/NCSU Joint Dept. Biomedical Engineering From cbc at unc.edu Wed Apr 25 12:06:03 2018 From: cbc at unc.edu (Calloway, Chris) Date: Wed, 25 Apr 2018 16:06:03 +0000 Subject: [TriPython] Reminder: TriPython April 2018 Meeting: Exploratory Visualization of Data and Text Message-ID: Meeting tomorrow. See you there. -- Sincerely, Chris Calloway Applications Analyst University of North Carolina Renaissance Computing Institute (919) 599-3530 ?On 4/13/18, 1:05 PM, "TriZPUG on behalf of Calloway, Chris" wrote: Francois will journey to see us from Winston-Salem again this month: http://tripython.org/Members/cbc/apr-18-mtg When: Thursday, April 26, 7pm Where: Renaissance Computing Institute (RENCI) Biltmore Conference Room, 5th Floor 100 Europa Drive, Suite 590 Chapel Hill What: Francois Dion, organizer of the Piedmont Triad Python User Group and founder and chief data scientist at Dion Research will present on Exploratory Visualization of Data and Text. Extemporaneous "lightning talks" of 5-10 minute duration are also welcome and don't need to be pre-announced. Lightning talks are for you to "show and tell" something you've learned about Python recently, no matter how small. We all use Python, therefore, we are always learning something new about Python that we can tell others. Plenty of free parking is available in the RENCI parking deck. The meeting will be followed by our usual after-meeting at a nearby tavern for food and beverage. Come join us for a fun and informative evening. -- Sincerely, Chris Calloway Applications Analyst University of North Carolina Renaissance Computing Institute (919) 599-3530 From cbc at unc.edu Wed Apr 25 12:12:20 2018 From: cbc at unc.edu (Calloway, Chris) Date: Wed, 25 Apr 2018 16:12:20 +0000 Subject: [TriPython] New Python group in the Triangle Message-ID: Malcolm VanOrder has started a new Python meetup for people who can?t make TriPython meetings on weeknights: https://www.meetup.com/RTP-Python-Meetup It meets this Sunday afternoon at the Lake Boone Starbucks in Raleigh: https://www.meetup.com/RTP-Python-Meetup/events/250102293/ It looks to be about helping each other code. Check it out and let us know. -- Sincerely, Chris Calloway Applications Analyst University of North Carolina Renaissance Computing Institute (919) 599-3530 -------------- next part -------------- Malcolm VanOrder has started a new Python meetup for people who can't make TriPython meetings on weeknights: [1]https://www.meetup.com/RTP-Python-Meetup It meets this Sunday afternoon at the Lake Boone Starbucks in Raleigh: [2]https://www.meetup.com/RTP-Python-Meetup/events/250102293/ It looks to be about helping each other code. Check it out and let us know. -- Sincerely, Chris Calloway Applications Analyst University of North Carolina Renaissance Computing Institute (919) 599-3530 References Visible links 1. https://www.meetup.com/RTP-Python-Meetup 2. https://www.meetup.com/RTP-Python-Meetup/events/250102293/ From francois.dion at gmail.com Wed Apr 25 17:37:14 2018 From: francois.dion at gmail.com (Francois Dion) Date: Wed, 25 Apr 2018 17:37:14 -0400 Subject: [TriPython] Reminder: TriPython April 2018 Meeting: Exploratory Visualization of Data and Text In-Reply-To: References: Message-ID: Looking forward to it. Coinciding with the talk, tomorrow I'm also releasing another open source python module. Oh, quick question. is the projector feed VGA or HDMI? And are there speakers I can connect to? Francois On Wed, Apr 25, 2018 at 12:06 PM, Calloway, Chris wrote: > Meeting tomorrow. See you there. > > -- > Sincerely, > > Chris Calloway > Applications Analyst > University of North Carolina > Renaissance Computing Institute > (919) 599-3530 > > ?On 4/13/18, 1:05 PM, "TriZPUG on behalf of Calloway, Chris" > wrote: > > Francois will journey to see us from Winston-Salem again this month: > > http://tripython.org/Members/cbc/apr-18-mtg > > When: Thursday, April 26, 7pm > Where: Renaissance Computing Institute (RENCI) > Biltmore Conference Room, 5th Floor > 100 Europa Drive, Suite 590 > Chapel Hill > What: Francois Dion, organizer of the Piedmont Triad Python User Group > and founder and chief data scientist at Dion Research will present on > Exploratory Visualization of Data and Text. Extemporaneous "lightning > talks" of 5-10 minute duration are also welcome and don't need to be > pre-announced. Lightning talks are for you to "show and tell" something > you've learned about Python recently, no matter how small. We all use > Python, therefore, we are always learning something new about Python that > we can tell others. Plenty of free parking is available in the RENCI > parking deck. The meeting will be followed by our usual after-meeting at a > nearby tavern for food and beverage. Come join us for a fun and informative > evening. > > > -- > Sincerely, > > Chris Calloway > Applications Analyst > University of North Carolina > Renaissance Computing Institute > (919) 599-3530 > > > > _______________________________________________ > TriZPUG mailing list > TriZPUG at python.org > https://mail.python.org/mailman/listinfo/trizpug > http://tripython.org is the Triangle Python Users Group > -------------- next part -------------- Looking forward to it. Coinciding with the talk, tomorrow I'm also releasing another open source python module. Oh, quick question. is the projector feed VGA or HDMI? And are there speakers I can connect to? Francois On Wed, Apr 25, 2018 at 12:06 PM, Calloway, Chris <[1]cbc at unc.edu> wrote: Meeting tomorrow. See you there. -- Sincerely, Chris Calloway Applications Analyst University of North Carolina Renaissance Computing Institute (919) 599-3530 ***On 4/13/18, 1:05 PM, "TriZPUG on behalf of Calloway, Chris" wrote: ** ** Francois will journey to see us from Winston-Salem again this month: ** ** [4]http://tripython.org/Members/cbc/apr-18-mtg ** ** When: Thursday, April 26, 7pm ** ** Where: Renaissance Computing Institute (RENCI) ** ** ** ** ** **Biltmore Conference Room, 5th Floor ** ** ** ** ** **100 Europa Drive, Suite 590 ** ** ** ** ** **Chapel Hill ** ** What: Francois Dion, organizer of the Piedmont Triad Python User Group and founder and chief data scientist at Dion Research will present on Exploratory Visualization of Data and Text. Extemporaneous "lightning talks" of 5-10 minute duration are also welcome and don't need to be pre-announced. Lightning talks are for you to "show and tell" something you've learned about Python recently, no matter how small. We all use Python, therefore, we are always learning something new about Python that we can tell others. Plenty of free parking is available in the RENCI parking deck. The meeting will be followed by our usual after-meeting at a nearby tavern for food and beverage. Come join us for a fun and informative evening. ** ** -- ** ** Sincerely, ** ** Chris Calloway ** ** Applications Analyst ** ** University of North Carolina ** ** Renaissance Computing Institute ** ** (919) 599-3530 _______________________________________________ TriZPUG mailing list [5]TriZPUG at python.org [6]https://mail.python.org/mailman/listinfo/trizpug [7]http://tripython.org is the Triangle Python Users Group References Visible links 1. mailto:cbc at unc.edu 2. mailto:unc.edu at python.org 3. mailto:cbc at unc.edu 4. http://tripython.org/Members/cbc/apr-18-mtg 5. mailto:TriZPUG at python.org 6. https://mail.python.org/mailman/listinfo/trizpug 7. http://tripython.org/ From cbc at unc.edu Thu Apr 26 10:29:37 2018 From: cbc at unc.edu (Calloway, Chris) Date: Thu, 26 Apr 2018 14:29:37 +0000 Subject: [TriPython] Reminder: TriPython April 2018 Meeting: Exploratory Visualization of Data and Text In-Reply-To: References: Message-ID: Both VGA and HDMI. I don't know for sure if there is an audio connection, but I have a set of nice Bose powered speakers you may use for the meeting. -- Sincerely, Chris Calloway Applications Analyst University of North Carolina Renaissance Computing Institute (919) 599-3530 ?On 4/25/18, 5:37 PM, "TriZPUG on behalf of Francois Dion" wrote: Looking forward to it. Coinciding with the talk, tomorrow I'm also releasing another open source python module. Oh, quick question. is the projector feed VGA or HDMI? And are there speakers I can connect to? Francois On Wed, Apr 25, 2018 at 12:06 PM, Calloway, Chris wrote: > Meeting tomorrow. See you there. > > -- > Sincerely, > > Chris Calloway > Applications Analyst > University of North Carolina > Renaissance Computing Institute > (919) 599-3530 > > On 4/13/18, 1:05 PM, "TriZPUG on behalf of Calloway, Chris" > wrote: > > Francois will journey to see us from Winston-Salem again this month: > > http://tripython.org/Members/cbc/apr-18-mtg > > When: Thursday, April 26, 7pm > Where: Renaissance Computing Institute (RENCI) > Biltmore Conference Room, 5th Floor > 100 Europa Drive, Suite 590 > Chapel Hill > What: Francois Dion, organizer of the Piedmont Triad Python User Group > and founder and chief data scientist at Dion Research will present on > Exploratory Visualization of Data and Text. Extemporaneous "lightning > talks" of 5-10 minute duration are also welcome and don't need to be > pre-announced. Lightning talks are for you to "show and tell" something > you've learned about Python recently, no matter how small. We all use > Python, therefore, we are always learning something new about Python that > we can tell others. Plenty of free parking is available in the RENCI > parking deck. The meeting will be followed by our usual after-meeting at a > nearby tavern for food and beverage. Come join us for a fun and informative > evening. > > > -- > Sincerely, > > Chris Calloway > Applications Analyst > University of North Carolina > Renaissance Computing Institute > (919) 599-3530 > > > > _______________________________________________ > TriZPUG mailing list > TriZPUG at python.org > https://mail.python.org/mailman/listinfo/trizpug > http://tripython.org is the Triangle Python Users Group > From francois.dion at gmail.com Sat Apr 28 13:16:32 2018 From: francois.dion at gmail.com (Francois Dion) Date: Sat, 28 Apr 2018 17:16:32 +0000 Subject: [TriPython] Reminder: TriPython April 2018 Meeting: Exploratory Visualization of Data and Text In-Reply-To: References: Message-ID: Notebooks are up at: https://github.com/fdion/RENCI_talk The Readme provides a bit more details Francois On Thu, Apr 26, 2018, 10:29 Calloway, Chris wrote: > Both VGA and HDMI. I don't know for sure if there is an audio connection, > but I have a set of nice Bose powered speakers you may use for the meeting. > > -- > Sincerely, > > Chris Calloway > Applications Analyst > University of North Carolina > Renaissance Computing Institute > (919) 599-3530 > > ?On 4/25/18, 5:37 PM, "TriZPUG on behalf of Francois Dion" > francois.dion at gmail.com> wrote: > > Looking forward to it. Coinciding with the talk, tomorrow I'm also > releasing another open source python module. > > Oh, quick question. is the projector feed VGA or HDMI? And are there > speakers I can connect to? > > > > Francois > > On Wed, Apr 25, 2018 at 12:06 PM, Calloway, Chris wrote: > > > Meeting tomorrow. See you there. > > > > -- > > Sincerely, > > > > Chris Calloway > > Applications Analyst > > University of North Carolina > > Renaissance Computing Institute > > (919) 599-3530 > > > > On 4/13/18, 1:05 PM, "TriZPUG on behalf of Calloway, Chris" > > > wrote: > > > > Francois will journey to see us from Winston-Salem again this > month: > > > > http://tripython.org/Members/cbc/apr-18-mtg > > > > When: Thursday, April 26, 7pm > > Where: Renaissance Computing Institute (RENCI) > > Biltmore Conference Room, 5th Floor > > 100 Europa Drive, Suite 590 > > Chapel Hill > > What: Francois Dion, organizer of the Piedmont Triad Python User > Group > > and founder and chief data scientist at Dion Research will present on > > Exploratory Visualization of Data and Text. Extemporaneous "lightning > > talks" of 5-10 minute duration are also welcome and don't need to be > > pre-announced. Lightning talks are for you to "show and tell" > something > > you've learned about Python recently, no matter how small. We all use > > Python, therefore, we are always learning something new about Python > that > > we can tell others. Plenty of free parking is available in the RENCI > > parking deck. The meeting will be followed by our usual > after-meeting at a > > nearby tavern for food and beverage. Come join us for a fun and > informative > > evening. > > > > > > -- > > Sincerely, > > > > Chris Calloway > > Applications Analyst > > University of North Carolina > > Renaissance Computing Institute > > (919) 599-3530 > > > > > > > > _______________________________________________ > > TriZPUG mailing list > > TriZPUG at python.org > > https://mail.python.org/mailman/listinfo/trizpug > > http://tripython.org is the Triangle Python Users Group > > > > > -------------- next part -------------- Notebooks are up at: [1]https://github.com/fdion/RENCI_talk The Readme provides a bit more details Francois On Thu, Apr 26, 2018, 10:29 Calloway, Chris <[2]cbc at unc.edu> wrote: Both VGA and HDMI. I don't know for sure if there is an audio connection, but I have a set of nice Bose powered speakers you may use for the meeting. -- Sincerely, Chris Calloway Applications Analyst University of North Carolina Renaissance Computing Institute (919) 599-3530 ***On 4/25/18, 5:37 PM, "TriZPUG on behalf of Francois Dion" wrote: ** ** Looking forward to it. Coinciding with the talk, tomorrow I'm also ** ** releasing another open source python module. ** ** Oh, quick question. is the projector feed VGA or HDMI? And are there ** ** speakers I can connect to? ** ** Francois ** ** On Wed, Apr 25, 2018 at 12:06 PM, Calloway, Chris <[5]cbc at unc.edu> wrote: ** ** > Meeting tomorrow. See you there. ** ** > ** ** > -- ** ** > Sincerely, ** ** > ** ** > Chris Calloway ** ** > Applications Analyst ** ** > University of North Carolina ** ** > Renaissance Computing Institute ** ** > (919) 599-3530 ** ** > ** ** > On 4/13/18, 1:05 PM, "TriZPUG on behalf of Calloway, Chris" ** ** > wrote: ** ** > ** ** >** ** **Francois will journey to see us from Winston-Salem again this month: ** ** > ** ** >** ** **[8]http://tripython.org/Members/cbc/apr-18-mtg ** ** > ** ** >** ** **When: Thursday, April 26, 7pm ** ** >** ** **Where: Renaissance Computing Institute (RENCI) ** ** >** ** ** ** ** ** Biltmore Conference Room, 5th Floor ** ** >** ** ** ** ** ** 100 Europa Drive, Suite 590 ** ** >** ** ** ** ** ** Chapel Hill ** ** >** ** **What: Francois Dion, organizer of the Piedmont Triad Python User Group ** ** > and founder and chief data scientist at Dion Research will present on ** ** > Exploratory Visualization of Data and Text. Extemporaneous "lightning ** ** > talks" of 5-10 minute duration are also welcome and don't need to be ** ** > pre-announced. Lightning talks are for you to "show and tell" something ** ** > you've learned about Python recently, no matter how small. We all use ** ** > Python, therefore, we are always learning something new about Python that ** ** > we can tell others. Plenty of free parking is available in the RENCI ** ** > parking deck. The meeting will be followed by our usual after-meeting at a ** ** > nearby tavern for food and beverage. Come join us for a fun and informative ** ** > evening. ** ** > ** ** > ** ** >** ** **-- ** ** >** ** **Sincerely, ** ** > ** ** >** ** **Chris Calloway ** ** >** ** **Applications Analyst ** ** >** ** **University of North Carolina ** ** >** ** **Renaissance Computing Institute ** ** >** ** **(919) 599-3530 ** ** > ** ** > ** ** > ** ** > _______________________________________________ ** ** > TriZPUG mailing list ** ** > [9]TriZPUG at python.org ** ** > [10]https://mail.python.org/mailman/listinfo/trizpug ** ** > [11]http://tripython.org is the Triangle Python Users Group ** ** > References Visible links 1. https://github.com/fdion/RENCI_talk 2. mailto:cbc at unc.edu 3. mailto:unc.edu at python.org 4. mailto:francois.dion at gmail.com 5. mailto:cbc at unc.edu 6. mailto:unc.edu at python.org 7. mailto:cbc at unc.edu 8. http://tripython.org/Members/cbc/apr-18-mtg 9. mailto:TriZPUG at python.org 10. https://mail.python.org/mailman/listinfo/trizpug 11. http://tripython.org/ From cbc at unc.edu Mon Apr 30 17:40:31 2018 From: cbc at unc.edu (Calloway, Chris) Date: Mon, 30 Apr 2018 21:40:31 +0000 Subject: [TriPython] The State of Python Package Management Message-ID: <9B126F4D-BCD1-42CB-9A1E-A976EDB1BB6F@unc.edu> Via Rob Ladd: https://xkcd.com/1987/ -- Sincerely, Chris Calloway Applications Analyst University of North Carolina Renaissance Computing Institute (919) 599-3530 -------------- next part -------------- Via Rob Ladd: https://xkcd.com/1987/ -- Sincerely, Chris Calloway Applications Analyst University of North Carolina Renaissance Computing Institute (919) 599-3530