« first day (2817 days earlier)      last day (2134 days later) » 
00:00 - 18:0018:00 - 00:00

12:07 AM
Can you please improve this question: stackoverflow.com/questions/51145039/…. I still find slight unclarity, and adding my current examples would clutter space.
 
I'm not sure you need to worry about space as long as the examples are clearly separate
if anybody wants to ignore those they can do so easily
 
DSM
@Oighea: some people, myself included, tend not to like worrying about "efficiency" when the OP hasn't figured out how to do what they want even inefficiently yet.
 
thanks
 
DSM
Now, since you want to pick up "Foo" from "Foo,", and distinguish "Mulligan" from "Mulligans", and you also want to incorporate your range criteria, you're going to need a more sophisticated split algorithm (e.g. use a \b regex combined with some index games). What did you try, and how did it fail? Etc.
 
rhubarb
 
DSM
12:18 AM
Rhubarb for AD.
 
@Oighea BTW, I'd choose a different arg name to "string", since that's the name of a standard module.
@Oighea I'd probably use regex for this. You could use re.sub with a repl function. The function receives a Match object, and you can use Match.start() and Match.end() to test if the word is in the range you want to modify.
 
1:10 AM
Is there a more idiomatic way of doing this? np.outer(np.arange(20), np.ones(50))?
 
Rbrb.
 
1:28 AM
@AaronHall How about np.tile(np.arange(20), (50, 1)).T Or maybe np.arange(20).reshape(-1,1).repeat(50, axis=1) They'll both return integer arrays, though, but that's easy to change, if desired.
 
@PM2Ring I was hoping there was some kind of argument to arange or a special function specifically for it...
I guess tile does it...
What's better for a workshop?
 
@AaronHall I'd go with tile. There's also mgrid, which is designed for creating index arrays. Eg, print(np.mgrid[0:3, 0:5]) gives you
[[[0 0 0 0 0]
  [1 1 1 1 1]
  [2 2 2 2 2]]

 [[0 1 2 3 4]
  [0 1 2 3 4]
  [0 1 2 3 4]]]
There's also ogrid, the sparse version:
[array([[0],
       [1],
       [2]]), array([[0, 1, 2, 3, 4]])]
 
wow, mgrid is almost there...
np.mgrid[0:20, 0:50][0] -ish
 
DSM
1:49 AM
Note that typically you don't need to materialize tiled arrays like that; broadcasting usually carries the day.
 
@DSM I am adding this to a scalar and a 2d array of std normals.
We're doing this for didactic purposes but I also want to teach people the right way to do things...
alpha = 1
errors = np.random.normal(mu, sigma, size=(20, 50))
beta_times_t = np.outer(np.arange(20), np.ones(50))
deterministic_trend =  alpha + beta_times_t + errors
random_walk_with_drift_and_deterministic_trend = np.cumsum(deterministic_trend, axis=0)
plt.plot(random_walk_with_drift_and_deterministic_trend)
plt.show()
 
np.mgrid is interesting, but maybe a bit radical for newbies, since it "magically" creates content when you index it.
 
(If anyone wants to critique my code's semantics, I welcome it)
 
I'll leave that to Data Science Man, but where did errors_with_drift come from?
 
oops, should be errors...
yay, no change.
mu is 0, sigma is 1
 
DSM
2:07 AM
@AaronHall: it's fine if you're adding. alpha + beta_times_t + errors is the same as alpha + np.arange(20)[:, None] + errors. Typically I only materialize when I know I'm going to need to modify the individual components of the array, or when the broadcasting version is too complicated.
 
2:28 AM
@DSM IDK how to explain that exactly.
> numpy.newaxis
The newaxis object can be used in all slicing operations to create an axis of length one. newaxis is an alias for ‘None’, and ‘None’ can be used in place of this with the same result.
 
 
5 hours later…
7:29 AM
cbg
 
cbg
 
7:52 AM
ummm it seems I've finally exceeded 70k rep
3
 
🍍!
That's a pineapple, not a chestnut
any new privileges?
 
nope.
 
Has anybody here run MicroPython on a Mac?
 
8:19 AM
Why am i getting a "FutureWarning: split() requires a non.empty pattern match", with this line re.split('-|:|\.|_|', current_name), string example "2017-10-10-00:00:00.text"?
 
Because of that extra | at the end. You're splitting on the empty string.
>>> re.split(r'', 'foo')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: split() requires a non-empty pattern match.
 
8:45 AM
hi, I'm trying to slice the input of a convolution network by Keras with Tensorflow backend by a Lambda Layer: model.add(Lambda(lambda x: x[:,:,:,[[0,2]]], input_shape=(img_width, img_height, 3)))
but I got the error TypeError: can only concatenate list (not "int") to list
 
9:07 AM
oh, ups didnt see that :) thanks
 
