« first day (1968 days earlier)      last day (2999 days later) » 

2:31 AM
I'm gone. Rhubarb everyone.
 
 
2 hours later…
user559633
4:26 AM
morning cbg
 
user559633
4:49 AM
i forgot that the iteration var in a for loop isn't a local. e.g.:
 
user559633
for _path in list(range(0,10)):
    # pretend this does something
    pass

print(_path)  # 9
 
user559633
i guess i could see how having it left over could be a neat little shortcut for grabbing the last item processed by the loop, but oh man did it ever just cost me 3 very sleep deprived hours
 
are there any other type of hours?
 
user559633
sometimes i'm decently rested. what's sad is that i wrote the original code on like 10 hours of sleep. in my defense, i'm a terrible programmer and generally have no idea what i'm doing
 
I just hit keys at random, its worked for me so far
 
user559633
5:02 AM
ha. i think my takeaway lesson is "don't name your loop variables '_path' when dealing with iteration-heavy workflow wherein "path" is a loaded term
 
hmm...do we have a canonical question on calling a class method from a different class
 
user559633
never mind
 
hmm...should look for one on creating a class instance that references a separate class (using object) as that is the better answer anyway
it is far too late for me to deal with OP's changing questions after being answered (to one with dupe targets too) - making my answer pointless
 
user559633
5:19 AM
yeah, don't you have two major things requiring your attention? :)
 
finished article actually
 
user559633
Oh, congrats!
 
now if only I could get my data to stop being so persnickety ;)
also, thanks
 
what is a test client?
 
user559633
@Sean context?
 
user559633
@Sean click the hyperlink
 
documentation reads "Creates a test client for this application. "
wrt to: test_client()
oh I think I get it
thanks @tristan :-)
 
user559633
didn't really do anything to help, so anytime :)
 
user559633
i have a few tests in a flask app that use that client, but most of my tests are http lib calls that i've purposefully taught nothing about the internals of my application
 
heh...I only peeved off one undergraduate this week. I must be slipping
 
user559633
5:30 AM
you were busy
 
^okay
also, not sure if you remember, I asked about creating query strings the other day - figured that out, turns out it is very simple - you can just do something like this: ```return redirect(url_for(
"index_get"
,name=name
,greeting=greet
))```
 
"gbc"[::-1]
 
user559633
@Sean that's returning a redirect to a function by that name and passing arguments. if that was your solution, you were explaining your problem very poorly
 
user559633
cbg idjaw
 
yo tristan
 
5:33 AM
lol...cbg to you too idjaw
 
:) hey
 
@tristan I'm sure I could have explained it better. The key part for me was working out that I could pass arguments using url_for - thus, in my mind, I had 'created' a query string
 
user559633
that's not creating a query string. that's calling a function with arguments.
 
yes, those arguments get added to the url in my browser...
 
user559633
whatever floats your boat
 
5:36 AM
clearly I'm missing something fundamental
 
user559633
yes. see the thing i repeated twice :P
 
user559633
anyway. running on too little sleep to continue down that rabbit hole
 
no worries, thanks for your time.
 
user559633
no problem :) to save you time and others stress, when asking in the future, provide context like "when using flask and trying to return a url with a query string..."
 
makes sense, will do :-)
 
5:41 AM
hand face....why do people do such silly things as replace their questions with fluff
 
user559633
getting on a plane in less than 6 hours and i have 25 tabs open in chrome. the race is on to get what i needed from those tabs
 
they're likely to multiple
 
start by ctrl-w this one and get to it @tristan :)
 
@tristan going anywhere cool?
 
user559633
@idjaw b...b..b...ut the only people that can tolerate me
 
5:42 AM
when you put it that way....let's open up a beer and let the good times roll
 
user559633
@RobertGrant the new continent
 
user559633
@idjaw haha yeah, the airport is a magical place where it's almost socially acceptable to drink before noon
 
Sounds good
 
