« first day (3491 days earlier)      last day (1443 days later) » 

6:29 AM
Is it common for a json http request to not actually be in json format but a string instead? Real example from some documentation I found :

payload = "{\r\n\t\"client_id\": \"PLACE_YOUR_CLIENT_ID_HERE\",\r\n\t\"client_secret\": \"PLACE_YOUR_CLIENT_SECRET_HERE\",\r\n\t\"grant_type\": \"client_credentials\"\r\n}"
headers = {
'Content-Type': 'application/json'
}

response = requests.request("POST", url, headers=headers, data = payload)
 
JSON is text though
but yes, manually encoding the JSON instead of just passing json=a_dict is stupid
 
ok thanks, yeh I get your point, I guess you'd either do json=a_dict or data=json.dumps(a_dict)
this example was I guess auto-generated by postman
 
6:50 AM
Hi
 
 
2 hours later…
8:59 AM
Hi
 
Hi
Am I blind or is there no windows installer for python 3.6.9?
 
@AndrasDeak FYI: the question about the distinction between [wxpython] and [wxpython-phoenix] is now on META meta.stackoverflow.com/q/397246/2932052
 
but the README only has build instructions for Unix platform, does that mean that newer python versions are not supported on windows? Or does it just mean I have to figure out how to build it myself?
 
9:16 AM
Old releases of Python don't have that level of support you might expect from newest versions, if you want the installer you must go with the 3.8 release, or build that yourself from source.
 
Ok, so I guess it is possible, I just have to figure out myself how to build it. Hmm seems easier to build tf from source in a newer python version
thanks
 
Newest releases, of older versions rather. They tend to be source only releases as support for those older versions (e.g. 3.6) are limited to security.
 
But not even the newest release of 3.6 has an installer, so it seems like support dropped completely for windows. Or maybe they assume that if you have such specific requirements, you are able to build it yourself, which I guess is fair
 
9:35 AM
for these versions, there are no pre-built packages for linux or macOS either.
 
9:51 AM
yeah, but atleast there are build instructions and it's quite easy.
./configure
make
make test
sudo make install
on windows I got no clue :P But I realized anyways that it is an XY problem
 
10:01 AM
Good afternoon guys, I have a very small question that is most likely already answered
Sadly I am not well-versed enough in Python to know what it is called I'm looking for
I'm coming from Mathematica nad LaTeX which are both non-standard programming languages. The goal is to have an optional argument in the function and something of the following construction:
if <option> == <something>:
     def myfunction(*x):
          return thisfunction(x)
else:
     def myfunction(*x):
          return anotherfunction(x)
The problem is that either of these return functions don't accept tuples, for example numpy.kron will not work this way.
 
use the * operator to unpack it: thisfunction(*x)
 
I can't imagine nobody ever asked this, so my question really is, what am I even looking for here? Am I thinking in the wrong paradigm maybe? Since kron does not accept tuples
@Aran-Fey Okay, thank you, one sec while I try this
pythoning the file now returns a TypeError, I will create an MWE I guess, maybe some context will help here
 
if the signature matches between thisfunction and anotherfunction you can simply assign myfunction = thisfunction or the other one.
 
Thanks guys ! The error was with other parts of the code, which also required this "unpacking" of the operators
Code runs smooth like butter now :) Cheers
 
10:19 AM
@Wolf thanks
@Euryris glad you got it! Heads-up: on SO old-timers will call MWEs MCVEs :) Complete and Verifiable.
 
What are the differences besides the semantic choice?
 
Absolutely nothing. Just dialect.
 
MCVE has 33% more words than MWE that newbies can ignore
 
Aren't those Ruprechts now?
Of course I mean: We have always been using the term reprex.
 
@Euryris actually there might be a subtle difference: we need clear input, expected output, and full traceback and how "it doesn't work"
On tex.SE you'll likely get an answer for a requirement dump, but on SO you're supposed to write your own code first
Rep farmers not withstanding
 
10:28 AM
@AndrasDeak Requirement dumps are barbaric!
I don't think these are met with joy on there either, to be honest. :p
 
what are requirement dumps? Something like I want a program that does x,y,z. Code plz?
 
yeah
 
shudder
 
just my voting history :/
does someone know a dupe for "what's the complexity of list.__contains__"?
 
closed
 
