« first day (4029 days earlier)      last day (912 days later) » 

2:10 AM
huh, didnt know the guy who removes the "hope it helps" comments ran :p
 
 
5 hours later…
6:41 AM
Hello, I am wondering if anyone knows if it is possible to enter text into a text entry which is then displayed in a label, and then close and reopen the application and save what you have written (using tkinter)? e.g. this would be useful for a to do list application. I have tried googling tutorials but it all only applies to if you have entered something into a text box and I am wondering if it is possible to save stuff that isn't in a text box, but actually a label packed onto the page.
 
6:53 AM
If you set the label based on what was entered into a text entry, you already have the text, don't you?
 
7:07 AM
But I want to be able to close the application and reopen it and the text still be there (i.e. saving the text)
 
Right. Do you know how to save text that you already have access to?
Words like "pickle", "JSON", "csv", or "txt" should come to mind.
 
7:51 AM
Yes I have been trying to apply those methods but am still confused with the concept. If I was wanting to save multiple images and labels which method would be the best?
 
Depends on whether you want to safe them all as one blob or each individually.
 
8:08 AM
Well they would all be placed on different parts of the window so I guess individually?
 
then individually it is. pick one (i'd say just use json) and then save and load some text. what will be more important is to write logic such that when the app opens, it looks for the saved json and re-loads all labels from it accordingly.
think of it like just an extension of getting data. except, instead of getting it from user, you're getting it from a file
 
Would this method also work for saving and loading images?
 
Yes, you can store the image data directly to a file.
But keep in mind that we are filling in quite some blanks by guessing here. Depending on what you want to do, different formats and storage backends are suitable.
E.g. if you have lots of individual items, using a database might be appropriate.
 
8:24 AM
@Minbutt lets have you build something for just the text first. take it one step at a time.
if you have the necessary steps figured out, then adding the capability of handing images on top will be trivial. if you however look at the entire problem without breaking it up, it may look daunting
 
 
3 hours later…
11:45 AM
Yes starting with just text would be wise. I have posted a question more than 48 hours ago but I am still struggling despite the answers. I have taken the JSON response and it works! The label saves when I close and reopen the application. However, to do this, I must set the textvariable of the label to "toSave". The problem is, in the application I am trying to implement saving, the text entry already has a textvariable. Maybe it's possible to assign 2 text variables to 1 textentry widget?
 
Obvious duplicate. For some mysterious reason it got reopened Difference of integers within a list?‭ - Ashley Carnesecchi‭ 2021-10-25 03:37:58Z
 
If by "I must set the textvariable of the label to "toSave"", you mean, "I must assign the textvariable object to a variable named toSave", then 1) it's probably not truly necessary; 2) it's quite easy to have two variables that refer to the same textvariable -- just do toSave = originalName
 
morning cabbages, folks
 
And of course this is also true for any other kind of object
Rule of thumb: the name of a variable is for the benefit of the programmer, not the computer. 99.99% of the time, the compiled code doesn't even have direct access to variable names -- it only knows them as "The Nth variable in the (local|global|nonlocal) variables table"
 
12:00 PM
@Tomerikoo is this a bot?
 
@Hakaishin No. Sorry that last one was by mistake. Those are generated automatically for another room and I forgot to change it back. Apologies
 
@Kevin Basically I have a text entry, when you enter something into that text entry it displays in a label on another frame. I want to save this label so that when you close the application and reopen it, it says the same thing. However, in order for the label to change to what I have entered in the text entry, I use a textvariable and in order to save it I also use a text variable.
 
Mm hmm, I knew that from the earlier conversations
So what's stopping you from "creating" a "second" textvariable by assigning a new name to the original textvariable? (not a rhetorical question, if you tried and it didn't work, I'm interested in knowing that)
 
How exactly do you "use" a textvariable to save text? If you have access to the label, then you can ask it for its textvariable, and if you have a textvariable, you can ask it for its text. Where's the problem?
Turns out you actually can't access the StringVar object from the widget. You only get its internal id...
 
12:28 PM
anyone here good with threads and threading?
 
Probably everyone
 
I'm good with them, they aint with me (:
 
@Aran-Fey nope, not me
 
I'm good if you pay me $50/hr. for $0 you get a random amount of skill between 0 and 100%
 
I just bought a new sweater. These threads are amazing!
 
12:29 PM
(Not evenly distributed)
 
