« first day (1796 days earlier)      last day (3377 days later) » 

 
1 hour later…
01:36
@QuestionC If it really bothers you you could do something like this:
port = int((sys.argv + [8080, 8080])[2])
Not very performant, but how often do you get the command line parameters?
0
Q: conditional class inheritance in python

user3790927I am trying to dynamically create classes in python and am relatively new to classes and class inheritance. Basically I want my final object to have different types of history depending on different needs. I have a solution but I feel there must be a better way. I dreamed up something like thi...

@PatrickMaupin ^^^
wifey: "What do you want to watch?" me - "Wanna watch the pilot of Star Trek?" her - "no!" me - "But you said we could!" her - "Not right now."
02:32
@AaronHall I don't really know what he wants, probably because he doesn't either, but I tried to provide a psychic answer as well...
Woot, Patrick's my answer buddy!
Hey, when it comes to abusing classes, I'm your man :-)
@MorganThrapp I just remembered one canonical reason for dynamic types. Check this out:
>>> from ctypes import c_uint8
>>> c_uint8 * 20
<class '__main__.c_ubyte_Array_20'>
@AaronHall ^^^^ Probably a better "for example" than the use in my library...
(at least, as in, applicable to and used by a gazillion more people, anyway)
02:58
looks legit
 
1 hour later…
04:26
Well, your psychic answer (combined with your hand-holding) was obviously better than mine. I tried to explain a few things and give an answer that was a minimal distance from his example code, but somebody took offense and voted me down. I'll never know why :-)
Drive-by downvotes are super annoying, specially when you've gone out of your way to try to help someone with a muddled question.
04:42
Yeah. Of course, the guy who admitted that he downvoted me because he didn't like my attitude was super annoying, as well :-) And then, of course, was the time I disagreed with J. F. Sebastian and the downvote happened right after that -- can't say I didn't sort of see that one coming, though...
The oddest (to me) was where a rep 13 user needed help with basic debugging skills and I gave him sufficient information to help him out with that. His question was upvoted +2/-0, and my accepted answer was voted +1/-1. Too short? Who knows? Anyway, I'm really new at this so I'm sure everybody else here has lots more stories than I do... G'night all.
05:23
CBG all
If just playing with python boolean... Came across this expression:

>>> print [1,2] > 2
True

I thought it would throw an error but surprisingly showed an output True :D .. Not sure why.
05:44
looks like lists are always greater than ints
05:56
Hey up all
Cabbage @Ffisegydd
I believe if you upgrade to 3 you'll get an appropriate error for that code
 
2 hours later…
07:56
Cbg
Hey up mucka.
How long til the move now?
We need some kind of clock ticking down to B-Day.
08:10
Cabbage!
The new favicon is hideous.
yeah
It looks like it's not cleanly seperated from white background in my tab bar
It looks difference for chat and SO for me, so I assume there's some problem with it.
08:16
> not cleanly seperated from white
that's cause it is
14 hours ago, by J Richard Snape
Debugged - http://cdn.sstatic.net/stackoverflow/img/favicon.ico?v=c8 has incorrect alpha, http://cdn.sstatic.net/stackoverflow/img/favicon.ico?v=4f32ecc8f43d (main site favicon) appears to be alright. Don't know if one's old and one's the new or just versioning
Morning all
0
Q: New favicon is too thin

pokeWith the new Stack Overflow logo, there is also a new favicon. But it is very thin and missing a lot of contrast. Here is the old favicon compared to the new one in my tab bar right now: Of course, the old one isn’t too noticeable with my current color scheme on deactivated tabs either, but t...

