« first day (1445 days earlier)      last day (3494 days later) » 

1:24 AM
Hi
 
1:34 AM
Hi
 
2:28 AM
Hello All
 
cbg @Fledgling
 
@JonClements How r u?
 
Okay thanks - just checking on a couple of bits - yourself?
 
Doing good :)
 
Hey guys, anyone have any experience using socket proxies with smtplib?
 
2:33 AM
@JonClements I am intermediate python developer , can you please suggest me some book or some resources to take me from intermediate to expert. Please.
 
@Ryan none whatsoever I'm afraid
@Fledgling find an area you're interested and go from there... check out wiki.python.org/moin/PythonBooks for a start
 
@JonClements thanks... I'll keep looking
 
@JonClements Thanks :)
 
3:27 AM
@Zero congrats on 10k :)
 
:-D
Ta!
Just requested further info from OP btw ...
 
@Zero it's always interesting that such a simple Q gets interpreted two different ways :)
 
Specifying is hard ;-)
 
@Zero ahh... good spot on naming... wasn't paying attention to that :)
 
So now I just have to sit tight until the appropriate query runs and I get my awesome new powers ... :-)
 
3:37 AM
Should work immediately...
@Zero try going to stackoverflow.com/tools
 
Ah, yes, got that ... nothing in my inbox yet though (and didn't see anything extra in the review queues). Time to play ...
 
So, if that works, you can see deleted posts now then
 
That is Epic :-D
 
@Zero I sometimes wonder if it's sad to keep an entire bookmark folder of them, but gems like that are worth it :)
 
Not only is the bookmark folder a good idea, but thanks to the wonder of CC licensing, it could be another in the series of coffeetable books ;-)
 
3:42 AM
That's a good point :)
Not quite as good, but made me laugh at the time: stackoverflow.com/questions/17703702/…
 
I like SLaks comment :-)
So what happens with deleted users? Are they now visible too, or is that a 20K thing?
 
Cbg!
 
cbg @Johnston
@Zero if a user is deleted, they have no link anymore... only mods can see those
 
When you get ImportError: cannot import name assets is it 100% a circular dependency import if I can clearly see that assets is available for import?
 
Ah, right.
 
3:49 AM
at 20k you get faster delete votes on Qs and can delete vote answers and edit the tag wikis without approval... that's about it
 
Also @JonClements Would you say a majority of your points are from one thing in particular? What was your cash cow?
 
Oh, it's 20K for tag wikis too, huh? Was wondering about that ... given the very low number of Research Assistant badges I'm assuming only suggested » approved edits count, and was mildly siappointed that it looked like I wouldn't get there.
@Johnston Since @Jon is probably too modest:
108
A: How can I check that a list has one and only one truthy value?

Jon ClementsOne that doesn't require imports: def single_true(iterable): i = iter(iterable) return any(i) and not any(i) Alternatively, perhaps a more readable version: def single_true(iterable): iterator = iter(iterable) has_true = any(iterator) # consume from "i" until first true or it'...

Awesome answer :-)
 
@Zero I'd quite like to have made the one I saw today that had 6000 upvotes
 
Hello
 
Actually @Johnston ... like a few high-rep users, it's a great learning experience browsing some of @Jon's high-scoring answers.
 
3:54 AM
i'm trying to setup a database connection and keep getting this error: django.core.exceptions.ImproperlyConfigured: Requested setting DATABASES, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
 
@ZeroPiraeus Probably could compile a nice book from that stuff.
It's really meaty
 
any ideas?
 
@JoeSaad I don't do Django sorry
Sounds like your database is improperly configured though
 
@JoeSaad Looks like a fairly self-explanatory error message ... tried googling it?
 
i did
off course but i couldn't get any answer that would solve it
 
3:57 AM
I would seek out more in-depth search results, and see if there's something you've misunderstood about how database configuration works, rather than looking for a quick fix.
 
@ZeroPiraeus this one is awesome. I mean my brain exploded when I read that. stackoverflow.com/questions/16082954/…
 
i was just following the exact steps from the djangobook.com
 
@JoeSaad Maybe a search like "django book chapter [X] ImproperlyConfigured" then? If there's an error in the book, chances are others have stumbled across it.
 
@Zero ok, thanks! I'll search on that too
 
