« first day (1405 days earlier)      last day (3559 days later) » 

user559633
1:24 AM
oh dear god that's cute @Johndt6
 
6:55 AM
@davidism I lost -8 once because of serial downvoting. These points were never reversed. :(
And cbg all
 
7:11 AM
cbg()
One more on the 2nd
 
Done.
 
Too many bad questions today
0
Q: I want to know how to perform deduplication in OpenStack storage

user3700005Hi, I want to know how to perform deduplication in OpenStack storage. Please anyone give some ideas.

 
7:52 AM
this is actually so wrong: davidism gets stars by quoting me, now how do I get the stars to get the damned badge :?
love the fact that
welsh used to use the letter k,
then someone said "we need to change it to 'c' when printing this Bible since the English do not have enough of the type letter k"
 
8:17 AM
flow = flow_from_clientsecrets(CLIENT_SECRET_FILE, scope=OAUTH_SCOPE)
http = httplib2.Http()
credentials = STORAGE.get()
parser = argparse.ArgumentParser(parents=[tools.argparser])
flags = parser.parse_args()
if credentials is None or credentials.access_token_expired:
    credentials = tools.run_flow(flow, STORAGE, flags, http=http)
http = credentials.authorize(http)
gmail_service = build('gmail', 'v1', http=http)
Is my authentication correct for the Gmail API?
From what I can see on the documentation it's okay
 
8:31 AM
Cbg :)
 
@IanClark Cbg?
 
Why yes @Stormie, Cbg ;)
 
@IanClark wat
 
Oh, cabbage
I see
Well, cabbage
(I had no idea there was this whole pseudo-language)
 
8:36 AM
Cabbage!
 
Anyone familiar with OAuth2?
 
@Stormie from sopython.com/pages/chatroom - 'you do not need to say “anyone here know Django?” before asking a question about Django. Even if you do, the Django experts in the room might not step forward until hearing the actual question. They may not wish to commit themselves to help until they know how much effort it will entail.'
 
I know, it's just habit :(
 
If you can think of something to say that provokes a link to a third sopython page, there's a special prize :-)
 
Also, it is VERY usual that actual problem is actually not related to the asked library but may be a common glitch, bug, problem...
 
8:43 AM
Oh is there? :o
I've heard of this thing called nimbada?
 
dingdingding!
 
@Fenikso My question is about how to parse an argument for the library, I doubt there's anything wrong with it
@ZeroPiraeus I win a fluffy python toy now, right?
 
... and your special prize is: the absence of a link :-P
 
I think I'm going to cry. :(
 
8:46 AM
Well, I do not imply that it is necessarily your case, but I have seen it many times. Guy asks if anyone knows XYZ. He is told to ask directly. Someone who knows nothing about XYZ has a valid hint or correct answer anyway :).
 
cabbage
 
Cabbage @MartijnPieters.
 
cbg @Martijn :-)
 
@Fenikso Yeah, more often than not people think the library is broken when it's actually their "use" of the library being incorrect
 
@Stormie Another story :).
 
8:48 AM
I wish there was sound control for sopython, it hurts me ears when I'm using headphones :c
 
The other main reason we ask people to just ask is if you say "Does anyone know matplotlib?" and I say "Yes I do" and you go "Oh great I've got this 10,000 LOC project can you find the bug?" I might not have the time to really help you :P whilst if you just say "I've got this 10,000 LOC project, can anyone help?" I can just sit silently in the background and avoid you at all costs :P
@Stormie top of the page there is a speaker icon, you can adjust things there possibly?
 
@Ffisegydd :-D
 
I just muted it, i didn't want to.. But the sound is ltierally deafening. :(
Well, now that more people are on.. I'll try my question again. ;)
https://chat.stackoverflow.com/transcript/message/18407893#18407893
@Ffisegydd Also: Cabbage :D
 
Cbg @Martijn
 
@Stormie Well, do you have any problems with you authentication?
 
8:51 AM
Yes, it tells me the argument "AdminTests" is invalid. Though I'm not passing that as an argument to Python
I've just stopped using run() and "upgraded" to run_flow()
I wanted to know how I could make run_flow() work like run() did, without the warning about using a deprecated method
I'm not sure which flag I should use, that's the meat of my question
 
is getdocumenttext() supported by the latest python-docx version ?
 
@Stormie Well, if you put everything together, it sounds like a valid SO question.
 
@Fenikso But the answer will literally be a short list of flags and their uses, I don't think it amounts to a full blown question :(
 
