python

Back Open Paginator
05.08.2025 17:29
hackernoon (@hackernoon@mas.to)

Comparing Pandas and Polars hackernoon.com/pandas-vs-polar #python




Show Original Post


05.08.2025 17:27
david_megginson (@david_megginson@mstdn.ca)

@CartyBoston I've never regretted writing my own Javascript, CSS, Python/PHP, etc., and nearly always regretted using frameworks for those things. I have sites that I still haven't untangled from Bootstrap, for example. 🙁

The one micro-framework that I haven't regretted over the years is Flask (Python), because it's so thin that it still lets you do almost everything yourself.

I understand Flask started out as an April Fool's joke ("You said you wanted 'minimal', so here you go…") , and then the joke backfired when the Python community took it up enthusiastically.

There's a lesson in there somewhere.

#webdev #Javascript #Python #Flask #coding




Show Original Post


05.08.2025 15:05
pycharm (@pycharm@techhub.social)

PyCharm 2025.2: AI Toolkit for AI Engineers and More!
#Python #Pycharm #Releases

blog.jetbrains.com/pycharm/202




Show Original Post


05.08.2025 14:42
habr (@habr@zhub.link)

Пишем бота для «Отечественного WeChat» — Max на Python

Недавно VK сделал новый мессенджер - Max - который рекламируют как отечественный аналог WeChat. Пока что он немного сыроват, но в нём видно потенциал. Сегодня мы будем делать бота для него на Python.

habr.com/ru/articles/934140/

#aiomax #мессенджер #max #python #библиотека #чатбот #чатбот




Show Original Post


05.08.2025 14:35
lobsters (@lobsters@mastodon.social)

The PSF has paused our Grants Program lobste.rs/s/j6brbd
pyfound.blogspot.com/2025/08/t




Show Original Post


05.08.2025 14:28
vivis_dev (@vivis_dev@mastodon.social)

uses the flyweight design pattern to intern strings





Show Original Post


05.08.2025 14:23
vivis_dev (@vivis_dev@mastodon.social)

sets are useful when you need:

- fast membership testing
- deduplication or uniqueness guarantees
- comparing two sets of items





Show Original Post


05.08.2025 14:17
vivis_dev (@vivis_dev@mastodon.social)

list tips:

- You can search substrings with list.index(elmnt, start, end)

- reversed(list) is more memory efficient for reversing a list than slicing list[::-1] because it returns an iterator instead of a copy

- You can remove multiple items with slice assignment using list[1:4] = [] or del a[1:4]





Show Original Post


05.08.2025 14:14
vivis_dev (@vivis_dev@mastodon.social)

variable scoping can be confusing if you’re used to other programming languages.

A scope determines where a variable name is visible, and it’s lifetime.

Python checks for the variable definition in the following order, and stops at the first match - Local, Enclosing, Global, Builtin functions.





Show Original Post


05.08.2025 14:13
vivis_dev (@vivis_dev@mastodon.social)

It’s been a fun July writing Python Koans, I’m hoping to carry this momentum for the rest of the year!

If you have suggestions or topics you want me to cover, feel free to DM me!

pythonkoans.substack.com





Show Original Post


05.08.2025 14:06
kushal (@kushal@toots.dgplug.org)

Dear #Python #community please read this important #blog post pyfound.blogspot.com/2025/08/t related to #grants from @ThePSF




Show Original Post


05.08.2025 14:04
fediverse (@fediverse@app.wafrn.net)

an old cohost post.

print(''.   join( *[
 map(lambda   x: a[x ]
   if x  in a   else x,[
     s for s in   input()]
      )for a  in   [dict(**
      a, **b)for   a, b  in
     zip( *list   ( zip ([
   dict(dict(   dict(**a
 ,**b),**c)   ,**d)for
a,b,c,d in   [( {i: j
for i,j in   zip(a ,a
[: :-1])},   {i.upper
 ():j.upper   ()for i,
   j in zip(a   ,a[ ::
     -1])}, {j    :i for
      i , j  in   zip(a,a
      [ : : -1]   )},{j .
     upper ():   i.upper
   ()for i,j   in zip(
 a, a[ : :-   1 ] ) }
) for a  in   input (
).split()]]   )))]]))

on execution, try input:

kpfg aieo
offli

#python #shitpost


Show Original Post


1 ...1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 ...1546
UP