« first day (1469 days earlier)      last day (3473 days later) » 

DSM
3:01 PM
Cabbage, all.
 
cbg @DSM :-)
 
@thefourtheye Sorry, went away to eat :P
 
cbg all
 
user559633
cbg :)
 
Oh yam it... looks like I'm living off £20 cash for the weekend
 
3:12 PM
I won't ask stupid or repeated questions :0
 
@JonClements eh?
 
brother was supposed to drop my wallet off, and err, forgot... he's now in Dorset...
ffs
 
>>> page = urllib3.urlopen(url)
Traceback (most recent call last):
  File "<pyshell#13>", line 1, in <module>
    page = urllib3.urlopen(url)
AttributeError: 'module' object has no attribute 'urlopen'
 
DSM
.. and how did your wallet wind up in his possession? :-)
 
I'm still confused as to how your brother can in possession of your wallet.
 
3:14 PM
@DSM a few too many drinkies at his place the other night
 
i'm running python 3.
 
nice observation guys :) @DSM @GamesBrainiac
 
@JonClements Jon: Hey bro, if you can take a 'nother shot, I'll giva ya me damn wallet!
@JonClements Bro: takes another shot
@JonClements Bro: Hand it over u little puppy! Muhahahahahaha
 
:D
 
@DSM it wouldn't be too bad if he'd not left the wallet at his place, because he'd be able to read me the card number and CVC so I could do some stuff online.
so I can't login to online banking to pay invoices, bills or my credit card
 
3:16 PM
I still can't stop laughing. Now, the second question, where are you getting your twenties from?
 
Break into his house. He's your brother, he'll forgive you.
 
@Zero I like that plan... retrieving my own property seems a legit reason if anyone stops me
"Well... you see officer..."
 
what is in the human nature that makes us "believers"? I mean, look at the technology: even the most educated ones become believers: Mac vs Others, Linux vs Others, C vs C++, Python vs JavaScript, Object Oriented vs Functional Approach -- and the list goes on.. We follow technologies, and companies and people from the industry as they were Gods
3
 
DSM
I always keep emergency cash around, just in case. And in multiple currencies. You know, just in case..
 
I'm very curious why is that? Why do we need something "to follow" and "to argue about"?
 
3:17 PM
@Games I normally keep some lose change/couple of notes about the house just in case
 
@DSM Have you ever had military training? Just curious.
 
@DSM ahh that's a good point... I've got some EUR and USD somewhere...
 
@PeterVaro And your point is ?
 
cost me about £20 to get to a bank to get 'em changed though... so really not worth it
 
@d-coder I absolutely have no point here -- I'm only asking
 
3:19 PM
@JonClements Don't you have your cheque book anywhere? You can cash in your own cheque.
 
I want to know the answer to "Why?"
 
@Games nope - haven't needed/wanted a cheque book in years... just use cards/bank transfers
 
DSM
@Games: nope. Used to go to a pub frequented by cadets, because I had a crush on a young prof there and she liked it, but that's the closest and I'm pretty sure it doesn't count..
 
Idk
 
I had a cheque book for about 8 years, and used it twice... besides, they're looking to phase out cheques here in 2018 or something - no one takes them anymore, so they're useless... and if you've got your card with you, you take cash out the bank that way (or just use a cash point - or just pay by card)
 
3:20 PM
@Jon your bank will most likely let you withdraw money at a branch on production of ID ... I know my UK bank does that.
Of course, if all your ID is in your wallet ...
Got a passport?
 
@DSM Going out of a tangent here, but if she liked it, and you're still doing it. Does that mean that she liked you back? Just curious :P
 
@Zero my DL is in my wallet, my passport is having the photo and address changed
 
Anyone else ever seen this? User has a Python 2.7.6 binary with a 2.7.7 or 2.7.8 standard lib.
 
Okay, I'll shuttup now
 
