« first day (1844 days earlier)      last day (3102 days later) » 
00:00 - 19:0019:00 - 00:00

12:07 AM
So what's Python's way of tracking dependencies?
 
Air
@SomeKittens pip freeze?
 
12:23 AM
that's installed globally?
or is that a dumb question?
 
Air
pip comes with Python as of 2.7.9 and 3.4
I'm not sure if it's what you're looking for or not, though
 
are you looking on how to build a list of dependencies of your project or find out what dependencies a particular package has?
 
12:47 AM
@idjaw build a list of deps
Sorry "that's installed globally" should have been "The resulting requirements lists all globally installed packages?"
 
Air
26
A: Why does pip freeze report some packages in a fresh virtualenv created with --no-site-packages?

GlyphTo answer a slightly different question: you can exclude wsgiref (and any other similarly-problematic .egg files if you are unfortunate enough to have any for some reason) by doing pip freeze -l instead of pip freeze. pip help freeze describes this option: -l, --local If in a virtu...

 
pip freeze gives a list of all packages in pip's environment. This is why venv is a good thing :)
 
1:09 AM
cbg all
 
 
1 hour later…
2:35 AM
Should I use this as a canonical dupe for this?
I think round() vs float() is a trivial detail.
 
2:47 AM
I'm gonna do it.
Should I change the title to be more general and descriptive? Like, "Passing a value to a function didn't change the value"?
 
I think its a perfect match
 
3:18 AM
does anyone here know docker? can you package a docker-compose.yaml into a distributable image?
 
4:16 AM
Morning all!
 
morning invisible person
 
Good morning!
 
 
3 hours later…
7:07 AM
Afternoon CBG all
 
cbg
 
A crown to your avatar would be nice :-)
 
cabbage
 
7:27 AM
OP says that the interpreter is telling him he needs parens for print(), but he knows you don't need parens.
Someone thinks that it's actually that the OP saw that message and sees that parens work, but didn't understand it.
They also thought I was being rude. I don't think I was being rude. Some people really don't believe error messages, mostly along the lines of "but I know that file exists there!".
Oh, and it's upvoted.
 
8:11 AM
Cbg :)
 
8:43 AM
Should this be closed as a dup of this?
 
9:04 AM
I want to create a web service using Facebook graph api. I don't know how should I start building it. If anyone knows let me know.
 
and if i want my friends post from Facebook then how can I get that on my iOS app
@tristan
 
user559633
this isn't the iOS room @shahinaliagharia :)
 
I know but I want to build a web service using python which provide the post to the app @tristan
 
user559633
@shahinaliagharia Then build it, no one is stopping you
 
9:11 AM
Lol..I just want a guidance..I don't know I am new to these web service..I want help@tristan
 
user559633
@shahinaliagharia Then ask specific questions. You want to know how to start using the facebook graph api, read the documentations. If you want to know how to write a web service, read about creating those and then ask specific questions when you get stuck
 
Ok @tristan and I am sorry
 
user559633
No need to be sorry
 
ok @tristan
 
user559633
flask.pocoo.org is a popular web framework for these sorts of things
 
9:16 AM
@TigerhawkT3 I wouldn't dup close it
 
Yeah, I left it alone - although, I think the "it's a statement in 2 and a function in 3" answers work equally well for "why doesn't print 'hi' work in 2" and "why doesn't x = print work in 3."
 
yea, the answer explains both questions, but I feel the questions are different enough not to be closed as dup
 
That's why I didn't quite see my way to closing it.
 
 
3 hours later…
12:08 PM
@JibinMathew please do not post your newly asked questions.
 
user559633
What up nerds
 
aye!
 
12:50 PM
CBG all should this be opened stackoverflow.com/questions/33499147/…
 
cabbage
 
CBG @PM2Ring
 
@VigneshKalai I think it should stay closed, at least until the OP clarifies what's going on. From the error message it looks like they're attempting to sort a sublist rather than the list of lists.
 
Forget my previous message it is a negative don't open the question I repeat don't open the question
Yeah it will be closed now as unclear or typo
Just wanted to help the new man :-)
 
