How to disable-package-locks?353 (10/25/2012 1:09:18 AM) comp.lang.lisp Hello, I am reading P.Norvig's book PAIP(written in 1991) and try to run it's code in sbcl.
There is a defun name "symbol" in auxfns.lisp. After (load "auxfns.lisp"), sbcl report " Lock on package COMMON-LI... David
Recursive Generator Error?435 (10/21/2012 11:29:12 PM) comp.lang.python I have a tree-like data structure, the basic elements are hash tables,
and they are grouped into lists, like [[{'a':1},[{'b':2}]]].
And I want to flat the lists and visit hash table one by one, like {'a':1}, ... David
Add if...else... switch to doctest?455 (10/19/2012 12:08:37 AM) comp.lang.python Hello, how to add if...else... switch to doctest?
E.g. function outputs different value when global_var change.
"""
if (global_var == True):
>>> function()
[1,2]
else:
>>> function()
[1,2,3]
"""
T... David
Problem of debugging into glibc functions?2661 (1/7/2010 2:05:39 PM) comp.unix.programmer Problem of debugging into glibc functions?
Hi all,
I want to debug into glibc functions like nftw() in Ubuntu Linux (nftw
require a function pointer argument and I want to step into this
function).
B... Davy
truncate() file function and EOF problem2620 (12/24/2009 3:08:50 AM) comp.lang.c truncate() file function and EOF problem
Hi all,
I am trying to do some C programming on Linux (exercise in Linux
Programming by example)and encounter a problem of write EOF to file
(the exercise is wri... Davy
PLT scheme test-engine problem.246 (9/13/2009 7:18:31 AM) comp.lang.scheme Hi all, I am new to scheme, and write code on SICP these days with PLT scheme. I find it is an easy tool. But when I use their test-engine (see simple code below), I found the check-expect don't work as I exp... Shenli
time.sleep() and Tkinter after()?326 (12/4/2008 3:20:33 AM) comp.lang.python Hi all, I have used Tkinter after() to do loop update GUI in my previous post. See http://groups.google.com/group/comp.lang.python/browse_thread/thread/6b616abc236c345b/7df7684d33c969c5#7df7684d33c969c5 And I... Davy
Thread Tkinter problem524 (12/3/2008 12:27:26 PM) comp.lang.python Hi all, I am using thread and tkinter to write some simple programs and solidify my understanding of Python thread/GUI programing. The scheme is thread + queue + GUI. One child thread (gen_board_thread) genera... Davy
function return pointer of int?5045 (11/5/2008 6:37:10 AM) comp.lang.c Hi all, I am writing a function, which return the pointer of the int. But it seems to be wrong. Any suggestion? int * get_p_t(int t) { return &t; } int main() { printf("v1\n"); int t = 5; int * p_t[2]; ... Davy
Pass same parameter in Recursive function346 (9/3/2008 3:20:17 AM) comp.lang.python Hi all, Sometimes I need to pass same parameter in recursive function. From my point of view, the style is redundant, and I don't what to use some global style like self.A, self.B, Is there any other choice? ... Davy
How to get a set of keys with largest values?753 (11/12/2007 9:07:37 AM) comp.lang.python Hi all, I have a dictionary with n elements, and I want to get the m(m<=n) keys with the largest values. For example, I have dic that includes n=4 elements, I want m=2 keys have the largest values) dic = {0:4... zhushenli(384)
Define key in nlargest() of heapq?343 (11/13/2007 2:56:27 AM) comp.lang.python Hi all, I have a dictionary with n elements, and I want to get the m(m", line 1, in NameError: name 'key' is not defined Best regards, Davy ... zhushenli(384)
function call problem in class?233 (11/14/2007 7:51:57 AM) comp.lang.python Hi all, I have write a simple class, I want the function two() to call private function __one(), but there is an error : NameError: global name '_simple__one' is not defined, how to work around it class simpl... zhushenli(384)
Tkinter Problem?431 (11/20/2007 2:13:03 AM) comp.lang.python Hi all, I have written a simple Tkinter program, that is draw a rectangle in a canvas, when I press Up key, the rectangle move up. But the program seems work not properly? My environment is Python2.5+PythonWin... zhushenli(384)
(Tkinter) Can I bind a key to Canvas?129 (11/21/2007 3:14:41 AM) comp.lang.python Hi all, I have a canvas and a rectangle draw on it. Can I bind a key(e.g. UP) to the canvas and make the rectangle move up? Or shall I bind the key to rectangle(I don't think so, because it is not a widget)? ... zhushenli(384)
Pass same parameter in Recursive function346 (9/3/2008 3:20:17 AM) comp.lang.python Hi all, Sometimes I need to pass same parameter in recursive function. From my point of view, the style is redundant, and I don't what to use some global style like self.A, self.B, Is there any other choice? ... zhushenli(384)
function return pointer of int?5045 (11/5/2008 6:37:10 AM) comp.lang.c Hi all, I am writing a function, which return the pointer of the int. But it seems to be wrong. Any suggestion? int * get_p_t(int t) { return &t; } int main() { printf("v1\n"); int t = 5; int * p_t[2]; ... zhushenli(384)
Thread Tkinter problem524 (12/3/2008 12:27:26 PM) comp.lang.python Hi all, I am using thread and tkinter to write some simple programs and solidify my understanding of Python thread/GUI programing. The scheme is thread + queue + GUI. One child thread (gen_board_thread) genera... zhushenli(384)
time.sleep() and Tkinter after()?326 (12/4/2008 3:20:33 AM) comp.lang.python Hi all, I have used Tkinter after() to do loop update GUI in my previous post. See http://groups.google.com/group/comp.lang.python/browse_thread/thread/6b616abc236c345b/7df7684d33c969c5#7df7684d33c969c5 And I... zhushenli(384)
Recursive Generator Error?435 (10/21/2012 11:29:12 PM) comp.lang.python I have a tree-like data structure, the basic elements are hash tables,
and they are grouped into lists, like [[{'a':1},[{'b':2}]]].
And I want to flat the lists and visit hash table one by one, like {'a':1}, ... zhushenli(384)