I used it a few times to measure information gain with bayes, but that was a while ago and apparently my memory is failing me. Ahh...a long week and its only Tuesday
What @geekobi is saying is if you catch and re-raise, traceback.print_exc() will just return the re-raise stack, not the original stack. — fizloki2 hours ago
Hello! It says in Python Documentation: "Perhaps the quickest check to see whether command line editing is supported is typing Control-P to the first Python prompt you get" (I don't understand what "Python prompt" means), in cmd I typed 'python' and then pyton interpreter launched and the new command line began with >>> so I pressed Ctrl+P and it didn't beep, which, sadly, means I don't have command line editing running; how to enable it?
Hey, I have a question, can anyone tell me what Im doing wrong here 206.189.230.208:8000 I just tried to install django and I DID allow my server IP address in the settings.py file. I was following a tutorial from DO located here digitalocean.com/community/tutorials/…
@JonClements yeah, I guess I'm not invested in that kind of approach. But I suppose it's just lack of familiarity with what you posted; I imagine it would be the same for people new to numpy seeing some of the code that gets written
@IşıkKaplan Unless you two already had a discussion about it previously, I don't think he'd appreciate you directly addressing the question to him. Kindly put your question openly in the chat so that anyone else present can address the same (if they can / are willing)
I was just wondering why doesn't flask just put the request inside the view functions when it calls them
Like django does for instance
When you think about it, even if you don't use the request variable, there is a request happening a user asks for something and you put the request to some process and return a webpage
Couldn't find anything online about why in flask it just is a global variable
I don't think "global object" is a coherent concept because "global" is a quality of the name resolution system and variables have names but objects don't
> Certain objects in Flask are global objects, but not of the usual kind. These objects are actually proxies to objects that are local to a specific context.
"But Kevin, if even the official docs use those terms as if they're interchangeable, on what authority do you assert otherwise? Aren't you just making up definitions wholecloth? Why should we listen to your terminology headcanons?" That's the trick, dear reader. Never listen to anybody on the Internet for any reason.
I would assume most of us are working and therefore really don't have the time for Kaggle contests but there was a note about "ways new users can contribute" to room 6 so if you draft something (a case for a room 6 team) it might be a good start @roganjosh
meta is vitriolic and downvotes fly around everywhere, it seems reasonable that someone could accrue a lot of experience on main without ever having reason to wade into the swamp that is meta ..
What Wim said. OTOH, I assume many long-term main-site users would look at stuff in the Hot Meta list from time to time. So they should have some awareness of meta before they make their first post there.
I'm not convinced by the wavey hand thingy... seems like singling out users for no real reason... I can kind of understand why it's been done... but... umm.... I'm pretty much against it right now...
Does a "password strength" indicator in a UI suggest you were going to use a weak password, and thus insult you? No, it's just adding a little bit of extra context.
Some newbies will like it being made obvious that they're new, but some won't. For the ones that do, I guess it's better than them adding fluff to their post announcing that they're new, which plenty of newbies do. OTOH, I expect it will make shy newbies feel uncomfortable.
@roganjosh Oh. The ones I was thinking of are .js and they validate as you're typing. Like you type "hun" and it's already red telling you your password is weak, then "hunter2" and it's changed to yellow ..
As I said on SO Meta, the regulars who care about giving newbies a little extra help don't need to see a "new contributor" banner: they can tell from the OP's behaviour and low rep. And it only takes a moment to check the profile page if you want further info.
And the regulars who don't care are just as likely to see the "new contributor" banner and decide to simply skip the question since newbies can be a pain to deal with, and they can't upvote.
I think the reminder to "be nice" is helpful. I know I can use the reminder to phrase my comments for clarification in a nicer way and avoid the snark and put-downs.
@PM2Ring Also not sure how it deals with deleted posts... I wonder depending how it works it might leak the fact they have something deleted... (even if no one can see it... but...)
ahh... think I remember reading that... might have to see if I can't grab he who must not be named in the blue room for a moment and clarify (just in case something about it isn't meant to be public...)
and more importantly getting it with the uncompromising attitude of only answering the obscure sqlalchemy questions that mostly just get tank you as the only response.
I should remember to use reversed more often, instead of extended slicing. OTOH, I guess top[::-1] is a little faster if top is small, even though it does create an extra list.
hey guys does anyone know offhand how to use argparse to do --option or --option=value or if its not used at all to just be None or False (like store_true ... but allow a user value)
An inexperienced developer writes code that takes an experienced developer to maintain. An experienced developer writes code that an inexperienced developer can maintain.
I agree, and the more -fu you know the better choices you can make. However, I'd definitely claim that there can be too much when it doesn't improve performance or readability.
oh I'm not worried about that - I don't find either approach more readable than t'other... just find it curious how extended unpacking times compared to append a list to a list...
ie if its not present i want one default value(False), if its specified without a value i want a different default value(True), and if its specified as --option=Hello i get Hello
its an --output that generates typescript ... if not specified it runs a websocket server ... if specified it outputs to stdout, if specified with a path it outputs to a file
@PM2Ring since extend mutates the original list - there's probably a better way of timeit I'm not aware of apart from a naive shallow copy it each time...
ie if its not present i want one default value(False), if its specified without a value i want a different default value(True), and if its specified as --option=Hello i get Hello
hey guys does anyone know offhand how to use argparse to do --option or --option=value or if its not used at all to just be None or False (like store_true ... but allow a user value)
OTOH, when you do need to modify the original list, mydata.extend(stuff) has an advantage over mydata += stuff in that you can call it inside a function on a global mydata. OTOOH, maybe you shouldn't be doing that anyway. ;)
although that's probably not a fair test either and it's currently doing some ETL stuff... so ummm... it's all so mostly close anyway it doesn't matter...
before you do... it might also be viable to leave it to the csv writer... using something like: csvout = csv.DictWriter(file_like_obj, fieldnames=list(range(8)) then just use csvout.writerow(dict(enumerate(mydata))...
then you get the added bonus of getting an exception if there's more than 8 columns...