« first day (3446 days earlier)      last day (1493 days later) » 

12:24 AM
why is this function not printing anything?
string = [input()]
def piglatin(string):
newstring = ['']
for word in string:
newstring.append(word[1:] + word[0] + 'ay')
return " ".join(newstring)
 
Have you called print() on it anywhere? Easy to forget..
 
i litteraly forgot to call it :P
thanks
 
No problem
 
@liamlasry for future reference please see our code formatting guide to chat and practice in the sandbox if necessary
 
1:09 AM
Hi guys, great chatweb
 
 
6 hours later…
7:08 AM
cbg
 
7:43 AM
@Andrew please see the room rules. We ask people not to promote SO questions that are less than 48 hours old.
 
They've also posted the same in multiple rooms.
 
oh wow, that room is deserted
 
8:06 AM
has anyone here used curses?
 
They generally frown upon them at Hogwarts...? :p
 
There was a question How to install 'plotly' from inside Anaconda under Colab on Mac. It seemed duplicate but it isn't, because the original part is how do you do the install from inside the Jupyter/Anaconda/Colab session. Where you don't have access to command-line.
 
8:24 AM
@smci I might be misreading the question, but the last paragraph suggests its the other way around. The OP usually works on Colab, but is now looking for a solution for MacOS – on which command line installation is possible.
 
@MisterMiyagi Ok, seemed unclear, but if you want to you can do the legwork of talking to the OP, finding the real question intent, retagging and retitling. Perhaps the ideal answer should show both solutions for inside jupyter, and Mac command-line.
 
The OP has already accepted an answer, so I don't see much point. There are other questions that need legwork.
 
cbg guys
 
8:56 AM
cbg all
 
9:15 AM
hello
 
9:29 AM
good day all, can ask django queston here?
 
you can ask about anything that's related to python
 
okay thank
okay thank
it's about having a sub dict in a nested dict
 
Can we close questions that use images of code?
@connelblaze Maybe provide a code snippet, and a question. It's hard to help with what you have given :)
 
it sure doesn't sound like a django question so far
 
okay +i'll paste it in pastebin then share it here
 
9:45 AM
guys how can I insert two arguments to a list (append only get one argument)
i want to insert two strings into an empty list
in one line
 
@liamlasry my_list.extend(["string1", "string2"])
 
any way to avoid it being a list inside a list?
if i'm doing it your way list will be [['str',str']]
 
No, it won't be that. I am using the extend method, not the append one.
 
oh ok, thanks
 
that's it
it doesn't get the inner loop items
sorry, here it is: pastebin.com/g2BcvzZA
 
9:56 AM
@Simon not if that's the only reason
@connelblaze you can't use the dot lookup to access dictionary keys. You can instead have tuples or named tuples in your nested structure, so that you can access the info.roles with info.2 or something.
 
the info['name']
I don't think Django accepts that
 
yes, django templates don't accept that
'name1': (
    'sarah',
    '20',
    {
        'a1': 'aa', 'a2': 'az', 'a3': '1',
        'b1': 'bb', 'b2': 'bz', 'c3': '0',
        'c1': 'cc', 'c2': 'cz', 'c3': '2',
    }
),
 
that's why I went with this but can't see any reason why the inner loop isn't outputing anything
 
sample tuple structure ^^
 
wait... this way instead?
then what about the template?
another reason why I can't put the names and age directly is because it could change
 
10:06 AM
@connelblaze {{ info.0 }} instead of {{ info.names }}
 
then how do I get roles?
 
@connelblaze {{ info.2 }}
I mentioned it in my very first comment
 
@Simon If the code in the images is needed to reproduce the problem, yes.
 
there are 3 items and I'm making use of 2
it's a little bit confusing now
can you show me how your template is now?
 
You shouldn't use multi-level nested dictionaries (for django templates). What you can instead do is, have the dictionary values be tuples which can further have dictionaries, like I mentioned in the sample dictionary item above.
@connelblaze yes, give me a minute
 
10:19 AM
wow
 
@MisterMiyagi Unfortunately not. Looking for a dupe
 