that's what I love about airports. They accommodate all time zones
announcement. Out for Justice is on TV. Whatever you think you are doing that is awesome, I win.
 
user559633
amusingly, i once took a flight in which my friends and i got unreasonably drunk for the 7am landing. we got to the airport and were like "oh yeah....time zones"
 
5:45 AM
haha
 
if you work nights 5am is drinking time
 
user559633
@JGreenwell if you work tech support, same.
 
I said nights ;P
 
user559633
i know what you said
 
well, typed
I used to get really weird looks from people at the dorms, barracks, apartment when I was drinking as they went to work
 
user559633
5:48 AM
at my first job, back when i could feel things, there was a guy that would go out to his car for "coffee." took me a month to realize that he was just getting shitty at 6am and not a connoisseur
 
I think it's the late hour that is making me laugh more than I should at that.
 
I remember some of my day-walker peers would chat me on perlmonks to try and determine how drunk I was by my typos (ah, to be young)
 
user559633
oh god coding perl drunk. as if it's not hard enough to later figure out what you were trying to do
 
We've all woken up to some Perl code we're too ashamed to admit we did last night
 
user559633
looking back, one of the more amusing trolls i've experienced is someone telling a new perl developer that the fewer characters you use, the faster your code runs
 
5:52 AM
....that...is...awesome
 
user559633
yeah, top shelf
 
user559633
i say "looking back", because i believed him at the time.
 
lol
 
Ah, zing :)
 
I remember getting really annoyed at a fellow student at my first college and convincing him that Perl was really all regex - yeah, the perl code actually gets run through a regex wrapper...
 
user559633
5:54 AM
.__.
 
Therefore, you cannot parse HTML with Perl?
 
it's a steven seagal marathon. Tonight just got hilarious.
 
I don't remember why he annoyed me so much....except that it involved Scheme and that by definition annoys me
 
Tries to sleep for a couple of hours
 
user559633
take care bobert
 
6:05 AM
night robert
 
later Robert!
 
user559633
6:19 AM
hooray for refactoring code until it doesn't work.
 
mine too?! It's a conspiracy!
it will have to wait until tomorrow, as it's time to recharge the batteries
night all
 
user559633
night
 
user559633
i wish python dictionaries allowed for future references inside of the same dictionary, e.g. {"root": {"node_a": "future_node", "node_b": b_func()}, "future_node": future_func()}
 
user559633
immediate use in mind: this would allow for arbitrary function dispatching and tree traversal
 
I'm using flask, and I want to use the flask method: flask.test_client(). However, I am getting an attribute error "'module' has no attribute 'test_client'". So I've run print(dir(app)) and found that the 'app' variable has the attribute 'Flask' rather than all of the flask attributes. Thus, does this indicate that I am not instantiating the Flask class correctly? (fwiw, app=Flask(__name__) is in a module in the package, rather than in the init...)
 
6:30 AM
Because you're importing a module you named app. Import the app object inside it. from app import app Also, pick a better name for your module than "app".
 
ah that makes sense
thanks! @davidism
 
@corvid The Talos principle and the dlc are 75% off right now so I finally got it.
Between that, The Witness, and Superhot, I am set for puzzles.
 
@davidism understood. fwiw, I did some looking at the various SO answers regarding modules not having attributes and wasn't able to resolve my problem... something that I am learning is how to improve my google searching (abstracting away from my particular version of a given problem). I'll continue working on it so as to be respectful of everyone's time in this channel :-)
thanks again
 
user559633
@Sean the effort is appreciated
 
6:46 AM
it is pretty cool to be able to rock up here and ask knowledgeable people questions :-)
also
the tests module is working now!
yes!
 
 
1 hour later…
8:16 AM
cbg
 
cbg
 
9:22 AM
Do you have an immutable list, whose append operator returns extended immutable list?
 
@ValentinTihomirov: tuple?
 
In [1]: (1,) + (2, 3, 4)
Out[1]: (1, 2, 3, 4)
 
Single elements must be wrapped into (1,) since append operates only for tuple + tuple. Thanks.
 