9:41 AM
@AaronHall what do you mean? We can help understand the behavior if it's unclear
broadcasting is one of the very simple parts of numpy
 
9:58 AM
Cabbage
 
cbg
 
cbg
 
@ThanhNguyen cbg, you probably got a traceback too; it could contain information needed to solve this. Not a TF expert myself
 
10:14 AM
Oh yeah, that error looks pretty weird for that line. Are you sure that's where the error is coming from?
 
@AnttiHaapala one word: bravo !!!!!!
 
or should I greet Vietnamese with (x)bc :D
 
@AnttiHaapala who is viet?
 
I suspect Thanh Nguyen
 
@AndyK it is 99 % probability that someone named Nguyen is Viet and 40 % probability that some Viet has surname Nguyen
 
10:19 AM
my anecdotal experience matches that statement
 
mine too
 
same for me
 
@AndyK yet you ask :D
 
@AnttiHaapala I'm viet too... that's why I asked...
;)
hé hé
 
well you've masked your identity well.
 
10:28 AM
my grand ma was viet
 
so 1/4?
 
my grand parents were viet, although chinese-viet for my grand dad
 
@AndyK You’re making it very easy to answer password security questions on your behalf… “What nationality was your grandma?”
 
Can anyone explain what's going on here?
class Works:
    def __init__(self, x):
        print(x)

class Breaks:
    def __new__(cls, x):
        return super().__new__(cls, x)

    def __init__(self, x):
        print(x)

Works(3)
Breaks(3)  # TypeError: object() takes no parameters
 
the rest is Chinese, although it does not mean a lot when you see all the immigrations/conquests/else
@poke I don't talk too much about her and definitely not using her for my password
 
10:31 AM
@Aran-Fey As it says, object takes no constructor arguments:
def __new__(cls, x):
    return super().__new__(cls)
@AndyK Yeahhh, sure *wink wink*
:D
 
But why does it make a difference whether or not the class defines a __new__ method?
 
@poke lol
got to eat.
see ya later
 
@Aran-Fey the problem is that object.__new__ has a different signature, right?
 
@Aran-Fey The default __new__ passes no arguments, so that’s why it works that way.
 
So you're saying that object.__new__ is special-cased in type.__call__ so it doesn't receive any arguments?
 
10:33 AM
Huh? No
 
So why does my __new__ method receive a x argument but object.__new__ doesn't?
 
@AnttiHaapala sorry for late reply, the full traceback is here:
Traceback (most recent call last):
File "<input>", line 5, in <module>
File "/home/cngc3/anaconda3/envs/tensorflow/lib/python3.6/site-packages/keras/engine/base_layer.py", line 460, in __call__
output = self.call(inputs, **kwargs)
File "/home/cngc3/anaconda3/envs/tensorflow/lib/python3.6/site-packages/keras/layers/core.py", line 693, in call
return self.function(inputs, **arguments)
File "<input>", line 2, in filter_layer
File "/home/cngc3/anaconda3/envs/tensorflow/lib/python3.6/site-packages/tensorflow/python/ops/array_ops.py"
 
Ok, it's true that the magic doesn't happen in type.__call__:
class Meta(type):
    def __call__(cls, *args, **kwargs):
        return cls.__new__(cls, *args, **kwargs)