thanks
but it prints all
 
@Simon Consider that you can also just downvote if you consider the quality of the question poor, and move on.
There are only so many hours in a day, and likely better answers to spend your time on.
unclear, OP provides only invalid syntax stackoverflow.com/questions/60811476/…
 
@connelblaze sorry, little low on patience today. Hoping I gave you the right direction. Good luck.
@MisterMiyagi closed
 
okay...
i really wanted to know if i can print
1 and 2 or 3 alone not everything
 
10:32 AM
@connelblaze You can, but data manipulation needs to only be done in the view, not the template.
In your case, if you transform names also into a tuple, instead of a dictionary, then yes, you could do names.0 or, if you only want 1 of them to be shown, just pass only that to the template.
 
@MisterMiyagi. The user in question has multiple installations, and is runing script.py which is referencing the wrong installation
It's a bad question
 
11:32 AM
cbg-noon
Quick question
I'm trying to go through a method in a class to count the number of letters in a string
 
@AndyK MCVE, please
and "count the number of letters" can mean multiple things, please clarify
 
thanks
 
aim is to count the number of a specific letter in a string
example: my wonderful flower
 
OK, that's a well-defined problem. What is the issue?
 
11:40 AM
the number of letter f = 2
 
you should have a NameError on line 18 gist.github.com/kw-andy/…
 
the method comptelettre is not working as expected
 
Yes, it gives you an error, because you're calling str.count with self.letter which doesn't exist. You need letter there.
"not working as expected" is never sufficient information
Does it make sense to store the character count as an instance attribute?
 
@AndrasDeak I recon. touché :)
this is the error I have
controle.py
Traceback (most recent call last):
  File "controle.py", line 130, in <module>
    toto = Mot('c est un arbre a fleurs')
  File "controle.py", line 121, in __init__
    self.num_of_let = num_of_let
NameError: name 'num_of_let' is not defined
 
And that's the first error I mentioned.
num_of_let is undefined there if you look at the function definition of __init__. Initialize that attribute to None. But as I said it might not make sense to store that as an instance attribute in the first place.
 
11:47 AM
@AndrasDeak what should I do then?
 
Just...not define it. It depends on what you want your class to do. If you want "remember the last checked character count as an instance attribute", leave it as is. If you don't want that, remove that attribute altogether and use a local variable in your method. I'm just saying that the behaviour is surprising to me.
 
Does it make sense to store threads in a list, and iterate through the list to start them? I saw someone do it yesterday, got me thinking
 
12:12 PM
makes sense if you're going to use the list of threads again later... like for calling .join() on each thread
 
If df['a'].abs() will turn negative to positive. How to turn values from positive to negative?
 
@Pherdindy -df['a'].abs()...
 
just multiply by -1
 
Nvm I think I just use the .loc
 
@Simon yes, very much so. Keep your threads around unless you have a reason not to. en.wikipedia.org/wiki/Structured_concurrency
 
12:20 PM
Rear view mirror strikes again
 
Oh right thanks
 
@Aran-Fey @MisterMiyagi thank you. Makes sense. Especially if I'm dealing with a lot of threads
 
FWIW, does someone know a library to use threads and processes ala structured concurrency? futures.concurrent is close but has quite a few warts.
 
cbg folks!
 
cbg!
 
12:29 PM
Hows it going Jon?
 
as always - same old stuff :)
 
@GamesBrainiac cbg-back
 
@AndyK Hey there!
 
cbg guys o/
 
So, anyone use both Mongodb and Flask?
 
12:33 PM
Yes
 
@GamesBrainiac o/
 
@JonClements cbg! Where are you hosting sopython.com?
 
@TheLittleNaruto What are you using it for?
 
@TheLittleNaruto I'm not hosting it :) But I think it's on web faction
 
@GamesBrainiac A bug and feature tracking and statistics site.
@JonClements I am not sure about web faction, is it aws one?
 
12:40 PM
 
Never mind, found it
 
@TheLittleNaruto Is it open source?
 
@GamesBrainiac No, It's one of the internal project of our company.
 
