« first day (2806 days earlier)      last day (2134 days later) » 
01:00 - 19:0019:00 - 00:00

1:35 AM
@Simon wow 5 years?
@AndrasDeak :D
 
2:23 AM
@abarnert The original problem was that given: x = []; x.append(x); ForcedHash(x) == ForcedHash(x) we get a RecursionError again. But I think the conclusion is that it just makes sense that the limitation of this class is the same as the ones of the == operator
I am also unsure why that suddenly got downvoted so hard
 
2:57 AM
@OlivierMelançon Well, this is one of those “you almost always shouldn’t do this” questions, and a lot of people tend to downvote those unless you give a really good reason why you have an exception.
 
I disagree with he fact this one is a "almost always shouldn't" it is not the first time I implement a dict with mutable keys, it does have a lot of uses, especially performance-wise
And the design decision I ended up taking, by the way, is to simply let the exception be raised. One of the initial goals was to see if a list contains equal (possibly mutable) objects in O(n). Since [[...]] is simply not equatable, it makes sense for the algorithm to fail to handle.
 
As long as you can guarantee the lists aren’t mutated while the dict is alive, of course it’s reasonable. But in most such problems, the question is why not just use tuples. The reason I assumed you had an answer to that is that the people who asked the other 100 questions on how to use a list as a dict key wouldn’t have even been able to think of the problems you’d already solved.
But I think a lot of people don’t read carefully; they see the 101st question on hashing lists, no explanation for why you need to do it, and just downvote and move on.
Anyway, the most interesting remaining question to me is what made me think that d{x:0} == d{y:0} ought to return False for distinct self-containing x and y. I can't think of any good reason for that, and yet, before thinking about it, I was pretty sure that was the obvious right answer…
 
3:26 AM
The exact reason I do not use tuple is because (1, 2, 3) != [1, 2, 3]. This information is lost when simply casting to the mutable equivalent type
The parallel between my code and deepcopy's memo seemed pretty clear to you. Since deepcopy is id based, I assume this is what made you think the objects should not be equal
@abarnert Did you really went on nesting a tuple in itself to see what would happen? That's pretty cool!
 
Yeah, but that's only for the underlying memo for catching self-recursive objects; it was pretty clear that just using id-hashing for the top-level dict wasn't going to solve your problem (or you would have just done that and saved yourself a lot of trouble). But maybe that's what misled me here…
static PyObject *tuply_make(PyObject *self, PyObject *args) {
  PyObject *tup = PyTuple_New(1);
  if (!tup) return NULL;
  if (PyTuple_SetItem(tup, 0, tup)) return NULL;
  return tup;
}
 
Oh I see
 
Every time someone has a question about the C API, I tell them they should be using PyCxx or Cython or Pyd or rust-python, but when I want to slap something together, I run my silly makecboilerplate.py script and edit it manually, because I never listen to myself…
 
If you want to know the whole story of my hash question, this is what made me think of it: stackoverflow.com/q/50976187/5079316
My though was the following: "why not just convert the list to a str, use replace and convert it back"
 
Depends on whether your list values are restricted to things that are valid JSON/valid ast.literal_eval literals/something stringable, doesn't it?
 
3:40 AM
Well, if you are able to make everything hashable, then all they need is to be equatable
I'll actually add an answer on that question, just because it sounds fun
 
If your values are comparable, it's probably easier to just use a nice wide tree so it's technically logarithmic time but practically about as fast as a hash table.
blist, sortedcontainers, pyrsistent, whatever.
Oh, wait, you meant just equality-comparable, not totally-ordered, right?
 
yes
sorry, I wrote comparable there for a moment and edited after
 
It's pretty similar yes
But mine is way more complex, way less readable and probably a bit slower
But yes, the point is that I expect str.replace to be blazing fast comparared to anything else written in Python
 
Doing the same algorithm as str.compare but genrically and recursively might be slow as hell in CPython, but in PyPy it should be decent, right?
 