stackoverflow.com/questions/25422115/… ... "have - lots of work to do. needed - gin"
 
I guess I'll flesh it out and post it :)
 
9:01 AM
@Swordy Does not seem so. Looks to me like you have to iterate over Paragraphs first.
 
We shouldn't encourage questions like this by not providing solutions. — Maroun Maroun 1 min ago
To my answer. 6 upvotes already...
 
the legacy version does support , so should i go for
document = Document('your_file.docx')
abc =[paragraph.text for paragraph in document.paragraphs]
 
8 now @vaultah
 
@Swordy Looks like it. Maybe join it when done?
 
Someone upvoted that question...and voted to reopen
 
9:04 AM
Me. Me.
 
@Ffisegydd Damn vamps
 
it worked.. The list comprehension was enough.. :)
Just wished there was a single instruction for that :(
 
@Swordy Inherit from Document and write it yourself :).
 
@Swordy Your display picture makes me think it's spiderman, I can only really see the tail
 
@Swordy Anyway, nice library. I guess it works on systems without MS Word installed, right?
 
9:08 AM
yes it does.. @Fenikso
@Stormie found this image on the kitty play app for android
 
@Swordy I like it, but it's messing with my mind :o
 
here , mess it up some more
 
@Swordy Oh, that is nice. Why did not you crop the left side?
 
Wow, SO is angry
 
I'm genuinely surprised it hasn't already been deleted.
 
9:14 AM
Yes, I shouldn't have answered that question. But 4 downvotes on the correct answer
And I'm bored
 
@vaultah Go port wxPython to correctly work on Python 3 :-P.
 
I dint , that is how the profile pic was set automatically @Fenikso
 
@Swordy Maybe you should crop it yourself. It would look nice.
 
@Swordy But now at least I know it's not Spiderman
https://stackoverflow.com/questions/25422545/which-flag-for-run-flow-will-simulate-the-now-deprecated-run

Open to critique of my question, I'm not expecting any of you to answer it so don't worry :)
 
You should link to the docs of of your methods
 
9:18 AM
@Stormie Maybe put there whole previously working code using that run method.
 
ah! excellent :)
Thank you two :)
 
Basically put docs in so people can easily find what you're doing without having to resort to Google etc
 
Also making it self-contained and runnable on any computer helps a lot.
You know, so I can put there my credentials and get a big "OK" when it works or something.
 
You can use ` to denote code rather than <code> btw
So `here is my code`
 
Yeah, but people always edit it use either the indentation or code tag when I do that :(
I've since only used the escapes for error messages and one or two word chunks
 
9:22 AM
@Stormie ofc, that is right.
 
If the code is on it's own line then use 4-space indentiation, if it is within a sentence then use `
 
Your comments about starred lines are not very helpful. Is it that big of a deal to actually show both working and not working code?
 
I thought it would be helpful for people trying to recreate c:
 
@Stormie People should recreate by copy-paste, change a constant or two, run.
 
Well, I suppose you don't need the old code to "fix" my problem, but my question is how can I get run_flow() to act similarly to run()
 
9:26 AM
instead of starring, make your code proper so that it works with copy pasting
that is, use # comments, that's what they're for
 
okay :)
 
@Stormie OK, you wanted the critique :). I shamelessly prefer questions, which I can take the code, run it and see how it fails. Fix it, post it. If there is a code which was previously running, I want to see it and be able to execute it too, so I can see how it should behave. But that is just me.
 
How's that now in your opinion then @Fenikso? :)
0
Q: Which flag for run_flow() will simulate the now deprecated run()

StormieI am trying to authenticate my credentials to access the GMail API. Previously I did this using the run() method from OAuth2, and the code credentials = tools.run(flow, STORAGE, http=http) but this is now a deprecated method. I am now using the run_flow() method to authenticate my credentials. ...

Incase the link was too far gone fo ryou
 
@Stormie Better. Can I copy-paste and run it now?
 
Well, you'll need the imports but that's all :p
 
9:30 AM
Add the imports :P
 
@Stormie So add the imports.
And what is expected behavior?
 
Wouldn't it just be seen as a fluff though?
 
Also you've indented by 8 spaces rather than 4 so at the beginning of every line you've got 4 spaces.
@Stormie nope, it makes it runnable.
 
Expected behaviour is for run_flow() to act as run()
Okay then, making sure I know what i'm doing for the future :3
 
For instance have you done from blah import Storage or have you done from blah import * as that can make a difference sometimes (blah might have somethings that overwrite builtins)
 