Ahh okay. I just wanted to try things out with Flask and mongo for a bit. I wanted to see how the two worked with each other.
 
For our usecase, it works pretty well.
 
12:50 PM
@TheLittleNaruto Any particular reason you ask?
 
@JonClements Yeah! I want to host my site for free.
I hosted on GitHub for now
 
IME, free web hosting usually doesn't get you any kind of fancy server-side behavior. Anything more than static HTML or a wordpress blog will usually cost you something
 
@Kevin In that case, just use a static site generator. You can host it for free on github.
 
But a static site generator wouldn't be very good for a bug and feature tracking and statistics site, no?
 
Uhm?
My site is static only
 
1:00 PM
I thought you were talking about sopython @Kevin
 
I'm lost. If it's static, how do users submit bugs?
 
If it's static you can't do anything server side, except request stuff
 
You might want to read the messages again
17 mins ago, by TheLittleNaruto
@GamesBrainiac No, It's one of the internal project of our company.
My site != company's project site
 
So you were talking about two distinct sites? Ok. That was not clear to me.
I think I see why it was ambiguous to me. I assumed G.B.'s "What are you using it for?" ping was asking "For what reason are you asking about the host of sopython.com?", perhaps in a strangely worded way. You then replied that it was for the bug/feature/tracking site for your company. This interpretation would imply that you were seeking hosting for your company's site.
But that's not the correct interpretation
 
Right :D
 
1:10 PM
"What are you using it for?" was a reply to the message prior to that. In other words, it means "What are you using Mongodb and Flask for?". At that point, two parallel conversations ensue, one with G.B. about your work site, and one with Jon about your personal site.
I assume everybody but me already understood this. But I do love dissecting words.
 
Yeah I can see that.
It's a good habit actually
 
Interpreting things as wrongly as possible helps me understand why compilers do what they do
 
1:31 PM
Wait, you mean compilers are just closing our requests for compilation with "needs details or clarity"?
 
If you annoy them too much you'll get nasal demons
 
Or they cheerfully answer the question you asked but not the one you meant to ask
One of my small joys is to reply to questions such as "Is it possible to print a triangle of asterisks?" with just "Yes."
Hope that helps, good luck have fun
This is not entirely at the OP's expense, because sometimes just knowing that a thing is possible is all the motivation you need to finish it
 
Specifically that question needs more than "someone has dirt on their face"...
 
@AndrasDeak Or they say nothing, and things just start going wrong when you run the final output...
 
2:14 PM
@Kevin You know it's perfectly possible for a low orbit tea cannon, right? :p
 
The only way you could know that is if someone else has already constructed one, in which case I'm off the hook
 
you'll never be of the hook when it comes to the LOTC buddy - no matter what! :p
 
They all laughed at me when I said I could drop an unprotected payload of liquid from the edge of space and have it land, whole and unharmed, in a 100 cm^2 target dropzone. And it turns out they were completely right and I must applaud them for their accurate assessment
 
Fake news! Fake news! :)
 
2:43 PM
Hey @GamesBrainiac! Long time
morning cabbages, all. How goes the quaratine craziness?
 
@inspectorG4dget still sufficiently crazy? :)
 
