« first day (1936 days earlier)      last day (3026 days later) » 

5:01 PM
I know many facts about the Earth. Fact #1 the Earth is really cool.
 
> TV Reporter: "Can you blow up the Earth with your mind?"
The Tick: "I hope not, that's where I keep all my stuff!"
@Kevin Seems like the guy's problem is just that what he's asking for is a harder problem than one would think without trying it himself.
 
Yeah, OP doesn't have a great grasp of what is easy and what is hard, since it's his first Python program.
It's not inconceivable that a language could have the feature he's asking for. But Python is not that language.
My recent comment combines about five different intermediate-level language concepts, which hopefully will signal to OP to try a different approach.
But it might backfire and he'll comment, "Ok, please explain how classes work and how threading/Queues/Locks work and how double-underscore methods work"
"What's wrong with Ctrl-C?" This is possibly subjective, but I find except KeyboardInterrupt: to be somewhat user-hostile. If you use ctrl-C as a change-of-control-flow signal, then you can't use it as an emergency "terminate the program now" lever.
 
I should also suggest getting rid of except KeyboardInterrupt
 
5:17 PM
The way it's used in the OP's code is mostly harmless, since it terminates the program anyway... One could argue that hiding the stack trace is wrong, though.
 
Yea, it's harmless but wrong.
It's harmless at the moment.
 
Okay, sounds like it's best to let it complete itself or ctrl c — Mobalized 3 mins ago
Gambit successful B-)
 
But there is no accept :O
 
So it goes.
 
OP accepted the futility of what he was trying to do. That's something.
 
5:20 PM
Nice to see a newbie OP with that level of self a awareness TBH
 
I usually don't hound the OP for a checkmark if they aren't enthusiastic about the information I've given them.
Resigned acceptance that they can't do the thing they want easily: just let it go.
 
> staking it all on New Hampshire Underpants Gnome strategies
That's two days in a row politico made me chuckle.
 
Mathy folks, how do I convert percentages? Eg, I have a timestamp 12.30, which is the equivalent of 12.5, because they're both half of the next unit. Is there some mathy trick I can use to convert them?
 
wtf?
 
You have it as number?
 
5:30 PM
You mean 12:30? Like the time o clock?
 
It's for golf. Yeah, I do.
@QuestionC Yeah, exactly.
 
integer(number) + fraction_part(number)/max_fraction
With max_fraction in this case being "0.6"
 
>>> x=12.3
>>> (lambda a,b:a+b/.6)(*divmod(x,1))
12.500000000000002
 
Awesome, thank you!
 
Possibly there are smaller ways to do that.
 
5:33 PM
It at least gives me a starting place.
 
Or one could do a string split, and then keeping the numbers aside from each other.
 
DSM
Same thing:
>>> x//1+x%1/.6
12.500000000000002
 
Nice.
 
I suspect you can express it as x+x%1*something as well
>>> x+x%1*2/3
12.500000000000002
>>>
 
DSM
>>> x+x%1*2/3
12.500000000000002
Aaargh! Kevin'd by QC!
 
5:36 PM
>>> float(str(x).replace("3","5"))
12.5
 
You kind of Kevin'd me first.
 
@QuestionC lol, didn't that version's workings depend on which version of python you use?
In pre-3 was "promotion" of integers to floats automatic?
 
If you're multiplying a float and an int, sure.
Luckily (x%1)*2/3 gets evaluated as ((x%1)*2)/3 and not (x%1)*(2/3)
 
Looks like it works on python2. Remember that we're not dividing 2 by 3 (which is 0), we're dividing x%1*2 by 3
 
oh ye
 
5:40 PM
cbg
@QuestionC Why are you calculating x%1? Isn't that always zero?
 
Only for integers.
 
oic
so for float x%1 is the decimal portion? That seems handy
 
