Calling super() in __init__ of a metaclass130 (8/6/2011 7:34:48 AM) comp.lang.python Consider this standard metaclass definition: class MyMetaclass(type): def __init__(cls, name, bases, dct): super(MyMetaclass, cls).__init__(name, bases, dct) # do meta-stuff class Foo(obje... Eli
stopping a thread with _Thread__stop021 (8/5/2011 12:16:37 PM) comp.lang.python This recipe: http://code.activestate.com/recipes/576780-timeout-for-nearly-any-callable/ Claims that a Python thread can be stopped by executing the private method "Thread._Thread__stop". I don't think this is... Eli
shift/reduce conflicts in the YACC grammar of C995306 (10/30/2010 10:22:38 AM) comp.lang.c The "old standard" ANSI/ISO C (C89) had a known shift-reduce conflict
in its YACC grammar, because of the uncertainty of where to hang an
else in nested if statements. This conflict was resolved to "shift" by... eliben
parent pointers in AST nodes9129 (11/27/2009 1:32:11 PM) comp.compilers Hello,
When implementing an AST for some language, each AST node typically
holds information about the language construct it represents and
pointers to children nodes (such as a binary op node pointing to ... eliben
Handling high UDP throughput1443 (3/3/2009 8:00:06 AM) comp.arch.embedded Hello, We have a system that has to process data incoming from a GbE channel in UDP packets. The throughput is ~40Mbyte / second. I'm looking for solutions on how to process this data. The data processing can... eliben
number theory libraries / project euler414 (2/18/2009 8:18:27 PM) comp.lang.python Hello, What are some good & recommended number theory libs for Python (or accessible interfaces to C libs), for things like primes, factorization, etc. Naturally, speed is of utmost importance here. In other ... eliben
data structure for ASTs in Python-written parsers028 (2/14/2009 6:47:37 AM) comp.lang.python Hello, The Python interpreter uses ASDL (http://www.cs.princeton.edu/~danwang/ Papers/dsl97/dsl97.html) to describe the AST resulting from parsing. In previous versions, there was another AST being used by the... eliben
concrete vs. abstract syntax trees458 (2/13/2009 4:40:32 PM) comp.compilers Hello, I'm trying to nail down the difference between concrete and abstract syntax trees. In my C parser (http://code.google.com/p/pycparser/) I construct an AST directly from the parser (which uses the yacc-l... eliben
relpath problem on windows215 (1/30/2009 4:30:53 PM) comp.lang.python I'm having a problem with 2.6's new os.path.relpath function. This is correct: relpath(r'd:\abc\jho', r'd:\abc') => 'jho' But this isn't: relpath(r'd:\jho', r'd:\\') => '..\jho' Neither is this: relpath(r'd... eliben
forward declaration of a struct typedef740 (1/9/2009 2:45:56 PM) comp.lang.c Hello, I'm working on a parser for ANSI C (http://code.google.com/p/ pycparser/), and it was reported that the parser chokes on the following code: typedef struct tagEntry tagEntry; struct tagEntry { char... eliben
Plotting libraries recommendations120 (10/14/2008 11:18:58 AM) comp.lang.python I'm developing a circuit simulation application and will need to plot the output of my program. The output will not be functions, just a collection of numerical values of the dependent and independent varia... jerry26(20)
SequenceMatcher bug ?818 (12/9/2008 7:46:01 AM) comp.lang.python Hello, This is about Python 2.5.2 - I don't know if there were fixes to this module in 2.6/3.0 I think I ran into a bug with difflib.SequenceMatcher class. Specifically, its ratio() method. The following: Se... eliben(221)
parse C expression?426 (12/15/2008 11:48:17 PM) comp.lang.python Hi, i found some examples when googling for the subject but nothing really matched. Is there a standard module available that lets me parse a syntax like "C" with numbers, operators, braces, variables and fun... Torsten
Simple & small MCU with 4 UARTS2336 (12/31/2008 7:50:14 AM) comp.arch.embedded Hello, This question comes up from time to time, and I want to see if there's anything new in the offerings. I need an MCU with 4 UART (@ 38.4 KBaud each) and several IOs. The 4 UARTs is a problem, because th... eliben(221)
forward declaration of a struct typedef740 (1/9/2009 2:45:56 PM) comp.lang.c Hello, I'm working on a parser for ANSI C (http://code.google.com/p/ pycparser/), and it was reported that the parser chokes on the following code: typedef struct tagEntry tagEntry; struct tagEntry { char... eliben(221)
LGPL license for Qt 4.5825 (1/14/2009 12:57:25 PM) comp.lang.python According to a Norwegian publication, Nokia will release Qt under LGPL as of version 4.5. If I had stocks in Riverbank Computing ltd., I would sell them now... For the rest of us, this is fantastic news. htt... sturlamolden(723)
Where to host a (Python) project?1820 (1/31/2009 11:46:32 AM) comp.lang.python Hi, I have a new project, that I just released in beta (http:// www.acooke.org/lepl - a recursive decent parser with full backtracking). At the moment I am using pypi and setuptools for distribution (it's a p... andrew8810(346)
Handling high UDP throughput1443 (3/3/2009 8:00:06 AM) comp.arch.embedded Hello, We have a system that has to process data incoming from a GbE channel in UDP packets. The throughput is ~40Mbyte / second. I'm looking for solutions on how to process this data. The data processing can... eliben(221)
ipython problem in opening a file2115 (7/9/2010 12:33:36 PM) comp.lang.python Hello pythoners!
I just dived into ipython since I'd like to make use of matplotlib.
Over the trials, I came across a problem.
One of the scripts that I have is not working with ipython, while it
has been... youngung