Re: Teaching

2017-07-02 Thread Steve D'Aprano
On Mon, 3 Jul 2017 03:45 am, Mark- wrote: > ad...@python.org wrote: > >> Irv Kalb: >> > I teach Python at two colleges in Silicon Valley. >> >> >> and I don't give a fuck about that. > > Wow, some of you folks are so civilized. It's one person, a troll who is sending abusive and racist messag

Re: Proper architecture

2017-07-02 Thread Andrew Zyman
Cameron, This is much more than I hoped for. >From quickly looking over - most your notes are perfectly on target. Allow sometime to digest and reply. Thank you very much! On 2 Jul 2017 8:14 p.m., "Cameron Simpson" wrote: > On 02Jul2017 11:02, Andrew Z wrote: > >> I'd appreciate your suggestion

Re: Proper architecture

2017-07-02 Thread Cameron Simpson
On 02Jul2017 11:02, Andrew Z wrote: I'd appreciate your suggestions for a better approach to the following task. I have 2 files ( 2 classes). One (ClassA) has all logic related to the main workflow of the program. Another (DB), I like to offload all operations with a DB ( sql3 in this case).

Re: how to create this dependency table from ast?

2017-07-02 Thread breamoreboy
On Sunday, July 2, 2017 at 2:32:36 PM UTC+1, ad...@python.org wrote: > ad...@python.org: > > Hi, Ho! > > > it is crucial that you dump that fucking Windows of yours and become > real pythonic under Linux ! Isn't this spammer, or is it spanner, cute? I'm rather upset that he's been duplicating m

Problem getting unittest tests for existing project working

2017-07-02 Thread Aaron Gray
I am trying to get distorm3's unittests working but to no avail. I am not really a Python programmer so was hoping someone in the know maybe able to fix this for me. Here's a GitHub issue I have created for the bug :- https://github.com/gdabah/distorm/issues/118 -- Aaron Gray Independent

Re: Can we please dump google groups completely?

2017-07-02 Thread Chris Angelico
On Mon, Jul 3, 2017 at 6:35 AM, Chris Green wrote: > ad...@python.org wrote: >> >> after I censored all your posts, the forum immediately became well > > What forum is that? NOTE: Posts on Google Groups are showing up with a variety of forged email addresses, including "ad...@python.org". Do not

Re: Can we please dump google groups completely?

2017-07-02 Thread Chris Green
ad...@python.org wrote: > > after I censored all your posts, the forum immediately became well What forum is that? -- Chris Green ยท -- https://mail.python.org/mailman/listinfo/python-list

Re: Teaching

2017-07-02 Thread Marko Rauhamaa
alister : > Beware of the Turing Tar-pit in which everything is possible but > nothing of interest is easy. I understand the pitfalls, but the alternatives are simply untenable. In particular, rule languages are the spawn of the devil. Marko -- https://mail.python.org/mailman/listinfo/python-l

Re: Teaching

2017-07-02 Thread alister
On Sun, 02 Jul 2017 17:45:39 +, Mark- wrote: > ad...@python.org wrote: > >> Irv Kalb: >> > I teach Python at two colleges in Silicon Valley. >> >> >> and I don't give a fuck about that. > > Wow, some of you folks are so civilized. It's not normally like this. We usually get a much higher

Proper architecture

2017-07-02 Thread Andrew Z
Hello, I'd appreciate your suggestions for a better approach to the following task. I have 2 files ( 2 classes). One (ClassA) has all logic related to the main workflow of the program. Another (DB), I like to offload all operations with a DB ( sql3 in this case). I'm trying to pass the connect

Re: Teaching

2017-07-02 Thread Mark-
ad...@python.org wrote: > Irv Kalb: > > I teach Python at two colleges in Silicon Valley. > > > and I don't give a fuck about that. Wow, some of you folks are so civilized. -- https://mail.python.org/mailman/listinfo/python-list

Re: Teaching the "range" function in Python 3

2017-07-02 Thread Rick Johnson
On Saturday, July 1, 2017 at 12:48:39 AM UTC-5, Christian Gollwitzer wrote: > Am 30.06.17 um 04:33 schrieb Rick Johnson: > > And to further drive home the point, you can manually > > insert a list literal to prove this: > > > > >>> range(10) > > [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] > > >>