3:45 AM
I have to admit I never PyPyed
Heard good things
 
I've never gotten to use it in a project for work, but for personal stuff, I use it quite a bit. I'm sometimes amazed at what it can optimize. And even after trying to read all the whitepapers and the source code (and I even worked on a tracing JIT for JavaScript/ActionScript…), I remained amazed. I suspect the truth is that Armin is a wizard.
Of course it is a bit annoying to drop back from Python 3.7 to 3.5.
 
Python 3.6 was the best update
Is there tail-recursion in PyPy?
 
Nope.
There was one of those "I'll do an experimental fork if anyone will pay me" proposals, but $0. My conspiracy theory is that Guido threatened the break the kneecaps of anyone who contributed.
Although Armin spending his time on STM instead was a lot more interesting, even if that fork seems to be stagnant now.
 
My str.replace solution. You might see why I was asking about mutable hashed objects earlier
I once saw that decorator someone wrote to make a function tail recursive, but lost track of it
 
Anyway, as much as I love f-strings, I think the best updates were 3.3 and 2.3.
 
3:57 AM
I was not around at 2.3
I believe I started coding around 2.6
Maybe 2.5
I see 3.3 is the 'yield from' version
Without surprise it got downvoted straight up
 
Yeah, yield from. But also a lot of little things. Memory view, import hooks, stuff that made porting from 2.x a lot less painful (u prefixes, callable), and lots of optimizations (compact unicode strings, decimals that are almost fast enough to use, faster comprehensions on 64-bit systems, …).
 
I was not a mature enough dev at the time so I was not following updates, but yes that is definitely a nice one
It's getting late here, rbrb
 
4:17 AM
cabbaze
 
 
3 hours later…
7:10 AM
cbg
in mixology
old Dr Dre's lyrics that I used
 
recbg
 
it started like I've got a PhD in Mixology
 
cabbage
why does python send an argument to class instance invisibility? Totaly nonsense... lost so much time..
I mean , the error says , the function inside the class take 2 arugments but 3 were given.. I didnt give it 3 arguments... I gave it only 2
then some guy comes along and says, i need to add self as a parameter when defining the definition inside the class.. I don understand why python does this..
At least it should give the user a warning that self is not there or error which makes sense.
 
7:28 AM
@Anarach ... or perhaps you should have read the tutorial
 
^ don't use before you learn, simple as that
 
apple = "mango"
class a:

    def b(self):
        self.apple = "fruit"
        fruit = "orange"
        print(apple)
        print(self.apple)
        print(fruit)

    def c(self):
        print(self.apple)
        fruit = "orange"
        print(fruit)

Z = a()
print(Z.b())
I figured it out
Makes sense now
 
"Self" is not special so python can't warn you
 
I hafve beef with the warning message thats all
 
Use a @classmethod if that's what you want
 
7:41 AM
I mean , the error message could be "you have not provided default argument for class member functions"
simple as that
 
7:51 AM
question
let's say that you have two methods
and that you do a if __name__ == '__main__':
below you put your 2 methods
a()
b()
is there a way to put all the methods without mentionning the name of the methods in an explicit manner
?
 
@AndyK Good Point.. Its cumbersome.. to add everything there.. But i think the order matters so how is python supposed to know which method to execute first
it could execute it in the way its written so.. thats one way..
 
@Anarach thanks for the advice
 
@AndyK Hah.. I am not even close to giving advices to people.. Those were just my thoughts.. I am just like you waiting for the experts to dig in.. But thanks..
 
@Anarach Zhou Enlai said that sentence that I tweaked a bit "somehow, we are all amateurs"
 
@Anarach your IDE can warn about that.
@AndyK please recite import this line 2 (from the verse) 10000 times.
how many times in your life did you execute all methods of a class sequentially in a section guarded by __name__ if?!
 
8:07 AM
@AnttiHaapala never?
 
exactly. never. You will never need it.
 
@AnttiHaapala so you mean I should put them in a class?
 