class Foo(metaclass=Meta):
    def __init__(self, x):
        print(x)

class Bar(metaclass=Meta):
    pass

Foo(3)
Bar(3)  # TypeError: object() takes no parameters
 
I was trying to select specific channel(R,G,B) of the image before it goes through the network
 
Hmm, did you put an additional pair of square brackets around [0,2] on purpose?
And do you have the correct amount of : slices? Odds are tensorflow supports numpy's arr[...,[0,2]]
 
10:42 AM
yes I tried both [0,2], [[0,2]] and (0,2) but they all give the TypeError
 
@Aran-Fey I think by adding a parameter to the __new__ you are kind of required to take care of that parameter (just like you are inside __init__ when you have super calls)
 
unfortunately I don't know keras/tensorflow so I can only ask for obvious things
 
So the correct way to define your __new__ would be like this:
def __new__(cls, x, *args, **kwargs):
    super().__new__(cls, *args, **kwargs)
 
@ThanhNguyen Are you sure there's no more of that traceback? There should be at least one line where your code calls tf...
 
yes, that's all.
I'm using Tensorflow backend with Keras, does this give any clue for the issue?
 
10:46 AM
Oh, I get it. The magic is in object.__new__.
class Class:
    def __init__(self, x):
        print(x)

object.__new__(Class, 3)
object.__new__(object, 3)  # TypeError: object() takes no parameters
That's kinda weird. Couldn't they have just ignored the extra arguments in __new__ and let __init__ throw the exception?
class Object:
    def __new__(cls, *args, **kwargs):
        return super().__new__(cls)

    def __init__(self):
        pass

Object(3)  # TypeError: __init__() takes 1 positional argument but 2 were given
Like ^ that. Would make more sense IMO.
 
Think about inheriting from a different type
 
lol
 
?
 
...how can I not inherit from object? :/
 
@ThanhNguyen no, sorry, and I already got that from your traceback
 
10:56 AM
class Foo(Bar):
    pass
Now what if Bar also defines a __new__? – You can’t just randomly ignore arguments is what I mean.
 
*scratches head* Not sure what you're getting at. Since python passes the same arguments to __new__ and __init__, it's normal that one of the two ignores the arguments because it has no use for them, no?
 
who says one of them has no use for the arguments?
 
I do. Got a problem with that?
 
Yes, I do because I’m not ignoring arguments!!11
 
I mean... why would you ever need to handle the same argument in both __new__ and __init__? If one of the two methods uses an argument, the other one ignores it
 
11:07 AM
so much dunder in a message ;)
 
Simple example: Object cache.
Attempt to retrieve object matching the arguments from a cache in __new__ and if there’s none, continue with __init__ to create one.
 
@AndrasDeak Actually, I used asterisks :P
 
But what's the point of calling __init__ on an object that was retrieved from a cache?
That's something you'd usually do with a metaclass so you can avoid __init__ being called at all
 
11:27 AM
The mystery deepens:
class Works:
    def __init__(self, x):
        pass

class Breaks:
    def __new__(cls, x):
        pass

    def __init__(self, x):
        pass

object.__new__(Works, 3)
object.__new__(Breaks, 3)  # TypeError: object() takes no parameters
 
that's what you get for naming a class Breaks
 