@Zero sadly - most of my favourites are the lower scoring ones :(
 
4:08 AM
Yeah, it's a little frustrating sometimes that the throwaway stuff gets the votes, and the answer you poured your soul into gets crickets ...
The one that got me within spitting distance of 10K tonight was stackoverflow.com/a/26111613/1014938 ... which isn't a bad answer, but it's fluff, and according to its score its jumped straight into my top ten answers.
 
@Zero I quite liked the stuff in this one - but oh well...
@Zero wow... interesting self answer :)
 
Yeah ...
And ... yeah, that is rather nice, but you can see why it didn't get a lot of instavotes - you need to know a fair bit, and read it carefully.
 
@Zero you could also suggest [sum(items) for items in izip_longest(a, b, c, d, fillvalue=0)] to handle arbitrary length inputs
 
I thought about generalising it, but tbh OP clearly only wanted to solve their immediate problem, and if I'm honest I was rep whoring to try and make 10K ;-)
Was surprised how well it did though.
 
And now you have - we live in fear!
 
4:16 AM
 
Haha... classic :)
Umm.... just had an email from Amazon... if I buy a £20 gift card (to gift or spend later), I get £5 Amazon credit
So... that means, if I want to spend over £20, then buy myself a gift voucher?
 
There's something about cheesy, on-the-nose songs ... I worked at a place that was going to get closed by its parent company once, so for two months we were going into work doing not much while the redundancy exercise trundled along ... every morning in the dev office we played "The Final Countdown" loud enough to annoy the guys in Sales who had convinced themselves the company could be saved ...
 
That's just evil genius :)
 
@JonClements That would seem like a plan - presumably it's a once-only deal?
If not, ebay beckons ... ;-)
 
Enjoy this EXCLUSIVE e-mail offer: Just purchase at least £20 in Amazon.co.uk Gift Cards on Amazon.co.uk by 18 October, 2014, as a gift or to spend later, and we'll e-mail you a £5 promotional code by 24 October, 2014, to spend on products sold by Amazon on Amazon.co.uk until 22 November, 2014.
 
4:23 AM
Hmm ... so they won't send the credit until after the offer expires. Bit of a gamble to try repeats then..
 
Receive £5 off a future Amazon.co.uk retail order when you purchase at least £20 in Amazon.co.uk Gift Cards ("GCs") on Amazon.co.uk by 18 October, 2014 ("Offer"). Purchases must be for at least £20 in combined GC value. Offer valid on GCs purchased on Amazon.co.uk between 30 September, 2014, and 18 October, 2014, 11:59PM (BST) and, in the case of e-mail GCs scheduled in advance, delivered before 19 October, 2014.
For qualifying purchases, a promotional code of £5 ("Promo Code") will be sent to the e-mail address associated with the Amazon.co.uk account used to purchase the GCs by 24 October
 
Otherwise ... selenium and one thousand £20 giftcards, to be sold for £19 on ebay - £4K instant profit!
Dammit.
 
Umm... so... only use I can see for that is spending £20 + £4 or whatever for delivery... then get a £5 to write off the delivery cost from last time
bit sneaky of 'em
 
Change of subject: Are you planning to run for diamond again next time @Jon? Third time's the charm etc...
 
I'm debating it... we'll see how busy I am and who else runs :)
 
4:38 AM
We could put some collaborative effort into an unbeatable nomination/manifesto on the sopython wiki ...
 
Start a campaign team? Tour the world kissing babies and stuff?
 
@ZeroPiraeus I found the solution.. it's actually posted in the same book
feel ashamed i didn't reach that place in the page before i started testing..
they're just suggesting using this python manage.py shell instead python
 
@JoeSaad Heheheh ... happens to the best of us ...
 
thanks :) feel it is a good way to end the day now..
have a good one everyone!
 
@JonClements Exactly - campaign poster gifs in Dark Council user profiles, the whole bit.
"VOTE JON (or the puppy gets it)"
@JonClements Although Stewie might object to the baby-kissing ...
rbrb @Joe :-)
 
4:46 AM
@Zero bah... he wouldn't get any anyway... betraying me for pivot_table sighs
@Zero got very confused last night... had a mate text me saying "This is me, this is my new number"... I texted back with: "Err... well - are you sure? As it's come up as you anyway"...
 
Auto-imported android/iphone contact details?
 
@Zero yeah... it'd picked it up from facebook... I felt like an idiot trying to make him seem an idiot :)
 
The tech is scarily clever nowadays ... pretty soon it'll be auto-defriending people who say things the AI decided you wouldn't approve of ...
cbg @Martijn :-)
 
Oh lord.. the 6am crontab has launched @Martijn again... :)
Well... done what I got up to do, so back to the basket for a quick snooze before starting again... rbrb for now
 