Python is a practical programming language. It makes solving real problems practical
In Python it takes quite a many more characters to write a Hello world than in HQ9+.
In Python you need to write print("Hello world!"). In HQ9+ you write H.
this is because Python is a practical programming language.
 
@Anarach no
 
8:12 AM
Therefore, since in real life you will never have the case where you need to actually use the function invoke_all_methods_of_a_module_in_order, then there is no such function in Python either!
 
It can only tell you that the number of positional args is off. And—oh wow!—that's what it does.
 
9:10 AM
Guys I need some assistance, is 'python3 -W ignore test.py' supposed to suppress all warnings?
Because its not suppressing third party modules' warnings when I use the -W flag
 
does anyone use vtk for python?
 
@ngunha02 the answer to such a question is usually "yes" otherwise there'd be no module for it :P
 
I am new to vtk and I am trying to render a plane (a svg file with multiple lines)
i have searched all the tutorial but have not found an example
 
@ngunha02 if that's an option I strongly suggest that you use mayavi.mlab for it
vtk is like writing in assembly; mayavi.mlab is, well, like c++
or vtk is like having your legs chopped off with a tea spoon, mayavi.mlab is a splinter in your index finger
 
Nobody is getting ResourceWarnings errors all of a sudden on their python codebases? From built in modules?
 
9:21 AM
@AndrasDeak: both still hurts :P
 
yeah, but mayavi hurts much less :)
shameless self-plug: here's an answer of mine at the end of which there's a surface being plot with mayavi
The last 4-line block is just for the colormap, the first three blocks are for generating data. The actual plotting is a single function call.
if you use vtk you need to do everything, create a pipeline, set a source, filters, glyphs, fiddle with the camera, whatever
and let's just say documentation isn't as abundant as you'd like
 
 
4 hours later…
1:00 PM
imgur.com/gallery/ApSiJyz annoys me because it assumes that the following things would not be found on other inhabited planets: domestication, changes in temperature.
Dogs were like the third thing humans invented. It's not a difficult concept, it just takes ten thousand years of implementation.
If you don't think that alien planets have both twenty foot tall crab monsters, and three inch tall crab pets, well, I don't know what to tell you
There's a whole genre of posts like this and they all rustle my jimmies
Related genre: the "humanity heck yeah" posts that are all like "humans would be renowned among alien races for their adaptability / compassion / inventiveness / whatever". I don't think so. Being able to use tools and be nice to one another long enough to form a society is a prerequisite for space travel.
 
At least the former is a joke
 
cbg
 
Rustled jimmies?
 
A common state of jimmies for Kevin
 
1:15 PM
Having dogs is, indeed, a prerequisite to space travels
History actually showed it to us
 
Unless you're a time lord because then you keep humans
 
I always found that slightly creepy
 
Oh you meant poor Laika
 
@Kevin Without adaptability / compassion / inventiveness /whatever how would we ever all combine knowledge/ideas to make space travel possible?
 
1:18 PM
And dogs
 
\o cbg
 