9:45 AM
cbg
 
what does cbg mean?
 
it means "cabbage".
 
what is its significance?
 
ha
thanks
interesting
 
9:47 AM
that page is also linked to from room rules sopython.com/pages/chatroom
 
would not have thought to look there
thanks
 
9:59 AM
Using Flask, writing some basic tests. I can't find the documentation on test_client().post() or test_client().get() - does anyone know where/what I should look for?
 
user559633
10:27 AM
The stackoverflow mobile site looks better than the desktop site
 
@tristan it's just a shame it doesn't have the same amount of functionality :(
 
Hello guys I want to make and automation project which is similar to Tasker for Android in python. Events and tasks. For example poll a function and run something if that function return a particualar value. If this happens do that.
 
user559633
@JonClements haven't run into that yet
 
Any library recommendations?
 
user559633
10:30 AM
Oh, no RO tools on mobile :/
 
To be clear I want Tasker but in Python(Linux)
 
what's the mysqldb alternative
 
as in DB API 2 lib?
 
pymysql and the official mysql connector
 
I like pymysql - for a while it was the only one that worked on 3.x - plus it can register itself as though it was mysqldb if required - so covers all the bases
 
10:33 AM
0
A: Unable to install mysqldb on python

Inbar RoseI don't know if you need that specific module/package. But you can get the official mysql-connector for python by specifying this package: mysql-connector-python-rf

 
heya @Inbar - how goes it?
 
Goes well.
 
@InbarRose does that support 3**.2**
 
Yes.
 
No really a complete one like tasker but an event and tasks thing. Do I have to write from Scratch? What libs do you recommend? I'm thinking Celery
 
gpl licensed :F
mysql/oracle sure is one successful troll
 
Who'd use GPL for a library? GPL is for protecting projects that may be turned against users otherwise. Like a kernel or Operating System
I guess they have a custom license and they want to make money
 
@Wally trolls. And yes, your guess is very much right
 
user559633
Surprised Oracle went GPL. I figured they'd want to do the Microsoft embrace/extend. But maybe they're wanting to do that for the db itself and pretend they're not evil via marketing on the driver
 
they never "went" anywhere, mysql has always been trolling like mongodb
about gpl infecting over sockets and such
GPL is about protecting the freedoms of users not fscking them up :D
 
user559633
10:43 AM
^exactly. I don't see Oracle caring about its users
 
user559633
Well, and GPL is also about plugging your ears with your fingers and ignoring reality
 
I think they've pretty much changed the reality by now
 
user559633
Yes. 2016. Year of GNU/Linux on open firmware
 
I am using linux in all my mobile devices, laptops, desktop computer, wifi routers and the embedded devices I am developing
 
LOL! Richard Stallmans laptop may be the only laptop without many blobs.
 
10:47 AM
most of them with GNU
 
user559633
Is it GNU though? Did you install from proprietary?
 
most of them still has got this dormant cancer yes
 
Not GNU. Only Linux. I guess. How do you run GNU on Android?
 
but what is the fscking reason to keep the firmware closed
 
user559633
Because things cost money.
 
10:49 AM
having seen myriad people on stackoverflow answering so badly on C questions, and then when I check their profiles, they're apparently firmware developers
the reason to keep the firmware closed is that it is a business secret
exactly what is business secret is that it is so f*cking bad.
 
If you make drivers for GPUs and SOCs open it'll making cloning GPUs and SOCs easy and if you did that you'd have to shutdown since all your competetors have the tech you have but you don't have theirs.
 
user559633
Alright boarding time. If my plane crashes, remember me by banning fizzygood repeatedly
 
:D
okie
which flight
we'll follow you on flight radar
@tristan gone yet?
who quits stackoverflow chatwhen boarding STARTS?
Final call that is!
 
Donation-ware is the answer.
 
user559633
Aeroflot #102
 
10:58 AM
Raise money on Kickastarter to make Open Hardware.
 
user559633
Yeah, good luck with that
 
Except it won't work beacuse people don't know what Open Source is and why it is important.
But Kickstarter has helped some Open hardware, but I also found many closed projects on Kickstarter. Like the Smosh Game. They basically ripped people off. I unsubbed to Smosh after that.
 
IIRC that GPL started with Richard Stallman not being able to fix a printer driver...
It was because of this give-and-take philosophy that when Stallman spotted the print-jam defect in the Xerox laser printer, he didn't panic. He simply looked for a way to update the old fix or " hack" for the new system. In the course of looking up the Xerox laser-printer software, however, Stallman made a troubling discovery. The printer didn't have any software, at least nothing Stallman or a fellow programmer could read.
Until then, most companies had made it a form of courtesy to publish source-code files-readable text files that documented the individual software commands that told a machine what to do. Xerox, in this instance, had provided software files in precompiled, or binary, form. Programmers were free to open the files up if they wanted to, but unless they were an expert in deciphering an endless stream of ones and zeroes, the resulting text was pure gibberish.
 
Okay - now that Tristan's not watching - let's crack out the surface to air missles :)
 
