« first day (3808 days earlier)      last day (1133 days later) » 

12:00 AM
 
heh. I gave the privilege of naming our CPU-heavy instance to my teammate (I don't take naming decisions lightly!). Thankfully we agreed on The Colostomizer after this
 
12:34 AM
I just answered my first ever YouTube survey. I don't know how I feel about this occasion.
I mean, the question was "How do you find YouTube's ad campaigns" and my answer was the "awful" button, but Admiral Ackbar is prominently in my mind
 
 
1 hour later…
1:48 AM
cbg :), have a doubt on status codes, a function is run based on a POST request, if it runs well a body such as {'code': 200, msg: 'Success'} is returned, else {'code': 400, msg:'Failure'}, but both of these will be sent with 200 OK status, is this wrong? is it ok to be sending codes in the response body?
by runs well, what I mean is the python function ran without errors and gave an output, not runs well = anything that gets caught in the generic except Exception block
 
"Success: I'm able to send you your error code" seems a bit... wonky
 
so it must be 400 and the code key must be avoided correct? that was my assumption but I am yet to dive into status codes
 
I'll be totally honest - I don't know the full HTTP protocol and how this is handled, but there are official ways of handling this
If I guessed (and maybe I look foolish) it'll get thrown into the header of the response
But Flask, for example, gives a set approach for returning a status code and a payload
 
yeah I did see that, return body, code syntax, but people here use Tornado
 
Have you pinged it with requests?
 
1:57 AM
make a POST call you mean?
 
That'll be the tell-tale, right? Can you handle your own responses in a sane way?
Yeah, I'd just fire a bunch of requests off using the requests library in another script and see if I can cope with what's happening :)
 
if it contributes to the discussion, all responses from this server are 200 OK
 
But you might have an error code in that payload? Or am I misunderstanding you?
 
{'code': 400, msg:'Failure'} with 200 is the error response, or are you meaning something else?
 
Nope, I was just slow typing sorry. That is nonsensical
That goes back to my initial message. That server is borked. There is a distinct way of sending back the HTTP status code (I speculated at header but I'm probably wrong). The server is broken
 
2:03 AM
ok this is more than what I need, now I know I need to google http response headers, you have been helpful, melon :D
at least I know my instincts are right about this being messy
 
No worries. I don't know how helpful I've really been, but note that you get a 200 code on a payload that contains a 400. That 200 is probably implicit in how your server just responds to requests, and someone decided to catch the error and bundle it into the response body for.... reasons
Whatever gives that 200 code by default - that's a hook onto something you need to change IMO
 
there is tornadoweb.org/en/stable/… I guess, but I dont see this in the code base
 
2:20 AM
@python_user looks reasonable to me
 
thanks for re assuring, I will talk to the people here and see if I can sort this out
 
 
2 hours later…
3:55 AM
Here are the HTTP status codes that should be returned. httpstatuses.com
I once saw HTTP status codes summarized as something like:
100's - Info (does anybody use these?)
200's - Success
300's - Sorry, wrong number (redirect)
400's - You (the client) screwed up
500's - I (the server) screwed up
A server that returns 200 when there was an error is not really helping. Like calling a function with bad arguments and having it silently do nothing instead of raising an exception.
 
4:55 AM
this is easy to remember for me in the long run
some of the 400 ones in that site are the ones that must actually be sent in my case
 
5:16 AM
@roganjosh Andras' solution is good, as long as you're guaranteed there are exactly two (well maybe 2+) 'delivery' statuses per driver per day. If that breaks or is incomplete or out of order, messes things up. Depends how much robustness you want.
 
5:27 AM
Hi raf, room rules require you dont ask for help with recent (<48 hours) questions
 
raf
oh sorry
 
its ok :), just wanted to point it out, you are free to ask any other question as long as it meets the rules
 
