considering that unpickling can lead to arbitrary code execution, probably not
> Warning
The pickle module is not secure against erroneous or maliciously constructed data. Never unpickle data received from an untrusted or unauthenticated source.
@AndrasDeak The sorting one? Thanks :-) For some reason the only questions I ever have that I need to actually ask on SO (rather than finding them already answered) are of the "I wonder …" variety, rather than actual practical problems.
@AndrasDeak: Huh, didn't know there was such a button. (As for why my manual formatting failed, it turned out I needed 4 spaces on the blank line, too.)
I wonder how many of the people who claim to have made copy-paste errors actually copy-pasted. It's not like we're using scissors and glue here; Ctrl-C won't accidentally snip off a character at the end of a line in the middle of the text.
I believe you if you tell me that the parentheses are balanced, but you haven't
And until we make sure that I'm not debugging a problem that I had already solved (as it happens a lot with 22-year-old programmers and older ones as well), I'm not moving forward.
as I can tell you've only responded to me in a single message of yours, regarding the error message
@Hexacoordinate-C I hope you believe me that this wouldn't have been the first time that someone with a typo claims that their typo is only in their question :P
so, the second best guess is whitespace, considering that other files with the same code seem to work
if you mix tabs and whitespace, you likely get indentation errors (or TabErrors, in python 3)
try to open your code with something that can visually distinguish between tabs and spaces, or just rewrite the indentation of that block to make sure it's only space
@Hexacoordinate-C the thing is, aside from the parenthesis (which, ok, you're saying is a paste artefact), there is no syntax error other than the missing paren in the code you pasted. Even if it were a tab/space issue, you should be getting IndentationError rather than SyntaxError. So, you can see how it might be frustrating for someone when you paste code with exactly one syntax error (the missing paren), and it's pointed out, and you say "no, it's not that, I'm 22 yo".
Side note to anyone who has yet to discover this fact: everyone, of any age, who cites their age as grounds for feeling patronised by others fully deserves to be patronised. I was an idiot at 22, which I realised at around 27. At about 32 I realised I was an idiot at 27. I am sure that in five years I will realise that I was an idiot at 44.
I need to sleep. Maybe I'll be back tomorrow with same question. See you and thank you for your support. Now I know I'm an idiot. So I learnt something today then I'll be less an idiot than I was... :)
@paul23 let me give you scientific comfort. Perhaps you have an inherent level of idiocy that you cannot physically transcend, so you've reached your minimal level of being an idiot and you can't help not becoming less of an idiot. Feeling better? ;)
if I had more time and curiosity I'd install a virtual windows to see what winpython does with indentation errors
on the one hand I find it hard to believe that a python interpreter doesn't give a clear error message, but on the other hand there's "win" in the name
It is my fervent hope that sometime soon MS goes back from numbered versions to the NT/ME/XP model with "Windows Next Generation", or NG. That way, when it inevitably sucks harder than any MS product ever has before, we'll all be able to joke that we're "tired of Win NG".