BTW, your comments would be more readable if you used some punctuation occasionally. :) Eg:
That is what I guessed. There is only one list and not a list of lists. You have declared the lists wrongly. And never name a variable list.
 
1:05 PM
Yes, that does make it a lot clear.
Writing that into my to do list :)
 
Cbg
 
Most of the places I find TLDR: placed at the end but shouldn't be placed in the beginning
 
@VigneshKalai Oh, good. :) Using perfect spelling, punctuation, and grammar in comments isn't such a big deal, unless the sloppy grammar etc impedes communication. OTOH, good spelling and grammar does look more professional.
 
@idjaw one week...
 
I KNOW!!
I'm getting shipped to work
much excitement
 
1:13 PM
I'm going to try taking that Friday off and nobody can stop me! Except my boss and her boss...
 
@VigneshKalai I think it makes more sense to put TLDR at the beginning, but it can be added as a kind of final summary at the end, too.
 
@Programmer that's a good idea...I might be coming down with a bad cold that day :)
 
@PM2Ring summary! yes that makes sense .Don't know if my punctuation is correct there :p.
 
Well, you're supposed to start sentences with capital letters, and the space comes after the punctuation mark, not before it.
There are exceptions to that rule, in relation to the use of the dashes. A long dash — (an "em-dash") generally has no space on either side, but when the emdash isn't available it's common to use a hyphen - with space on both sides as a substitute.
 
1:28 PM
Hmmm. That emdash \u2014 is supposed to look longer than that. Oh well. If you're interested, you can see what it's supposed to look like on Wikipedia
Greetings, Jon.
 
It looks right to me.
 
It's probably just my font.
 
1:52 PM
Good night all :-)
 
night
 
By the way @PM2Ring grammar is difficult then python.
 
You mean: "Grammar is more difficult than Python". :) But that's reasonable, since Python's a lot smaller than English, and Python was designed, but English just grew.
Night, Vignesh.
 
2:12 PM
Man, if I ever try to form a sentence as complicated as a typical python program, shoot me. Python might be simple but the ideas you form with it are way deeper than anything English will pull off.
Every time I see a video game it still blows my mind that's all just quickly rendered triangles and algebra.
 
2:30 PM
Is there an easy way to do fuzzy dictionary lookups? Eg, if I have {'foo': 'bar'}, can I make 'fooo', 'fo', 'foofoo' match that key? Or am I rolling my own subclassed dict.
 
I would say match by substring, except fo doesn't work... probably just do a lookup on the keys?
 
Yeah, unfortunately my data is bad. Like, scary bad.
 
I was hoping this was golf
 