@inspectorG4dget Beat me to the sewing joke :(
 
how can i pass a variable between different threads?
 
@TheJezza Have you tried googling that question yet?
 
You don't have to pass anything between threads. Threads have shared memory. You just access the variable like you usually would
 
@Aran-Fey I hope it was at least good enough to leave you in stitches :)
 
12:31 PM
Unfortunately not, so I still have to go to work today... :P
 
the ratio between useful information and memes in this channels is perfect and what makes it so special. It's not all memes like the C++ lounge and not all info like some other channel which I don't know
 
oh well done, Sir. That punchline was delivered with surgical precision!
 
I can neither confirm nor deny this, but it's possible that I misunderstood what "leaving someone in stitches means". So if the last thing I said didn't make any sense, that's probably why
 
I have another quick question - Is it possible to "un pack" multiple widgets from a page at once using a button?
 
Yep it's possible
 
12:45 PM
How would this be done
 
You write a function that does it and then you let the button execute it
 
I believe pack_forget is the name of the method you want
 
getting ahead of the inevitable, impending frustration: write a function that does this, try to execute it and debug it. There will likely (but hopefully not) come a time when you are no longer able to figure out what's wrong. When that happens, post your code and someone will be in a more informed position to be of actual help
 
Much to my irritation I couldn't find it documented on the first two tkinter documentation sites I looked at. They think they're doing me a favor by pretending that the pack geometry manager doesn't exist.
 
@Kevin The way it sounds they are :D
 
12:50 PM
They're doing a favor to every learner that doesn't know anything about geometry managers, and will use whichever one they encounter first. If they look at these sites, they'll only see the grid geometry manager. This is all fine and good.
But some learners are still going to use the pack geometry manager, because there's a million other resources out there that use it without explanation, and when they run into problems, I need clear exhaustive documentation to help them.
 
@TheJezza Please read the room rules, no asking questions in the first 48h
 
@Hakaishin ah my bad
 
If I say "don't use pack, use grid", they'll say "oh ok", then sneak back in an hour later and ask the same question, in the hopes I've gone away and someone else will give them the quick answer they desire
 
@Kevin tanstaafl, the greatest concept to understand ever, together with compilers. Which defy tanstaafl to some degree
 
@Kevin wait are you saying I should be using grid instead?
 
12:56 PM
Nah. Personally I'm neutral about whether the pack geometry manager is actually worse than the grid geometry manager. For GUIs with just a few widgets, I don't think it's worth worrying about.
 
@Kevin Oh I see. Because I am currently actually using place for all my widgets.
 
Now that, I can recommend against. place is a specialized tool that should only be used in exceptional circumstances. If you're not sure whether your circumstance is exceptional, it probably isn't.
 
Oh I see. I probably should not have used place for all my widgets but I cannot change it now.
 
Oh well. Your code will still work, but it might look weird on other computers.
 
I have tried defining a function, but as I have multiple frames in my application, I am getting an error message which says 'unpack' not defined.
 
1:00 PM
Well, for one thing, the method is called pack_forget, not unpack. For another thing, you can only pack_forget if you called pack() in the first place.
 
Sorry to say, that reasoning makes no sense. It would be better if you posted the exact error message, preferably with the code that caused it
 
Try calling place_forget.
 
clear_button = ttk.Button(main_frame, text="Clear", command=unpack)
NameError: name 'unpack' is not defined . I have just named the function unpack but I am trying to call place_forget. Sorry for the confusing function name.
 
Well, that tells us that your code can't see the unpack function you created, but it doesn't tell us why. Could be a typo in the function name, Could be that the function is defined in another file and you didn't import it. We'll need to see more code
 
If your clear_button = ... line is at the global scope, i.e. not inside any function, then your unpack function definition must appear earlier in the file. If it's below the clear_button = ... line, it won't exist in time.
I suspect that when you say your application has multiple frames, you mean it has a rather complex structure of classes and functions nested inside one another, which makes it harder to ensure that variables are accessible where they need to be. This is a solvable problem, although it's hard to give advice without seeing the complete code.
Or maybe you mean that you've created a lot of tkinter.Frame objects. That shouldn't impact your ability to erase widgets.
 
1:09 PM
I believe I have a complex structure of classes and functions. I have almost finished my application and I just need to add a save and clear function which I have been trying to figure out for days but am still confused. Would anyone be willing to look at my whole code and offer advice/help?
 
Sure.
 
@Kevin Can't tell if trolling or just tkinter'ing. 🤔
 
> place forget window
> Causes the placer to stop managing the geometry of window. As a side effect of this command window will be unmapped so that it does not appear on the screen
 