11:37 AM
heh, OP deleted that question and yeah, I like how they "believe" one user that didn't capture all the details.
it should be O(n^3)
worst case antagonist input is one with a list of n length where half of it is a sequence of 'a' and other 'b', the other being the inverse of the other
for every element, it will require membership check of n/2 elements, and then remove will also remap n/2 elements
it's funny how I got nerdsniped looking at that, I haven't really thought about compsci 201 subjects in a while
well, rather, bound between O(n^2) and O(n^3)
I am actually very curious as to what their professor has to say
 
 
2 hours later…
1:54 PM
It bothers me that Constructive Solid Geometry doesn't discuss the problem of turning CSG bodies into polygon meshes
In the case of adding two primitives, the naive approach might be to iterate over every vertex in the mesh of each primitive, and delete the ones that are in the interior of another primitive
So e.g. in the first example on the page you would delete about an eighth of the sphere, and one of the corners of the cube
But then you have three "orphan" edges of the cube that are missing a point, and you'd need to make a new end point for each one somewhere on the surface of the sphere...
 
2:22 PM
stackoverflow.com/q/61650502 duplicate linked in the accepted (non-)answer
 
2:35 PM
I expect there's a closed-form solution to finding the intersection of a line and a sphere, although the algebra grew too thorny for me to solve on paper
Calculating the poly that results from subtracting a circle from a triangle seems more difficult still
 
2:54 PM
I mean, strictly speaking the result won't be a poly, because a circle isn't a poly (with a finite number of vertices), so there's also an awkward two-step shuffle going on here where you have to decide when to stop treating the sphere like a sphere and start treating it like a polyhedron with a lot of tiny faces
Hmm it occurs to me that even in the simple case of subtracting one cuboid from another, it's possible that neither one will have a corner inside the other, while still having overlapping volumes. So the naive approach is kaput.
 
Perhaps one can do something like marching spheres to map out missing vertices?
 
3:21 PM
@Kevin it should be a quadratic equation with the right parametrization. Using P(t) = (x0,y0,z0) + t*(vx,vy,vz) for points on the line you get a quadratic equation in t for (P(t) - O)^2=r^2
 
user6276743
What's the best practices regarding "abstract variables" in Python? Eg: A method in the base class refers to a some attribute that should exist in all derived subclasses, but is not defined in the base class itself.

Should this be avoided? Or is there a proper way to do this?
 
I'm worried that there is a solution to this that requires only elementary geometry, but which has 48 different cases along the lines of "when an edge of shape A intersects a face of shape B", "when shapes A and B share exactly one vertex", etc etc, because I can't be bothered to work them all out
 
@WeavingBird1917 @abstractproperty perhaps? docs.python.org/3/library/…
 
> Deprecated since version 3.3:
I think it's not a property, just an attr
 
I usually just initialize the variable to None and document "subclasses must provide a value for x"
 
user6276743
3:24 PM
I was thinking about doing that, is that the right way of doing it?
 
I don't make any effort to avoid abstract variables, because I trust that I can diagnose an AttributeError that occurs later on when I forget to define my subclass properly
But this is easy for me because my class hierarchies tend to be neither tall nor wide, so YMMV
 
user6276743
Interesting, if it is common to do that, then I guess it is ok if people will know.
 
Making a note in the documentation is essential if more than one person is working on this
is/was/will be
 
user6276743
Thanks, will definitely do that.
 
hey, I'm new to Python and need some help with reading a csv file. I have a CSV file transposed. when i opened it in text editor, few of the columns end with ",,,," as there are few empty cells
 
3:30 PM
I'm wondering if it made sense to use an abstractmethod property on the base class that just raises
 
I want to remove these empty cells for each line
rstrip is not working
 
and then child classes just shadow the abstract property with a regular attribute
@Prashanth why not read it as a proper csv and discard the data in each row? Are you sure the same amount of data is missing in each row?
problems usually start when you start manually meddling with well-defined formats (csv, json, etc.)
 
If I were writing a public API with a public issue forum where people could publicly criticize my sloppy interfaces, I would probably do something with abstractmethod
 
@Prashanth also please don't ask for help here with fresh questions on the main site, as per our rules
 
@AndrasDeak - sorry was not aware of rules. thanks for letting me know
I will take care of it
 
3:34 PM
thanks :)
 
I wonder what became of that guy that I told to come back in two days, two days ago.
 
I estimate a 99% chance of them having asked their question somewhere else
 
@Aran-Fey or hopefully, upon reflection and more thinking, solved it themselves?
 
haha, good joke!
 
