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

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

Re: newbie OO question

2006-04-20 Thread Lawrence D'Oliveiro
In article <[EMAIL PROTECTED]>, Jeremy Winters <[EMAIL PROTECTED]> wrote: from SegmentValue import * I remember in the old days a computing support guy saying he refused to help any users with FORTRAN questions unless they had an "IMPLICIT NONE" in every program block. The corresponding

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 Peter Otten
[EMAIL PROTECTED] wrote: > ie does the first instance of the package a.b.c effectively mask out > the others so that if a.b.c.common occurs first in the PYTHONPATH then > a.b.c.project1 will never be found as the "a.b.c" package is only > loaded from the a.b.c.common folder? By default, yes. But

Re: perspective on ruby

2006-04-20 Thread Lawrence D'Oliveiro
In article <[EMAIL PROTECTED]>, Edward Elliott <[EMAIL PROTECTED]> wrote: >The fact that even >numeric literals are objects make me suspicious of Ruby as a >general-purpose language though. Isn't Python going that way? -- http://mail.python.org/mailman/listinfo/python-list

Re: Activating Batch Files from Python

2006-04-20 Thread Atanas Banov
Jeff Groves wrote: > How would I do that? As I've said, I haven't found a Python command > that lets you send multiple commands to the same shell yet. If I could, > my problem would be solved. any reason why you cannot create a temp .bat, consisting of: setvar.bat prog1.exe prog2.exe and then

Re: Strategy Design Pattern

2006-04-20 Thread Alex Martelli
Daniel Santa Cruz <[EMAIL PROTECTED]> wrote: ... > I'm at a loss at how I can do this with Python, any pointers would be > more than welcomed! Check out my homepage, www.aleax.it, you'll find several PDFs for my various presentations over the years: many have to do with DPs and Python, and I s

Re: how to use socks5 proxy in pycurl?