I swear I've read an answer about this a while ago, but I can't find it :(
 
@ThanhNguyen hmm I guess you've just got extra brackets there!
 
55 mins ago, by Thanh Nguyen
yes I tried both [0,2], [[0,2]] and (0,2) but they all give the TypeError
or do you mean something else?
 
@ThanhNguyen that cannot be the same type error.
>>> [0, 2] + 1
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: can only concatenate list (not "int") to list
or we're missing something.
perhaps the old additions still apply if you're doing it from the console.
 
11:46 AM
AttributeError: 'str' object has no attribute 'decode'

"Mjk5Ljk5".decode(base64)

Why this error arises??
 
Best way / lib to "create GUI forms with text boxes, combo box, radio button etc. and access the values of these"?
 
@Self because strings can't be decoded on python 3
 
decoding = bytes to string (usually)
 
oh. then is there a way to get the decoded value??
 
yes, use a bytes literal or encode it first as ascii or something
 
11:50 AM
tkinter still good enough, anything else that's better?
 
but you'll probably need the codecs module or something else to decode as base64
>>> codecs.decode(b'Mjk5Ljk5','base64')
b'299.99'
 
I wish I could recommend a good GUI toolkit, but the two I've used are both meh (at best)
 
@Self base64.b64decode
>>> base64.b64decode('Mjk5Ljk5')
b'299.99'
>>>
notice that the result is binary
 
ok
this works fine
thanks
 
I am gonna go with pyforms for this time (cross-platform, so why not)
Or maybe not, appJar seems good too for the task at hand. Anyway, wiki.python.org/moin/GuiProgramming is very comprehensive and even shows if the lib is actively developed or not.
 
12:25 PM
how can i send google hangout message from my python script, without xmpp (it is not installed on servers)
 
but xmpp is a protocol. Is a protocol really something that can be said to be "installed"? (Not a rhetorical question, I know very little about server administration.) Isn't that like saying "I don't have .png installed on my computer"? Maybe you don't have software that can display pngs, but that's rather different
Not trying to bash your terminology here, I really think "do you actually need something installed to do this?" is a productive line of inquiry
 
Ok, i simply want to send hangout msg , like i send emails from python using smtp. What is the easiest way to do that
 
Dunno
 
DSM
1:02 PM
Back-to-work cabbage for all.
 
cabbage
 
DSM
Kevin's message was substracted!
 
I had a pang of remorse at pointing out the mistakes of others for my own amusement. I'll probably revert to my normal misanthropy shortly.
 
1:30 PM
\o cbg
Belated Happy Canada Day to all the fellow Canadians, and Early Happy America Day for those who are South of us :D
@DSM 91 back in our home town, any thoughts on it? I'm wondering if Nylander is going to be traded for a top Def-man.
 
Jan
Hi just a short question. Is it possible to find whether the vector has single gaussian peak somewhere? Like mean/variance are unknown too.
 
Short answer is "no", because your question is underspecified
"gaussian peak" can mean a lot of things, and your measure of Gaussianness may vary
 
DSM
@MooingRawr: DSMSR and I are both pretty happy about it. I don't want to give up the Matthews-Nylander line, though.
 
ideally you can fit a Gaussian to your vector and see how well that fits
it also matters what thing other than "single gaussian peak" might cover
 
@DSM I don't wanna give up 16 :( I like him a lot. Hopefully our cap can accommodate them all Bozy and JVR is out so that helps.
 
Jan
1:37 PM
@AndrasDeak thanks. to fit a Gaussian, are mean/variance needed as prior?
 
DSM
Matthews and Marner are still low-paid, so we have at least one year before we have to worry about anything.
 
@Jan not necessarily, but fitting will obviously be easier if you start from a good guess. But if you expect a peak you can use the argmax of your points to guess the mean
 
That doesn't help. Personally I would love to see them locked down for the next 5+ years but eh I get your point.
 
Jan
@AndrasDeak I see. And for fitting, are there other ways than scipy.optimize.curve_fit?
 
There probably are but that's what I'd try first
 
Jan
1:44 PM
@AndrasDeak ok! thanks a lot!!
 
No problem
 
recbg
so was the assignment-expression discussed here yet?
while at it, can we get multiline anonymous functions?!
and braces!
 
We discussed it a couple days back
I'm ambivalent as long as if a = b: continues to be a syntax error
I invented an entire language just so I could have multiline anonymous functions, so obviously I'm in favor of that.
 
@AnttiHaapala multiple times
 
I mean it is now accepted
 
DSM
1:53 PM
Eh? I thought Coghlan withdrew it?
Oh, wait, I'm confusing 572 with 577.
 
@AnttiHaapala noooooooooooo
 
Wooow
 
DSM
Time for a poll on what our next language will be?
 
julia, eh?
 
1:56 PM
I still think modern C++ is quite nice, and I have my eyes on Rust
 
DSM
I could use Julia for my numbery programming, Rust for my systems-level programs, and Jai for my games. ;-)
 
