« first day (3321 days earlier)      last day (1613 days later) » 
00:00 - 16:0016:00 - 00:00

12:04 AM
Does IDLE have a way to show line numbers?
 
12:18 AM
why would you use IDLE in the first place?
 
wait...w3schools has python stuff?
 
but the very first result when pasting your question into google is this: stackoverflow.com/questions/18805203/…
 
I've only ever used it for HTML/CSS/JS and Bootstrap
 
@Code-Apprentice yes... 🙈
 
12:51 AM
@AndrasDeak Right, but clearly w3schools are paying $$$ for SEO and backlinks, so their Google ranking is now consistently higher than SO. So, how to fight their tide of disinformation, esp. of non-Python people giving incorrect information about Python...
@JohnnyApplesauce IDLE is not intended to be used for anything serious. Use any other decent IDE.
 
@wim Omg I am laughing so hard right now
 
1:29 AM
The class I tutor involves a professor who subtly asks his students to use IDLE probably because he doesn't want them to be distracted by IDE features.
Just Notepad with a Run button.
 
@JohnnyApplesauce Ah ok it's a hard constraint for you. Then ThiefMaster's answer is what you need.
 
2:20 AM
cbg
 
2:58 AM
Has anyone ever written specifically about programmers and arbitrary constraints?
Google just yields AI
 
 
2 hours later…
5:24 AM
recbg
 
Do you agree this is duplicate? stackoverflow.com/questions/58927093/…
 
 
1 hour later…
6:34 AM
The one mentioned as duplicate has no SERVER_NAME mention. Can be re-opened?
 
wim
6:51 AM
It looks like davidism has edited in a part about SERVER_NAME after they closed your question. Want to revisit the answer on the dupe?
 
So there is no way to set the host and port via config variables?
Thanks @wim I would have missed the edit if you didnt mentionn above thanks
 
@wim Didn't realize that
 
7:10 AM
@variable even before the edit, it was a duplicate. The server doesn't see the app, so it just doesn't matter what you try to do in the app to set the server name.
The docs also say that SERVER_NAME exists to "Inform the application", not to configure the server.
 
 
1 hour later…
8:24 AM
How do I "hide" the fully qualified path to a class? In my library's __init__.py I can import it which lets you use it, but if you print it, you'll get the whole path.
For example,

In [7]: pd.DataFrame
Out[7]: pandas.core.frame.DataFrame

What would I do if I wouldn't want this behavior, but instead wanted everything to pretend it was just defined at the top level? (In other words, have the above output just simply be `pd.DataFrame`)
 
8:48 AM
maybe I'm missing something, but how is the DataFrame object supposed to know that its package was aliased?
 
wim
pd.DataFrame.__module__ = "pd"
or if you want to hide it completely, so that only the class name is displayed
pd.DataFrame.__module__ = "builtins"
works declaratively in the class block too.
this was actually the basis of one of my riddles
Aug 23 at 17:52, by wim
>>> class Potato:
...     # your one line of code here
...
>>> repr(Potato)
"<class 'Potato'>"
 
@Arne maybe a path gets set when it's imported? I mean, how does the DataFrame know the path it was defined in, anyways? Regardless, the question was asked as I was hoping it wasn't too weird to want the structure of my project to be decoupled from the organization in namespaces
 
wim gave the answer, it's stored in __module__, and you can just overwrite it
 
Yea. I see.
 
> I was hoping it wasn't too weird to want the structure of my project to be decoupled from the organization in namespaces
on the weirdness scala that gets a solid 5/7 from me
 
9:03 AM
Why?
 
that's the paths they are defined in
 
so?
like if I have my class/in/some/folder/over/here.py it kinda sucks to have.the.class.name.be.so.Qualified when it really was in folders just for code organization's sake.
 
if i get a stacktrace from your program and try to follow the path I will wonder what the heck is going on
we might have an X Y here
why are you mirroring the pandas structure in the first place?
 