wait how does this work? - (12.3%1) = 0.3 0.3*2 = 0.6, 0.6/3 = 0.2
So.... what's happening?
Should be x%1 * 5/3
 
.2 + 12.3
 
oh my bad, stil reading the x//1 there XD
 
5:45 PM
@thefourtheye interesting. I wouldn't call myself an expert, I didn't know about that behaviour, although it does seem pretty strange. Great post, thanks for sharing!
 
The difference between x and x//1 is x%1, so you can replace x//1 with x by reducing the multiplier of x%1 by 1 (from 5/3 to 2/3).
 
@Code-Apprentice careful with negative numbersthere.
 
Note that *5/3 is /.6 as in DSM's first answer.
 
@paul23 hmm...so if x is negative it will be the 1 minus the decimal portion...yah, that makes sense.
 
re-cbg
 
5:48 PM
Just tried to represent Graham's number in python. Silly me.
 
@Code-Apprentice depends on how the language defines modulo
 
I recently pointed out to someone that in some languages (C, C++, and Java at the very least), x % n has strange behavior if either x or n are negative (even with integers.
 
Mathematically both definitions are correct - and different languages do it differnetly
 
@paul23 we're doing python here, right?
 
Mathematically, the way Python does it makes wayyyyyy more sense.
 
5:49 PM
I'm familiar with the issues with integers in various languages...I've never used % with floating points
 
@vaultah You are welcome :-)
 
@QuestionC exactly...at the time of the aforementioned conversation, I wasn't aware of Python's semantics...had to test it out and read some docs.
 
@tristan How's the startup going? Is it finished yet?
 
Is a startup ever finished?
 
I'm not sure why C does modulo the way it does, but everything else probably does it because of C.
 
5:50 PM
In computing, the modulo operation finds the remainder after division of one number by another (sometimes called modulus). Given two positive numbers, a (the dividend) and n (the divisor), a modulo n (abbreviated as a mod n) is the remainder of the Euclidean division of a by n. For instance, the expression "5 mod 2" would evaluate to 1 because 5 divided by 2 leaves a quotient of 2 and a remainder of 1, while "9 mod 3" would evaluate to 0 because the division of 9 by 3 has a quotient of 3 and leaves a remainder of 0; there is nothing to subtract from 9 after multiplying 3 times 3. (Note that doing...
 
@Code-Apprentice Talking about the MVP. :p
 
@QuestionC I'm willing to bet C was influenced by hardware implementations.
 
@QuestionC Because C sets the rules in this fuc*ing world
 
math.fmod & % behave differently in python
 
>>> -5 % 2
1
That is the main difference. I've yet to see an application where -1 was the desired answer from that operation.
 
5:53 PM
@QuestionC In vector algebra you lose the notion of direction with that modulo.
 
@QuestionC I'm trying to find meaning behind this.
 
But what should -0.9 % 1 return, 0.9, or 0.1?
 
@paul23 Okay, you're bugging my brain.
 
@QuestionC When I'm doing %2, I simply want to know if the number is odd or even, so 1 or -1 is fine.
 
>>> -0.9 % 1
0.09999999999999998
 
5:58 PM
A%B should return some number C such that B*N + C = A, for some integer value N. There's no integer N that makes 1*N + 0.9 = -0.9 valid, so -0.9%1 shouldn't return 0.9.
 
@PatrickBassut math.fmod(-0.9, 1) gives "-0.9"
 
@PatrickBassut In C, `-5 % 2` returns `-1` (and `-5 / 2` returns `-2`) versus python which returns `1` and `-3` respectively.
If you try to write a program that really *needs* integer arithmetic like a gcd calculator, the python way makes the code much more beautiful.
 
As per @Kevin's argument, and using "truncated division"
 
The division operation is not too surprising. It's just the way a language does rounding of floating points.
At least in this case
 
Conceptually, I would prefer A%X to have the same result as B%X when A and B are congruent modulo X. ex. -8%5 == 7%5.
 
6:03 PM
@paul23 Python docs addresses exactly the difference between fmod and %. here. So, we can't use % for floating points and expect rational thinking out of it.
 
While we're on the subject, anyone got silly cat names? I've already got Tabby Road, Chairman Meow, and Mr Bigglesworth.
 
I also find it more intuitive that A%X always lies in the range (0,X]
Or [0,X). I can never remember how inclusive/exclusive brackets go.
 
DSM
[0, X).
 
] is inclusive
 
