« first day (2914 days earlier)      last day (2027 days later) » 
00:00 - 22:0022:00 - 00:00

12:13 AM
NM I see...
 
 
3 hours later…
3:03 AM
evening cabbage
 
 
2 hours later…
4:36 AM
@AndrasDeak I appreciate the guidance sometimes I do admit to answering unworthy questions but mostly as a training exercise to learn, and then I end up going oh well might as well share , then it becomes welp i need a explanation which i usally just blurt out xD
@FélixGagnon-Grenier ty for the kind regards as well
 
 
4 hours later…
8:53 AM
@Aran-Fey you can add your dupe now (self-hammered)
cbg
 
done and cabbage
 
MPJ
How to create a zip file from python. The folder is located in different location. Create the zip archive in different location. Not in the location where the code is running ..
 
Using absolute paths?
 
MPJ
Yes
 
I'm pretty sure it won't take longer than 5 minutes to find a complete working solution on google
 
MPJ
9:04 AM
Yes ... I have a working code, but what it does is, if i give absolute path, the zip archive contains the folders of all the absolute path directories..
os.system( "zip -r " + backup_path2 + "/" + backup_foldername + ".zip" + " " + backup_path + "/" + backup_foldername )

I am using the above code.... It behaves as I said...
 
Do you know of the zipfile module?
 
interesting interpretation of "create a zip file from python"
 
@MPJ When you find a solution that uses os.system, just keep looking
 
9:37 AM
Cabbage
 
cbg
 
9:48 AM
Does any body have a idea that how to make a password input in IDLE?
python 3
 
no, in IDLE
 
@TejasJoshi Yes. Don't use IDLE. :) It meddles with stdin, so getpass can't make the password invisible.
 
Don't use IDLE.
 
oh, IDLE
I never knew that was a special thing (especially one that hindered usage)
 
9:50 AM
Is using a Tkinter GUI an option for you?
 
No, I mean that is there a way to dod that?
*do
 
you can edit/delete messages in chat for 2 minutes
 
what is the meaning of cbg?
 
Note that IDLE is itself a Tkinter program, so if you're using IDLE, you're already using Tkinter behind the scenes.
 
9:51 AM
So, how to do that?
 
@TejasJoshi Please visit sopython.com/salad
 
How to do what, exactly? Use tkinter?
 
Sprouts?
Lettuce
(SALAD)
lang
 
we know
 
9:53 AM
@TejasJoshi You write a little bit of Tkinter code to pop up a window with an Entry widget that the user can type the password into. Do you want the password to be totally invisible, or do you want the password chars to be echoed as asterisks (or some other anonymous char)?
 
No, I don't want tk.
I know how to in tk
rbrb
 
@AndrasDeak It's mostly not an issue. Except when you want obscured / invisible passwords. Or you need to do your own stdin / stdout redirection. And then it's a PITA. :)
Another little gotcha for the newbies is when you test Tkinter code in IDLE, and it seems to do what you want without needing the usual .mainloop() call to set up the GUI's event loop. But when you run your script outside IDLE the program exits immediately instead of sitting there waiting for events.
 
I hate environments that mess with execution behaviour
 
10:10 AM
It's not easy to provide a totally clean environment when the IDE itself is written in Python. And then there's the extra fun caused by Tkinter, which runs on Tcl, via Python.
IDLE also replaces sys.stdin, sys.stdout, and sys.stderr with objects that get input from and send output to the Shell window. When Shell has the focus, it controls the keyboard and screen. This is normally transparent, but functions that directly access the keyboard and screen will not work. If sys is reset with importlib.reload(sys), IDLE’s changes are lost and things like input, raw_input, and print will not work correctly.
 
cbg
 
Apparently winter is coming. It's long johns time.
 
Normally, I don't like typos getting full answers, but that one's bad enough that I think a full answer is justified. ;)
 
10:24 AM
@PM2Ring I've one typo answer from my early days that still keeps getting upvotes every now and then. Basically Django get[...] vs. get(...).
 