5:11 AM
rbrb ... think I'll go back to How to Get Away with Murder ...
 
5:54 AM
Y2Jn
 
Q0JH @Antti :-)
 
Oi0p
 
6:37 AM
TWF5YmUgc2hvdWxkIHdyaXRlIGEgY3VzdG9tIHVzZXIgc2NyaXB0IHRvIGNvbnZlcnQgZGlzY3Vzc2lv‌​bnMgdG8vZnJvbSBiYXNlNjQ=
 
TWF5YmUuLi4gYW55d2F5LCBjYmc=
 
spam?
 
@AnttiHaapala did you insert the zero-width space and zero-width non-joiner, or did SO chat do it?
 
@ZeroPiraeus sochat
 
6:43 AM
Ah, guessing it was chat, since it's where the line got broken.
 
Y2Jn @Jerry
 
@Swordy A hint: [base64.b64decode(s) for s in ("Y2Jn", "Q0JH", "bG9s", "Oi0p")]
 
NameError: name 'base64' is not defined
 
@Swordy import base64 :D
@Swordy especially the =, == give out hints ;)
 
6:48 AM
['cbg', 'CBG', 'lol', ':-)']
and wat is twf5y......?
 
Same thing.
 
just put in in the code you just run?
 
useful to be able to recognize that something is base64, or base32 encoded
 
This might be useful to one or two people here ...
 
i did
ohh damn , i forgot to insert ""
 
6:51 AM
> Microsoft has released a compiler package for Python 2.7 to make it easier for people to build and distribute their C extension modules on Windows.
>
> The Microsoft Visual C++ Compiler for Python 2.7 is available from: http://aka.ms/vcpython27
 
@ZeroPiraeus also, it said that nothing works with it anyway :D
 
aSBoYXZlIGEgZG91YnQgQGFudHRpaGFhcGFsYSAsIGJhc2VkIG9uIHhtbA==
 
in 2014 only 1 company dares to do an operating system for which they say it is "great" that you can have a crippled old computer for free.
 
@AnttiHaapala hmm?
 
it is big news that M$ has a free compiler to compile extensions for python...
 
6:54 AM
'eW91IGRpZCBub3QgbWVudGlvbiB3aGljaCB4bWwgdHlwZSBwYXJzaW5nIHNob3VsZCBpIHVzZSB0aGF‌​0IGlzIGJlc3QgZm9yIGV4dHJhY3RpbmcgdGV4dC4u'
 
@Swordy I'm not sure what it says about you that your string starts with aSBo ;-)
 
@AnttiHaapala where's the crippled old computer bit?
 
???
 
An anti-social behaviour order (ASBO) /ˈæzboʊ/ is a civil order made in the United Kingdom against a person who has been shown, on the balance of evidence, to have engaged in anti-social behaviour. The orders, introduced by Prime Minister Tony Blair in 1998, were designed to correct minor incidents that would not ordinarily warrant criminal prosecution. The orders restrict behaviour in some way, by prohibiting a return to a certain area or shop, or by restricting public behaviour such as swearing or drinking alcohol. Many see the ASBO as connected with young delinquents. In July 2010, new Home...
 
*compiler :D
damnit
 
6:55 AM
@ZeroPiraeus :)
@AnttiHaapala oh :)
 
i see..
 
I thought it was a nice IDE?
 
@Swordy SG1tLCBub3cgSSBkbyBub3QgcXVpdGUgdW5kZXJzdGFuZCB3aGF0IGRvIHlvdSBtZWFuLi4uIEkganVz‌​dCBzYWlkIHRoYXQgaXQgaXMgbXVjaCBoYXJkZXIgdG8gZXh0cmFjdCBmcm9tIE9PWE1MIGJjIGl0IGRvZ‌​XMgbm90IHdhbnQgdG8gYmUgc2VtYW50aWMgbWFya3Vw
This package contains the compiler and set of system headers necessary for producing binary wheels for Python 2.7 packages.
 
base64 or something else??
 
ah it was a joke that
 
6:58 AM
anything will do , right?
 
you made an xml file oout of pdf by '<tag>' + base64.b64encode(pdf) + '</tag>'
 
user559633
Morning everyone :)
 
cbg @tristan
 
cbg @tristan :-)
 
morning commander @tristan
 
user559633
6:59 AM
hi hi hi :)
 
user559633
What's on tap for everyone today?
 
water here :)
my taps give me water 24*7*365 ,3 years consecutively and 24*7*366 in the fourth year ..
 