I filed a Right to Information application to a local university asking if they were using any pirated software. Provide invoices for the software you purchased. Etc. That'll give them a nudge to Linux and Open Software. Also I noticed the government library was running pirated XP. I give them the RTI treatment next. I've never seen an instance of a government institution running purchased software instead of pirated ones.
 
user559633
11:05 AM
@JonClements you get one shot. Good luck
 
Might need it - I think the targeting mechanism is written in KevinScript <g>
 
But I wonder what they are going to do. I'm worried. I don't think they can install Linux cos the local IT guys that maintain their computers don't know what Linux is.
But I'm curious as to what reply they provide.
 
@tristan grr... that's a long flight - have a safe journey mate
 
@Wally freedos?
(cabbage by the way)
 
user559633
@JonClements oh cheers. It's one of two today.
 
11:18 AM
@tristan that was quick
 
user559633
:) oh I wish.
 
Are you talking in code language?
 
cbg @AndrasDeak
 
@AndrasDeak If they knew what Freedos was they'd know what Linux is.
 
I guess...they probably haven't seen the command prompt yet:P If our IT guys at the university are any indication.
 
user559633
11:22 AM
Having managed uni IT, it's also possible they just don't want to get into it with you :P
 
I assumed that any IT doesn't want to get into anything with users:D
 
Why associate with people that are the cause of all the problems :)
 
user559633
11:39 AM
The Danish?
 
user559633
j.k. I like their dogs. They're great.
 
Cabbage!
 
user559633
Cbg
 
user559633
And rhubarb for me. Have a good day all
 
@tristan lol
 
11:43 AM
@tristan bon voyage!
@tristan I like their bacon :p
 
Hi , can anyone guide me to a chat room where I can discuss something related to machine learning algorithm.
 
@NikitaChopra you should probably ask in the Data Science chatrooms.
Asking here for directions isn't really appropriate either.
 
ok sorry and thanks
 
Can anyone tell me why uwsgi performs so much worse than just wsgi in benchmarks? I thought the whole idea of using uwsgi was to optimize the whole thing so it isn’t just a single wsgi process
 
12:11 PM
Cabbage everyone.
 
@poke Overhead of a master/slave model?
cbg @Zondo
 
12:26 PM
@JonClements But shouldn’t a benchmark that puts a maximum amount of load on it eventually show that the overhead gives a benefit in the end?
 
12:40 PM
hey I have a question and am unsure where to post it or even which chatroom to ask where I should post it. What do I do?
its a programming question but i need a formula to calculate angles, so would this go in programming, python, or mathematics?
 
If you need help figuring out the formula, go to math. If you need help implementing the formula, go with the language you are using.
 
We don’t know the question, so we cannot give you an answer to that. Maybe you should just try asking it and maybe we can help, or we can direct you somewhere else?
 
cabbage
 