I should meta it - probably get 5 million upvotes
Ah - Poke's beaten me to it
08:20
Try to post it as an answer
Ooh - actually a slightly different take on it
You're saying too thin - I'm saying hideous white line around it on chrome (default settings on a chromebook)
I wonder if they're regretting the moeny they paid to an agency to "clean" it
Chrome looks okay-ish to me
Because they have a constant gray background
Mmm - I think that's a different theme (mine was all a darker grey). Also - they may have changed it since last night when I noticed and others confirmed. I can't no-one at the SO office has noticed.
Ohh, Chat looks really bad:
08:24
Chat is definitely worse than SO on mine, in fact main.SO looks fine to me really.
Yeah - chat is different to main site - see the links on my quoted message above.
Shall I answer your question on meta, d'ya reckon. As Fizzy says, main site looks OK ish to me - but I haven't got your "-just off orange" theme going on.
oh wow, I just now noticed the change in icon lol
I got tempted to answer - it's more of an extended comment, but it is meta
Yeah, it’s okay
I tagged it with “discussion” anyway
It might look better for me, once my desktop background switches
– I’m actually not sure why Windows uses the colors of the wallpaper of my secondary monitor
My main monitor is very blue atm.
@JRichardSnape I think I’m mostly turned off by that shining bar at the bottom on my inactive tabs.
See my addition to the answer. I think the issue really is that all the bars are the same colour. So if you lose one, you lose them all. Before - you'd likely only lose one against any background. Yeah - the grey is quite a step different
08:50
cabbage
Cabbage folks
quick simple question (not worth an actual question) -> I used to split a string like H4N4 into 'H', '4', 'N', '4' using units = ["".join(x) for _, x in itertools.groupby(Analyte, key=str.isdigit)] However, users apparantly want to be able to use negative values, can I safely just swap the isdigit for isalpha or are there potential pitfalls with that change?
@JRichardSnape Did anyone ever tell you, that you look like Richard Stallman?
Cabbage
cbg Wally
08:55
Off topic but Steam is giving away Amnesia TDD for free, forever
@Wally I take that as a high compliment. Now, what am I doing using this chat service? Software running on someone else's machine might be mailing my messages direct to GCHQ. Quick, everyone shut this down and switch to a highly encrypted channel. Key exchange to be performed by chartered stagecoach with previously unused horses only.
LOL! He would say that
He once said Ubuntu is a spyware
Weird. As I said last night, both the new favicons look identical & ok to me on Firefox 29.0.1. So I downloaded the Chat version & looked at it in qiv, and it looked the same as what Firefox shows me, although qiv displays images with transparent backgrounds on a white & grey check background, and I could just see a very minor problem with the alpha between some of the orange bars.
But then I converted the .ico to a pair of .png files using GraphicMagick's convert program, and both the 16x16 & 32x32 versions looked terrible.
P.S. The above is tongue in cheek. Sure, he's extreme, but I very much support the guy
@BasJansen I don’t get how you used that code to split 'H4N4' into ['H', '4', 'N', '4'].
08:58
@PM2Ring So - maybe the actual problem is in the rendering
@JRichardSnape That's my guess.
you iterate over the string and group them by the str.isdigit
@PM2Ring I wonder if chrome does a conversion to PNG behind the scenes
and join matching paris (to ensure that you dont get H 4 4 instead of H 44
09:00
Go on. Add an answer - happy to tag mine Chrome only (that's where I noticed it and where I got all my examples from)
The PNG's faithfully represent what I see in Chrome, though - I did check that. I switched away from Firefox for this because I couldn't easily put them against a dark grey background (my bad skills, not Firefox's deficiency no doubt)
@BasJansen Ohhh, so you want things like 'H123H-42' to split into 'H', '123', 'H', '-42'?
correct
That totally wasn’t obvious from your example.
I was actually wondering why you didn’t do list(s) instead :P
i used to use isdigit but that kinda screws up the negative values, isalpha seems to do what I want. I just wanted to see if that was a sensible fix
ahh, my bad then hides
09:03
Hey, does anyone know how to execute a lambda on the same line it was created?
>>> s = 'H123H-42'
>>> re.findall('([^\d-]+|-?\d+)', s)
['H', '123', 'H', '-42']
@Dair (lambda x: x ** 2)(4)
Oh lol.
Too simple? :P
@poke: Thanks, my python is a bit rusty. I've been doing this: return eval(self.primitive+"()")
Ouch.
09:04
hmm, I have always tried to stay far away from regexs. Any reason why you suggest to use that over itertools?
I have some weird constraints. I can't use dill but I have to pickle a lambda, so I've been using a string and eval. Life is painful man.
@BasJansen Because you cannot interpret the - on its own. You don’t know if there is a valid number following. Actually, my solution isn’t too good for that either, since it requires that there is no minus sign in the text part. You can use this instead:
>>> re.split('(-?\d+)', s)
['H', '123', 'H', '-42', '']
@BasJansen IMO it's much more obvious what it's doing - cleaner. Rolling your own boundary finder seems...hard work at the least
But you need to filter empty elements afterwards.
fair points
09:06
@JRichardSnape That would be weird, since the .ico format is just a simple uncompressed format, similar to BMP, except it allows multiple images in the one file. But anyway, I just looked at the Chat .ico file using GraphicMagick's display program (which I presume functions identically to the original ImageMagick version), and it looks horrible - the orange is bleeding all over the place.
>>> s = 'H-Foo123This is some really crazy345stuff that probably doesn’t even fit your requirement-2345But it works.'
>>> re.split('(-?\d+)', s)
['H-Foo', '123', 'This is some really crazy', '345', 'stuff that probably doesn’t even fit your requirement', '-2345', 'But it works.']
@PM2Ring I thought .ico was very simple to display. I wonder if there's some kind of "chain" to produce the favicon, where they're converting another image to the favicon automatically rather than having a dedicated favicon and that is causing bleeding artefacts / white borders etc.
Ahh no - I have installed a dark firefox theme and the chat favicon is awful. Goes off to remove the newly added caveat
Not sure I can put up with the theme for long, either
It looks like I was half right. From en.wikipedia.org/wiki/ICO_%28file_format%29 "An ICO or CUR file is made up of an ICONDIR ("Icon directory") structure, containing an ICONDIRENTRY structure for each image in the file, followed by a contiguous block of all image bitmap data (which may be in either Windows BMP format, excluding the BITMAPFILEHEADER structure, or in PNG format, stored in its entirety)."
regex been a long time ago for me, what does -? do?
I mean I see what it results in
nm, I get it
IOW, the .ico is a container format, and the actual icon images are stored as whole BMP or PNG image files inside the container.
09:17
Interesting. So - do you definitely not see the white edges against dark background for chat in your browser?
Definitely no white edges for me in Firefox.
You've not just got a cached version (sorry to go basic - not patronising, just I can't understand it at all)
...and obviously it's the most important thing to me this morning ;P
Hey guys, having a problem with pip install in Travis. Has anyone experience with that?
Is there any chance that data/features could be served from different servers based on geography? And if so, could it be that PM is in Aus which is far away from the rest of us?
Cabbage all, bugrit. Been a while ...
09:23
I need to have pytest with a minimal version depending on the running python version installed and tried to run the following line in the install section:
- pip install pytest >= $PYTEST_MINIMAL_VERSION
The environment variable is correctly set, but the command does not run or give any output.
FWIW my background is #C8C7C7 for unselected and #EBEAEA for selected
15 hours ago, by J Richard Snape
Mmm, I seem to remember they do some highly distributed server thing, so might be served differently to different parts of the world
Any ideas why this is not working?
We are brothers in logic Fizzy (just you're 15 hours slow or something, but, y'know I am a Lancastrian)
@BasJansen “Match a - character, or don’t.”
09:26
I suppose it could be a caching issue. However, these are definitely new-style icons, with all of the bars the same shade of orange.
Ahh, open source is so great. I had something I didn’t like, so I went on GitHub to check for an issue on it, or create one, and there already has been one and it was fixed a day ago.
@PM2Ring That's quite light, but I still see artefacts with that.
FWIW, here's the MD5 of the http://cdn.sstatic.net/stackoverflow/img/favicon.ico?v=c8 that I downloaded: a6526d8765092944a4840ce8fb10b103
@Ffisegydd What's that mnemonic again? Ah yes, that's it... "Richard of York gave battle in vain"
09:32
I rescind my offer to refer you to BigCorp, we don't need your kind here.
@PM2Ring Ah, different - mine is a54ef0f42eb46c89f633b0c4743da5cb
Ta for that, though that won't get you a referral.
To be honest - with (redacted - locations in Lancashire that may or may not be associated with BigCorp) - you must be fighting a Lancastrian tide
I'm based down in Gloucestershire so it's just filled with southerners.
Ah - a common enemy :)
09:39
Just noticed that Stack Overflow changed favicons for localized sites
@ByteCommander Sorry, I'm not familiar with building packages for pip, but are you sure that shell environment variables like $PYTEST_MINIMAL_VERSION are valid in that file? I can't find any examples that do that in the pip install docs. But if you're sure it's ok, then try getting rid of the spaces around the >=.
@PM2Ring Thanks for the reply, please see travis-ci.org/ByteCommander/ChatExchange6/jobs/80602301 line 260. I wrote an echo before to make sure the variable is set, and it is.
@Ffisegydd I wish you could make that into a conversation. Maybe a candidate for a wiki page
@ByteCommander Looking here pip.pypa.io/en/stable/user_guide/#installing-packages you might need to remove the spaces as per @PM2 and quote the whole thing (somewhat couter-intuitively IMHO)
Okay, triggered a new build...
09:47
i.e. here in your script quote 'pytest>=$VAR_NAME'
Yeah, if that stuff's in a shell script you definitely need to prevent the shell from interpreting the >.
Ah - @PM2 has divined why the quote is necessary
But now it also does not interpret the $VARIABLENAME any more...
try moving the quote between = and $
you might need a dot between them. Can't remember how you concatenate strings in bash
Committed, pushed and built.
pip install 'pytest>='$PYTEST_MINIMAL_VERSION
09:50
works? :D
^ was successful! :) Finally \o/
Thanks very much!
'pytest>='"$PYTEST_MINIMAL_VERSION" would be slightly better
As long as it works too, I'm also fine with that. Different single/double quotes are intended?
pleased to be of service. Trust PM2 on safest bash syntax BTW. I am cursed to use Windows too much.
@ByteCommander "pytest>=$PYTEST_MINIMAL_VERSION" will probably work, too.
09:52
4 mins ago, by Byte Commander
But now it also does not interpret the $VARIABLENAME any more...
That did not work.
The convention is to use single quotes unless you need parameter expansion, i.e., you need $VARNAME to be expanded into its value.
@PM2Ring Should double quotes allow expansion within them, then?
I would fire up vbox, but it's got in a tizzy because I tried to start it with a Linux install USB absent mindedly left in the computer too and now windows doesn't know whether the service is stopping or starting.
Yes. And if you don't use double-quotes then you get word splitting. Which is generally not desirable: if VAR contains a filename with spaces, then some_command $VAR will see each of the separate words in VAR as separate args.
@JRichardSnape Oh dear. Windows is so helpful like that...
@PM2Ring triggers dim and distant memory of learning this before and, plainly, forgetting it since. Indeed, Windows is very hepful in these regards
It's easy to forget that sort of stuff when you're not using it regularly. IMHO, Bash syntax is ok when you're used to it, but if you only dabble in it occasionally it can be a bit arcane, especially the stuff relating to word splitting. The rule of thumb: when in doubt, wrap it in quotes. :) Normal stuff goes in single quotes, anything starting with a $ should be wrapped in double quotes unless you know you really do want word splitting.
10:15
CBG all
Hello.
I found this question very interesting but don't have the time to do it :(
And I was not able to create a pseudo for it .I think it is beyond my level :P
@VigneshKalai I think the question is not clearly worded - depends whether order is important - I think it is, but the upvoted answer that the OP is "trying out" clearly can't (guarantee to) preserve order.
But as per his sample output he does want order implicitly saying
yeah - it is implicit. But all the answers are assuming it doesn't matter and treating it like a graph clique problem, or set union problem (which are effectively the same thing in this case). I commented to try to clarify OP said "I don't know" so I'm out
10:37
Richard, did you try it in Python 3?
yes - you are right
Py3.5 to be exact
And just done it with 3.3 to check
all fine - OP is struggling somehow, I think. Yet another where the level of the question seems to display quite a mismatch with the understanding of the OP.
@JRichardSnape Maybe. I was going to say his null list may be due to something simple like an indentation error, but changing the indentation on that filtering operation only affects the efficiency, it doesn't affect the result.
pass. There is probably some difference between the case he's put in the problem and what he's actually working on. Hence the pregnant pause while he goes away to test what should take 30 seconds to paste into a file and run.
Grumpy today. Probably need more coffee
P.S. @Pm2 re your comment about mentioning that he knew why it didn't work. He did, in bold, at the bottom...
10:54
@JRichardSnape Sure. He said he knows why it doesn't work, but he didn't actually tell us why it doesn't work.
Anyway, I've had enough of that question. :)
Me too.
Anyone seen anything tricky looking today? I fancy a challenge.
I was looking at this one might interest you @pm2 but not Python. However, I can't for the life of me see why the OP is using that particular numerical approximation and no response to my query on same.
@JRichardSnape wtf?
They're doing some strangeness @antti. Off on a wild goose chase IMHO, but I'm always drawn to the maths-y questions. Usually there's some reason that they don't have to do it the way they're trying (i.e. a big XY going on)
i*(10^-20) vs i*(10^-60)
I think it all boils down to "bit off"...
..."more than they could chew"?
11:06
of course the problem is that in every other case the difference is just rounded
in this case it is not, because the doubles have about 15 digits of precision and it all comes pretty close to 0
there is nothing interesting in that question
It did make me laugh
and I haven't done any complex analysis in ages but... seriously?
Some people are interested in calculating constants to a great precision... However, it is like an old joke here "How would you get to London from Helsinki?". "Well, I wouldn't start from Helsinki..."
or...
maybe they want to measure the distance from Helsinki to London with nanometer accuracy
Indeed so. And are concerned when it doesn't match with someone else's number that has measured it in electron-widths
11:12
that's about the same scale as how much error there is from 0i to that :P
now the problem of course is how do you fix 2 points with nanometer accuracy
and even after then the relative motion between these points must be significant :P
I feel like I've jumped onto the XKCD forum... It is a good point, of course.
of course one needs to be cautious because seeing some good results does not mean that all results are right
but like "seeing that these 2 numbers were off"
^^ c .f. We "found" particles travelling faster than the speed of light a year or two ago
CBG all ... :)
cbg @vineet
11:17
@JRichardSnape you did?
@AnttiHaapala I did not. I was with the scientist who said he would eat his shorts if it were true. Some group in Italy claimed it. But it was down to measurement error, predictably enough. Some good results, followed by a bad one that they trusted iirc
@JRichardSnape I don't know Java. And if I want high precision Zeta I can get it from mpmath. FWIW, I just found an error in a Zeta calculation in a comment on the linked SE.Mathematics page
There was more to it than that - science with caveats blown up into press release, over ambitious professor yada yada
Was trying some regex ....found that start() assumes 0-based indexing but end() assumes 1-based indexing. Not sure why it is that way?