On Windows; perhaps an aborted Python upgrade?
 
3:22 PM
Who would "abort" a Python - that's just evil!
Pythons have rights too!
 
LOL
 
@Zero funny story, I once had a card run out of date and the new one was sent to my parents address so I had no way of getting money out, I went to the branch and they gave me money out of my account, I never produced any ID or anything, just took the old card in and said "Can I has money?". Didn't even enter my PIN.
 
Thats a star studded discussion @MartijnPieters. :P
 
/me prepares the right for life for Python picket
 
Python aborted by eating a croc.
 
DSM
3:23 PM
I can't tell what's eating what there. My brain won't resolve the image.
 
@MartijnPieters You've been waiting for an opportunity to show this one again, haven't ya? :P
 
@Ffisegydd I've had something similar... one of my bank accounts got "frozen" - supposedly to do with some new law that had come in, and I hadn't produced a new form of ID within time or something...
 
You people are funny :)
 
So... stroll down the road one morning, and cash machine eats my card
 
3:24 PM
@MartijnPieters A star for your troubles :P
 
This one succeeded:
 
DSM
Ooh, that happened to me two months ago.
 
@DSM What, being eaten by a gator?
 
@DSM you ate a croc and it get out somehow?
 
I had no money, and no means to get any (ie, buy train tickets/pay the rent/etc...) so I had to phone work, and explain that I might not be able to go in the next day...
 
3:24 PM
@DSM How did you get out of the Python?!
 
DSM
Aaargh
 
@PeterVaro We have similar questions you and I :P
 
@GamesBrainiac :D
 
This was on pay day, so I'd just been paid my salary, and it hadn't bounced, it was just stuck in the frozen account
anyway, talked with the FD, he did a same day transfer to my step-dad's account... (very trusting)
 
@JonClements For a puppy, you have a complicated life man.
 
3:26 PM
But long story short, walked into the branch with no ID, explained to them I wasn't very happy, and nor was my employer, they'd quite appreciate their money back... they then printed me a check
 
is there any android app for SO ?
 
I just called a puppy a man.
 
@MartijnPieters 5 hours of battle.. these animals are amazing.. although I'm sure, if I had to fight for my life, I would do anything until I collapse of tiredness or defeated by my enemy
 
There's something wrong with me :P
 
DSM
@Martijn: I think once on a Mac the system install and "my" install weren't playing nicely together and so there wound up being a binary/library mismatch.
 
3:27 PM
So walked out with a 6k cheque... and the reason they'd frozen the account in the first place was that I hadn't provided updated ID... yep, they issued that cheque with NO ID at all... sighs
 
I do ask really dumb questions don't I ?
 
@d-coder what a dumb question.
 
I have question ban
 
avi
I was reading this, so for following code:
 
Need to get many right answers to get rid of it!
 
avi
3:31 PM
def foo(x=[]):
    x.append(1)
    return x


>>> foo()
>>> foo()
author says, it happens cos `x=[]` will be evaluated only once. Why so? In his words:

This happens because the argument to the function (the empty list) is only evaluated once, during the definition of the foo function, and given that it is a list, we know it can be modified. Hence, on every call, we modify that list, appending 1 to it.

Why x=[] will not be evaluated at every function call?
 
nope that wasn't the link I was looking for.. :)
 
@d-coder don't try to force it, you should also attempt to fix your old questions.
@avi because it's evaluated at definition time.
 
fix in the sense ?
 
@avi Because the default is stored with the function object.
 
@d-coder edit them to make them decent questions if you can.
 
3:33 PM
Yeah! It wouldn't get any better than it is
 
foo is an object too. With a foo.__defaults__ attribute, where your list object is referenced.
 
avi
ohh damn
I forgot its a default
now it makes sense
silly me
 
I have very little experience in python
 