user13727121
5:40 AM
How do I get the result of a variable and pass that into another function without the use of global variables? Like in this example, dpaste.com/DCV948F9J, I need to use the result of set_upper_number and generate_random_number in my play_round function, if I assign parameters to play_round, when I call that function, what should I put in those parameters?
 
8:11 AM
@CoreVisional The only way to send values to a function is to pass them as arguments, and the only way to get values out of a function is to return them. If those kinds of communication don't work for you, then you have to restructure your code so that they do.
 
9:01 AM
@CoreVisional Just wondering, but have you done the Python tutorial? Passing values in and out of functions is a pretty fundamental task.
 
9:19 AM
hey
 
user13727121
9:59 AM
@MisterMiyagi Yes I did, but not on the link you provided. Did some pretty basic exercises, where my function has parameters and I call them and provide the arguments to those parameters. The thing is, I want to use them inside a function, not do it outside of the function
 
10:28 AM
I'm honestly not sure why you feel is there is a difference. Calling functions and storing their result works the same in any scope.
Are you trying to avoid assigning the result to a variable at global scope? Because that is not what is meant when people say not to use globals.
 
user13727121
10:53 AM
@MisterMiyagi I stored the result to a variable in the global scope, probably the easiest way since I couldn't figure out how to implement my desired solution.
 
@MisterMiyagi This is an interesting point, MM. I could see that, to a new person, passing a variable to and from a method might be considered as "using a global variable," since it introduces a variable outside the scope of the function.
 
user13727121
@MisterMiyagi Ye..s, I did it like this dpaste.com/4FYUPZZYC, I stored the result from set_upper_number to max_num. Most of the tutorials I've learned had said that "global variable" is not a good thing, I still use it, but I try to "avoid it"
 
@CoreVisional - the real issue with global variables is when they are declared at module scope, and manipulated directly from within a function (usually requiring that they be declared "global" inside the function, but not always).
 
user13727121
@PaulMcG I've read about the cons of declaring the variable global inside a function, like it will cause some side effects to the function that declared it global if an accidental change happened to the variable
 
In your code, you are not "reaching out" from inside set_upper_number to manipulate max_num directly - you are just returning a value. This makes set_upper_number easy to test for one thing, and if there is a problem with max_num getting a mysterious value during testing or development, you don't have to open up set_upper_number to see if it is doing anything unexpected.
The historical examples usually involve multiple functions declaring the same variable as global, and getting a bug when one function updates that variable in a way that one or more of the other functions doesn't expect.
 
11:02 AM
that's how you get toyota camry accidents
 
user13727121
@PaulMcG So in beginner's terms...am I doing it right? Assigning it to max_num in the global scope so I can reuse it whenever I want should be fine, right? I wasn't expecting max_num to call set_upper_number when I assign the function to a variable, thought it would just store the result instead of calling it, now I know.
 
@AndrasDeak I swear it reads like April Fool's Day fodder: Other egregious deviations from standard practice were the number of global variables in the system. (A variable is a location in memory that has a number in it. A global variable is any piece of software anywhere in the system can get to that number and read it or write it.) The academic standard is zero. Toyota had more than 10,000 global variables.
 
that's the part that I had in mind :)
really drives the "spaghetti code" message home
 
Well, yes and no. As far as set_upper_number is concerned, you are just returning a value, and then in the calling code, you are saving it to a variable. The problem you have is actually in play_round. In this module, you are actually "reaching outside" the function to get at max_num, so at this point you are using it as a global variable (albeit in a read-only mode - while this avoids some bugs, it still creates a hidden dependency on max_num).
 
Until then it might be that the reviewer is just too pedantic. But there's no way 10000 globals work.
 
11:13 AM
Now imagine if you had 50 variables at module scope, all being read and sometimes modified from within different functions. And at some point, one or more of those variables gets an unexpected value, or more likely a couple of those variables get into an inconsistent state (like if one variable was a list of numbers, and another was the average of those numbers). Where do you start looking for where the problem came from? They can get updated from anywhere because they are globally visible.
 