>>> m = re.search(r'\d+','1234')
>>> m.end() #I was expecting it to be 3 because m.start() was starting with 0
4
>>> m.start()
0
@PM2Ring yet that one could be pasted as a comment there :P
11:20
@PM2Ring Thought it might pique your interest :) Yeah - there are much better ways - I think the Java question is just obfuscating really. Unless they really do want to try for ~100 s.f. complex arithmetic and functions in Java as an exercise.
"I wrote my own math library in Java" is like "I wrote my own cryptographic algorithm in Python" or "I wrote an SSH server in PHP"...
like, you must presume that it is b0rken beyond imagination.
@AnttiHaapala Yeah. From a quick skim of the comments, it appears that the OP doesn't have the skills to do the job properly. Eg
This (new) class Complex, using BigDecimal: do you really think that calculations with a very high precision helps while calling all Math functions using double, with just 15 significant digits? — laune yesterday
My thoughts too. And I am offended, offended I tell you, that you get a reply in 2 minutes to your comment and yet nothing on my "why are you doing it like this?" query :)
11:24
:) Note that my reply was from gammatester, not Axion004
That one did make me laugh. I applaud laune for trying his (or her) best there.
@PM2Ring indeed,
all of the transcendental funcs are evalled with doubles :P
"Although, I don't think this is the direct issue which causes the floating point arithmetic to create differences."
@JRichardSnape That reminds me of a similar thing in the Python tag a few months back. The OP was using Decimal to do some high precision calculation, but he also need a square root, so was using math.sqrt(). :)
:)
Interestingly - a quick google and follow the wikipedia entry for "arbitrary precision floating point libraries" reveals this apfloat.org/apfloat_java which looks worth a punt. Although Antti's assumption from a few messages up should be employed until proven different.
I added a comment to the Java question:
Pity you need to do this in Java. If you were using Python, you could do arbitrary precision Zeta calculations using mpmath, including calculating various orders of Zeta function derivatives, and finding zeroes. — PM 2Ring 26 secs ago
11:33
I'm going to see if I can simply plug the formula into that Java library for kicks over lunch. Like Antti says, there's nothing interesting about this question, which is probably why I get stuck on it...
Derived from a newbie mistake: How to set the first element of a list to be the same as its last element, the slow way:
for a[0] in a:pass
:)
@PM2Ring WAT
11:48
I was a little surprised that it's not a syntax error. Maybe it should be...
for i, a[i] in enumerate(a[1:]): pass
^ Even more wat.
Why does that work.
That shouldn’t work.
Please make it stop.
wat
it makes sense in a way
Of course, but it really shouldn’t work.
Especially using i in the other target…
well, it is defined before it is used...
For loops use the same target_list grammar that assignment does. If [stuff] = expr is legal syntax, so is for [stuff] in iterable:
Theoretically at least
>>> for [] in [[]]:
...     print "Hello"
...
Hello
11:58
Cycling lists:
>>> a = [1, 2, 3, 4]
>>> for i, a[(i - len(a) - 1) % len(a)] in enumerate(a[:]): pass

