« first day (1550 days earlier)      last day (3404 days later) » 

12:04 AM
dangit, @thefourtheye, why do you have to go and show up my answer? :)
although you haven't added support for slice.step. It doesn't seem impossible.
 
@AdamSmith he he he, I spent a lot of time understanding how OrderedDict works and finally figured out a way to make it sliceable... Just didn't want the effort to go in vain. Its like I documented my finding now.
@AdamSmith That's work in progress :)
 
i thought i'd already done the hardest bit of this project but now it turns out that i cant figure how to get python to make a noise. literally piping pcm audio to sox because i cant this pianoputer library to work :(
 
@thefourtheye could probably just do:
step = key.step or 1

...

for _ in range(step):
    curr = curr[1]
 
You mean, step = key.step or 1 right?
 
ah yes
My implementation used it to skip, yours uses it to advance
Oh nevermind, I'm just off by one since I was doing for _ in range(step-1) anyway.
d'oh.
 
user1253460
12:10 AM
Hey guys. I have been working on a server pragram for a while. I'd like to put it on github to let others contribute to the project. But I don't want anyone to deploy the code on their servers. Is there a particular license restricting that? I've been searching around for a while but can't find a solution.
 
@NMRNH seems only tenuously open source. "Here's some code to look at but you can't use it," essentially?
 
user1253460
Btw, I know this room is about Python but I just couldn't find the right place to ask this. :/
 
user1253460
@Ad
 
aren't you just asking for free labour then
work on this but you can never use it
 
user1253460
Nah, the code is actually based on many scripts. Anyone can write those scripts. The more scripts makes it more fun. Hence I'm thinking about open sourcing it to let anyone write those scripts. But I don't want them to deploy their own version. Does it make sense?
 
12:14 AM
deploy their own version to their own server? or deploy them to your server?
 
user1253460
Their own.
 
so you want people to write scripts they can never use?
 
user1253460
They can use it by accessing it through my server.
 
Yeah I'm COMPLETELY missing where this ends up being an open source project.
 
give us more context
 
user1253460
12:16 AM
Ok let me clarify it more. It is a twitter bot, that does crazy stuff.
 
user1253460
It is deployed and people can use it on twitter.
 
why do you want people to not deploy those scripts themselves
 
@AdamSmith Included step also ;)
 
user1253460
Hmm
 
user1253460
Ok. The case is simple. There are like 10 scripts for this twitterbot right now, that I've written. I want others to add scripts to the project. It is deployed on some accounts, say @A. I don't want others to deploy this bot on any other server and link it to any other twitter account like @B. The reason is simple, I don't want any other opponent.
 
user1253460
12:20 AM
But I want people to contribute to the project, by writing scripts. Thoughts?
 
anyone knows how to get POST requests to Flask for js?
crossdomain decorator seems to work only for GET
 
3 messages moved to Trash
@NMRNH Do that again and I'll ban you.
 
user1253460
WTF? do what?
 
user1253460
That's not the case. We've been talking together and I just assumed they are on some other tabs or something and I pinged them.
 
user1253460
12:31 AM
W/e.
 
And I just told you to stop.
 
well if you're really worried about opponents then a licence isn't going to stop them hah
plus how are they going to test the scripts
 
user1253460
I've implemented a mechanism to test them.
 
user1253460
A proper license may actually really help, as I get a legal way to prevent them or something.
 
@NMRNH this does not look like an open source project, so I wouldn't try releasing it to the open source community via (e.g.) GitHub or etc. Maybe create your own private git repo and give certain people (who have access to your authorized twitter accounts) access to the repo
 
user1253460
12:37 AM
@AdamSmith Does it mean no cloud application should be open-sourced?
 
that depends, can they deploy the cloud app themselves?
plus are you really going to get legal action over a competing twitter bot
just make your one have better scripts or support or something
 
user1253460
Anyway, thanks guys.
 
@NMRNH you're not running a cloud application, you're asking for scripts which only run on a server that you control. Good luck, though! :)
 
12:54 AM
anyone know any good easy to use python libs to synthesize sound in real time
like, a bunch spit out a wav file but i need it to be live
i can spit out 8 bit pcm and pipe that straight to the sound device but pls. no.
 
1:12 AM
Anyone wants to try my game? It's stupid but I wanna know it works on anotehr computer :)
 
what is it
 
N-in-a-row
you have to get N pieces together in a row/column
to win
I'm now in the refactoring stage to get it stable, and then I'll add more features
for now you can pip install ninarow
and then from ninarow import gui; gui.main()
 