very :(
 
My level of "laying in front of the TV doing nothing" hasn't changed since before The Event. I'm not sure whether that image is suggesting that most people are now watching TV in lieu of working, or working the usual amount and watching TV in lieu of more social activities they would otherwise do while off the clock, or what
 
@inspectorG4dget hey hey hey!
 
@inspectorG4dget thanks, while working from home, my 7 yr old read that and went to lay in front of the TV. Now he's joking with me that he can save the human race by doing so /facepalm
 
2:52 PM
good luck getting his dinner out of the carpet
 
<-- in San Diego so breakfast (-:
 
I meant eventually. If he's serious he'll stay there for weeks.
 
Either 1) I'm exceptional because I can do my job perfectly well using just a computer and Internet access; and/or 2) I'm exceptional because I'm a social camel and stay inside most nights.
 
lol, he tries. But his mom is on top of it
 
just had my hair cut
... guess next time I'll just have to shave it bald or sth.
 
2:55 PM
If I expressed resentment of these mythical people that are watching TV 16 hours a day, that would probably be the most #FirstWorldProblems I could ever hope to reach
Grumble grumble here I am safe and warm and fed and fiscally liquid and healthy, but I have to keep upholding my prior commitments like a sucker
 
@piRSquared he is perhaps not the hero we deserve, but the her we need right now
 
@inspectorG4dget stop it, I must save my precious stars, can't star every 2nd message of yours.
 
hahahahahaa. This is what happens when I go crazy in quarantine
Neil Diamond made a topical remake of Sweet Caroline: cnn.com/2020/03/23/entertainment/…
 
3:35 PM
The relative downturn in querents in here leads me to believe that some of them are watching TV instead of working
No judgement here, but how am I supposed to entertain myself if strangers aren't giving me free puzzles
 
Want me to look up some random leetcode solutions?
 
@Kevin do we have any data on that? The downturn in querents, not the tv watching
 
I'm not basing that on any data, no. Just a feeling.
 
there's been a stifling amount of askers here in the past few weeks, so I'm pretty sure this serenity is more than a fluke
I welcome anyone to self-nerd-snipe by coming up with objective metrics about the amount and quality of questions asked here
 
3:51 PM
Is there a way to transform the following into a one liner?
d = defaultdict(list)
for idx, i in enumerate(bin_indices):
  d[i].append(idx)
 
@duhaime and no, not easily. Perhaps you could sort and use groupby somehow...but you wouldn't win readability, and it would take longer
 
Thanks! I never knew about the syntax in here
dang
code is the absolute worst
 
perhaps someone else proves me wrong, I'm not exactly on the top of my cognitive capacities
 
no cheeky dict comprehension kind of thing?
 
you'd somehow have to reference earlier values in the comprehension
 
3:57 PM
{k:[g[0] for g in group] for k,group in itertools.groupby(sorted(enumerate(bin_indices), key=operator.itemgetter(1)), key=operator.itemgetter(1))}
 
hahahaha
A+ for effort!!!
 
@duhaime ^
 
d = defaultdict(list); for idx, i in enumerate(bin_indices): d[i].append(idx)
that's shorter
 
yes, but that's two logical lines, no?
 
it is, I was hoping to avoid ; though
ya
 
3:59 PM
it's one line
 
but what is a line asked Socrates
 
good catch on the physical vs logical loophole :P
a line is a projection of a point along the first dimension
 
alright I just wanted to see if there was something cute and tidy that would do
my brain is a zero dimensional point in flatland
thanks for your thoughts @AndrasDeak and @inspectorG4dget!
 
@AndrasDeak wonder if the walrus can help here
 
4:29 PM
@inspectorG4dget ask the eggman first - not everyone's fond of the walrus... :)
 
user10984358
can anyone tell me why the code snippet work? when that non_existing_name is not defined?
 
user10984358
def foo():
    global non_existing_name
foo()
 
try looking at dis.dis(foo)
 
user10984358
alright
 
user10984358
>>> dis.dis(foo)
  2           0 LOAD_CONST               0 (None)
              2 RETURN_VALUE
 
user10984358
4:31 PM
I dont really have much experience reading assembly or whatever this is called, what should I know to understand this?
 
user10984358
so its not even considered in the byte code?
 
It shows you that all it does it loads None, the return value on to the stack, and then pops it off. This means that the global statement doesn't do anything on its own, your function is a no-op. What the global statement would do is affect how the name non_existing_name is looked up when the function is run. But since it's never looked up, it doesn't raise.
I don't know why it was implemented like this (natural result of conscious choice), but I could also understand an error
I guess in the general case it can't figure out if there's a reference to the name later? Just a guess which might be wrong
 
user10984358
ahh makes sense, I actually had a global variable in a code then I removed it since it was not needed, but I realized I had forgot to remove that in the global part, and was wondering why it didnt raise an error
 
user10984358
someone had to point me out asking what that name was doing since it was nowhere
 
This behavior is documented, albeit not in global's specification, but nonlocal's:
> Names listed in a nonlocal statement, unlike those listed in a global statement, must refer to pre-existing bindings in an enclosing scope (the scope in which a new binding should be created cannot be determined unambiguously).
Essentially, both global and nonlocal are directives to the parser that tell it where it needs to look in order to find a variable. nonlocal needs to know at compile-time where the variable is, because the statement could be inside multiple nested nonlocal scopes and it has to pick one before proceeding. global doesn't have to care, because there's only one global scope.
I had hoped to look up a PEP or something describing the rationale of making global permissive in this way, but global has been around since Release 0.9.4 (24 Dec 1991) so it precedes the PEP system by nearly a decade
(Assuming that PEP 1 is the chronologically first one)
 
4:52 PM
I hope not... PEPs should be 0 based :)
 
