This spring and summer, Google will again provide stipends
for students (18+, undergraduate thru PhD programs) to write
new open-source code.
The Python Software Foundation (PSF)
http://www.python.org/psf/
will again act as a sponsoring organization in Google's Summer of Code,
matching
NOTE: Special date of WEDNESDAY April 26 at Google, usual time of 7:30pm
Special meeting! One of the lead developers of Django is in town! Jacob
Kaplan-Moss will be talking about Django at Google. More details as they
get finalized -- but save the date! (No, it's not on the website yet...)
To expand on the above, Python does not have statements in its lambda
forms, but that does not stop pythoneers from getting the job done.
I use a named function for that, but if you have an issue with that, it
really is worth following Terry's advice as the subject has been
tackled at great
Hi, Dave,
That looks nice, I'll definitely try it out.
--- Dave Hansen [EMAIL PROTECTED] wrote:
On Tue, 18 Apr 2006 08:17:22 -0700 (PDT) in
comp.lang.python, Anthony
Liu [EMAIL PROTECTED] wrote:
--- bayerj [EMAIL PROTECTED] wrote:
Hi,
1 2 3 4 5
0 7 8 9
rainbow.cougar wrote in message
okay wrote:
To Archbishop Christodoulos Paraskevaides of the Greek Orthodox Church
in Athens and Greece Archbishop,
I talked with a Greek Orthodox believer in Australia and he told me two
I'm thinking a list comprehension...
Possibly some
Hi, Bayer Munich,
I implemented a syntax parser from bottom up using a
CNF grammar.
I actually know what part of the triangle of the
matrix I need to turn into a tree, but it is kinda
hard to describe in text.
So, I just made it easy by giving a triangle of the
matrix.
Anyway, thanks for your
late but still - thanks a lot :) . works like a charm.
cheers,
Axel.
--
http://mail.python.org/mailman/listinfo/python-list
To install Pyton, I simply used the python Windows installer
(python-2.4.2.msi) available at python.org.
Julien
--
http://mail.python.org/mailman/listinfo/python-list
Thanks for replying.
I need to pass some external values to the test cases because I want to
run the same tests in different environments such as lab/instrument
setup.
Regards,
Podi
--
http://mail.python.org/mailman/listinfo/python-list
thanks! got it
--
http://mail.python.org/mailman/listinfo/python-list
Why does the function have to be unnamed? you can easly nest function
definitions and refer to them. IIRC the lambda form is probably going
to be removed at some point, as it is not needed:
def outerfn():
dostuff()
def inner(x,y):
out = (x^y)
print out
return out
Steven Bethard wrote:
Guido has pronounced on this PEP:
http://mail.python.org/pipermail/python-3000/2006-April/000936.html
Consider it dead. =)
Well, Guido is known for having changed his mind before (the ternary
operator,
lambda functions, try..except..finally, etc) so this is not
I am stumped by the following problem. I have a large multi-threaded
server accepting communications on one UDP port (chosen for its supposed
speed).
I have been profiling the code and found that the UDP communication is
my biggest drain on performance! Communication where the client and the
This spring and summer, Google will again provide stipends
for students (18+, undergraduate thru PhD programs) to write
new open-source code.
The Python Software Foundation (PSF)
http://www.python.org/psf/
will again act as a sponsoring organization in Google's Summer of Code,
matching
I have added some spaces guessing how the original was formatted.
See the simplified example and the explanation below...
Sean Givan wrote...
Hi. I'm new to Python [...] something strange.
This code:
def outer():
val = 10
def inner():
print val
inner()
outer()
..prints out the
Steven Bethard wrote:
Guido has pronounced on this PEP:
http://mail.python.org/pipermail/python-3000/2006-April/000936.h
tml
Consider it dead. =)
This is the most frustrating pronouncement ever.
--
--OKB (not okblacke)
Brendan Barnwell
Do not follow where the path may
Ben Finney wrote:
Indeed. Using revision control means never needing to comment out
blocks of code.
If your revision control system is so inconvenient to use that you'd
rather have large blocks of commented-out code, it's time to start
using a better RCS -- perhaps a distributed one, so
Dear python users
I am just wondering if python is the language to use to build a custom
charting package which is live updated from live data stream coming
through a socket. as well as dynamically execute data analysis code
on the data being fed. I have been looking at SpecTix.
thank you
--
I create a new Python file with the following using Wing IDE.
import feedparser
d = feedparser.parse(http://feedparser.org/docs/examples/atom10.xml;)
print d.feed.title
I get this error when I debug.
AssertionError:
Traceback (innermost last):
File c:\Documents and Settings\abc\Application
Paul Sijben wrote:
I am stumped by the following problem. I have a large multi-threaded
server accepting communications on one UDP port (chosen for its supposed
speed).
I have been profiling the code and found that the UDP communication is
my biggest drain on performance! Communication
Hi there!
I'm please to announce new releases of pylint (0.11) and its underlying
library astng (0.16). Those releases should fix a number of crashes and false
positive and provide a few new options/features, the most notable one being
the ability to enable/disable messages at block level in the
With the exact same line of code in Komodo I get the correct output
which is Sample Feed
Any idea what's wrong?
My guess would be different PYTHONPATHs. Try this on each:
import sys
print sys.path
They might even be using different python versions - but both of these
are just guesses.
fyleow wrote:
I create a new Python file with the following using Wing IDE.
import feedparser
d = feedparser.parse(http://feedparser.org/docs/examples/atom10.xml;)
print d.feed.title
I get this error when I debug.
AssertionError:
Traceback (innermost last):
File c:\Documents and
Serge Orlov wrote:
Paul Sijben wrote:
I am stumped by the following problem. I have a large multi-threaded
server accepting communications on one UDP port (chosen for its supposed
speed).
I have been profiling the code and found that the UDP communication is
my biggest drain on performance!
Paul Sijben wrote:
Serge Orlov wrote:
Paul Sijben wrote:
I am stumped by the following problem. I have a large multi-threaded
server accepting communications on one UDP port (chosen for its supposed
speed).
I have been profiling the code and found that the UDP communication is
my
Serge Orlov wrote:
Paul Sijben wrote:
Serge Orlov wrote:
Paul Sijben wrote:
I am stumped by the following problem. I have a large multi-threaded
server accepting communications on one UDP port (chosen for its supposed
speed).
I have been profiling the code and found that the UDP
Carl J. Van Arsdall [EMAIL PROTECTED] writes:
Le Monde De Python,
I've been working a lot with python threads from the threading module.
Specifically, when is it better to use a condition object vs an event
object?
Condition is the universal primitive for waiting for some condition to
Ant wrote:
IIRC the lambda form is probably going
to be removed at some point, as it is not needed:
You remember incorrectly.
--
http://mail.python.org/mailman/listinfo/python-list
Carl Banks wrote:
In fact a lot of Pythonistas recommend this way over the
alternative, even when you don't have to. For example, a lot of people
recommend this:
try:
name = record.name
except AttributeError:
name = Freddy
instead of this:
if hasattr(record,name):
No, I remembered correctly:
http://www.artima.com/weblogs/viewpost.jsp?thread=98196
but probably not until Python 3.0.
--
http://mail.python.org/mailman/listinfo/python-list
Paul Sijben wrote:
I am stumped by the following problem. I have a large multi-threaded
server accepting communications on one UDP port (chosen for its supposed
speed).
I have been profiling the code and found that the UDP communication is
my biggest drain on performance! Communication
Ant wrote:
No, I remembered correctly:
http://www.artima.com/weblogs/viewpost.jsp?thread=98196
but probably not until Python 3.0.
however,
http://mail.python.org/pipermail/python-dev/2006-February/060415.html
(one would have thought that someone might have added a note to
the comments of
I think I could not make myself clear. I have a GUI written in Python
and Qt and PyQt as the python wrappper fro QT. Now I have a string
which is base64 encoded. This string contains both japanese and english
charaters. I need to decode them and display them properly in the GUI
ie. with both
Hey, all.Now I wanna to transfer a object to other computer, Maybe I
could serialize the object to a file by pickle moudle, then send the file
and get it from the file.But I think the efficency is awful, because the
disk io is very slow.
Someone could do me a favor to give me some
Hi everyone
I suspect this has come up before, but google and group searches for
python package index query or pypi query and the like haven't
turned anything up.
I want to monitor the versions of the list of packages I like having
around, and I expect that the python package index might be a
mwt wrote:
(snip)
This works when I try it, but I feel vaguely uneasy about putting
method calls in exception blocks.
What do you put in exception blocks?!
Whatever fits the specific case...
(snip)
Normally I don't like to use exception blocks to do condition-statement
stuff. At least that is
Is there any modules about mobile game in python? which l can use it to write mobile game .thank you
你 知 道 中 国 每 年 耗 费 多 少 一 次 性 筷 子 吗 ?
450亿双!相当于170万立方米的木材,大约需要砍伐2500万棵大树! <网易邮箱公益宣传>
--
http://mail.python.org/mailman/listinfo/python-list
prats wrote:
I think I could not make myself clear.
On the contrary. You've given enough information for me to do what you
want: decoding your text and displaying it in a GUI. The fact that I
used another GUI is not important, read below why.
I have a GUI written in Python
and Qt and PyQt as
Alle 09:43, giovedì 20 aprile 2006, Neil Isaac ha scritto:
At this point I'm thinking that I would like to start using a real IDE.
Idle, shipped with Python :-)
F
--
http://mail.python.org/mailman/listinfo/python-list
Martin P. Hellwig wrote:
[snip]
Is the connection 1:1 i.e. the receiving end receives data only from one
sender at the time? And how do you handle lost packages in your
application?
no the server is receiving from multiple clients.
and at the moment I do not handle lost packets.
--
On 4/20/06, Fulvio [EMAIL PROTECTED] wrote:
Alle 09:43, giovedì 20 aprile 2006, Neil Isaac ha scritto:
At this point I'm thinking that I would like to start using a real IDE.
Idle, shipped with Python :-)
F
--
http://mail.python.org/mailman/listinfo/python-list
And there is also a long
sorry I did not correctly read your point. I works fine. Thanks for
your help.
I have one more query. It was said that the text I was supposed to show
was written using ISO-2022-JP charset. But It didn't when I decoded
it using that charset. But it worked fine with the shift-jis
encoding. Is it
Could someone explain why __reduce__(2) works for files while
__reduce__(1) doesn't?
f = file('/etc/passwd')
f.__reduce__(1)
Traceback (most recent call last):
File stdin, line 1, in ?
File /usr/lib/python2.4/copy_reg.py, line 69, in _reduce_ex
raise TypeError, can't pickle %s objects %
Hi !
Dennis Lee Bieber írta:
On Wed, 19 Apr 2006 17:29:28 +0200, Christian Stooker
[EMAIL PROTECTED] declaimed the following in comp.lang.python:
Please answer me: it is wrong I write about, or that is seems to be not
working in SQLite ?
I don't think the feature you want
Gary Wessle [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Dear python users
I am just wondering if python is the language to use to build a custom
charting package which is live updated from live data stream coming
through a socket. as well as dynamically execute data analysis
Ivan Voras wrote:
robert wrote:
thanks, that's exactly to the point:
python server.py 8080 mydavrootfolder
Thanks for the patch, I assume it's free to incorporate it into the
original archive?
yes, of course
Also, see my reply to Kyler Laird...
maybe thats a good idea to put it
mwt [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
In my latest attempt at some Python code, I've been tempted to write
something in the form of:
try:
[...] #doing some internet stuff
except IOError:
alternate_method_that_doesnt_need_internet()
I'm only a hack at
Daniel Nogradi wrote:
Hey, all.Now I wanna to transfer a object to other computer, Maybe I
could serialize the object to a file by pickle moudle, then send the file
and get it from the file.But I think the efficency is awful, because the
disk io is very slow.
Someone could do me a favor
On 20/04/2006 8:15 PM, prats wrote:
sorry I did not correctly read your point. I works fine. Thanks for
your help.
I have one more query. It was said that the text I was supposed to show
was written using ISO-2022-JP charset.
Where more than one encoding is in use for a language, some people
I found that the problem was caused by the sending thread not giving
control back quickly enough to the receiving thread.
Also in going through the code I found an old self.s.setblocking(0)call
that was no longer relevant. Removing that solved my problem.
Something that took 20 seconds now takes
On 20/04/2006 5:54 PM, fyleow wrote:
I create a new Python file with the following using Wing IDE.
import feedparser
d = feedparser.parse(http://feedparser.org/docs/examples/atom10.xml;)
print d.feed.title
I get this error when I debug.
[snip]
With the exact same line of code in
prats wrote:
sorry I did not correctly read your point. I works fine. Thanks for
your help.
I have one more query. It was said that the text I was supposed to show
was written using ISO-2022-JP charset. But It didn't when I decoded
it using that charset. But it worked fine with the shift-jis
On 20/04/2006 7:26 PM, Caleb Hattingh wrote:
Hi everyone
I suspect this has come up before, but google and group searches for
python package index query or pypi query and the like haven't
turned anything up.
I want to monitor the versions of the list of packages I like having
around, and
Are there any plans to release pylint under the LGPL license?
--
http://mail.python.org/mailman/listinfo/python-list
OK the problem I posted about earlier is NOT a UDP/socket problem, it is
a threading problem. Albeit one that only happens when you have many
thrreads
I have made two little scripts using the code I copied below, one client
and one server (attached).
If I run them concurrently on the same
Kelvie Wong wrote:
There are only two scopes in Python -- global scope and function scope.
No, Python has local, nested, global and built-in scope.
Kent
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I am using Linux env.I set the PYTHONPATH using
import sys
sys.path.append()
But we i close python and start again i is not showing my new entry in
PYTHONPATH.
Can anyone help me to make my path persistant?
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
Oh I agree entirely. They are just equivalent ways of managing the
complexity of large projects.
I guess interfaces are providing specifications, and generics are
receiving specifications, so single dispatch methods can be identical
to interfaces only inverted.
Therefore, as there is no
[EMAIL PROTECTED] enlightened us with:
I am using Linux env.I set the PYTHONPATH using
import sys
sys.path.append()
But we i close python and start again i is not showing my new entry in
PYTHONPATH.
Can anyone help me to make my path persistant?
Add the following to /etc/profile:
Out of interest, I've written some code to show your example text and
added it to the
PyQt Wiki:
http://www.diotavelli.net/PyQtWiki/Decoding_Japanese_Text
I used the codec for Shift-JIS to obtain a unicode representation of
the string, as
Serge suggested.
David
--
sounds cool, most stuff i write is strife with try - except
thanks for the tip
-sk
--
http://mail.python.org/mailman/listinfo/python-list
OKB (not okblacke) [EMAIL PROTECTED] writes:
Ben Finney wrote:
If your revision control system is so inconvenient to use that
you'd rather have large blocks of commented-out code, it's time to
start using a better RCS -- perhaps a distributed one, so you can
commit to your own local
Edward Elliott [EMAIL PROTECTED] wrote:
Sion Arrowsmith wrote:
Really? Under what circumstances is it easier to see what's going on
with start/end comments than with comment-to-end-of-line?
Off the top of my head:
[ ... ]
It appears to me that our fundamental difference is that you see value
Not sure if this would cause it, but I also have both Wing and Komodo,
and when I search for files named FeedParser, I get this:
c:/Documents and Settings\Richard Dooling\Local Settings\Application
Data\Wing IDE 2\cache\analysis\C\Python24\lib\email\FeedParser.py.ether
c:/Program
Hi,
I dont understand why this is so complicated, just to add one line of
cookie header on the GET request.
This is my unworking code:
import time
import Cookie
import cookielib, urllib2
c= cookielib.Cookie(1,Name,Tom, 80,False, itay, False, False,
d:\\asddd,False,
[EMAIL PROTECTED] wrote:
Hi,
I am using Linux env.I set the PYTHONPATH using
import sys
sys.path.append()
This does not sets the PYTHONPATH.
[EMAIL PROTECTED] ~/public_html/aquitaine-pqa $ python -h
(snip)
Other environment variables:
(snip)
PYTHONPATH : ':'-separated list of
Carl Banks wrote:
mwt wrote:
In my latest attempt at some Python code, I've been tempted to write
something in the form of:
try:
[...] #doing some internet stuff
except IOError:
alternate_method_that_doesnt_need_internet()
This works when I try it, but I feel vaguely uneasy about
Fair enough. I've just found this as well, which implies that lambda
isn't being killed off in 3.0:
http://www.python.org/dev/peps/pep-3100/
In particular:
Lambdas will have to be parenthesized [23]
--
http://mail.python.org/mailman/listinfo/python-list
P.S. I have just noticed that Terry Jan Reedy answered
similarly. Never mind... Repeat, repeat, repeat until
you know ;)
Yes, and some of us appreciate the extra examples.
rick
--
http://mail.python.org/mailman/listinfo/python-list
Hello Uwe,
You can use rpdb2.settrace()
But in fact rpdb2 is not meant to be used like that.
the pdb.set_trace() command belongs to the pdb debugging model, of a
single threaded script that starts the debugger on demand. In
rpdb2/winpdb the debugger works all the time and you break (pause) the
bruno at modulix wrote:
Let's rephrase it:
do you really think that native code is harder *enough* to
reverse-engineer ?
I don't know. In terms of copy protection, popular off-the-shelf
software is going to get cracked whether it's written in Python or x86
ASM, that much is true. But in terms
Hi !
I develop some tools for better/easier usage of SQLite wrapper(s).
It have two parts:
1.) Custom interface with common methods.
2.) APSW oriented class.
The codes are abs. free, no copyright, licence is freeware.
Use them as you need.
I publish them, because I does not found same thing
Alex Martelli wrote:
Oh, OK -- I thought you DID refer to the old research project!!!
Yeah, the terms Python.NET and Python _for_ .NET have sometimes been
used interchangeably in the past, that's true. Confusing...!
Heh heh, well it's still my fault for not knowing what I'm talking about!
Fulvio wrote:
Alle 09:43, giovedì 20 aprile 2006, Neil Isaac ha scritto:
At this point I'm thinking that I would like to start using a real IDE.
Idle, shipped with Python :-)
The OP said a *real* IDE !-)
F
--
bruno desthuilliers
python -c print '@'.join(['.'.join([w[::-1] for w in
robert wrote:
maybe thats a good idea to put it on sf.net to boil out all bugs.
Yet I like it in that simple default manner, maybe switch on those
additional creation functions with commandline switches (or config class
instance passed to run..(config=None) )
I'm thinking of making a small
Ben Sizer [EMAIL PROTECTED] wrote:
bruno at modulix wrote:
Let's rephrase it:
do you really think that native code is harder *enough* to
reverse-engineer ?
I don't know. In terms of copy protection, popular off-the-shelf
software is going to get cracked whether it's written in Python
Kirill Simonov wrote:
Could someone explain why __reduce__(2) works for files while
__reduce__(1) doesn't?
I think it is a bug. Both should raise an error.
__reduce__ and __reduce_ex__ are part of the pickle protocol.
Files are not meant to be pickable, since they are already
persistent. With
Carl Banks wrote:
Only after a lot of effort, a lot
of refactoring, and a large part of the problem space explored, will
the interfaces be mature enough that writing interface definitions
would be useful and not a burden. (And let's face it: there aren't
many projects that get that far. :)
Hello,
I wrote a script to monitor ping activity and output it to a log file. I am using windows and want to have another script constantly check the latest entry to see if Request timed out is seen. Is there a way to tail a file much like I would in Unix so I can just see the latest entry and
Summary:
How should multiple (related) projects be arranged (structured) and
configured so that the following is possible:
o Sharing common code (one of the projects would be a common
project referenced by all others and likely the others would share at
least the common project and possibly
What is a mobile game? Is it a game that can be played on a mobile
phone?
THN
--
http://mail.python.org/mailman/listinfo/python-list
Alex Martelli wrote:
Ben Sizer [EMAIL PROTECTED] wrote:
I don't know. In terms of copy protection, popular off-the-shelf
software is going to get cracked whether it's written in Python or x86
ASM, that much is true. But in terms of perhaps protecting innovative
algorithms from
Hello,
I wrote a script to monitor ping activity and output it to a log file. I am using windows and want to have another script constantly check the latest entry to see if Request timed out is seen. Is there a way to tail a file much like I would in Unix so I can just see the latest entry and
[EMAIL PROTECTED] wrote:
Summary:
(snip)
I'm working on a few projects concurrently so I have tried to
arranged my projects like this:
COMMON
src
a.b.c.common
test
a.b.c.common
APP1
src
a.b.c.app1
test
a.b.c.app1
APP2
src
a.b.c.app2
If I insert an __init__ method in my own class definition, it is incumbent
upon me to call the __init__ of any declared ancester to my new class object
because my __init__ will override that of any ancester I declare in the
header. If I fail to call the ancesters __init__, then it won't happen.
Thomas Bartkus schrieb:
If I insert an __init__ method in my own class definition, it is incumbent
upon me to call the __init__ of any declared ancester to my new class object
because my __init__ will override that of any ancester I declare in the
header. If I fail to call the ancesters
Mario Lacunza [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello,
I try to make the exercises found in Ooo website but I receipt this
error:
[EMAIL PROTECTED]:~$ python
Python 2.4.2 (#2, Sep 30 2005, 21:19:01)
[GCC 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu8)] on
Hey, all.Now I wanna to transfer a object to other computer, Maybe I
could serialize the object to a file by pickle moudle, then send the file
and get it from the file.But I think the efficency is awful, because the
disk io is very slow.
Someone could do me a favor to give me some
I apologize if this is a stupid question, I'm asking Python group for
perspective on Ruby, but I don't see how the alternative of going to a
ruby group for a perspective on Ruby is going to do me any good...
I just unpacked and tried out InstantRails, after turning off the
local Plone stack.
Dennis Lee Bieber wrote:
Isolation levels I've seen, but not in the RDBMs I tend to have most
experience
with (and for those I have documentation of, The Firebird Book is the
only one that seems to be explicit about multiple generations of updates
based on transactions; others seem to imply
In article [EMAIL PROTECTED],
Thomas Bartkus [EMAIL PROTECTED] wrote:
If I insert an __init__ method in my own class definition, it is incumbent
upon me to call the __init__ of any declared ancester to my new class object
because my __init__ will override that of any ancester I declare in the
RK,
I always liked this Martelli post, which I found by searching on Ruby
early on when I was still trying to decide to learn Python or Ruby. For
a mere hobbyist doing both is out of the question:
http://groups.google.com/group/comp.lang.python/msg/28422d707512283
If you want more just search
I have used matplotlib along with numpy numerics etc for some analysis.
Just home projects, but I have found python a much faster/better
language for such development than Java. That being said, i have found
the network aspects of other apps i've written to be much easier/faster
in java. This
Pardon my naivety, you would think maybe I'd understand this by now, but
I've always kind of wondered about it. I've been curious why one of the
biggest points used to promote Python is that it has batteries
included. True, this is a great feature, but the way it's been used
seems to suggest
my $.03
I'm a tool freak - not just development, in general.
Also from a Java background.
PyDev plugin on Eclipse is the bomb, as far as I am concerned.
There was also a TruStudio plugin for eclipse that was a bit more
ambitious, but I've used it since early milestones through to the
current
RK wrote:
I just don't get it. The scripted object-oriented clean programming
language is done.
Nothing's ever done except LISP. There's always room for experimentation
and improvement.
I'm more than willing to supprt RoR if it's being sold as the popular
alternative to .NET programming,
Hi all,
I have created a XML-RPC model (with server and client) written in
Java.
I want to call the methods in another XML-RPC model written in
Python.
I know that in Java, I can use like
xmlrpc_client.excute(handler_name.method, param) to call the
methods in my xml-rpc server written
when I said It's package management is the best
I mean't ISN'T the best
oops
--
http://mail.python.org/mailman/listinfo/python-list
Neil Isaac wrote:
I have been writing python my little python scripts in gedit and running them
using the command line. At this point I'm thinking that I would like to start
using a real IDE. I don't need anything special or fancy, but would like it
to manage projects, etc...
I do know
class SegmentValue:
def
__init__(self,seg=[0,0,0,0,0,0],value=0,description=):
self.segment=seg
self.value=value
self.description=description
#that's my class! note the default of a 6 item list
for the seg parameter... which is then bound(?)
1 - 100 of 183 matches
Mail list logo