1.
 
1 point by kas 6 months ago | discuss | on: Solving Tribonacci Sequence with Python
The funny thing about these *bonacci sequences is that as we reach infinity in these sequences, the ratio between two consecutive numbers approach a certain value that is characteristical for the sequence. For the Fibonacci sequence the ratio is the golden ratio, which is a root of the polynomial x¬≤‚ąíx‚ąí1. For the Tribonacci sequence, the ratio in a root in the polynomial x¬≥‚ąíx¬≤‚ąíx‚ąí1. And for a Nbonacci, the ratio is a solution to x‚ĀŅ‚ąíx‚ĀŅ‚ĀĽ¬Ļ‚ąí‚Ķx¬≤‚ąíx‚ąí1. This is easy to prove. And as N approaches infinity, the ratio will approach 2.
2.
 
1 point by kas 6 months, 1 week ago | discuss | on: Check if Isogram using Python
See e.g. https://gist.github.com/kseistrup/367298c2d4319aa01e9efc13230357a0
3.
 
1 point by kas 6 months, 1 week ago | 1 comment | on: Check if Isogram using Python
For some reason I cannot post a comment on the website, so: Another way is to compare len(set(text.casefold())) with len(text).
4.
 
1 point by kas 6 months, 1 week ago | discuss | on: Just Title
Please delete. Link has nothing to do with Python.
5.
 
1 point by kas 7 months ago | discuss | on: Understand Lucene To Understand ElasticSearch
Please delete. The article contains NO references to python.
6.
 
1 point by kas 7 months, 3 weeks ago | discuss | parent | on: Ask PN: does pythonic news index url for checking duplicate url
And Chromakey above is one user that has only posted off-topic links.
7.
 
1 point by kas 7 months, 3 weeks ago | 1 comment | on: Ask PN: does pythonic news index url for checking duplicate url
Before we get a dupe-checker I feel it would be nice with a down-voting or flagging button: The number of off-topic posts are on the increase, and when they aren't removed they will encourage more and more off-topic posts.
8.
 
2 points by kas 8 months, 2 weeks ago | discuss | on: Using Rust to Power Python Importing With oxidized_importer
It would be nice if you could just “import oxidized_importer“ at the top of your script and then it would monkey patch the import statement such that all subsequent imports were oxidized, wouldn't it? But that's not quite how it works, is it (yes, I did rtfm, but I'm still not quite sure how it works)?
9.
 
2 points by kas 8 months, 2 weeks ago | discuss | parent | on: Contextualise: Map your knowledge
Thanks!
10.
 
2 points by kas 8 months, 3 weeks ago | 2 comments | on: Contextualise: Map your knowledge
This certainly looks interesting. Thanks for sharing. Am I misreading something, or does it require PostgreSQL? It would be sweet if it could use SQLite, methinks (I will be happy to open an enhancement request).
11.
 
2 points by kas 9 months, 2 weeks ago | discuss | on: Rich: A Python library for rich text and beautiful formatting in the terminal
This thing will prettyprint everything I want to print. Yay!
12.
 
0 points by kas 11 months, 2 weeks ago | 1 comment | parent | on: Could Nim Replace Python?
Interesting, thanks for your thoughts.
13.
 
2 points by kas 11 months, 2 weeks ago | discuss | parent | on: Could Nim Replace Python?
No sweat, take your time.
14.
 
1 point by kas 11 months, 2 weeks ago | 1 comment | parent | on: Could Nim Replace Python?
Ok, so there's now way to make paragraphs here on PN?
15.
 
1 point by kas 11 months, 2 weeks ago | 3 comments | on: Could Nim Replace Python?
Betteridge's law of headlines is an adage that states: ‚ÄúAny headline that ends in a question mark can be answered by the word no.‚ÄĚ Speed or not, I believe that Python's interactive prompt + being able to run without compilation gives Python a head start. Nim looks interesting, though.
16.
 
1 point by kas 1 year ago | discuss | parent | on: How to Read a File in Python, Write to, plus Append, to a File
(It didn't, damn!)
17.
 
1 point by kas 1 year ago | 1 comment | on: How to Read a File in Python, Write to, plus Append, to a File
In an article that talks about handling files, I feel that `pathlib` should have been mentioned: import pathlib path = pathlib.Path('/path/to/file') with path.open('w') as fptr: print('oh, hai!', file=fptr) (I wonder if identing the block above renders the block as a code block…)
18.
 
2 points by kas 1 year, 1 month 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.
19.
 
1 point by kas 1 year, 1 month ago | 2 comments | on: A powerful modal editor written in python.
So, how do you exit this thing? Asking for a friend.
20.
 
1 point by kas 1 year, 1 month 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.
21.
 
2 points by kas 1 year, 2 months ago | 3 comments | parent | on: Flutter open-source
ūüĎć
22.
 
-1 points by kas 1 year, 2 months 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?
23.
 
4 points by kas 1 year, 2 months 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?
24.
 
4 points by kas 1 year, 2 months 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?
25.
 
1 point by kas 1 year, 2 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?
26.
 
2 points by kas 1 year, 3 months ago | 1 comment | parent | on: Ask PN:how does pythonic News generate unique slug for Url
UUID4 is all fine and good. The downside of using them for unique URLs is that they're completely human unfriendly: Not only are they a PITA to remember or manually type, they are also not offering any clue whatsoever as to what the link is about. We know this site is about Python, but that is all you can deduct from seeing a URL.
27.
 
3 points by kas 1 year, 3 months ago | discuss | on: Python 3.8 - there's a lot more new than most people are talking about (podcast)
/me wishes there were a transcript available of the podcast…
More