No. :( I wish it was too.
@corvid Yeah, that might be the best way to do it.
 
I would say... do a lookup in the map of the keys for the most contiguous substring, then set a threshold for how "fuzzy" to make it. As in, "at least 50% the same", so fooo would substring 3 characters in foo, fo would be 2 characters of foo, etc.
 
2:35 PM
@corvid Yeah, that might be the best. In my data (as far as I can tell) the first word of the key will always be there, it's just that the suffix is sometimes missing/changed/misspelled.
 
Hi Guys, I'm confused about python version management. For example, do you un-install python 3.4.3 when you want to update to 3.5.0?
 
hello
right now i am trying to set a spot in a list and at the same time set a value: h2h_device = H2H(field = 'device', value = crit[24] = hex(h2h.device), pafa = compare(h2h.device, crit[24]
 
@Jack You don't have to. They can coexist.
 
i am getting a syntax error at that value =crit[24] = hex(h2h.device). Is there a way to set that crit[] value and the value field in the named tuple?
 
Won't that get messy after a while? Is it normal to keep every version installed?
 
2:44 PM
inline?
 
@Jack I don't think so. Why would it? They install to separate places. If you don't need to keep the old version installed, don't. But in my case, I have a package that doesn't have a 3.5 version yet, so I have 3.5 and 3.4.3.
 
@Jack yes, it is very normal. No, it definitely is not messy. Default install should take care of installing each version on its own, and the appropriate command-line alias will allow you to simply call python by that particular version: python3.4, python3.5. If you are on a Mac for example, simply typing python defaults you to the 2.7.10 (that is the version I think). It's very normal and not messy.
 
Does each version have a separate instance of pip?
 
@Jack Yes.
 
Ok, I understand now. Thanks!
 
2:55 PM
@mri3 Nope, assignment statements are assignments and not expressions, so they have to be on their own line. Can't put 'em inside another expression.
 
thank you
 
Would you guys consider being able to edit your shell and shell variables a required minimum skill for programming?
 
I'm still not entirely clear what a shell is (other than "cmd is probably one"), so no
 
@corvid Depends a little on what platform you're on I guess. Windows... nah. But you're making your life difficult if you don't know the shell basics on a unix/linux system.
 
Yeah, I don't know that I ever use my shell. I have xonsh, cmd, and cygwin installed because "real programmers use a shell", but I never actually use them.
 
3:00 PM
> In computing, a shell is a user interface for access to an operating system's services.
 
@Kevin Wouldn't any OS be a shell under that definition?
 
Is Minesweeper a shell? It has an interface to Windows' video games service.
 
i am not sure how often i find myself having to do that
 
where "service" is defined as "a thing you can have or do"
Is the caps lock indicator on my keyboard a shell?
Is the CD eject button on my laptop a shell?
 
people keep asking shell questions... and it seems like they should be able to figure it out really quickly :|
 
3:02 PM
That behavior is not exclusive to shell questions.
 
I have heard that python is slower than languages like C. One reason being that it is interpreted. Is is possible to compile the interpreted python (making it quicker) or are there lots of other details that complicate things? I'm not complaining about speed, I am just curious.
 
but they're mostly just for customization, like "how do I make it so when I use atom in shell that it opens atom"
@Jack You mean like cython?
 
@Kevin I'll give that a read. I have tried looking that up before, but I must have used the wrong keywords.
 
Does Cython compile to C? I thought it just provides an easy interface to call C code. I'd expect to get no performance improvement if I use Cython to write pure Python code.
Disclaimer: I have spent exactly 0 seconds working with Cython
 
Oh, here is the answer on the wiki page.
> a Cython program is compiled to C code, which is further compiled to machine code, so the virtual machine is used only briefly when the program is loaded.
 
from the "how do I make a single executable" canon stackoverflow.com/questions/12059509/…
apparently it still uses libpython behind the scenes, so you're still using the interpreter and it's not that much faster
 
Hmm, I've never heard of nuitka.
I wonder why we get a zillion "(cx_freeze | py2exe) not working" questions, but no "nuitka not working" questions?
 
@Kevin I spent about 3 minutes with it and couldn't get it to work, but I'm sure it's great.
 
Theory 1. Nuitka is not nearly as popular as the former two projects. Theory 2. Nuitka is just as popular, but way easier to use, so nobody asks questions about it.
This is the problem with using SO to gauge the number of users of a technology. You only see the unhappy users.
@MorganThrapp You sound like those amazon.com reviews that go, "just ordered this, looking forward to it. 5/5 stars"
 
3:12 PM
@Kevin "UPS lost my package, 1/5 stars"
 
Both of those kinds of reviewers are pure noise
 
That's why I read 2-4 star reviews only.
 
Although I guess the nuitka scenario is a little different, because you did actually spend 3 minutes interacting with it.
Maybe the first four pages of the installation wizard were really aesthetically pleasing.
 
I got the thing installed, tried to use it, and it couldn't find any of my packages even after I used the option to show it where my venv is.
So I gave up because I have a working cx_freeze script already.
 
Tangent. I was looking at reviews for a pain relief cream, and the first one-star review said "I used this and had an allergic reaction, DON'T BUY". That is not a useful review, because 99% of purchasers won't have that reaction.
It's like giving a pet store a bad review on Yelp because you discovered you're allergic to cats.
"Pet was supposed to reduce anxiety, but these hives have only stressed me further. Don't buy a cat."
 
3:17 PM
On that subject, I love Amazon Movie Reviews.
The Wolf of Wall Street. http://t.co/tpA5syzMVG
 
"I love this item, I use it everyday" - 4/5 stars. Where did that last star go??
 
That reviewer reserves 5/5 for the theoretical maximum utility object. Some magical device that does all things.
 
Lessons learned from FizzyCorp: the early bird git commits before their coworkers, thus forcing others to deal with rebasing.
 
If your product does not directly stimulate the pleasure responses of OP's brain using electric shocks, don't even bother
This is more or less the same reason my sixth grade english teacher never gave anyone 100 on essays, ever.
 
One time she saw a perfect book report, and she's been chasing that dragon ever since, looking for that next 100.
 
3:22 PM
Tangent deux. I heard that the #1 reviewer on Amazon passed away recently. She had like 20,000 reviews. Lady must have had a whole lot of disposable income.
 
user559633
@Ffisegydd sometimes i'll just do documentation commits for this reason
 
@Ffisegydd I apply a similar rule to database migrations
 
user559633
 
I got $200 free on amazon. What buy?
 
user559633
Sand
 
3:24 PM
I'm laughing, but also creeped out at the same time.
 
user559633
Wait, do you hate your mailman @corvid?
 
@corvid half of a ps4
 
Umm... anyone know how to get the registrars expiry date using dnspython?
 
What have you tried? XD
 
sopy = dns.resolver.query('sopython.com', 'NS')
print(list(sopy))
Which gives: `
[<DNS IN NS rdata: ns3.webfaction.com.>, <DNS IN NS rdata: ns2.webfaction.com.>, <DNS IN NS rdata: ns4.webfaction.com.>, <DNS IN NS rdata: ns1.webfaction.com.>]` which is fine, because I do want the NS records
And the sopy object has an expiration attribute - but that's only the time until the query is valid until the next propogation of domain changes
 
3:28 PM
Are you trying to figure out when the domain expires? I don't think that's related to DNS resolving, but then again I know next to nothing about DNS.
 
user559633
it's not related to dns :)
 
Yeah.... I'm thinking it's related to the whois data
 
DSM
Morning cabbage.
 
cabbage
 
user559633
yeah, whois and DNS aren't really related beyond namespace ownership
 
3:31 PM
Cbg from BigCorp
 
cbg all
Has anyone here used the new pypy release?
 
@Robert huzzah!
 
@shuttle87 I installed it and used it to run Flask's unittests, they worked. I have not used it though.
 
But surely it should be BobbyCorp?
 
@davidism That's a good sign, I might try installing later today. Have a library that I'm writing that I'd like to make sure is compatible with pypy.
Do you know if the latest pypy release is Python3 compatible? I've been looking on the site but not getting a clear answer, seems like only 2.7.10 from what I saw.
 
3:37 PM
There's a different PyPy release for Python 3. It supports 3.2 right now.
 
Oh ok, that explains it, thanks!
 
You need pypypy for 3.x compatibility
 
In other words, it's basically useless, as most libraries seem to support 3.3 and higher.
 
That is rather unfortunate.
 
What does it mean for a data structure to be "volatile"?
 
3:39 PM
It could explode at the slightest touch. Be careful.
 
@corvid In what context are you using that word?
 
DSM
@corvid: "trust me-- this might change and you won't be able to deduce when, so leave well enough alone"
 
In computer programming, particularly in the C, C++, C#, and Java programming languages, the volatile keyword indicates that a value may change between different accesses, even if it does not appear to be modified. This keyword prevents an optimizing compiler from optimizing away subsequent reads or writes and thus incorrectly reusing a stale value or omitting writes. Volatile values primarily arise in hardware access (memory-mapped I/O), where reading from or writing to memory is used to communicate with peripheral devices, and in threading, where a different thread may have modified a value....
 
Here's a very hand-wavy example: Say you are writing some code that accesses some hardware, the value of a variable might be read from a register. If the register can change from actions that are not due to your code then this would be volatile. Essentially any time a change can be made that is not a result of your code you have something volatile.
The main reason why this is relevant is because optimizations that analyze the code can produce incorrect results if they assume no changes to a variable are made when the variable can indeed change.
 
All values are volatile if you account for cosmic rays.
 
DSM
3:43 PM
"This doesn’t work." -- OP; "Apparently, neither do you." -- me (to myself)
 
@JonClements "Like an unruly child, it's best in a class of its own"
 
@shuttle87 WeakMaps vs Maps
 
Afternoon all. Cbg
 
4:01 PM
@corvid javascript?
 
Yep, the best script
 
DSM
I just wrote a manual Cartesian product in Excel for some reason. This is going to be an odd day.
 
A pair of window screens have been sitting in my bedroom for the last two days, and I now wish to do something with moire patterns.
 
DSM
Thanks, Kevin -- now I don't feel so bad.
 
Tried to do something like this but the result was disappointing.
Possibly because I was adding together two grayscale images with values roughly evenly distributed between 0-255. There's not as much contrast compared to when you only have 0x00 and 0xFF.
In my next attempt, I'd like to place red dots at each point of intersection. Just gotta find a way that's better than O(N^2).
And ideally, which would work for the intersection of semicircles as well as line segments.
So I can do something like this.
 
4:16 PM
re-cbg
 
4:29 PM
cbg
 
4:40 PM
@MorganThrapp PyCharm 5 released today! :)
 
4:51 PM
Bleh, it's so annoying to work with mongo style selectors on plain objects :\
 
DSM
@vaultah: at 14k I'm sure you know the difference between an answer and a comment. :-)
 
I don't want to give "real" answers to questions like that anymore...
 
DSM
Good news -- you're not obligated to. :-)
 
Air
Top o' the cabbage, sundry folk
 
Good morrow.
 
5:04 PM
I've got the window open today, since it's ~68 F outside.
I'm trying to determine if this improves my workplace experience. So far, my foot hurts. We're off to a bad start.
 
Air
@Ffisegydd wait... what's the difference between "morrow" and "tomorrow"
 
Wild guess: the etymology of "tomorrow" is "the morrow -> t'morrow -> tomorrow"
 
Air
9
Q: Are "tomorrow" and "morning" etymologically related?

UrbycozI know this is true for German and Spanish: Morgen morgen and Mañana por la mañana both mean "tomorrow morning". There may well be other examples too. I wonder- since these languages have similar roots to English- is there any evidence that it has ever been the case in the English l...

 
So the Kevinsons originally hail from Yorkshire?
 
Air
@Kevin Right, but that doesn't explain why "good morrow" means "good morning" (it seems like it should mean "have a good tomorrow")
 
5:07 PM
@idjaw Yeah, I saw that. Some of the new features look really nice, like the Ctrl+Q docs.
 
Perhaps "Good morrow" is supposed to only be used as a valediction. Similar to "have a nice day"
Do we have any examples of contemporaneous use? Not somebody trying to sound old fashioned.
 
;___;
 
@IntrepidBrit Possibly... My True last name is English in origin, probably.
 
Kevinson sounds Icelandic
 
Air
My true last name is a bastardization of a non-english word meaning "hat-maker" but I have never made a hat.
 
5:13 PM
Though I guess that'd be Kevinsson... Or Kevindittor...
 
The second S is invisible.
 
Caoimhínson.
 
Or just err... "Starlord"?
 
Or is the first invisible? How can you tell!?
 
DSM
I had an Icelandic friend in grad school whose name was Arnadottir. She now runs an observatory in Sweden.
 
5:15 PM
Searching for wordplay...
I see, it's funny because it's phonetically similar to "Are no(t) daughter", and her parents disowned her for becoming an observatory headmaster instead of working on the ancestral family futures trading firm.
 
Sometimes it's possible for DSM to not be making wordplay jokes (cue sound of Kevin's brain breaking)
 
@Kevin One way to be sure. Instead of saying "the other", do any of your family members say "tother/t'other"?
 
Have you ever had to fight the urge to buy whippet? Do you have a Kestrel?
 
Why doesn't my answer to project euler 3 work? has an interesting idiom: while x in xrange(2,getal):
Most likely OP started with a for loop, but decided they needed greater control over the value of X.
 
cel
what actually happens if triage accumulates 3 unsalvageable flags?
 
5:24 PM
@IntrepidBrit @Ffisegydd, no, no, and no. I do own several M:tG cards with pictures of kestrels on them, though.
 
@cel it depends on a couple of other things
 
@Kevin won't that rebuild the xrange on every iteration, too?
 
cel
@JonClements, this I really don't understand: http://stackoverflow.com/review/triage/10073246
It was surprisingly hard to get to a reasonable triage outcome, but afterwards someone answers and both question and a terrible answer accumulate upvotes
 
@Kevin Hm. You're probably safe then. Do you get the irristible urge to punch people from Manchester in the face? (More so than usual)
 
@cel that's a car wreck - accepted link-only answer?
 
5:27 PM
I feel no such urge right now, but it might require one to be nearby. I'll check next time I'm near there.
@jonrsharpe Yes. What's the efficiency of in for xrange objects again? O(N) or O(1)?
 
@Kevin O(N) :p
 
@Kevin O(1), it calculates it based on the inputs
 
range in Py3 is O(1)
 
@JonClements I thought that was the same for 2.x xrange?
 
@jonrsharpe nope
 
DSM
5:30 PM
xrange does not exist.. forget.. forget..
 
I'm looking at the xrange type documentation and it doesn't even look like it supports in at all.
> XRange objects have very little behavior: they only support indexing, iteration, and the len() function.
Or does supporting iteration imply that they support in?
If so, then I'd expect O(N) runtime
 
DSM
Right on both counts.
 
xrange's contains is a loop for a membership test
 
I stand corrected!
 
py3's range's __contains__ uses maths
 
5:33 PM
That will be a problem when OP graduates to the twelve digit input they're aiming for
 
Speaking of that question, can someone reject the edit? The editor wants to change OPs code.
 
I think there's an activestate recipe (possibly by Raymond Hettinger) that's a Python implementation of Py3's range for Py2
 
The editor also missed a bunch of other obvious edits: remove the life story at the beginning, output isn't a quote; it's code, remove the signature. Rejected.
 
Poster child for Too Broad coming up:
 
DSM
Now that I'm using 3.5 regularly I tend not to look at 2ish questions any more unless they're really interesting and I wouldn't have to add an "in 2, do X" rider.
 
5:36 PM
0
Q: Building a document management system from scratch

hlat266I am a hobbyist (python) programmer looking to make some stand alone software to manage documents here at work. I would like the program to be able to load documents and access documents stored on a local server. I have no experience writing a program like this and I am looking for the basic step...

 
Good idea, I had the same for years, never had the courage to start that in python
 
DSM
Aaargh, I might have to write my own data processing tool to turn a complex data format (although admittedly a decently-documented one) into something flatter and easier to process. Why must people get cancer, anyway?! Would be much simpler if they didn't.
 
cel
Haha, so you have a well documented data format that contains consistent data records?
do you see a bright man in white cloths somethere or people with wings on their backs? :D
 
@jonrsharpe Sometimes I've done that before, it was a mixture of filebrowser and svn (source control)
 
@DSM if you cure cancer instead, that solves your problem and other people's
 
5:43 PM
@jonrsharpe Instead of indexing document on local computer I've uploaded them on server, this way they can be shared
 
@Serjik that's fair enough, I'm not saying there's anything wrong with creating a CMS. Asking a SO question that effectively reads "How does I CMS?", on the other hand...
 
@jonrsharpe More about a DMS with content search, like Microsoft Sharepoint
 
My current work project is 90% complex data format interpretations.
 
@Serjik ...still not an appropriate question
 
Pros: it's in XML, so I don't actually have to write any low-level parsing code. Cons: documentation is sparse and confusing.
Of the many WTFs I've encountered, I can never be sure which are caused by the weird format, or which are caused by the weird data entry people.
Let's have thirteen subreports, and make all but four of them totally empty, but mark some empty ones as having nonzero height... Yes, this is a good idea.
 
DSM
5:51 PM
@jonrsharpe: I'll raise that at the next meeting.
 
@cel Ugh... wish you hadn't pointed that one out now - rabbit hole and all that :(
 
DSM
Urf. Someone wrote a pretty unpythonic answer to that A/T counting question.
 
@DSM "In many ways, medicine is the original test-driven development..." they started, as their colleagues rolled their eyes.
 
cel
@JonClements, uhh what happened?
 
Speaking of content management, this guy has an interesting idea. :D
 
5:53 PM
you've inadvertently given me lots of work - that's what! :(
 
Work is good for you. Keeps you away from entertainment, AKA the Devil's puppet show. #puritan_values
 
cel
@JonClements, ohhh I am sorry. Do you need more to compensate? :)
 
no no... that's fine... absolutely fine...
 
Air
@PM2Ring Is it just me, or do random filenames have precisely nothing to do with token authentication? (Seriously, am I missing something here? I don't know much about the latter subject.)
 
The moderator you are trying to reach has vanished in a puff of ninja smoke. Please disconnect and try again.
 
5:58 PM
@Air I assume the idea is that people won't be able to pull images off his server because they won't be able to guess the filenames.
 
Well - doesn't meant you can't take a guess and get lucky and all that
 
Any idea about : pip uninstall --user?
-1
Q: pip uninstall --user (Uninstall python package per user)

SerjikAs you may know there is --user option for pip which can install a python package per user which I used it on server that I do not have root privilege. pip install --user [python-package-name] What I need now is to uninstall, installed package on the current user which as I searched there is n...

 
I've cheated before and used a uuid4 as a token and a 4 digit pin that expire after 24hrs
dammit - why won't paypal let me order a curry with the balance there :(
growls - puppy hungry
 
@Serjik: Why did you add to that Naming Image files on server with a token based filename question? :puzzled:
I guess it's ok, since the OP approved it...
 
Air
6:18 PM
@Serjik did you seriously self-answer your question with a link to the very same question? what??
That must not be the link you meant to paste!
 
DSM
He plays by his own rules.
 
cel
since the introduction of virtualenvs I have never used --user again :)
 
DSM
I think MP wrote something once.
 
That seems like something he'd do, yeah.
 
6:21 PM
13
Q: Why does a space effect the identity comparison of equal strings?

midkinI've noticed that adding a space to identical strings makes them compare unequal using is, while the non-space versions compare equal. a = 'abc' b = 'abc' a is b #outputs: True a = 'abc abc' b = 'abc abc' a is b #outputs: False I have read this question about comparing strings with == and is....

 
@DSM This ?
 
> The criteria for caching strings is if the string only has letters, underscores and numbers in the string so in your case the space does not meet the criteria.
 
Who has seen Beazley's packaging/modules talk? Any thoughts about that export decorator? I started to add it to my package, but the more I think about it, the more I think I should use __all__ like normal people...
 
DSM
@PM2Ring: I think I was more thinking of his answer here.
 
Yeah, that dupe target from Vaultah's link looks better.
 
cel
6:24 PM
I really should propose introducing a facepalm button for completed reviews :)
 