>>> a
[2, 3, 4, 1]
>>> for i, a[(i - len(a) - 1) % len(a)] in enumerate(a[:]): pass

>>> a
[3, 4, 1, 2]
>>> a, a[0], a[a[0]] = [None, None], 1, 2
>>> a
[1, 2]
Hmm, yep, this is dumb
It works in list comprehensions too
yes
it is because the syntax allows any expression of ctx=Store()
>>> x = lambda: None
>>> for x.i in [1,2,3]:
>>>     pass
I must remember this the next time I write an obfuscated one-liner.
class Foo:
    def __init__(self):
        print("Created a new Foo")
    def __setattr__(self, name, value):
        print("Now", name, "=", value)

for Foo().x in [1, 2, 3]:
    pass
I do not understand why they want it this way
12:09
Kevin. I accidentally left out the leading factor of ½ in that kinetic energy calculation last night. Sorry. But I guess errors that are less than an order of magnitude are ok for engineering work. :)
morning cabbages
Likewise, when I divided the Earth's kinetic energy 1e29 by humanity's yearly power consumption 6e20, I ignored the 6 and just compared the exponents.
@AnttiHaapala So the target expression is executed on each loop, interesting.
anyway it is not an accident
Either this means that our approximations canceled out, or doubled down in wrongness.
12:12
Hey again, I'm having another problem with my project... Could some of you please have a quick look at my question?
0
Q: Python 2 - add method to imported object