you just made a game and it's already on the pip thing?
 
Yeah it took me less than 3 hours I'd say
It's for my nephews, when it'll look better
 
@ReutSharabani Works fine here (Ubuntu 14.04).
 
1:21 AM
Thanks :)
"fine" is a big word, it has very little at the moment... But I'll add more soon
After the battle of pypi is won
 
@ReutSharabani Installs correctly, doesn't crash, playable to completion ... that isn't nothing :-)
 
Yeah I guess... Resize event does not work though, figuring out why soon... I stayed up too late, may give up on sleep entirely
fixed resize :)
 
If you're looking for feedback: It'd be handy to have a "whose turn is it" indicator, and if you fill the board up without a player winning it should probably offer to restart.
 
Haven't got there yet, it's also a good test... Thanks!
I'm wondering if diagonals should be counted as well
And it's not really n-in-a-row yet, it's still only 4-in-a-row like the original board game, so I'll work towards making it n-in-a-row
 
@ReutSharabani That's how it's traditionally played, yeah.
 
1:27 AM
I wasn't sure it exists outside Israel, and where, and how popular... You know this game?
 
In the UK a version is sold as Connect 4.
Connect Four (also known as Captain's Mistress, Four Up, Plot Four, Find Four, Fourplay, Four in a Row and Four in a Line) is a two-player connection game in which the players first choose a color and then take turns dropping colored discs from the top into a seven-column, six-row vertically suspended grid. The pieces fall straight down, occupying the next available space within the column. The object of the game is to connect four of one's own discs of the same color next to each other vertically, horizontally, or diagonally before your opponent. Connect Four is a strongly solved game. The first...
 
it also has a perfect no loss strat. if you go first i think unfortunatel
y
 
I can make a computer player
but that's for later
 
are i-am-<name> domains bad
for a portfolio thing
cv/portfolio
 
why not YOURNAME.name?
 
1:31 AM
not a .com whereas i-am-name.com is
 
I'm not sure why .com are so important...
I have a .ninja
(not for cv)
 
2:26 AM
cbg
I registered nottheeconomist.com basically just for the email address.
If I ever decided to do something with it, I feel like The Economist would sue my pants off.
 
 
2 hours later…
 
2 hours later…
6:33 AM
Cbg guys
 
cbg @vaultah :-)
Also: why the hell am I awake?
 
7:28 AM
Cbg
 
7:49 AM
Cbg
 
cbg
 
cbg
 
8:19 AM
hello
 
cbg
 
from __future__ import cbg
 
I think this is close-worthy: stackoverflow.com/questions/27917590/…
 
8:39 AM
Cbg :)
 
What the... I uploaded something to pypi yesterday and it has 238 downloads
or at least that's what it says...
 
One day, I won't be able to stop myself from commenting: "Perhaps programming is not for you. Have you considered finger-painting?"
 
I'm unable to understand what context varables are in Flask (g. variables). Can anybody point me to details on what they are.
 
g are the application global variables, whatever you put into g...
 
8:57 AM
morning cbg!
 
@ReutSharabani People auto-download from PyPI.
 
I thought there were going to be like 10, for people auto-downloading... didn't think the number would be this high
 
I've had ~400 downloads over the past month for my (new) package.
And it's still in dev and I doubt anyone would actually notice it unless I specifically pointed it out to them.
 
What is it?
 
9:17 AM
I should really get it out of 0.1.dev. I only need to do unittests and then it's ready for 0.1 release.
 
Cool, I only wanted to experiment with pypi and had something to do it with, so why not....
 
9:41 AM
grbml
Self-vandalised then deleted, in spite of having an accepted answer: stackoverflow.com/questions/27841473/…
I've flagged it for a moderator to undelete, but undelete votes are appreciated nonetheless.
 
800 more rep...nearly there...
 
9:56 AM
how does all even work?!
I try doing list access safety checking (len) and then accessing it but it does everything together, or something like that
 
all will check each element of an iterable and check whether they are all True.
If any one element is False, it'll return False.
 
will it return immediately?
or continue evaluating?
 
Will return immediately
 
As soon as it finds a False it returns immediately.
And any, which looks for any element is True, will return as soon as it finds a True.
 
ok, so I have something like all([i1 < len(list1), '42' == list1[i1]]) ...
 
10:01 AM
cbg
 
but I get index error for accessing an index that does not exist in the list
i1 is not negative
 
Example?
 