Re: Teaching the "range" function in Python 3

2017-07-02 Thread Rick Johnson
On Thursday, June 29, 2017 at 9:58:23 PM UTC-5, Chris Angelico wrote: > On Fri, Jun 30, 2017 at 12:33 PM, Rick Johnson > > A better *FIRST* example would be something like this: > > > > def add(x, y): > > return x + y > > > > When teaching a student about functions, the first step is >

Re: how to make this situation return this result?

2017-07-02 Thread Thomas Jollans
On 01/07/17 19:00, Lee Ho Yeung wrote: > My situation is a dictionary with tuple key > I think dictionary.values()[index] > Is correct Unless your dictionary only has one element, this is almost certainly incorrect as dictionary items are not ordered: if this returns the right object, then it's by

Re: pythonhosted.org status?

2017-07-02 Thread breamoreboy
On Sunday, July 2, 2017 at 10:03:34 AM UTC+1, Irmen de Jong wrote: > Hi, > I'm using pythonhosted.org to host the docs for various projects but it has > either been > very slow or unavailable over the past week. Anyone else having the same > problems? > Should I perhaps consider putting my docs o

Re: how to create this dependency table from ast?

2017-07-02 Thread Ho Yeung Lee
On Sunday, July 2, 2017 at 9:59:48 PM UTC+8, Ho Yeung Lee wrote: > On Sunday, July 2, 2017 at 9:53:50 PM UTC+8, Ho Yeung Lee wrote: > > On Sunday, July 2, 2017 at 9:32:36 PM UTC+8, ad...@python.org wrote: > > > ad...@python.org: > > > > Hi, Ho! > > > > > > > > > it is crucial that you dump that f

Can we please dump google groups completely?

2017-07-02 Thread breamoreboy
Yes I know it's daft that it's where I'm posting from, but I'm still banned from using the main mailing list. I've reported over 80 posts today alone, meaning that it's less than useless for anybody who is seriously interested in Python. wxpython did the same years ago, why can't we? Kindest

Re: how to make this situation return this result?

2017-07-02 Thread breamoreboy
On Saturday, July 1, 2017 at 6:55:59 PM UTC+1, Ho Yeung Lee wrote: > My situation is a dictionary with tuple key > I think dictionary.values()[index] > Is correct > This is the second time you've said this and it makes no more sense now than it did the first time. Please explain exactly what yo

Re: how to create this dependency table from ast?

2017-07-02 Thread Ho Yeung Lee
On Sunday, July 2, 2017 at 9:53:50 PM UTC+8, Ho Yeung Lee wrote: > On Sunday, July 2, 2017 at 9:32:36 PM UTC+8, ad...@python.org wrote: > > ad...@python.org: > > > Hi, Ho! > > > > > > it is crucial that you dump that fucking Windows of yours and become > > real pythonic under Linux ! > > i do no

Re: how to create this dependency table from ast?

2017-07-02 Thread Ho Yeung Lee
On Sunday, July 2, 2017 at 9:32:36 PM UTC+8, ad...@python.org wrote: > ad...@python.org: > > Hi, Ho! > > > it is crucial that you dump that fucking Windows of yours and become > real pythonic under Linux ! i do not understand what is difference in result if run in window and linux goal is to cr

how to create this dependency table from ast?

2017-07-02 Thread Ho Yeung Lee
i find parseprint function not exist in python 2.7 goal is to create a table graph = {'A': ['B', 'C'], 'B': ['C', 'D'], 'C': ['D'], 'D': ['C'], 'E': ['F'], 'F': ['C']} from a = 1 b = 1 c = a + b d = c e = c file = open(r"C:\Users

pythonhosted.org status?

2017-07-02 Thread Irmen de Jong
Hi, I'm using pythonhosted.org to host the docs for various projects but it has either been very slow or unavailable over the past week. Anyone else having the same problems? Should I perhaps consider putting my docs on readthedocs.org instead? Irmen -- https://mail.python.org/mailman/listinfo/