cbg @PM2Ring :p
 
cabbage
 
12:44 PM
ok, I am writing a simple game in pygame, and I need a neat forumla to calculate the angle based on the x position, such that, at the left side (0) the angle is between 90 and 45 degrees, in the centre it is between 135 and 45 degrees and at the right side it is between 135 and 90 degrees. I worked out that if I make the screen 630 wide that works out to 14*45 but can't work out how to sort this. I need the angle available to vary dependent on the x position between the limits stated above
 
@marienbad Probably SE.mathematics. And unless your problem is really complicated or unusual there's a very good chance the answer already exists there. And if it's a fairly basic thing it's probably on Wikipedia.
 
It definitely doesn't sound appropriate for Python, or a programming chat in general. PM has a good shout in SE.Math
 
ok, posted there, thank you
 
@marienbad What you want probably comes down to simple trigonometry, but it's not clear from that description what you want to do. A good diagram would help enormously.
@marienbad You'll need to explain it more clearly, preferably with the aid of a diagram, or your question will get closed.
 
ok
how do i edit the question?
 
12:51 PM
There will be an edit button at the bottom of the question, before the answers start.
 
The buttons just look like words, not buttons, share cite edit flag but they change colour when you hover over them. Or just click here :)
 
When it comes to a trig problem, a diagram is priority #1.
 
i wrote a comment - how do I keep the formatting? blcokquote?
 
@zondo: Good call, unless they hack ipython. :)
I warn you now. This is probably impossible. — zondo 22 mins ago
 
Yeah, I didn't want to say it outright because I'm not positive that it can't be done. It's just very unlikely.
 
12:57 PM
In what language is ' used as a thousands separator?
I would have thought that locale would handle that for you.
 
@zondo I know nothing about ipython, but a quick Googling turned up nothing useful.
@Ffisegydd You'd think so, but it looks like it you need to call the relevant functions explicitly.
 
@marienbad You should not be adding your diagram as an answer to your question.
 
@marienbad You need to put that extra info into the question itself - it's not an answer!
 
You should edit it into the original.
Heh
 
there is no edit button, only share and cite
 
1:00 PM
Why is your username there different to your username here?
Did you sign in over there?
 
@Ffisegydd just what I was about to ask
 
morning cbg friends
 
Morning cabbage-patch kids.
 
morning
 
no just posted
ok, gotta go an get some sleep
 
1:03 PM
@marienbad There certainly is an edit button. And I put a link to it in a previous message here. But I guess it may not be visible if you aren't logged in over there.
 
yeah i think that is the issue
really gotta get some sleep, gotta go to my folks later, its mothers day here
laters7
 
bye
 
Woo. Broken 14k. Slowly but surely getting to 20k.
 
@Ffisegydd congrats:)
 
Noice, Fizzy.
 
1:05 PM
At my current rate I should have 20k sometime late 2017.
 
@marienbad you now have 2 comments as answers, which should be edits to the question. I suggest registering your account on math.SE, which takes exactly 0.5 minutes given your existing registration on SO (you can extend your account to include math.SE, which is what you should do). Then you'll have a common account for both sites, and you'll be able to edit.
 
@Ffisegydd I wonder if it could be hacked via PYTHONIOENCODING...
 
@PM2 well you'd have to work out how to do it in pure Python first. Not even sure how to do that.
You'd have to overwrite the __repr__ methods for floats and integers.
 
Me neither, but IIRC the codecs stuff is pretty versatile
 
1:09 PM
As the OP seemed to want to print(1000) to return 1'000
Which is obviously very different to print('{:d,}'.format(1000)) :/
 
@Ffisegydd That was my first thought, but it might be simpler just modifying everything in the console output stream
locale can handle weird thousands separators, but I think you'd have to create a custom locale file for it, which is a little bit painful.
 
Yeah but wouldn't locale only work when using string formatting? To get it to show when printing the actual representation of the object is mental.
O.o
 
Well, that looks pretty straight-forward. :)
 