9:32 AM
Okay then, I guess my views on "fluff" are still coloured from my first few visits to SO
 
That's much better now.
 
I am learning!
 
It is still not runnable, is it?
CLIENT_SECRET_FILE? OAUTH_SCOPE?
 
You need to define your own client_secret, scope and storage
But they aren't things I can give people :(
Well, I could give a default scope and storage
But client_secret is unique to every account
 
The thing is. Like this it is OK. But if you can create standalone runnable code, you will attract many more people. Hell, I know nothing about Google Auth, but I would try it.
 
9:37 AM
I've added a scope for people now
I'll have a quick google round and see if there's anything i can do about the client_secret
Hmmmm
 
Mudkip spotted!! Error:- Jerry Not Found
 
SF? I bet that's fun.. I remember when the Pokemon stream spent the better part of an hour in the menu
 
@tristan : is that russian guardianf a spambot?
 
user559633
@Swordy it's twitch tv -- most of the people commenting and copy/pasting junk aren't bright enough to be trusted to cut the crust off a sandwich
 
9:50 AM
Hi, How do I reverse a dataframe ?
using data.reindex(index=data.index[::-1]) also reverses the index. I want just the data to be reversed, the index should be the same.
 
@user994572 I'd suggest you ask a question on the main site instead of asking in here. I don't really have time to research your problem at the moment and I don't know anyone else that uses pandas who is on at this time.
 
sure, np.
 
I don't think it's as simple as it sounds
It's easy to reverse the whole thing (df.sort(ascending=False) would probably do it)
 
This question doesn't show any efforts, but it's not downvoted and neither do answers
 
user559633
sometimes crap gets through and this example isn't particularly bad @vaultah
 
9:58 AM
@vaultah Lead by example :)
 
Ok, maybe I'm just angry because of the reception of my answer
 
Don't be, just remember why it happened. That's what I've done and I like to think I've come a long way since my first time on SO :)
 
Cabbage cabbagehuggers
 
@IntrepidBrit Cabbage!
 
Cabbage you ******* Scottish *******
 
10:03 AM
Currently enjoying the media frenzy everyone?
 
user559633
What media frenzy?
 
I don't understand why some questions get so little traffic.. It seems that the more tags it has, the less traffic :(
 
@Stormie you've posted quite a specific question remember.
 
The whole: "English voters want to punish Scotland either way the vote goes" which is a completely ridiculous way to phrase/focus what happened
 
Aside: M$ Excel is the biggest pile of **** I've ever seen.
 
10:06 AM
@Ffisegydd I know, but I look at a lot of questions sometimes even regardless of if I'm going to understand it.. Maybe I'm just odd
 
user559633
Excel kind of rules.
 
user559633
@IntrepidBrit Ah, a regional media frenzy.
 
Yeah. I think English folk just want to sit down at the table and sort out things like the Barnett Formula and the West Lothian Problem
 
user559633
By English folk, you mean "a very small segment of the English population"
 
I haven't really been paying much attention to the Scottish independence but it always struck me as odd how the rest of Britain effectively has no say.
 
10:11 AM
^
 
I mean it's obviously not just the Scottish people that are going to be affected by this.
 
@Ffisegydd It's not odd, as it will be secession, not a dissolution of the union.
It goes along the UK's long held international stance on the right to self determination
(Ie - Gibraltar/Falkland Isles etc)
 
Aye true
 
@tristan What do you mean by that. I know loads of English people that have been narked about the West Lothian Problem (even if they didn't know what it's called)
 
user559633
That's one way to state "England can not hold on to small, remote territories"
 
10:14 AM
@tristan That's a rude way of referring to the Scots ;)
 
user559633
Didn't mean that @Stormie, but it is a small country.
 
Yeah the correct form of address is how I addressed @IntrepidBrit earlier "******* Scottish *******"
 
The UK is smaller than most countries and yet remarkably talented
 
@tristan It's a rather large percentage of the UK landmass.
 
user559633
Yay nationalism, I knew we'd get there.
 
10:16 AM
if not of the total population.
 
I mean, England alone fields an awful lot of specialists in a very diverse set of fields
 
@tristan let's put this in terms that you, as an American, will undoubtedly understand: Scotland has oil.
 
user559633
@MartijnPieters Sure, but it's 5mm people. That's a moderately sized city in terms of population.
 
@tristan or slightly more than the population of Norway
 
user559633
@Ffisegydd .__. the English love their oil too.
 
10:17 AM
@tristan Do you mean British?
 