Byte CommanderUsing Python 2.6, which does not have logging.Logger.getChild(name) implemented yet, how can I backport this function inside an existing program that relies on it? The code of the function can be basically reduced to one line, which I try to put into the Logger class as lambda function like this...

Having not read the question, first I recommend upgrading
There's a solid 70% chance it will fix whatever problem you're having ;-)
@ByteCommander Please keep our rules in mind when asking for help.
Reading... I'm right, but it is a vacuous truth. Of course abandoning 2.6 means you don't have to backport functions to 2.6
orning
@Kevin I am running my program on Python 2.7, 3.2, 3.3, 3.4, 3.5, 3.5-dev and 3.6-dev. I now wanted to also make it 2.6-compatible.
12:14
Heroic.
… and a bit crazy
Why support more than 2.6 (for RHEL), 2.7 and 3.5?
Why not? 2.7, 3.3, 3.4 and 3.5-dev worked out of the box. 3.5 and 3.6-dev had/have problems with the test tools, but my program seems to work though.
@wonderb0lt do not support 2.6
2.7 and 3.3-3.5 are effortless
@AnttiHaapala What about the poor sods that have to work with RHEL?
12:20
@wonderb0lt yeah, those computers running RHEL R HEL.
huehuehue
exhales slightly stronger than usual :)
@wonderb0lt Even with a super old OS, you can still compile Python yourself, no?
The sooner that every modern project fails to work on 2.6, the sooner this RHEL thing will cease to be a viable technology. Thus bringing their current users into the current century.
12:21
anyone running RHEL probably does not want to run new programs
@poke Not if I just want to install "Rando Library #5154"
@AnttiHaapala Ubuntu e.g. comes with 3.4.3
RHEL might support 2.6 as default, but isn't it recommended that you don't use the system default anyway (even if it were the same version that you wanted)?
upcoming ubuntu wouldn't even install Python 2 by default.
out in next month
@AnttiHaapala Oh, Ubuntu is finally getting worth using again
12:22
No idea about RHEL recommendations, I just had to work with it a while back and was frustrated
So if my Mac comes with 2.7 and I want to use 2.7, I still install my own (homebrew) 2.7 version.
@Ffisegydd negative, system built ones on ubuntu are best
in which case I just installed pyenv iirc
only mac is shit :D (and RHEL ofc)
Really? I thought there was some idea of not messing with the system default (and thus possibly accidentally borking your OS).
12:23
I am not messing with the system default when I am using it
I am becoming irrationally angry at type error when sprintf list into string with python2 on linux for its misuse of terminology
Problem solved! :D
It was not the overriding itself, but the version check.
I do not know if I want to close that as a dupe
because the other one is like "how to do it in the old style"
but I'd like to point out that using the old style sucks exactly because of these things.
@poke - len(a) is redundant, it's % len(a) anyway.
@bereal Yeah, possible, I wanted to solve it in a different way first
12:32
Guys, twisted framework for python is awesome
is it still there?
(more shameless stealing from javascript room)
.@codinghorror COULDN'T HAVE SAID IT BETTER MYSELF SOME PEOPLE ARE JUST EVIL TO THE CORE AND THOSE PEOPLE ARE ALWAYS JAVASCRIPT DEVELOPERS
PHP_CEO is best twitter user.
ahh
who added the other duplicate...
Python wiki - Beginners Guide / Non-Programmers Link to LPTHW is no more. It has ceased to be. It's expired and gone to meet its maker. This is a late link. It's a stiff. Bereft of life, it rests in peace. It is pushing up the daisies. It's rung down the curtain and joined the choir invisible. This is an ex-link.
12
12:51
<3
@Kevin I like the Big Ben Clock more…
Just spent the past hour trawling through OSS licences.
Come the revolution, everything will be licensed under MIT.
I also have a soft spot for the Sweet Meteor O' Death
I can get behind his foreign policy of "vaporize all foreign countries", although I'm a little iffy on his domestic policy of "vaporize America".
Sounds like Corbyn.
12:55
Haha SMOD is awesome
@AnttiHaapala it's pining on the fjords.
Estimated 100% Of People Who Vote For Corbyn Will Die Within A Century, Warn Scientists
Damn it twitter, onebox properly. There we go.
The election wasn't even polarised

« first day (1796 days earlier)      last day (3377 days later) »