« first day (3535 days earlier)      last day (1396 days later) » 

4:56 AM
stackoverflow.com/questions/62481700/… also the answer really should be removed.
 
 
1 hour later…
6:20 AM
Ummm.... float is supposed to be a subclass of numbers.Real, isn't it? Why does mypy complain about this?
v: Collection[numbers.Real]
v = [1.5]
# error: List item 0 has incompatible type "float"; expected "Real"
 
Philosophical SO policing: If a link-only answer is embedded in an actual answer that does not address the question at all, is it still a link-only answer?
 
I think the correct case is to use Collection[float], apparently Guido noted this in this issue github.com/dropbox/stone/issues/33
 
@Aran-Fey this is apparently super duper complicated
 
That's kind of a relief, actually. Means I can do whatever I want, rather than having to implement any super specific behavior
 
If you mean "do what's right, not what MyPy says", that is sadly often both a valid and required approach.
 
6:38 AM
I'll try to do it right, but I'm fine with any result that's in the range between "right" and "as wrong as mypy"
 
 
2 hours later…
8:15 AM
@MisterMiyagi I'd say it's "not an answer" flag-wise
 
@MisterMiyagi You have to be careful with NAA flags in cases like this, because moderators don't always look at context. That means they might not notice that the answer "does not address the question at all", since they never read the question. They just read the answer, and if it looks like an answer, they're subject to dismissing your flag.
That said, I feel that such answers do need to be deleted, and I will tend to look at context when handling NAA flags. A C++ answer to a Python question is NAA, no matter how well written or formulated of an answer it is.
If you want to improve your odds of success, raise a custom flag and explain the problems with the post and why it needs to be deleted.
(If it's not obvious. If it's obvious, we prefer NAA flags. They're easier to handle than custom flags.)
 
FWIW I don't NAA flag at all anymore. I know the gist of what it is supposed to mean but it is still way too subjective in practice. "Attempt to answer the question" has a lot of wiggle room, and usually I seem to be standing on the other side of the room.
In this specific case, I've asked the answerer via comment to expand the answer with the linked-to information.
Surprisingly enough, they reacted friendly and changed the answer.
 
That is surprising.
I'm troubled that you don't even bother to flag anymore. That's horribly broken.
 
Yes, it is.
 
The typical problem with NAA flags is that flaggers want moderators to judge technical correctness of answers, and we just can't do that.
 
8:26 AM
But I feel there is no point flagging if the majority of my flags get rejected. That just tells me that I'm flagging inappropriately.
 
Heh. And then there's the problem that your resident subject-matter expert is also one of the strictest when it comes to NAA flags. ;-)
See... I would have agreed with your NAA flag here and converted that to a comment (at least, if not deleted it outright).
But then... based on the comment, it appears that that speculation is the answer to the question.
So perhaps deletion is contra-indicated after all, and a better course of action would have been to simply edit the answer into more of a statement than a supposition.
 
That's the weird wiggle room. Obviously it was meant as a comment (thus not an answer) but it actually does answer the question, even if somewhat vaguely.
 
Well, it's not really wiggle room. Rather than strictly and blindly enforcing "rules", moderators tend to have improving the site as our guiding principle. If something does provide the answer to the question, and it might be useful to future viewers, then it would be destroying value to delete it. That means we're reluctant to do it.
 
I get that reasoning, and have zero problems with it.
 
Likewise here. The answer is not something I'd write home about. The quality leaves a lot to be desired. But that can/should be fixed by editing. What purpose is served by deleting it?
 
8:33 AM
It's just not obvious from the process of NAA flagging.
 
Well, that's fair. The guidance surrounding flagging and reviewing is...suboptimal to say the least. But you didn't say, "I was very confused and frustrated initially, until I started to get a better handle on what should be flagged". That would have been fine. Instead, you said, "I no longer flag anything because it sucks." And that's not OK.
 
I'm decently sure I did not use that wording.
 
No
That's my wording
 
It's a subjective process. My subjective intuition does not align with it. Therefore, I do not use it.
 
I assume those two examples have been pulled from a flag history?
 
8:37 AM
Surely there are still some posts, though, where there is no subjectivity and you would still raise a flag? Posts where any right-thinking person would know that they needed to be deleted?
@roganjosh Yeah. I looked at his declined flag history. He only has like 10, so it was pretty easy.
#modhacks
 
In both cases, neither question has moved on (no more answers, no further activity and no accepts). The first was particularly focused on the OP's issue. My feeling is they would be better roomba'd
 
Is this ? Yet another question about Windows not finding Python executable, apparently due to path. I can't identify which duoe target because teh OP's statement is too vague. stackoverflow.com/questions/62482387/…
 
@CodyGray No, quite frankly not. Not as NAA. As spam or whatever, yes. Not as NAA.
 
@smci Yes.... There's not enough information there to debug the problem. Clearly not if you can't even identify whether or not it's a duplicate.
There's a possible argument to be made that it's not a programming problem and therefore off-topic for SO, but I don't think you even need to go down that rabbit hole. It's closeable for another reason.
(We do allow questions about tools primarily used by programmers. Obviously, a Python runtime environment is going to be a tool used a lot by Python programmers. So questions about that are generally on-topic here, even if they're just Windows configuration issues.)
@MisterMiyagi What would you flag "I have the same p0rblem!" as?
 
8:57 AM
@MisterMiyagi I said before: "NAA" is "thanks" and "me too" and strictly link-only with nondescript link text
These are no-brainers
@CodyGray is it not very early or very late for you?
 
@AndrasDeak Moderately late, by my standards.
 
Then again it's a weekend, apparently
 
And time is a social construct
 
Einstein, right?
 
More like Wittgenstein
Einstein's relativity still holds time to be a physical quantity.
 
9:57 AM
I can name variables file in python3 just fine right?
It was only in python2 where file was a reserved keyword?
 
It was never a keyword, but yes, it used to be a builtin in python 2
 
ok cool, any way I can prevent vscode from highlighting it differently? It makes me feel like I'm doing something bad.
 
What linter are you using?
I assume it would be the linter that complains here, but there are other Python plugins so maybe it's one of them
 
VS Code uses MagicPython for syntax highlighting.
Oh. They said "highlighting". I thought they were talking about the color.
 
Huh, nm. I invented too much about the problem
 
10:03 AM
haha
Well, someone had to provide the details.
 
<puts the Tarot cards back in the draw>
 
Not sure if MagicPython allows any customization, but apparently file is categorized as variable.legacy.builtin.python
 
Is there really a good reason to name a variable file?
 
Yes, for file in files: ...
 
Anything wrong with with open('foo.txt') as file:?
 
10:08 AM
There's no reason not to use it
 
@Aran-Fey exactly my use case
 
I'd prefer to give it a more descriptive name.
@AndrasDeak's example is acceptable, though.
 
@CodyGray but you like bloated languages
 
@AndrasDeak I definitely do not.
 
10:09 AM
Nobody has ever called C or assembly a "bloated" language.
Oh...or did you mean English?
 
Have you seen how many LOC asm can be? Phew!
 
Typically the variable that is used to hold the file name is the descriptive one, the file handle can then typically have a generic name like file
 
Oh, LOC is a reasonable metric of something now?
 
Of course, have you not seen Code Golf?
 
@jigglypuff Why would you need to keep both around? The file name is a transient thing; the file handle is what you keep and name well.
@AndrasDeak Ironically, the only language I ever golf there in is assembly. :-)
 
10:11 AM
Hehe
 
Just don't start naming your kids "son" and "daughter".
 
with open(my_descriptive_file_name) as file:
contents = file.read()

I'm talking about something like this
 
The only reason I don't use file as handle because f is shorter
 
Yup. That's what I was thinking when I read your original suggestion... "I'd just use f there."
 
ok fine, I'll use f
 
10:13 AM
@jigglypuff you don't have to, we're just musing
 
file is perfectly fine there.
 
Or, my_very_descriptive_file_handle_name
 
The only acceptable single-letter variable names are i, j, x, y, z. Change my mind.
 
k – that's i, j, k
 
But it's reasonable that highlighters won't be python version-specific
 
10:14 AM
@Aran-Fey I just wrote code with a variable named v. It represents a voltage value.
 
oh yeh good point
 
@MisterMiyagi I've never needed that many, but alright, I'll let it slide
 
m, n. Mostly n unless double loop.
 
@MisterMiyagi But "k" doesn't look like "i" or "j".
 
I don't use f because I'm not a fan of single letters that aren't numeric. Files being read in are infile, written out is outfile and in os.listdir() it's for file in files: so I'm sympathetic to this issue
 
10:15 AM
Are there any single letters that are numeric?
 
Actually, I forgot e for exceptions. Although I prefer ex or err
 
@CodyGray hmm?
 
Ask @roganjosh.
 
Ah
@Aran-Fey yeah, no
 
err is an error code, not an exception. Definitely ex.
 
10:16 AM
@roganjosh what about files being read and written at the same time?
 
Why, inoutfile, of course!
 
e.g. replacing strings
 
@CodyGray for i in range()
 
Ah, you mean a variable whose contents are numeric. I see. May you some day upgrade to a strongly-typed language.
 
Maybe I didn't express it clearly but I thought it was implied. Any kind of counter
Nah, I've gone the other way. I rely on duck-typing my use of the English language. Exceptions can be... painful
 
10:19 AM
Imagine how the duck feels!
 
@CodyGray python is strongly typed...
Mostly
 
@CodyGray Poor Rhadamanthus
 
@AndrasDeak "Some kind of number-y thing" isn't really what I call "strongly typed"
 
That's not a typing issue, it's a cognitive issue :P
 
But hilarious nonetheless.
If only Silas Perkins would have ducked.
 
10:26 AM
It's what Rhadamanthus represented that's important to me. I'll take it as a fable (curse you, Snopes)
inb4 I have no idea what he represented, but he's significant to me none-the-less
 
Significant to me, duck-the-less
 
@jigglypuff I actually don't do this explicitly, if I'm honest. I assume that it's needed for things like log files but I've never found myself needing to implement it myself
 
hmm you talking about naming a variable file or f?
 
I mean "files being read and written at the same time"
 
10:41 AM
oh, I'm doing it now, not by choice of course
 
@roganjosh You've never had to do an in-place update of a file? What do you do instead? Always write out a new file?
 
Read it in, modify it, and open the file in write mode to overwrite the contents
 
Do you close the file for reading first?
(The INEFFICIENT warning bells are going off in my head.)
 
Yes. I use the context manager for that. This would be in the case that the file can fit in memory
 
@CodyGray Python objects are strongly typed. But people say that Python isn't strongly typed because of the way our datamodel works. See Other languages have variables; Python has names. Sorry, the original site vanished, so that's a Wayback Machine link.
 
10:46 AM
Right, now we're getting into reference counting. Not better.
 
@CodyGray I don't doubt that, but the SAFE alarms (relaxing whale noises) are going off in my head
 
That's a nice page, though.
@roganjosh How is it any safer to close and re-open the file?
 
No race conditions
 
How would there be race conditions in either case?
 
Most of my programs are fronted by a web interface, so it inherently employs threads (or processes)
In the case that it's a throwaway script to modify a file, I'm not overly fussed whether it takes 0.1 seconds or 2 seconds
 
10:49 AM
@roganjosh The docs often uses u, v, w for looping over non-numeric items in a list. And of course, for k, v in some_dict.items(): is popular, although I'm tending to use for key, val these days.
 
@PM2Ring I used k, v quite a lot and felt like I shot myself in the foot when I viewed it 6 months later. I err on the side of being verbose in these cases now. It frustrates me at the time, but future me might thank me :)
 
