« first day (2455 days earlier)      last day (2494 days later) » 
00:00 - 16:0016:00 - 00:00

12:18 AM
requirements dump, gimme the code stackoverflow.com/questions/44937324/…
 
 
5 hours later…
5:18 AM
cbg
 
5:38 AM
cbg @IljaEverila
 
6:05 AM
cbg
 
 
1 hour later…
7:26 AM
Lovely cold and rainy day. Good thing I've no holiday :D
 
7:52 AM
@IljaEverilä Those are the days I would like a holiday... tuck into a cozy warm blanket and watch some classic movies, probably Harry Potter.
 
8:20 AM
Hi everyone, first time in the room. I've got an issue in [django] with a legacy database where datetimes are stored in a different timezone. I opened a question 2 days ago to no avail. Could someone help me please?
In my settings I'm providing the TIME_ZONE in DATABASES but it seems like it has no effect
 
Cabbage :-)
 
8:39 AM
cbg
 
8:50 AM
@AshishNitinPatil That's what winter is for :)
 
it's warm and grey here
crude oil price is up
is high oil price or low better for the environment? With a low oil price people might use more of it (bad for env), but with a high oil price oil companies will see it as super profitable and continue lobbying hard for the industry
argh I'm an idiot, thing not working because this pandas column is all strings not floats
this would never happen in java!!
 
9:07 AM
Cabbage
 
Interesting parsing question posted, to parse lambda calculus
2
Q: pyparsing partial match or recursion limit hit