user559633
I meant for work/projects/tasks, but good to know your water is working.
 
;)
 
my taps give drinkable water
but today they'll cut it for 30 mins :(
 
7:19 AM
Decided to go with an official close reason, rather than "... because ugh, screenshot".
 
That's the problem with the windows terminal. Can't even copy text.
 
7:34 AM
@Rawing you can copy text from Windows terminals.
 
really? how?
I don't even know how to SELECT text.
 
@ZeroPiraeus install python2.6 multiprocessing backport to 2.7, ingenious
 
user559633
There's lots of problems with Windows, but copy and pasting text is solved (mostly).
 
yes, you just need to set up the quick editing for every window forever, using regedit
 
user559633
And the asker should pip install easy_install
 
7:38 AM
after that you will only curse the fact that you can only copy rectangles of text.
@tristan no he shouldnt
@tristan see the question again, op should import multiprocessing
 
@Rawing you can insert text in windows command terminal by using the "insert" key
 
user559633
...i was kidding. why would someone pip install easy_install
 
Hmm, I might've confused the windows terminal with the python terminal on windows.
Seems I haven't used Windoze in a while. Thank god.
 
its not terminal, it is console
terminal is useful, console is not :D
 
user559633
7:48 AM
you can copy paste from the python terminal.
 
seriously?
I think I'll just shut up now, then.
Hahaha, I should've read the chatroom rules earlier
Who was the brilliant person who came up with the salad language? xD
 
@Rawing read the faq carefully
 

Salad.

Apr 10 '13 at 9:24, 16 minutes total – 16 messages, 3 users, 0 stars

Bookmarked Apr 10 '13 at 9:41 by Inbar Rose

 
Aye, aye, I know. 'twas a rhetorical question.
 
ah :D
 
8:04 AM
OP's self-answer suggests they don't actually know what a set is.
 
cbg
 
user559633
8:21 AM
sets are what you do at the gym drops mic
 
8:42 AM
Heheheh ... every answer except mine is wrong:
1
A: Python tuple equality

Zero PiraeusIn fact, the result of your comparison is sometimes True and sometimes False, at least in Python >= 3.3. Testing the following code: # compare.py x = tuple(set([1, "a", "b", "c", "z", "f"])) y = tuple(set(["a", "b", "c", "z", "f", 1])) print(x == y) ... a thousand times: $ for x in {1..1000} >...

I've never been entirely clear on the etiquette here: in terms of "is it right?", I should downvote every other answer, but that just feels rude.
 
+1, you might also want to write about PYTHONHASHSEED
 
@thefourtheye added a link in a comment which mentions it ...
 
Cool
 
Is anyone else surprised it's true so many times?
 
@Swordy have you looked at textract.readthedocs.org/en/latest
It might be of interest to you.
As undesireable as it might be, more often than not there is extremely useful information embedded in Word documents, PowerPoint presentations, PDFs, etc—so-called “dark data”—that would be valuable for further textual analysis and visualization. While several packages exist for extracting content from each of these formats on their own, this package provides a single interface for extracting content from any type of file, without any irrelevant markup.
 
8:55 AM
@RobertGrant It's a small set of simple objects (and one of them's a small integer,which is special-cased) ... but yes, I think it's a little surprising too.,
 
user559633
Oh, PYTHONHASHSEED is pretty interesting.
 
@tristan Indeed it is ... I've gotten at least three answers out of knowing about it :-)
Anyway, that's me repcapped now :-)
 
user559633
what happens if you set it to 0?
 
... then you'd get the behaviour assumed by all the other answers - at the expense of disabling the security fix of course.
 
user559633
all the other answers? as in, predictable hashes?
 
9:05 AM
Yeah ... although some of the answers get a "right" (for Python <= 3.2) answer for the wrong reason anyway.
 
Wotcha @Jon :-)
 
@Zero pushing through the morning?
 
Yup, the office laptop stays on and signed in, perhaps the network resets at 06:00 or something.
 
9:14 AM
@Ffisegydd My sleep patterns are b0rked for a few days now ...
 
@Zero you should join the club that Peter and I appear to be senior members of :)
 
The Sleepy Council.
 
Umm... is the "featured" tab showing 0 to anyone else, but clicking on it still shows bountied questions?
 
Nope showing two questions for me
 
So - less wrong than the figure I see then, but still not right...
 
9:20 AM
I've been getting random "0 questions" pages for a variety of searches for a couple of weeks now ... I think they changed something caching-related and it doesn't quite work.
 