Totally agree on erring on the side of being verbose.
Code is written once, but read infinitely many times. You can suffer the few more milliseconds it takes to type out a descriptive variable name.
 
I grew up coding with short variable names, so it's been hard to break the habit. ;) But I think short names are ok for things like loop variables if they're fairly obvious & only used in a few lines of code.
 
The case for me is that the company systems work on the basis of a product code. They're 4 digits long, with a checksum as the 5th digit. I have no idea why they picked this system. For my own code, everything works off an auto-incrementing id. I actually get quite confused, looking at old code, whether k refers to my product ID or their product code
 
When I started my current job, I had to read a bunch of MATLAB code that used single or double letter variable names throughout. I had no idea what any of it did.
I'm OK with loop counters being i and j. But when you're naming variables throughout a function a and ii, that's just a disaster.
(But I prefer loop counters being something like iDescription...)
 
10:57 AM
@CodyGray Sure. I'm a big advocate of optimizing code for readability. OTOH, if names get too big, so 3 lines bloat into 10 lines, that can impede readability.
@CodyGray I totally agree.
 
@PM2Ring You are seriously exaggerating there...
Maybe 1 line becomes 2.
 
@CodyGray Only a little. PEP-8 still recommends a max line length of 79 chars. If you have lots of 15 char names, you can't put many of them on a line.
 