"Surely one can write a better interface for that." Famous last words...
 
"window" being tcl parlance for "widget"
 
1:14 PM
How would I share my whole code?
 
Of course. 🧐
 
@Minbutt pastebin, dpaste, gist, github, etc
If Linux is allowed to call everything a file, then tcl is allowed to call a button a window
 
Is there a way to set a custom attribute when instantiating an arbitrary class? e.g. Fox() and I want to say his name is "Sly"
I can use setattr but then it's two lines :/
 
1:18 PM
@duhaime a, a.name = Fox(), "sly"
Assignment is guaranteed to be left-to-right.
 
woooof for real?!
 
you'd normally want to define that in __init__ though
 
I recommend just doing it on two lines.
 
yes but I didn't write the class
 
I guess "custom attribute" means something else
adding arbitrary attributes to classes is usually frowned upon
just be aware
 
1:20 PM
for sure, this is just a hack for making chiptunes with python
the whole thing is very hacky
 
@Minbutt I'll take a look.
 
@Minbutt Since unpack is a method in your StudyFriendO class, you'll have to give it a self parameter and refer to it as self.unpack
hmm, taking a closer look, maybe not self.unpack...
 
1:37 PM
@Minbutt If all you want to save is the three StringVariables inside the StudyFriendO.shared_data dict, this is fairly straightforward. Inside your save function, create a new dict like to_save = {key: var.get() for var in the_dict_of_stringvars}. Then save it to file with json.dump(to_save, the_file).
currentVal = json.dumps(whatever) followed by f.write(currentVal) also works, but two-argument dump is stylistically preferable when you just want to write to file and don't care about the value afterwards
 
is my save function saveJson():?
 
Oops, I wrote my dict comprehension incorrectly. I meant to_save = {key: var.get() for var in the_dict_of_stringvars.items()}
Yes, saveJson is the function I had in mind. You'll probably need to give it a the_dict_of_stringvars parameter. But use a less silly name than the_dict_of_stringvars.
 
Speaking of which, parameters are one honking great idea. Unlike global variables.
 
Globals should be avoided wherever possible... But...
 
Like so?def saveJson():
with open('myJson.json', 'w') as f:
currentVal = json.dumps({"entryVal":toSave.get()})
f.write(currentVal)
to_save = {key: var.get() for var in the_dict_of_stringvars.items()}
json.dump(to_save, the_file)
 
1:44 PM
@Kevin but?
 
One of the big reasons that globals are discouraged is that it makes it impossible to have multiple independent instances of your logic running at the same time, if they're all making incompatible changes to one global. A basic GUI does not care about this because it will not need to run multiple independent instances of itself.
When you have a class named MainWindow, there's a pretty good chance that you're creating exactly one of it per program lifetime
Oops, I wrote my dict comprehension incorrectly again. I meant to_save = {key: var.get() for key, var in the_dict_of_stringvars.items()}
This is the quality you can expect for 0$ :-P
@Minbutt In addition to updating the to_save line again, you should also delete the two lines that use currentVal. Don't need those any more.
And by "updating the line" I mean "replacing the line with the one I just wrote" and not "pasting the new version of the line under the old one" or anything like that. Just to be perfectly clear.
 
# like so?
def saveJson():
    with open('myJson.json', 'w') as f:
        to_save = {key: var.get() for key, var in the_dict_of_stringvars.items()}
        json.dump(to_save, the_file)
 
highlight, ctrl-k for code formatting
 
That's the basic idea, yeah. You might get some NameErrors since I used silly placeholder names that don't exist in your real code.
 
which are the placeholder names ?
 
1:54 PM
Whichever ones cause your code to crash with a NameError :-)
 
So would I set the command of the save button to SaveJson?
 
@Aran-Fey In dens of ill repute, some whisper of a method, globalgetvar... But it is dark magic
@Minbutt Yeah.
 
I am now having the issue NameError: name 'SaveJson' is not defined
 
Capitalization matters :-)
I will accept 50% of the blame for approving the course of action "set the command of the save button to SaveJson" without commenting on the name disparity
 
whoops, i'm getting quite tired now. NameError: name 'the_dict_of_stringvars' is not defined. This is the variable I must change, but what would I change it to? shared_data?
 
2:02 PM
... Maybe. If shared_data is accessible in that scope, then it will refer to the object that you need to save. But it might not be accessible, since it's created inside StudyFriendO.
 
Has someone brought up the idea of parameters yet?
 