? I'm not mirroring the pandas structure, that was just an easy example as I had an IPython interpreter open
And it's not an XY problem. I'm just asking the question.
Kinda thought this was more common than it maybe is?
 
FWIW, I do this in my documentation
and, honestly, I don't think it's a horrible idea to change the __module__ attribute at runtime either. Makes it easier for the user to find the relevant docs for that class.
though you definitely shouldn't use abbreviations like pd instead of pandas. You want to use a module name that actually exists, or your class will have problems like not being pickleable
 
9:15 AM
Yea
I was thinking about numpy arrays, where they're defined in many different places but are all under the numpy namespace and its all otherwise hidden
Then I just decided to look at their source code, and yea - bunch of __module__ setting -> github.com/numpy/numpy/blob/…
Wasn't sure how much magic that added, which is why I asked here, to see if there was a less magic method
@wim thanks, yo!
 
In a POST endpoint, which accepts a binary file, is it preferred to use request.data or request.text to get the contents ?
 
9:33 AM
Wait. You're the server, and someone's sending you a POST request?
 
Yes
 
and you're receiving said request with requests?
 
I have read that requests.text auto decodes the requests.content. I was wondering that - if user uploads XML file, then if I could use requests.text instead of requests.data
 
@U10-Forward how well do you know flask?
 
What are you doing with the file? Why do you want to treat it as text when it isn't necessarily text?
 
9:46 AM
I want to parse the XML based on tags
 
So it's not a binary file, then
Also, do you really want to upload a file or just data?
(the difference being that a file has a name)
 
Currently I am using requests.data i my post endpoint. To test I am using postman, selecting POST and then selecting the binary file (which has xml in the file) and hitting the Send button. In the code (of POST method), once I do the requests.data, I do decode myself. I was wondering if I could use requests.text which I have read does auto decode
 
honestly, I didn't even know that you can receive requests with requests. I'm fact I'm not actually convinced that it's possible
 
Sorry I mean flask request
not requests
from flask import request
request.data
 
oh, I guess I just assumed requests because it has the same interface
I don't know anything about flask, sadly
 
9:57 AM
@alkasm ah, this is about your own code. I don't know, I'd still prefer not to mess with __module__ unless the path starts smelling like java, in which case you have another kind of problem. It should only be visible in the repr anyway, where I would prefer seeing correct information over conveniently readable.
 
@Arne Yeah, I'm not going to. It would just be nice for the odds and ends (like the repr), but that's super not worth messing with for that purpose.
 
user10984358
10:14 AM
heya guys been lurking for a while :), so if class B inherits from class A and there are no common methods, should I use self.classA_method() or super().classA_method() ? both seems to call
 
Both call the same method if self is a B instance. If self is an instance of a subclass of B, they're not necessarily the same.
Only use super() if you're purposely chaining up. If you don't care where the method is implemented, use self.
 
user10984358
got it!
 
10:30 AM
Any idea if we can create custom configs in flask like this: app.config['SOMECONFIG'] = 'some value' such that it will be available in other parts of the application using ->current_app.config['SOMECONFIG']?
 
hi! does someone know if with pandas is possible to get the week number of a date in uint8 instead of int64 as default?

now I do
df['sales_week'] = df['sales_date'].dt.week
df.astype({'sales_week': 'uint8'})
but it probably isn't optimal memory-wise, is it?
0
Q: specify datetime week number format

shamalaiaDoes someone know if it is possible to get the week number of a date in uint8 instead of int64 as default? Now I do: df['sales_week'] = df['sales_date'].dt.week df.astype({'sales_week': 'uint8'}) But, it probably isn't optimal memory-wise, is it? Is it possible to specify the format when usi...

 
I don't see a straightforward way to do that, since .week is a property so you can't pass dtype arguments to it.
You'd somehow have to tell pandas to do the conversion before that field is accessed, and it doesn't seem possible to me. But I'm not a pandas user, so perhaps there's a way. We'll see on your question.
In the meantime I'd add a small dummy dataframe to make your question runnable.
 
