[EMAIL PROTECTED] ha escrito:
> Juan R. wrote:
> > [EMAIL PROTECTED] ha escrito:
> > > - Lisp is hard to learn (because of all those parenthesis)
> >
> > I cannot understand why. It is like if you claim that packaging things
> > in boxes is difficult to l
[EMAIL PROTECTED] ha escrito:
> - Lisp is hard to learn (because of all those parenthesis)
I cannot understand why. It is like if you claim that packaging things
in boxes is difficult to learn.
HTML and XML have more brackets than LISP (usually double) for
structuring data and everyone has learn
Hello,
I'm writing a C extension for cygwin python to access a vendor supplied DLL
that allows one to set the general purpose IO (gpio) pins of the Silicon
Labs' cp2103 USB/serial chip. We communicate to the device using the
vendor's virtual com port driver, but the gpio pins allow us access t
Oleg Batrashev a écrit :
> This means that if you have 10 sentences with 5 words in each there is
> 5^10 space and time complexity. Definitelly, there are better
> algorithms from dynamic programming, but you should review your needs:
> how many sentences, words you have.
it can be few to many,
Hello,
thanks for all your replies, i'm now looking to dynamic programming...
sorry for forgetting to say that i wanted the words to be ordered, thus
:
s1 = "hello there dudes"
s2 = "dudes hello there"
s3 = "there dudes hello"
will not return anything while sharing all three words.
Bearophile
Hello,
i would like to write a piece of code to help me to align some sequence
of words and suggest me the ordered common subwords of them
s0 = "this is an example of a thing i would like to have".split()
s1 = "another example of something else i would like to have".split()
s2 = 'and this is anot
olive skrev:
> It would help if you could give an exemple of .par and .asm file.
>
> Is it human readable, XML ... ?
>
> Is there any other import/export file format provided ?
>
The .par files and friends are in binary format so the method I prefer
is
using the provided COM interfaces and acces
I consider using Python to process Solid Edge .par .asm etc objects.
Solid Edge provides a pretty rich documentation and tutorials.
Still, when trying it out, using PyWin32, I get somewhat frustrated.
So, I hope for someone out there to be willing to share experiences.
The objective is to automat
Thanks for the replies so far. I do exactly what that website says, and
on the old computer (Windows 98), I click run module and nothing
happens. No text gets displayed on my IDLE. It contained that firewall
message at the top.
Back on the new computer, I deleted all of my .py files and I could go
Hi all, I am very new to programming, and I chose to study the Python
language before C++. I am currently using the Wikibooks
"Non-Programmer's Tutorial for Python", and am up to the section "Who
goes there"?
http://en.wikibooks.org/wiki/Non-Programmer%27s_Tutorial_for_Python/Who_Goes_There%3F
Bu
Fulvio <[EMAIL PROTECTED]> writes:
> ***
> Your mail has been scanned by InterScan MSS.
> ***
Delighted to know that.
>
> On Friday 27 October 2006 17:31, R. Bernstein wrote:
> > pydb (http://bashdb.sf.net/pydb) has a both the ab
pydb (http://bashdb.sf.net/pydb) has a both the ability to trace lines
as they are executed as well as an --output option to have this sent
to a file rather than stdout. If your program has threads it would be
good to use the --threading option. (The best threading support is if
your program uses t
Fulvio <[EMAIL PROTECTED]> writes:
> The previous post I might have missed some explaination on my proceeding. I'd
> say that I'm testing a small program under pdb control
> (python /usr/lib/python2.4/pdb.py ./myprog.py). So pdb will load myprog and
> stop the first line code.
> Once I'm at the
Fulvio <[EMAIL PROTECTED]> writes:
> ***
> Your mail has been scanned by InterScan MSS.
> ***
>
>
> Hello,
>
> I'm trying out a small utility and my method uses PDB for debugging. I tried
> to read some information regarding the commands of PDB but are r
This seems like very useful information. In the documentation I've
been maintaining for the extended python debugger
(http://bashdb.sf.net/pydb) I've added this as a little footnote:
http://bashdb.sourceforge.net/pydb/pydb/lib/pydb-invocation.html#foot1113
However since pydb allows for options on
Google has a cool new service.
http://www.google.com/codesearch
You can use regular expressions!
(I found at least 13 distinct utilities that used the idiom.)
Nils
--
http://mail.python.org/mailman/listinfo/python-list
"Iain King" <[EMAIL PROTECTED]> wrote in news:1155827943.041208.51220
@i3g2000cwc.googlegroups.com:
> I'm confused - I thought Xah Lee loved Perl? Now he's bashing it?
> Huh?
That's his other personality.
--
---
Assuming your setting the target directory to the overwatch folder, and you are
starting the interactive session in your home directory, this is what is
happening. The folder containing your package must be in the python path, not
the folder itself. Try "PYTHONPATH=/home/directory python test.py
Tobiah:
>From the standpoint of implementation, I don't see much of a difference
unless you are specifically interested in the more limited functionality
of a module (vs. a class instance). If you aren't, then you can simply
instantiate your borg class and then insert it into sys.modules early in
[EMAIL PROTECTED] writes:
> R. Bernstein wrote:
> > Perhaps what you are looking for is:
> > python /usr/lib/python2.4/pdb.py Myprogram.py
>
> I tried this and it did not work. pdb did not load the file so it
> could be debugged.
lol. Yes, if you are not in the same d
[EMAIL PROTECTED] writes:
> I am trying to figure out how to use the pdb module to debug Python
> programs, and I'm having difficulties. I am pretty familiar with GDB
> which seems to be similar,
If you are pretty familiar with gdb, try
http://bashdb.sourceforge.net/pydb. It is a great deal mor
[EMAIL PROTECTED] writes:
> hi
> is there something like an automatic debugger module available in
> python? Say if i enable this auto debugger, it is able to run thru the
> whole python program, print variable values at each point, or print
> calls to functions..etc...just like the pdb module, bu
" #
"examples.getStateList([1,2])"
try:
server=xmlrpclib.Server(url, transport=ProxyTransport())
print "Url: %s" % url
try: print "Proxy: %s" % os.environ['http_proxy']
exce
That should have said "Since Python _isn't_ embedded in browsers"!
Rick
R. P. Dillon wrote:
> I've been doing some work on a didiwiki-like program written in Python.
> Since Python is embedded in browsers, the didwiki approach make sense:
> write the server in you
I've been doing some work on a didiwiki-like program written in Python.
Since Python is embedded in browsers, the didwiki approach make sense:
write the server in your language of choice (didwiki uses C), and lay
the necessary (simple) wiki code on top of the server. Roll the entire
thing in
TWiki, written in perl, makes extensive use of versioning/diff
functionality you mention through the use of RCS, which, IIRC, is the
basis for CVS. This method eliminates the need for the repository as
such, and merely requires the presence of the RCS files (and RCS).
Unless you _want_ to host
Here's the revision I just made for pydb's documentation (in
CVS). I welcome suggestions for improvement.
set_trace([cmdfile=None])
Enter the debugger before the statement which follows (in
execution) the set_trace() statement. This hard-codes a call to
the debugger at a given point
"Diez B. Roggisch" <[EMAIL PROTECTED]> writes:
> > the code works with no problem, I am playing around with the pdb, i.e
> >
> > from pdb import *
> > set_trace() for i in range(1,50):
> > print i
> > print "tired of this"
> > print "I am out"
> >
> > [EMA
Gary Wessle <[EMAIL PROTECTED]> writes:
> Hi
>
> using the debugger, I happen to be on a line inside a loop, after
> looping few times with "n" and wanting to get out of the loop to the
> next line, I set a break point on a line after the loop structure and
> hit c, that does not continue out of
for fn in filenames:
for line in open(fn):
if line[0] in digits:
ProcessLine(line)
break
--
Steve R. Hastings"Vita est"
[EMAIL PROTECTED]http://www.blarg.net/~steveha
--
http://mail.python.org/mailman/listinfo/python-list
I won't say more, since Alex Martelli already pointed out that Google is
doing big things with Python and it seems to scale well for them.
--
Steve R. Hastings"Vita est"
[EMAIL PROTECTED]http://www.blarg.net/~steveha
--
http://mail.python.org/mailman/listinfo/python-list
43:58)
[GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
As you can see, I'm running Python 2.4.3. Make sure you aren't running an
old version of Python, and that cod
On Wed, 03 May 2006 17:51:03 +, Edward Elliott wrote:
> Steve R. Hastings wrote:
>> You could also use a function that counts all different values in a list,
>> reducing the list to a dictionary whose keys are the unique values from
>> the list.
>
> Wouldn'
ip()
xc = m.group(3).replace(s_space, s_empty)
s = pat_sc.sub(s_empty, s, 1)
m = pat_lt.search(s)
if m:
lt = m.group(1)
lt = lt.strip()
s = pat_lt_remove.sub(s_empty, s, 1)
tup = (before, title, xc, lt)
lst.append(tup)
for before, title, xc, lt in lst:
he server, part of
what the conversation includes will be to whom you wish to send the email.
Please Google for information on SMTP. You can also start here:
http://en.wikipedia.org/wiki/SMTP
--
Steve R. Hastings"Vita est"
[EMAIL PROTECTED]http://www.blarg.net/~steveha
--
htt
hain()".
newlist = Chain(mylist, sort, uniq, list)
I did kind of want a way to make a "reusable pipe". If you come up with a
useful chain, it might be nice if you could use it again with convenient
syntax. Maybe like so:
sort_u = [sort, uniq, list]
newlist = Chain(mylist, sort_u)
Thank you very much for making a helpful suggestion!
--
Steve R. Hastings"Vita est"
[EMAIL PROTECTED]http://www.blarg.net/~steveha
--
http://mail.python.org/mailman/listinfo/python-list
g
left over is assumed to be the LT.
Now, we have all the data; it's easy enough to rearrange it.
We can convert the XC string into a list of page ranges just by calling
.split(";"), which will split on semicolons. Loop over this list,
printing each time, and there you go.
I'
mp.lang.python; I
called my version of it tally().
d = tally(bool(x) for x in seq)
print d[True] # prints how many true values in seq
print d[False] # prints how many false values in seq
tally() is in my iterwrap.py module, which you can get here:
http://home.blarg.net/~steveha/iterwrap.tar.gz
love to find them.
If you are using email, then as I said above, your email client should
have an SMTP server filled in already, and you are already using it every
time you send email. So I suggest you use that.
--
Steve R. Hastings"Vita est"
[EMAIL PROTECTED]http://www.blarg.net/~steveha
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, 02 May 2006 12:58:14 -0700, Roger Miller wrote:
> Steve R. Hastings wrote:
>
>> a = 0
>> b = 0
>> a is b # always true
>
> Is this guaranteed by the Python specification, or is it an artifact of
> the current implementation?
I believe it's an
On Tue, 02 May 2006 21:20:48 +0200, Boris Borcic wrote:
> Steve R. Hastings wrote:
>> So, don't test to see if something is equal to True or False:
>>
>> if 0 == False:
>> pass # never executed; False and 0 do not directly compare
>
> of course they
mostly with generator expressions:
any(v for v in seq if v) # true if any v evaluates true
all(v for v in seq if v) # true if *all* v evalute true
Or a better example:
any(is_green(x) for x in lst) # true if any value in list is green
--
Steve R. Hastings"Vita est"
[EMAIL PROTECTED]http://www.blarg.net/~steveha
--
http://mail.python.org/mailman/listinfo/python-list
d it:
if bool(0) == False:
pass # always executed
Do this:
if not 0:
pass # always executed
if 1:
pass # always executed
To convert a random value into a boolean value, you could use either
"bool()" or you could use "not not":
a = not not 0
b = bool(0)
&
e a special method __set__
called when an expression is being assigned somewhere; that would make
this trivial.
What is the friendliest and most Pythonic way to write a Pipe class for
iterwrap?
P.S. I have experimented with overloading the | operator to allow this
syntax:
newlist = Pipe(mylist)
I will be out of the office starting 04/21/2006 and will not return until
04/24/2006.
I will respond to your message when I return.
--
http://mail.python.org/mailman/listinfo/python-list
"BartlebyScrivener" <[EMAIL PROTECTED]> writes:
> There are several of these writing quotes, all good in their own way,
And from Hamlet: brevity is the soul of wit.
--
http://mail.python.org/mailman/listinfo/python-list
"Sullivan WxPyQtKinter" <[EMAIL PROTECTED]> writes:
> When the form in one HTML is very complex with a lot of fields(input,
> button,radio,checkbox etc.), setting the environment is quite
> burdernsome, so I usually change the stdout and stderr of the submit
> processing script to a file object to
Nope, out of the question for Python 2.x. Note that the the builtin
> range could be rebound, or a global range could appear in the module,
> at run time.
Ah! Of course.
Thank you very much for explaining this.
--
Steve R. Hastings"Vita est"
[EMAIL PROTECTED]http://www.blarg.net/~steveha
--
http://mail.python.org/mailman/listinfo/python-list
OpenRTS is a cross-platform open source real-time strategy game
developed in Python. Now version 0.2b2 has been released.
The new release uses the Twisted networking library for multi-player
games, and has graphics from the Hard Vacuum project.
The game can be downloaded from http://www.openrts
On Thu, 06 Apr 2006 02:33:16 +0200, Azolex wrote:
> Don't. It's quite funny, thanks.
I guess I should laugh. :-/
When you read my original articles, did *you* think I was proposing that
range() be changed to always return an iterator? I thought what I wrote
was pretty clear..
the Holy Grail_. I was trying to be funny, not
sarcastic, bitter, etc.
Thank you for your patience and I am done with this thread, unless I have
written something unclear in *this* post and I have to post another post
to clarify it as well. :-(
--
Steve R. Hastings"Vita est"
[EMAIL
d not mean to suggest that for would
simply call iter() when you use "for i in range".
I apologize if my writing was unclear.
--
Steve R. Hastings"Vita est"
[EMAIL PROTECTED]http://www.blarg.net/~steveha
--
http://mail.python.org/mailman/listinfo/python-list
#x27;m mistaken here, but I don't see how this optimization could
possibly break anything. range() makes a list, and for consumes it, and
the list isn't seen anywhere else. If the Python compiler took this:
for i in range(10**6):
pass
and produced code equivalent to this:
like this one. I want to be cool too. Where can I find
information about how to get a bytecodes listing for my compiled Python?
--
Steve R. Hastings"Vita est"
[EMAIL PROTECTED]http://www.blarg.net/~steveha
--
http://mail.python.org/mailman/listinfo/python-list
Thank you very much! I really appreciate the help. :)
--
http://mail.python.org/mailman/listinfo/python-list
Thank you very much! *embarassed*.
:-)
Ben Thul wrote:
> I think that if you go back and look at the original reply, he spelled
> it "isdir"...;)
>
> --Ben
> k r fry wrote:
>
>> Again, I apologise. Not knowing much about Python means that I don't
subdir in os.path.listdir(DATADIR): #loop through list
of strings
and here is what I get:
Traceback (most recent call last):
File "katiescint.py", line 153, in ?
for subdir in os.path.listdir(DATADIR): #loop through
list of strings
AttributeError
r: 'module' object has no attribute 'istdir'
I did think maybe it was meant to be "listdir" instead of "istdir", but
that doesn't work either.
Sorry to be a pain.
Peter Hansen wrote:
> k r fry wrote:
>
>> Hi, I am new to this list and als
Hi, I am new to this list and also programming with python.
I have an error: oserror [errno 20] not a directory "katiescint.py"
The piece of code causing the problem is:
[code]
for subdir in os.listdir(DATADIR): #loop through list of
strings
file=FITS.Read(DATADIR+'/'+subdir+
Hi,
I have a requirement to findout all the classes that are derived from a
single base class.
This is how I do it currently.
class Test:
case = []
class Test1(Test):
Test.case.append("Test1")
class Test2(Test):
Test.case.append("Test2")
1. Is there a better way of doing this.
2. I
one" instead of "== None".
Actually, I do like your version. And I try to always use "is None"
instead of "== None"; today I made a mistake about it. Thank you for your
comments.
Ideally there should be an official tally() function in some module in
Pyt
On Sat, 01 Apr 2006 00:38:08 -0800, Steve R. Hastings wrote:
> my proposed truecount() returns a tuple, with the length and
> the count of true values.
I never liked the name truecount(), and the more I think about it, the
less I like the function. It should either solve a very importan
a tuple with two values, one pass is
enough.
--
Steve R. Hastings"Vita est"
[EMAIL PROTECTED]http://www.blarg.net/~steveha
--
http://mail.python.org/mailman/listinfo/python-list
e the key= option. The need isn't as strong as with
.sort(), min(), and max(), but consistency can be a good thing. I'd
personally like to see key= anywhere it makes sense.
--
Steve R. Hastings"Vita est"
[EMAIL PROTECTED]http://www.blarg.net/~steveha
--
http://mail.python.org/mailman/listinfo/python-list
ly write your own truecount() but it would be nice to have
something like that as standard. I don't much like the name "truecount"
though; I'm open to suggestions for a better name.
--
Steve R. Hastings"Vita est"
[EMAIL PROTECTED]http://www.blarg.net/~steveha
--
http://mail.python.org/mailman/listinfo/python-list
Dennis Lee Bieber <[EMAIL PROTECTED]> writes:
> On 30 Mar 2006 21:18:50 -0800, [EMAIL PROTECTED] declaimed the
> following in comp.lang.python:
>
> > hi,
> >I am new to Python programming.I am not getting exactly pdb.Can
> > anyone tell me effective way to debug python code?
>
> I
[EMAIL PROTECTED] writes:
> hi,
>I am new to Python programming.I am not getting exactly pdb.Can
> anyone tell me effective way to debug python code?
>Please give me any example.
>Looking for responce.
>Thank You.
> Sushant
Well, I guess (in addition to the other
pycdio is an OO Python interface to libcdio. The libcdio package
contains a library for CD-ROM and CD image access. Applications
wishing to be oblivious of the OS- and device-dependent properties of
a CD-ROM or of the specific details of various CD-image formats may
benefit from using this library
tact all the clients?
Thanks in advance.
- Andreas R.
www.openrts.org - Open Source RTS game
--
http://mail.python.org/mailman/listinfo/python-list
I'm happy any() and all() will be built in, but I don't know
that there is sufficient need for truecount() or anything similar. If you
need it, just write it.
--
Steve R. Hastings"Vita est"
[EMAIL PROTECTED]http://www.blarg.net/~steveha
--
http://mail.python.org/mailman/listinfo/python-list
Thank you very much for explaining this. And so thoroughly!
Of course I withdraw all objections. :-)
--
Steve R. Hastings"Vita est"
[EMAIL PROTECTED]http://www.blarg.net/~steveha
--
http://mail.python.org/mailman/listinfo/python-list
False
for x in S:
ret_val = True
if not x:
return False
return ret_val
Comments?
P.S. I searched with Google, and with Google Groups, trying to find
anyplace this might have been discussed before. Apologies if this has
already been discussed and I missed it somehow.
if cmp(maxval, v) <= 0:
maxval = v
return maxval
raise TypeError, "seq must be a list or an iterator"
--
Steve R. Hastings"Vita est"
[EMAIL PROTECTED]http://www.blarg.net/~steveha
--
http://mail.python.org/mailman/listinfo/python-list
t;lst" it
is.
I would have put the "cmp" argument second, and made it default to the
built-in Python "cmp" function if not specified. Oh, well.
--
Steve R. Hastings"Vita est"
[EMAIL PROTECTED]http://www.blarg.net/~steveha
--
http://mail.python.org/mailman/listinfo/python-list
ur
version.
P.S. I benchmarked your version; it ran in 22.0 seconds, just a gnat's
whisker faster than the iter() version.
--
Steve R. Hastings"Vita est"
[EMAIL PROTECTED]http://www.blarg.net/~steveha
--
http://mail.python.org/mailman/listinfo/python-list
l
This is from Google's "goopy" package.
http://goog-goopy.sourceforge.net/
--
Steve R. Hastings"Vita est"
[EMAIL PROTECTED]http://www.blarg.net/~steveha
--
http://mail.python.org/mailman/listinfo/python-list
ecause I just wanted a streamlined
simple example.
I had a nagging feeling that I was missing something simple, and you have
put your finger on it. That's perfect! It's simple, it's clear, and it
will work on any version of Python. Thanks!
--
Steve R. Hastings"Vita est&q
ter than
complex, so I don't think I'd ever actually use it.
The clear winner was the iterator version. It was much faster than the
others, and in my opinion it is simpler and easier to understand than any
of the others.
--
Steve R. Hastings"Vita est"
[EMAIL PROTECTED]http://www.blarg.net/~steveha
--
http://mail.python.org/mailman/listinfo/python-list
.py", line 1148, in direct
raise ValueError, "value must be a valid timestamp string"
ValueError: value must be a valid timestamp string
>>> item.pub_date = "01 Jan 2006 08:01:23 GMT"
>>> print item.pub_date.text
Sun, 01 Jan 2006 00:01:23 -0800
>>> pr
Hello,
When parsing XML documents containing international characters, such as
the Norwegian characters Æ, Ø, Å, I get an exception in Python's SAX
module. What is the correct way to parse such characters in Python? I've
searched for methods to somehow escape the characters, without any luck
s
Dennis Lee Bieber wrote:
> On Wed, 08 Mar 2006 08:57:53 +0100, "Andreas R."
> <[EMAIL PROTECTED]> declaimed the following in
> comp.lang.python:
>
>
>> The problem I was having with push, is that is does not always send
>> complete packages.
&g
Fredrik Lundh wrote:
> "Andreas R." wrote:
>
>> I'm using Python's asynchat module for networking.
>> When calling the sendall() method of asynchat,
>> I sometimes get the error message "the operation
>> could not complete without bloc
Fredrik Lundh wrote:
> "Andreas R." wrote:
>
>> I'm using Python's asynchat module for networking.
>> When calling the sendall() method of asynchat,
>> I sometimes get the error message "the operation
>> could not complete without bloc
tp://example.org/2003/12/13/atom03";)
entry.links.append(link)
s = str(xmldoc)
if s_example != s:
failed_tests += 1
print "test case failed:"
print "The generated XML doesn't match the example. diff follows:"
print diff(s_example
Hi again,
I'm using Python's asynchat module for networking.
When calling the sendall() method of asynchat,
I sometimes get the error message "the operation
could not complete without blocking".
So how do I enable blocking with synchat, or otherwise fix this error?
Thanks for the help I've recei
ze
is often 512 between client and server, when running len(packet) on the
*compressed* packed. The len() of a large packet is usually about 64969.
Complete source code is available at
http://svn.gna.org/daily/openrts-snapshot.tar.gz
Thanks anyone for the help,
- Andreas R.
www.openrts.org
--
Download from
http://sourceforge.net/project/showfiles.php?group_id=61395&package_id=175827
On-line documentation is at
http://bashdb.sourceforge.net/pydb/pydb/lib/index.html
Changes since 1.12
* Add MAN page (from Debian)
* Bump revision to 0.12 to 1.13 to be compatible with Debian pydb package.
I suggest you should build your list using a list comprehension:
>>>a = [[0]*3 for i in range(3)]
>>>a
[[0, 0, 0], [0, 0, 0], [0, 0, 0]]
>>>a[0][1] = 1
[[0, 1, 0], [0, 0, 0], [0, 0, 0]]
--
Steve R. Hastings"Vita est"
[EMAIL PROTECTED]ht
s a safe way to
create a list of three 0 values.
When you have a list that contains three references to the same mutable,
and you change the mutable, you get the results you discovered.
--
Steve R. Hastings"Vita est"
[EMAIL PROTECTED]http://www.blarg.net/~steveha
--
http://mail.python.org/mailman/listinfo/python-list
I have come over a strange problem regarding exceptions
This is my code:
try:
#some operation
except Exception, info:
#some message
except:
#??
When executing my code, I get to the last block here. This
I find rather strange, because I thought Exception would catch
all exceptions. But this
I have edited PyAtom, and now it should be in better conformance with the
PEP 8 guidelines. It is available from the same place as before:
http://www.blarg.net/~steveha/pyatom.tar.gz
--
Steve R. Hastings"Vita est"
[EMAIL PROTECTED]http://www.blarg.net/~steveha
. Now that it's done I
want to share it, but I didn't study PEP 8 very much before I started it.
Thank you for the feedback.
--
Steve R. Hastings"Vita est"
[EMAIL PROTECTED]http://www.blarg.net/~steveha
--
http://mail.python.org/mailman/listinfo/python-list
of the debugger and when it is left via "quit" the instance is
destroyed. (In the case of pydb.set_trace() the issue never comes up
because the program is terminated on exit.)
[EMAIL PROTECTED] (R. Bernstein) writes:
> Here's what I was able to do using the Extended
in the Python core.
I said I intend to donate it to PSF. I didn't say they would do anything
with it... :-) That's up to them, of course.
> Good job :)
Thank you.
--
Steve R. Hastings"Vita est"
[EMAIL PROTECTED]http://www.blarg.net/~steveha
--
http://mail.python.org/mailman/listinfo/python-list
Atom questions and comments:
[EMAIL PROTECTED]
P.S. Should I publish this to the Cheese Shop?
http://cheeseshop.python.org/
--
Steve R. Hastings"Vita est"
[EMAIL PROTECTED]http://www.blarg.net/~steveha
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] writes:
> Is there a way to temporarily halt execution of a script (without using
> a debugger) and have it put you in an interactive session where you
> have access to the locals?
Here's what I was able to do using the Extended Python debugger.
http://bashdb.sourceforge.net/p
This third release of an improved debugger also probably about as
great as the last release.
Download from
http://sourceforge.net/project/showfiles.php?group_id=61395&package_id=175827
On-line documentation is at
http://bashdb.sourceforge.net/pydb/pydb/lib/index.html
Along with this release is a
John Salerno wrote:
> I'm having some slight trouble understanding exactly why this creates an
> infinite loop:
>
> L = [1, 2]
> L.append(L)
I tried this with Python 2.3.5 and it handles this tailbiter in a
very pleasantly surprising way:
>>> l = [ 0, 1 ]
>>> l.append( l )
>>> l
[0, 1, [...]]
>>
Fredrik Lundh wrote:
> "Andreas R." <[EMAIL PROTECTED]> wrote:
>
>> I'm using Python's asynchat for networking. If I invoke the send()
>> method of the asynchat module, only a single send operation is possible
>> at any given time. If I call it mo
ave to use select etc.?
The source code is here:
http://svn.gna.org/viewcvs/openrts/trunk/openrts/server/clienthandler.py?rev=36&view=markup
Thanks in advance!
Andreas R.
www.openrts.org
--
http://mail.python.org/mailman/listinfo/python-list
1001 - 1100 of 1188 matches
Mail list logo