Aye
> You'll probably need to give it a the_dict_of_stringvars parameter.
 
I am confused about what the next step from here would be.
 
Adding a parameter to a function definition is as easy as changing def f(): to def f(x):
Or are you saying you've done that, but you don't know how to call saveJson with an argument, when you're setting it to the button's command? That's a fairly common stumbling block
 
I have not done anything since NameError: name 'the_dict_of_stringvars' is not defined.
 
2:10 PM
I've laid the puzzle pieces for the next step on the table, but perhaps it lacks clarity... Hmm, how can I relay this information didactically
 
Hmm I am not sure what to do and I fear I may not finish in time
 
Please keep in mind that we've been helping you for a while, but we can't hold your hand forever. Some (if not most) of the problems you're having are due to your lack of experience, and there's a limit to how much we can help with that. At some point you just have to figure things out for yourself
 
Maybe narrowing down the goal will be helpful. Write another function, showData, just below saveJson. All it needs to do is print the shared_data dictionary. It's OK if it looks weird like {"whatever": <tkinter.StringVar object at 0x03B12910>}, that still counts.
If you can figure out how to make showData work, the same approach will work for saveJson.
 
@Kevin Are you also confused by the next step or would it be possible for you to just tell me?
 
@Minbutt xD This sounds like a kid trying to hussle you for candy :D
 
2:24 PM
Just telling people things is a violation of my inscrutable personal honor code
 
Yes I have tried to figure everything out myself up until now and I would do the same but I am just running out of time.
 
@Minbutt how much time did you have at the start?
 
Hello everyone, I am trying to find out from the confusion matrix, data that are labeled as a false positive and false negative.
Written codes
df_test['case'] = np.where((y_test == 1) & (y_pred == 0), 'false negative',
np.where((y_test == 0) & (y_pred == 1), 'false positive', 'correct prediction'))
 
@Kevin I'm sorry. Will you be here tomorrow?
 
Yeah.
 
2:32 PM
But it shows only true positive but not false negative and false positive. Any idea or suggestion on this ?
 
& is a bit wise operator, do you want && ?
 
@SurpriseDog that's not python and no
& is the correct operator for numpy bool arrays
 
@AndrasDeak correct
Any suggestion to my problem ?
 
Not without an MCVE, no
 
df_test = pd.DataFrame(x_test)
df_test['case'] = np.where((y_test == 1) & (y_pred == 0), 'false negative', np.where((y_test == 0) & (y_pred == 1), 'false positive', 'correct prediction'))
df_test.head(10)
This is the code
 
2:42 PM
I don't doubt that
 
So ?
 
When I run your code, I get NameError: name 'pd' is not defined. This is a fairly easy fix -- simply bind a value to the variable name pd. Assignment statements are a popular choice for this, although you can also do it with a for loop, a function call with parameters, or perhaps an import.
 
I did have those librabry
import pandas as pd
df_test = pd.DataFrame(x_test)
df_test['case'] = np.where((y_test == 1) & (y_pred == 0), 'false negative', np.where((y_test == 0) & (y_pred == 1), 'false positive', 'correct prediction'))
df_test.head(10)
Then followed this code
code running well
 
Do you promise that I won't get a NameError if I run this?
 
yes
run this
import pandas as pd
import numpy as np
df_test = pd.DataFrame(x_test)
df_test['case'] = np.where((y_test == 1) & (y_pred == 0), 'false negative', np.where((y_test == 0) & (y_pred == 1), 'false positive', 'correct prediction'))
df_test.head(10)
 
2:50 PM
@Ankita so err... x_test, y_test and y_pred ?
 
Traceback (most recent call last):
  File "C:\Users\Kevin\Desktop\test.py", line 3, in <module>
    df_test = pd.DataFrame(x_test)
NameError: name 'x_test' is not defined
You promised :-(
 
I said
it ran when you pass any random data into it
I did not know that I have to attached datasets as well
because these datasets are big
 
@Ankita did you see what Andras said regarding an MCVE?
ugh... bbiab... phone won't stop bloomin' ringing this afternoon
 
Have you tried turning it off and not on again?
 
3:12 PM
 
@Ankita thats where you make an "example" data hopefully inside the code itself, so that you dont have to attach big datasets. until you give a code that can run start to end, without having errors, on someone else's machine, you haven't made an MCVE. And kevin's heart remains sad. we don't want kevin sad, do we?
 
3:33 PM
cbg guys, quick question, if I have def f(i: tuple[int]): print(i[0]) and call it using threads, am I guaranteed that the i inside the function for each thread will have different values? no thread switching or anything would affect it?
 
yes.
function locals are specific to each call.
 
that was fast :D melon much
so "threads share data" is only true if I access something from global scope or nonlocal?
 
threads share data just like a single-threaded program does. If you call the same function twice (like a recursive function) in the same thread, both function calls still have their own variables
 
ahh, ok that makes sense
unrelated, I am late but both windows and apple released new OS in the 10 day span (win 11 and os 12), anyone here went ahead?
 
hey guys been trying to understand a problem but it has not gone well
 
3:45 PM
that is why it is a problem ;)
 