Ah, silly of me to ignore PEP 0, the index of all other PEPs.
PEP 0: 13-Jul-2000; PEP 1: 13-Jun-2000
Hmm, I guess they aren't in chronological order :-/
A lot of the name resolution system happens at compile time. It's one of the reason that "dynamic variables" are a bad idea. Consider this example:
def foo():
    locals()["x"] = 23
    print(x)
foo()
This will crash with NameError: name 'x' is not defined.
x certainly exists in the local scope by the time that print(x) is called, but this doesn't matter. At compile time, the parser saw that x was never assigned to in foo's scope, so it assumed that print(x) must be referring to a global variable. If you look at the function's byte code using dis.dis, you can see the 12 LOAD_GLOBAL 2 (x) instruction.
If you had done x = 23 instead, then the instruction would be LOAD_FAST or another local-loading instruction
 
5:23 PM
is there a way to compare values of two nested dictionaries values? any help please?
 
Define "compare"
Both in the sense of "describe your requirements in more detail" and "you'll probably have to define a function that compares them"
 
find difference, if there are any different values between the two nested dictionaries
 
difference_exists = (dict_a != dict_b)
Parentheses not strictly required, but may improve readability depending on target audience
Perhaps you are now thinking "yes, I know you can compare dicts with the equality or inequality operator. But I also want to know where and what the differences are, if they exist"
 
basically, the output i am trying to get, is
dictA = {a:1, b:2, c: {q:5, p: 12}}
dictB = {a:1, b:2, c: {q:18, p: 12}}

my output to be:
difference = {q: {dictA: 5, dictB: 18}} or something like that
 
That one's harder.
 
5:29 PM
any package that would do that or something close?
 
dictA can't be a dict key
 
What should the output be for dictA = {"a": 1} and dictB = {"z": 26}?
 
ok, i agree
 
fresh cbg everyone
 
i am assuming both dictionaries have the same keys all the time..
 
5:32 PM
ok, that makes it easier
 
difference could be:
{q: {first_value: 5, second_value: 18}}
 
I'd do something like this:
def dict_diff(d1, d2, path=tuple()):
    for key in d1.keys() & d2.keys():
        v1 = d1[key]
        v2 = d2[key]
        if isinstance(v1, dict) and isinstance(v2, dict):
            yield from dict_diff(v1, v2, (*path, key))
        elif v1 != v2:
            yield ((*path, key), (v1, v2))

for t in dict_diff(dictA, dictB):
    print(t)
@JoeSaad ^
 
Ugh I've written like four half-implementations but I'm not happy with any of them
They keep failing on corner cases that will probably never matter
 
What corner cases are you torturing yourself with? I want to test mine.
 
5:43 PM
Stupid stuff like a = {1: 2}; b = {1: {3:4}}
We were assured that the keys would be the same, but not the types of values :-P
 
i hereby assure you that your values won't be dicts.
 
something like use additional mapping, for the dict name and the dict ref
 
Some of the values have to be dict otherwise you couldn't have nesting.
 
Perhaps "failing" is the wrong word. More like "produces output that might be sensible, depending upon the desired behavior that hasn't yet been communicated"
 
@piRSquared ah, fair interpretation. what i meant to say was: there won't be a mismatch in the total number of dicts, as in: places where one side had a non-dict as a value, the other side would have a non-dict too
 