avi
thanks @Ffisegydd & @MartijnPieters (:
 
DSM
I never know how to handle people who are asking timeit questions about initialization code. Sometimes the initialization could be faster, I admit, but nine times out of ten that time is dwarfed by the time it takes to actually do anything with the object.
 
3:37 PM
how do i use urlopen function in python 3?
>>> import urllib3.request
>>> page = urllib3.request.urlopen(url)
Traceback (most recent call last):
  File "<pyshell#28>", line 1, in <module>
    page = urllib3.request.urlopen(url)
AttributeError: 'module' object has no attribute 'urlopen'
 
urllib3 is not the same as python3 urllib
from urllib.request import urlopen
 
What the heck is the OP trying to do in this one? (I see @Martijn's commented)
 
@davidism Thanks.. :-)
 
The key phrase from that question is "From what I learned so far" and the answer is "Keep reading"
 
@davidism LOL :)
 
3:41 PM
He's probably trying to do one of the "bonus" exercises from Learn Python the Hard Way, without actually knowing what to do
 
@Martijn ahh... the indentation was throwing me off there... :)
@davidism the "Room" one does pop up quite a bit :)
 
book suggest this
page = urllib2.urlopen(url)
 
Text adventures are one of those "looks like a newbie could write it, but they really can't" projects
 
yeah, I really dislike that tutorial for encouraging people to try to do something complicated without the correct tools
 
so i used the above..
 
3:43 PM
and if they just kept reading the tutorial instead of stopping to do the exercise, they'd learn what they need
 
If you want to have any kind of state (does the player have the red key? Did they fight the troll yet? What room were they in before this one?) then chaining a bunch of functions together won't cut it
 
Always creepy...
My client is looking for outstanding Python engineers to join their ever rapidly growing organisation. The client is a Data solutions provider who is working very closely with a reputable solutions provider. I am getting in touch with you as I have come across your Python contributions on GitHub and StackOverflow.
 
avi
nice
ha ha :P
 
What's a "solutions provider"? That could be anything. McDonald's is a hunger solutions provider.
 
avi
invite him over chat here
 
3:45 PM
The last recruiter to come in here, didn't have enough reputation to speak.
 
DSM
What were they recruiting for?
 
@DSM we don't know - they couldn't tell us! Do you actually read? :)
 
It was in their user name, but I've forgotten what it was. Nothing famous.
@JonClements DSM does not have enough reputation to read yet.
He's doing surprisingly well, considering.
 
Maybe it's some kind of natural precognitive ability... he doesn't need to be able to read because he knows already what to write a reply to...
 
I don't know why I'm telling you this, since neither of us have read privileges either. Hopefully this looks like a coherent conversation to somebody.
 
3:48 PM
Similar, but not quite the same, as the Dr Who "Blink" episode where The Doctor is reading off the transcript that's currently being written...
 
I love a good ontological paradox :-)
 
DSM
:-P When we have strangers come in I usually check their user page. For all I knew it said "Hi, I work for Werner! Come develop ladder-based programs with us!"
 
Yeah, that's pretty much what his profile said.
Ah, here it is, although he changed his name.
NALCO. Never heard of it.
and here is our one-sided conversation.
 
Right, the FrankenPython issue was probably due to an Enthought Python + normal distribution of Python getting well mixed up.
 
DSM
How seasonal!
 