haha perhaps
 
@python_user Basically, function objects just store commands to run. Whenever you call a function, Python creates a new frame: this bundles the commands to run, a pointer to which command is next, storage for local variables, references to globals/builtins. These frames all live next to each other in the same memory region (they are shared between threads), but their locals don't overlap.
 
I was excited to upgrade to win10, but win11... not so much
The system requirements and the need for a microsoft account are significant turnoffs
 
so found this function in my code and it apparently doesn't work with strings and I added a if condition, do you think that is right at all?
previous code is like this
def merge(a, b):
    """
    Recursively merge dictionaries, lists and sets. If `a` and `b` both define
    an object key, `b`'s value will be returned.
    """
    if isinstance(a, dict) and isinstance(b, dict):
        common_keys = a.keys() & b.keys()
        a_only_keys = a.keys() - b.keys()
        b_only_keys = b.keys() - a.keys()
        c = {k: a[k] for k in a_only_keys}
        c.update({k: b[k] for k in b_only_keys})
        c.update({k: merge(a[k], b[k]) for k in common_keys})
        return c
and i added this if condition
if isinstance(a, str) and isinstance(b, str):
        return b
 
Shouldn't it be return a + b?
 
3:50 PM
@MisterMiyagi got it, was wondering why you linked that page until I saw "Frame objects"
@Aran-Fey yeah, TPM 2 something, at least windows doesnt let you update, mac os apparently soft locks some features for non M1 line chips, a 3d globe view being one of them :/
 