than you!
 
10:57 AM
@shamalaia that example is extra important since you got a native datetime answer...
 
@shamalaia Btw, do you experience any memory issues? Because I understand the desire to be memory efficient, but using obscure methods to access your data might hurt readability. And if there is a tradeoff between readability vs non-crucial memory gains (possibly at the cost of speed due to parsing), I would really evaluate the use cases.
If you are working in a memory limited environment, then pandas might also not be your best choice tbh.
 
11:17 AM
Pre-optimisation is the work of the devil
also - cabbage
 
waves
This morning has been a good morning. I got to take a look at some of my old code from a few years ago. It's heartening to see that I've improved.
 
What a positive mindset, much better than the horrified shuddering I use to do when confronted with former me's idea of good code
 
And that is exactly why past you hates you so much and makes your life miserable
 
11:33 AM
You should punish future Arne for his arrogance
 
recbg
 
cbg
 
@Arne think I'm much the same... sitting there going through it thinking... jeeze - how did this person get that job... it's beep... /me looks at author and facepalms...
 
@U10-Forward how well do you know flask? This is the third time I'm asking, because you unhammered a flask post and I can't convince myself looking at your profile that you're a flask expert. I'm not going to ask a fourth time, but I might be inclined to undo your hammering if I'm not sure you acted correctly.
you can easily convince me but for that you have to respond
 
@AndrasDeak Sorry for that... undo it
 
11:46 AM
What do you mean?
Certainly you've had a good reason the be sure enough that the question wasn't a dupe (of three other questions) if you unhammered it. None of us use our dupe hammers lightly, surely. Especially outside our respective expertise.
 
Because it didn't seem that it was a duplicate for me, and already 4 users voted to reopen
 
Ah, you were the fifth voter, I missed that.
 
OK, my concerns were about abusing a dupe hammer without making sure. You are allowed to cast a single vote however you see fit.
 
11:51 AM
(although every close and reopen vote should be cast in a way that you can stand behind your action later, but this is another issue)
 
I thought you were saying this because i did the wrong vote...
That's why i said:
6 mins ago, by U10-Forward
@AndrasDeak Sorry for that... undo it
 
I'm not a flask expert either, that's why I've refrained from voting on that question either way. But with 3 dupe targets (and a broad question) it's certainly not a trivial thing to decide, and I saw you go "there you go" and open the question. If you weren't the fifth voter this would've been very bad unless you were very certain of what you were doing, hence my questions.
There is no "wrong vote" as long as you are acting based on conscious judgement and not, say, a misguided attempt to be nice to an asker, or just following other people who have voted in a certain way. All 5 votes should be based on good individual judgement.
 
@AndrasDeak Got it.
 
thanks for your time
 
12:13 PM
Hi All,

does anybody have any idea on CSS parsing. How do you extract a value from .css file.
 
I don't personally, but that seems like the kind of thing i'd search on google.
 
What does extracting a value from a CSS file mean anyway?
 
12:37 PM
@ParitoshSingh i did spent a good amount of time but except for just intro docs their is not much available.
@JonClements for ex: from css file you want to check the font size, whether it is left or right justified.
 
sure... but the font-size for what?
you could probably just do basic classes/IDs or something... but at the end of the data it's supposed to cascade... so if you're trying to work out what <div id="something" class="a b c"> is and you've got #something {...} and .a { ... } etc.. in your css... what's the actual value?
 
font size of the paragraph. whether the developer have defined font size in terms of % or em
@JonClements you are right except for reading 1 class or ID, my code is checking entire website page.
 
So to be clear: so are you ultimately after what a browser would consider the attributes are for a DOM (eg: after resolving the cascading stuff) or just wanting to be able to query a CSS file for what a specific id/class in isolation would suggest it might be?
 
query CSS file is what I am after. One of my task is to check whether the font size of a said website is defined in % or em.
This is just one of the task.
 