@ReutSharabani You created a full list first.
Remove the square brackets to make it a generator expression rather than a list comprehension.
ah, no, that's just one list object literal.
with two elements.
 
I'm trying to understand my error. I have sinned against the python
This is exactly my code:

if all([
i1stop < len(clique_run1),
i2stop < len(clique_run2),
clique_run1[i1stop] == clique_run2[i2stop]
]):
These are the values before the all: i1stop: 372 i2stop: 356
 
10:18 AM
Not sure why you need to use all() there; you can just as well use and.
 
@ReutSharabani That looks ok (I guess), but why not just use and, which also short-circuits as soon as it's false.
 
and the values for lengths: len(clique_run_1): 428 len(clique_run2): 356
 
if i1stop < len(clique_run1) and i2stop < len(clique_run2) and clique_run1[i1stop] == clique_run2[i2stop]:
 
I know, but I hate the indentation of long ands. I used and, but I'm refactoring
I hate the '\' when you enter a newline in the middle of along and
 
If len(clique_run2) == 356 then i2stop < len(clique_run2) is False.
 
10:20 AM
and more importantly: I do not understand why this does not work
 
and is more explicit than building a list just to call all on it.
 
Damn typo
 
debugger it is
 
if (i1stop < len(clique_run1) and i2stop < len(clique_run2) and
        clique_run1[i1stop] == clique_run2[i2stop]):
@ReutSharabani Then use parentheses.
 
does all iterate in-order?
 
10:22 AM
@ReutSharabani yes.
You have a list object.
And iterating over a list object always does so in order.
 
I read the documentation to suggest that. Didn't try the actual source code which is probably c.
My error is probably way simpler
 
I already told you why it doesn't work.
5 mins ago, by Martijn Pieters
If len(clique_run2) == 356 then i2stop < len(clique_run2) is False.
 
If it's false it should return immediately, should't it? I'm getting an error
return false, that is
 
i2stop is equal to 356, not smaller than 356.
 
!!! ok thanks :)
 
10:25 AM
No, you are getting an error because you first build the list.
You are building the list, then testing with all().
 
martijn, I missed the equals part, thanks.
 
Oh, nice
 
To build the list you need to execute the clique_run2[i2stop] first.
And that fails.
The [...] doesn't short-circuit here.
While using and does short-circuit and the indexing is never executed.
 
@ReutSharabani Try this:
def grange(n):
    for i in range(n):
        print i
        yield i

print all(i<5 for i in grange(10))
 
>>> l1 = range(5)
>>> l2 = range(5)
>>> all([4 < len(l1), 5 < len(l2), l1[4] == l2[5]])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
IndexError: list index out of range
I understand martijn
 
10:28 AM
@ReutSharabani yes, I told you already
Because [4 < len(l1), 5 < len(l2), l1[4] == l2[5]] has to execute all three expressions.
Before building the list object.
It cannot short-circuit.
 
I understand, thanks...
 
all() is never called.
 
this is done before all even gets any chance to see what's there
 
And see the difference if you change the last line to print all([i<5 for i in grange(10)])
 
I know...
thanks guys that really helps
 
10:38 AM
cbg
 
user559633
cbg
 
wish there was a lazy structure... something like a "generator list"
 
user559633
hmm?
 
@ReutSharabani how about:
 
@AnttiHaapala How would your "generator list" differ from a generator expression?
 
10:41 AM
def rules():
    yield 4 < len(I1)
    yield 5 < len(I2)
    yield I1[4] == I2[5]
all(rules())
 
and approach looks better to me
 
@PM2Ring it would be as the rules generator-func above, except a short-circuiting expression
easiest expression that comes to mind is a list of lambdas which is not very easy :D
 
user559633
What is yield 4 < len(I2) doing?
 
user559633
Just returning bools?
 
Bleh. CV re-written. Now I just need to update the READMEs of repos I've spoken about.
 
10:51 AM
@tristan evaling those lazily there
the problem ofc being that if not len(I2) > 5, then I2[5] will throw
 
Serious talk: Is putting something like "Currently developing Gwydion -- A Python package which can be used to generate randomised mathematical/scientific data (github.com/Ffisegydd/Gwydion)."; in your CV ok? My main question is: Is putting the URL at the end in brackets like that okay?
 
the Finnish translation for CV/Resume is "ansioluettelo", which is "list of accomplishments"
 
@AnttiHaapala The lambda list approach isn't that bad. IMHO.
 
if you consider it an accomplishment that you are currently writing a python package
 
