61.
 
2 points by kas 7 months, 1 week ago | discuss | parent | on: A powerful modal editor written in python.
Thanks! I didn't look in the source code, but I _did_ look in the documentation and I didn't find anything (I can't be absolutely sure I didn't overlook it, though). (Shift|Ctrl)-Esc is not exactly intuitive. Neither is my current editor's (jed) exit combo, ^X^C, but at least it's documented.
62.
 
3 points by rjmorris 7 months, 1 week ago | 1 comment | parent | on: A powerful modal editor written in python.
LOL. If you're still stuck inside your vy window, I found the key combo in the source code: Shift-Esc to quit or Ctrl-Esc to save and quit.
63.
 
1 point by kas 7 months, 1 week ago | 2 comments | on: A powerful modal editor written in python.
So, how do you exit this thing? Asking for a friend.
64.
 
1 point by intrepidhero 7¬†months, 2¬†weeks ago | discuss | on: uuid ‚ÄĒ UUID objects according to RFC 4122 ‚ÄĒ Python 3.8.0 documentation
Here's a question (maybe a dumb one) for the python crowd: why should I use a dedicated uuid algorithm versus `id(myObj)`?
65.
 
1 point by kas 7 months, 2 weeks ago | discuss | on: Thermal testing Raspberry Pi 4
Excuse me, but how is this relevant for Pythonic News? The word ‚Äėpython‚Äô does not appear even once in the entire article and the package `stress-ng` does not list python as a dependency. If you want positive karma, please post at Lobsters or HN instead.
66.
 
1 point by abrookins 7 months, 2 weeks ago | discuss | parent | on: New Book: The Temple of Django Database Performance
3.8 months - that's a fresh baby! :) Ours just turned six months and decided to get up at 4 am today, as usual. Thanks for buying the book! Agreed on there not being much written on the topic -- and in general, most programming books I read seem to be either too basic, or else just contain high-level overviews of advanced topics. There must be a good reason this happens to books, but whatever it is, I'd like to address it by writing focused books on advanced topics. Anyway, thank you for the feedback! I questioned putting the section on New Relic in the book, and I'm sure you aren't alone in being put off by it, as it's literally the first thing in the book. In the future I'd like to at least add some comparisons with a similar third-party service (DataDog). And maybe someone will point me at a secure method of doing this kind of low-level tracing/performance monitoring in production that is self-hosted. I hope you do check out the indexing section. If you haven't done much indexing with your models, then there's some great stuff in the chapter.
67.
 
1 point by bithive 7 months, 2 weeks ago | 1 comment | parent | on: New Book: The Temple of Django Database Performance
I bought your book yesterday, thanks for the coupon! There is not much written about the topic, at least I hadn't found much I understood. Our baby was born 3.8 Month ago and decided that this night no one would get much sleep. Writing a book in this time well I imagen it challenging. The section about new relic put me off a bit. But maybe it's worth a look. I don't like 3rd party services. But that's just me. I hope I find some time at work to read the next chapter. Sounds promising. Never indexed any of my models...
68.
 
3 points by abrookins 7 months, 2 weeks ago | 2 comments | parent | on: New Book: The Temple of Django Database Performance
Harder than I anticipated! At the same time, I was able to set my own writing schedule. I originally planned to publish the book during the summer, but decided to take three months off after our baby was born, which ended up moving the publication date later in the year. The entire project would have been a lot less stressful if I had simply told no one that I was working on it. However, as soon as I began writing I told everyone I knew about the book and the date that I anticipated publishing it. Then I took pre-orders based on that date. Next time, I will probably keep the project private longer. Or at the very least, avoid taking pre-orders and instead sell ‚Äúbeta‚ÄĚ access with a very loose publication date estimate.
69.
 
1 point by bithive 7 months, 2 weeks ago | 3 comments | parent | on: New Book: The Temple of Django Database Performance
Hi, I hope your family is well! How was writing a book under this circumstances.
70.
 
2 points by abrookins 7 months, 3 weeks ago | 4 comments | on: New Book: The Temple of Django Database Performance
Happy to answer any questions about the book, or about the process of writing a technical book! Summary version: it's a slog. And if cost is an issue for you, take 40% off with this coupon: 4pythonsc
71.
 
2 points by intrepidhero 7 months, 3 weeks ago | discuss | on: Raise Better Exceptions in Python
Good point and well made. Does anyone have a good reference for best practices for using exceptions? I feel like usage in the wild, at least in my code base, is kind of all over the map. Sometimes they mean the program dies, sometimes they are more like a glorified return code. Sometimes they are base classes and sometimes subclasses. You can certainly do lots of cool things with them. I'd love to see a well reasoned treatment of how they *should* be used.
72.
 