@DSM y u no hammer?
 
I'm personally not hammering because I can't be trusted to operate heavy machinery or Mjolnir just after lunch time.
 
@export is pretty clever, but it's got a downside in that nobody expects it and nobody uses it.
 
DSM
@vaultah: I tend not to swing the hammer unless I'm more sure than I usually take the effort to be.
 
Nobody expects the Python @exportition.
 
DSM
6:30 PM
For example, I don't like the selected target, because it focuses more on + than simply the identity issue.
 
@PM2Ring because I'm the server side developer
 
@Serjik Ah, right! :) I'm tempted to ask why the token authorization doesn't work, but maybe I don't want to know the answer. :)
 
@Air You have any answer to my question?
 
stackoverflow.com/questions/33506243/open-a-xml-from-url-python : link to an image of code & traceback instead of text; OP not responding to comments.
 
6:41 PM
Ignore that previous cv request: OP finally responded. It was a simple http vs https issue after all.
 
for that decorator I described, basically, in the __init__.py you have:
def export(defn):
     globals()[defn.__name__] = defn
     __all__.append(defn.__name__)
     return defn
Of course, you can just use convention and _ prefixed names won't get exported in your API.
 
@Air That answer was good when you have full privilege and works for all users not just one
 
00:00 - 19:0019:00 - 00:00

« first day (1844 days earlier)      last day (3102 days later) »