@AndrasDeak I'm guessing some of that was arrays, 2D arrays. Btw, that was a 2013 verdict on the 2005 version of Camry electronic throttle control software. So already an 8-yo report on 16-yo product. Presume it has been updated since. Aso, there is zero mention of the issue, the crash or the lawsuit on en.wikipedia.org/wiki/Toyota_Camry
 
I've worked on COBOL projects where hundreds of global variables was typical. Madness.
 
user13727121
@PaulMcG Well I'm thinking of scratching max_num out now that I know I'm just assigning a function to a variable. Unless I put a parameter in play_round and refer that parameter to max_num...but then again, it still works the same, play_round still reaches outside to get the result
 
Actually, they were in a single data structure, which was passed as a parameter to every function. So while technically not global, the effect was the same.
 
@PaulMcG Right. In conjunction with the other findings on watchdogs not working, overly complicated functions, CPU overload and task death, it's a concurrency nightmare. An automotive Boeing 737Max.
 
11:19 AM
@CoreVisional - in your code, there is no need for max_num to exist outside of play_again. Just define it inside play_again, pass it as a parameter to play_round, and you will have de-globalized your access to it.
Accessing a parameter is not quite the same kind of "reaching outside". If you modify the int max_num inside a function where you've passed it as a parameter, that modification is not visible outside the function.
 
user13727121
@PaulMcG Okay, I think I got it right now, no? dpaste.com/57NQVVTYD
 
Better! Now, just to make this a little clearer, I'm going to ask that you change the name of max_num inside of play_round - call it something like upper_limit. (This isn't absolutely necessary, but it does clear up potential confusion when you use the same name in multiple places.)
 
user13727121
it works as I want it to. Correct me if I'm wrong because I'm trying to understand what I just did. Basically, when I assign set_upper_number to max_num inside play_again function, it calls set_upper_number and inside that function, it returns the user input, and that returned value gets sent to all the functions which have the parameter that links to max_num?
 
user13727121
@PaulMcG actually, this is just an example to my program, I named it more clearer there. It's better if I take the issue, make the example so that people won't have to read through all the codes but the issue
 
My point is that you use different names, not just clearer names.
 
user13727121
11:33 AM
@PaulMcG oh you mean the parameters? If so, yes, I'll use different and clearer names when I implement the code in my program
 
And there isn't really any magical "sending" of the value to other functions. When the function gets called, the current value of max_num is passed as the parameter to it.
Yes, if you don't reuse max_num (or whatever) as the parameter name, then it will be clearer that you aren't trying to reach outside and read or update the max_num that is defined elsewhere.
And using different names actually helps you avoid accidentally creating a global dependency.
 
user13727121
@PaulMcG and the values are passed because I have a return keyword in set_upper_number, right? EDIT: nvm, I forgot that Python evaluates from the right first, and then assign the result to the variable
 
raf
Hi, can anyone kindly tell me how to put a limit to the number of selections in the Streamlit multiselect?
For example:
 
user13727121
@PaulMcG actually, I'm still confused about it, does that mean max_num acts as parameter to set_upper_number before it gets called?
 
Ehhhh, yes, I suppose. But I don't look at these thinking "Having keyword 'x' makes my data non-global." Think about what the keyword does. "return" passes one or more values back to the caller. That's how you should look at it, not "having return keyword".
No - you aren't passing it in, you are just returning it. You are partly right, you could consider the returned value as part of a function's interface. But it's not a parameter.
 
raf
11:41 AM
import streamlit as st
option = st.multiselect('Select any 2 options only:', ['(a)', '(b)', '(c)', '(d)'])
 
max_num doesn't even have a value before set_upper_number gets called.
 
raf
But multiselect is allowing to select all 4 options. How can I limit it to only 2?
 
@raf - according to this, there is no limit you can pass in.
 
user13727121
@PaulMcG okay I seem to get what you mean by "as function's interface". Basically, it's the result or the output that the caller wants from the function.
 