3:58 PM
^^^ Also seasonal! :)
Or am I suffering from the oct 31 == dec 25 problem again :(
@Zero Nigel Farage must be loving the UK's sudden 1.7 billion bill for the EU :)
 
Everything appears to be working, I will share the link to my Chrome extension tomorrow
 
@JonClements I hadn't heard about that ... just reading up on it now.
 
I can semi-understand that if the UK has received rebates in previous years and we're doing okay we should pay a "fair" share, but I've no idea how they've worked out Italy/Greece
 
and back
 
4:07 PM
cbg @Intrepid
@Zero Cameron's promising he won't pay it... I'll see it when I believe it
 
Isn't it down to this ridiculous recalculation of GDP? That calculates the "gap" in GDP due to the Shadow Economy? Like drugs & prostitution
Don't worry - it's all political. They're trying to drain British political influence again by making us sound like whiners. Cameron was meant to start a discussion on changing how the EU handles immigration
 
Yup... there's rumours of it's a deliberate leak to undermine immigration stuff
 
It's this sort of incessant anti-UK politicising within the EU that's getting to me.
 
@JonClements "I am not paying that bill on 1 December".
 
@JonClements I'd be happy to chuck the rebate if they contributed just as much to the flagging UK manufacturing industry as they do the French agriculture industry? Non?
 
4:12 PM
According to this the data comes from the member states themselves - but yeah, any change that ends up with Germany paying less and Greece paying more looks a bit odd to say the least.
 
Don't get me wrong - I very much agree that we should pay our way. This all smells a bit like a dirty yamfest to me
 
Well... they're just forcing Euroscepticism... Cameron might not stand a chance of re-negotiating, but they should know he doesn't really want to leave the EU... and there's an increasingly powerful party that wants to pull the drawbridge up completely...
Farage must be laughing his head off
 
@Kevin it is possible, that I asked this before, but have you seen The Man from Earth?
 
DSM
Good fences make good neighbours. #realtruth
 
@JonClements No doubt. Chuck this in with the the UK Financial services tax, CAP and fishing policies; and it really, really starts to look like the EU just isn't for the UK...
 
4:16 PM
@DSM yeah... probably is if you set the amperage too high... it means dead neighbours :(
 
Much to my disgust
 
Arghghgh.... forgot to buy minced beef... popping to the shops with my bag of pound coins... brb
 
@PeterVaro No, but looks good from the imdb blurb.
 
Does @JonClements get paid by his clients with £ coins or something?
 
@IntrepidBrit The bag of coins is to smack the butcher with if he refuses to hand over the mince.
 
DSM
4:21 PM
@IntrepidBrit: scroll up and search for "brother". :-)
 
how is blist? any chance this will eventually end up in the standard library?
 
@ZeroPiraeus He's a dog, couldn't he just run off with the sausages?
 
DSM
@Faheem: blist is pretty cool. The chances of it joining the stdlib are remote.
 
@IntrepidBrit how's that going to help me making a spag bog?
 
@DSM bummer
i think a sorted list is a handy thing. the alternatives are annoying.
 
4:23 PM
@JonClements What the heck is spag bog? Is that where you throw all your mince down a hole and widdle on it?
 
yes... that or spaghetti bolognese
bbiab
 
@Kevin one of the 10/10 movies I have on my rated lists
so yes, it definitely worth watching.
 
Spag Bog is the mighty barbarian king in my epic novel "Privileged Space Axe".
He seeks the space axe, so that he may see his enemies driven before him, and hear the lamentations of their women.
 
is this novel going to be a comedy one?
 
Like: "'ere? Why did you kill our Bob? Whats 'ee done to you? Mr Bog, you're going to feel the back of my hand, and make no mistake"
 
4:28 PM
because Spag Bog is like a name from the hitchhiker's guide to the galaxy
 
If I could write like Douglas Adams, I'd never stop :-)
 
@Kevin Mr. Bog doesn't sound very nice.
 
His enemies and their women have it coming.
 
@Kevin we'd never let you stop.
please say you didn't enjoy the movie!
the whole thing was so fantastic in the book.. but as a film.. what a shame..
 
I only liked the narrated guide parts, which were directly copy-pasted from the book
 
4:32 PM
I thought the design of Marvin was good.
 
Bah! don't talk to me about design. I've had a pain in all the diodes down my left side, for the last 12 billion years... grumble grumble
 
@ZeroPiraeus umm..fair enough, I probably can accept that.
 
@PeterVaro what movie?
 
hitchhiker's guide to the galaxy
 
Sometimes I fancy the idea of becoming a writer, but I've never voluntarily written anything more than like 2,000 words.
 
4:41 PM
@PeterVaro the 2005 one?
 
Maybe I could sell fifty word stories for a penny apiece.
 
A problem with the service the OP is trying to call, not Python..
 
"Nevermind... the service we're using is actually down apparently, and no one noticed." Yep, that's a "can no longer be reproduced" if I've ever seen one.
 
@FaheemMitha is there a newer one?
 
@PeterVaro Dunno.
 
4:42 PM
There was a TV series.
And a radio series, and a video game, and a commemorative towel.
 
Are autotools used for python regularly? There seems to be some support for C/C++ modules.
And people seem generally despising about setuptools/distutils.
 
Dunno. I prefer to hoard my code rather than distribute it, so I have no need for such things.
 
@Kevin Interesting.
 
5:09 PM
Lately I have been "playing" Wall Destroyer, a "game" where you watch numbers go up.
After two days of wall destruction, I've nearly accumulated enough wall destruction points to purchase an upgrade which will double the speed of my wall destruction! This is very exciting.
 
DSM
But if you close your eyes / does it almost feel like / nothing changed at all?
 
:-)
Nice reference. That's actually quite accurate.
@PeterVaro It has been said that Randall Munroe is a metaprogrammer. Instead of writing programs, he makes comics about hypothetical programs, which his readers then implement for him.
 