Wow, this is really the next level of "bad"
 
#3.7forever
 
Until 3.8 that is... cbg
 
1:59 PM
Python: sort string alphabetically without repeat is actually kind of interesting. I only wish the OP's strategy for replying to clarification requests was more sophisticated than "repeat the original problem statement with no additional information"
 
can't wait for this awesome new feature to be shoehorned into new answers on main
 
I did not expect to have to update that pic of mine so soon
/rant
 
too early to close that tag :D
 
/vaultah's rant
 
as long as variable literals aren't a thing :_(
\or whatever they are called
bah, can't find it anywhere
 
2:06 PM
bah, I did not understand that question apparently
 
I wrote a solution for the logic I assume OP wants, but now I'm interested in the alternate problem I posed in my comment: finding the lexicographically smallest permutation of a string that has no repeating consecutive characters
min(s for s in itertools.permutations("aaccbb") if not any(s[i]==s[i+1] for i in range(len(s)-1))) is easy enough but it's not efficient
 
Huh, am I really the only one who is looking forward to assignment expressions?
 
yes
 
Well, then I will collect all the rep for questions involving it alone I guess
=)
fwiw, I think it has its place since python supports truthy types and tuples as return statements. I will often have code where I will only use the output of a function in case it satisfies certain conditions.
 
It bothers me that Firefox's spellchecker doesn't work on post titles on the edit page.
 
2:12 PM
And assignment expressions make that kind of code more compact and less nested
/defense rant
 
Same, specifically when I want to call re.match and do something with the match iff there is a match
 
I don't really mind it in cases where it's clear and useful. I dread all the rest.
not to mention the inevitable if x := 3 typos
 
Newbies can already shoot themselves in the foot with a score of existing footguns, so one more won't have much impact, proportionally
 
it will still be really annoying
 
OTOH, if we used that reasoning for every potential new feature, then by Python 6.0 we'll have twice as many footguns, which does have much impact proportionally
 
2:18 PM
total = 0
partial_sums = [total := total + v for v in values]
print("Total:", total)
Example from the PEP
Needs some type hints, methinks
total: int = 0
partial_sums: List[int] = [total := total + v for v in values]
print("Total:", total)
Python!
 
Hmm, not fond of list comps with side effects, except when i'm intentionally writing horrible one-liners, in which case they are extremely important
 
nevermind, print is as good
 
Don't forget that values may be an async generator: partial_sums: List[int] = [total := total + v async for v in values]
 
DSM
Listcomps not being used for side effects was the tired old policy. Now, the Party says that it's good! Rejoice, citizens!
 
partial_sums: List[int] = [total := total + \for async for \for in \in] # credits to vaultah
4
 
2:23 PM
I don't know how async works and I intend to keep it that way
 
At least we can now answer all those "access previous value in a list comp" questions with something other than "use a proper loop". *wipes away tear of joy*
 
@Kevin Corrected my mistake, I think I line up on your test cases now.
 
Looks good to me.
 
next we need @IljaEverilä's dictionary destructuring :D
 
I feel like a more efficient solution still exists. Mine iterates over every key in every round, even if I'm in round one million and the key only appeared once in the original string.
 
2:34 PM
Mine scans once to produce tuples then once to pluck off second element then once more to join... I think
 
I suspect your sorted(l) is where most of your runtime is spent
 
hmm, that gave me a "thumbs" type idea... rbrb
 
Although l is already mostly sorted, for certain definitions of mostly, and IIRC TimSort is optimized for mostly sorted lists
So it might not be as bad as the n log n ish average case one might expect
 
We are only sorting single characters. That has to be able to be forced into a linear bin sort somehow
I don't know solution off top of my head but I'd bet a burrito it's theoretically possible
 