Yep
 
user13727121
11:49 AM
@PaulMcG yeah I was gonna remove my reply asking about max_num acts as parameter, misread your message, thought you meant "when set_upper_number gets called, current value of max_num is passed as the parameter to it`"
 
@raf - the best you can do is when responding to the multiselect, detect the "> 2 selections" condition and display a stern warning to the user that they must Choose No More Than 2.
 
user13727121
Also, regarding the parameter's name, when I was learning about function (still learning), the person said something about if we assign the function to a variable and we want to use it in other functions, it's best to name them the same as the variable so the person reading our code knows what are these parameters are referring to.
 
raf
@PaulMcG @PaulMcG, is there any other streamlit function instead of this multiselect which can satisfy my purpose? like the checkboxes type buttons?
 
user13727121
I don't know, it made sense to me, but now that you told me about accidentally creating global dependency, yeah, I'll avoid naming them all the same
 
@raf - I've never used streamlit, you can read the docs as well as I can.
 
11:57 AM
Hi guys, I'm trying get plot a graph of one grouped series and another of an ungrouped series to a single diagram. Both have x=date, but there are values in the first grouped one for each group for each date, but only one in the ungrouped series.

How do I do that? I've come this far

```python
plot1 = sns.lineplot(data=metrics, x="date", y="impressions",hue="platform")
ax2 = plt.twinx()
plot2 = sns.lineplot(data=results, x="date", y="transactions", hue="platform")
plot2.figure.savefig('output_figure.png',dpi=600)
 
@CoreVisional - ok, so everything we've said today works well for immutable variables, like ints, bools, strs, floats, and tuples. It gets a little more complicated when you start to pass around lists, dicts, sets, and objects, because even if you pass them as parameters, modifying their contents can be retained beyond the scope of the function because these are mutable types. So you really need to get a clear and correct picture of how parameters and variable accesses work.
(Further discussion will have to wait for another day.)
 
recbg
 
rbrb
 
?
 
user13727121
12:03 PM
@PaulMcG Understood. Although my program uses list, it's not something complicated and I'm not passing them around. I'll keep going over function definition and as you said, I gotta understand how parameters and variable accesses work.
 
@Henrik sopython.com/chatroom kål to you too ;)
 
kål kål @AnttiHaapala
 
@Henrik not a plotting guru myself, even less seaborn, a small mcve with data could help
 
What is used to do repros of python?
I'm happy to plot in anything; matplotlib creates super-small low-res graphs; would prefer SVG or similar. Tried using chartify from spotify but it won't render in colab.research.google.com.
 
Erm, you can change the size and resolution of maptplotlib plots.
 
12:18 PM
@MisterMiyagi I tried but wasn't able to make it work except when exporting to png
 
If that is your only reason for not using matplitlib, you might want to ask about that issue.
 
@MisterMiyagi Please tell me how to solve it instead
@MisterMiyagi I'll take all the knowledge you can give me ;)
It would seem that the moment I add another axis everything is re-colourised
 
It seems someone else already told the world: stackoverflow.com/questions/332289/…
 
Stop doing that, I'm asking you
I've already googled and tried those answers
dpi didn't work for some reason
plt.figure(dpi=600) might work
but the original question remains; how can I colourise two y bars
 
@Henrik okay
 
12:29 PM
Here's a minimal repro:

```
classes = ["c1"] * 5 + ["c2"] * 5
vals = [1,3,5,1,3] + [2,6,7,5,2]
df = pd.DataFrame({"cls": classes, "vals": vals})