No activity on his question, and I know from stalking his other posts that he isn't reluctant to self-answer
 
3:49 PM
Perhaps my crystal ball was good that day and "try replacing .text with .getText() I guess???" was all he needed
 
we shall never know
 
A modern day DenverCoder9
I might have to use mixins in my work project soon, despite my distaste for them. I'll probably need to dust off my sledgehammer for pounding square pegs into round holes
This particular hole might halt and catch fire if it gets within 100 feet of diamond inheritance
 
4:06 PM
tbh I'm still not entirely sure what a mixin even is. I just think of them as base classes
 
It's probably a base class that's not intended to be instantiated directly. Which I guess is almost the same as an abstract class. In my head the small difference is that an abstract class is not specific enough, whereas a mixin is not complete enough. Not sure if that makes any sense.
 
@AndrasDeak Hmm, true. I think I got unnecessarily bogged down in symbols because I didn't try to simplify (x0,y0,z0)-O into a single vector.
Equivalently, I could assume WLOG that O=(0,0,0), and then translate to the real center after solving the quadratic
 
@AndrasDeak it does, yet doesn't. My mental model used to be "a mixin is an abstract base class that only works if you inherit from it and another base class", before I realized that that's stupid design and the mixin should just inherit from the other class
 
@Kevin you''d have to shift the line's reference point by O
(-O to be precise)
 
4:13 PM
Oops, you're right. I think I knew that at one point, but I smudged that part of the problem on my cocktail napkin
Hard mode: use quaternion magic to rotate the world so that the line is the X axis, and then the problem can be solved in one dimension.
 
you'd still have to solve for y=z=0 points of the sphere ;)
 
hi guys
 
It might be easier though to look at, say, the distance of the line from the sphere's center. Might for instance give you an early return for non-intersecting cases
@Hassan hello
 
You expertly detected the quadratic that I tried to hide behind the credenza, well done
 
Hmm, although the quadratic equation for t will also give you that information using its discriminant...it's just more letters on paper
 
4:27 PM
Cathy from HR tells me that we're a discriminant-free workplace, so that's off the table
Time to use my favorite hammer for pounding in vector nails: dot product
 
4:52 PM
hi guys, any ideas how i could improve my program?
 
2 days ago, by Andras Deak
@Hassan that's exactly the kind of questions you've been told not to ask, and anyway a direct violation of our rules
The main issue in this case is asking for help here with a fresh question on main. The question itself is not too problematic, although vague "how could this be better?" questions might be received negatively
 
@AndrasDeak my bad you know what chatroom is good for me to ask questions
 