-1 points by huynh 7 months, 3 weeks ago | discuss | parent | on: Flutter open-source
hi you
73.
 
-1 points by huynh 7 months, 3 weeks ago | 1 comment | parent | on: Flutter open-source
dumoa
74.
 
-1 points by huynh 7 months, 3 weeks ago | discuss | parent | on: Flutter open-source
dumoa
75.
 
-1 points by huynh 7 months, 3 weeks ago | discuss | parent | on: Flutter open-source
dumoa
76.
 
2 points by kas 7 months, 3 weeks ago | 3 comments | parent | on: Flutter open-source
ūüĎć
77.
 
1 point by sebst 7 months, 3 weeks ago | 5 comments | parent | on: Flutter open-source
I will implement a flag button soon
78.
 
-1 points by kas 7 months, 3 weeks ago | 6 comments | parent | on: Flutter open-source
Fair enough, but how do we flag stories that are off-topic or spam (like the Flutter thing that started this thread), then?
79.
 
-1 points by sebst 7 months, 3 weeks ago | 7 comments | parent | on: Flutter open-source
The down-voting arrows appear on comments only, not on stories. I need to implement a flagging mechanism to mark spammy or otherwise irrelevant submissions. So far, you all played fair pretty much all of the time. Thank you so much for that!
80.
 
4 points by kas 7 months, 3 weeks ago | 10 comments | parent | on: Flutter open-source
And just as important: How can we report spammy or off-topic links here? Does it take a certain amount of karma before a down-voting arrow appears?
81.
 
4 points by kas 7 months, 3 weeks ago | 11 comments | on: Flutter open-source
As one who doesn't know what Flutter is, I have to ask: How is this relevant to the Python community? When I visit the MS Github repo, upwards of 99% of the codebase is Dart. How does Python get into it, if at all?
82.
 
1 point by epicserve 7 months, 4 weeks ago | discuss | on: Seeking Developers for Paid Contract Improving Pip
I'm guessing this is to add pipenv type functionality. I for one would welcome a fast and stable competitor to pipenv!
83.
 
1 point by kas 8 months ago | discuss | on: Kore4 and Python
I can't wait to try this out. I tried building Kore3 from AUR, but didn't succeed ‚Äď perhaps because of ArchLinux' recent transition from Python v3.7 to 3.8? Has anyone else tried building it on Arch?
84.
 
1 point by jpscaletti 8 months ago | discuss | parent | on: My Python Development Environment, 2020 Edition
It happened to me some years ago with CentOS, where the OS package manager is (was?) written in Python. Suddenly, I couln't update anything and wasn't sure which python library was the one causing the problem. Never again.
85.
 
1 point by bithive 8 months ago | discuss | parent | on: Pushing the ORM to its limits (DjangoCon 2019) [video]
Its behind a medium paywall :/
86.
 
2 points by intrepidhero 8 months ago | discuss | on: Why is the Migration to Python 3 Taking So Long?
I'm working on a 2 to 3 migration right now. It's not too bad. I have a decent framework of tests and have been using mostly 3 compatible code in 2.7... That said I asked myself a lot of times during the process, "Why am I doing this again?" Every change is a chance to introduce a bug and I can't think of a single benefit to this code base to migrating. IT might say, "2.7 isn't being updated and is therefore a security vulnerability." But this is a desktop application running behind a corporate firewall.... the risk incurred is so minuscule, if we actually did a cost/benefit analysis I don't see how we could justify the handful of staff days required to make the migration.
87.
 
1 point by sandman 8 months ago | 1 comment | on: Pushing the ORM to its limits (DjangoCon 2019) [video]
The presenter also wrote a summary. https://medium.com/kolonial-no-product-tech/pushing-the-orm-to-its-limits-d26d87a66d28
88.
 
1 point by intrepidhero 8 months ago | 1 comment | on: My Python Development Environment, 2020 Edition
Genuinely curious: has anyone had an experience where installing a library messed up the system python? I expect that my usage is pretty simple. My projects tend to depend on a handful of mainstream libraries. And I tend to rely on the more pedestrian features of python instead of the bleeding edge. So maybe it's just me but I struggle to imagine a case where my needs for development risk messing up the system python install.
89.
 
2 points by ish 8 months ago | discuss | on: My Python Development Environment, 2020 Edition
I'm very happy to see this update to his last environment post. I adopted pipenv and pipsi partially due to his advice. Since then, pipenv had lost a lot of community faith and pipsi is no longer maintained. I've started migrating to pipx recently, and long ago purged pipenv from my projects. I dropped back to simple pip and venv for most projects, and am starting to adopt poetry.
90.
 
3 points by intrepidhero 8 months, 1 week ago | discuss | on: New Python News Site
This is the first I've seen of finster. Can anyone relate their experience using it to get freelance work? My first impression is it's a little scammy.
More