which separated from the Kingdom of Sweden just over 100 years ago.
 
user559633
Yeah, but Norway is so cold that there's a multiplier on the headcount.
 
Hah you've never been in a Scottish winter.
 
@tristan I prefer the Norwegian winter over the Scotish.
 
user559633
@IntrepidBrit I suppose maybe? To be honest, I don't particularly care.
 
10:18 AM
At least in the part where I used to live..
 
user559633
Scottish winter -- cold and rainy?
 
I've spent a cold christmas holiday in St. Andrews.
The wind is extremely impolite.
What do you mean you have two coats on? I'll just go straight through you rather than around.
But yeah, rain, sleet, cold.
 
The best way to describe a Scottish winter is grim
 
Obliged Winter is coming reference
 
user559633
10:21 AM
Sounds like "rain, sleet, cold" is a better way to describe it.
 
@JonClements Cabbage
 
user559633
cbg @JonClements
 
user559633
I 'love' that this is a picture of an american cop: news.bbcimg.co.uk/media/images/77045000/jpg/…
 
user559633
Especially the lad to the left that is too fat for the body armor to fit correctly.
 
10:22 AM
forewarning: if I sound a bit annoyed, it's because I am - currently making excuses to clients and adhoc'ing trying to make myself a cup of tea
 
hides
 
user559633
:/ sorry bud. i'm running on 4 hours of sleep and somewhat annoyed myself.
 
@Ffisegydd me want
 
@JonClements cbg, hope the tea helps.
 
10:24 AM
@tristan Good to know. You're Canadian right?
 
user559633
@IntrepidBrit American
 
@tristan That's close enough. "To be honest, I don't particularly care."
 
Cabbage
 
@AnttiHaapala Cabbage
 
10:27 AM
Welp, I'm gonna disappear for a while now... Shameless plug: stackoverflow.com/questions/25422545/…
 
user559633
@IntrepidBrit :) It's funny because AmeriCanada would be amazing in some parts.
 
See ya'll later :)
 
user559633
Take care
 
user559633
All half snark aside, can the Scotland/England... thing be summarized as: Scotland is seen by the English as expensive and the talk of a Scottish succession has been brought up?
 
@MartijnPieters been having probs with the electric in this old place... lost all mains on the ground floor... lost the freezer, the dishwasher... thankfully the fridge still works, but don't have a kettle... they all "blew"... not expense I want right now
 
10:30 AM
@tristan That's how the media is portraying it. Annoying because if you scratch under the surface, it's clear that's not what they're actually saying
 
user559633
@IntrepidBrit and where would I find what is actually being discussed?
 
@JonClements Ick! We recently lost the dishwasher to a salt reservoir leak, we lost a display adapter and a set of speakers to wire breaks in the past two weeks and yesterday two Apple Magsafe 1 power supplies have given up the ghost, so I know a little of what you mean.
 
On the plus side though, nothing caught on fire and burnt the place down... so
Lost my router
so having to tether to my phone at the moment
 
user559633
Are you investing in a UPS after you get the immediate things sorted?
 
running 50m cables from upstairs to downstairs to keep things kind-if working is not good
 
10:36 AM
@tristan Argh. Trying to find a news site that doesn't charge for subscriptions
 
@tristan all the servers in the basement are on UPS's - just not a configuration I generally apply to a kitchen
 
@tristan (generally along the lines in this article - voxeurop.eu/en/content/news-brief/…)
 
user559633
@JonClements Now I'm confused. Is this your house or place of work?
 
my house
 
user559633
Interesting. How many servers do you run at home and what do they do?
 
user559633
10:40 AM
@IntrepidBrit all of that seems absurdly reasonable.
 
64 arrays - and err... NDAs :)
 
JC Datacenter INC
 
@tristan Yet it's being toted as "paying a heavy price". What on earth is that about?
 
64 arrays full of Non-Disclosure Agreements, boy you are doing some secret stuff there.
 
user559633
@JonClements accidentally just revealed where the @MartijnPieters AI is hosted.
 
10:47 AM
^
 
user559633
@IntrepidBrit a "heavy price" for whom? paying a heavy price for scots to go independent? a heavy price for the UK to keep scotland as a member?
 
@tristan Well, at first we had 8 arrays, then the AI kept growing and growing... we couldn't keep up :)
 
I am a botnet. I am in your computer right now.
3
 
So we watched its progress, and eventually it launched itself into answering Python questions
 
user559633
10:48 AM
@vaultah holy hell, why were you downvoted that much? that's hardly the most egregious "i can't be bothered to try it myself" that I've seen
 
