Re: why no camelCase in PEP 8?

2020-05-18 Thread Juergen Brendel
On Mon, 2020-05-18 at 19:28 -0400, Dan Sommers wrote: > On Tue, 19 May 2020 09:55:04 +1200 > Juergen Brendel wrote: > > > ... he prefers snake-case. > > That's not snake_case. That's kebab-case.¹ > > ¹ https://wiki.c2.com/?KebabCase :-) -- https://mail.python.

Re: why no camelCase in PEP 8?

2020-05-18 Thread Juergen Brendel
Hello! We have now moved into a pros/cons discussion of snake vs camel-case, which wasn't the original question. But discussions about coding styles are always fun, so why not... :-) I agree with Eli's reasoning about the grep-ability. It's something that people don't often pay attention to,

Re: Python dependences

2020-04-21 Thread Juergen Brendel
Hello! I always use 'pip', but I heard many people like 'conda'. So far I'm doing ok with 'pip' and many/most instructions or documentation just refers to that as well. Still seems to be the most standard way of installing Python dependencies. The trick is to always create a nice virtual

Re: Getting the dependencies of a function from a library

2020-04-20 Thread Juergen Brendel
Hello! Not sure what's vague about the question, I think it was pretty clear. Imagine this: >>> import requests >>> >>> magic_function(requests.get) . prints big output of all other functions and libraries used by . requests.get, plus all the functions used by those functions, .

Re: RFC: For Loop Invariants

2020-04-10 Thread Juergen Brendel
Hello! On Fri, 2020-04-10 at 15:44 -0500, Elliott Dehnbostel wrote: > chars = "abcaaabkjzhbjacvb" > seek = {'a','b','c'} > count = 0 > > for a in chars if a in seek: count += 1 Interesting proposal. However, I'm not sure how much benefit it really will give us in practice. Reason being:

Re: How Does requests.get Work?

2020-04-01 Thread Juergen Brendel
Hello! Can you elaborate on what you mean by "use directly"? Juergen On Thu, 2020-04-02 at 01:12 +0400, Abdur-Rahmaan Janhangeer wrote: > Greetings list, > > I was viewing requests https://github.com/psf/requests > > I know we can do `requests.get` > > Found `get` defined in api.py > > I