Работаем с атрибутами объектов
Помимо привычного обращения к атрибутам объектов через точку, в Python есть 4 специальных функции: getattr, setattr, delattr и hasattr.
По названиям можно понять, что первые три отвечают за получение, установку и удаление атрибута. А последний проверяет, существует ли атрибут с указанным названием у объекта или нет.
Во всех функциях первыми двумя аргументами идут объект и название атрибута в виде строки. В setattr также нужно передать новое значение для атрибута.
На практике использование подобного — довольно редкий случай, но иногда может сильно выручить, так что берите на вооружение.
#python#tips
https://medium.com/@seashorepartners/python-3-6-has-it-redefined-web-development-233165023a36
Python 3.6 — Has it redefined web development?
#Python 3.6 is the biggest ever release by Python, and it starts its enhancements from where Python 3.5 left. Released in December 2016, the world is going gaga over the new release, as the #enhancements help improve speed and performance of your website without compromising on the quality or, the way you have construed your website.
#Asynchronous Functions
✅ Через неделю
✅ Pytup
📅 28 марта / 18:30–20:30 (время Екатеринбургское, МСК+2) / Екатеринбург, ул. Хохрякова д.10, БЦ «Палладиум», 4 этаж
💵 Бесплатно
📝 Регистрация тут: https://goo.gl/mYKbxc
Приглашаем Python-разработчиков послушать доклады экспертов, задать им вопросы и поговорить на профессиональные темы в кругу единомышленников.
На встрече мы обсудим расширение на Rust, непредсказуемость кода и приложение, которое помогает вывести продукт на рынок.
🔗 Программа: https://goo.gl/TisbTD
#frontend#python#Екатеринбург
✅ BIG DATA 2018
📅 28 марта / 09:30–18:00 (время МСК) / Москва, 1-й Зачатьевский пер., д. 4
💵 Платно
📝 Регистрация и условия участия тут: https://goo.gl/Rajgce
BIG DATA 2018 — это исчерпывающая картина текущего состояния и перспектив индустрии больших данных.
Участие в форуме поможет Вам выбрать правильное направление и найти надежных попутчиков на сложном пути перехода к цифровой экономике — экономике, основанной на данных.
🔗 Программа: https://goo.gl/RYpiwQ
#BigData#Москва
✅ Android Paranoid
📅 28 марта / 18:00–21:30 (время МСК) / Санкт-Петербург, Пискарёвский проспект, д.2к2, лит.Щ, БЦ «Бенуа», 5 этаж
💵 Бесплатно
📝 Регистрация тут: https://goo.gl/5D5TCE
В этом году Андроиду исполняется десять лет. Отличный повод встретиться и поговорить про легендарную мобильную ОС! 😉
🔗 Программа: https://goo.gl/xHz2Hg
#android#java#mobile#mobileapps#СанктПетербург
http://www.meetup.com/flask-nyc/
This is a group for anyone interested in #Flask, #Python, #web_development, and any related technologies.
To stay up to date with group events, follow us on Twitter @FlaskNYC.
Want to read up on Flask?
#python#agent#ai#biomedicine
Biomni is a powerful AI tool designed to help biomedical researchers by automating complex tasks like gene analysis, drug testing, and data interpretation. It uses advanced language models combined with smart planning and coding to perform diverse research activities without needing preset instructions. This means you can ask Biomni to plan experiments, analyze data, or predict drug properties using simple natural language commands, saving you time and boosting productivity. Biomni is open for community contributions, allowing users to add new tools and datasets, and it offers a no-code web interface for easy access. This helps you accelerate scientific discovery and generate new testable ideas efficiently[1].
https://github.com/snap-stanford/Biomni
https://wiki.python.org/moin/PythonDecorators
This page largely documents the history of the process of adding #decorators to #Python.
If you're just interested in what decorators or the '@' #symbol mean in Python, see the Wikipedia page .http://en.wikipedia.org/wiki/Python_syntax_and_semantics#Decorators or PEP 318.
These advanced writing strategies are aimed at writers looking to refine voice, elevate craft, and provoke thought:
🧠 1. Master Subtext and Implication
Great writing isn’t just about what’s said—it’s about what’s unsaid. Use subtext to create tension, irony, or emotional depth. Readers love decoding meaning between the lines.
Instead of “She was angry,” show clenched fists, clipped dialogue, or the silence that says more than shouting.
🔄 2. Manipulate Structure and Pacing
Experiment with non-linear timelines, dual perspectives, or fragmented narratives. Pacing isn't just about speed—it's a tool for emotional rhythm. Use short bursts to jolt or long, lyrical passages to lull.
🎭 3. Develop Unreliable Narrators
They’re not just mysterious—they challenge readers’ assumptions. Whether through selective memory, warped perception, or intentional deceit, unreliable narrators add complexity and ambiguity that can elevate your work.
🌪 4. Embrace Literary Tension
Tension isn’t only in plot—it’s in theme, voice, structure. Create internal conflicts (love vs duty, truth vs comfort), and external ones (a gentle character trapped in a brutal world). Let contradictions drive the story.
✒️ 5. Craft Symbolic Resonance
Objects, settings, and images can become metaphors if layered with meaning. Recurring motifs can echo a character’s arc or a theme’s evolution. Subtlety is key—trust the reader’s intellect.
📚 6. Deconstruct Genre Expectations
Play within genre conventions, then subvert them. A fantasy story might reject the hero’s journey, or a romance might center emotional vulnerability over romantic resolution. Make readers question what “should” happen.
🧬 7. Polish Your Syntax Like Prose Music
Sentence rhythm matters. Vary sentence length with purpose. Read your work aloud—does it flow, snap, soar, stumble? Think of prose as choreography for the reader’s mind.
#tips@WritersCafe#WritingTips#CharacterDevelopment
❗️
❗️
❗️
Some of the techniques you can employe while writing two characters who are thinking simultaneously without making it clunky are as below:
1. Alternating Inner Thoughts (Ping-Pong Style)
Let them “think in turns” within the same scene.
Example:
She watched him stir his coffee—slow, deliberate.
Why is he so calm?
He felt her eyes on him.
She’s suspicious already. Play it cool.
✅ Keeps the rhythm.
✅ Feels like real-time interaction.
2. Third-Person Dual POV (Scene-Level Switch)
Tell the scene from one POV at a time, and then switch in the next scene or chapter.
Example:
Scene 1: We’re in Emma’s head.
Scene 2: Same moment or next one, but now in Noah’s head.
✅ Prevents clutter.
✅ Lets you go deeper into each person’s psyche.
🚫 Avoid switching heads mid-paragraph—it confuses readers.
3. Close Third-Person + Body Language Clues
Stick to one character’s POV, but show the other’s inner world through behavior, expressions, or small actions.
Example:
She bit her lip, debating whether to speak. He shifted in his seat, as if bracing for something.
Was he nervous too?
✅ Suggests mutual thought without head-hopping.
✅ Subtle and realistic.
4. Split Dialogue with Inner Conflict
Let their spoken dialogue carry subtext, and sprinkle in inner monologue to contrast or heighten the moment.
Example:
“You trust me, right?” he asked, smiling.
Say yes. Just say yes, she told herself.
“Of course,” she replied.
But he caught the tremor in her voice.
She’s lying.
✅ Great for building tension and mistrust.
✅ Feels cinematic.
5. Shared Thoughts or Misinterpretation
Sometimes both characters can have similar or opposite internal reactions to the same moment—this creates drama or irony.
Example:
He thought she looked bored.
She thought he wasn’t paying attention.
They were both wrong.
✅ Good for romantic tension or comedy.
✅ Works best in narration-heavy or stylized prose.
6. Parallel Narrative (Split Format)
Use stylistic formatting—like side-by-side text, alternating paragraphs, or even text messages/journal entries—to contrast their thoughts.
✅ Creative format.
✅ Great for Gen Z/YA fiction.
🚫 Use sparingly or it may feel gimmicky.
❗️
❗️
❗️
❗️
❗️
✔️ TL;DR
✅ DO
» Let thoughts play off each other.
» Keep the rhythm flowing.
» Use inner monologue + external cues.
» Switch POV only at clear scene breaks.
❌ DON’T
» Repeat the same moment from both heads word-for-word.
» Head-hop mid-paragraph.
» Over-explain every thought.
____________________________________________
#tips@WritersCafe#WritingTips#CharacterDevelopment
#python#multi_modal_rag#retrieval_augmented_generation
RAG-Anything is a powerful AI system that helps you search and understand documents containing mixed content like text, images, tables, and math formulas all in one place. It uses smart parsing and analysis to break down complex documents and builds a knowledge graph to connect different types of information. This means you can ask detailed questions about any part of a document—whether text or images—and get clear, accurate answers quickly. It supports many file types like PDFs and Office files, making it ideal for research, technical work, or business reports where you need a unified, easy way to explore rich, multimodal content. This saves you time and effort by avoiding multiple tools and gives you deeper insights from your documents.
https://github.com/HKUDS/RAG-Anything