I have no idea what he is, except that he is one of the true geniuses of our age
;)
anyway, I gotta run now, be back laters
rhubarb(~)
 
5:34 PM
and... back... what'd I miss... highly technical programming discussions?
wb d-coder
 
cbg :)
@JonClements How is life treating you ?
 
@JonClements i asked about autotools use with python.
 
@d-coder plenty of walkies - plenty of scooby snacks... and lots of trees to pee on... life's not bad :)
 
Ha! Likewise :P
 
Hi, First time here. Is this c.room 'question free'?
 
5:42 PM
@hernanavella sorry - don''t quite get you?
 
@Jon I'm struggling with a question, and I think someone I interacted with that is in here can help me....but I don't know if it's appropriate to contact and ask, it's kind of major stalking.....
 
Questions are allowed in this room, although pinging a specific user is not encouraged.
although it might be OK if they were helping you before.
 
@hernanavella is it a C question?
 
I'm thinking the "c.room" thing was a typo
 
So, nobody using autotools with C/C++ modules? How about cmake?
 
@Jon It's python. The question is here: stackoverflow.com/questions/26541059/…
@Kevin c.room was supposed to be chat room...failed
 
Suppose it avoids wearing the keyboard out prematurely :)
either that or you're paying per key press?
 
The solution I'm thinking was inspired by an answer to a different question from @DSM.
 
Well, I am not familiar with these EdChum and Ajean users. Since they haven't been in this room lately, they won't get notifications for any @ messages you try to send them here.
 
And I'm not remarkably au fait with pandas... so I can't help you with the answer... I'd end up having to go through the docs which I'm afraid I don't fancy doing tonight :)
 
5:50 PM
I know EdChum but he's not a regular here
 
@Kevin Is @DSM who I thought could solved the puzzle....
 
I see. If he didn't comment on your post specifically, then it's definitely more on the stalkerish side
 
Let me go get my laptop @hernanavella
 
@Ffisegydd Thanks!
 
@hernanavella you thank him now... wait until you see the invoice :(
 
5:55 PM
@Jon It's all about expectations, I thought I was going to be kicked out instantaneously.
 
I don't think we've kicked anyone yet :-)
 
@hernanavella why would you think that? We're the most friendly chatroom on SO by far :p
 
Mind you, kicking was completely impossible up until like a week ago, so we haven't had much opportunity...
 
@JonClements Avocado!
 
@JonClements The problem with our international community is, there's always a chance that at least one of us hasn't had their coffee yet.
 