It's easy enough to do. Even after decades of coding I occasionally do typos like that. But I spot them pretty quickly. :) Although I'm probably more likely to do the reverse, and use parentheses instead of brackets for item access.
All my early languages used round brackets for arrays. IIRC, using square brackets was one of C's great innovation... unless my memory is playing tricks on me. :)
 
I fumbled with Matlab at univ. quite a bit because of that little detail.
 
inherited from fortran
 
Would really love to learn Fortran some day.
 
one major PITY with MATLAB is that you can't chain parentheses, so rand(10)(2:5) is a syntax error
 
10:36 AM
Wasn't PHP like that at some point as well? That you couldn't chain (some) operations naturally.
 
My 1st language was a very early dialect of Basic, pretty close to the original Dartmouth Basic. I did learn Fortran, about 7 years later, but in between I learned PL/I, which also uses round brackets with arrays. It looks rather alien when I try to read PL/I code these days.
 
Started with Basic as well, though Commodore BASIC.
 
Back to trying to find/understand my memory leak from Friday. pympler.muppy shows no change in count of frozenset objects when the RSS shoots up
 
the plot thickens
 
The massif output for a debug build of pythion: pastebin.com/raw/BMCgPjDg
Also, today it's going up by 16GB instead of 4GB. Perhaps due to the whoosh index optimize job that ran at the weekend.
 
10:49 AM
recbg
 
I suppose we should delete that typo...
 
jpp
11:08 AM
I'll put a soft non-vote comment on it, I'd love to be able to cast a regular vote.
 
11:22 AM
@jpp I don't think that assignment question is very relevant. It's more about the Python convention that mutating function calls / methods normally return None.
 
jpp
@PM2Ring, I don't think that Q&A is irrelevant, you should probably be able to infer one from the other. But, if it's not "trivial", I'm struggling to find a better dup.
 
@jpp I'm looking for a good match. This answer by mgilson explains the convention, but the question itself is a poor match. stackoverflow.com/a/26027714/4014959
 
jpp
Would PEP 572, have an impact, i.e. [self.key := kwargs.get(key) for key in self.__acceptable_keys_list] ?
well, not exactly that
 
12:17 PM
@jpp no, you cannot do that
> In most contexts where arbitrary Python expressions can be used, a named expression can appear. This is of the form NAME := expr where expr is any valid Python expression other than an unparenthesized tuple, and NAME is an identifier.
NAME is required to be an identifier now
 
jpp
@AnttiHaapala, OK, thanks, makes sense
 
of course it doesn't but we can pretend it does
considering that all other places where assignment occurs pretty much allow any arbitrary Store() expression
>>> x = {}
>>> with open('/etc/passwd') as x['f']:
...     print(x)
...
{'f': <open file '/etc/passwd', mode 'r' at 0x7fa60d772540>}
 
closed
 
@AnttiHaapala The difference is that assignment-expr isn't just an assignment, though. It's an assignment followed by a name lookup.
 
12:51 PM
@Aran-Fey scary...
 
Cabbage!
 
cbg
 
@DSM Thanks! :) Now it’s your turn :P
 
1:08 PM
cbg
opinion: If you have a pathlib.Path object called p, how would you open it?
# 1
with p.open():
    ....
# 2
with open(p):
    ....
 
p.open() for backwards compatibility. The builtin open only accepts path-like objects since 3.6
 
1:44 PM
cbg
@Arne - are you just reading the contents? Then do p.read_text() or p.read_bytes()
 
cbg
 
2:04 PM
Suggestions for topics for an intermediate/advanced Python interview? (I'm the interviewer, not the interviewee)
 
something about mutability and hashing
 
@MPJ my eyes
@Arne why do you know it is a Path object
@PaulMcG ask them if a tuple is a constant list
 
That's a strange question. What would the "correct" answer be?
 
Correct Answer: "What is a constant list?"
 
@Aran-Fey "who's asking?"
Guido and Antti say it's not, others disagree :P
 
2:14 PM
I mean, I can agree that there are semantic differences between lists and tuples, but... I'm not sure how you'd use that question to evaluate applicants, because there isn't really a wrong answer
 
2:25 PM
It might be on the same level as "vim or emacs?". Not necessarily a good aspect but an aspect none the less ;)
 