Cabbage/
@OlivierMelançon Sad story :(
 
cbg for Moo
 
how goes it AD ?
 
Fine, thanks, supervising a mid-term resit and tracked down a nasty bug an hour ago. How are you?
 
1:30 PM
Woke up today with the realization that my program is 50% more complicated than it needs to be, but my willingness to fix it evaporated as I approached the computer
It already works, and refactoring would make it faster by one function call
 
Cabbage
 
cbg
 
I made an odd discovery a little while ago. I have some code with a nested loop. Here's an abridged excerpt:
for n in range(1, 200000):
    nlo = n - 1
    for p in rprimes:
        ilo = (1 + nlo // p) * p
I realised I could get rid of nlo & calculate ilo with this: ilo = -n % p + n. But it made the program more than 10% slower! I realise the modulus has to do the division & throw away the quotient, but the 1st version also has to do a division, and I figured that saving a multiplication would make it quicker.
 
Are there longints?
Perhaps that's why it's expensive
 
No, everything calculated is <= n
 
1:45 PM
Ah.
 
rprimes is (13, 11, 7, 5, 3, 2)
 
Weird but I know nothing about low-level stuff
 
FWIW, I wrote this code today after getting nerd-sniped a couple of days ago by a SO python question. The question's been deleted, and I forgot to save a link. :( But the problem is: Find the first interval of 17 consecutive integers such that each number in the interval shares at least one common factor with at least one other number in the interval.
The OP posted some very slow brute-force code that called gcd on every pair of numbers in the interval. My code is still brute-force, since it still checks each interval one by one, but it's a little smarter.
 
@AndrasDeak fine just super busy :\ sorry for late reply
 
@PM2Ring Do you reduce your penance for every person you successfully rope into working on that problem as well?
 
1:52 PM
darn I can't ping BR anymore :( I wonder why
 
I sat down at my desk with hi aspirations about my productivity and already it's being challenged.
 
It's not too hard to show that it can't be done at all with very small intervals, and I guessed that 17 might be the smallest interval width with solutions. Anyway, I managed to find a bunch of solutions, did an OEIS search, and found some interesting stuff, including how to find higher solutions for a given interval width once you have a solution, but there doesn't seem to be anything better than brute-force at finding the smallest solution.
@piRSquared :D It's an interesting little puzzle. And my code is pretty quick, but it'd be nice to make it even quicker.
 
@MooingRawr only pingable for a week or two. Directed replies still work
 
I sent the problem to the boys in the lab, and they say: you can skip checking the even numbers, because they're all divisible by two. This is why the boys in the lab get paid the big bucks.
 
@Kevin Is that what even means... I've been wondering.
 
1:57 PM
@MooingRawr and glad to hear that :)
 
Mid"summer"-cbg
 
@Kevin :) I didn't post my code in case other people want to work on this problem. You guys may come up with a smarter algorithm and I don't want to contaminate you with my code in case it stops you discovering a better way.
 
The boys in the lab came up with other ideas, but decided to quit and found a new startup based on their discoveries
 
for any numpy inclined. Is there an analogous function to bincount that tracks the min or max for bins? For example np.bincount(vec_o_num) returns an array where the count of each number found in vec_o_num is dropped into that arrays position. You can pass a weights argument which accumulates the corresponding value found in weights in the "bin" instead of just counting the bin. I need to track the max or min of the corresponding vector for each bin. I can give an MCVE if needed.
I was going to use numba to jit this operation but would rather not if there is a wheel already built
 
2:15 PM
@piRSquared you mean you want to get weights[indices_in_specific_bin].max() and .min()?
 
@AndrasDeak yes
for all bins
 
np.maximum.at(out, vec_o_num, weights)?
 
I'd be surprised if one existed :)
unless you trick it up
 
DSM
TGIF cabbage for all!
 
cbg
 
2:25 PM
TGIF cbg
 
@AndrasDeak oh...... I don't know how I feel about direct replies to BR to drag him in here if he hasn't been here in a few weeks :\
cbg DSM
 
@miradulo don't you instead need the indices from unique(vec_o_num) as second arg?
Not sure how bincount works
 
This works
def binmax(bins, maxthis):
    size = bins.max() + 1
    minmax = maxthis.min()
    newmax = maxthis - minmax
    a = np.zeros(bins.max() + 1, dtype=maxthis.dtype)
    for i, b in enumerate(bins):
        val = newmax[i]
        a[b] = np.maximum(a[b], val)
    return a + minmax

binmax(
    np.array([0, 0, 0, 1, 1, 1]),
    np.array([2, 5, 0, 100, 200, 50])
)
array([ 5, 200])
 
2:42 PM
what does that do?
 
@AndrasDeak I'm not sure what you mean. If you let out = np.zeros(bins.ptp() + 1), then the array elements act like indices into the zero array with corresponding weights.
 