5:58 PM
@hernanavella we have some rules we like to be followed for the benefit of everyone here but apart from that - we're quite relaxed
 
Even though it's 2 PM in my time zone, it's dawn in New Zealand.
 
Is there ever a bad time for coffee?
 
Yes: when you've just fallen off a cliff. But that's a bad time for a lot of things.
 
Not sure if this is a reasonably okay question, or just bad: stackoverflow.com/questions/26553599/…
@Kevin well, if you were half asleep because you hadn't had your coffee and didn't notice it... that's just darwinism I guess...
 
@JonClements regarding the question I think it needs clarity
 
6:06 PM
?
 
How to post a link ?
 
@d-coder regarding your comment about clarity, I think it needs clarity
 
ooo, I like corn3lius' answer
 
The question with while loop and else
Sorry for being vague
 
I get really worried when students come online and ask questions like that... I don't believe that all of them are just bunking off/not paying attention in class... queue moan about teaching programming
 
6:11 PM
It tough to answer the wrong questions :)
 
OP says, "Im kind of delirious sorry". Somehow I'm not inclined to answer this guy's question. How do I know that he'll accept my post, and not the post of the purple elephant he's hallucinating?
He should take a nap and try again later.
 
Gone.
 
DSM
Who's making all this racket? Get off my lawn!
 
6:16 PM
Cabbage!
 
paradoxically too broad and too narrow. Any good answer would be quite large; but it will only ever help the OP and no one else.
 
CBG
 
Writing a script to find the shortest poem on this site, because I'm too lazy to look through them.
 
@JonClements You there ?
 
@d-coder How's your day going?
 
6:21 PM
Boring!
@Iplodman How is your day ?
 
@d-coder Sorry to hear.
@d-coder We just broke up from school >:)
So good, knowing that I have a solid week of coding ahead of me (almost).
 
Good!
 
@d-coder errr... nope? :)
 
I was wondering when and how to put a question on hold ?
 
@d-coder you need 3,000 rep to vote to close
 
6:27 PM
@Ffisegydd Oh! Okay! Long way to go
 
bbias... just gonna serve up my chilli
 
You could get that much rep today if you try really, really, really, really hard.
 
@Kevin and use a time machine?
 
@Kevin What's the limit per day, then?
 
@Ffisegydd What do you think?
 
6:28 PM
@hernanavella sorry I had a quick look at it but was unable to come to a conclusion. If I get time later and solve it I'll post an answer.
 
Of course there's a rep cap, but I'm assuming if you try really*4 hard, then users will shower you with reputation bounties, which aren't limited
 
DSM
Rep cap doesn't apply to accepted answers, I think.
 
Just get out there and hustle. Nothing to it.
 
@Ffisegydd np, thx.
 
@Kevin Are you being serious ?
 
6:32 PM
@d-coder Kevin can't not be serious, he's physically incapable of it.
 
Half serious. It is, indeed, physically possible to make 2,755 rep in one day. Just because no one has ever done it, doesn't mean that you can't do it.
 
I'll be half dead by then.
But with all your help I can do it! :D
 
user559633
 
That's a small human.
 
user559633
and a large dog
 
6:38 PM
LOL
I hate this question ban :(
Malevolent Typist For Life - tristan
 
@DSM that's quite a lot of accepted answers though
 
DSM
@Jon: that's what a heaven's for.
 
What's their internet speed like?
 
DSM
Pretty good. Light speed is no longer a limiting factor.
 
@DSM sounds good
Shooting at a school in the US again
 
6:51 PM
:-(
 
@JonClements You invented salad language ?
 
@d-coder nah... they just put that there so I took the blame
 
Oh sad :(
 
phew that was easier than I'd have hoped
 
sad @ shooting I mean
 
6:53 PM
yeah - the shooting definitely isn't me
 
it says it was created and introduced by you
 
@d-coder nah... that'd just be a crazy thing to do - I'm perfectly sane.
 
You are! Aren't you ?
Cool! :)
Rhubarb
 
Wow... at this rate I better start playing poker again :)
 
Poker is hard.
I played a little at my friend's birthday party, but I kept getting cards that didn't form anything good.
How do I get more better cards?
 
DSM
7:03 PM
Add cards more cards
(I love callbacks, but unless everyone's devotedly studying the transcripts of what happens when they're not around a lot of them might not be picked up..)
 
I know that feeling. Think of it as an in-joke for an audience of one :-)
 
