[Python-Dev] PEP 366 - Relative imports from main modules Nick Coghlan ncoghlan at gmail.com Mon Jul 9 12:34:59 CEST 2007 Previous message: [Python-Dev] PEP 366 - Relative imports from main modules Next message: [Python-Dev] PEP 366 - Relative imports from main modules Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] Brett Cannon wrote: > On 7/8/07, Nick Coghlan < ncoghlan at gmail.com > wrote: >> As with the current ``__name__`` attribute, setting ``__package__`` will >> be the responsibility
[mod_python] ImportError on mathmodule: undefined symbol: PyFPE_jbuf Nate Aune natea at jazkarta.com Thu Apr 26 10:51:55 EDT 2007 Previous message: [mod_python] uneven speed results Next message: [mod_python] ImportError on mathmodule: undefined symbol: PyFPE_jbuf Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] Hello, I'm trying to set up Trac on my server and having some problems with mod_python. When I go to the URL of my Trac instance, I get the following error: Mod_python error: "PythonHa
Cat's Whisker Links Remember me 512 shaares 512 shaares Links per page 16 results tagged python microgpt Andrej Karpathy's implementation, including back-propagation/training, of a gpt2-like LLM in 100 lines of elegant python March 1, 2026 at 11:19:07 MST * · permalink · https://karpathy.github.io/2026/02/12/microgpt/ How uv got so fast | Andrew Nesbitt uv installs packages faster than pip by an order of magnitude. The usual explanation is “it’s written in Rust.” That’s true, but it doesn’t
# Euclidean algorithm (Python) - Other implementations: C | Erlang | Forth | Haskell | Java | Java, recursive | OCaml | Prolog | Python | Scala | Standard ML ### a brief definition def gcd(a,b): """ the euclidean algorithm """ while a: a, b = b%a, a return b #### or using recursion: def gcd(a,b): """ the euclidean algorithm """ if b == 0: return a else: return gcd(b, (a%b)) ### a brief digression The Euclidean Algorithm having been, and Knuth having devoted over 40 pages to it in The Art of Computer
Posts about Python written by Graham Hay
[Twisted-Python] feeding-worker-loop problem Patrick Scharrenberg pittipatti at web.de Sat Apr 19 05:06:14 MDT 2008 Previous message (by thread): [Twisted-Python] Re: Howto: use Trial to unit test an XML-RPC server Next message (by thread): [Twisted-Python] feeding-worker-loop problem Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] Hi! I've been thinking for some time now about the following problem, but can't find a solution. I have a queue with a fluctuant number of tasks. This queue might
Copy Python Cursor rules for Project Rules (.mdc), AGENTS.md, and .cursorrules. Customize a complete, ready-to-use template for your project
## Hack the World-System # Category Archives: Python # A Brief Introduction to Plotly Posted on August 28, 2014 by guest | 1 Reply This is a guest post by Matt Sundquist. Matt studied philosophy at Harvard and is a Co-founder at Plotly . He previously worked for Facebook’s Privacy Team, has been a Fulbright Scholar in Argentina and a Student Fellow of the Harvard Law School Program on the Legal Profession, and wrote about the Supreme Court for SCOTUSblog.com. Emailing code, data, graphs, files, and fol
# Understanding Python decorators ## Understanding Python decorators Wed 01 Jun 2011 A while back, I was hanging out on some Python forum and someone posted a comment about not being able to wrap their head around decorators. I spent some time on what I thought was a helpful comment, and that was that. Recently I figured it'd be worthwhile to expand that comment a bit. So, here we go. First, it helpes to understand that python variables are not boxes in which you store values, but rather name tags that
Learn how to design and implement custom iterators and iterables in Python with this practical guide to the Python Iterator protocol and real-world applications