#Datasette Lite runs #Python in I guess probably #WASM so you can run #SQL queries on #CSV files
on 02026-01-12#Python gets frozendict at last
on 02025-12-11"Trio" is a #Python #async library, an alternative to asyncio
on 02025-11-04“"Cinder" is Meta’s internal #performance oriented production version of CPython 3.10. It contains a number of performance optimizations, including bytecode inline caching, eager evaluation of coroutines, a method-at-a-time JIT, and an experimental bytecode compiler that uses type annotations to emit type-specialized bytecode that performs better in the JIT.” #Python
on 02025-08-10Hudson River Trading forked #Python to add “lazy imports” for startup #performance #toread
on 02025-08-10The Trellis, Phillip J. Eby’s #dataflow programming environment for #Python.
on 02025-08-09why #JIT #compilers don’t get good #performance out of #Python
on 02025-08-06the Numba JIT compiler for getting #performance out of #Python #Numpy has a nicely styled website with pastel code samples
on 02025-08-06someone complaining #KittenTTS doesn’t work on any of their machines because the #Python version is either too old or too new.
on 02025-08-06why #PyPy has difficulty emulating the #Python C API for Python extension modules like Numpy
on 02025-08-05Since #Python 3.0 you can put *, in your parameter list to ensure that the following parameters are keyword-only, freeing you from having to add any new ones at the end if you want to maintain backward compatibility, and allowing you to delete unused parameters without breaking backward compatibility with positional callers that weren’t using them.
my popular comment about why #Python removing #CGI after deprecating it was bad. #planned-obsolescence #boring-technology #politics
on 02025-07-20The cgi module being removed from the #Python standard library. #CGI
on 02025-07-20simple example code for running a #Python Flask app under #wsgiref with #WSGI
on 02025-07-20more about #testing #Python with #Hypothesis #PBT
on 02024-12-22#testing #Python with #Hypothesis is proposed (and now accepted) #PBT
on 02024-12-22Paul Ganssle and Zac Hatfield-Dodds want to use #Hypothesis to test the core of #Python, saying #PyPy already does this, while Guido and Raymond Hettinger are skeptical. “Minithesis is readable mostly by virtue of not handling the hard edge cases.” #testing #PBT
on 02024-12-22#CloudFlare using #TLS fingerprinting (implementation profiling) to block #scraping, fixable in #Python with the "tls-client" package from the Cheese Shop
on 02024-09-11"Visidata" is a spreadsheety GPL3 data visualization #TUI program that looks pretty impressive. #infovis in #Python, supporting #TSV, #JSON, #CSV, #SQLite, #Pandas, and #HDF5
on 02024-09-03#security #huggingface #pickle #Python #sux
on 02024-03-01#Python threads can be sent a SystemExit exception from another thread
on 02023-07-04a #regex library for #Python with, among other things, timeouts
on 02023-07-04for high #performance numerical computation in #Python people recommend Numba, Jax, and switching to Julia or Taichi
on 02022-12-28“"CircuitPython" is an education friendly open source derivative of MicroPython.” #Python #embedded
on 02022-05-21how to invoke the pdb #debugger when scripting #GDB in #Python: python pdb.run('gdb.execute("print $1[0]")'). Also you can start up an #IPython kernel inside GDB with IPython.embed_kernel() (not sure if this works for notebooks) and define a function in .gdbinit that invokes Python by saying define functionname ... end with a python ... end block inside it.
apparently reinsurance, of all things, is moving from #Excel to #Python
on 02021-01-13how to write a #FUSE #filesystem in #Python
on 02020-10-10#Python #archival problems for #SciPy.
on 02017-11-30The SciPy #Python #library comes with a whole passel of #optimization #algorithms.
on 02017-07-13Pint is a #dimensional-analysis #library for #Python
on 02017-07-13sbp ported #simplesha3 to #Python 3. #SHA-3 #Keccak #crypto
on 02017-03-22Skulpt is a JS reimplementation of #Python 2 for in-browser evaluation, e.g. for #explorable-explanations. It compiles Python to #JS with an AST as its intermediate representation.
on 02016-11-23#IEEE-754 #floating-point manages to make even the simplest functions into complicated quagmires! #Python
on 02016-07-05#Python subset #interpreter in 64k of code, with its parser and bytecode compiler written in itself.
on 02016-04-22A new #PyPy release with significant #performance improvements. Also they now support five architectures: i386, amd64, ARM (32-bit), PowerPC 64, and IBM System/360 (s390x), and they now have basic numpy support instead of none. #python #compilers
on 02016-04-21discussion of #Python #performance (Pyston, Unladen Swallow, Falcon, Pyjion, Cython, and of course #PyPy)
on 02016-04-19The #Python 1.5.2 (p2) #documentation, 2000-03-22 edition. #history
on 02016-04-18pywb is a #Python library for #WARC #archival file browsing (and also Heretrix’s old ARC format). It does live URL rewriting on responses. Also you can use it as a mediator to inject stuff into pages as you browse.
on 02015-12-29An #EDSL in #Python for #GPGPU programming the #Raspberry-Pi in the VideoCore assembly language.
on 02015-12-27#Antimony is a #3D #CAD system built in #Python with a dataflow GUI in Qt, supporting both CSG and BRep geometry on top of a functional-representation engine. The author did his thesis on it.
on 02015-11-30“Seaborn is a library for making attractive and informative #statistics #graphics in #Python. It is built on top of matplotlib and tightly integrated with the PyData stack, including support for #numpy and #pandas data structures and statistical routines from scipy and statsmodels.”
on 02015-11-16#performance #benchmarks of #Raspberry-Pi 2 in #Python.
on 02015-11-16#pandas #Python vs. #R. includes things like #random-forest modeling, linear regression, and web scraping #machinelearning
on 02015-10-14a #Python library for generating #asm for i386 and amd64.
on 02015-09-21"Theano": a #Python library that allows you to define, optimize, and evaluate mathematical expressions involving multi-dimensional arrays efficiently, using #Numpy arrays, #GPGPU (NVIDIA only?), compilation of expression graphs to C, and symbolic differentiation. 3-clause BSD license.
on 02015-09-06Search in the list monad in #Python and Perl.
on 02015-08-30Markov asset pricing using Numpy in #Python and #IPython, part of “a series of lectures on quantitative economic modelling, designed and written by Thomas J. Sargent and John Stachurski.”
on 02015-08-26#Probabilistic-Programming and #Bayesian methods for Hackers in pure #Python. #ebook
on 02015-08-19The original 2009 #djb paper on #NaCl #security. Permanent ID 1ae6a0ecef3073622426b3ee56260d34. Includes pure-#Python implementations of #Curve25519 and #Salsa20 by Matthew Dempsky, as well as #Sagemath code. Doesn’t mention crypto_sign, so maybe it didn’t exist at first, which would explain why I thought it didn’t exist.
you can run #Node #JS and #Python code in #AWS #Lambda sandboxes, not just JVM stuff!
on 02015-08-17#Arachnid wrote a #reactive programming framework using static analysis and decorators in a few lines of #Python.
on 02015-08-15“#Levenshtein automata can be simple and fast” and useful for finding potential misspellings (like for a #search-engine, with applications given to #Lucene) in a #trie. #Python with #graphviz: 40 lines of code and good (O(max edit distance) supposedly) worst-case #complexity. #smallisbeautiful #algorithms
on 02015-08-15Code for several standard #algorithms for the multi-armed #bandit problem, in #Python, #Julia, and #Ruby.
on 02015-08-13#examples of doing #image-processing #registration with #Python and #RANSAC on starfield images, which allow the use of a particularly simple feature detector ☺ #dsp
on 02015-08-13#examples of how to do #visualization of small multiples with #matplotlib pyplot in #Python, using subplots and iterating over the axes in its return value
30-minute-delayed #intraday #trading #data in #python from Google Finance (5-minute OHLCV bars; seems to be a 768-bar-per-request limit)
on 02015-08-12#python #algorithms not in the standard library.
on 02015-08-10My reimplementation of the 31-byte MS-DOS demoscene #demo Klappquadrat in #Python using Numeric (the predecessor to #NumPy.), based on the #asm source and disassembly.
on 02015-08-10In an #eventloop, you can readline() on a select()able file descriptor in #Python if you set the file descriptor to #nonblocking first. Then you just get EAGAIN when you try to readline(), at which point you know that the buffer doesn’t contain a waiting line.
on 02015-08-08A #machine-learning #neural-network in 11 lines of #Python. #smallisbeautiful
on 02015-08-05A #Python #spreadsheet with Python expressions in its grid cells
on 02015-08-05