Fair play to Padraic there.
That's pretty damn impressive.
 
Indeed
Yet another poor kid getting confused by LPTHW: stackoverflow.com/questions/35826987/…
 
1:23 PM
How many answers!? sighs - how come that's not closed as a dupe yet!? :(
3
Q: Identifying a film where students take a drug that causes craving for blood

Jon ClementsThe basic premise is that someone rediscovers the formula for a drug that induces a state of ecstasy in the user. However, the side effect is that the user ends up craving blood. I suspect I would have watched this around 2000-2002. The scenes I remember (unfortunately): Several students are ...

Anyone had the misfortune to have seen this and can identify it? :p
 
@JonClements It's a slow day & people want rep. :)
 
anyone wanna hammer this one? It's probably going to attract as many answers as the question Jon just posted: stackoverflow.com/questions/35827384/…
 
@PM2Ring That was my first book, and I had no trouble. It probably helped that my brother had quite a bit of experience using other languages, and I had to ask him some questions every once in a while, but overall I didn't really get confused much.
 
I already voted to close the dupe, so it's in the close details already
 
@idjaw done - thanks :)
 
1:28 PM
cheers
 
@zondo Fair enough. I've never read LPTHW myself, just bits and pieces. And I guess if you do work through the whole thing he does fill in most of the gaps. But we've seen tons of questions on SO from people who are part-way through LPTHW who have weird gaps in their knowledge and strange misconceptions of how Python works.
And it was that pattern of weird questions from LPTHW people that prompted the creation of the LPTHW Complaints list (mostly compiled by Antti)
 
@PM2Ring That's true. When I come to think of it, the questions that I asked my brother sound really stupid now.
 
And as I've said before, I'm a bit suspicious of a Python primer written by a guy who publicly claims that Ruby is superior to Python.
 
^^THAT!
 
How could anyone be so deranged as to think that?
 
1:34 PM
en.wikipedia.org/wiki/Zed_Shaw "Zed A. Shaw is a software developer most commonly known for creating the Mongrel web server for Ruby web applications..."
 
@zondo I've had up-close and personal experience of that particular individual that would suggest his derangement is a generalised condition
 
hello, can someone explain #19 in the LPTHW complains page(sopython.com/wiki/LPTHW_Complaints)?
 
well speak of the devil
 
hello, can someone explain the winning lottery numbers for Wednesday?
/me waits patiently
 
I usually interchange methods and functions frequently too not sure how is it in python
 
1:39 PM
sys.argv is arguments to the program, but the problem there is that he introduces that before he introduces arguments to a function. He then compares arguments to a function to arguments to the program which seems kind of backwards to me.
 
@krato A method is a special type of function because it's attached to a class as a kind of attribute. And in Python it "automagically" gets passed the class instance as its first parameter, so you don't need to mention it in the call, but you do need to mention it in the parameters of the method's definition. So it's a good idea to not treat "method" and "function" as synonyms.
 
Note that the automagic only takes place when the method is called as an attribute of an instance. You can access it as a pure function (when the first argument must be passed explicitly) by referencing it as an attribute of the class.
 
@PM2Ring thanks! that's how I initially understood it. That methods are those that are 'object functions'. It's a bit confusing at first if you came from a Java background.
 
@zondo Indeed. I guess it kind of makes sense to someone whose used to working in the CLI. But for somone learning Python as their first language with virtually no CLI experience it's bloody stupid.
 
Python does seem very different from Java, because of its philosophy of being a programming language "for consenting adults" (i.e. those prepared to act responsibly rather than requiring the language to protect them from their folly).
 
1:47 PM
correct me if i'm wrong, so in python, generally functions are those that are not inside a class. Pretty much outside, so maybe inside a module.
 
Nobody corrects you. ;)
 
I'm still looking for a good dupe target for that LPTHW 'if' not followed by conditional statement question. I found this: stackoverflow.com/questions/53513/… and it has good answers, but the question itself isn't a good match for the other question.
@krato Pretty much. A method is a special type of function because it's an attribute of a class. Actually, in Python you can define a function outside a class definition, and then attach it to the class, or an instance of a class, if you really want to.
 