Umm... that first "merge" looks a little complicated? I'm probably missing something but isn't that just c = a.copy(); c.update(b) ?
(or just c = {**a, **b} ?
 
well 3.9+ c = a | b
 
I think they want a recursive merge.
Updating, unpacking and union just pick the value from one of the operands.
 
Wow... haven't heard that in ~20 years
 
I really want to use the cool stuff mentioned here towardsdatascience.com/…
but manager says they don't work recursively
@Aran-Fey I will take your word for it, i really don't understand the function, my eyes hurt to look at it haha
 
4:04 PM
so | is merge operator and |= is the update operator? thought the second is just "in place merge"
 
oh we are using python 3.8
so can't use the | (merge) operator sadly
and I have nested data, dictionaries are basically nested json objects serialised
 
@Aran-Fey I think it is following "If a and b both define an object key, b's value will be returned."
so they are just returning b
 
@python_user "update" is "in place merge" :P
 
fair enough :D
 
okay i really have a serious question to ask you guys if you don't mind
i have been trying to figure out why the thing isn't working for a good 4 hours keep in mind i am a mid level developer and get paid great salary
just figured out why it wasn't working was because of stupid python indentation, perhaps because I have been working with strictly typed languages but this one really makes me question if this career really is for me.
so the question is, do you guys ever make any silly mistakes that makes you wanna question this type of stuff or is it just me?
I understand this isn't the right place to ask this kind of a question but boy do I feel stupid
 
4:19 PM
if it matters anything, I still cant figure out after you mentioned there is an indentation error
 
Don't you use an IDE? But this answer is unanswerable without knowing many specifics, like what is a great salary, what is the amount of such errors, how fast is the general speed and quality with which you work etc. So I don't think you will get good answers. But to put it simply, you "deserve" what ever salary you get. If you are not getting any negative feedback from your boss keep it going, making mistakes is normal and everybody makes them
but don't worry we all spent hours to find a bug which was then fixed in a few characters. Although the indent one I never had. I would assume a good IDE to show such things immediately. I lately learned that there are people who code without an IDE, that seems insane to me, but the world is a strange place
 
well, IDE's dont show indentations that are syntactically correct but logically wrong
something like, you can have a return inside a for loop, but you actually meant to have it outside the for loop once the iteration is done
 
hello, sorry to interrupt the conversation. i am using this imageviewer github.com/ImagingSolution/PythonImageViewer/blob/master/… and want to extend it by starting with an image. It works when calling set Image at the ctor, but the canvas size is initially 1x1px and you have to doubleclick everytime to see the image full scaled.
I tried manually calling the doubleclick function and altering the canvas size but it dont work. It annoys everytime to doubleclick just to see this image
 
IDEs should warn about side-effects of incorrect indentation, such as missing, unused or conflicting variables.
 
@S.Code all the time... ever run a SQL "DELETE FROM some_table" - not only inadvertently on production instead of development and forgot the WHERE clause? :p
I've been doing development stuff for ~25 years now and I still make some whopping great boos boos, or have sat at the keyboard for hours looking at something and it turns out to be I'm using the wrong variable name etc... it happens!
 
4:30 PM
@S.Code for the record typing and indentation have nothing to do with each other
 
haha okay great guys thank for making me feel better and yes it was one of those indentations where the class and function go on the same line and don't have to be indented. My python understanding was that functions are inside the class.
here's the code for anybody curious, we are using django rest framework
class PartnerSerializer(serializers.ModelSerializer):
    class Meta:
        model = Partner
        fields = (
            "candidate_aquisition_page",
            "employer_aquisition_page",
            "pk",
        )

    def update(self, instance, validated_data):
        print('idk')
        if not self.partial:
            print('im actually here')
            return super().update(instance, validated_data)

        json_fields = [
            field.name
            for field in instance._meta.fields
the class Meta and function update have to be on the same line apparently
 
I wanted to tell "wut" once I read class and function go on the same line and don't have to be indented. then I saw the nested class
 
and print() is my way of debugging code haha like console.log() in javascript, and the bloody prints wouldn't run so I wondered why is my code not even getting here hahaha, and so I couldn't test if my merge() function worked at all
so nested classes don't have their functions indented?
 
I didnt mean in that way, if you dont nest the function, then the function belongs to the outer class (PartnerSerializer), if you nest it it belongs to the inner class (Meta)
 
oh got you got you
yeah that makes all the sense now
and that merge function worked guys thank you haha
 
4:59 PM
I make mistakes like that every day. Much of my design philosophy revolves around minimizing the impact of those mistakes. Both in "number of annoyed customers" and "man-hours spent diagnosing/fixing the error"
 
Hi How do I un ban myself from SO. It has been over 40 days
 
140 more days to go
There's a link in the message/banner telling you what you can do.
 
But what if the things it says are difficult and unpleasant
 
5:23 PM
main is down?
weird, I got a maintenance warning and now its gone
 
6:09 PM
@python_user Looks fine now
 
7:03 PM
Does anyone know if there's a way to customize autocompletions in vscode? Whenever I write an __init__ method for a subclass, it inserts all the parameters of the parent class instead of just doing *args, **kwargs
I also dislike the -> None annotation for __init__
 
Isn't it technically correct?
 
Correct, but also pointless
 
yeah
Hmm, I have access to a 2.7.5 from 2013. Good to know, I guess?
 
7:30 PM
@Aran-Fey I'm really not sure that VSCode is doing that
Is there anything with a suspicious name in your plugins that suggests it might do something like that?
 
Could be pylance I guess
 
It has "py" in the name which is known to be weird with types. Better burn it to be safe.
 
I don't use it myself, but looking at the animations, that's where I think it's coming from. That's a pretty broad plugin. I use one for docstrings, but I don't have something so far-reaching and I can't seem to repro your issue so it's not in base VSCode AFAIK
Even given that, I have a horrible time with auto-complete in HTML sometimes, but it's done atomically for the closing tags, so it might be that you can just ctrl z it and it will go away. Maybe try that?
Maybe "atomically" isn't the right word? In any case, the change exists in its own edit, so it can be reversed in isolation
 
Ctrl+Z does undo it, but I'd prefer if I could make it autocomplete to __init__(*args, **kwargs): super().__init__(*args, **kwargs). That'd save a lot of typing
maybe I should just install an addon for custom snippets
 
In that case, it's waaay beyond my use of VSCode sorry (I use it daily. I am a new-age luddite apparently)
 
8:17 PM
If you don't use pylance, do you have another addon for autocompletion?
 
 
1 hour later…
9:37 PM
@roganjosh "ok boomer"
 
Business idea: smart home assistant called Boomer.
 
10:06 PM
I went to pycharm bug tracker and raved at them about not having mypy support in PyCharm
they were like "get this defunct add on from dropbox"
 

« first day (4029 days earlier)      last day (912 days later) »