Mnemonic: Square brackets are inclusive because "square" is synonymous with "unpopular" and over-inclusiveness is a geek social fallacy
 
DSM
6:09 PM
@MorganThrapp: +=, no?
 
@DSM For r? No.
 
DSM
@MorganThrapp: for a & b.
 
Oh yeah, duh. Thanks.
 
What is the Golf problem?
 
5
Q: Check work periods

DenkerAffeIntroduction Here in Germany the ruling on work times is very strict. If you work 6 or more hours a day, you have to take at least a 30 minute break. If you work 9 or more hours, you need to take a 45 minute break. If you work less than 6 hours, you don't have to take any breaks. Of course you ...

 
6:11 PM
We have to get two strokes off of Jerry's game. Look at me!
 
@Kevin Caaaaaaaaan do.
I tried doing stuff with map instead of reassigning, but it ends up being much longer.
 
DSM
@MorganThrapp: hey, wait. What dark magic are you doing with a and b there?
 
@DSM What do you mean?
Do you mean reassigning the loop variables? Yeah, that's a slightly scary feature. :P
 
DSM
Could save a character by using (e-a)*(cond) instead of (0,e-a)[].
 
Thanks. It really bothers me that I'm repeating that equation twice.
There's gotta be a way to do something. :/
 
DSM
6:20 PM
Which equation?
 
a+=a%1*2/3;b+=b%1*2/3
 
anyone here?
 
i need help i have no idea why my python code is taking so damn long to run
 
I'm present but emotionally unavailable.
 
6:24 PM
@user125535 sopython.com/chatroom <- Room rules
Tldr Just ask the question
 
If you have eight nested for loops, your code is probably taking a long time to run because of the eight nested for loops.
 
DSM
Psychic guess: hidden O(n^2) because of inappropriate O(n) membership testing!
 
Also, refactor O(2^N) fibonacci generators where possible.
 
def main():

	print "executing part 3"
	success_rate_training = []
	success_rate_validation =[]
	success_rate_test = []
	k = []
	for i in range (1,51):
		k.append(i)
	print "test.."

	## rest of the code
it does not print "test"
 
Use 4 spaces to indent
 
6:26 PM
how do
how do i new line on here without entering into the chat?
 
to preserve indentation: Highlight all and select the "fixed font" button. To get a newline without sending a message: shift+enter.
 
also, up_arrow to edit your previous message
 
DSM
Does it print executing part 3?
 
yes
it seems to get stuck on that
 
6:28 PM
Strange, it prints "test.." on my machine. Please provide an MCVE.
 
DSM
#1: Add prints. Add print "about to start loop" before the loop and print "i=",i,"k=",k inside it. #2: Run your program using the -tt option from the command line to make sure that you don't have mixed indentation.
 
yeah it seems to not do anything after printing the first line
 
Obvious Guy says: mixed indentation is when you mix tabs and spaces. Though it may look the same, python doesn't like that
 
when i compile my python it initially makes 3 lists and fills fills them with images (numpy arrays)
dunno if that has anything to do with it
 
6:31 PM
I have a sneaking suspicion that this conversation will end with "oops, I forgot to mention that I call function_which_might_loop_forever() right after k = []
 
DSM
@user125535: the program you posted doesn't do anything with numpy, and that's the one you're saying has a problem.
 
@user125535 This is why Kevin asked you to provide an MCVE. We can't possibly help without seeing actual code that has an actual problem.
 