@PaulMcG I'm moving a lib from using basic strings to identify paths to Paths, and ask myself if there are any reasons to change those exact lines
@Aran-Fey oh, good to know
 
cbg
Is there a mod that str == True returns True and str == False returns False.
 
What's a mod?
 
side note: you should not check truthiness like that
 
@AnttiHaapala because I created it
 
2:31 PM
@vaultah like a hidden hack.
Without modifying files.
 
>>> str = True
>>> str == True
True
>>> str == False
False
h4ck the world
 
^ hax0r
 
I mean "Hello" == True should return True
 
then ask that
and no, string literals are strings and not bools, and True/False are reserved keywords in python 3
>>> True = "Hello"
>>> "Hello" == True
True
>>> "Hello" == False
False
python 2 ^
and before your next question, yes, it can work with arbitrary strings
 
@AndrasDeak Excellent! but not working in python 3 :/
 
2:34 PM
I appreciate that by "python" you're referring to just python 3
 
My 3 button do some skipping.
 
@Arne I've looked at something similar with a code base I'm managing - there are sufficient differences between the two (esp. advantages of Paths over strings) that I think you should really consider more refactoring options than just string substitutions in the code
@AnttiHaapala I would like to avoid religious questions if possible
 
2:49 PM
@PaulMcG I think I refactored it more or less appropriately, I was really just unsure if there was a difference between the two ways to open a file with pathlib.Path.
I'll actually go with open(p) and screw backwards compatibility since the project relies so much on dataclasses that it'll never be backported to to <3.6
 
Interview question: Maybe I'll go with "which is better, tabs or spaces?"
 
