TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #208 · 29 јан.

Ранее мы уже говорили о том, как выполнить какой-либо код перед открытием интерактивной консоли. Расскажу еще один способ! На самом деле, даже запустив интерпретатор в обычном режиме с выполнением скрипта из файла вы можете в любом месте активировать интерактивный режим. Или даже несколько по очереди. За это отвечает модуль code. Как это может пригодиться? 🔸 Вам не хватает pdb и хочется больше "власти" 🔸 Нужно запросить у юзера данные в достаточно сложном виде. В этом случае можно попросить его создать что ему надо и сохранить в определённую переменную, с которой потом и работать. 🔸 Нужна изолированная среда для выполнения каких-либо действий. 🔸 Просто забавы ради😁 Запускается консоль очень просто import code ic = code.InteractiveConsole() try: ic.interact() except SystemExit: pass Выход обратно на предыдущий уровень происходит как обычно, вызов функции exit() или клавиши Ctrl+D(Ctrl+Z для Windows). Я набросал простой пример с некоторым функционалом 🔹 Меняются символы приглашения 🔹 В неймспейсы добавляются дополнительные объекты 🔹 Считается время, проведённое в интерактивном режиме 🔹 Скрипт просит юзера заполнить переменную и по выходу распечатывает её значение Код здесь ↗️ Для запуска сохраните код в файл и запускайте как обычный скрипт. python my_console.py Для быстрого запуска можно сделать отдельный алиас alias py="python3 /home/username/my_console.py" #tricks#source

Резултати

Пронајдени 3 слични објави

Пребарај: #wait

当前筛选 #wait清除筛选
Social Justice Watch

@social_justice_watch · Post #17065 · 05.09.2022 г., 02:13

I wonder how many gay people are actually transgender & dont know it because people thing being transgender is transitioning when it’s literally just not being cis. like I had a friend tell me last night “all my life I wanted to be a girl. even to this day, like if someone told me I could transition & look like you or *insert another trans woman idk* I would do it in a heartbeat” and when I was like omg ur transgender he was surprised? like he was like wait just wanting to be a girl makes me transgender even if I dont do anything about it? and like its harder to pinpoint non binary people but if u have a desire be a different gender ur transgender. transitioning is a choice but being transgender is not. “One of the symptoms of being a girl is wanting to be a girl.” Don’t remember where I heard that but the quote is my life. This is one of the posts I can explicitly pinpoint as helping me realize that I might not be cis. The biggest symptom of being trans is wanting to not be your gender. It can also be dysphoria, it can also be euphoria, it can also be presentation, but wanting to be something else is all you really need. #wait so ur telling me#‘i dont want to have a gender’#can mean#‘i dont have a gender??’ I would also like to know… for reasons Confirmed. How to know you’re agender: You don’t want to be anything else. You look at the options for gender and gender presentation and decide to go back to bed Bold of you to assume I got out of bed Nah but seriously thanks for the insight So, if I look at gender and say “this is some bullshit and I want no part of it”, I guess that makes me agender? if that’s how you wanna identify, yeah. feeling anything mentioned in this post doesn’t mean you have to identify as trans, but feeling anything in this post is literally all that’s necessary to identify as trans if you want to. fuck gatekeepers forever. 👏if👏you👏don't👏feel👏cis👏you're👏possibly👏not👏cis👏 i mean this is literally what jvn said This is one of those things where you can go 25+ years of your life not realising that actually no not everyone secretly wishes they were some mashup of male and female and that you are, in fact, genderfluid as fuck. You can want to be the other gender. You can want to be another gender. You can want to divorce all connection to the gender you were born into. You can want to keep it as an origin point that shapes your journey. You can want to be more than one gender at once. You can want to be more than one gender, at different times. You can want to be no gender. You can want to be sort of in between genders. You can want to be both genders. You can want to be rid of gendered body parts you already have. You can want to keep gendered body parts while also being another gender. You can want to be rid of them but not want the side effects of excising them. You can feel dysphoria at being shaped like/viewed as/treated like a gender you don’t want. You can feel euphoria at being shaped like/viewed as/treated like a gender you do want. You can change your mind or adjust your goals or refine your wishes. You can be stationary and fixed in your identity. You can be fluid and changing. You can be extremely gendered in your presentation. You can be not very gendered in your presentation. You can be androgynous. You can be a little of both. You can be a lot of both. If gender is a line you can cross, as the words trans (across/on the other side of) and cis (here/on the same side of) indicate, you can cross it in any way you like, including dancing on top of it. Be happy. Be you. This is an extremely affirming post. https://genderkoolaid.tumblr.com/post/691574739639091200/i-wonder-how-many-gay-people-are-actually

Hashtags