Hrm. I don't like that. My max line length is 100 characters.
I still primarily use screens with a 4:3 aspect ratio, and I still think 80 columns is too narrow.
 
It's pretty easy for a 1-line comprehension to turn into a 5-line comprehension tbh
result = {
    key for key, value
    in some_dict.items()
    if value > whatever
}
 
I have no earthly idea what that means or does. I want it to be an array initializer.
 
11:02 AM
@PM2Ring It shows a line in Spyder and my OCD won't allow me to transgress such a line... to the point that I re-bind the name
RSL = RelevantStockLocations

        if not fast_exc:
            stocks = (db.session.query(RSL, Stocks)
                                .filter(RSL.product_id.in_(product_ids))
                                .filter(Stocks.location_id==RSL.location_id)
                                .filter(Stocks.product_id==RSL.product_id)
                                .join(Products, RSL.product_id==Products.id)
                                .order_by(Products.code)
                                .all())
 
Ugh
 
@PM2Ring I prefer 80 plus 10% wiggle room. IIRC black uses that as well.
 
TLAs
 
I've got mathematical C code I wrote 20-30 years ago that I still use from time to time. Some of that source code is rather terse. ;) The logic is ok, but I was still getting used to the idea of using longer variable names.
 
Sometimes, short variable names are OK in mathematical code, if they correspond one-to-one with the standard names of the mathematical terms.
But when you start getting duplicates, doubling the letters is not the solution.
 