@Neoares it finds the maximum values in maxthis for each bin label in bins
 
hey does anyone know if the GDPR effects employment contracts? (establish or otherwise?)
 
Ah no sorry, np.zeros(bins.max() + 1).
def binmaxes(bins, weights):
    out = np.zeros(bins.max() + 1)
    np.maximum.at(out, bins, weights)
    return out
 
@miradulo that's awesome
 
@miradulo I set the dtype and it allows me to use dates
def binmax(bins, weights):
    out = np.zeros(bins.max() + 1, dtype=weights.dtype)
    np.maximum.at(out, bins, weights)
    return out
binmax(
    np.array([0, 0, 0, 1, 1, 1]),
    pd.to_datetime([
        '2018-01-01', '2018-03-31', '2016-12-31',
        '2001-04-01', '2000-01-01', '2088-08-08'
    ]).values
)
array(['2018-03-31T00:00:00.000000000', '2088-08-08T00:00:00.000000000'],
      dtype='datetime64[ns]')
Problem totally solved!
 
Ahh, nice!
 
stackoverflow.com/a/48828268 recommending sudo su pip
 
title text on xkcd.com/1987
The Python environmental protection agency wants to seal it in a cement chamber, with pictorial messages to future civilizations warning them about the danger of using sudo to install random Python packages.
 
I have an api wrapper and a separate project that depends on it, and whenever I add a function to the wrapper I find myself running pip install . -I --no-deps just so that I can tab-complete things in PyCharm
is there a better way to do that?
 
3:11 PM
Install in editable / develop mode: pip install -e .
 
morning cabbage
 
cbg @code
 
cbg
 
3:25 PM
@davidism thanks, exactly what I was looking for. Now if only PyCharm didn't require a restart to find the linked package...
 
What's going on this morning?
 
Iceland vs Nigeria for one
 
hockey?
 
I wish
I wonder if there are 6 hockey players in Nigeria
This says they have one indoor rink
 
@MoxieBall it doesn't require a restart
 
3:41 PM
@davidism I found that code completion only worked after a restart
 
Your PyCharm is broken then. Adding packages to the virtualenv are automatically indexed.
 
@MoxieBall Is your project's SDK set to the virtual env?
And did you see an "indexing files..." message in the status bar? Along with a progress bar?
 
It only required a restart after I installed a package with -e while the project was open. Now all changes I make are available in completion immediately. This is a tad old but, along with other things I read trying to figure out why it wasn't working, seems to indicate that I'm not totally crazy
 
If I pass key function to .sort(), how would it behave? It just compares returned values?
 
Yes, it would compare the value returned by the key function.
 
3:55 PM
In case you're wondering, the key function is only called once on each item to be sorted, it doesn't get called on every comparison that .sort makes.
@tilaprimera Sorry for the confusion. I saw you lurking yesterday, and waved to say hello because I didn't want you to feel obliged to de-lurk.
 
@MaxLunar key should be a function that returns a representation of the value being sorted. That representation is used in the comparison.
 
wim
4:11 PM
I wonder if you can get a uniformly distributed random.shuffle(L) just by using sorted(L, key=random.random)
 
from random import random as r

sorted(range(10), key=lambda x: r())
 
@wim You can, but it's less efficient than Fisher–Yates. FWIW, that used to be a common technique in C, passing a random comparison function to qsort. It's cute, but dumb. :)
 
^ but more cute
 
And of course, you do have to give the random function the correct signature. :)
TimSort or qsort are O(n log n), but Fisher-Yates is O(n).
 
4:28 PM
I'm almost tempted to post ''.join([f(c) for f, c in zip(cycle((str.upper, str.lower)), s)]) to that question. :D
 
Number of times today I left a comment that I thought perfectly explained "A, therefore B" and someone replied, "Also, B": [2]
4
 
It seems to be a day of unclear thinking. :) I saw a question about name binding a few hours ago. Bruno Desthuilliers posted a good answer, with a link to Ned Batchelder's Names article. And the OP seems to have understood. But some of the other answers were pretty bad. stackoverflow.com/questions/50986441/… See Bruno's comment on the top deleted answer. :)
 