I await the MCVE with polite anticipation.
 
you want me to post my entire code?
 
Looking for bugs in all the wrong places...
 
6:33 PM
@user125535 Did you read the link? Does it say that?
 
@user125535 Not necessarily. I want you to post all the code necessary to demonstrate the error, which I can copy & paste & run & witness on my own machine.
 
I don't know why, but I always read "MCVE" as "McVee". It's quite a delicious concept :P
 
DSM
♫ M stands for Minimal ♫ it's good enough for me ♫
 
This may require you to trim substantial parts of your full code away, so only the smallest piece remains that still fails to print "test.."
 
@MorganThrapp: how's your day coming?
 
6:34 PM
do i need to make a stack overflow post? or just post here
 
@inspectorG4dget Pretty good, this marks week three of not having a project to work on, so I'm trying my hand at learning Django while I do some golfing. You?
 
You can post here but if the code is more than, say, fifteen lines long, it is advised to use a service such as pastebin rather than dumping it all in a message.
 
@user125535 if you were to make a post with only the information you've given us so far, you'll hear many more users asking for that MCVE
 
DSM
Oy, it's 1:35 already? I look forward to learning what the problem turned out to be when I get back from lunch.
 
ok i'll give you my code in a sec but i just commented out the part where I fill arrays with numpy arrays and it executes like normal hmmm...
 
6:35 PM
what's the deal with everyone designing everything for iPhone, regardless of its actual application?
 
@user125535 Well, it sounds like you found the problem.
 
@MorganThrapp jealous. I'm stretching myself thin with work, projects, administrivia, and family obligations babysitting grandma. I need to import beer
 
@user125535 Did you read this?
 
thing is i need that part xD
 
@user125535 numpy stuff is generally slower than normal python.
 
6:37 PM
@BhargavRao saywhat?!
 
@inspectorG4dget That's what I found out
Haven't used it much :(
 
Well, define "stuff".
 
conventional wisdom says numpy is much faster than pure python. What did you do on numpy that was slower than purepy?
 
DSM
It's true in some contexts, I guess. Like if you're calling a numpy function on one element, the overhead is more than a standard math function. But if you call it on a thousand, it's much faster.
 
That was going to be my next comment
 
6:39 PM
Reading the line import numpy takes more time than reading an empty line. Overhead detected!
 
Oh, there's a lot of questions that say Numpy is damn fast
My dataset was 32 rows
32 Federal Ridings of Atlantic Canada
 
Presumably it works better on big data.
 
DSM
That doesn't sound like numpythonic data.
 
numpy doesn't even get out of bed for less than 10 gig text files of the entire human genome.
 
What is "numpythonic data"?
 
DSM
6:42 PM
numpy is best for arrays of numeric data. Basically, unless I can imagine wanting to find the eigenvalues of an array, I'd probably use pandas or xarray instead.
 
The fields there were, FEDUID, LAT, LONG, ACOA Funds, Local Parliamentarian and other stuff
 
DSM
numpy barely even supports named fields.
 
Nah, it was from a CSV file.
 
Strings are just wannabe numbers.
 
I had written R code, my prof recommended me to use numpy.
 
DSM
6:43 PM
@BhargavRao: I'm not talking about the data source, I'm talking about the data structure.
 
Your professor must now wear the sombrero of mild reconciliation.
 
DSM
R ~ (pandas+statsmodels), not R ~ numpy.
 
@DSM Ah, Got it. The Latitude and Longitude has to be merged with another dataset to get postal details. That's where I used numpy
Hmmm, So I was wrong then. Sigh. 6 months later I realized that.
 
Coupled with the shroud of doubt as a nice twin set.
 
DSM
And now it really is lunchtime. ¡Adiós, Amigos!
 
6:45 PM
bon apetit @DSM
 
@DSM rbrb o/
Now that I am reading statsmodels and pandas, it sounds interesting.
 