@Zero -- appear to have got the accept for that one we both used str.partition for
 
Yeah, I noticed that ... fair enough; given a vague spec, OP chose the solution that fit what was in their head.
 
@Zero this answer still doesn't strike right to me though
Keeping only uppercase isn't the same as removing lowercase :)
 
Cabbage
 
cbg @IntrepidBrit
 
9:29 AM
Cbg
 
@JonClements Agreed :-)
 
I'm not sure if it should be mentioned or not - he'll think we'll bullying :)
 
How's everyone doing this fine morning (and/or insert your preferred time period here)
 
@IntrepidBrit can I pretend it's beer'o'clock?
 
You may. Although this early in the morning, it's probably shandy'o'clock
 
9:34 AM
Oh well... Yorkshire Tea it is then :) - Doing good, just busy - how about you, you scally wag?
 
Recently went down to Cornwall. Brought back some "Smuggler's Brew" - disapointed to find out it's sourced from India. I heard Cornwall is actually growing their own tea.
I'm good - not wanting to start work. Found a memory leak bug and I don't relish finding it in my multi-threaded application that relies heavily on 3rd party libraries
 
@IntrepidBrit youch
 
Normally, I would just blame myself but I have to use the 3rd party libraries because .NET is woefully lacking ;)
 
Pah. If you visit Cornwall you should pick up scrumpy, not bloody tea.
Not only is scrumpy a fine drink, but you could probably use it to etch your 3D models.
 
9:50 AM
@Ffisegydd The scrumpy is all gone. All 2 demijohns of it :(
 
is suddenly reminded of glorious evenings drinking Addlestones (and less glorious mornings after)
 
@IntrepidBrit don't think you're supposed to have that much with your morning oats :)
 
Surely, one is meant to drink scrumpy in replacement of apple juice. That's how it works right?
 
Of course, if you out of apple juice it's necessary to drink scrumpy... if you're out of orange juice, you just have to drink the champagne by itself etc...
 
Pretty sure I read that on the NHS website too
 
9:56 AM
This question has been deleted - no more answers will be accepted. ASIOERJFBGJBFBASDJG HASDR GHAS HGBE
 
Out of pineapple juice, just neck the malibu by itself...
 
@Ffisegydd Was it deleteworthy in your opinion? Me has undelete powers now, bwahahahahaaa ...
 
I couldn't find a dupe for it, though I didn't try much.
 
watches @JonClements sit in the corner, glassy eyed thinking about all the different alcohols to have with breakfast, whilst rocking back & forth gently
Besides - who's been feeding you booze. Might have to call the RSPCA on yer
 
@Ffisegydd tread carefully around @Zero until the "I've got 10k!" effect wears off :)
 
9:59 AM
Hmm, deleted by OP. It would be uncouth to rescind that, I think.
 
@Zero normally, you'd only do so if the OP did a "hit and run"
 
Plus I know nothing about Matplotlib anyway, so can't judge the question.
 
It's not a question that will change the world.
But I couldn't find a dupe (though I didn't try very hard).
Annoying more than anything.
I've written the answer and kept the tab open, hopefully the OP might undelete but I doubt it.
 
I don't understand why anyone would delete a question. Unless it's a dupe.
 
No other answers ... maybe they suddenly realised the problem, maybe they're rewriting ... maybe they're just temperamental :-)
 
10:04 AM
Yeah. I assume they have fixed it themselves and don't understand the mentality of SO (that your questions aren't just for you)
 
Well, yes, in the first case the Right Thing would be a self-answer ...
 
Well... any positively scored answer stops the OP from deleting their own question... if that's not the case - they're free to do as they want (with potentially a bit more weighting towards a question ban if they repeat the behaviour)
 
Cbg :)
 
cbg Ian
 
Ooh, touchy:
Hence why your answer is the accepted one, not mine :P (and various other aforementioned reasons) — Lord_DeathMatch 20 mins ago
 
10:13 AM
@Zero yeah - I didn't pretend that one coming did I :)
 
Cabbage @IanClark
 
Interesting typo - I meant to type see not pretend...
 
What the hell is wrong with people?!
I just rang one of the people I work with. I'm talking about an email we just received and it's pretty urgent. About midway through the conversation he says "Look, I've got to go. I accidentally covered myself in battery acid before you rang"
WHY DIDN'T YOU SAY SOMETHING BEFORE NOW?!
 
@IntrepidBrit Well, for a start we've got vestigial organs that can kill us ... oh, you meant something else :-/
 