Correct answer: Elastic tabstops :(
 
@PaulMcG better have a few in store, devs bite on very different topics and you want to get them to talk, right?
#1 What don't you like about python?
#2 When do you use containers, when generators?
#3 Tabs or spaces?
 
3:28 PM
this "how do I convert a list of strings to integers" question is closed as dupe of this "how do I convert a nested list to integers" question. I'm not happy with that situation. Is there a good reason why I shouldn't reopen that question?
 
Better find a better duplicate and swap the links around
 
Not a fan of that. Converting to int is far more common than converting to float, so I don't want to close the int question as dupe of the float question
 
wim
Would you want a new answer added to that 2011 question? No, right?
so don't reopen it
 
^
 
wim
shame the list comp isn't the accepted one
 
3:41 PM
@wim I don't think that's relevant. It's a useful question. It's not correctly closed as duplicate. What reason do I have to leave it closed? I don't care if someone adds another answer, but I do want to give people the opportunity to do that.
"It already has answers" is not a reason for closure.
 
Looking closely, the question would probably be fine opened.
Also: Holy shit, that question still uses the old duplicate link thing where community maintains a list in the question body
 
wim
What else could possibly be added?
 
@wim Nothing needs to be added, but the question – as it stands – does not need to be closed in the first place.
 
^
 
I reopened the question.
 
wim
3:44 PM
disagree. the first dupe (to the 2009 Q) looks fine imo.
 
Even though it's about nested lists?
 
wim
If you can not figure out how to ungeneralize the nested case to the single list case, you are not meant to be a programmer
 
I'm sure that a lot of people on SO can't do that, and I think the question is common enough to warrant a 100% accurate duplicate
 
wim
user Michael (unregistered) 0 answers, 1 question, Last seen Sep 11 '11 at 22:21
If the accepted answer was the good one (list comprehension) then I would be ok to re-open it and even use a dupe target
 
@wim I would rather argue in the opposite direction..
 
wim
3:50 PM
maybe there is a good "how to list comprehension" and a good "how to string to int" and you could use those 2 together?
 
I don’t think we need to figure out a way to close that question. The votes show that the topic is interesting enough on its own to allow its existance. And the answers are succinct enough that they can act as a quick reference.
 
@wim If we can find an actually good "how to list comprehension" question, then I wouldn't mind. But I've searched for one in the past, and never found one.
 
All the list comprehension ones are typically coupled strongly with a particular use case.
 
Also, what poke said. I'd much rather find a way to close the nested one
 
wim
I don't care much tbh but at a high level: I see closing as a tool to ameliorate the floods of new/bad/dupe questions incoming. I don't really see it as a tool to go and deal with years old questions that have low views and are not harming anything by just existing.
Similar for re-opening, since new questions often get closed too eagerly or inaccurately
 
3:59 PM
Well, I don't disagree, but by definition it's irrelevant how questions that don't harm anyone are handled... If I happen to find a question with low views on google, it harmed me, and I'll close it.
 
wim
Some users want to use these tools to re-organize all the historical data into some kind of tree or graph. But it's too blunt a tool to be used in such a way, and they are wasting their time IMO
 
That sounds wrong. Duplicates should never make a graph, or a tree (Unless all nodes except for the root node are leaf nodes)
 
wim
clusters of structures of somewhat-related topics
It's folly. All this data doesn't need to be organised (that's the yahoo model, which eventually failed), it just needs a powerful search (that's the google model, which was/is successful)
 
4:29 PM
Does anyone here have experience with this library?
 
@user3483203 s/this library/pact-python/g - should save a mouse hover :-p
 
4:47 PM
Another update on my memory madness. I think it's the frozensets (of which there are many) allocated here
https://bitbucket.org/mchaput/whoosh/src/a16ebac/src/whoosh/reading.py#lines-819
I still don't know why the memory isn't freed, but I'm going to replace it with a regular set and see what happens.
 
could be, the created object keeps a reference to the frozenset
question is how long those FilterMatchers live
 
wim
oh, man, a 3rd party I'm using is logging passwords in plaintext
idiots
now I have no choice but to disable all their loggers :(
 
@wim or patch their code (in the source or at runtime), or add a filter to the logging
@AndrasDeak well having changed it to a set it still doesn't show up in pympler tracking, so maybe it's not that. Unless sets also have special memory reporting as well?
 
wim
5:03 PM
@PM2Ring nah, that's more for bad pw storage
this is a SOAP client (suds) which has copious logging (good) but is also logging request data from all the authentication code (bad)
 
@wim Storing plaintext passwords in a log sounds like bad password storage to me. Sure, the logs aren't exactly intended to be data storage, but those passwords are still sitting there.
 
wim
of course it's a bad idea. they shouldn't be logged in the first place.
Their [https transport](https://github.com/cackharot/suds-py3/blob/master/suds/transport/https.py#L30) is just a [thin subclass](https://github.com/cackharot/suds-py3/blob/master/suds/transport/https.py#L65) around their http transport, which logs everything:
https://github.com/cackharot/suds-py3/blob/master/suds/transport/http.py#L77
why don't my shortlinks work?
 
Curious. Is there a newline hiding somewhere in that message?
 
Ah no
 
Im like the champ of 0 score selected answers
there will be answers with 4 points 3 3 3 and then mine 0 selected haha
 
5:16 PM
Most people start out like that
 
yeah its whatver just shocks me sometimes im like huh ???
 
@wim If I'm reading that correctly, all the requests only get logged when you're logging at debug level, right? So I guess they don't see it as an issue, since you wouldn't be running in debug mode on real data.
@Aran-Fey Getting the accept on a zero score answer isn't unusual, but when that happens regularly when there are several other positive scoring answers it does feel a bit odd.
 
Most important thing to remember is that the vast majority of people doing the voting are those that frequent the tag. Your lack of votes is most often is a judgement of those who see many answers and were not inspired by the content of your answer. While on the other hand OP decided to pick yours. Often times, the OP doesn't get it right.

However, many times, people upvote higher rep users simply because they assume they are right and OP tried the answers and liked someone else's answer better.
 
wim
5:34 PM
@vash_the_stampede there's a couple of badges for that
@PM2Ring logging debug level on real data is necessary sometimes to track down issues in production
 
@wim He's already got Unsung Hero
 
wim
ah ok. this is a badge I will never be able to get :(
 
@wim True enough. And I guess hacking the source to turning off the logging on passwords is a bit messy...
resource recommendation / POB stackoverflow.com/questions/52707352/…
 
5:56 PM
^ gone
 
User keeps asking for help with "flask riddle" homework problem that's been going around.
 
jpp
@Aran-Fey, Are you running a bot which adds correct tags to posts?
e.g. add python to a post tagged python-3.x.
If so, what a brilliant idea!
 
6:11 PM
Kind of. I have a userscript that semi-automatically improves low-quality questions. I still have to manually click "edit tags" and "save edits" though.
 
I bet one web developer is having flashbacks now
 
jpp
you should automate that bit too for the python-3.x -> python
SO aren't ever going to fix / improve that side of things
unless there're enough tweets from new users
 
I actually tried to make 100% automatic, but failed. If I just use JS to edit the tags and press the "save edits" button, it doesn't work reliably for some reason, and I couldn't figure out how to send a correct "edit the tags pls" HTTP request
 
6:25 PM
Hi everyone.
 
hello
 
Ah, Andras, long time no speak
 
> last message 427d ago
probably, yes :D
 
I have a logic flow issue in Python- the logic seems rather intuitive to me, but for some reason, it's not working
Here's the thing: I have elements in some list "list_A" and some elements in list "list_B"
 
(note that a 10-line example might speak a thousand words :)
 
6:27 PM
Sure
one moment
sorry- how do we post code again?
 
see the pinned post on the left (assuming you're on desktop), or just put it in a pastebin or similar code paste service
 
<script src="https://pastebin.com/embed_js/1p72hYgH"></script>
 
(pssst: left is over <- there. that -> is right)
 
OK then... that didn't work
 
oops, the other left
@daOnlyBG just post the link
we can venture one click's distance
 
thanks
 
the only "b" value that should work is 41, and the only "a" value that should work is "1"
 
style note: if you name a lambda you should define a proper function instead
 
noted, thanks
 
And what are b_primes and a_coefficients like?
and what is it supposed to do and how doesn't it work?:)
 
6:34 PM
OK, the desired result is for "candidates" to produce the tuple (1, 41)
b_primes has all the primes from 1 to 50
and a_coefficients has all the odd numbers from 1 to 50
so anyway, the script is supposed to sort though a_coefficients and b_primes to find which of the two coefficients produce primes once you've fed a number "x" from range(0,50)
 
so you're trying to test for a combination (Cartesian product) of a, b and x values whether x**2 + a*x + b is prime
 
yes!
thanks
 
OK, so far so good
you're only breaking the innermost loop with break
your string suggests you want to skip that (a,b) pair entirely
 
correct
 
you might want to test whether any x gives you a prime for a given (a,b)?
 
6:37 PM
well, all x's
 
oh, OK, that's better
move the else one indentation level above :)
 
as in, once an "x" fails to produce a prime, i want to go onto the next (a,b)
 
now it will find the first prime when x=0
whereas you want "if all the x failed i.e. we never broke the loop, append the candidate"
the for - else construct will only enter the else when the corresponding for loop has run its course without being "broken"
i.e. exactly when all the x values gave you primes
 
one sec
 
So you're looking for generalizations of this: en.wikipedia.org/wiki/… ?
 
6:43 PM
side note: you should use python 3 if possible, and format strings/f-strings for printing
 
@PM2Ring, yes
OK, so is this what you're suggesting by moving the "else" one indentation level above?
 
wim
def is_subsequence(s1, s2):
    it = iter(s2)
    for element in s1:
        if element not in it:
            return False
    return True
^ any failure modes of above?
should return True for subsequences, but there can be other elements interspersed
 
@wim unfortunately, I tried something similar to that, and it just appended ALL possible combinations
 
I think his question is unrelated
 
wim
Yes, sorry, this was unrelated to whatever you were chatting about
 
6:46 PM
well, it is unrelated, but I did try using a "for...else"
 
wim
I was planning to use this for logging assertions (I want to assert *events were logged, in order, but there may or may not be other events in between the *events)
@PM2Ring example?
 
what I was wondering ^ but might still work for filtering subsequences
@daOnlyBG yes, that's what I meant
Now if there's any x where you don't get a prime, you break the innermost loop and never enter the "else". If all the x gave you primes, you enter the else block
 
ok, so you're suggesting I use a counter to see if x gave me all primes?
 
what code you have in that pastebin; does it not work?
 
Nothing I've sent you works, unfortunately
 
6:53 PM
How does it not work? Are you sure isprime works correctly, for instance?
start printing working and failing cases, etc.
 
I've tried "isprime" on many prime and composite numbers and it works
I don't believe that's the issue
 
@wim Sorry, I didn't look closely at what you're trying to do. I just saw an in test on an iterator, and alarm bells went off. You want it to return True if items in s1 occur in the same order as they are in s2. Any element of s1 not present in whatever remain in it will exhaust the iterator & return False, and I can't think of any corner cases where it will fail to perform correctly.
 
@wim all(x in it for x in s1)
 
@vaultah what if you have s2 = [s1_0, other, s1_1, other, s1_2, other]? (where s1 = [s1_0, s1_1, s1_2])
@daOnlyBG see if you have false positives or false negatives. In case of false positives check why the loop didn't break. In case of false negatives check why the loop broke, i.e. the combination of a, b and x that went inside your breaking if, see if that makes sense
you will only be able to debug if you get specific about the "not working"
 
7:03 PM
Thanks
 
@AndrasDeak it will return True
 
wim
@vaultah yes but I prefer the explicit loop, because sometimes I need to put a breakpoint on that return False
 
I'd expect subsequences to only cover [other, other, s1_3, s1_4, s1_5, other, other]
> but there can be other elements interspersed
ah!
 
did you guys solve this ?
 
Does this have any value as a standalone question/answer? I'm guessing there must be a dupe
 
wim
7:18 PM
@roganjosh no and has nothing to do with
close as dupe of Martijn's sarcastic comment about the "secret knowledge" or whatever, I can't find it just now
 
I don't have the dupe in mind but I know it must exist :)
 
Wow, Hacktoberfest really attracts awful PRs (even if I have yet to see spam/nonsense this year)...
Dunno if I'm too strict with on that since he probably did the PR in good faith, but I really dislike the idea of someone getting free swag for making a PR that case code that doesn't work at all
 
Closed
 
if len(email) > 7 hmmmmmm
 
Definitely not too strict. hacktoberfest is about gaining experience, and experience submitting PRs with obviously broken code isn't experience
(where obviously means it doesn't even work locally, disregarding someone's inexperience with CI)
 
7:34 PM
I mean I wouldn't mind too much someone submitting a PR for that issue without testing it in the application itself. It's pretty straightforward. But having code there he could have easily tested in the python repl?!
 
Also, I'm not too familiar with the code base as a whole, but the only real valid way to check an email address is to send a test email. Maybe you can do a regex for .+@.*\..*
Yes, exactly
 
we do the next-best thing: checking if MX records exist
 
wim
not too strict, responses looks polite and helpful to me.
 
actually sending an email is not really OK unless it's actually for setting your own email ;) (and trying to send an email without actually sending it, during a bulk import, might very well get your IP blacklisted on mail servers)
 
Ah right, this is for adding guests, isn't it? Not an account creation workflow? makes sense.
 
8:16 PM
Recbg
There are other things in email address that can be invalid, like 2 consecutive dots
Also there might be mail servers with just a records
 
8:29 PM
The aliens are getting even faster. This OP got abducted before he even finished typing in his assignment description.
 
Disappointing. They should try to get people before they start writing a SO question
 
wim
just about to merge and tag/release for the subsequence thingy, can anyone think of other edge-cases to add to the test suite?
 
@wim Maybe one with len(needle) > len(haystack) ?
 
wim
added thanks
 
8:47 PM
I need a userscript that closes the tab when it sees "I'm new to" in the question body
 
wim
hmm, what about one that adds a waving hand emoji and reminds you to be nice. no wait, we have that already.
 
@AndrasDeak Give me a question to test it on and 10 minutes (:
 
I daren't unleash your userscripting powers on the world :P
 
a world without userscripts is not worth protecting
 
wim
@Aran-Fey do you remember that chunker? I was thinking of easing up the API to allow negative numbers for the "overlap" argument too.
 
9:00 PM
I remember overhauling it, but I don't remember how it worked
 
wim
yeah you overhauled it and in doing so I think you created this unfortunate behaviour:
>>> print(*chunks(range(10), chunk_size=3, overlap=-2), sep='\n')
(0, 1, 2)
(5, 6, 7)
(7, 8, 9)
 
Hah, that's a pretty fun little bug
 
wim
I hadn't really intended for negative overlap, but I guess it should do the right thing or at least a more obvious thing
 
Wait a minute, isn't that actually the correct behavior? What else would you expect to happen with negative overlap?
 
what would the expected behaviour be in that case?
 
wim
9:05 PM
I don't know, I was hoping you guys would tell me what would be your expected behaviour
for me it would be only yielding 2 chunks
the elements 8 and 9 would be consumed only by the -2 overlap there
>>> print(*chunks(range(11), chunk_size=3, overlap=-2), sep='\n')
(0, 1, 2)
(5, 6, 7)
(10,)
because that is the current output for an input inclusive of 10 ..
 
Oh, right, I overlooked that the last chunk was incorrect
 
9:17 PM
I think this should work?
except StopIteration:
    # if the iterator is exhausted, yield any remaining elements
    i = -i - overlap
    if i < 0:
        yield tuple(queue)[i:]
 
queue is one of the silliest English words (except that it's French)
 
It's a pain to write on a colemak keyboard layout because u and e are pressed with the same finger :(
 
wim
The last four letters in "queue" are not silent, they're just waiting their turn..
yeah, on dvorak too. q is where x is, ue is where fd is.
 
*laughs in qwerty*
 
wim
you use colemak? I wish it was around when I switched to dvorak originally, it looks like colemak is a better choice in every way.
iirc Martijn is also a dvorak user
 
9:22 PM
Nov 1 '16 at 19:39, by Martijn Pieters
Since I have a keyboard that natively supports Dvorak, I'm not sure what I'd gain from yet another layout.
 
It's not too hard to get used to new layout, IME. After 2-3 weeks of practicing with Ninja Cat and Zombie Dinosaurs, I started using colemak as my everyday layout
 
wim
coming from qwerty, or something else?
 
I don't know dvorak, but qwerty made my fingers hurt
coming from qwertz, technically (the german variant)
 
qwertz is the worst
 
I almost failed a programming exam because I spent 20 minutes figuring out how to change the keyboard layout to colemak via the terminal
good times
 
wim
9:26 PM
hahah
@Aran-Fey care to provide a PR (with tests)?
 
Not today, but if it can wait until tomorrow (after I've figured out how to make PRs), then sure
 
they're easy
just fork his repo, clone that locally, make your changes on a feature branch, push it to your github repo, and the "make a PR" button (/banner/link/whatever) will appear automagically
 
That does sound easy, thanks. Still, not gonna happen today. I'm gonna go get some sleep soon
 
wim
no rush.
The workflow is exactly as Andras described. There's a PR builder on the repo so it will run tests/show coverage report automatically.
 
gotcha
 
9:39 PM
I wonder why Github can't add support for creating PRs via simple diff patches...
(instead of creating a separate repo with the changes)
 
00:00 - 22:0022:00 - 00:00

« first day (2914 days earlier)      last day (2027 days later) »