user559633
"You were only meant to study snakes!"
 
And it does the answering in frenzy and very well informed way no doubt
We're just glad it doesn't start asking who "John Connor" is
 
John Conner is awfully close to Jon Clements (if you squint and look at it with your head to the side)...
 
user559633
If @MartijnPieters is at the point that he is running on 64 servers, it might be time to rewrite him in C++ or at least start using some C modules.
 
@vaultah But it is almost certainly a duplicate.
 
10:52 AM
Yes
 
You didn't deserve to be downvoted into oblivion however.
 
@tristan it's too late I'm afraid... as soon as the project became self-aware, it adapted and used other systems
 
user559633
@Ffisegydd sure, the jesus type : John Connor, Jericho Caine, Jon Carpenter, Jesus Christ
 
@MartijnPieters what you doing Sep 26th ?
 
@tristan No, a heavy price if Scots decide to remain
 
10:53 AM
@JonClements I go straight to Sarah Connor.
 
SKYNET BEGINS!
 
@JonClements work in Cambridge that day?
 
@MartijnPieters Seems a bit overkill
 
@MartijnPieters I'll be in the area, yes
finally got an accept
 
@JonClements You got serially downvoted on 3 questions but it wasn't reverted? That stinks.
 
11:01 AM
@MartijnPieters did I?
 
A lot of people did yesterday
All from the chat room.
I then started getting answers to a post of mine from someone claiming to be Sumer
I spoke to people in the Tavern about it and the answers were cleared but then Brad Larson started getting a lot of abuse from someone on Twitter claiming to be Sumer
 
@JonClements Yesterday, 3 questions got downvoted between 16:00 and 16:04
 
As I think they used multiple accounts the downvotes haven't all been cleared by the script though (as presumably it's split across multiple accounts so might not trigger it)
 
@Martijn so they did... didn't even notice...
 
I'm not sure whether to flag it or not, need to check with davidism whether he got his reversed (as well as the others)
 
11:04 AM
@Ffisegydd Right, so it is our lovely troll again.
 
Yes I suspect so. It was someone who knew the chat room a bit as he referred to me as Fizzy good, so either he's a regular or he went through a lot of transcripts.
 
Still not reversed. 3 downvotes is too little to be noticed
 
@Ffisegydd the transcripts are public and this user is known to do extra internet searches to try and get 'dirt' on people.
 
Brad was pretty sure it wasn't actually Sumer
 
they are really quite disgusting and sick.
 
11:06 AM
@MartijnPieters Hm, which troll?
 
I agree. I'm gonna head to lunch any way so rbrb in a bit
 
@Ffisegydd The description of your chat account says "They call me Fizzygood...;_;"
 
@IntrepidBrit Sümer Kolçak
modus opperandus: post nonsense questions then transform it into a tarpit of increasingly weird follow-up comments including but not limited to diatribes about US foreign policy.
When blocked attacks those he can single out among moderators, community team members and high-rep users.
 
Bizarre MO
 
where attacks turn nasty quickly, including death threats.
Foaming at the mouth crazy.
Creates large numbers of accounts through Tor.
 
11:10 AM
Oh. That's wildly unpleasant.
 
Whenever you encounter the user, flag for moderator attention, don't engage. Certainly downvote when you know it is this troll, but voting to close may make you a target.
 
Brad believed it wasn't Sumer but a copycat. Though whether evidence has been found to suggest it's really him? I dunno.
 
I think my only "real" attack was stackoverflow.com/questions/9588331/… (10k)
 
@MartijnPieters Boy, he really hates us.
@JonClements What was Sklivvz's edit in the answers?
 
@MartijnPieters you very familiar with relstorage?
 
11:17 AM
@AnttiHaapala I commissioned the project.
 
@thefourtheye he deleted the revisions...
 
so-called rhetorical question
 
@JonClements Oh, I didn't know that the mods could do it
 
nope - afaik - only devs can
 
11:19 AM
I sort of suspected that this post was a / the troll too.
The account was nuked, and with it the question (even though it was at score 0, so it was a moderator account-destroy action, not a requested delete).
 
@MartijnPieters python 3.4 + zodb x + pyramid + psql/psycopg and now I need relstorage, you think it would wrok (at least the pypi does not)
 
@AnttiHaapala define 'not work'.
 
@MartijnPieters great to see we have Islamist Extremists on SO too :)
 
@MartijnPieters I don't remember... but not work meaning that with my brain I could not get it work (whereas filestorage worked) and/or even python 3 syntax errors
 