5:49 PM
either neither or both... I'd accept that assumption.
 
naturally, Kevin wont. :P
 
I'd accept it if it was an explicit part of the problem statement. Certainly there are many scenarios where you know the exact shape of your data, but not the scalar values within.
 
Updated:
def dict_diff(d1, d2, path=tuple()):
    for key in d1.keys() & d2.keys():
        v1 = d1[key]
        v2 = d2[key]
        if isinstance(v1, dict) and isinstance(v2, dict):
            yield from dict_diff(v1, v2, (*path, key))
        elif v1 != v2:
            yield ((*path, key), {'first_value': v1, 'second_value': v2})

dict(dict_diff(dictA, dictB))

# {('c', 'q'): {'first_value': 5, 'second_value': 18}}
 
In the absence of requirements, I like to be paranoid
 
I think it would be important to keep track of the path of keys so that we know where in the nesting the diff exists.
 
5:52 PM
It might even be the case that Joe only needs the code to work on a dict that contains one additional layer of dicts, in which case you could solve it with two for loops instead of tricksy recursion
 
dictdiff has that kind of stuff already. including API
 
dictdiff seems to have it covered. but it is more satisfying to come up with a small function that accomplishes the task.
 
6:24 PM
@Kevin does a default windows install of Python put python/pip in a path?
 
I think so.
 
so for the latest 3.8...I think if it's the only install it'll run as python?
could I then do pip install ... from a prompt?
 
Sounds reasonable to me
 
Microsoft Store as well including Python
 