11:04 AM
Yeah, start appending underscores instead! n_, n__, n___, etc
 
Underscores have one and only one use: as box-drawing characters.
(Or to denote implementation details reserved to the compiler/runtime.)
 
Actually, they're the recommended way to avoid name clashes with builtins. max_ = max(x, y), for instance
 
Ugly.
 
@CodyGray Almost. It creates a set of keys from a dictionary (hash map), filtering them on the value associated with the key.
 
How about choosing a more descriptive name?
maxOfXY = max(x, y)
 
11:06 AM
@Aran-Fey I thought that was only for keywords. Still ugly enough that I don't use it.
 
highestValueInSet = max(x, y)
 
Eh, that's unmaintainable if you try it with actual names instead of x and y. In reality that would be more like max_of_item_price_default_price
 
maximumPrice
Boom, there you go.
Nobody will ever have to guess about what that value might be.
 
Yeah, that works. Honestly, I almost exclusively use trailing underscores for function parameters, where I want to avoid using names that are too long
Can't seem to think of an example at the moment though
 
How do trailing underscores allow you to shorten function parameter names?
 
11:12 AM
@CodyGray This code, with open(file_name) as file: creates a context manager. When execution leaves the block under the with statement, the context manager closes the file, and it can handle stuff like the file being destroyed before the block ends.
 
@PM2Ring Oh, I see. I was secretly wondering what a "context manager" is. That sounds like an inferior way of doing RAII.
 
@CodyGray What I mean is that adding an underscore is shorter than using a different name
Lame example: def is_instance(obj, type_): (could arguably use cls there)
 
I grew up with DOS. I cannot read "cls" as anything else but "clear screen".
 
