Python Software Foundation seeks mentors and students for Google Summer of Code

2006-04-20 Thread Neal Norwitz
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

SPECIAL: BayPIGgies: April 26, 7:30pm (Google)

2006-04-20 Thread Aahz
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...)

Re: Lamdba forms

2006-04-20 Thread Paddy
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

Re: How do you guys print out a binary tree?

2006-04-20 Thread Anthony Liu
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

Re: BIOCHIP --- NO GOOD !!

2006-04-20 Thread Petr Prikryl
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

Re: How do you guys print out a binary tree?

2006-04-20 Thread Anthony Liu
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

Re: COM object pointer cast

2006-04-20 Thread Axel Bock
late but still - thanks a lot :) . works like a charm. cheers, Axel. -- http://mail.python.org/mailman/listinfo/python-list

Re: Pyrex installation on windows XP: step-by-step guide

2006-04-20 Thread Julien Fiore
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

Re: How to pass variable to test class

2006-04-20 Thread Podi
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

Re: python pyc or pyo files

2006-04-20 Thread micklee74
thanks! got it -- http://mail.python.org/mailman/listinfo/python-list

Re: Lamdba forms

2006-04-20 Thread Ant
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

Re: Updated PEP 359: The make statement

2006-04-20 Thread Michele Simionato
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

UDP performance

2006-04-20 Thread Paul Sijben
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

Python Software Foundation seeks mentors and students for Google Summer of Code

2006-04-20 Thread Neal Norwitz
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

Re: Confused by Python and nested scoping (2.4.3)

2006-04-20 Thread Petr Prikryl
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

Re: Updated PEP 359: The make statement

2006-04-20 Thread OKB (not okblacke)
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

Re: multiline comments

2006-04-20 Thread OKB (not okblacke)
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

charting

2006-04-20 Thread Gary Wessle
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 --

Help! Identical code doesn't work in Wing IDE but does in Komodo.

2006-04-20 Thread fyleow
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

Re: UDP performance

2006-04-20 Thread Serge Orlov
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

[ANN] PyLint 0.11 / astng 0.16

2006-04-20 Thread Sylvain Thénault
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

Re: Help! Identical code doesn't work in Wing IDE but does in Komodo.

2006-04-20 Thread Luke Plant
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.

Re: Help! Identical code doesn't work in Wing IDE but does in Komodo.

2006-04-20 Thread Serge Orlov
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

Re: UDP performance

2006-04-20 Thread Paul Sijben
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!

Re: UDP performance

2006-04-20 Thread Serge Orlov
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

Re: UDP performance

2006-04-20 Thread Paul Sijben
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

Re: Conditions vs Events

2006-04-20 Thread Sergei Organov
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

Re: Lamdba forms

2006-04-20 Thread Duncan Booth
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

Re: Method Call in Exception

2006-04-20 Thread Duncan Booth
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):

Re: Lamdba forms

2006-04-20 Thread Ant
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

Re: UDP performance

2006-04-20 Thread Martin P. Hellwig
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

Re: Lamdba forms

2006-04-20 Thread Fredrik Lundh
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

Re: help wanted regarding displaying Japanese characters in a GUI using QT and python

2006-04-20 Thread prats
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

Re: how to transfer a python object to other computer?

2006-04-20 Thread Daniel Nogradi
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

Can one query full name (or version) of selected packages at pypi?

2006-04-20 Thread Caleb Hattingh
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

Re: Method Call in Exception

2006-04-20 Thread bruno at modulix
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

python about mobile game?

2006-04-20 Thread chyf1983929
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

Re: help wanted regarding displaying Japanese characters in a GUI using QT and python

2006-04-20 Thread Serge Orlov
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

Re: Python IDE for linux

2006-04-20 Thread Fulvio
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

Re: UDP performance

2006-04-20 Thread Paul Sijben
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. --

Re: Python IDE for linux

2006-04-20 Thread Daniel Nogradi
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

Re: help wanted regarding displaying Japanese characters in a GUI using QT and python

2006-04-20 Thread prats
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

__reduce__(1) vs __reduce__(2)

2006-04-20 Thread Kirill Simonov
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 %

Re: SQLite (with APSW) and transaction separate

2006-04-20 Thread DurumDara
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

Re: charting

2006-04-20 Thread bwaha
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

Re: Simple DAV server?

2006-04-20 Thread robert
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

Re: Method Call in Exception

2006-04-20 Thread bwaha
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

Re: how to transfer a python object to other computer?

2006-04-20 Thread bruno at modulix
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

Re: help wanted regarding displaying Japanese characters in a GUI using QT and python

2006-04-20 Thread John Machin
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

FOUNDIT (was Re: massive threading performance)

2006-04-20 Thread Paul Sijben
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

Re: Help! Identical code doesn't work in Wing IDE but does in Komodo.

2006-04-20 Thread John Machin
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