rules = [
    lambda x: x%3 == 0,
    lambda x: x%4 == 0,
    lambda x: x%6 == 0
]

x = 12
print all(f(x) for f in rules)

x = 6
print all(f(x) for f in rules)
 
10:58 AM
I was more asking whether putting the url at the end was sensible, given that chances the CV will be on paper.
 
@Ffisegydd depending how many you're listing, using footnotes is sometimes more acceptable
 
do = lambda f: f()
doall = functools.partial(map, do)
 
@Jon hmmm yeah good point, I'll see if moderncv allows footnotes.
 
user559633
@Ffisegydd i'd be happy to give it a once over later if you'd like
 
@tristan truly you are a gentleman and a scholar.
 
11:01 AM
ahah :D
 
@Ffisegydd is that compatible with being the MTFL!? :p
 
Reminds me of the Reddit post from last week titled "job application hard mode". It was a picture of a newspaper ad saying, "direct all enquiries to www.example.com/applications/%6C%6F%72%65%6D%20%69%70%73%75%6D%20%64%6F%6C%6F%7‌​2%20%73%69%74%20%61%6D%65%74..."
Lesson: use human readable URLs
 
ppl rightly say that StackOverflow is a community-driven website, but they do not know what is the community... it is the Python room :D
 
user559633
@Ffisegydd cheers :) @JonClements shhh i'll lose my license to operate as an MT
 
@Kevin ummph... this isn't your usual time to grace us with your company... are you still sick?
 
11:02 AM
@Kevin hey thats cool
so they are like "want a secretary who can use OCR"
 
@JonClements Yeah, can't sleep.
 
wowo, surely losing the place among the stars is a bit ridiculous reason to develop insomnia...
 
My fever-induced dream ended at 4:00 AM, with the words, "the Ace of Normals is awaiting further instructions".
While I love the idea of having a minion (an ace, no less!), I wish I knew what the communication protocol was.
So, do I just go back to sleep, or...? Email would be a lot more convenient.
 
Ahhh... fever induced dreams are always good fun
I had a strange dream last night about eating a lemon meringue pie
 
Still trying to approach normality since then... I don't think I'd be sharing dream stories if I was 100% lucid.
 
11:07 AM
You might not even be awake :)
 
I could be a butterfly dreaming I'm a man. But that's true even when I don't have the flu.
 
Obligatory H2G2: "We will be restoring normality just as soon as we are sure what is normal anyway."
 
@JonClements Eating dreams are nice. All of the fun, none of the calories.
(the fun being contingent on what you're eating. Cake? Good. Teeth? Bad. A cake in the shape of your father's head? Good, but disturbing later.)
 
I can only assume that it's because I spilt stuff on the bedroom floor and cleaned it with something that had a lemon scent... and I must have been peckish during the night or something...
 
Yep, reality has a way of seeping into your subconscious that way.
More than once I've approached the Guru Of Infinite Knowledge and he opens his mouth to say "BEEP BEEP BEEP", and I awake to my alarm clock, or the garbage truck backing up.
Wake up, America, so I may answer your Python questions.
 
11:17 AM
@Kevin what's wrong with the rest of the world's questions?
 
The electrons that comprise my answers get soggy when they go through transatlantic cables.
And of course, I can't give the secret American signal that says "I too am American, so you should upvote me preferentially over everyone else". But I've said too much.
I think the answer to this question is something like "send a GET request to maxmind.com/geoip/v2.1/city/your.ip.here";, but I don't feel like actually writing it
 
@Kevin ahhh okies... I guess it's the thought that counts :)
 
Opinions on LinkedIn api for publishing long-form content (pulse). The LinkedIn dev person is answering a few questions with comments, typically when the answer is "No, this is not possible.". Is this appropriate?
 
Because he'll reply, "ok, how do I send a GET request?" and muddling through the requests lib is not what I want to be doing this morning.
 
Or am I just picking on ?
 
11:30 AM
@Ffisegydd if the answer is "no" - then it should be an answer :)
 
He seems to be doing something a little skeezy anyway (scraping a demo page instead of buying the dang service), so I'm not bending over backwards to help
@Ffisegydd I agree that it ought to be an answer, especially if the user is an official representative. Can't get much more authoritative a source than that.
 
I've left a comment @Ffisegydd
 
Ta pup.
 
(although he might get some replies saying "sure, you're god-emperor of LinkedIn, but do you have any sources for your claim that X can't be done? Please link the documentation")
 
He could tell them to contact their customer supp- OH WAIT THAT'S STACK OVERFLOW!
 
