[Twisted-Python] AMP message length limit Glyph Lefkowitz glyph at twistedmatrix.com Sat Nov 28 07:41:43 MST 2015 Previous message (by thread): [Twisted-Python] AMP message length limit Next message (by thread): [Twisted-Python] AMP message length limit Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] > On Nov 25, 2015, at 04:54, Oon-Ee Ng < ngoonee.talk at gmail.com > wrote: > > On Tue, Nov 24, 2015 at 11:03 AM, Oon-Ee Ng < ngoonee.talk at gmail.com > wrote: >> And furthermore that when I do
Why Python annoys kernel people Apparently, They Hate Stack Traces A typical Python program begins with stuff like this: import argparse import sys def main(): parser = argparser.ArgumentParser(description='foo some bars') parser.add_argument('-n', '--numeric', action='store_true') args = parser.parse_args() ... # code to foo some bars return 0 if __name__ == '__main__': sys.exit(main()) If this code is run, and the body of main (or anything it calls) does something slow and the program is interrupted, you
## Mutable vs. Immutable Data Types In one of the last lessons, we explained variables using the analogy of a warehouse. We learned that a variable is just a label, and that the label gets stuck onto a box sitting somewhere in the warehouse (in memory). The box holds the value. The box also has a data type. Read more about Mutable vs. Immutable Data Types Log in or register to post comments ## List In this lesson, we continue our discussion of Python data types. We are going to discuss one of the most c
Python Archives (1993): Writing classes in C # Writing classes in C Rafael Bracho ([email protected]) Mon, 18 Oct 1993 15:06:53 +0800 - Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] - Next message: [email protected]: "Re: import restrictions" - Previous message: Steven D. Majewski: "fetch - a simple function using python's ftplib" Hi, I'd like to write a module in C which defines a class, with at least some of its methods executing in C. Is it possible to define classes
Importing a python module takes too much memoryI am working on a quite big existing Python application and I am
[mod_python] problem w/ authen handler Bud P. Bruegger bud at comune.grosseto.it Thu May 19 10:27:12 EDT 2005 Previous message: [mod_python] feature request: psp templating returns html codeto calling script, not to browser. Next message: [mod_python] problem w/ authen handler Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] I'm a beginner and hope someone can straighten me out. I am trying to write a simple handler that clicks in after mod-ssl has requested a certificate from the client. Depe
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
Copy Python Cursor rules for Project Rules (.mdc), AGENTS.md, and .cursorrules. Customize a complete, ready-to-use template for your project