Re: help wanted regarding displaying Japanese characters in a GUI using QT and python

2006-04-20 Thread Serge Orlov
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

Re: Can one query full name (or version) of selected packages at pypi?

2006-04-20 Thread John Machin
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

Re: PyLint 0.11 / astng 0.16

2006-04-20 Thread vj
Are there any plans to release pylint under the LGPL license? -- http://mail.python.org/mailman/listinfo/python-list

massive threading performance (was:Re: UDP performance)

2006-04-20 Thread Paul Sijben
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

Re: Confused by Python and nested scoping (2.4.3)

2006-04-20 Thread Kent Johnson
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

PYTHONPATH

2006-04-20 Thread sushant . sirsikar
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

Re: Missing interfaces in Python...

2006-04-20 Thread Ben
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

Re: PYTHONPATH

2006-04-20 Thread Sybren Stuvel
[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:

Re: help wanted regarding displaying Japanese characters in a GUI using QT and python

2006-04-20 Thread David Boddie
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 --

Re: freakin out over C++ module in python

2006-04-20 Thread nephish
sounds cool, most stuff i write is strife with try - except thanks for the tip -sk -- http://mail.python.org/mailman/listinfo/python-list

Re: multiline comments

2006-04-20 Thread Ben Finney
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

Re: multiline comments

2006-04-20 Thread Sion Arrowsmith
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

Re: Help! Identical code doesn't work in Wing IDE but does in Komodo.

2006-04-20 Thread BartlebyScrivener
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

send cookie on request with urllib2

2006-04-20 Thread itay_k
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,

Re: PYTHONPATH

2006-04-20 Thread bruno at modulix
[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

Re: Method Call in Exception

2006-04-20 Thread Kent Johnson
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

Re: Lamdba forms

2006-04-20 Thread Ant
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

Re: Confused by Python and nested scoping (2.4.3)

2006-04-20 Thread BartlebyScrivener
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

Re: How to stop winpdb programatically

2006-04-20 Thread nir1408
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

Re: How protect proprietary Python code? (bytecode obfuscation?, what better?)

2006-04-20 Thread Ben Sizer
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

DB Interface for SQLite

2006-04-20 Thread DurumDara
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

Re: Ironpython book?

2006-04-20 Thread John Salerno
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!

Re: Python IDE for linux

2006-04-20 Thread bruno at modulix
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

Re: Simple DAV server?

2006-04-20 Thread Ivan Voras
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

Re: How protect proprietary Python code? (bytecode obfuscation?, what better?)

2006-04-20 Thread Alex Martelli
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

Re: __reduce__(1) vs __reduce__(2)

2006-04-20 Thread Ziga Seilnacht
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

Re: Missing interfaces in Python...

2006-04-20 Thread Michele Simionato
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. :)

Tail a file

2006-04-20 Thread david brochu jr
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

How should multiple (related) projects be arranged (structured) and configured so that they can share code, have a related package structure and enable proper unittesting, and ensuring no namespace co

2006-04-20 Thread ToddLMorgan
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

Re: python about mobile game?

2006-04-20 Thread Thomas Nelson
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

Re: How protect proprietary Python code? (bytecode obfuscation?, what better?)

2006-04-20 Thread Ben Sizer
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

tail a file (win)

2006-04-20 Thread david brochu jr
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

Re: How should multiple (related) projects be arranged (structured) and configured so that they can share code, have a related package structure and enable proper unittesting, and ensuring no namespac

2006-04-20 Thread bruno at modulix
[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

Class __init__ behaviour

2006-04-20 Thread Thomas Bartkus
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.

Re: Class __init__ behaviour

2006-04-20 Thread Diez B. Roggisch
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

Re: Error with OpenOffice

2006-04-20 Thread Terry Reedy
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

Re: how to transfer a python object to other computer?

2006-04-20 Thread Kent Johnson
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

perspective on ruby

2006-04-20 Thread RK
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.

Re: SQLite (with APSW) and transaction separate

2006-04-20 Thread Paul Boddie
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

Re: Class __init__ behaviour

2006-04-20 Thread Lou Pecora
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

Re: perspective on ruby

2006-04-20 Thread BartlebyScrivener
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

Re: charting

2006-04-20 Thread [EMAIL PROTECTED]
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

the whole 'batteries included' idea

2006-04-20 Thread John Salerno
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

Re: Python IDE for linux

2006-04-20 Thread [EMAIL PROTECTED]
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

Re: perspective on ruby

2006-04-20 Thread Edward Elliott
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,

How can I call a python method from the XML-RPC client in Java?

2006-04-20 Thread evelyne0510
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

Re: Python IDE for linux

2006-04-20 Thread [EMAIL PROTECTED]
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

Re: Python IDE for linux

2006-04-20 Thread projecktzero
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

newbie OO question

2006-04-20 Thread Jeremy Winters
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   2   >