@DSM more like numpy ~ matlab
 
Then why did that prof recommend numpy?
She should have let met code in R.
 
it's a dupe of one @tristan self-answered
 
@inspectorG4dget Lol. I tried to type matlab vs numpy just to see the difference.
 
6:51 PM
bwahaha
 
@BhargavRao I don't get it. It seems reasonable
 
Ah, so the recommended stuff for Matlab in Python is numpy, scipy and matplotlib.
@khajvah A bit of conversation above. I used numpy in a place where I had to use statsmodel. So I was learning as to where to use what. The end google search was funny :)
 
oh ok :)
 
And now I have distracted myself far and far away from what I was doing :P
 
procrastination is a big part of any project.
 
6:57 PM
@khajvah I was trying to revive my old PC. Stopped in for a break after hearing beeps from the PC. Now I am reading bout these libraries
 
@BhargavRao salary seems unfair. If you get hired as a python developer to do whatever you would do in R, you would get the same.
 
user559633
@PatrickBassut Oh, I wish. At my "day job" now.
 
@tristan That makes us both, then(Both wishing the same thing and both in the same place).
 
That means us \o/
 
user559633
"good" support. not us ;)
 
7:02 PM
SO provides good support, if you can withstand our industrial-strength sass.
 
LOL
 
user559633
I prefer LESS.
 
user559633
Gotta love a toolchain that adds overhead and more parts to break to something you otherwise serve up in a flat file.
 
Strong men have broken here, like a butterfly upon a wheel.
 
What about weak men?
 
user559633
7:04 PM
We're the wheel and butterflies are strong men? What's in this tea?
 
Weak men take their fill of knowledge from us, much in the same way a teacup takes its fill from a firehose.
 
user559633
SIR, DO YOU REQUIRE ASSISTANCE. SIR, HELP IS ON THE WAY
 
Come to room 6 SIR, we help all
 
"The bond's Name. James Name" Pleased to... what? "Bond Name's the james" Are you alright? "Bames Nond's having a stronk, call a Bondulance"
3
 
would it be possible to make it so that if you were to ask a question with , you have to also include or (or similar)?
 
7:11 PM
Someone had asked that earlier on meta
 
Honestly, 90% of the questions are independent of whether it's 2.x or 3.x
 
If we had any kind of power over the site devs, sure we could.
But we don't so we can't.
 
rephrase: do we think it's a good idea to...
and Joe just said "meh! not worth the trouble"
 
What's this we stuff?
 
7:12 PM
@inspectorG4dget nope. Most people caring about Python questions just search the Python tag
 
that's why I said "also include", as in "require both tags"
 
@inspectorG4dget The opposite is certainly good. If something is tagged only with Py2, then we add Py
 
user559633
it should require all the tags
 
You can't enforce it, but you can certainly do it yourself.
 
DSM
@inspectorG4dget: the Powers that Be have consistently rejected any tag hierarchy/structure.
 
7:13 PM
I wouldn't say no to an alert that says "looks like you're asking a python question. Additionally tag with: () python-2.7 () python-3.X () No thanks, leave tags as-is"
 
> Add All the Tags meme
@DSM Done with food?
 
@inspectorG4dget yeah but that's unneeded trouble. If you do that with Python, you will have to the same with everything else
 
Users ought to be able to opt-out of adding a version tag, but the default should be to make them think about it
 
user559633
 
user559633
7:14 PM
fine fine
 
ooh! fun python/math puzzle:

Let's say that you write you python math like this: `a*b + c*d` to align readability with operator precedence.
Can you come up with an expression (easy: with numbers; difficult: with variables) that is written with spaces for readability, but the spaces are in the wrong places, so readability and operator precedence are not aligned. You decide to check the code by hand, so you insert parentheses where it looks like they should be (because of the spaces), and evaluate the resultant expression
 
Hmm, I think the answer is "yes".
 