2006-04-20 Thread Ju Hui
sorry, I can'y find sample python code there. I don't know how to set PROXYTYPE.. :( -- http://mail.python.org/mailman/listinfo/python-list

Re: Activating Batch Files from Python

2006-04-20 Thread Tim Roberts
"Jeff Groves" <[EMAIL PROTECTED]> wrote: > >I'm writing a launcher that should do the following: > >1. Activate a .bat file to set environmental variables. >2. Start 3 programs, using said environmental variables as arguments. > >However, I can't get the environmental variables to stick because all

Strategy Design Pattern

2006-04-20 Thread Daniel Santa Cruz
Hello all, I've been trying to go over my OO Patterns book, and I decided to try to implement them in Python this time around. I figured this would help me learn the language better. Well, I've gotten stuck with my first go at OO patterns with Python. I guess it goes without say that some of th

Re: Updated PEP 359: The make statement

2006-04-20 Thread Tim Roberts
Steven Bethard <[EMAIL PROTECTED]> wrote: >Steven Bethard wrote: >> I've updated PEP 359 with a bunch of the recent suggestions. ... > >Guido has pronounced on this PEP: >http://mail.python.org/pipermail/python-3000/2006-April/000936.html >Consider it dead. =) I tried to follow the thread bac

Re: perspective on ruby

2006-04-20 Thread Edward Elliott
Alex Martelli wrote: > The only "single language" I could see fitting that role is Mozart, > deliberately designed to be SUPER-multi-paradigm -- not even Lisp and > Scheme (the only real competition) can compare. Don't know Mozart. After 5 minutes of googling, it looks like strictly a high-level

Re: Phython and graphing

2006-04-20 Thread John Hunter
> "mostro" == mostro <[EMAIL PROTECTED]> writes: mostro> Hello, Can someone lead me to an easy way to create a mostro> graph in Python. mostro> For example, I have a script running that creates a list mostro> of dates, times and values. I would like to turn this into most

Re: Thanks from the Java Developer

2006-04-20 Thread Alex Martelli
Ant <[EMAIL PROTECTED]> wrote: > Python ruined my life. > > I am a Java programmer by profession, and ever since learning Python, I > find it a real chore to open Eclipse and write Java code (or worse - > the XML config files that seem to glue J2EE together). And while I > spend some of my spare

Weekly Python Patch/Bug Summary

2006-04-20 Thread Kurt B. Kaiser
Patch / Bug Summary ___ Patches : 371 open (-12) / 3195 closed (+39) / 3566 total (+27) Bugs: 908 open (+22) / 5767 closed ( +8) / 6675 total (+30) RFE : 211 open ( +1) / 212 closed ( +0) / 423 total ( +1) New / Reopened Patches __ Fix test_

Re: Looking for a programming resource for newbees

2006-04-20 Thread Alex Martelli
bambooforest <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm from a Linguistics background and am new(er) to programming. Could Welcome! Some of my best memories date from back when I did computational linguistics (with emphasis on the 'computational', but in close cooperation with people with emp

Re: perspective on ruby

2006-04-20 Thread Alex Martelli
Edward Elliott <[EMAIL PROTECTED]> wrote: ... > course in C++ doesn't cut it, the curriculum should either use different > languages fitted to each task or emphasize a single language with broad > abilities (picking the best programming model for each task). Java is The only "single language"

Re: proposed Python logo

2006-04-20 Thread BartlebyScrivener
I like the tadpoles. Yours looks like a phonograph needle, circa 1960. Just my opinion. rick -- http://mail.python.org/mailman/listinfo/python-list

Re: Looking for a programming resource for newbees

2006-04-20 Thread BartlebyScrivener
Steve, Try this. http://www.freenetpages.co.uk/hp/alan.gauld/ If you were at the Python.org site, and clicked on "Getting started," the first sentence says, "Are you completely new to programming?" That's you, right? ;) http://wiki.python.org/moin/BeginnersGuide/NonProgrammers After you learn

Re: win32com.client.constants - AttributeError

2006-04-20 Thread Roger Upole
The constants are only available if you've run makepy on the Word object library. Roger "kbperry" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On my machine, this runs fine, but when I try to run it on someone > elses machine it blows up with an attribute error: > > > imp

py.test munging strings in asserts?

2006-04-20 Thread Timothy Grant
I'm playing around with py.test and writing a parser for it's output for use in TextMate. I've run into what appears to be a strange phenomenon, but which is likely me doing something wrong. I'm writing a test to test some HTML output and the test fails for several reasons, all of which I underst

Re: tail a file (win)

2006-04-20 Thread John Machin
On 21/04/2006 11:24 AM, Ryan Ginstrom wrote: >> Behalf Of david brochu jr >> 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

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 ToddLMorgan
Thanks for all the prompt helpful responses :- ) I have read and reread section 6.4 -> of the python docs and it doesn't really help me. Just a couple of clarifications. I am already using a VCS (Version Control System) - subversion actually. When I mentioned a clear separation of production an

Re: mini component distribution question

2006-04-20 Thread Eric S. Johansson
Serge Orlov wrote: > How about one? I bundle everything together. Sharing modules at end > user host is more difficult because you have to test many combinations. > Needless to say, end users also have a strange ability to create > untested combinations of modules :) it's the exact same problem.if

a subprocess qns

2006-04-20 Thread micklee74
hi i wanted to start execute a command and put it in the background. i am using Unix. Usually i start this command using something like this : "/path/somecmd &" with the "&" to put it to background. i looked at the subprocess module docs and came across this statement Replacing os.spawn* -

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 namesp