umm... "Missed call from Private Number"
those go straight to voicemail - either display your number, or leave a message - otherwise - get lost
 
11:25 AM
@JonClements Tempted to take on that mentality. Unfortunately some of my clients love their unknown numbers
 
And now, a call from Manchester
ignored that, didn't have a contact name in my phone, so, if it's important, they'll leave a message
 
@MartijnPieters hmhm maybe there was some zodb incompatibilitititiiy when I tried the last time
 
@IntrepidBrit I guess I'm just youtube.com/watch?v=E4_Qp2BGrC4
 
It's weird to me that I can unilaterally make edits, but to approve an edit, I need a second party to vet my judgement.
Removing extraneous boldness from text
 
user559633
@MartijnPieters I can't see that either, but I did have someone sending me messages on twitter who made messages about attacking america
 
user559633
11:34 AM
Just realized the best anti-troll defense to deploy would have been reporting him to the authorities
 
user559633
oh nevermind, here he is twitter.com/SumerKolcak90
 
@JonClements "By god I'm 80!"
 
@Kevin howso?
 
@Kevin completely agree, I've always found that odd
 
11:35 AM
@Kevin if you are in the edit queue and you can make the edit, you can edit the edit and approve it as helpful?
 
Ok, but I'm not in the edit queue.
I don't think there's a "this is a helpful edit" button if you're on the post itself
 
@AnttiHaapala I have no idea if Python 3 is supported, actually.
 
that's why
 
@JonClements Almost missed that; I meant that I'll be working in Cambridge that day :-)
Cool, so you finally will come around then!
 
i guess amount of ppl running python 3 and relstorage and zodb and plone or whatever is lim t->today n = 0
@MartijnPieters ok for you to know:
% python setup.py develop
Traceback (most recent call last):
  File "setup.py", line 67, in <module>
    "==============\n\n" +
  File "setup.py", line 41, in read_file
    return file(os.path.join(*file_path)).read()
NameError: name 'file' is not defined
the answer would be "no".
 
11:44 AM
Sorry for my reaction to that downvoting. Those downvotes were really nonsense, but I shouldn't took them too personal. My reaction was truly childish.
 
user559633
@vaultah :) keep in mind that you can't exchange internet points for real currency
 
You can't!?
 
user559633
see bitcoin :)
 
@AnttiHaapala Then Python 3 is not supported. The deployment we used it for was on Python 2.4...
 
You can exchange currency for rep though :p
 
11:46 AM
@MartijnPieters I need it on python 3 :P
but prolly do not know enough about it to fully port it :(
 
@AnttiHaapala I'm sure we can port it with a little funding and effort.
:-)
 
How hard could it possibly be?
 
Shane Hathaway is an excellent developer to hire for such a project.
 
Just a little code.replace("raw_input", "input"), simple
 
@MartijnPieters alas it would be very little funding.
 
11:47 AM
Use regex sub to stick brackets around print
 
currently it is just nicetohave
will probably have the data.fs and then start porting it myself when truly in need
so far I haven't even done anything beyond just play on zodb
if the test coverage is 100 % then I can polyglot it blindly later :d
 
cabbage everybody
 
Cbg()
 
Cabbage!
Does anyone know what Qt widget I should use to get result like this:
I mean for the list only. Ideally sortable by clicking header.
 
11:52 AM
@MartijnPieters on your head be it :)
 
Oh goodie, so the answer with just code without explanation gets the 'accept' mark.
 
@AnttiHaapala Right! Thanks!
 
just because it sets instance attributes.
 
@Fenikso my pyqt is practically nil so dunno how to do it really
but maybe you can find some pointers from there
@MartijnPieters where :?
@MartijnPieters maybe the op wants you to get populsit?
 
0
Q: Why is this printing 5 5 5 instead of 5 6 7? (multiple singleton calls)

user3874806I'm trying to create a asingleton class that adds 1 to 'a' every time the class is called: class Singleton(object): _instance = None a=0 def __new__(self): if not self._instance: self._instance = super(Singleton,self).__new__(self) self.a+=1 retur...

 
11:54 AM
@AnttiHaapala I was just unable to find this widget. Not sure why...
 
@AnttiHaapala Not likely that that other answer ever reaches 11 upvotes.
 
@Martijn odd that someone that's using __new__ doesn't know about the object model
 
@JonClements They just copied a singleton pattern found on the interwebs.
 
that'd make sense then
 

« first day (1405 days earlier)      last day (3559 days later) »