@DSM I don't read what you type when I'm here... you expect me to look for your stuff in the transcripts? :p
 
user559633
@d-coder yes, i'm the MTFL
 
Had dinner... gonna chill out for a bit... rbrb for now fellas
 
Bye!
 
7:26 PM
blah... programme I wanted to see isn't on until 9:30
I see there's yet another learn python the hard way question
 
DSM
I really dislike LPTHW.
 
I've looked at a few of the problems... and I'm just: "What is he trying to do here...?"
seemed very: "You can do this, but don't, do this... now, for extra credit... work out how to do..."
 
DSM
The questions asked by people studying it always seem to me to be the wrong ones. Now it's possible they're unrepresentative, but if they are a fair sample of the issues people are having, then I don't think it works very well.
 
I'd like to think I'm a reasonable enough Python programmer, but reading his stuff... I'm just shaking my head thinking... why Zed, WHY!!!!
Mind you... Zed is a much cooler name than Jon... so he wins I guess :)
 
First two commenters seem to have missed the point here. The lesson isn't "put your classes in a strict order", it's "put your initialization code in __init__"
Strict class ordering is for statically typed languages. Anarchy forever!!!
 
7:32 PM
LOL
Ahhh... "Would I Lie To You?" - got times mixed up... woo hoo... luv ya and leave ya
 
@JonClements Why Zed, why? What did he write?
 
DSM
Can't remember: are we closing missing ) questions as typos?
 
I do, but only if the OP confirms that it was their only problem
Usually in the form of "d'oh, of course, it's working now, thanks" etc etc
The complete silence emanating from this post is making me rethink my policy.
Doesn't usually take ten minutes to say "yeah, that's it" or "no, it's something else"
 
DSM
7:48 PM
That was the one which sparked the question.
 
Speak of the devil:
Ahhhh that's embarrassing. But thank you. — Unnarrow 20 secs ago
 
DSM
And it seems like..
yeah
 
I'm cautious, so I like to wait. But I would understand if someone cast a typo vote if they were confident about it.
 
DSM
It'd probably be too much trouble, but if you have a code which would be syntactically valid if a line which has a parenthesis asymmetry had ) inserted at the end, it'd be nice to draw attention to the issue.
 
Add that to the pile along with `AttributeErrors whose culprit has a tiny levenshtein distance to an actual attribute, should suggest the real thing after the stack trace"
I wouldn't mind if every SyntaxError said "...on line 42 (or maybe line 41)"
 
DSM
7:53 PM
Ah, where 41 is the start of the line Python thinks it's on.
I'll buy that.
 
Just something to indicate to the user that the error is in the general area
and not definitely for sure on the line reported
Seems like users keep getting hung up on this mindset, "I read this one specific line over and over and I know it's totally fine!" and don't consider reading the line's neighbors too
 
DSM
What always surprises me a little is that even if I didn't know anything about a language, I'd just cut and add stuff back until I localized it. Maybe that's only obvious after you've seen it, but the idea of separating things to find something is pretty common in the real world too.
 
It's an acquired skill, I think.
Newbies might think "finding the bug in these thousand lines will take a thousand iterations!" When it really takes, like, 10. Depends on whether your code-cutting technique is O(N) or O(log(N)).
 

« first day (1469 days earlier)      last day (3473 days later) »