I learned from LPTHW as it came highly suggested in many resources, but I completely agree with the complaints page(just found it a while ago), particularly about it being condescending. LPTHW is not that good of a resource though, I just took what I can learn from it and read the docs as supplementary.
I really did not get why the author hate python 3 so much...
 
Because he teaches Python2. He doesn't want to go out of business :)
 
@zondo Allegedly, a Python 3 version of LPTHW is in the pipeline.
 
2:00 PM
would you guys recommend learning python 3 though?
 
Zed Shaw is a very accomplished person in many ways, and seems to be able to achieve proficiency in any activity he undertakes. Certainly in Python, however, his descriptions do leave a lot to be desired
 
@krato You absolutely should learn Python 3
 
Would someone like to give the final approval for the pending edit on that question? stackoverflow.com/review/suggested-edits/11525834
 
On the question of whether to learn Python 3, I would claim that anyone learning it would find that they could become proficient in Python 2 in a day
So yes, learn Python 3, backfill to 2 if you get involved in a Python 2 project
 
I still don't know much about Python 2's encodings/types
 
2:03 PM
@holdenweb How about learning python 3 in a day comming from Python 2 (medium proficiency)?
 
Oh yeah, pretty much the same applies only moving that way the delight factor increases, because you see (for example) lots of iterables being replace by generators
 
@krato To be fair, his anti-Python 3 stance comes from when it was still fairly new and the vast majority of 3rd-party modules were Python 2 only. And Python 3 still had a few glitches that needed ironing out.
 
If you have to descend into the bowels of IO they can be pretty different but most stuff isn't, and superficially they appear almost exactly the same
 
I was initially put off by 3.0 because of the IO issues
 
I really like how generators replace iterators. Anyway, I'd probably learn python 3 from the docs. Do you guys recommend any other resource good for python 3 learning?
 
2:09 PM
I consider (rightly or wrongly) 3.3 to be the first proper 3.x series
(3.0 to me was like a backwards incompatible broken version of 2.7)
 
@krato The best teacher: practice
 
@JonClements you mean extreme IO sloth in 3.0? Yeah, that was bad, but fortunately turned out to be an implementation detail :-)
Or do you just mean the difference generally?
 
Yeah... did mean I couldn't use it as all my work at the time was disk bound :)
 
I s'pose for people who aren't used to dealing with text differently from binary data it might be strange that files opened in text and binary mode return different types of values, but it really makes sense
Not only that, it allows people who need to encode byestreams containing components in multiple encodings a framework they can work with. David R Murray's work on the Python 3 email package (which obviously has those issues) was heroic
(or is it R David Murray?)
 
2:25 PM
The later rings more of a bell for some reason
You should know this stuff better than I being the former Chairman and all that! :p
 
If this is the guy you are talking about, it is R. David Murray. (His description is "CPython maintainer (especially email stuff), contract programmer, IT consultant, contra dancer, SF aficionado.")
 
@Zondo that's the one :)
 
All I had to do is put "R. David Murray" into my search engine. I've never even heard of him before.
 
2:45 PM
Hey @zondo. Looks like you have a HV friend that needs your help. ;)
@zondo any ideas haha? :D — JohnPal 10 mins ago
 
@PM: Thanks. I didn't know I had any friends outside of this room ;)
 
:)
@zondo: BTW, file is ok to use as a variable name in Python 3, since the old file type no longer exists.
 
Thanks. I didn't know that. I'll edit my comment.
 
Still, it makes me uncomfortable seeing file used as a generic variable. :)
 
Definitely.
 
2:56 PM
And yeah, it's nice to write Python code that runs on 2 or 3, unless you specifically need 3 stuff.
Although Antti Haapala may disagree with that viewpoint. :)
 

« first day (1968 days earlier)      last day (2999 days later) »