I have an idea, but it requires a variant of zip_longest that just skips the value instead of yielding None when the iterator is exhausted
and I can't just do exhausted=object(); g = (item for item in zip_longest(*iterables, fillvalue=exhausted) if item is not exhausted) since the entire point is to not iterate over the exhausted ones
 
DSM
2:49 PM
Sounds like you're just reinventing a round-robin, like
In [68]: [''.join(roundrobin(*(list(v) for _, v in groupby(sorted(c))))) for c in test_cases]
Out[68]: ['abcabc', 'abca', 'abaa', ' aefhilmnoprsty aehilnpst ailn ailn ain n  ']
 
yes... that sounds right. However, now I want to do this in linear time.
nice recipe btw. wait a minute, where does roundrobin come from?
 
DSM
more_itertools. ;-)
 
(about halfway down)
I got as far as writing:
def zip_skipping_exhausted(*iterables):
    while iterables:
        unexhausted_iterables = []
        for g in iterables:
            try:
                yield next(g)
                unexhausted_iterables.append(g)
            except StopIteration:
                pass
        iterables = unexhausted_iterables
Which is more or less what roundrobin is doing
 
So maybe I can name a new library just_when_you_thought_you_had_enough_itertools
 
import now_thats_what_I_call_itertools_vol_42
 
DSM
2:56 PM
O(n), because the sort is over the number of distinct characters: [''.join(roundrobin(*[v for _, v in sorted(toolz.groupby(str, c).items())])) for c in test_cases]
 
^ yeah! ok. I can go back to work now (-:
 
Now let's argue about whether O(number_of_legal_characters_in_unicode) is the same as O(1).
 
I guess work can wait, let's do this.
 
If the consortium keeps adding eggplant emoji variants or whatever, It could be O(N) or worse
 
N not associated with length of string. So it's even worse O(N*M)
 
3:00 PM
M is proportional to the decadence of modern civilization
bread and circuses and eggplant emoji variants
 
^^ for kids paying attention... please don't try this at home. We are making logical errors on purpose.
 
Yes... On purpose...
 
ok, fine! Some errors are on purpose.
 
DSM
3:29 PM
Sudden realization: the values are just the keys repeated. So: [''.join(roundrobin(*sorted(toolz.groupby(str, c).values()))) for c in test_cases]
Still O(N), because there are maximum O(unicode) values and we only ever have to look at the first element.
 
Looking good
 
rb folks
 
toolz.groupby does what I wish itertools.groupby did
I've been rolling my own aggregate() tool all this time
I feel like the comments on python loop, how to change the value in this loop? are a little too insistent, since changing the value of an item in a list after you've already iterated over it is reasonably safe. You're not changing the size of the list or anything.
for i, x in enumerate(seq):
    print(x)
    seq[i] = x*2
No problem
Oh well, it's closed now
 
cc chris @user3483203 ^
 
I think there is a distinct place for itertools.groupby but I'm glad to know of toolz.groupby
 
wim
3:43 PM
@AnttiHaapala WTF
 
Why use toolz.groupby when you can do {k: [x for x in seq if keyfunc(x) == k] for k in {keyfunc(x) for x in seq}}
 
wim
...it's 3 months late april fools joke?
 
O(N^2) ought to be good enough for everybody
 
see sopython.com/wiki/… and the sandbox room for practice ;)
(but yes, you need to have a file open in order to loop over it)
 
Python 3.6, using the csv library like this:

with open(infile, newline='', encoding='utf-8') as f:
records = csv.DictReader(f)
for rec in records:
do_useful_stuff()

The `for` needs to be inside the `with open`, otherwise I get 'I/O error on closed file'. Apparently, the csv.DictReader object can only exist if the file is open, perhaps I should see it as a viewer on the open file (?).

I thought it would be somehow safer to read the file on disk into an object in memory, close the one on disk, and then carry on with the object in memory.
 
3:47 PM
I don't think you need to worry about anything happening to the file while you're reading it. I can only think of one bad thing that could happen, and that's the hard drive dying.
 