Other options include class_ and clazz. Pick your poison (:
 
@CodyGray I don't see why it's inferior. Context managers are nice, and my simplistic description doesn't do them justice. You can read an actual description here: docs.python.org/3/reference/… You don't need to know much Python to understand that section.
 
11:24 AM
@PM2Ring Inferior because it's vastly less efficient. Too much overhead. Also requires explicit notation, rather than happening all the time, automatically.
@Aran-Fey Yeah, this is where a standard convention is nice. Like always using T for "type".
 
@CodyGray "Too much overhead" is a relative thing. In Python, there's always more overhead than with equivalent C/C++ code. Even our function calls have more overhead than in C, although if we call a function defined in C (as many builtin functions are), that's more efficient.
 
^^ Isn't that what I insinuated when I suggested that single letters should only be used for things that are numeric/counters?
 
T for type isn't numeric or a counter.
 
It's a convention
 
T is pretty much established as a typevar in Python by now.
I don't think explicitly passing around a type happens often enough in Python to warrant its own established standard name.
Even cls seems to be a bit niche these days.
 
11:37 AM
What's a typevar, and how is that different from what we're talking about?
 
Wait a minute, mypy doesn't allow invariant TypeVars?! What the heck?
T = TypeVar('T', covariant=False)
# error: TypeVar 'covariant' may only be 'True'
Not to mention that TypeVars are actually invariant per default, but mypy treats them as covariant regardless. What a mess
 
@CodyGray ew
 
@CodyGray A TypeVar is more like a template parameter. It's not a runtime variable. It still exists at runtime, but doesn't do anything then.
 
OK, that makes sense.
 
11:43 AM
@CodyGray and in MATLAB i is the imaginary unit (can be shadowed)
 
Example:
T = TypeVar('T')

def f(v: T) -> T:
    return v

f(3)
 
@Aran-Fey the typing API is one of my highest contenders for breaking changes in Python4 :P
Too bad it's probably here to stay :/
@Aran-Fey Do you have an MCVE? Cannot rule it, but so far it did not bite me.
 
typing makes breaking changes all the time, they don't wait til python 4 :P
>>> TypeVar('T').__covariant__
False
mypy pretends that this output reads "True"
 
closed
 
11:49 AM
@jigglypuff I've played with it, but I've never really used it. I've seen it in a few SO questions.
 
@PM2Ring ok, I'm planning on using it
 
@roganjosh And self-deleted.
 
@jigglypuff I'm still quite curious about your use-case
 
editing contents of a file
 
Ok, well I'm going to interpret that as a shut-down since you've already expressed that you wouldn't be doing this out of choice. Good luck
 
12:05 PM
I have to create a script that takes some data and edits config files which have been in use for over 2 decades, if it was up to me I'd re architecture the whole lot, but that would have to wait for another day
 
 
1 hour later…
Added to that, I have no idea what expertise I have that would make me the target of the ping
 
which ping?
 
Good question. I was pinged and find myself here. But there's no trace in edit histories either
 
if you're both on mobile and desktop ping can stick around
 
Ah nm, it was the kick ping. I'm still struggling to get used to that
 
1:29 PM
I've had convoluted discussiosn on mobile, only to see 15 pings in my laptop's browser
@roganjosh ah, right. I always mute these so there's no sound.
 
I kinda want to and not, at the same time. When I hear the ping, I have a reflex that I need to respond to something. If I mute it, I won't know that an RO kicked someone, and there's no history for me to review
Anyway, that's something I need to figure out for myself
 
 
1 hour later…
user13682510
3:09 PM
is "kick" part of the room language, or it just developed?
 
> Verb kick
> 5. (Internet) To forcibly remove a participant from an online activity.
> He was kicked by ChanServ for flooding.
 
@joshua It's standard terminology used across the network. See meta.stackexchange.com/a/271269/334566
If I click on a message, one of the menu options is Kick
 
3:30 PM
hm, I'm recently seeing a surprising increase of people using asyncio + time.sleep. Are my spidey senses broken or do others see that as well?
 
user13682510
3:52 PM
Does kick refer to both the message and the user, or does only the message count too?
 
@joshua I don't understand what you're asking. You were kicked because asking random questions that have nothing to do with python is not constructive
so please stop doing that
 
Does Spyder also swallow output from multiprocess? My initial reaction to a recent Q was to blame IDLE, but that's not it this time.
 
4:10 PM
I've seen spyder-hangs-with-multiprocessing before
 
Hello Windows, my old friend...
 
@MisterMiyagi I had all kinds of issues with spyder when I used it. It also swallows Ctrl-C in it's console and hangs without letting you end the console if you start an infinite while loop...hardly an uncommon beginner experience, I'm sure.
 
I cannot understand why , but I am unable to serve a avi video file using Flask i.e I want it to show up on the html page so that users can see it before downloading . Here is the python and html code snippet : pastebin.com/Hx60WASD
 
I think someone had a similar problem here a while ago...
 
4:23 PM
@MisterMiyagi use a regular modern text editor or run through your regular terminal to being ide dependent
@AndrasDeak oh
 
@AshwinPhadke I'm very happy with my choice of IDE, thank you very much.
 
that may have been the one I remembered, I'm, not sure
(reading the surrounding chat transcript might be useful, I don't know)
 
ok
@MisterMiyagi hehehe
 
4:37 PM
@MisterMiyagi Closed. And I posted a comment with a link to the Raspberry Pi stack that should help him with the auto-mounting stuff, which seems to be his main problem, at this stage.
 
@PM2Ring Thanks for taking the time to help them along the way!
 
I remember how confusing it can be to automount USBs in Linux. It's a lot better these days, but I don't know much about Raspberry Pi, and some of the answers I just saw would be pretty intimidating to your average newbie.
 
5:13 PM
Guys do you use cmder console emulator? The program is just great but there is one problem: All text can only be at the same color. You cant have functions for example with blue and errors with red. Does anybody know if the theme letters can be customised so that there are not all the same color?
How can somebody create such a beautiful console and miss something so standard..
 
By errors you mean stuff that's printed to stderr?
 
Can you clarify what you want to do? Looking at their very first example shows a nice multi-color terminal.
 
I mean you are writting code in atom for example.... the different elemens of expressions get different colors
2
Q: Cmder all text same colour

CerIsIm using cmder windows terminal but I but all the text is the same colour regardless of command, or output etc. Can it be different colours to make it easier to read? IE I can change the theme in settings etc but think im in the wrong place.

I found a question but it is not answered ... same problem ... sorry for the link
I mean you can change the color of the text but ALL of the text at the same time... kills all the pleasure
other than that λcmder is A PIECE OF BEAUTY
 
There doesn't seem to be a way to customize the font color for stderr, I'm surprised
 
5:20 PM
well dunno i have looked it up many times in the past cause i want to use this console bad but...
well there s gotta be a way .. i ll look it up if i find anything ill post it on super user
Thought maybe somebody uses it here since its quite populare the console
there is definitely a way since the text is beautifully multicolored in github (github.com/cmderdev/cmder/blob/master/README.md) i am surprised that they didnt put that first thing i mean litteraly i would have made it mega obvious since it is of utmost importance. @Aran-Fey
 
Sure, programs can print text with color.
That is an entirely different thing than you said you were trying to accomplish
 
when i am writing a script different elements of the expression are colored differently and that enhances readability @Aran-Fey ... i believe any console should have this button right in front where anybody can find it
printing all the text in the same color spoils the fun since readability goes down
 
Syntax highlighting is not the console's responsibility. It's your text editor's responsibility
 
i cant understand that .. should i change the text editor somehow to have syntax highlighting in the console? (The IDLE from Python has Syntax highlighting)
I think i am waaaaaarmer hihiihihihih that link i put in the chat and then Color Schemes in documentation ... waaaaarmmer
 
Yes, either reconfigure your editor to have syntax highlighting or use a different one
 
5:31 PM
@Aran-Fey U must download the Syntax highlighting separately e.g it has > Panda Syntax Theme for Cmder or >>> More color schemes
 
What you're doing is like taking a photo with a black-and-white camera, then printing it and asking "Why doesn't this printer have any colors?"
 
Still find it weird..... Chesus ... Its like opening a fast food and you are only selling burgers with an application
@Aran-Fey agreed but when you are saying Syntax highlighting is not the console s responsibility i do not have the slightest idea which text editor to format .. the IDLE, Atom, Win Text Editor ?
Lets hope this works with the color schemes
 
Whichever editor you're using to write code in the terminal
 
well that would be python >>>
 
Well, yeah, python doesn't have syntax highlighting built in
 
5:35 PM
that means the python editor must be configured with syntax highlighting inside the console cmder
 
You can try IPython
 
cause IDLE has all highlighting
I ll google IPython
 
I need a break from dealing with TypeVars... it's been too long since I worked on something easy
 
well i read somewhere in documentation about TypeVars but to work on them no idea
i cant understand that .. how is it for the love of god possible that there is no Syntax Highlighting all the text same color .. dunno i ll put a question on super user
 
 
1 hour later…
6:55 PM
@toonarmycaptain yeah, it will do that. ctrl + . to restart the kernel
Don't run anything loopy from Spyder (said as someone working on web apps built using Spyder - app.run() inside the IDE is counter-productive) :P
@MisterMiyagi if you see Spyder weirdness and I'm around, you're welcome to ping me for verification. I'm always kinda interested in what it does, but I'm not extending this privilege to everyone :)
 
7:31 PM
@CodyGray Agreed, but personally I would have closed-as-dupe to "How to set Python path on Windows". I just couldn't find a good target.
 
7:42 PM
@roganjosh It's my pleasure to entertain your morbid fascination. ;)
 
Give me zombie processes now :P
It'll be fun when my zombie army fights your secret army of Python 2 devs. I didn't account for the t-rexes; I'll need to double up on zombies for that
I may also need a refund on Shogun Total War 2 from Steam. I think it's gone to my head
 
It doesn't have Zombie T-Rexes, does it?
 
Probably an Easter Egg in there somewhere
 
have you seen a T-Rex in halloween ;')
 
Prepare to be horrified this October. They're coming...
 
7:52 PM
Why wait, its already here AFAIK :D
 
If you're referring to some part of the Jurassic Park nonsense, I don't acknowledge any of it
 
hahaha was watching the series(not the film) this morning though :D
 
Oh my
 
Sighs well you need to get away from the work sometimes with total nonsense, that helps me:)
 