12:53 PM
Has anyone worked with dateutil.parser.parse? I want to know what are supported DEFAULT valid date formats
 
@variable not so much "formats" but more kind of educated guessing: github.com/dateutil/dateutil/blob/master/dateutil/parser/…
 
1:07 PM
@JonClements any idea on my query?
 
still not sure what your query is I'm afraid
 
@MunishGupta What's wrong with something like tinycss?
 
ok. let me try to simplify it more. Let's say you have a URL: https://www.w3schools.com/react/
You want to find all the font sizes used on this page. Let me know if still this does not clarify my question.
 
My cunning plans have been foiled because every web browser since Netscape 2.0 displays gifs incorrectly
 
@MunishGupta font sizes actually used or font sizes that could be used?
 
1:19 PM
If two partial frames appear with a zero second delay between them, they should be drawn at the same time, right? Hahaha, no. Everybody displays them 2ms apart, for reasons.
 
Actually used.

My bad, should have mentioned find all font sizes applied on that page.
except for this: https://tinycss.readthedocs.io/en/latest/css3.html
nothing much available
 
So what about inline styles or browser defaults if no CSS is applied to DOM elements?
 
Side note: I now approve of w3schools.com less now that I have started looking under the hood w.r.t styling
shudders
 
Inline styles I can probably work on. For defaults like <H2> which has a font size of 32px. My code should be able to read that .css file and find that class and return the font size.
@OldTinfoil using w3schools as a sample just to test my code.
 
I understand that.
I don't see why you can't grab w3schools.com/w3css/4/w3.css and parse it using tinycss
Then look inline at the rest of the source
 
1:26 PM
"given an HTML document, an element in that document, and a css stylesheet, determine which styles apply to the element" is a fairly interesting problem. I wonder if tinycss can do that.
 
@Kevin that's what I've been getting at - it isn't a simple "parse css"
 
@OldTinfoil I tried that but their is not much blogs or material available on tinycss to understand its working and concepts.If you happen to stumble on something do share it.
 
(almost seems worth cheating and use a headless browser to do all that work and then just pull that info out)
 
At the risk at telling you how to suck eggs: Wouldn't it actually depend on which browser you're using? As essentially what they display may/can/differ between different browsers
 
For simple rules like .foobar {background-color: red}, it's pretty easy. Just see if the element has the id "foobar". But then there's harder selectors like "the second child of the first younger sibling of any div that's currently being hovered over"
 
1:28 PM
@Kevin can't you merge such frames?
 
I may regret asking this: why are you wanting all the visible fonts?
 
@JonClements hahaha. I wish but it can't be done.
 
@OldTinfoil in case you missed it we discussed w3schools briefly yesterday chat.stackoverflow.com/transcript/message/47882174#47882174 (and in the past)
 
@OldTinfoil display does not matter. Content is what we are after.
 
@AndrasDeak Yes, but this increases file size substantially. The file size of one frame is approximately proportional to its area. If I combine my two 8x8 subframes into a single frame, their area will balloon to the area of the bounding box that contains both of them. In the worst case, this would be 400x400.
 
1:31 PM
@Kevin but you don't know the id or class. You can run/ test any site on your code. Code should be class or ID independent.
 
It also makes the LZW compression marginally less efficient, although I'm less concerned about that
 
@Kevin I see
 
@MunishGupta why?
 
To sum it all, one of the task is to check whether font size defined in CSS in terms of % or em
 
well that you can do using tinycss and filtering... but that won't apply to its actual use
 
1:32 PM
@MunishGupta You don't know the class or id at compile-time, sure. But you can find it at run time. If the user asks "what's the font size of this text element I'm clicking on?" then surely you can just look at the element's id and class attributes.
 
@IvoMerchiers yes, I do. any alternatives?
 
@Kevin This is kind of what I am working on: wave.webaim.org
 
@AndrasDeak Yeah, I'm on the "bad way to be a quick guide" side of the fence
 