nickdmaxUsing pyparsing, I seem to be having trouble understanding why my grammar either matches partially or hits a recursion limit. lparens = Suppress("(") rparens = Suppress(")") name = Word(alphanums, exact=1) expression = Forward() function = Group(Literal("λ") + OneOrMore(name) + Literal(".").supp...

I even got to use a unicode Python identifier that wasn't totally gratuitous
And reading the "Lambda Calculus for Dummies" article was cool.
But this question really illustrates the value of mapping out a BNF before starting to sling parsing code.
 
9:23 AM
good thing I used pyparsing for the first time yesterday (today?) at 3am in the morning. I'm now equipped to understand this question.
 
@Rawing Ah, you never forget your first - what was your application?
 
I was trying to answer this question. I manually constructed a bunch of rules because I didn't know nestedExpr was a thing haha
 
Well nestedExpr is something of a cheat, it is just a short-cut to easily jump over nested text inside ()'s, {}'s or whatever. But it is poor for actual parsing, only giving you the raw space-delimited strings inside the nested text.
 
that seems good enough for such a simple structure like in that question. But perhaps there's an easier solution with some setParseAction magic?
 
No, this should suffice
LPAR,RPAR = map(Suppress, "()")
term = Forward()
punc_chars = ".?!"
value_expr = term | Word(alphas+punc_chars)
ident = Word(alphas.upper())
term <<= Group(LPAR + ident("name") + ZeroOrMore(value_expr) + RPAR)
term.parseString(sample).pprint()
[['S',
  ['NP', ['PRP', 'It']],
  ['VP',
   ['VBD', 'said'],
   ['CLAUSE',
    ['S',
     ['NP', ['DT', 'the'], ['NN', 'figure']],
     ['VP', ['VBD', 'was'], ['VBN', 'rounded']]]]],
  ['PUNC', '.']]]
setParseAction comes into play when you want to build something more like a real AST, with Node instances instead of just nested token groups
 
9:42 AM
Isn't that the same result you'd get with nestedExpr('(', ')'), but more verbose?
 
At this level yes. But we actually parsed that content, instead of just match-up on opening and closing parens.
Unlike nestedExpr, we can do more with the internals
I would define a Node class that takes a list of tokens, and attach it to term using term.setParseAction(Node)
Then you would get a more useful AST, you could add behavior to Node so that you can have the Nodes to whatever work you wanted, instead of brute-force re-navigating the nested structure.
class Node:
    def __init__(self, tokens):
        self.tokens = tokens[0]
    def __repr__(self):
        return "Node({!r}".format(self.tokens)
term.addParseAction(Node)
 
ah, I see. I just called .toList() on the parse result and called it a day. I have yet to explore the more advanced parsing capabilities
 
[Node((['S', Node((['NP', Node((['PRP', 'It'], {'name': ['PRP']})], {'name': ['NP']}), Node((['VP', Node((['VBD', 'said'], {'name': ['VBD']}), ...
 
at 3am in the morning I was happy enough with a nested list of string tokens :D
 
To be sure - this is telling someone who want to know the time how to build a watch
I won't post that as an answer on that question, I want to encourage others to post pyparsing answers, not discourage them by sniping their rep points.
I have to break off now - getting up for work in about 45 minutes
rbrb
 
9:57 AM
rbrb
 
10:45 AM
var seconds = Math.floor((remainingTime % (1000 * 59)) / 1000);
Worst thing I have seen today.
I don’t even.
 
that almost makes sense if remainingTime is given in kiloseconds
which in itself doesn't make much sense
no wait, it's milliseconds... I give up trying to make sense of that.
 
11:08 AM
4,646 rep, 4 gold, 24 silver, 47 bronze... need another bronze for my OCD
 
11:38 AM
cbg
@AshishNitinPatil OCD?
┬─┬ ︵ /(.□. )
(ノ◕ヮ◕)ノ*:・゚✧ ✧゚・: *ヽ(◕ヮ◕ヽ)
haha
 
hmmm. how likely is it that I've found a bug in pyparsing on my first day of using it?
I suspect the answer is somewhere between "not very likely" and "definitely not"
 
11:56 AM
cbg
@Rawing - what did you run into?
 
turns out I made a wrong assumption about how pyparsing parses things
I was surprised it wouldn't parse this:
a= Literal('a') | (Literal('a') + 'a')
b= ('b' + a + 'c')

print(b.parseString('b a a c'))
 
Switch the order of the two terms in a
'|' is MatchFirst, not match longest
'^' is Or, which evaluates all the alternatives and picks the longest match
So you could also change the '|' to '^'
 
I know, I know, easy workaround. I just expected it would explore all the other paths as well
 
(ノಠ益ಠ)ノ彡┻━┻
 
I chose '^' for longest-match because it looks like a pair of draftsman's dividers, so it picks the longest of all the alternatives
 
12:12 PM
Is Gil involved in multithreaded code, as mentioned here
Where there is scenario of shared resource
 
The GIL is present in all threaded programs. That's pretty much it.
 
All programs, threaded or not
 
"Does interpreter lock(GIL) comes into picture because globalCount gets updated by more than one thread?" Python is not interested in what the threads are doing. There's more than one thread, so the GIL ensures only one runs at a time.
Both of the threads could be doing nothing at all to any variables and the GIL would still manage them
 
The last time I read up on this, the GIL round-robins through threads, changing every 100 bytecodes, or if a thread goes into an i/o wait state - is that still pretty much correct?
 
12:17 PM
@Jake hyperbole :-p
 
Probably time to watch a recent YT video on the latest GIL news...
 
more like checking out PSF Mailing list
 
It is up to the threads that are sharing access to a variable to coordinate access so that they stay out of each others' way, usually using a threading.Lock or RLock
 
What is the idea behind GIL ensuring to run one thread at a time? On multi core processor?
 
cbg
 
12:21 PM
GIL predates multi-core processors
 
@overexchange I'm sure there's a lot of literature on the subject
 
If you're asking "why does the GIL exist to begin with?", I suspect there's a lot that's been written -- whoops beaten
 
Time to call it a day.
 
@Kevin what did you end up with for your druid, if I may ask?:)
 
12:22 PM
it's always fun to see Kevin get kevin'd
 
@AndrasDeak Elf with the fantasy equivalent of anterograde amnesia.
 
@AndrasDeak I have been thru dabeaz videos and all SO queries to understand this stuff. But no luck ...
May need more time to understand
 
@Kevin awww poor thing
 
Hmm, QA says the WidgetMap page half-loads and displays a "file not found" message box, but it runs on my machine. The fancy interactive map swf relies on a file ./fancymaps/maps/widgetmap.swf to execute... Maybe it didn't get uploaded to the server. I'll try renaming it to _widgetmap.swf to force an error on my machine and see if it matches... Nope, it runs just fine without that file, somehow???
If it's holding a copy in a cache somewhere I'm going to throw this computer out the window
 
Or your machine is not running the same code that QA is running
 
12:28 PM
Our deployment process got screwed up so now I email them a zip of the exact contents of my local directory, so that's not likely
 
@overexchange I guess the problem is that most GIL discussions discuss why it's bad and how/why it should be removed. But if you google stuff like "python GIL purpose", you can find posts like this. The common denominator seems to be that CPython was written with a GIL because this way the likelihood of non-thread-safe (C?) libraries breaking stuff is minimal
 
im using this code lethain.com/tailing-in-python to tail existing file and once read do a tail -f on file. The code works fine but can anyone tell when tail() function would be called
 
@pythonRcpp main -> readlines_then_tail -> tail
it first yields all the lines already in the file, then it starts to emulate "tail -f" by regularly checking for new lines
 
@AndrasDeak yes thats what it "looks " to be doing, BUt I put a print in tail() which never prints. I added newlines to the file hoping that tail is called when new lines are added but still my print inside tail do not print only added new line get printed
 
please delete and link a pastebin/gist instead
thanks
 
12:42 PM
My code with print statements in tail() ideone.com/F5miNm
 
readlines_then_tail should do "yield from tail()" not just call tail
In fact, it should be a two-liner:
yield from fin
yield from tail(fin)
I think this blog post may predate "yield from"
2010, yes it does
 
but that's no excuse for the first, right?
it should still yield whatever it gets from tail()
 
Yes, calling tail creates a generator but doesn't actually run it, so the print statement never actually runs
 
I did not get you @PaulMcG, you mean the code is wrong ? Is there a change I should make
 
Yes there is
Change "tail(fin)" to "yield from tail(fin)" (or "for line in tail(fin): yield line" if you are on older Python)
 
12:46 PM
im on Python 2.7.6
 
Ok, "yield from" is not in your repertoire then
Use the for loop
 
but interestingly it prints newly added lines , how is it able to do so without calling tail(fin) ?
 
Well, where is the only other place that lines are yielded from that file?
I suspect it is your readline()-in-a-while-loop up in readlines_then_tail
 
adding for line in tail(fin): yield line makes it print my sleeping msgs in tail() wow ! but I have no idea how this happened. Also if the code is able to print newly added lines without even calling tail then it can be removed .
looks like .readline is doing a tail -f ? isnt it
 
the point of tail -f is that it doesn't keep eating CPU (I think) while it's twiddling its thumbs for the file to update
 
12:55 PM
The while loop in readlines_then_tail is a busy loop, no sleeping/idling is being done
 
Currently baffled at Using (?#…) in python regex?, which quotes the documentation verbatim and says they are feeling confused and... That's it.
 
close as unclear
 
Personally I don't really understand why comment groups exist. What's the use case?
 
The while loop in readlines_then_tail is a busy loop, no sleeping/idling is being done and the point of tail -f is that it doesn't keep eating CPU (I think) while it's twiddling its thumbs for the file to update do you mean tail() will give a breathing space to cpu while sleeping and that is why it should be used (better performance) ?
 
I mean sure it's useful to document your pattern, especially if it's complicated, but you can do that just fine with regular Python comments.
 
1:06 PM
@pythonRcpp - run it both ways and see what happens
 
@PaulMcG both print line as and when added . Do you mean to time it or something to see which is faster. Results are identical
 
@AndrasDeak So, can I say that java jre author was able to implement thread safe memory mgmt unlike cpython author who introduced GIL, as a limitation? To not write multi threaded cpu bound code in python
Not to bias one on other, but to understand
 
I don't know anything about python's history, but I suspect that yes, Guido found it easier/more straightforward to use a GIL in the early days, and it stuck. But as I said, I'm only guessing, as I don't know the history.
 
I don't think it's accurate to say that memory management is the only reason the GIL exists.
 
I suspect that if you have single-core work in mind (and python is old!), a GIL can prove useful to ensure safety, and problems only become prevalent when the GIL starts to lead to more restrictions than freedoms
I'm sure a lot of cpython would be much more complicated if the GIL wasn't there, hence all the discussions about the difficulty of removing it
 
1:12 PM
someone in my workplace python chat just shared this
 
uh-oh
oh, I thought the pandas module; phew
 
stupid questions; what are interfaces? is it just a set of some functionality that is inherited by multiple classes?
 
@AndrasDeak yeah :-p there's a massive group who hate pandas tho here for some reason
I don't really get it but I used to work mainly in R so maybe pandas is made for me?
 
\o cbg
 
cbg
 
1:15 PM
@pythonRcpp The one that does not use tail() (which includes a periodic sleep) is a "busy loop", so it will suck up all the CPU reading and reading and reading, waiting for any new lines. tail() is better-behaved: it tries to read, then sleeps for a while before reading again.
But if that does not matter to you, then do whichever one you like
 
"the first test of a species' worthiness for conservation should be some instinct for self-preservation." Counterpoint: no it shouldn't be. As the dominant species on the planet, we can conserve whatever we damn well please, and natural selection can go cry in a corner.
 
such as ourselves
 
@corvid - I assume you mean the twisted.interfaces module?
 
The rules of the game have changed. Fitness no longer necessarily means being able to survive in the wild. Domestic cows are incredibly prolific because they're delicious. We can have pandas even if all they're good for is being cute and making China feel patriotic.
 
... and they are delicious!
 
1:20 PM
What's the article proposing here? Completely defunding the panda program and distributing the budget to the poor? They'll get ten dollars apiece.
This is the same kind of smoke and mirrors that makes people think that PBS and NASA are consuming 60% of the national budget
 
What? EVOLUTION is evolving!
 
@Kevin This lock is necessary mainly because CPython's memory management is not thread-safe.. from here. Not sure, if this is correct
 
Ok, so the "mainly" proves my point.
If that was the only reason, then they'd have said "entirely"
 
@PaulMcG no, it seems more 'conceptual' rather than an actual implementation -- I've seen it before, but only in college, where we made a program that implemented interface LinkedList in Java
Just saw it again, I think that's what I remember it doing
 
1:26 PM
@Kevin One more reference, here. the presenter mainly talks about reference count issue, for which GIL is used
 
(devil's advocate: it's possible that the author wanted to say "entirely", but knew that the Well Actually Brigade would descend upon him with obscure counterexamples if he didn't pepper his answer with weasel words)
 
Sorry it was here
 
Java uses "interfaces" as a way to define an expected set of methods and properties for classes that implement them. Especially relevant for Java since it does not support multiple inheritance (I'm always misspelling that "multipole"). Python supports both MI and duck typing, so interfaces are not strictly required. But using an abstract base class (in Python) to lay out an expectation of implementation in subclasses is a nice way to represent that expectation.
Some IDEs (PyCharm for instance) will actually check for implementations of base class methods that do nothing by raise NotImplementedError, which is the de facto means for defining an abstract method.
 
every room except Python is shit
 
@overexchange - do you have a particular question here? It sounds like you need to learn some basics about threading and synchronization
 
1:33 PM
@SohaibAsif Then you've not been to other rooms ;)
The mod room is also nice
 
@SohaibAsif - you missed the kitten pictures from yesterday
 
Every room has its strengths and weaknesses.
 
most of the rooms have non serious behavior
 
That sounds like a challenge
 
What's the weakness here?
 
1:35 PM
We, the Python room, are totally serious, melon very much
 
My iterators haiku
What is Pythonic?
"for i in range(len(seq)):"? No.
Use "for obj in seq:"
 
# room6.py

from salad import cbg, rbrb
from cat_pictures import *
import Kevin
 
@SohaibAsif why should an SO chat room be serious?
 
Perhaps he means "most rooms spend most of the time discussing off-topic material and ignoring on-topic questions"
 
Exactly
 
1:49 PM
it's amazing how many pandas users don't bother adding the pandas tag... it's like they think Dataframes are builtin structures
 
I understand that frustration. When I go into other rooms with a question, I usually have to write a couple paragraphs of follow-up information and self-guided diagnostics just to make sure that someone, anyone, reads one of my messages, in the hopes that they think "what's this guy babbling about?" and scroll up to my original post to read my Q.
 
I have tried Java room twice. They helped me both times.
maybe because it's not very active
 
In their defense my questions tend to be highly unpleasant to answer
All the easy fun questions I just answer myself
 
same here
 
Yeah I used an unpopular framework for php and my questions sometimes went unanswered.
 
1:53 PM
just asked only one time and everyone ignored and keep on talking non serious things
 
I try not to take it personally when my posts go unreplied-to. Questions go unanswered in here all the time and I can tell that it's not because everyone is thinking "I know the answer but you are unworthy to receive it, worm", it's because they're thinking "I'm not familiar with third party library X, hopefully someone else is"
 
Speak for yourself, worm - some of us like playing Cthulhu.
 
... Ok, maybe 5% of the time they're thinking "I could potentially answer this but I'm exhausted from the last five help-seekers that needed a lot of encouragement and direction just to provide an unambiguous problem statement, and frankly nobody is inherently entitled to the free labor I give out of love for the community, so I'm completely justified in remaining silent on this particular one"
I expect that percentage to go up in the higher traffic rooms.
 
Wait - there are other rooms here on chat SO??
Also, @SohaibAsif, note that there's no magic internet points that you get for answering questions in the chat.
So there's less incentive for people to answer your questions. Of course that doesn't mean you won't get answers - but just like in ye olde pre-ternet days, it's only those who are in for their love of helping others. But their time is valuable because there's always people to help.
You're still not getting a free lunch - you've gotta do enough work to pique their interest
whether that's showing how hard you worked on the thing
or present the problem in an interesting/humorous way
 
@Rawing see also all those users with "arrays" and "json"s when they actually have lists/tuples and dicts, respectively
 
2:04 PM
If you expect that you'll say, "I have a problem, something doesn't work" and everyone will suss out your problem for you, then you'll be constantly disappointed
 
so has the SO documentation project failed?
/is it failing?
 
it's....complicated :P
 
it was dead out of the gate as far as many of us are concerned, heh
 
DSM
Morning cabbage.
 
DSM
2:14 PM
@Rawing: my pet peeve is beginners who say "python pandas". I don't know where they're getting that expression from and I've never been able to track it down.
 
cbg, DSM
 
I just wish I didn't have to start all of my C# questions with "this problem only occurs in my fifty thousand line legacy project, so I can't provide an MCVE, but..."
 
fair enough
 
My pet peeve is people who say int(string_of_numeric_characters) is "casting to int"
 
it's a shame, because the principle that there's a lot of stuff out there that could be an awfully lot better documented, and that many SO users know enough from experience to write that better documentation, is true
 
2:15 PM
Shamefully, sometimes I could provide an MCVE. But it would take me two hours to set it up and I want to see if there's a fifteen second solution.
 
@LangeHaare specifically for languages such as python where the official documentation and tutorial is awesome, SOD is needless. For everything else it could work but then it's not "Documentation" but "examples", and the reward/moderation system is a mess
 
DSM
Writing good documentation is much harder than solving a random SO question/problem, I think. And it's much harder to know whether or not you're good at it (at least with SO questions you usually get more concrete feedback.)
 
hmmm I can't find any python pandas, but panda pythons seem to be a thing
 
ok so here's a problem a colleague is having that isn't clearly solved by looking at the (pandas) documentation:

In [247]: x = pd.DataFrame({'x' : [1, 2, 3]})
In [248]: x
Out[248]:
x
0 1
1 2
2 3
In [249]: x.values[0, 0] = 10
In [250]: x
Out[250]:
x
0 10
1 2
2 3

In [251]: x = pd.DataFrame({'x' : [1, 2, 3], 'y': ['a', 'b', 'c'], 'z' : [True, False, False]})
In [252]: x
Out[252]:
x y z
0 1 a True
1 2 b False
2 3 c False
In [253]: x.values[0, 0] = 10
In [254]: x
Out[254]:
x y z
 
@DSM it might be because "numpy", "scipy" etc have py in the name and don't mean anything. Saying "I'm using pandas" might sound a bit weird with no further context.
 
2:19 PM
p.s. I can't figure out code blocks in chat
 
longer blocks like that should be in a pastebin/gist anyway
 
@AndrasDeak post a question in SO, get accused of animal cruelty
 
df.values gives you access to an underlying (?) numpy array, so that's not what you should be working with
 
@DSM Similarly, I dislike question titles like "adding two numbers python". At least when people do "adding two numbers in python" or "adding two numbers [Python]" they're making an effort to present a coherent noun clause.
 
DSM
Maybe they're trying to be helpful by making the title look like a google searchbox entry!
 
2:21 PM
All three of them are misguided and should trust the tagging system but the first one is the most problematic
 
@LangeHaare ---v
>>> import pandas as pd
>>> df = pd.DataFrame({'x' : [1, 2, 3], 'y': ['a', 'b', 'c'], 'z' : [True, False, False]})
>>> df.values is df.values
False
df.values is not simply an array bound to that attribute of the dataframe
So if you mutate it, there's no guarantee that it will affect the original. It's not necessarily a view, it can be a copy. This is my guess.
it might be related to that in this latter case df.values is an object-dtyped array
 
Thanks @AndrasDeak - it seems like it gives you the underlying array if the dataframe is type homogenous
yeah
 
DSM
Behind the scenes, pandas stores things in blocks based on dtype.
 
the bottom line is to use proper pandas
 
DSM
In [42]: x._data
Out[42]:
BlockManager
Items: Index(['x', 'y', 'z', 'x2'], dtype='object')
Axis 1: RangeIndex(start=0, stop=3, step=1)
BoolBlock: slice(2, 3, 1), 1 x 3, dtype: bool
IntBlock: slice(0, 6, 3), 2 x 3, dtype: int64
ObjectBlock: slice(1, 2, 1), 1 x 3, dtype: object
 
2:26 PM
what your colleague is trying to do is akin to looping over numpy arrays or doing logical operators on them, and being surprised that it's slow or doesn't return a bool
@DSM neat!
 
DSM
Since it's fundamentally columnar, there's no way to return a .values which really is a view in the case of differently-dtyped blocks.
 
Hmm, does the SOPython wiki let you embed images?
 
I don't think I've encountered one yet
 
That's unfortunate.
 
that's not to say that it can't be done; it's equally likely that there are images which I just haven't encountered yet, or it's possible but nobody's ever done it
 
2:36 PM
Yes, it's possible that the markup engine supports it but the syntax is non-obvious enough that nobody has figured it out yet
 
there could also have been a lack of motivation
 
Currently browsing github.com/sopython/sopython-site to see if I can figure it out... If it's possible I wager 2 quatloos that the syntax is identical to how stack overflow does it
 
"Quatloos!? Gentlemen, we Earth People are the Greatest. Gamblers. In. The. Galaxy!"
 
3:08 PM
cabbage
Guys, Why do we need to add __init__ and __repr__ functions at the end of each model class in SQL Alchemy and Django? What is the Use of those?
 
They're for initializing class instances and returning nice string representations of class instances, respectively. This is true of all classes that implement those functions, not just model classes for SQL Alchemy and Django.
 
You don't have to. Why do you think you have to?
And if you want to, you don't have to for each model, use a mixin.
 
@Kevin I dont get you, can you give any example as to where they might be useful
@davidism I was following a tut and that person added it without any explanation
 
If you want to do print(myWidget) and want something other than <__main__.widget instance at 0xDEADBEEF> to appear, then __repr__ is useful.
 
If you want to do custom init, or have a custom repr, then they're useful. They're not required.
 
3:16 PM
However makes no difference to the code , everything works as intended thus making me question their existance
 
If you want your class to do anything at all involving mutable state, then __init__ is useful.
 
Did you consider looking up those methods in the Python docs to see what they're for?
 
English is not my first language so sometimes I have hard time understanding concepts. I went throught the docs , too dumb to understand so I came here
 
cbg @everyone
@PaulMcG Are you there or afk?
 
DSM
@davidism: not sure that's fair. Knowing what __init__ does by itself doesn't tell you much about what it should or shouldn't do in a given framework-- I for one would have no idea whether or not I'm supposed to configure something there or not.
 
3:20 PM
I suspect there's also a dupe for "get camera image in JS" but I couldn't find it.
Also, that answer is just plain useless.
 
user7440629
Hi Need help asap
 
user7440629
I am unable to download packages in office network
 
@DreamerP welcome, please read our room rules: sopython.com/chatroom
 
@DreamerP are you not able to Pip install stuff?
 
It's a problem with your network, go talk to your network admin.
 
user7440629
3:24 PM
can I apply some sort of proxy
 
user7440629
currently it's "Automatic Detect Settings"
 
Who knows, this is the Python room not the networking room.
 
@DreamerP Definitely some network issue, I just installed it on my PC
are you sure you are spellng it right?
Its Gensim
 
@AshishNitinPatil let ROs handle that sort of stuff. In fact, I already sent that link.
 
I think
 
3:26 PM
@davidism yeah, I saw your comment just about when I posted
 
Hmm probably should have verified that SOPython can embed gifvs before making a big long wiki post that is only useful if you can embed gifvs in it :-I
Maybe if I change it to gif... I assume imgur hosts both versions
 
It isn't youtube, so I wouldn't exactly expect, rather hope
 
@Kevin if you feel like switching us to commonmark, there's probably a way to write a markdown extension to render .gifv links differently.
There's probably a way with the library we use now too.
 
It's all right, I switched the urls to .gif and they work now.
 
The easy way out.
 
DSM
Wow.
 
I suspect we're still going to get people that try:
`>>> print("Hello, world!")`
`Hello, world!`
 
=O.
 
Because I did not specifically include a gif that shows that you can't use backticks on a multiline message even if you put them on every line
 
@Kevin This is why you are worthy of the name Kevin, Kevin.
 
3:32 PM
I had to spam the hell out of the Sandbox to get all that recorded.
 
@Kevin I was wondering the same
I have broken my English today. I think I am done for the week.
 
DSM
Don't feel too bad. English was pretty broken already.
 
^^ And that sentence doesn't feel right too XD
^ And even that doesn't feel right*
oh Guido
 
In hindsight it would have been better to use a code sample that has significant whitespace. With just that REPL snippet, the only way you can distinguish the functional examples from the broken ones is by observing that the former has a monospaced font
 
@Kevin or __init__ since that gets bolded.
 
3:39 PM
You can also distinguish the functional examples from the broken ones by reading the text of the wiki page, but I made the illustrations exactly because people don't like to read.
 
you also can't link or do any other markdown in multiline messages
and perhaps the sandbox could be linked from the help page?
 
Hmm, yes, a sandbox link would be good
 
anyway +10, Kevin
 
00:00 - 16:0016:00 - 00:00

« first day (2455 days earlier)      last day (2494 days later) »