I prefer MauLer. He has a rant about at least 1 of the films
 
7:59 PM
ehh, thanks, no youtubes on weekends else weekdays will feel bad :/
Saved it though
 
Heads up; he's an angry guy :P
 
accustomed ;) everyone is here.. i blame on the weather
subtle and harsh makes me uncomfortable
 
"Subtle" isn't in his toolbox so you'll be fine
 
haha , cool now I have to watch with my Sunday morning Chai
 
8:25 PM
rbrb
 
9:29 PM
Cbg
eval(expression[, globals[, locals]])
Why the comma if there's nothing before it?
Isn't eval(expression[globals[locals]]) the same?
 
well, no, because parameters have to be separated by commas. Without commas it's a syntax error
Things in square brackets are optional, so if you remove all square brackets and/or everything inside square brackets, you get the 3 valid ways to call eval
eval(expression, globals, locals)
eval(expression, globals)
eval(expression)
If the commas were outside the square brackets, you'd get stuff like eval(expression, )
 
Isn't that valid? Ugly, but valid?
 
Huh, it is. I thought that's only allowed in literals
probably wasn't always valid though
 
It's a tuple of arguments, isn't it? Why wouldn't it be valid?
 
It can't be a tuple, tuples don't allow annotations or default values keyword arguments
 
9:40 PM
fplist: fpdef (',' fpdef)* [',']
 
I want there to be a good reason for it because I've invested multiple hours of my life into writing a function that formats signatures with optional parameters like that
 
Same as literals: easy extensibility?
 
That explains the trailing comma, but not the square brackets
 
10:08 PM
@Aran-Fey hmm?
 
Well, how do the square brackets aid extensibility?
 
@Aran-Fey there are no square brackets in eval(expression, )
we're probably talking about two different things
 
yeah
 
I think it's just by convention that we put the commas inside the square brackets. foo(expr, ) looks weird, even if it's valid
other things like bash command line args probably have the same traditional notation
numpy 1.19.0 out, now with pypy wheels and scrapped python 2 support :)
 
10:39 PM
@AndrasDeak Can depend on what expression is. For example eval(*..., ) is a SyntaxError pre 3.6.
 
weird
 
11:39 PM
> Change output of round on scalars to be consistent with Python
> Deprecate automatic dtype=object for ragged input
 

« first day (3535 days earlier)      last day (1396 days later) »