''.join([str.upper, str.lower][t[0] % 2](t[1]) for t in enumerate('abcef'))
Whoops, that was already there.
 
4:47 PM
It's faster & shorter to avoid indexing: ''.join([[str.upper, str.lower][i % 2](v) for i, v in enumerate('abcef')]). And don't pass a gen exp to .join instead of a list comp.
 
I forgot about the generator issue in join
 
5:20 PM
guys what do you think about taking jobs in niche programming languages
???
 
"Would not"
 
I hear COBOL jobs pay well these days.
Those with the True Hacker Nature should be able to retrain themselves into whatever language they like
 
@vaultah is that in response to me??
and @vaultah why not?
 
Principal drawback: the more obscure the language, the less likely you are to find solutions to your problems on Stack Overflow
 
@Kevin what is "True Hacker Nature"
@Kevin and in how long to retrain
 
5:23 PM
An indefinable quality that all "real" programmers possess
 
Shouldn't that have a (TM), Kevin?
 
Based on no evidence I declare that it takes a month
 
@Permian why are they niche? Because they're new? Old? No longer developed? Pain to write? Proprietary? In any case, you're basically on your own in these jobs
 
@vaultah its D....
 
you mean that language people have neither heard of nor use?
 
5:26 PM
i mean the language is D
 
@PM2Ring it is an open tab these days. two three times I bolster the courage to ask a question here, but somehow in the middle of writing the question, I figure something out :D
 
its so niche it doesnt have its own chat on stack overflow chat
 
Make one, and become its king
 
@Kevin haha
 
Having an italicized name is such a rush, A++ would recommend
 
@Kevin how wonderful for you?
 
And you too, if you make a D room.
 
DSM
I think Peter V was a big D fan, if memory serves.
 
@PeterVaro are you the D fan?
 
I don't know much about D but I support the trend of single letter programming languages.
5
 
DSM
5:30 PM
We're unfortunately situated if that becomes popular.
 
Is K taken? I better start establishing the trademark now
 
@Kevin and yet here you are in the Python room...
 
Python 4.0 will just be known as "P"
 
@Kevin no way
 
DSM
26(52?) programming languages should be enough for anyone.
 
5:31 PM
Which PEP is that?
 
All the Pyth nerds at the code golf site kicking themselves that they didn't think of it first
 
whats code golf?
sounds good
 
I want to change my middle name to 🥧 emoji
 
Code Golf is the art of writing the shortest program possible.
See also: Pyth
 
5:32 PM
I'm not sure the language makes a difference if you're actually interested in the problem you're trying to solve? That would be the bigger benchmark for me. I'm having to use some language that doesn't even have a name for units that manufacturing companies are paying £2000 a pop for and it's as backward as 'intuitive or even just sane'[::-1]
 
@Code-Apprentice It doesn't exist yet, I have to overthrow the benevlolent dictatorship first so I can bend the community to my whims
 
Why stop at one letter? Let's stop using letters, they're too long. Phonemes are better. Instead of "C" (pronounced "Sea"), pronounce the name by making a deep throated gurgling sound?
 
All those units do is count how many things pass a sensor and display it on a TV.
And you don't have to stick the job forever anyway. If D is what they use to solve the problem and you come out having improved x, y, z for the company, why would that be a bad thing?
 
@Kevin interesting like approach....pyth
 
It's a beautiful horrible thing
 
5:45 PM
It's complicated to understand. A real competition less likely character...
 
@coldspeed If only programming were entirely verbal and not written...
 
should i take a job in emojicode?
 
you mean swift?
 
Where's that meta post about not adding tags in the title?
Okay, found it.
 
DSM
@coldspeed: if you ever find out, let me know.
 
6:01 PM
edit: nvm, figured it out. [last posted 9 years ago]
 
