On 26/04/2019 05:29, Steven D'Aprano wrote:
> (deliberately? accidently?) run into one of the slightly advanced
> corners of Python: unbound methods.
Ooh, good catch. I completely forgot that the string class'
name is str...
That's why he didn't get a name error...
--
Alan G
Author of the Lea
On 26/04/19 11:10 AM, Steven D'Aprano wrote:
On Thu, Apr 25, 2019 at 02:52:07PM +0530, Arup Rakshit wrote:
Here it is: *3.3.2.1. Customizing module attribute access*
(https://docs.python.org/3/reference/datamodel.html#customizing-module-attribute-access)
Oh! That's brand new in 3.7, no wonder
On 26/04/2019 13:48, Arup Rakshit wrote:
> BTW, one thing I would like to know about this list is that, everytime I
> send an email I see it the in list after 2 hours approx. Is this for me
> or everybody? I am just curious.
Just for you! ...And every other new poster :-)
It stays on moderatio
On Fri, Apr 26, 2019 at 06:18:32PM +0530, Arup Rakshit wrote:
> BTW, one thing I would like to know about this list is that, everytime I
> send an email I see it the in list after 2 hours approx. Is this for me
> or everybody? I am just curious.
Just you, I think.
Looking at the headers of you
On 4/25/19 10:29 PM, Steven D'Aprano wrote:
> On Thu, Apr 25, 2019 at 10:46:31AM -0700, Roger Lea Scherer wrote:
>
>> with open('somefile') as csvDataFile:
>> csvReader = csv.reader(csvDataFile)
>> for row in range(100):
>> a = "Basic P1"
>> str.replace(a, "")
>> pr
On 26/04/19 8:58 PM, Alan Gauld via Tutor wrote:
On 26/04/2019 13:48, Arup Rakshit wrote:
BTW, one thing I would like to know about this list is that, everytime I
send an email I see it the in list after 2 hours approx. Is this for me
or everybody? I am just curious.
Just for you! ...And every
On 26/04/19 10:58 AM, Steven D'Aprano wrote:
On Thu, Apr 25, 2019 at 05:40:18PM +0530, Arup Rakshit wrote:
I have a small app like this:
Please simplify your code to the minimum needed to demonstrate the
problem you are asking about. This bit is excellent:
pizza-shop$ tree .
.
└── pizzapy