okay :)
 
You enter a URL and code will apply multiple filters. One of the filter I am working on is to check whether font size defined in CSS in terms of % or em.
I believe this should clear out all the confusion.
 
1:36 PM
@MunishGupta I should think even just regex would be able to answer that basic question. /me ducking from rotten produce being thrown for suggesting using regex on CSS or HTML
 
pulls out an old cabbage from behind him
hmm
 
I think I understand your problem completely. I think I understood it the last time you asked too :-) The reason I haven't given a solution isn't because it was unclear, it's because it's a hard problem
 
I am glad you called it a hard problem. I just thought I wasn't able to do just a simple task. :)
 
(I do think other answerers are getting a little too hung up on "but what should it return if the text has no styling?". It's certainly an important question, but not central to the solution)
 
@Kevin meh... if you're going to do it, at least aim to do it properly to start with :)
 
1:40 PM
Good question. It will print "FAIL" as the output for that text. After applying all the filters, code will count total number of "PASS" and "FAIL" and display their total number.
 
Hi guys, I want to apply a function with two arguments to a colums of a pandas dataframe, and one of those arguments is the columns. So I use the function map, but then I can not apply it, cause we ask me to fill the second argument. Anyone has an idea?
 
If the problem is:
check a page's CSS and determine "yes or no" to the question "does the CSS define `font-size: <something> (em or %)` at any point?"
... Then this is fairly easy to do with just tinycss.
If the problem is:
for each text node on a page, calculate its styling and determine whether it has a calculated font-size defined in em or %. Tally up all text nodes and display a report of how many text nodes have calculated sizes.
... Then this probably isn't possible with just tinycss.
 
First part is what I am trying to figure out.
 
@Mez13 how's what you're trying to do look so far?
 
@JonClements scanned_data_mini['Linka_Plnice']=scanned_data_mini['line'].map(find_scanner) find_scanner needs two arguments, when I give the one which is missing (not the dataframe column), it tells me that the dataframe column is missing
Am I clear?
 
1:47 PM
do you actually want map or do you want .apply and passing named arguments or args= to it?
 
@JonClements Apply would be enough I guess. But I want two parameters: the dataframe column and another one I'd set
 
perhaps it's equivalent to [find_scanner(line, something) for line,something in zip(df.line, df.something)]
 
Let's see if I can make a prototype... Hmm, this tinycss module is pretty sparsely documented.
 
could you elaborate... if the dataframe column is part of what you're passing then it's not likely apply is the right approach either
 
@Kevin that's why it's tiny
 
1:49 PM
@Kevin that's why I could not find anything on it.
 
@JonClements I want to create a new column in my dataframe (Linka_Plnice) which would be the result of the function find_scanner. The function needs 2 parameters : the column 'line' and another one (a string if you wanna know)
 
right... but that sounds like you should be applying the function to the column "line" directly?
and that find_scanner shouldn't be taking two arguments
 
if it's the same string each time you can wrap your function and let the wrapper pass the string argument (~currying)
 
ahhh... stomach's rumbling... bbias
 
@JonClements I don't get it. The column line is an input of the function. It needs to be specified somehow, no?
 
1:55 PM
he meant the other arg shouldn't be an arg
 
@MunishGupta here's a small prototype: pastebin.com/HA4diXTN
Test case #0: .foobar{font-size: 10em; background-color:blue} #bazqux{background-color:red}
  Contains an em or % font-size definition
Test case #1: div{background-color: green}
  Does not contain an em or % font-size definition
 
def wrapped_function(line):
    return find_scanner(line, "potato")

# or
.map(lambda line: find_scanner(line, "potato"))

# or
from functools import partial
.map(partial(find_scanner, named_string_keyword="potato"))
last one is a strong maybe, because I don't think I've ever used partial
 
@AndrasDeak But I want "potato" to be an argument, I don't always want "potato"
 
that's why I said "if it's the same string each time" and you didn't reply anything
 
@AndrasDeak Chill, haha. I did not see that. It's not the same, indeed
 
1:58 PM
At this point an MCVE would help. Put together a dummy dataframe with 3 rows and a dummy function that does something exemplatory
 
@Kevin going through the code. will take some time.
 
but I don't know if there's a good way to map a function to two columns at the same time
(unless your function can be vectorized, probably)
 
It is indeed a very lengthy code for a simple looking task. But it works. I'll keep looking for alternatives. One option I believe could be is to use regex to access .css file in url and then do the parsing. Any comments on this??

and also thank you for your time and effort.
Also thanks to all of you for your wonderful support and guidance.
 
Using raw numpy arrays is a bit less user-friendly, but can be a lot more efficient memory wise (this articles says 3x less (http://gouthamanbalaraman.com/blog/numpy-vs-pandas-comparison.html)). Otherwise I would suggest working in a batch approach (see also this interesting SO question on the topic(https://stackoverflow.com/questions/14262433/large-data-work-flows-using-pandas)). But for some cases, batch is not really feasible.
And if you're going to work with real big data, consider hopping onto a pyspark cluster and just keep a terrabyte in memory if you really really want to. If you're
Any reason why this chat doesn't really support normal markdown?
 
lack of development effort from the Powers That Be
single-line messages mostly work, multiline messages are complicated
you can practice in the sandbox if you want to get the hang of it
 
2:23 PM
How can I make complaint against users for playing mischief by marking negative votes on stackoverflow.com/questions/58902130/…
 
Arn
@variable What if they just find your question to be too lengthy?
 
Cabbage all
 
I have tried my best to explain with code
 
I finally made 1k :)
 
"Flag -> in need of moderation intervention" should get a mod's attention, although they may have a different opinion about what counts as an unwarranted downvote
 
2:26 PM
Can you help me rephrase the question?
 
Arn
To be clear, I have nothing against your question, I'm just speculating that they aren't downvoting you maliciously
 
Or maybe help me rephrase the title which may help?
 
You ask "why is blueprint a better option?". It may help to add context explaining why your default assumption is that blueprint is the best option. For example, did you read a tutorial that said it was the best option, or that described a blueprint-based solution without mentioning alternatives? Or maybe another developer told you?
This may be valuable information to potential answerers, since they could read the tutorial and see if it makes any specific claims about blueprint, and evaluate whether they're applicable to your situation
 
@variable my previous comments pretty much still apply. It is still rather unclear what answer you need, plus it takes now even longer to figure out that this is the case.
and now it is 4 options instead of just 3...
 
If I have a set s, how for n in s: works?
As indexing does not works for set
 
2:42 PM
for does not always require indexing. It can work on objects that implement __iter__, too.
For example, sets
 
Or generators
 
@variable constructive criticism: A) reduce the code by removing unneeded details, e.g. if test_config is None, in all duplicates. B) shortly describe why you think you should be using blueprints and app factories in the first place.
 