@DSM glad to see I'm not the only one with that peeve...
 
@coldspeed that performance seems catastrophic. ~4 times longer to use a convenience method in a library that's supposed to give speed.
And the faster python method also constructs the actual DF object while it's at it.
 
I just got distracted for a little while micro-optimizing piRSquared's code. As I suspected, it's more efficient to create the list or tuple (str.upper, str.lower) outside the loop. Otherwise, those methods get looked up on every iteration.
class X(type):
    def __getattribute__(cls, name):
        print(cls, name)
        return type.__getattribute__(cls, name)

class STR(metaclass=X):
    upper = str.upper
    lower = str.lower

print("".join([(STR.upper, STR.lower)[x%2](l) for x, l in enumerate('ABcd')]))
#output
<class '__main__.STR'> upper
<class '__main__.STR'> lower
<class '__main__.STR'> upper
<class '__main__.STR'> lower
<class '__main__.STR'> upper
<class '__main__.STR'> lower
<class '__main__.STR'> upper
<class '__main__.STR'> lower
AbCd
 
@roganjosh Yeah, see also this where I show two loopy solutions that flat out destroy pandas.
Those submodules are in need of some serious work because right now they're all really bad performance wise.
 
DSM
While there's definitely a lot of low-hanging fruit left to pluck, sometimes people give a solution which conveniently skips a bunch of branching pandas does to support corner cases (e.g. assumes there aren't any nans, etc.)
 
6:11 PM
Speaking of Pandas, is this too broad? stackoverflow.com/questions/50993503/…
 
@coldspeed starred that, thanks.
@PM2Ring absolutely, and unclear
 
DSM
I like the idea that it's the csv file itself which is occurring randomly. Poof! Hey, a new csv file!
 
A wild CSV appears!
 
@DSM Hey, no offense meant when I said the performance is in need of some work :(
 
Is DSM a Pandas developer?
 
DSM
6:15 PM
Not really, though I've had a few dozen PRs accepted, and every now and then I see someone using a method I implemented. :-)
 
That's pretty cool :) For all the frustrations I have with the library, it's still my go-to. I was surprised by that performance benchmark on .str though
 
Just got the Tumbleweed badge :(
 
@Simon that's a scar to be proud of (-: Congrats
 
Speaking of badges, I just got Numpy bronze today. I guess it'll be a while before I get gold. :)
6
 
6:36 PM
Nice :)
 
Numpy was a difficult and deliberate effort for me.
 
I might set a bounty but for the fact I'm trying to create some wrappers for Python and it's killing me at the moment, if I can't solve it I might need give away some rep
 
Strange, I searched "[python] sound" to find a dupe for that "how to play audio" question on the front page, and it showed me all questions with "sound" in them, not just python questions
Guys, I broke search :<
 
Well this is the one: stackoverflow.com/questions/50880639/… I'm open to any suggestions.
 
Got gold? No? Go get it!
Yes... re:numpy, I tried my luck, but never got good with it until I started learning pandas. Pandas puts numpy into context, really.
 
6:53 PM
Seeing Python Tkinter can't recognize date in image file makes me wish we had a canonical question for exactly which image formats you can pass to tkinter.PhotoImage.
The hard part being, some pngs are accepted, and some aren't
 
@Kevin I think it also depends on the Tkinter version. I don't think my old Python 2.6 Tkinter accepts any PNGs.
 
The tcl docs claim that only gif and ppm are accepted, but I'm 99.999% sure that I've given it pngs before
 
 
@user3483203 I like the visual rebranding!
 
> PhotoImage for images in PGM, PPM, GIF and PNG formats. The latter is supported starting with Tk 8.6.
Ok then. I suppose tcl has the same SEO problem that python does: googling a term brings you to documentation that's 2+ versions behind
 
6:59 PM
we should write a crawler that clicks python 3.6 links all day
 
01:00 - 19:0019:00 - 00:00

« first day (2806 days earlier)      last day (2134 days later) »