I usually just trust that my file system will continue to work for as long as my program is executing
And that other processes aren't messing with my files, etc
 
the csv reader, like most things in python, is lazy
if you want different behaviour you need to make it eager yourself
 
I wonder if StringIO would be useful here? Load the file into a StringIO, then load the StringIO into the csv reader. Is that possible?
 
Sure, but the easier solution is to call list on the csv reader :P
 
> csvfile can be any object which supports the iterator protocol and returns a string each time its __next__() method is called — file objects and list objects are both suitable.
 
3:49 PM
Oh, cool. I thought DictReader only took file-like objects.
 
but yeah, I'd just stuff it inside a list()
 
@Kevin I guess there is no real need to close the file.
 
There are valid use cases to want to close your file objects as fast as possible, but I don't think it's worth doing by default
 
That's reassuring.
 
Gotta have a compelling justification first
 
3:53 PM
I don't have a compelling justification. I guess I was being old fashioned :-)
 
I can imagine a situation where it's critically faster to shove all the data into RAM using large buffered reads or something, rather then do IO throughout the ensuing computations
 
wim
unless do_useful_stuff is doing something very slow (e.g. making network calls) don't bother
 
@AndrasDeak Am I right in thinking you'd get a list of ordered dicts?
 
I've never used the reader so your guesses are better than mine
 
wim
you are right
 
3:55 PM
@wim Well, that's the thing. The csv content will end up as several attempts to get information from this web-API.
 
Wait, DictReader doesn't give you ordered dicts, does it?
 
wim
yes
of course it does
 
And I have no idea fast the response will be.
 
or as we call them in 3.7, dicts
 
wim
even in 3.7 it will give ordered dicts
 
3:56 PM
I suspected as much :D
 
wim
the first line will be the keys of the dicts
@RolfBly is there a chance anyone else can modify the file while you are communicating with the web api?
 
@wim No. Zero.
 
oops, I was reading the 3.5 csv docs
No mention of OrderedDicts in there
 
wim
@RolfBly then I reiterate, don't bother
 
Right. Thank you!
Haven't been here in ages. Does one still leave saying rhubarb?
 
wim
4:00 PM
you can just say "bye"
 
:) OK. Goodbye then. And thanks again.
 
you can use both if you want... some still say rhubarb others say bye, it's w.e you feel like
 
rhubye if you're feeling dissociative
 
@AndrasDeak I came here to avoid feeling dissociative.
anyway. Cheers guys!
 
 
2 hours later…
5:41 PM
upgraded to python 3.7, now all my programs (or modules used by my programs) throw all kinds of errors...
 
Really? My transition went quite smoothly...
The new code of conduct has been anounced. Hopefully this will help new members (old ones?) "be nice" :)
 
There's finally a re.Pattern class and re._pattern_type has been done away with. Nice.
 
> If someone points out that your behavior is making others uncomfortable, stop doing it.
 
@AndrasDeak the new CoC draft specifically mentions "physical appearance" and "body size" ^^
 
It makes me uncomfortable when all of you don't go through my entire answer history and upvote everything I've written. Please stop not doing that.
7
Physical appearance...? I thought everyone on this site was a disembodied thought entity, like me
 
5:48 PM
I have a perfect idea for a Meta post, which hopefully won't bring a suspension on me
 
DSM
> For example, saying “You could Google this in 5 seconds” is a subtle put-down.
I sometimes give examples of google search phrases which would have helped.
Partly that's designed to help the OP, I admit, and partly it's a slightly exasperated "why didn't you just put your keywords into google" response. I don't know which side of the line that falls on.
 
@vaultah Ummm... are you sure you know what "perfect" means? :p
 
"perfect" has always meant "fun and controversial", right?
 
Right.
 
DSM
@vaultah: don't burn any bridges in case you want to throw your hat into the ring for a seventeenth time. ;-)
 
5:55 PM
:P The trick is to choose the right wording
 
00:00 - 18:0018:00 - 00:00

« first day (2817 days earlier)      last day (2134 days later) »