I guess I finally got what earlier me should have used. Pandas, PySAL and matplotlib.
 
PySAL? What were you doing that needing PySAL? (Out of curosity)
 
Uhh... 3* 4*5
 
user559633
7:16 PM
Numbers and letters? What a world
 
@JoeKington Bit of Spatio-temporal Analysis. I did not use PySAL though. I used numpy and I yammed up :(
 
Obvious solution: 0+0 * 0+0
 
oh c'mon! that's a pretty easy answer
 
It's an easy question.
 
@Kevin that doesn't fit the puzzle requirements
fine. %s/easy/trivial
 
7:18 PM
Just curious. I would have done the same. From what I've seen of PySAL, it's really slick, but very focused on exactly what it does. Most spatial analysis doesn't really fit under its purview, i.m.o.
 
Just getting the base case out of the way ;-)
 
shapely, on the other hand...
 
Now trying to come up with a version that doesn't use zeroes or integer division trickery...
 
@JoeKington It was a branch off my main project under another professor for a week. I always used R. That particular prof needed the code to be in Python so that she could understand.
 
X+Y / 1, but that's kind of trivial too...
 
7:22 PM
Now I am completely using R
 
Again, a*b * c*d. Alternatively, a * b+c + a * d-c
 
@BhargavRao - Fair enough. Grass (R-based GIS) is quite nice. Personally, I still prefer Python for what I do (more traditional GIS), but R's side of things is pretty slick
Us geologists are a weird lot...
We tend to do things a bit strangely, especially compared to sane people who don't chew on rocks...
 
I'll give a*b * c*d the "technically correct" participation trophy. a * b+c + a * d-c is a meatier example because the operators aren't all mutually commutative.
 
@JoeKington I have used ArcGIS and QGIS. I liked programming in R. Especially for stuff like i.stack.imgur.com/GV2PX.png. Too bad, GIS ain't support 3D. (R has very very bad support)
 
Or, uh, that's probably the wrong word. Just pretend that you know what I mean.
 
7:28 PM
@JoeKington Wow, My main project is on Geospatial Visualization :)
 
Nice!
 
Commutative is the right word. Mutually doesn't mean anything in that context, but it's ignorable.
 
@BhargavRao - Most of what I do revolves around 3D geospatial data, albeit in a bit of a different sense than what most people are used to. Mostly voxel-based data, grids, triangulated multi-Z surfaces, well paths (3d curves), etc.
But a lot of it is more traditional GIS-style analysis
 
Volcanoes?
 
Sometimes!
 
7:31 PM
:D. Have you done any viz like in i.stack.imgur.com/GV2PX.png?
 
so when you describe a volcano, do you say 6260m or 0m? :P
 
@inspectorG4dget That's a bit confusing. In R we start from 1. So it is 1m
 
@BhargavRao - If I needed to make something along those lines, I'd typically fire up ArcScene. However, you can do it fairly easily in VTK/Mayavi, too
@inspectorG4dget - It depends on how likely it is to erupt :)
 
@JoeKington ArcScene is that ArcGIS related one rite?
 
very cool!
 
7:33 PM
Too bad I have only linux, wine doesn't render that
 
vbox/vmware?
 
Yeah, ArcSene is ESRI's. Windows only.
 
I just downloaded Python 3.5 for Windows.
 
However, if you want to take the VTK route, that will happily work anywhere
Though it's a bit more work
 
I'm a beginner who just downloaded Python 3.5 for Windows. But where do I start writing Python code? I can't find the interpreter...
All I see having to do with Python is a command prompt thing that says "Python 3.5 Module Doc (32-bit)"
 
7:36 PM
Are you in IDLE?
@JoeKington Funny, Mayavi in Kannada (my mother tongue) means Magician :D (Looking at that now)
@templateboy Did you get >>>?
That is the python prompt
 
@BhargavRao The prompt says "Server ready at localhost:63835" and then below says "Sever>"
@BhargavRao I don't see any >>> (or at least I can't find it)
 