@Kevin Ok, how the __iter__ of set is implemented?
 
it iterates over the underlying array storing the set's data
internally, everything can be "indexed"
 
github.com/python/cpython/blob/master/Objects/setobject.c#L867 is the core logic of CPython's set's __iter__. I can't read most of it, but I wager that it's basically doing "for each object in the set's underlying hash table representation: yield the object"
 
2:45 PM
what you are looking for is called "internal iteration"
in contrast, explicit indexing is a sign of "external iteration"
 
sets are built into the interpreter, so their implementation is interpreter-specific. You really don't need to know and shouldn't care how they're implemented
 
Ok
 
What ho!
 
I frequently care about how things are implemented, but I place the information in a special mental filing cabinet marked "VOLATILE". Everything in that cabinet could be wrong tomorrow, so I'd better not make any assumptions using that data
 
@Aran-Fey By implementation I mean using Python maybe, taking a list as the internal data structure and implementing __iter__ in that class set
 
2:50 PM
@Quark ok looking for details
 
@Quark if you just want to understand set iteration, look for information how dict works. There are much more descriptions available, and the underlying idea is the same.
 
@MisterMiyagi OK
@Kevin This C implementation looks very complex :p
 
for a short intro to how dict currently works, see e.g. stackoverflow.com/questions/38139311/…
 
