« first day (2842 days earlier)      last day (2110 days later) » 

12:09 AM
@DaveRandom lol ... so php has now yield from
wait waht, eevee is still right..
 
12:50 AM
@AnttiHaapala til, that is indeed <expletive> behaviour
the fractal article is less true that it was at the time, curation is much better now, but yeh that's a good example of it still being imperfect
internally the correct behaviour shouldn't be that hard to implement, but at this point it would probably require some syntactic indicator at the call site, there's no nice way
One of PHP's strengths and weaknesses is the reluctance to break backwards compat, it's nice to know that 20 year old code will probably run on a new version, but it leaves ancient mistakes hanging around like a bad smell
 
Don't you dare steal Dave, dear
 
@FélixGagnon-Grenier they lured me in, like sirens, singing sweet songs about how their SO questions have readable code samples because of enforced indentation at the language level, and promises of multiple inheritance from concrete types
 
> multiple inheritance
I never really got the point, I believe
... aren't those just poor folks interfaces?
 
 
4 hours later…
5:11 AM
@FélixGagnon-Grenier It's the other way around. Interfaces are poor folks, watered down multiple inheritance
 
 
3 hours later…
8:12 AM
And thus the Interface Wars began
 
hi all! Is there any python built in function that I can use in order to put a mouse selection of text into a variable? ty!
 
indentation typo, 2 answers in 2 minutes stackoverflow.com/questions/51569405/…
A dupe too of course
 
 
2 hours later…
9:53 AM
@Code-Apprentice actually, incorrect.
 
 
2 hours later…
12:09 PM
Is there some preferred way of overriding flask app configuration when unit testing? I have the following fixture to create the test app:
@pytest.fixture
def client(tmpdir):
    flask_app.config['BASE_UPLOAD_DIRECTORY'] = os.path.join(str(tmpdir), 'test_uploads')
    flask_app.config['CORPUS_PATH'] = os.path.join(str(tmpdir), 'corpus')

    with flask_app.test_client() as c:
        yield c
But when I run this there's some places in the code that are importing the actual flask app instead of the test fixture outside a request and hence have the wrong configuration on them.
Am I just asking an XY problem? Is the better approach to just not store config directly on the app?
 
1:10 PM
hi all! Is there any python built in function that I can use in order to put a mouse selection of text into a variable? ty!
 
You will have to look into libraries for that
 
hiiiiii o/
i'm new
 
 
10 hours later…
11:42 PM
^ 10 hours is a long time for nobody to post anything
5
 

« first day (2842 days earlier)      last day (2110 days later) »