2006-04-20 Thread Eric S. Johansson
alisonken1 wrote: > As to the question "fail to see how version control relates to > code/test separation", the original poster asked several questions, one > of which was production/testing code separation. > > Along with the separation (so while you're testing new functionality, > you don't brea

Re: Looking for a programming resource for newbees

2006-04-20 Thread Michael Tobis
You may be interested in Programming Patterns in Python: http://www.amazon.com/gp/product/0130409561/103-9277940-9267015?v=glance&n=283155 It's out of print but Amazon has some; not everyone likes it but I think it tries to do what you are asking for. mt -- http://mail.python.org/mailman/listi

Re: Looking for a programming resource for newbees

2006-04-20 Thread Gaz
bambooforest ha escrito: > Hi all, > > I'm from a Linguistics background and am new(er) to programming. Could > someone recommend a book or resource that teaches programming aspects > with Python? Python I hear is a very appropriate language for handling > text and language processing. > > I'm se

proposed Python logo

2006-04-20 Thread Michael Tobis
"Is this the right room for an argument?" http://geosci.uchicago.edu/~tobis/snake.png ok, so my execution is pretty crude, but you can at least see my idea. I trust you to imagine it professionally executed in cheerful colors. Advantages of proposed logo over existing logo --

Re: tail a file (win)

2006-04-20 Thread Jay Parlar
On Apr 20, 2006, at 9:33 AM, david brochu jr wrote: > 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 f

RE: tail a file (win)

2006-04-20 Thread Ryan Ginstrom
> Behalf Of david brochu jr > 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 c

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 alisonken1
As to the question "fail to see how version control relates to code/test separation", the original poster asked several questions, one of which was production/testing code separation. Along with the separation (so while you're testing new functionality, you don't break production files), a proper

Looking for a programming resource for newbees

2006-04-20 Thread bambooforest
Hi all, I'm from a Linguistics background and am new(er) to programming. Could someone recommend a book or resource that teaches programming aspects with Python? Python I hear is a very appropriate language for handling text and language processing. I'm searching for a resource that examines prog

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 alisonken1
Not sure about "vcs" - but "cvs" can be more fun if the hard disk dies {g}. -- http://mail.python.org/mailman/listinfo/python-list

Re: Phython and graphing

2006-04-20 Thread Larry Bates
mostro wrote: > Hello, > > Can someone lead me to an easy way to create a graph in Python. > > For example, I have a script running that creates a list of dates, > times and values. I would like to turn this into a graph. > > I can grep the info into a new file creating two columns (x,y) but the

RE: PyLint 0.11 / astng 0.16

2006-04-20 Thread Delaney, Timothy (Tim)
vj wrote: > Are there any plans to release pylint under the LGPL license? Why would it matter? PyLint is a tool you run *on* your source - you don't distribute PyLint to your users. And even if you did - your Python code doesn't link to PyLint, so there's no need to GPL your code. Tim Delaney -

Re: Phython and graphing

2006-04-20 Thread Lou Pecora
In article <[EMAIL PROTECTED]>, "mostro" <[EMAIL PROTECTED]> wrote: > Hello, > > Can someone lead me to an easy way to create a graph in Python. > > For example, I have a script running that creates a list of dates, > times and values. I would like to turn this into a graph. > > I can grep the

Re: [Python-Dev] unrecognized command line option "-Wno-long-double"

2006-04-20 Thread Aahz
On Wed, Apr 19, 2006, Dean N. Williams wrote: > > When I try to build Python 2.4.3, I get the following error below: Please do not spam multiple lists. Please read this URL before you ask for further help: http://www.catb.org/~esr/faqs/smart-questions.html -- Aahz ([EMAIL PROTECTED])

Re: search files in a directory

2006-04-20 Thread Gary Herron
david brochu jr wrote: > Hello, > > I need to open every file in a directory and search for a string. What > module is needed to do this and how would I go about searching each file? os.listdir(dir) gives a list of all the file in a directory. You can then loop through the list. open can b

Re: mini component distribution question

2006-04-20 Thread Serge Orlov
Eric S. Johansson wrote: > as one would expect when creating a body of software, eventually you > create a series of relatively generic components you find yourself using > over and over again. As a result, I'm finding myself slightly bit by > the same problem I have faced multiple times of the pa

search files in a directory

2006-04-20 Thread david brochu jr
Hello,   I need to open every file in a directory and search for a string. What module is needed to do this and how would I go about searching each file? -- http://mail.python.org/mailman/listinfo/python-list

Re: search a string

2006-04-20 Thread Carl J. Van Arsdall
Bruno Desthuilliers wrote: > Carl J. Van Arsdall a écrit : > (snip) > > >> With a file object, to iterate through the lines in a file don't you >> have to use readlines()? >> > > Nope - no more, should I say. The file object is now an iterable. > file.readlines() try and read all the file

Re: Confused about properties, descriptors, and attributes...

2006-04-20 Thread Alexis Roda
[EMAIL PROTECTED] escribió: > I've been reading about Python Classes, and I'm a little confused about > how Python stores the state of an object. I was hoping for some help. > > I realize that you can't create an empty place holder for a member > variable of a Python object. It has to be given a v

Re: search a string

2006-04-20 Thread Bruno Desthuilliers
Carl J. Van Arsdall a écrit : (snip) > With a file object, to iterate through the lines in a file don't you > have to use readlines()? Nope - no more, should I say. The file object is now an iterable. file.readlines() try and read all the file and returns it as a list. It's ok for small files,

Phython and graphing

2006-04-20 Thread mostro
Hello, Can someone lead me to an easy way to create a graph in Python. For example, I have a script running that creates a list of dates, times and values. I would like to turn this into a graph. I can grep the info into a new file creating two columns (x,y) but the issue is the graph. P.S. I'm

Re: send cookie on request with urllib2

2006-04-20 Thread John J. Lee
Kent Johnson <[EMAIL PROTECTED]> writes: > itay_k wrote: > > 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= cook

Re: Thanks from the Java Developer

2006-04-20 Thread Edward Elliott
I know this isn't comp.lang.java but I can't resist... Jarek Zgoda wrote: > Going from Python to Java (as it's in my case) is real pain I wish > nobody to feel... Even with multi-million support for Java from giants > like Sun, IBM or Oracle, I find it much easier to gain full control over > m

Re: search a string

2006-04-20 Thread Carl J. Van Arsdall
Bruno Desthuilliers wrote: > Carl J. Van Arsdall a écrit : > >> david brochu jr wrote: >> >> >>> Hello, >>> >>> >>> I have a text file with the following string: >>> ['\r\n', 'Pinging www.ebayyy.com >>> [207.189.104.86 ] with 32 bytes of

Re: [Baypiggies] SPECIAL: BayPIGgies: April 26, 7:30pm (Google)

2006-04-20 Thread Eric Brown
Is there anybody that is using turbogears that could do a short presentation or overview as well. It would be great to get a little bit of comparison. I may be choosing one of these in the near future. On Apr 20, 2006, at 2:46 PM, Aahz wrote: > NOTE: Special date of WEDNESDAY April 26 at Goo

Re: Thanks from the Java Developer

2006-04-20 Thread Philippe Martin
Yes, and then you have to answer Java/C/C++ job/contracts opening knowing real well the mistake they're making ... as well as you are for answering ;-) Ant wrote: > Python ruined my life. > > I am a Java programmer by profession, and ever since learning Python, I > find it a real chore to open

Re: Python IDE for linux

2006-04-20 Thread Philippe Martin
If your PC can handle eclipse ... memory-wise, I strongly suggest you give pydev a shot. Philippe 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 ID

Re: accessing a classes code

2006-04-20 Thread Bruno Desthuilliers
John Machin a écrit : > On 20/04/2006 6:54 AM, bruno de chez modulix en face wrote: > >>> It turns out that what I want to do can be done using the inspect >>> module which has methods for getsourcecode among other things. >> >> >> I never said that what you wanted to do was impossible (nor even >

Re: search a string

2006-04-20 Thread Bruno Desthuilliers
Carl J. Van Arsdall a écrit : > david brochu jr wrote: > >> Hello, >> >> >> I have a text file with the following string: >> ['\r\n', 'Pinging www.ebayyy.com >> [207.189.104.86 ] with 32 bytes of data:\r\n', >> '\r\n', 'Request timed out.\r\n',

Re: Activating Batch Files from Python

2006-04-20 Thread EShames
On 4/18/2006 11:39 PM, Jeff Groves wrote: > I'm writing a launcher that should do the following: > > 1. Activate a .bat file to set environmental variables. > 2. Start 3 programs, using said environmental variables as arguments. > > However, I can't get the environmental variables to stick becaus

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 Desthuilliers
Paddy a écrit : > Thanks alisonken1, I did indeed mean that when you have production code > and test code then its time to bring in the version control systems. Hopefully all this is under version control right from the start... And I still fail to see how version control relates to code/test sep

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...) Th

Re: Confused about properties, descriptors, and attributes...

2006-04-20 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : > I've been reading about Python Classes, and I'm a little confused about > how Python stores the state of an object. Simply put: a Python object is mostly a hashtable, with attribute names as keys and references to other objects as values - one of these name/ref pair

Re: send cookie on request with urllib2

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

Re: perspective on ruby

2006-04-20 Thread Edward Elliott
Peter Otten wrote: > Edward Elliott wrote: >>The fact that even numeric literals are objects make me suspicious of Ruby >>as a general-purpose language though. > add_one = 1 .__add__ > > Just in case you didn't know... True enough, but I don't often see Python code treating numbers as objec

Re: Confused about properties, descriptors, and attributes...

2006-04-20 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > But what is the difference between an Attribute of a Class, a > Descriptor in a Class, and a Property in a Class? A class has a class dictionary, which contains methods and other class-level members for this class. Each instance of a class has its own instance dictiona

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 Paddy
Thanks alisonken1, I did indeed mean that when you have production code and test code then its time to bring in the version control systems. But having said that ;-) i have been naughty in the past and used the -s or --symbolic-link option of the gnu cp (sometimes available as gcp), command which c

Re: Thanks from the Java Developer

2006-04-20 Thread Ant
Python ruined my life. I am a Java programmer by profession, and ever since learning Python, I find it a real chore to open Eclipse and write Java code (or worse - the XML config files that seem to glue J2EE together). And while I spend some of my spare time liberated by Python, I spend 10 times a

Re: search a string

2006-04-20 Thread Carl J. Van Arsdall
david brochu jr wrote: > Hello, > > > I have a text file with the following string: > ['\r\n', 'Pinging www.ebayyy.com > [207.189.104.86 ] with 32 bytes of data:\r\n', > '\r\n', 'Request timed out.\r\n', '\r\n', 'Ping statistics for > 207.189.1

search a string

2006-04-20 Thread david brochu jr
Hello,     I have a text file with the following string: ['\r\n', 'Pinging www.ebayyy.com [207.189.104.86] with 32 bytes of data:\r\n', '\r\n', 'Request timed out.\r\n', '\r\n', 'Ping statistics for 207.189.104.86:\r\n', '    Packets: Sent = 1, Received = 0, Lost = 1 (100% loss),\r\n']     How wou

win32com.client.constants - AttributeError

2006-04-20 Thread kbperry
On my machine, this runs fine, but when I try to run it on someone elses machine it blows up with an attribute error: import win32com.client, pythoncom pythoncom.CoInitializeEx(pythoncom.COINIT_APARTMENTTHREADED) myWord = win32com.client.dynamic.Dispatch ("Word.Application") myWord.Visible = Tru

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 alisonken1
I believe that Paddy was referencing his second point about keeping "production code" and "test code" clearly delimited, so was recommending that a version control system be used rather than the local disk structure required by python for building module packages. Although, I have found that symli

Re: Mouse control in OS X

2006-04-20 Thread Jay Parlar
On Apr 20, 2006, at 1:22 PM, Mateo wrote: > I've played around with pygame, and it seems to have much of what I > need. Still, is there any way to initiate a mouse click from Python? > > Thanks. > In OS X, you'll probably need PyObjC. I've never had a chance to try it myself, but if any package

Re: the whole 'batteries included' idea

2006-04-20 Thread Jarek Zgoda
John Salerno napisał(a): > So my question is, what is the difference between Python's 'batteries' > (standard modules), and C#'s framework? I know nothing of Java, but I > assume it has its own rich (and confusing) set of classes as well. Is > there something different about other languages' libra

Re: how to use socks5 proxy in pycurl?

2006-04-20 Thread John J. Lee
"Ju Hui" <[EMAIL PROTECTED]> writes: [...] > how to use socks5 proxy in pycurl? http://curl.haxx.se/mail/list.cgi?list=curl-and-python John -- http://mail.python.org/mailman/listinfo/python-list

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 Desthuilliers
Paddy a écrit : > Your second point 'clear separation of "production" code and "test" > code' is best handled by using a revision control system. I'm afraid I don't see the point here ??? -- http://mail.python.org/mailman/listinfo/python-list

Re: the whole 'batteries included' idea

2006-04-20 Thread Larry Bates
John Salerno wrote: > 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 bee

Re: Mouse control in OS X

2006-04-20 Thread Mateo
I've played around with pygame, and it seems to have much of what I need. Still, is there any way to initiate a mouse click from Python? Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: urllib2.ProxyHandler

2006-04-20 Thread John J. Lee
"rx" <[EMAIL PROTECTED]> writes: > I'm trying to hide my IP with the following code: > > import urllib2 > proxy=[urllib2.ProxyHandler({'http':'24.232.167.22:80'})] > opener=urllib2.build_opener(proxy) build_opener takes *args, not a list: import urllib2 handlers = [urllib2.ProxyHandler({'http':'

Re: newbie OO question

2006-04-20 Thread Larry Bates
Jeremy Winters wrote: > 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 pa

Re: newbie OO question

2006-04-20 Thread lukasz . ciesnik
Jeremy Winters napisal(a): > 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 s

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 Paddy
Your second point 'clear separation of "production" code and "test" code' is best handled by using a revision control system. I know Clearcase, because I use it at work, but I have heard good things about Subversion. -- http://mail.python.org/mailman/listinfo/python-list

Re: http request with cookie sending

2006-04-20 Thread John J. Lee
Kent Johnson <[EMAIL PROTECTED]> writes: > itay_k wrote: > > Hi, > > > > I want to send a cookie on some http request (with urllib2), > > so I created a Cookie but I cant associate it with CookieJar object. > > You have to use a cookielib.Cookie, not Cookie.SimpleCookie(): As I mention in the o

Confused about properties, descriptors, and attributes...

2006-04-20 Thread redefined . horizons
I've been reading about Python Classes, and I'm a little confused about how Python stores the state of an object. I was hoping for some help. I realize that you can't create an empty place holder for a member variable of a Python object. It has to be given a value when defined, or set within a met

Re: send cookie on request with urllib2

2006-04-20 Thread John J. Lee
"itay_k" <[EMAIL PROTECTED]> writes: > Hi, > > I dont understand why this is so complicated, just to add one line of > cookie header on the GET request. You haven't said what you're really trying to do. http://www.catb.org/~esr/faqs/smart-questions.html#goal > This is my unworking code: > imp

Re: multiline comments

2006-04-20 Thread Edward Elliott
Sion Arrowsmith wrote: > It appears to me that our fundamental difference is that you see value > in long-term preservation of sections of commented-out code without > any kind of real comment as to what's going on, whereas I consider > this to be appallingly bad practice. Then you're reading too

Re: perspective on ruby

2006-04-20 Thread Peter Otten
Edward Elliott wrote: > The fact that even numeric literals are objects make me suspicious of Ruby > as a general-purpose language though. >>> add_one = 1 .__add__ >>> add_one(42) 43 Just in case you didn't know... Peter -- http://mail.python.org/mailman/listinfo/python-list

Re: Thanks from the Java Developer

2006-04-20 Thread Jarek Zgoda
[EMAIL PROTECTED] napisał(a): > I wanted to thank those members of the Python community that took the > time to answer my questions about interfaces and plug-ins in Python. I > have discovered that Python is a very powerful language, and one that I > look forward to using for Linux development. I

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(?

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 k

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

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 writt

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 programmin

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

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: 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 co

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 on

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 declar

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 t

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. L

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

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-4ubuntu

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 __

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. Th

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 >

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 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

  1   2   >