sns.kdeplot(df.vals[df.cls == "c1"],label='c1');
plt.twinx()
sns.kdeplot(df.vals[df.cls == "c2"],label='c2');
plt.show()
```
, color='red' to the plot call would work
 
@Henrik no, you stop that
 
@AndrasDeak Telling the solution to my question?
 
@Henrik telling you to drop the attitude when you're asking for our help for free
Matplotlib plots are vectorized with a vector file format by the way
 
and, your real problem seems to be "how do I have two different kinds of data - one continuous and other not that much, in one plot so that they share the common X axis and the legends do not interfere with each other..."
and the colouring part is the easiest one, it is just that seaborn applies some default theming there
 
12:36 PM
there should be one legend only
With a shared colour cycler
 
lol
 
classes = ["c1"] * 5 + ["c2"] * 5
vals = [1,3,5,1,3] + [2,6,7,5,2]
df = pd.DataFrame({"cls": classes, "vals": vals})

fig, ax = plt.subplots()
sns.kdeplot(df.vals[df.cls == "c1"],label='c1');
ax2 = plt.twinx()
ax2._get_lines.prop_cycler = ax._get_lines.prop_cycler
sns.kdeplot(df.vals[df.cls == "c2"],label='c2');
plt.show()
this actually works, but... doesn't seaborn provide anything such
 
@AnttiHaapala bad form to access the _cycler directly
 
so there is a proper way then my google fu doesn't work either
 
12:54 PM
ah, there's no .get_prop_cycle(), only .set_prop_cycle()
If seaborn uses plt.rcParams['axes.prop_cycle'] then you could take a copy of that to pass to both axes. Then again I don't think they work like iterators. I'd expect one cycler passed to two axes to be cycled independently
but if your version works then this might not be the case
 
1:42 PM
Hi, is there someone who have read the books "Learning Python" and "Programming Python" by Lutz? I want to understand in what they are differemt and which is better
 
1:53 PM
@Aelius you don't want to get any book that has Python 2.7
@Aelius so given that those were released in 2010 and 2013 you do not want to even read either of them.
@Aelius just checked, so anything by Mark Lutz is currently outdated so you can blacklist him as an author.
 
oof
 
what I am saying is that any book that uses Python 2.7 and 3 side by side just wastes pages and ink to a dead language. A good book might have a section or so about porting Python 2 code to 3.
 
2:16 PM
@Aelius for starter course, Python Crash Course 2nd Ed would be much better than those
then for advanced, maybe this, in preprint: amazon.com/_/dp/1492056359?tag=oreilly20-20
@holdenweb we'd need a Python in a Nutshell Python 3 only edition :P
 
python in a javashell
a cup of python?
 
the nutshell is indeed that of coco de mer :P
~1200 pages
 
nice
 
@Aelius so Python in a Nutshell might not be that bad but, people do complain even on Amazon about the 2017 edition still putting Python 2 in front.
 
moin
 
2:23 PM
@Aelius also, this free course by David Beazley dabeaz-course.github.io/practical-python/Notes/Contents.html (thanks @AndrasDeak :P)
 
@AnttiHaapala have you checked Ramalho's book, "Fluent Python"?
 
@jsbueno cbg, long time no see, how's Bolsonaralia?
 
ok, thank you. I'm not a totally beginner but somewhat proficient in the language so I'm searching for a reference that dive deep in the language to become more advanced
 
@jsbueno hello
 
Ine can live around here, as long is you try to foget where yo uare and all that is happening around
 
2:25 PM
so in that case, you probably want to read the Python 3 tutorial, how to articles and that 2021 book in preprint could be...
 
it is that bad. :-/
 
:F AndrasDeak being Hungarian can probably relate :P
 
too bad we don't have any rainforests to monetize
 
@AnttiHaapala I am just passing by now - I will try to come more often. Best regards there!
 
take care
 
2:26 PM
rbrb :P
 
Yes - the bastards can't even put that to work (monetizing the preservation of the forests, instead of scrapping it)
 
haha
@jsbueno fluent python is 2015...
 
There is a 2nd edition in the works - it will be fairly complete up to pattern matching.
 
11 mins ago, by Antti Haapala
then for advanced, maybe this, in preprint: https://www.amazon.com/_/dp/1492056359?tag=oreilly20-20
Antti forgetting things in 10 minutes
 
@AndrasDeak I feel stupid :D
I forgot the title :d
 
2:29 PM
well you should
 
well I feel stupid because I am stupid
@jsbueno yessssss. Fluent Python 2nd ed.
that's the book. @Aelius ^
 
@AnttiHaapala I wouldn't go that far, but I'm not a Finn
 
It is self-depreciating humour. Calling myself something I am not.
 
of course :P
 
self-depreciating humour, delivered deadpan.
 
2:31 PM
@AnttiHaapala ok, fantastic!
 
it is in preprint, seems you can only preorder it.
 
preorder the preprint, then preread it to prelearn python
 
I am going to order that for our office... and the crash course :)
 
@AndrasDeak prefect :)
ok maybe it's not that funny :')
 
3:19 PM
is my caching done corretly there?
 
3:52 PM
@Trajan Well, does it work as expected?
Note though that your algorithm may perform slightly better if you do not precompute excl. There is no need to compute it if incl is true.
 
4:07 PM
hey guys! I am solving the problem of finding a cycle in a singly linked list using the slow and fast pointer approach. What I don't get is what it means to compare 2 pointers
We see if the slow pointer is equal to fast pointer and if it is so then there is a cycle. But what does the comparision mean ? It is not comparing the value store at those pointers, what they represent is a linked list
 
if the pointers are same, they have the same value
 
@python_user say we have the linked list and each node has properties (node.val and node.next): 1->2->3->4->5->2->6 slow pointer is at 2->3->4... and fast pointer is at 2->6 now we compare them both these pointers have the same node value but not the same linked list
So if I say slow == fast what is python doing? is going to check the pointer location in memory and decide based on that ?
 
4:53 PM
@AnttiHaapala I'm not sure Alex and Anna would be interested in such a project, and I wouldn't like to tackle it alone. Any volunteers?
 
@holdenweb Would love to work with you on this.
 
It is an obvious next step in the development of the title.
@PaulMcG Would you like me to contact O'Reilly and see if they are interested. The third edition was over three years ago: it covered Python 2.7 and 3.5, with notes on some of the more significant 3.6 features.
 
@holdenweb if you guys do this would love to actually read through... Maybe won't be able to contribute with regards to technical side as surely you guys know more than me but would love to contribute however possible (i.e. proof reading or adding anything needed within it)
 
So we'd need to update the content with 3.7-3.10 features and strip out everything 2.7-specific.
As a courtesy I'd have to confirm that Alex and Anna didn't want to take part.
 
5:13 PM
@sid597 A quick look through the CPython code shows that a pointer comparison is done first before doing anything more expensive (so that a == a or b = a; a == b will quickly resolve to True without having to do any further checking). It is possible for two objects to be equal even if they are not the same object, but if your list traversal code is as I imagine, the check for slow == fast will show a loop when they both point to the same list node.
@holdenweb Of course. Hard to imagine that there are so many changes in 3 years, but the removal of Py2 content will be significant (and joyful).
 
I could contribute in some capacity yes. Though first I'd wanna ensure that the "Fluent Python 2nd ed" doesn't overlap it too much.
@PaulMcG but there are! typing reimagined completely, Protocols, Pattern matching etc.
And walrus :-----D
 
Yes, 3.6-10 were quite feature-rich, now that I think about it.
 
3.4, 3.5 were a bit uneventful imo.
> No new syntax features were added in Python 3.4.
 
there's also dict insertion ordering
 
3.5 New syntax features:

PEP 492, coroutines with async and await syntax.
PEP 465, a new matrix multiplication operator: a @ b.
PEP 448, additional unpacking generalizations.
3.6:

New syntax features:

PEP 498, formatted string literals.
PEP 515, underscores in numeric literals.
PEP 526, syntax for variable annotations.
PEP 525, asynchronous generators.
PEP 530: asynchronous comprehensions.
3.6 asyncio no longer provisional; api stable.
 
5:24 PM
I guess one benefit also will be to remove some of the bits from the early 3.x releases, that ended up getting dropped around 3.5 or so. (I'm thinking of some of the early async bits that ended up getting reworked. And also I think @abstractproperty was added and then deprecated a release later.)
 
unfortunately not all new additions were that well thought out bugs.python.org/issue43468
 
f-strings in 3.6. Dataclasses in 3.7 was it? But yes, all the typing stuff is extensive. @holdenweb When writing a book spanning a range of releases like this, how are all the variations kept straight?
'*' and '/' markers in method signatures to demarcate positional and keyword args also.
 
ah yes, dataclasses. Big big things.
me trying to follow all the new features added to Python :----D
3.6 also added stuff to make metaclasses mostly unnecessary.
 
How about an async-free version just to keep things manageable? Then a second book that is just the async stuff.
"Python in a (Non-async) Nutshell" has a certain ring to it.
 
@PaulMcG Thanks I asked this on site and got the same answer. I was getting confused by how string comparison is implemented and not keeping in mind that the comparison for string class is modified.
 
5:34 PM
@AnttiHaapala Wasn't 3.4 released during the 18-month feature moratorium (explaining the zero feature count).
 
I can't remember any more :D so long ago
 
@PaulMcG We mostly have to rely on backwards compatibility. I think the easiest answer is simply not to reference features that no longer exist in 3.10.
 
May have to use a mechanism similar to what is done in places in the Python docs: (This feature introduced in Python 3.x)
Oh, I definitely agree not to describe features that are already end-of-lifed.
 
@holdenweb there's the how do annotations work in 3.6 vs 3.10
 
6:01 PM
@smci yep, that's how I ended up breaking it by adding extra deliveries. But that was my failing in the MCVE
In any case, it's given me plenty to think about in order to get something more workable
 
6:14 PM
I've updated the book/tutorial listing: sopython.com/wiki/What_tutorial_should_I_read%3F
I've put Dive into Python 3 to the bottom because it is outdated, but available for free online
Python Crash Course, 2nd edition seems to be the best newbie programmer book now. It teaches f'' strings for formatting, nicely explains the "python variables are labels, not boxes" IMO even better than the Nedbat's writing, etc.
 
 
3 hours later…
8:50 PM
@AnttiHaapala There is. We could probably drop the comment-based stuff altogether (or retain it: I doubt there'll be a 2-to-3 helper to handle conversion).
 
I just realized that this book amazon.com/SQLAlchemy-Database-Access-Developers-Library/dp/… is vapourware :D
 
9:05 PM
@holdenweb so 1st edition was Martelli in 2003, 2nd Martelli in 2006, then 3rd was released 11 years later? :D so 3, 11 years in between, every second prime so the next one would be out in 17 years ;)
 
did you forget 5 or 7? :P
 
9:26 PM
anyone use pipenv in github actions?
 
Every day I find a new way to get confused about async. I've just watched Miguel on async Flask and it sorta touches on asyncio and then gives results on gevent and how greenlets just give an uplift on request handling speed by "monkeypatching" from a CLI flag
I've watched DBeaz give a presentation on async def (effectively) and just give results that show it not giving any benefit. Why are people even keeping up the illusion that this is actually useful at this point?
I know I'm not alone on this confusion but is it just a case that presenters are saving face at this point?
Unless I'm mistaken, greenlets/gevent aren't really related? That presentation from Miguel just skirts the actual feature and ends at a different point than what it sets up
 
10:17 PM
any ideas how I can pip install from a pipfile? Is this even possible?
 
11:04 PM
 
11:31 PM
It does look like their tool solves the problem, despite the downvotes. My personal favorite is the second-last, "just use poetry". It's poetry --export | pip install -r there, btw
 
@AndrasDeak yes
 
I was starting to think 7 was still in prison for the incident with 9
 

« first day (3808 days earlier)      last day (1133 days later) »