web2py version 1.38 is out at http://www.web2py.com
Full stack framework for agile development of secure database driven
web based applications.
Stable. Always backward compatible. No installation required. Do
everything via the browser (or the shell).
Main New features:
- ORM has MSSQL support
Hello,
This is a reminder that early registration for SciPy 2008 ends in two
days on Friday, July 11th. To register, please see:
http://conference.scipy.org/to_register
This year's conference has two days for tutorials, two days of
presentations, and ends with a two day coding sprint. If you
KPAX, the human CMS form another planet is out. version 0.1.
One video says ore than many words:
http://www.vimeo.com/1098656
Includes: wikis, blogs, news, rss feeds, relay chats, web pages,
surveys, assignments, versioning, media player, music/video streaming
server, group based memberships
I'm happy to announce that FreeHyperSim 0.1 is now available for download
from:
http://sourceforge.net/projects/freehypersim/
FreeHyperSim 0.1 is the first public release.
what is FreeHyperSim ?
Free HyperSim is a generic simulator (simulink like) platform adapted for
Kay Schluehr wrote:
On 8 Jul., 21:09, Peter Otten [EMAIL PROTECTED] wrote:
Robert Hancock wrote:
mypackage/
__init__.py
push/
__init__.py
dest.py
feed/
__init__py
castironpi wrote:
On Jul 8, 2:25 pm, Terry Reedy [EMAIL PROTECTED] wrote:
Compare to an imaginary set of ints data type:
a= setofints( [ 0, 1, 2 ] )
Then, the semantics of
b= setofints( [ 0, 1 ] )
b in a
True
are consistent and predictable. Correct me if I'm wrong.
If you defined
On 2008-07-09, Mirko Vogt [EMAIL PROTECTED] wrote:
Is that behaviour common or even documented? Found nothing.
Second sentence in the socket module documentation:
Note: Some behavior may be platform dependent, since calls are made to the
operating system socket APIs.
So yes, what you found is
On 2008-07-10, ssecorp [EMAIL PROTECTED] wrote:
def validate(placed):
student = round(random.random()*401)
if student in placed:
validate(placed)
else:
placed.append(student)
return student, placed
def pair(incompatibles, placed):
student1, placed
Jordan wrote:
C:
u starts at 1050
u += 0xe91aaa35;
u is now -384127409
Hm, a negative unsigned...
Python:
u starts at 1050
u += 0xe91aaa35
u is now 3910839887L
Seriously, masking off the leading ones is the way to go:
-384127409 0x == 3910839887
just... great !-)
Thanks :)
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, 08 Jul 2008 17:56:45 -0400, Joseph Barillari wrote:
Hi python-list,
I've just started using new-style classes and am a bit confused as to
why I can't seem to alter methods with special names (__call__, etc.) of
new-style class instances.
[deploy weapon of mass snippage]
Here is a
Just a quick announcement,
I have supplied PPC and Intel compiled eggs for the Rabbyt libary on Pypi
http://pypi.python.org/pypi/Rabbyt/
Rabbyt-0.8.1-py2.5-macosx-10.3-ppc.egg (md5)
Built on OS X 10.5.4 for PowerPC equipped Macs
Rabbyt-0.8.1-py2.5-macosx-10.3-i386.egg (md5)
Built on OS X
Ethan Furman [EMAIL PROTECTED] wrote:
Ben Keshet wrote:
it didn't help. it reads the pathway as is (see errors for both
tries). It looks like it had the write pathway the first time, but
could not find it because it searched in the path/way instead of in the
path\way. thanks for trying.
On Wed, 09 Jul 2008 09:59:32 -0700, norseman wrote:
I would use:
readthem= 0
file=open(filename,'r')
while readthem == 0:
line=file.readline()
if not line:
break
if 'Item 1' in line:
readthem= 1
# print line # uncomment if 'Item 1' is to be printed
samwyse a écrit :
On Jul 8, 4:56 pm, Joseph Barillari [EMAIL PROTECTED] wrote:
My question is: did something about the way the special method names are
implemented change for new-style classes?
Just off the top of my head, I'd guess that it's due to classes
already having a default __call__
We have put up eggs for various operating systems as well.
- Forwarded message from Christopher Lenz [EMAIL PROTECTED] -
From: Christopher Lenz [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [ANN] Genshi 0.5.1 released
Date: Wed, 9 Jul 2008 21:44:11 +0200
X-Mailer: Apple Mail (2.926)
Keith Hughitt wrote:
On Jul 9, 10:18 am, Tim Golden [EMAIL PROTECTED] wrote:
Keith Hughitt wrote:
I've been looking around on the web for a way to do this, but so far
have not come across anything for this particular application. I have
found some ways to enable tab completion for
Gros Bedo [EMAIL PROTECTED] (GB) wrote:
GB I have a question about Python and Linux shell. I have a python
GB program which is permanently resident in the end-user system. I'm
GB currently producing a RPM package, and it works nicely. The problem is
GB that when I uninstall it, my program keeps
Well, I have figured out something that works:
def findit(u):
u += 0xe91aaa35
u1 = ~(0x - u) ^ u 16
u1 += ((u1 8) 0x)
u1 ^= (u1 0x) 4
b = (u1 8) 0x1ff
a = (u1 + (u1 2) 0x) 19
r = int(a) ^ hash_adjust[int(b)]
return r
On Jul 10, 1:07 am, Gros Bedo [EMAIL PROTECTED] wrote:
Hello,
Ali I totally support you, neither I couldn't find any really working code
completion for python in a free software, and it's really a mess, at least on
Linux.
On Windows, there is PyScripter
On Jul 9, 9:26 pm, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
This is somewhat subjective... Some would say that Python's object
model is fundamentally broken and crappy (not MHO, needless to say)
that Python + solid OO principles is antinomic !-)
Really? Would you happen to be able to
Thanks all - lots to go through there! :D
I'd heard previously that Trac was a nice example, or rather its core
was, but I'd also heard that there were lots of problems with it and
that they were redeveloping it from scratch?
--
http://mail.python.org/mailman/listinfo/python-list
I have looked at the python
success stories page and haven't come up with anyone quite like us.
One of my project managers questions is: Are we the only company in the
world with this kind and size of project?
I want to say no, but am having trouble convincing myself, let alone him.
If you
John Machin wrote:
Uh-huh ... try this, then:
http://hkn.eecs.berkeley.edu/~dyoo/python/ahocorasick/
You could use this to find the Str cases and the prefixes of the
re cases (which seem to be no more complicated than 'foo.*bar.*zot')
and use something slower like Python's re to search the
Phillip B Oldham a écrit :
Thanks all - lots to go through there! :D
I'd heard previously that Trac was a nice example, or rather its core
was, but I'd also heard that there were lots of problems with it and
that they were redeveloping it from scratch?
Trac's plugin system is interesting,
mzdude wrote:
I need to interface with a windows DLL that has the following
signature
extern C void Foo( BSTR in, BSTR *out )
Code so far
from ctypes import *
import comtypes
LPBSTR = POINTER(comtypes.BSTR)
hdl = windll.MyDll.Foo
hdl.rettype = None
hdl.argtypes = [comtypes.BSTR, LPBSTR]
ty I came to the same conckusion in bed :)
now it works.
however since there are 400 students and some are incompatible I
shouldnt be able to generate a 200room list right?
but it works sometimes the other times i get an error. might be
because of recursion depth i never let the error finish.
On Jul 10, 12:07 pm, ssecorp [EMAIL PROTECTED] wrote:
pair1 = (student1,student2)
pair2 = (student2,student1)
if (pair1 or pair2) in incompatibles:
Apart from the problems that others have mentioned, the above
statement is NOT doing what you think it is. (pair1 or pair2) will
Phillip B Oldham a écrit :
On Jul 9, 9:26 pm, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
This is somewhat subjective... Some would say that Python's object
model is fundamentally broken and crappy (not MHO, needless to say)
that Python + solid OO principles is antinomic !-)
Really? Would you
On Jul 9, 4:38 pm, Phillip B Oldham [EMAIL PROTECTED] wrote:
I'm wondering whether anyone can offer suggestions on FOSS projects/
apps which exhibit solid OO principles, clean code, good inline
documentation, and sound design principles?
I'm devoting some time to reviewing other people's code
hi all
i am new to python programming a beginner. I Came to know from the
groups that How to think like a computer scientist is preferable for
begineers. i just looking through that i came to one section where a
sample program for generation of graphics is present.i tried to copy
the same script
Hi there,
I have the following using Beautiful Soup:
soup = BeautifulSoup(data)
tags = soup.findAll(href=re.compile(/MER_FRS_L2_Canada/MER_FRS_\S
+gz))
for tag in tags:
print tag['href']
print tag.parent.nextSibling.string
print tag.parent.nextSibling.nextSibling.string
print
Peter Otten wrote:
Thomas wrote:
Robert Hancock wrote:
mypackage/
__init__.py
push/
__init__.py
dest.py
feed/
__init__py
subject.py
In subject.py I have
from ..push import dest
Anyone know of a Python source code utility PSU, to automatically add
keyword arguments to method calls that don't have them? :
BEFORE
def get_total(books, binders, hinges):
return (binders.total + hinges.total - books.cost)
def print_total():
print get_total(novels, covers, brackets)
Keith Hughitt [EMAIL PROTECTED] wrote:
Keith Hughitt wrote:
[ ... ] I have
found some ways to enable tab completion for program-related commands,
but not for system filepaths.
Currently Unix/Console.
What's wrong with the readline module?
http://docs.python.org/lib/module-readline.html
Vanam wrote...
I want to know whether is there anything that has
to be installed in addition to python 2.5
from gasp import *
You have to install the 'gasp' package too.
https://launchpad.net/gasp-code/stable-0.1.x/0.1.1
--
The ability of the OSS process to collect and harness
the
On Jul 10, 6:15 am, Andrew MacIntyre [EMAIL PROTECTED]
wrote:
snip
This likely indicates that the DLL is using the C calling convention
and not the stdcall calling convention. Use CDLL rather than WinDLL
to load the DLL.
using cdll got me over the calling hurdle. However, I'm not seeing the
Tim Mitchell a écrit :
Hi All,
I work on a desktop application that has been developed using python and
GTK (see www.leapfrog3d.com). We have around 150k lines of python code
(and 200k+ lines of C). We also have a new project manager with a C#
background who has deep concerns about the
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] wrote:
I'm using some legacy code that has a user-defined exception in it.
The top level program includes this line
from TestRunError import *
It also imports several other modules. These other modules do not
explicitly import TestRunError.
(Our apologies for cross-posting.
We appreciate if you kindly distribute this information by your co-
workers and colleagues.)
***
Symposium “Image Processing and Data Visualization”
2nd South-East European Conference on
On Jul 10, 6:32 am, Tim Mitchell [EMAIL PROTECTED] wrote:
Hi All,
I work on a desktop application that has been developed using python and
GTK (seewww.leapfrog3d.com). We have around 150k lines of python code
(and 200k+ lines of C).
We have bigger numbers than yours here (although not for a
I don't fully understand why I have to do this.
On Jul 10, 4:17 am, Robert Kern [EMAIL PROTECTED] wrote:
ssecorp wrote:
Im looking into PvsNP:
http://www.claymath.org/millennium/P_vs_NP/
so I thought I'd write the program just to get a feel for it.
But I run into a problem. Why does it
I am never redefining the or reassigning the list when using validate
but since it spits the modified list back out that somehow means that
the modified list is part of the environment and not the old one.
i thought what happend inside a function stays inside a function
meaning what comes out is
Tim Roberts [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Bill Davy [EMAIL PROTECTED] wrote:
I am trying to edit Contacts in Outlook. This is so I can transfer
numbers
from my address book which is an Excel spreadsheet to my mobile phone.
Are you actually running Outlook? Your
Here's a simple way to do it with a minimum amount of loopiness (don't
forget to use 'try-except' or 'with' in real life):
f = open(item1.txt)
for preline in f:
if Item 1 in preline:
print preline,
for goodline in f:
# could put an end condition with a 'break'
Bill Davy wrote:
I'm not sure OL2003 can read news. I think perhaps some later OL can (added
tot he View menu, perhaps?). So I use OL Express to read news. The OL with
which I wish to communicate is:
Application name Outlook
Version 11.0
Build 8217
Product ID 70141-700-0350904-56905
On 2008-07-10, A.T.Hofkamp [EMAIL PROTECTED] wrote:
On 2008-07-09, Mirko Vogt [EMAIL PROTECTED] wrote:
Is that behaviour common or even documented? Found nothing.
Second sentence in the socket module documentation:
Note: Some behavior may be platform dependent, since calls are
made to the
I am playing with some trees. In one of the procedures I wrote
for this I am trying to change self to a different tree. A tree
here has four members (val/type/left/right). I found that self = SS
does not work; I have to write self.val = SS.val and the same for
the other members (as shown
Python doesn't use value semantics for variables but reference semantics:
a = [1]
b = a
In many languages, you'd now have 2 lists. In Python you still have one list,
and both a and b refer to it.
Now if you modify the data (the list), both variables will change
a.append(2) # in-place
Hi all,
I'm in an interactive session in pdb, debugging my code using
pdb.runcall. Somewhere, an exception is raised and lands uncaught on
stdout. Is there any way of picking up this exception and at least
read the full message, or even accessing its stack trace to determine
where
Tim Mitchell wrote:
One of my project managers questions is: Are we the only company in the
world with this kind and size of project?
I can't provide a bigger success story personally (my largest project is
currently about 15k lines of code, eminently manageable by one person.) But
Google
My apologies if this is not the correct forum for thses quiestions,
It's not the wrong place to ask, but you're more likely to get answers
from the omniORB mailing lists:
http://www.omniorb-support.com/mailman/listinfo
Sincerely,
Wolfgang
--
I am trying to create a utility module that only loads functions when
they are first called rather than loading everything. I have a bunch
of files in my utility directory with individual methods and for each I
have lines like this in __init__.py:
def calc_tax(*arg, **name):
from calc_tax
Hello group,
I have some scripts sharing some common functions.
So what I'd like to have is a modern include.
Of course python does not have (with good reasons) no include statement.
But I'm too lazy to create a module which has to be installed into the
interpreter for some functions I need to
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
This is easy. Simply create a .py file containing all the methods you
want to share. Put this file in the same directory as the rest of your
project files. In each of your project files that requires one of the
methods, simply import name of method
That's not how it works. If you kill one running python script it will not
effect other python scripts. Each script has its own interpreter process
running.
GB So, is there a way from the Linux shell or a bash script to terminate
GB just one specific Python script ?
So just kill it.
Yes I've
Just to confirm, the profiling numbers (from cProfile) do include time spent
inside my own C functions that I import as modules?
--
http://mail.python.org/mailman/listinfo/python-list
Thanks a lot,
you made my day.
As often in python, it's really simple and useful !
Greetings
Hans
--
http://mail.python.org/mailman/listinfo/python-list
Salim Fadhley wrote:
Does anybody know of a python module which can do process management
on Windows? The sort of thing that we might usually do with
taskmgr.exe or process explorer?
For example:
* Kill a process by ID
* Find out which process ID is locking an object in the filesystem
* Find
On Wed, 2008-07-09 at 12:29 -0700, samwyse wrote:
On Jul 8, 11:01 am, Kris Kennaway [EMAIL PROTECTED] wrote:
samwyse wrote:
You might want to look at Plex.
http://www.cosc.canterbury.ac.nz/greg.ewing/python/Plex/
Another advantage of Plex is that it compiles all of the regular
Tim Mitchell wrote:
Hi All,
I work on a desktop application that has been developed using python and
GTK (see www.leapfrog3d.com). We have around 150k lines of python code
(and 200k+ lines of C). We also have a new project manager with a C#
background who has deep concerns about the
I don't know how feasible this is, but is it possible to have users
log in to access a local database file in such a way that allows the
program to know what user name and password they logged in with? This
would involve separate user names and passwords for each user.
Thanks for your time and
On Jul 10, 2:45 pm, jstrick [EMAIL PROTECTED] wrote:
Here's a simple way to do it with a minimum amount of loopiness (don't
forget to use 'try-except' or 'with' in real life):
f = open(item1.txt)
for preline in f:
if Item 1 in preline:
print preline,
for goodline in f:
Sparky wrote:
I don't know how feasible this is, but is it possible to have users
log in to access a local database file in such a way that allows the
program to know what user name and password they logged in with? This
would involve separate user names and passwords for each user.
Well, this
On Jul 10, 4:54 pm, Iain King [EMAIL PROTECTED] wrote:
On Jul 10, 2:45 pm, jstrick [EMAIL PROTECTED] wrote:
Here's a simple way to do it with a minimum amount of loopiness (don't
forget to use 'try-except' or 'with' in real life):
f = open(item1.txt)
for preline in f:
if Item 1
D'Arcy J.M. Cain wrote:
I am trying to create a utility module that only loads functions when
they are first called rather than loading everything. I have a bunch
of files in my utility directory with individual methods and for each I
have lines like this in __init__.py:
def calc_tax(*arg,
On Jul 10, 9:58 am, Tim Golden [EMAIL PROTECTED] wrote:
Sparky wrote:
I don't know how feasible this is, but is it possible to have users
log in to access a local database file in such a way that allows the
program to know what user name and password they logged in with? This
would
On Thu, 10 Jul 2008 11:03:10 -0500
Larry Bates [EMAIL PROTECTED] wrote:
D'Arcy J.M. Cain wrote:
def calc_tax(*arg, **name):
from calc_tax import calc_tax as _func_
calc_tax = _func_
return _func_(*arg, **name)
You are stuck in a futile battle called premature optimization.
Sparky wrote:
On Jul 10, 9:58 am, Tim Golden [EMAIL PROTECTED] wrote:
Sparky wrote:
I don't know how feasible this is, but is it possible to have users
log in to access a local database file in such a way that allows the
program to know what user name and password they logged in with? This
In article
[EMAIL PROTECTED],
ssecorp [EMAIL PROTECTED] wrote:
I am never redefining the or reassigning the list when using validate
but since it spits the modified list back out that somehow means that
the modified list is part of the environment and not the old one.
i thought what happend
Tim Roberts wrote:
Ethan Furman [EMAIL PROTECTED] wrote:
Ben Keshet wrote:
it didn't help. it reads the pathway as is (see errors for both
tries). It looks like it had the write pathway the first time, but
could not find it because it searched in the path/way instead of in the
path\way.
On Jul 10, 10:13 am, Tim Golden [EMAIL PROTECTED] wrote:
Sparky wrote:
On Jul 10, 9:58 am, Tim Golden [EMAIL PROTECTED] wrote:
Sparky wrote:
I don't know how feasible this is, but is it possible to have users
log in to access a local database file in such a way that allows the
program
Robert wrote:
given d:
d = [soep, reeds, ook]
I want it to print like
soep, reeds, ook
I've come up with :
print (%s+, %s*(len(d)-1)) % tuple(d)
but this fails for d = []
any (pythonic) options for this?
Robert
--
http://mail.python.org/mailman/listinfo/python-list
Marc 'BlackJack' Rintsch [EMAIL PROTECTED]:
On Mon, 07 Jul 2008 16:44:22 +0200, Sebastian \lunar\ Wiesner wrote:
Mark Wooding [EMAIL PROTECTED]:
Sebastian lunar Wiesner [EMAIL PROTECTED] wrote:
# perl -e '(a x 10) =~ /^(ab?)*$/;'
zsh: segmentation fault perl -e '(a x 10) =~
Hans Müller a écrit :
Hello group,
I have some scripts sharing some common functions.
So what I'd like to have is a modern include.
Of course python does not have (with good reasons) no include statement.
But I'm too lazy to create a module which has to be installed into the
interpreter for
Stef Mientki wrote:
one small remark,
If I want to browse 200 recipes, at 10 per page
... please make something like 100 available per page,
are internet is fast enough nowadays.
Touche. Done:
http://code.activestate.com/recipes/?paginate_by=100
Cheers,
Trent
--
Trent Mick
trentm at
xkenneth [EMAIL PROTECTED]:
What does everyone consider essential for emacs python dev?
yasnippet is worth being looked at
--
Freedom is always the freedom of dissenters.
(Rosa Luxemburg)
--
http://mail.python.org/mailman/listinfo/python-list
Hi all,
What is the correct process of installing any external python module?
Once we downloaded any python module,
Q1) Where this module should be placed in python installation file
structure?
Q2) How to execute setup.py file?
Thanks,
Bhagwat
--
Support Desk wrote:
I am trying to assign a variable using an if / else statement like so:
If condition1:
Variable = something
If condition2:
Variable = something else
Do stuff with variable.
But the variable assignment doesn't survive outside the if
Deacon [EMAIL PROTECTED]:
Hi. I have an open-source application development environment that I
would like to enable an automated package download system for (like
downloadable plugins), using sourceforge as its repository. My
software will have a menu-based popup window, that will list the
Hi all,
Simple question really on a best practice. I want to avoid adding
duplicates to a list.
my_list = ['a', 'b', 'c', 'd', 'e']
dup_map = {}
for item in my_list:
dup_map[item] = True
# ... sometime later
for complex_dict in large_list:
if complex_dict[char] not in dup_map:
James Fassett schrieb:
Hi all,
Simple question really on a best practice. I want to avoid adding
duplicates to a list.
my_list = ['a', 'b', 'c', 'd', 'e']
dup_map = {}
for item in my_list:
dup_map[item] = True
# ... sometime later
for complex_dict in large_list:
if complex_dict[char]
J. Cliff Dyer wrote:
On Wed, 2008-07-09 at 12:29 -0700, samwyse wrote:
On Jul 8, 11:01 am, Kris Kennaway [EMAIL PROTECTED] wrote:
samwyse wrote:
You might want to look at Plex.
http://www.cosc.canterbury.ac.nz/greg.ewing/python/Plex/
Another advantage of Plex is that it compiles all of the
Cameron Simpson wrote:
On 09Jul2008 15:54, Ethan Furman [EMAIL PROTECTED] wrote:
The solution my team has used is to monitor the file size. If the file
has stopped growing for x amount of time (we use 45 seconds) the file is
done copying. Not elegant, but it works.
If you know that
On Jul 10, 10:06 am, James Fassett [EMAIL PROTECTED] wrote:
Hi all,
Simple question really on a best practice. I want to avoid adding
duplicates to a list.
my_list = ['a', 'b', 'c', 'd', 'e']
dup_map = {}
for item in my_list:
dup_map[item] = True
# ... sometime later
for
On Jul 10, 6:13 pm, Diez B. Roggisch [EMAIL PROTECTED] wrote:
my_list = ['a', 'b', 'c', 'd', 'e']
dup_map = {}
for item in my_list:
dup_map[item] = True
# ... sometime later
for complex_dict in large_list:
if complex_dict[char] not in dup_map:
On Jul 10, 4:56 am, Jordan [EMAIL PROTECTED] wrote:
I am trying to rewrite some C source code for a poker hand evaluator
in Python. Putting aside all of the comments such as just using the C
code, or using SWIG, etc. I have been having problems with my Python
code not responding the same way
Hello,
I'm building a parser in Python, and while pondering on the design of
my ASTs had the idea to see what Python uses. I quickly got to the
compiler.ast module, and understood it's automatically generated. So I
went to the source, ast.txt and tools/compiler/astgen.py, where I was
this
- Forwarded message from Christopher Lenz [EMAIL PROTECTED] -
From: Christopher Lenz [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: [ANN] Babel 0.9.3 released
Date: Thu, 10 Jul 2008 11:26:23 +0200
X-Mailer: Apple Mail (2.926)
Babel 0.9.3 - Jul 9, 2007
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
[EMAIL PROTECTED] wrote:
Some web feeds use decimal character entities that seem to confuse
Python (or me). For example, the string doesn't may be coded as
doesn#8217;t which should produce a right leaning apostrophe.
Python hates decimal entities
On Jul 10, 1:35 pm, MRAB [EMAIL PROTECTED] wrote:
On Jul 10, 4:56 am, Jordan [EMAIL PROTECTED] wrote:
I am trying to rewrite some C source code for a poker hand evaluator
in Python. Putting aside all of the comments such as just using the C
code, or using SWIG, etc. I have been having
David C. Ullrich wrote:
In article
[EMAIL PROTECTED],
ssecorp [EMAIL PROTECTED] wrote:
I am never redefining the or reassigning the list when using validate
but since it spits the modified list back out that somehow means that
the modified list is part of the environment and not the old
Bart Kastermans wrote:
I am playing with some trees. In one of the procedures I wrote
for this I am trying to change self to a different tree. A tree
here has four members (val/type/left/right). I found that self = SS
does not work; I have to write self.val = SS.val and the same for
the
Tobiah wrote:
I have a list of objects that generate code. Some
of them depend on others being listed first, to
satisfy dependencies of others.
I wrote a cmp function something like this:
def dep_cmp(ob1, ob2):
if ob1.name in ob2.deps:
return -1
Bruno Desthuilliers wrote:
Hans Müller a écrit :
Hello group,
I have some scripts sharing some common functions.
So what I'd like to have is a modern include.
Of course python does not have (with good reasons) no include statement.
But I'm too lazy to create a module which has to be
On Jul 9, 4:13 am, Giampaolo Rodola' [EMAIL PROTECTED] wrote:
Hi,
I'm trying to implement an asynchronous scheduler for asyncore to call
functions at a later time without blocking the main loop.
The logic behind it consists in:
- adding the scheduled functions into a heapified list
-
On Jul 6, 4:05 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
In this week i wrote a emacs program and tutorial that does archiving
a website for offline reading.
(Seehttp://xahlee.org/emacs/make_download_copy.html)
Why not use wget or curl?
--
On Jul 10, 9:45 am, D'Arcy J.M. Cain [EMAIL PROTECTED] wrote:
I am trying to create a utility module that only loads functions when
they are first called rather than loading everything. I have a bunch
of files in my utility directory with individual methods and for each I
have lines like this
Hi Folks,
I'm having some issues with an small socket based server I'm writing,
and I was hoping I could get some help.
My code (attached below) us supposed to read an HTTP Post message
coming from a power meter, parse it, and return a proper HTTP 200 Ok
message. The problem is that the socket
Simon Bierbaum [EMAIL PROTECTED] writes:
Hi all,
I'm in an interactive session in pdb, debugging my code using
pdb.runcall. Somewhere, an exception is raised and lands uncaught on
stdout. Is there any way of picking up this exception and at least
read the full message, or even accessing its
1 - 100 of 207 matches
Mail list logo