11:35 AM
@Ffisegydd you got a gold badge on meta about it :)
 
re: this question, I wonder how hard it would be to rebuild the CPython source with a couple extra security features.
Could be as easy as if not argv[0].startswith("usr/bin/scripts"): return 0 or whatever the C equivalent is
(yes, that doesn't protect against users running scripts in usr/bin/scripts/../../../root/system/unhashed_client_passwords, but you get the idea)
Love those questions that start with "... and within this dictionary there are 5000 other dictionaries..."
And I bet the input file is 10 GB and you need to process it in under 60 seconds, yeah?
 
stackoverflow.com/questions/27841473/… is now undeleted (thanks bluefeet).
 
11:52 AM
Did you type up this traceback by hand? You have a spelling mistake in iterable... — Martijn Pieters Jan 8 at 13:48
Reminds me of the time I had to take a picture of my computer screen to send to the help desk, because the print screen button wasn't working at the time.
 
@MartijnPieters Ahh... someone trying a hit'n'run.... kind of thing
 
@tristan medium.com/re-form/nycs-housing-cost-myth-9dce6052c139 may be of passing interest to you and your latest project.
Some nice visualisations at least.
 
Tempted to tell this guy to do return [myList] * N and let him discover the fun of mutability the hard way
 
Cruel, but fair.
 
12:09 PM
@JonClements kind-of but with more delay.
They vandalised the post first, unaccepted my answer, then a few minutes later deleted.
 
Always so disrespectful when people do that - sighs
391 users have visited sopython.com apparently
 
12:27 PM
@tristan I've got my 2nd copy of my CV if you'd be so kind as to take a look.
(Comments from anyone else are also welcome)
 
user559633
Sure, will do.
 
user559633
I want to answer that linkedin question with a solution that scrapes and posts just to annoy the linkedin employee
 
Not sure the Blah blah blah is going to win you points... :-P
 
Yeah I need to remember to put in the proper address etc before sending it to employers :P
 
Any of you guys ever put your SO reputation on a resume? :-)
 
12:30 PM
I've not put my rep :P but I have put SO in there
 
@Kevin it is part of my Careers 2.0 generated PDF, yes.
 
Probably a meaningless number to ordinary HR people, although maybe you could qualify it like "X,000 reputation (top Y% of all users)"
 
@Kevin I do... Why?
 
@Kevin Top 10% Stack Overflow for javascript jquery python html sql more..
Auto-included in the generated PDF.
The HTML version 'more' expands to like 100 tags..
 
@Ffisegydd I would probably not put your personal website down as it's "currently under construction" :p
 
12:32 PM
Careers 2.0 is retroactively stealing my ideas! :-p
 
@Jon that'll be fixed this weekend :P
 
user559633
@Ffisegydd Your linkedin url is incorrect and you should finish your landing page. I'd name the university you're at and remove "eager for an opportunity" and take a more active voice that states "self-taught programmer who seeks to work on a large-scale project related to (SPECIFIC FIELD OF INTEREST)." As for "regular contributor to stack overflow," if you want to include that, i'd add "regular contributor and deeply involved in the stack overflow community."
 
- a joke on blue background.
 
@thefourtheye Just wondering how useful it is.
 
user559633
I'd add my stackoverflow rep, but I started answering too late in the game to get hundreds of rep for answering how to use grep flags
 
12:34 PM
@Kevin In India, I get a lot of calls. In face to face interviews people are interested because they all have heard/used SO
 
user559633
@Ffisegydd cheers on the link as well
 
The url is right, but the pdf adds the uk.linkedin.com part automatically if you click it. Stupid pdf. I'll try and fix that.
 
What's the right way to start process from python that outlives the script it forked from?
 
user559633
@ReutSharabani that would create a zombie process. don't do that.
 
@tristan Wouldn't it's parent become the forked script's parent?
 
user559633
12:36 PM
when the child pids get WAITed, yes, it will get assumed by the script's parent, but that's not particularly elegant
 
Do you think having SO in the programming section is sensible? Or would it be better in something like Interests?
(Where I do mention it a bit as well, I should remove it in one of the places :/)
 
I think the comma in the Interests -> photography section ought to be a full stop.
 
user559633
What part of SO? Developing things for SO/the site? I'd put that under a "projects" section.
 
Yeah ok. I'll put "answering questions" in interests and leave Nidaba in the projects part
 
@tristan, I just want a python script to start a bunch of processes that outlive the script itself. What is the way to do it? I can make them a service later, but for now I need this to work rather than be elegant
 