At one point I think I had "sets and dicts behave basically the same" in my VOLATILE filing cabinet, but I think I discovered that was wrong.
 
well, dicts are ordered now and sets aren't
 
2:54 PM
it changed with CPython 3.6 and PyPy2.7
 
wim
@MisterMiyagi yeah, that's totally different
 
the working principle of hash tables is the same, though
 
wim
not really. sets are not just dicts with null values.
I also had this misconception for many years.
 
@MisterMiyagi but the iteration is not the same any more...
 
@wim ooh! please explain. Looks like I'm going to learn something new
 
2:55 PM
in any case the current set iteration still works like that: it iterates over the hash table.
 
wim
MisterMiyagi is not usually wrong, so it's pretty fun to get to call them out for once :D
 
I plead educational vagueness
 
I plead lack of knowledge and the pledge to wax many cars. Please explain this secret of the ancients
 
there is understanding hash tables, and there is understanding <type> in <implementation> of <version>. For most purposes, the former suffices.
 
@Quark Yes it does. Rule of thumb: you almost never need to read C code in order to write good Python code.
My Python abilities have gotten 0.0001% better since I first source-dived the CPython repository
 
2:58 PM
explaining sets, dicts and friends precisely also means explaining PyPy strategies, which are a whole different kind of too much detail.
 
my only takeaway from the cpython source so far is list_ass_slice
this still needs 1 more vote
 
wim
@variable you can ask on meta.stackoverflow.com why this question is being downvoted. you'll get brutally honest answers, collect 10 more downvotes, and meet some strange people.
 
did SO revert all that new UI for on-hold stuff?
 
wim
@Arne I don't think it's that bad. __module__ is explicitly documented as writable in the datamodel
if you have a class defined in mylib.datastructures._internal.foobar.MyClass
but you've pulled it up into mylib top-level imports by namespace by using *-imports in the __init__.py
with the idea to remove API surface area, so that users would import with from mylib import MyClass, then why not also remove the internal implementation detail from reprs? the repr is seen for example when an object is contained inside a list, and often in logging, and when mucking around in REPL...
 
3:15 PM
ok I can agree with that
change __module__ to properly reflect public API definitions
 
wim
I suppose it also gives you the freedom to refactor and move code around, without making some weird backwards incompatibility or users asking you to re-enable spacebar heating
 
@shad0w_wa1k3r I still see it pop up at times
 
hmm, weird, I was seeing only the new UI till today, but suddenly old UI popped up
 
wim
huh, no one-box for guido tweets?
the TL;DR is that sets are designed (and optimized) for quite different use cases than dicts. for example taking the intersection of two sets is fast, and implementing it like a pypy dict would make it less fast.
 
@wim twitter one-boxing was removed a while back
 
3:29 PM
whyy bwhyy
@JonClements it wasn't removed, it just broke. meta.stackexchange.com/questions/328280/…
 
yeah... was just grabbing a coffee and was thinking... umm... or did it just break and being chat... no-one bothered fixing it :p
 
wim
you're both right
it was removed, by becoming b0rked.
 
deprecation by borkenation
 
Let's build a chat protocol on top of chat so we can write our own clients with proper tweet support
 
nice, now all you need is to put in dev hours :-p
 
what happens with -S?
 
wim
(and thank you, mystery downvoter :)
@AndrasDeak then site is not processed at all (no .pth files loaded). expected.
 
Also, can you compare the outputs of python -vv?
assuming it details site stuff...
 
@wim that's like a constant nuisance.
 
00:00 - 16:0016:00 - 00:00

« first day (3321 days earlier)      last day (1613 days later) »