On 28/04/2019 15:56, David wrote:
> I'm sorry to hear it's such a headache. It sounds like the list
> manager interface for that task is dreadful. It should be able to take
> you straight to the configuration for the user who wrote the message.
Its not that bad but it does involve copying the
On Sun, 28 Apr 2019 at 02:57, Alan Gauld via Tutor wrote:
> On 27/04/2019 01:22, David wrote:
>
> > It's no big deal, but I wonder why you wouldn't approve an address
> > the first time you see that it is being used for legitimate discussion.
>
> Time...
>
> It takes about 10 seconds to scan a
Code:
from unittest.mock import Mock
class C:
def get_val(self):
print(1)
mock = Mock()
mock.mock_add_spec(C())
mock.get_val.side_effect = C().get_val
print(isinstance(mock, C))
True
mock.get_val()
1
In the above code, if I replace `mock.get_val.side_effect = C().get_val` with
On Sun, Apr 28, 2019 at 03:00:12PM +1000, Nathan D'Elboux wrote:
> this is a learning exercise for me so how do more experienced python coders
> approach modules like this, when you encounter a module that has sparse
> documentation how do you learn more about the functionality of said module?
>
On 28/04/2019 06:00, Nathan D'Elboux wrote:
> import urlGET
> # No information on urlGET as of yet
>
> https://pypi.org/project/urlget/
>
> this is a learning exercise for me so how do more experienced python coders
> approach modules like this, when you encounter a module that has sparse
>
Hi all,
I am pulling apart a python script called Maltran from github and just
looking at the modules its importing. the modules in use and that i can
find plenty of info on are.
import requests.
import sys
import re
import time
import urlGET
# No information on urlGET as of yet