user559633
12:39 PM
i'm not telling :) someone else can do it, but i'm pretty sure that's not what you actually want to do.
 
Hmm, does subprocess.call block until the process is done? I forget.
 
I believe so, yes
 
user559633
there's a way to do it with subprocess :)
 
subprocess.call(name_of_command_that_spawns_new_processes_asynchronously)? ;-)
subprocess can do anything if you're sufficiently deranged.
 
@Kevin, If I kill my process, wil the other processes still live?
 
12:41 PM
subprocess.Popen is the way, right?
 
lol
I thought it's goign to be subprocess.Popen, just want to be sure...
 
user559633
If they're subprocess jobs, sure :) you can do it with standard processes too
 
I don't have much experience here. I'm usually happy to keep my main script alive until all its children are dead.
Bad choice of words. "happy" and "dead children" don't go together.
Hmm, is a question closable as a resource request if the post doesn't actually ask for resources, but all the answers treat it as if it did? if so, stackoverflow.com/questions/27922159/…
It's basically asking "what IDEs have this kind of code evaluation window?"
 
1:11 PM
I told the colleague who approached me with the process problem how to use multiprocessing instead and I think he likes it.
 
user559633
are you having us support your coworker again?
 
support me AND my co-worker... I didn't have a definite answer to give him
is it common to have __str__ return what __repr__ retruns, or vice-versa?
 
1:27 PM
Am I the only one who has trouble finding myUtils imported in this script? github.com/tiagoantao/AgeStructureNe/blob/…
 
It's on the 4th line :P
 
/me squints.
That's the reference, but I'm looking for the code. :)
 
@ReutSharabani Sort of. You should define __repr__(), and if you call str() on your instance, either explicitly, or by trying to print it, if there's no __str__(), __repr__() will get called.
 
From where I'm sitting, it looks like a private package not made available.
 
1:30 PM
@PM2Ring What if I have a class representing a point, and it's str is just like it's repr? would that somehow be wrong?
 
Here's a quick demo
 
@Ffisegydd A simple yes would suffice. :)
 
class test(object):
    def __init__(self, data):
        self.data = data

    def __repr__(self):
        return 'test(%s)' % self.data

a = test('hi')

print a, repr(a)
 
(It is just me).
 
:P
 
1:31 PM
I was looking inside every directory in that tree, but didn't think to look for a .py file.
 
@ReutSharabani Not at all!
 
Mental note, a module can be a single .py file, it would appear.
 
@Roman A module is a file containing Python definitions and statements. The file name is the module name with the suffix .py appended.
 
If you want to be neat, you can define __str__() so that it calls __repr__(), but why bother? :)
 
You could have a directory full of modules (Python files) and that directory would usually be referred to as a package (or sub-package if it's a child of a bigger package, etc).
 
1:33 PM
@PM2Ring that's what I meant, is calling one from the other bad somehow?
 
@Ffisegydd Thank you for a concise explanation.
 
@Roman I stole it from docs.python.org/3/tutorial/modules.html mostly if you want more details :P
 
@ReutSharabani IMO it's stylistically ok to be explicit like that. I don't know if it's more efficient or less efficient to just let the interpreter call repr if it can't find str.
 
You'll find the terms are sometimes used interchangeably so it can get slightly confusing. For example I could do import numpy and I'd have no way of knowing if it's a module or a package, I'd just have a numpy namespace full of stuff (it's actually a package full of C and Python code, so very complex, but that doesn't matter so much to the end user).
(Devil's advocate: there probably are ways to tell if it's a package of a module, etc, but to the average user there's no way)
 
That interchangeability of the terms package & module is understandable, but it does cause unnecessary confusion. IMHO.
 
1:39 PM
Yeah the terms module/package/library can be used interchangeably.
 
user559633
 
@tristan I'm going to combine jeffweisbein.com and your website :o
 
user559633
@Ffisegydd that's cool i guess
 
user559633
the source is kind of a mess
 
user559633
not on mine
 
1:44 PM
@Ffisegydd In R, packages are loaded via library() or require() function. :rolleyes:
 
user559633
 
hrm, the account that self-vandalised must've not liked that the content was restored. They received a temp ban to cool down.
Ah, more posts were mutilated.
 
How do you know all this? :)
 
He is the all-seeing eye he pays attention I suppose, checks back on previous issues to make sure they've been dealt with.
 

« first day (1550 days earlier)      last day (3404 days later) »