(keeping in mind that it needs to be a prompt that was opened after python was installed, since path updates don't propagate to already-running prompts)
 
6:28 PM
I'm after a clean install with 10 Pro. pip works well and yes python/pip are in path automatically
@Kevin are you using VSCode?
 
Notepad++
 
Oh okay. just was asking because am having issue with code-runner ext for a while. searching for solution
 
@αԋɱҽԃαмєяιcαη So - competely new install.. open a command prompt and both python and pip just work, yeah?
 
brilliant - thanks
 
6:41 PM
cbg guys
 
7:11 PM
hey guys, is there a way of clustering/community detection in networks so that you allow members to be part of multiple clusters/communities
 
@αԋɱҽԃαмєяιcαη does pip install lxml just work off the bat?
 
you are lucky. just installed it around 1 hour later. it's works without any issue
are you getting any error ?
 
can't try it at the moment... was just wondering if it might cause issues in case of building/wheel stuff etc...
we'll see what happens when someone tries it on their system :)
 
If I had a list of points, for example points = np.array ([[1,3],[2,5],[3,1]) . What would be the way to only keep those points which satisfy x_coord + y_coord <5 but using numpy only ?
 
@domocar1 look up boolean indexing
 
7:19 PM
Without loops
 
or search my SO answers for boolean or logical indexing :P
 
@domocar1 a[a.sum(1) < 5]
 
@JonClements there's a point which i need to let you focus on it. if you installed Python for all system. the default location by the installer will be under C:\Program Files\Python38. but if not. so it's will be installed under the user location. now once you run pip. it's will require the prompt to be be run under Administration privilege. or to treat pip with --user even if your user is Admin
 
points[points.sum(1) < 5] but you better understand why that's so
 
Thanks , and I understand :D
 
7:20 PM
@αԋɱҽԃαмєяιcαη ta
 
@JonClements :P you welcome
 
rbrb for a bit...
 
AMC
7:48 PM
Quick question
What should I do about questions like this one
It seems that the OP is missing some rudimentary knowledge
 
@AMC I've to tell you something , I've seen multiple comments for you on the site which is a bit strict. by the logic, the person which came to the site and asking for help. that's means he having an issue with his/her code so he end up and came here to ask for help. we have to not attack him with strict response. something like Oh I have knowledge but he didn't so it's not good to blame the user that he don't have knowledge. Just help him or leave the others to help.
something like " Hello, how i can use python " the question will be closed with banner that it's duplicated. and in the comment section, will be a nice comment to go check Python documentation. instead " oh hey, you asking a question without rudimentary knowledge"
 
AMC
@αԋɱҽԃαмєяιcαη I'm not asking whether or not I should say that to the OP, I'm asking about the appropriate flag to use.
I don't know if duplicates are an appropriate means of dealing with that kind of question.
@αԋɱҽԃαмєяιcαη Just help him or leave the others to help. Are those really the only two options?
 
I've just giving you an example. helping the user is a thing. and helping the community is different thing.
 
AMC
@αԋɱҽԃαмєяιcαη helping the user is a thing. and helping the community is different thing. Agreed.
 
when question is marked as duplicated. then the user will see the reason why it's closed with a ref. to the answer.
 
AMC
8:00 PM
The question I linked above might have a decent duplicate
but that isn't always the case
I don't even know how I would find a duplicate for that tbh
 
Well, that's why there's cycle system for that. based on your flag and others flags. then the question will be directed in the correct way.
for example. you can flag it as duplicated.
other will flag it that's it's need focus.
at the end. the highly flags will be applied.
 
AMC
@αԋɱҽԃαмєяιcαη based on your flag I can't flag it if I don't know which one to use though
 
well, since you are looking to help the community. firstly check if it's duplicate or not. then asking the user to clarify something if you couldn't figure out on his question. then build your decision.
 
What is your favorite web framework? Does not necessarily have to be for Python, just in general.
 
a wide question depending on cases, for me will be angular js.
 
8:06 PM
if it's not for python it's not for this chatroom
 
@AndrasDeak +1
 
AMC
@αԋɱҽԃαмєяιcαη I found stackoverflow.com/questions/44872388/… which seems quite similar.
 
Next step. flag as duplicated and pass the link.
Raise with clarifying the reason with respecting the 10 minutes flag.
 
I value the opinion of experienced people from this website, agnostic of what language they use
 
AMC
@αԋɱҽԃαмєяιcαη What's that?
 
8:09 PM
Read about it cv-pls
@EnnMichael welcome to Python chat room, it's describe the context ? isn't it :P
 
AMC
I can't believe I didn't think of clicking it
 
@AMC that's why there's always Q&A with no need for ^ rudimentary knowledge ^
 
AMC
@αԋɱҽԃαмєяιcαη ?
 
@AMC that's corresponding to your initial query rudimentary knowledge :P here am answering you without telling you that you need it :P
 
8:26 PM
Self-isolating cbg
 
AMC
@αԋɱҽԃαмєяιcαη I don't think that a specific tag used in Stack Overflow chatrooms and the concept of returning values from procedures are the same level of rudimentary, though.
I just didn't think of clicking it
it's a facepalm-worthy moment for sure
 
8:51 PM
@AMC take it easy :P
 
AMC
Pardon?
 
Hello, y'all!
I am writing a python tkinter app and I would like to know how to set a proxy session for all network requests used by the app while it is running. Any pointers?
 
One would assume you are using the requests package? Or is this not http?
 
to shorten the question. it's seems you are asking how to use proxy session with your get/post requests?
 
Well I am using get from requests and pafy, which uses youtube-dl. I know how I can set up a proxy for just requests, but I'd also like the youtube-dl stuff to go through the proxy
 
8:55 PM
I've been immersed in REST work for so long, I just assume "network requests" is the same as "HTTP requests"
 
Yes @PaulMcG lol, http requests
 
requests library is covered with socks/proxy usage. have you checked the docs?
 
Yup, I just want to know about pafy/youtube-dl
I'm looking for a proxy that covers everything in the python program
 
export your http_proxy environment variable then ?
 
I'm not familiar with youtube-dl, so I consulted The Google, is this any help? stackoverflow.com/questions/42947676/… It sounds like youtube-dl has its own special proxy config, so may not be feasible to have One Proxy to Rule Them All.
 
9:34 PM
Alright thanks! I'll check these things out ;)
 
10:14 PM
cbg
 
cbg
 
 
1 hour later…
11:43 PM
rbrb
 

« first day (3446 days earlier)      last day (1493 days later) »