Asking for improvement on existing code might be alright here (as long as there's anyone willing to take the time to read your code). We just ask that one doesn't ask on the main site and in chat in parallel.
 
@AndrasDeak oh ok so i have created a program but i feel like one of my function can be more efficient
 
I know, I read your question.
 
4:58 PM
@AndrasDeak so i wanted to have a discussion or what im asking is to amateur for you guys
im just a beginner in this python world
 
Please read again what I've told you. I thought it was clear enough. Let me know which part I should explain in detail, once you've (re)read the rules page.
 
@AndrasDeak my bad
can i talk about complexities as i feel my common function is O(n log(n))
or is not suitable as its link to the main issue
 
@Hassan Preferably not, yes. I'd suggest that you wait two days for answers on the main site, which will likely give you hints about complexity if your approach is too inefficient. Or if your question gets closed as too broad we can talk about it here sooner, because chat is more forgiving with vague problems, as long as the topic is not a burden to the people in the chatroom.
 
@AndrasDeak ok perfect i will wait then
can i talk about graph types in general in this room?
 
you can try, if you have a specific question
 
5:11 PM
just popped in briefly - going to be offline for a bit... hopefully a nice pizza and a film... rbrb for now
 
@JonClements enjoy mate 😊🍕
 
mmm, pizza. Now I'm hungry
 
@Aran-Fey tell me about it lol
 
pizza does sound nice
 
 
1 hour later…
6:22 PM
Say I'm building a REST API endpoint where one field is essentially an enum (there is a small set of valid values). What should the response be when the user POSTs a JSON package with an invalid value for that field? A 400 or 403 doesn't seem useful. Should it be a 200 with some object with an error message?
 
Why is 400 not useful?
> 400 Bad request: The server cannot or will not process the request due to an apparent client error (e.g., malformed request syntax, size too large, invalid request message framing, or deceptive request routing).
you mean you want to return an informative error message?
Can't you do both? I see non-trivial 404s all the time
or does the REST APIness forbid that
 
400 is the appropriate status code. Send more explanation in the response body if you want to be more helpful. 403 is really about failed authentication, and 404 is about errant resource addressing (which sounds like a reach, unless the enum itself is the resource id). The absence of codes like "invalid argument" means that 400 ends up being a generic catch-all for many kinds of client non-teapot errors.
 
agreed, 400 seems like the appropriate choice
 
@Code-Apprentice I really don't think you should send a 200 with an invalid API response. That would be really difficult for a client to handle
 
Do you mean "invalid API request"?
 
6:30 PM
Sorry, yes
 
oh...so I can add a body to a 400 response? I hadn't thought of that.
@PaulMcG "non-teapot errors" /me snorts milk out my nose
 
There is no guarantee that anyone will look at it, but you will have done your best
 
Can I talk about Flask framework here?
 
Yeah
 
thank you so much Kevin.
I am trying to use Flask-Excel extension.
I have this code:

@app.route("/custom_export", methods=['GET'])
def docustomexport():
query_sets = Category.query.filter_by(id=1).all()
column_names = ['id', 'name']
return excel.make_response_from_query_sets(query_sets, column_names, "xls")
I am triggering /custom_export url on a button click.
Currently, /custom_export url completes with status code 200, but the excel file does not download.
It only downloads if I manually go to /custom_export url.
 
6:45 PM
Can we see the code markup for the button?
 
It's a pretty safe bet, there are several folks here who have various levels of Flask experience.
 
HTML
<button type="submit" id="export_excel">Export to Excel</button>

Ajax:
$("#export_excel").click(function() {
$.ajax({
url: '/custom_export,
type: 'GET',
})
.done(function(data) {
})
});
 
Firstly, please see the code formatting guide for chat for future posts and practice in the sandbox if necessary
Second, I don't understand the hard-coded query_sets = Category.query.filter_by(id=1).all()?
 
It's copy/pasted from the flask-excel quickstart
 
Category is the model name of one of my tables.
 
6:53 PM
Right. I don't know that extension. Let's park the SQLA bit for a second; are you actually receiving a file? I don't see a form in your HTML, just AJAX attached to a button
I'm looking at the quickstart and it's still using a form
 
thank you for the heads up.
Sorry, I didn't have my button wrapped up in a form.
Fixing it and trying again.
Will update on the outcome shortly.
 
Today I used regex when I didn't need to, because I'm more familiar with regex than the actual language it's being embedded in </confessional_booth>
 
May I ask what language?
 
I think I know where you're going, but the main thing is to wrap it in a form first to make sure you're actually getting the excel file as an attachment
 
Oracle-flavored SQL
 
7:02 PM
your sins are forgiven
 
Currently trying to implement "find all widgets whose NAME starts with A, B, or C" as where REGEXP_LIKE(NAME, '(A|B|C).*'). Except that doesn't work, because it's returning names like "<space>BarneyRubble"
Not sure if this is because REGEXP_LIKE behaves more like re.search than re.match, or if it's doing wacky things with whitespace, or what
Here's an entry with "555<tab>QBarneyRubble" that got matched, so I guess it's the re.search thing.
'^(A|B|C)' is giving me far more sensible results. Still, I would have liked a non-regex approach. I bet the experts would know right away to use STARTSWITH(NAME, {"A", "B", "C"}) or something, but oh well
 
@Kevin sounds bad
 
Correct
 
Reading flask-excel: "Looking at the community, this library and its associated ones try to become a small and easy to install alternative to Pandas." All the docs just seem to be about flask-sqlalchemy. I don't actually understand properly what the library helps with tbh
 
@Kevin try ^[ABC] or ^[ABC].* The '^' will force the match to start at the beginning, no whitespace allowed.
 
7:11 PM
Ooh, I forgot about character groups
Good workshopping
Partial matches are allowed so the .* is not strictly necessary
Now to sacrifice a dozen 乖乖 on the efficiency altar to ensure that oracle regexps don't run in O(N!) time for no reason
 
@Kevin Will make it easier when the customer says "Oh! would it be difficult to add 'D'?"
 
 
2 hours later…
9:10 PM
Is there a way to "unpack" a class instance in a for loop? For example, if I have my own Triple class that takes three arguments in its constructor, and an iterable of instances of this class, can I do something like "for Triple(a, b, c) in iterable: # do something with a, b, c separately".
 
@user76284 no. You can do for a,b,c in iterable: something with Triple(a,b,c)
But your edit says "an iterable of instances of this class" which makes it very confusing, so scratch that
you can do for triple in iterable_of_triples: a,b,c = triple.get_abc()
 
@AndrasDeak The problem is I can't use assignments since this is actually a comprehension :(
 
sounds like an XY problem
 
What do you think is the X problem :P
 
if you'll be more specific I might be more helpful
if you can't squeeze your logic into a comprehension it's a good sign that you should use a proper loop
 
9:13 PM
Well consider [Triple(b, c, a) for Triple(a, b, c) in iterables] for a simple example.
It is a loop.
 
in the context of comprehensions "proper loop" fairly clearly means a full-fledged for loop
 
For reasons having to do with the complexity of the class in my specific application, I'd like to do the above instead of e.g. [Triple(x.second, x.third, x.first) for x in iterables].
 
you could squeeze that into a comprehension but shouldn't
 
What are you recommending exactly?
 
new_triples = []
for triple in iterable:
    a,b,c = triple.get_abc()
    new_triples.append(Triple(b, c, a))
 
9:16 PM
ew.
I can't use a for loop.
 
sure you can
 
No.
This is actually a loop within other loop comprehensions.
This is why I said due to my program structure it has to be done inside a comprehension.
 
@user76284 very good sign that you have to refactor
red flag
 
i.e. it's nested comprehensions.
Also loop comprehensions are better than appending to a list repeatedly.
 
def permuted_triple(triple):
    abc = triple.get_abc()
    return Triple(b, c, a)
new_triples = list(map(permuted_triple, iterable))
wow, so functional ^
 
9:18 PM
Yeah I knew I could do that from the beginning :P
But I'd have to create a separate function for each of the "operations" I'm performing.
 
So you know of two bad methods to do what you're doing. I don't see the problem.
 
I want a good method.
 
"It's not possible to put the logic I need into my nested comprehension" means you're not using one
use a double loop
 
Nah. It means Python is deficient (if there's really no way to achieve this).
 
Oh, yeah, my bad.
 
9:20 PM
The problem seems to be that Python does not have a let [variable] = [expression] in [expression] like functional languages like Haskell.
 
I suggest that you move to haskell.
 
I heard about something similar in one of the PEPs but don't know what's the status.
@AndrasDeak For my application this needs to be done in Python.
 
tough luck
 
people sure try hard to write bad code even if python won't let them
 
@AndrasDeak Thanks for the help.
Maybe I can do something with a dict or collections.abc.Mapping.
 
9:21 PM
@Aran-Fey No no, it's not bad code, it's functional code and it's python's fault
 
Tbh lacking let expressions seems to be a big deficiency of Python currently.
23
Q: Is there a Python equivalent of the Haskell 'let'

PerseidsIs there a Python equivalent of the Haskell 'let' expression that would allow me to write something like: list2 = [let (name,size)=lookup(productId) in (barcode(productId),metric(size)) for productId in list] If not, what would be the most readable alternative? Added for clarific...

 
yeah, we cry ourselves to sleep each night because of that one
 
Current workarounds are ugly hacks.
@AndrasDeak Your tone is... interesting?
 
It merely matches your attitude
 
Do you feel like critiques of the language are directed at you personally?
@AndrasDeak How so?
 
9:23 PM
@user76284 no, it's just the umpteenth time that I see someone insisting on writing bad code in a given language and complaining loudly and blaming the language when they can't.
It's always frustrating for the user, and frankly quite annoying for those watching
 
@AndrasDeak How is this "bad code"?
 
How is it not?
 
@AndrasDeak How would [Triple(b, c, a) for Triple(a, b, c) in iterables] be "bad code" if Python could do it?
What other more concise and clear way would describe the same thing?
This is almost like a mathematical definition.
 
@user76284 that's not the bad code part. The bad code part is what you want to end up with. And I'm pretty sure there's no consistent language where that line would make sense
OK, there are pretty wild languages out there.
But any interpreter would have to bend over backwards to unpack values into arguments of a function call
But these are two different problems, and I'm annoyed by your other problem.
 
I'd argue that for Triple(a, b, c) in iterables would be bad code, because it's backwards compared to all other assignments that python supports
for comparison, the only other thing that forces my brain to go backwards like that is SQL
 
9:26 PM
@Aran-Fey Backwards from what?
@AndrasDeak What do you mean by "my other problem"?
 
@user76284 If normal assignments are like x = y, meaning x takes the value of y, then Triple(a, b, c) = y is... uh... a, b and c take the values... I don't even know
 
@user76284 your other problem is that you can't untangle your logic (which is already borderline too complex for a comprehension) because it's sitting inside another comprehension. The thing with nested comprehensions is that they are very rarely readable, and if you're struggling with squeezing complexity into your second comprehension it's a red flag.
You need proper for loops, but those are "ew" because python is not haskell. That's your other problem, and the one I find annoying.
 
@Aran-Fey You can unpack tuples in Python, you know.
a, b, c = iterable.
 
@Aran-Fey surely haskell would know
@user76284 irrelevant
 
@AndrasDeak Python would also know because it can unpack.
It can also unpack dictionaries.
 
9:30 PM
What you have is a function call on the left side. Hence chat.stackoverflow.com/transcript/message/49318374#49318374
 
Yeah, but iterables are easy. Iterables are sequences of values. Unpacking those takes no mental effort. Unpacking your Triple class on the other hand? No clue how that works
 
But anyway... I'm OK with you wanting to do something that python won't.
 
@AndrasDeak I assure you that for my application (theorem-proving) nested comprehensions are much more readable than a bunch of for loops.
 
OK.
 
@Aran-Fey And dictionaries?
 
9:31 PM
For the purpose of unpacking, dictionaries are just sequences of keys. Easy
 
@Aran-Fey You know what else is a sequence? instance.__dict__.items().
 
Also you never actually unpack dicts like that
@user76284 And the order of the elements in that sequence is...?
 
@Aran-Fey And the order of elements in a dict is...?
 
Aran playing life on hard mode :D
 
I think this would be a good PEP honestly.
 
9:35 PM
@user76284 Just make sure when you submit one it's not "not even wrong"
 
I mean the let expressions, if it hasn't been proposed already.
@AndrasDeak I don't see how that descriptor has anything to do with what I've said.
 
@user76284 That's why I said you never unpack dicts like that. Or are we talking about **-unpacking now?
Admittedly, I probably only assumed that we're talking about *-unpacking because I have no clue how this Triple-unpacking is supposed to work
 
I think I have to look into PEP 572 (assignment expressions) and collections.abc.Mapping from which dict, etc. inherit.
 
Oh, favourites have been finally renamed to bookmarks.
might make more sense now
 
9:42 PM
Actually, I assumed we're talking about *-unpacking because that's how assignments work. So yeah, I maintain my position that this Triple-unpacking is unlike anything we have and that I don't want it
 
data Pair = Pair Integer Integer
    deriving Show
xs = [Pair 4 5, Pair 6 7, Pair 8 9]
main = print [a | Pair a b <- xs]
^ This is an example of what I meant, particularly the Pair a b <- xs part.
 
I'm starting to think that your Pair and Triple are just bloat around simple tuples. Use a,b,c if you need a triple.
 
class Pair:
    def __init__(self, x, y):
        self.x = x + 5
        self.z = 3
Now what?
 
unpacking would suddenly start to work
 
@AndrasDeak I have considered that. In that case I think I'd use namedtuple or something.
 
9:49 PM
that would work too if you need the name
the moment your Triple has any non-trivial logic on top of tuples it will be impossible for python to know how it should reverse engineer a Tuple object into its __init__'s arguments
 
^
 
Yes, I definitely need to be able to access the attributes by name, and the namedtuple should have a distinct "type" name as well.
@Aran-Fey What do you mean?
 
Andras took the words out of my mouth
 
*washes hands for 30 seconds*
@AndrasDeak s/Tuple/Triple, bah
 
Nevermind, I see what you mean. I was confused by your earlier comment. This should be restricted to classes that inherit from collections.abc.Mapping (I think).
Basically things that act like dictionaries/collections.
Analogous to algebraic data types.
More specifically product/record types like namedtuple which is essentially a proxy for that.
 
10:05 PM
z
d
4d1d
c
 
@toonarmycaptain iddqd
 
wim
cat got your keyboard?
 
 
2 hours later…
11:53 PM
> we launched version 2.0 of our Unfriendly Robot which automatically flags unwelcoming comments
people have been complaining that comments disappear ^
 

« first day (3491 days earlier)      last day (1443 days later) »