@templateboy You can get to the command-line REPL by opening up a command prompt and entering "python". Assuming your environment variables have properly updated, which is typically automatic but may require a reboot.
You can get to a command prompt by going to the start menu and choosing "run...", and entering "cmd" into the text box.
 
@BhargavRao - That's probably deliberate. I'm not sure where Prabhu is from exactly, but he's from somewhere in India.
 
On windows you may need to type "C:\Program Files (x86)\Python30\python". I had that experience with a windows install.
 
Yeah, the full path may be necessary if the environment variable didn't get set for whatever reason.
 
7:40 PM
@JoeKington Oh yeah, It is written at the end of the document that I was reading mayavi.sourceforge.net.
 
Ok I will try that
 
@BhargavRao - Just as a heads up, that page is for the old version.
Though, come to think of it, the sourceforge page probably has a pointer to the other page now...
 
@JoeKington Ty, I just googled mayavi and opened the first link.
Yep, It does link to the other page :)
 
@QuestionC lol windows
 
It's easiest to start out with the mlab interface, though you'll need to understand VTK eventually. docs.enthought.com/mayavi/mayavi/mlab.html
 
7:43 PM
I found it guys. Thanks
 
I'd say finding the interpreter is the hardest part of the first 24 hours of learning to program. Hard part's over :-)
 
Time to call it a day
 
It's smooth sailing from here 'til while loops.
 
Now that half my stuff is in R. From next time I can shift to Py, thanks to Joe!
 
Happy to help! Knowing both is always a good thing!
 
7:45 PM
Consider VBA next
 
(And I need to learn and use R more than I do...)
 
DSM
The R ecosystem is so powerful I wish the language design didn't make me want to throw things.
 
My sentiments exactly...
I keep having high hopes for Julia. The ecosystem has a long ways to go, obviously, but I do really like what I've played with so far.
 
Learning that apply functions was a nightmare for me :(
But R is fun
Downloaded all those. Now back to work
@DSM Thank ya for telling bout Pandas :)
 
I have a list of R issues somewhere. It is quite infuriating.
 
7:55 PM
I hate R
 
Today my Python grievances are 1) every part of Unicode; 2) no empty set() literal.
 
@JRichardSnape I hater
 
"The surface of each potato must be smooth and without flaw" said the eye hater.
 
We are almost out of brackety things to represent groups though. All that's left is already employed < and >
 
1. The assignment operator is <-, not =. = can be used in some circumstances but not always, so the arrow is typically used.
2. Because underscores used to be used for assignment (!) they're not allowed in names. Instead, it's typical to use . in variable names. So a keyword might be comment.char
3. They seem to be inconsistent in their naming conventions. read.table has two separate keyword arguments colClasses and comment.char. I miss PEP8 ;-;.
4. They have several builtin functions which are single letters! Such as c which produces a vector. Single letter builtins!
 
7:58 PM
I guess you could do like strings and say this_is_a_set = s[1, 2, 3]
 
Clearly we need unicode literals...
Not just variable names
 
@Ffisegydd I could not get beyond 1.
I still find it infuriating.
 
Yeah
 
Here, have lots of brackety things:
28
Q: List of all unicode's open/close brackets?

ViclibWhat is a list of every unicode bracket-like characters (including, for example: {}[]()<>)? What is a good way to search for unicode characters?

 
I wouldn't mind so much if = never worked
 
7:59 PM
@Ffisegydd Agree with all! Especially 4 and 5. Add t to 4
 
@Ffisegydd Wait, with number 5, does d get applied to the second positional argument? Or the first?
 
(from this previous conversation)
 
I should be able to use ⦃ ⦄
 
Holy crap my eyes.
 
@JRichardSnape Yeah definitely. Only one or the other is fine.
 

« first day (1936 days earlier)      last day (3026 days later) »