« first day (5140 days earlier)      last day (27 days later) » 

01:33
Should we close a question for simply referencing versions that are too old? This ancient unanswered pandas question is about args that were deprecated way back in 0.15 in 2014. Noone's likely to answer it, so what close reason should we use?
@Aran-Fey Interesting catch, you should raise a Python issue about this (at least to document it as a known issue).
 
2 hours later…
03:13
@KarlKnechtel Hammered. Weird that the OP thought he was running Python 3.6, though.
Sure, it's possible to run a different version than the one you intend to run. But surely you'd check something obvious like that before asking on SO... ;)
 
2 hours later…
04:56
needs more focus / typo or not reproducible (multiple typos and no question beyond "what's wrong") stackoverflow.com/questions/42581434
@PM2Ring people commonly think they must be running the new version that they just installed. they don't necessarily even know that they have an old version. Nor how to check.
Another dupe (see comments): stackoverflow.com/questions/54520359 . (Currently going through some tabs I missed earlier today when I ran out of votes)
(I was doing a cleanup of a variety of simple syntax-error questions)
 
1 hour later…
06:07
>See Greeting program for more information.
argh. Someone answered the nth duplicate, and said "see also" for the n-1th duplicate with a ridiculously unhelpful title (how on Earth was it found??).
06:34
Discovery of the day: with multiple versions of Python installed, cd to the standard library directory of one, then try to start another. What do you think will happen :)
07:17
@KarlKnechtel a) error b) the version from the current directory runs c) the version you launched runs
C is the sensible choice. But since you're asking, it's probably not that. The second sensible one would be A. But I'd assume it's B.
it's A. But the specific error is rather interesting
(I'm assuming here that the command is just python, i.e., opening a REPL with the default site.py stuff)
basically what happens is that the internals of tab-completion stuff reach the re module, which complains about a non-matching magic number (I guess related to the C implementation and making sure it has the right compiled library)
(actually, all of this could be platform/version-dependent)
08:02
I'm trying to build a server that dynamically inserts text into a SVG and returns it. The problem is... It doesn't work. It doesn't work when I try to one-box it in chat, and it doesn't work when I insert it via an <img> tag into HTML; however, it works if I manually copy-paste it into a GitHub Gist and then insert the githubusercontent URL. I'm using PythonAnywhere&Flask:
@app.route("/svgtext/<req>.svg")
def svgtext(req):
    return f"""<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg" width="280" height="180" viewBox="-1 -1 56 30">
<rect width="100%" height="100%" fill="#88f"/>
<text x="5" y="12">{req}</text>
</svg>""", 200, {"Content-Type": "image/svg; charset=utf-8"}
 
1 hour later…
09:25
@PetəíŕdtheWizard what does "doesn't work" mean? Is it just rendered as text?
@roganjosh when one-boxing, it shows "Image not found" and when <img>-ing it, it shows the alt text.
Can you make an MCVE?
My feeling is that this requires work on the frontend rather than the backend since it's dynamic content.
10:02
I made an assertion yesterday that random.shuffle() of binary values was not "in any way" encryption because it's not reversible but now I'm doubting that. If there was a set seed and I knew the seed, am I guaranteed to be able to reverse the Mersenne Twister by simply shuffling a range() of the same length as the output and then using that to sort the values?
@roganjosh I mean, technically that's true. But I also feel it's not really in the spirit of encryption. It's more of an implementation detail that shuffling uses a pRNG and you can sort of reverse it if you know the seed and the pRNG algorithm.
Encryption is more about creating a reusable process than happening to be able to reverse things.
10:16
Indeed, I agree that it doesn't fit the spirit of encryption but I think I need to remove the absolute assertion that it couldn't be "decrypted" (not in a hacking sense but being reversible). Thanks
 
1 hour later…
11:31
@roganjosh When speed runners exploit PRNG the term is typically called RNG manipulation, mostly because the speed runner is manipulating the seed/advancements. Personally I'd say the tools to find the RNG manipulation would be a decrypter, but people tend to go for different names -- In Pokemon: RNG Reporter, PokeFinder, PPRNG.
12:17
What I meant here was whether the python RNG was reliably stable in which case, it would be trivial to reverse by just knowing the seed, so I shouldn't really be saying that it would be difficult to reverse. I still know that this is hypothetical and I've kept the advice that this doesn't really count as encryption but the OP basically said it was a toy program anyway in a comment. I don't like making assertions that simply aren't true either way
In the back of my head, I do think python might have changed its RNG but I might just be thinking about the fact that they implemented a random seed at runtime ages ago to prevent dictionary attacks
@IljaEverilä long time no see! :) Hope you've been keeping well?
@roganjosh Long time indeed. Doing good, thanks for asking. Is the channel still all about cabbage?
Always about the cabbage. I'm glad to hear you've been good
12:35
I've been so out of touch with Python in general that reading the release notes makes one dizzy. Four years of just Java this and Java that...
4 years now? Wow
Time flies when you're having fun...
 
10 hours later…
22:23
Folks, I asked for your opinions on whether we should close a question for simply referencing versions that are too old? This ancient unanswered pandas question is about args that were deprecated way back in 0.15 in 2014. Noone's likely to answer it, so what close reason should we use? (Generucally asking this, it doesn't matter if you ignore pandas)
@IljaEverilä Same here, and I use Python regularly. Are you following the evolution of typing and no-GIL?
@KarlKnechtel re this and other recent ones, can you please take more time and check your assumptions before dupe-hammering things? In that particular question, what is the distinction you see between that and the other question? ...
... Do you interpret its title "Why does python use 'else' after for and while loops?" as merely asking "What happens in this case?" or "What was the language-design philosophy for defining it this way?"
^^ and by "check your assumptions" I mean ask other people before making an uncertain dupe-hammer; or if the question wording itself is ambiguous, don't expect that other people will share your particular interpretation, first collectively figure out the OP's intent (by discussing), then if necssary edit it to remove ambiguity.

« first day (5140 days earlier)      last day (27 days later) »