On Thursday, 23 October 2014 20:02:43 UTC+1, Chris Angelico wrote:
> I don't think it's possible to auto-solve the Google Groups formatting
> issues at the mailing list level, as the fundamental problem is that
> information isn't being transmitted. (Forcing everything to be wrapped
> and forcing
Thanks everyone. That's a thorough enough explanation for me.
--
https://mail.python.org/mailman/listinfo/python-list
Just out of academic interest, is there somewhere in the Python docs where the
following is explained?
>>> 3 == True
False
>>> if 3:
print("It's Twue")
It's Twue
i.e. in the if statement 3 is True but not in the first
--
https://mail.python.org/mailman/listinfo/python-list
On Wednesday, 22 October 2014 19:43:25 UTC+1, luc2 wrote:
> hello, would you know how to make data_files work in setuptools ?
> i can't figure out how to put datas in the generated .tar.gz
If you're creating an sdist then you'll need to create a MANIFEST.in file in
the same folder as setup.py wi
On Monday, 20 October 2014 18:56:05 UTC+1, Ian wrote:
> Rather, I'm saying that where the blank line is should be the start of
> a new function. There would still be a blank line, just no longer
> inside the function.
>
> Now, maybe you think there should be more blank lines in the above, in
> wh
On Saturday, 18 October 2014 11:53:16 UTC+1, Steven D'Aprano wrote:
> I'm curious what aspect of idiomatic Perl code you are referring to. When
> people talk about Perl code dismissively, I normally think of three things:
>
> - excessively long one-liners;
> - excessive use of symbols and sigils
On Thursday, 16 October 2014 15:05:47 UTC+1, Ian wrote:
> I would have suggested a Counter if I thought it fit the OP's use
> case. If you're listing directory contents, you're not going to have
> any repeated strings, so all the counts will be 1, and your Counter
> might as well be a list, which
On Wednesday, 15 October 2014 20:31:15 UTC+1, Ian wrote:
> I agree. I very rarely use blank lines inside functions. As I see it,
> if you feel you need a blank line for separation within a function,
> that's an indication your function is overly complex and should be
> broken up.
Whereas I feel t
On Wednesday, 15 October 2014 19:39:43 UTC+1, Shiva wrote:
> I am trying to search a string through files in a directory - however while
> Python script works on it and writes a log - I want to present the user with
> count of number of strings found. So it should increment for each string
> foun