@IntrepidBrit Typical British politeness.
 
10:20 AM
Also: that is funnier than it should be :-)
 
Brb, going to help with battery acid lulz
 
cbg(folks)
 
cbg @Peter :-)
 
instant smiley at the end? what for? ;)
 
@Peter probably a mix of sleep deprived delirium and that he also made 10k :)
 
10:26 AM
orly? congrats @ZeroPiraeus!
 
Ta :-) The smiley was just a general "hey, there's Peter. Peter's a nice guy, let's smile and say hello" kinda thing. I will remember not to repeat the error :-P
 
@ZeroPiraeus aaaahhhhh...
:P
 
Whoa ... is that a 10K thing, the spam/offensive flags alert?
 
@Zero you talking about the chat alerts? Yes...
 
Never knew that existed.
 
10:31 AM
Mostly C++ and Javascript room stuff :)
@Zero and the other thing if you hadn't noticed is review queue history, eg: stackoverflow.com/review/suggested-edits/history
 
Yeees. I have heard ... things ... about the C++ Lounge.
 
(so you can see all the recent reviews - not just your own)
 
Oh yes ... cool :-)
 
Hey, @ZeroPiraeus
D'you have time for a heated argument?
 
Wotcha @Vee :-)
Time, yes. If it's going to be really heated, we might take it to a private room and avoid annoying the fine folks here ...
 
10:37 AM
fight fight fight!
 
It seems we have a crowd...
 
In that case: you sir, are a blaggard and a scoundrel.
 
/me starts taking bets... hand over your cash
 
I'm betting on @ZeroPiraeus
Enough chit-chat
 
Is this about the tuple/set equality post by any chance?
 
10:38 AM
> This is because since Python 3.3, the insertion order of sets and dictionaries is randomized
Yeah
The insertion order isn't randomized
The hash is randomized
The position inserted into the underlying array is thus "randomized", in the sense that the hash is different
 
Dude, I've changed that sentence four times so far. I know what I'm saying, and I think it's clear to others, but I've never been entirely happy with the exact wording.
 
But it's wrong
:/
Also this:
> Sets, like dictionaries, are implemented as hash tables - so if there's a hash collision, the order of items in the hash table (and so the order of iteration) will depend both on which item was added first (different in x and y in this case) and the seed used for hashing (different across Python invocations since 3.3). Since hash collisions are rare and the examples in this question are smallish sets, the issue doesn't arise as often as one might initially suppose.
That's not quite what's confusing
It's that you'd expect hash randomization to mean hash("a") % underlying_array_length > hash("b") % underlying_array_length to be random with approx 50-50 chance.
even ignoring collisions
Unless I'm misunderstanding that last part.
(which on further consideration I probably am)
Yeah, ignore that.
 
Ok, so second point first: I know it's a - what's the word, bucket? slot? - collision rather than a hash collision, technically, but the answer is already quite a lot more technical than OP was ready for, I think (and given that every other answer was wrong, more technical than the general audience level). So I'm happy to be slightly but irrelevantly inaccurate there (especially now I've linked to the Mighty Dict video, which explains it all far better than a SO answer could).
 
How is it not a hash collision in the end?
 
On the first point: I welcome a rephrasing that is both technically correct and understandable to someone who doesn't spend a lot of time thinking about Python's innards ... so far I know I haven't quite got there.
 
10:47 AM
@RobertGrant If you're referring to my second point, it is. I was just being confused.
 
@RobertGrant Because of the way dicts and sets work, even if hash(item_1) != hash(item_2), the two items can end up destined for the same slot in the underlying array.
Because the array is just "a bit bigger than len(the_dict)", and hashes can be very large integers.
 
> This is because, since Python 3.3, the hash value of strings, bytes and datetimes are randomized as a result of a security fix. Depending on what the hashes are, "collisions" may occur, which will mean that the set depends on the insertion order.
 
How about:
 
@ZeroPiraeus ah okay
I was visualising a sparse array, which now I think about it doesn't make much sense from a space point of view
 
> This is because, since Python 3.3, the hash value of strings, bytes and datetimes are randomized as a result of a security fix. Depending on what the hashes are, "collisions" may occur, which will mean that the order items are stored in the underlying array (and therefore the iteration order) depends on the insertion order.
 
10:54 AM
Note that the array is 3 times len(the_set) just after a resize.
@ZeroPiraeus Sounds good to me.
Have an upvote :)
 
I cleaned up my comments, btw
 

« first day (1445 days earlier)      last day (3494 days later) »