fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

9.8K
active users

#python312

0 posts0 participants0 posts today

Neden indirdiğim Python kodlarının çoğu çalışmıyor?!

Py5 modülü istedi onu da ekledim, ama hâlâ çalışmıyor!

Ben daha öğrenmeye çalışan bir python öğrencisiyim, neden her şeyi zorlaştırıyorsunuz?

Üstelik İngilizce de bilmiyorum ve bâzan bir ilkokul öğrencisinin bile kolayca anlayabileceği tavsiye ve cevapları anlayamayabiliyorum!

mastodon.online/@villares@pyne

To test installation of mapdata.py (pypi.org/project/mapdata/) under Python 3.12 in a venv (my dev machine runs 3.10), the following additional system packages must be installed during the installation of Python 3.12: libssl-dev, build-essential, libffi-dev, libsqlite3-dev, and tk-dev. After installation of these (e.g., with apt on Debian), the Python installation must be completed with `./configure & make & make install`.

PyPImapdataAn interactive map and table explorer for geographic coordinates in a spreadsheet, CSV file, or database that includes data plotting and statistical summaries

Looking into the python 3.12 generics. I thought the only, and very tempting, advantage of python over static systems was the quick and dirty linter-only typing.

With half-baked generics, python is just slow C++. If Julia had better tooling outside vscode I would have seen absolutely zero use-cases for generics in python.

#python #python312 #programming

@dimpase wrote:
"...the standard Fibonacci(500) example shows this bug just as well."

# fib.py
import sys
sys.setrecursionlimit(2000)
from functools import cache

@cache
def fib(n):
if n<1: return 0
if n==1: return 1
return fib(n-1) + fib(n-2)

print(fib(500))

Me:

That's really an absurdity that can't be surpassed in terms of embarrassment.

I hope the developer is fired, but also the chairman of the Python board.

Because it shows that there is no testing culture in Python. If you tinker with Python's stack screws and don't monitor it with even the most primitive tests like this, then...

In any case, my trust in Python has been severely shaken.

Replied in thread

@djangonaut if you need ideas, our attempt to add 5.0 support for django-storages was stalled that a dropbox library doesn't support Python 3.12 as it's using setup.py (removed in 3.12).
I don't maintain any packages, so I don't really know how this needs updating and how to check it works - but someone on here might!
Then, I'm sure this process could be repeated for a bunch of other Python packages 🐍📦

github.com/dropbox/dropbox-sdk

GitHubGitHub - dropbox/dropbox-sdk-python: The Official Dropbox API V2 SDK for PythonThe Official Dropbox API V2 SDK for Python. Contribute to dropbox/dropbox-sdk-python development by creating an account on GitHub.