How to: Setuptools

2013-05-27 Thread ray
a linux version, the first line is: #!/bin/sh and the content seems to be encoded. There is an exe at https://pypi.python.org/pypi/setuptools, but the instructions on the page state the .exe won't work for 64-bit installs. Ray -- http://mail.python.org/mailman/listinfo/python-list

Re: How to: Setuptools

2013-05-28 Thread ray
On May 28, 7:26 am, Mark Lawrence wrote: > On 28/05/2013 13:03, rusi wrote: > > > > > > > On May 28, 6:32 am, ray wrote: > >> I would like to use easy_install, but can't figure out how to install it. > > >> I have 64-bit Python 2.7.5 on Wi

Re: How to: Setuptools

2013-05-28 Thread ray
On Monday, May 27, 2013 8:32:43 PM UTC-5, ray wrote: > I would like to use easy_install, but can't figure out how to install it. > > > > I have 64-bit Python 2.7.5 on Windows 7. > > > > Following the instructions on https://pypi.python.org/pypi/setup

Wondering in the Python Forrest

2011-07-30 Thread ray
understanding how to use all these tools. Thanks, Ray -- http://mail.python.org/mailman/listinfo/python-list

Remote Connection

2011-04-19 Thread ray
; I am waiting to see if any solution may dictate the cell details. ray -- http://mail.python.org/mailman/listinfo/python-list

Re: Remote Connection

2011-04-19 Thread ray
On Apr 19, 8:23 pm, Chris Rebert wrote: > On Tue, Apr 19, 2011 at 6:04 PM, ray wrote: > > I wonder if there is a solution to provide remote connections between > > two computers similar to Remote Desktop.  The difference I am looking > > for is to be able to deliver speech

How to Use Setuptools, Alternatives?

2011-05-29 Thread ray
ircle. What are some suggestions for installing this? Thanks, ray -- http://mail.python.org/mailman/listinfo/python-list

Alternatives to PythonPath

2011-05-29 Thread ray
I am using Win7 on a tightly locked down desktop. Is there an alternative to using PythonPath? What are the trade-offs? Thanks, ray -- http://mail.python.org/mailman/listinfo/python-list

Ruby on Rails Job Site -- Is there a Python equivalent?

2005-12-01 Thread Ray
I just found a job listing site for Ruby on Rails. http://jobs.rubynow.com/ I wonder if there's an equivalent one for Django? For some reason a lot of people seem to know about RoR, but when I ask them about Django, they go like, "huh?" -- http://mail.python.org/mailman/listinfo/python-list

Re: Ruby on Rails Job Site -- Is there a Python equivalent?

2005-12-01 Thread Ray
Adrian Holovaty wrote: > Here ya go: > > http://code.djangoproject.com/wiki/DevelopersForHire > > See the "Django-powered jobs" section. We could definitely advertise > this page more, as it's a bit hidden at the moment on the Django wiki. > > There are three Django jobs on that page now, and I kn

How do these Java concepts translate to Python?

2005-08-11 Thread Ray
lass) method and instance members. But this difference seems to blur in Python. I mean, when you bind a member variable in Python, is it static, or instance? It seems that everything is static (in the Java sense) in Python. Am I correct? Thanks in advance, Ray -- http://mail.python.org/mailman/listinfo/python-list

Re: How do these Java concepts translate to Python?

2005-08-11 Thread Ray
Fausto Arinos Barbuto wrote: > Ray wrote: > > > 1. Where are the access specifiers? (public, protected, private) > > AFAIK, there is not such a thing in Python. So everything is public? I know that you can prefix a member with underscores to make something private, but h

Re: How do these Java concepts translate to Python?

2005-08-11 Thread Ray
Devan L wrote: > Fausto Arinos Barbuto wrote: > > Ray wrote: > > > > > 1. Where are the access specifiers? (public, protected, private) > > > > AFAIK, there is not such a thing in Python. > > > > ---Fausto > > Well, technically you can u

Re: How do these Java concepts translate to Python?

2005-08-11 Thread Ray
on to write Java, or using Python to write Python?") Regards, Ray Ray wrote: -- http://mail.python.org/mailman/listinfo/python-list

Re: How do these Java concepts translate to Python?

2005-08-12 Thread Ray
is the original reason for not-public attributes): Thanks Bruno! This is good stuff. This is exactly what I want to avoid: writing Java in Python. Cheers, Ray > > # first version: > class Foo(object): > def __init__(self): > self.baaz = 42 # public attribute > > # later we

Python's Exception, and Capitalization

2005-08-12 Thread Ray
re mutually exclusive I can't do this. So... what's the usual idiom for this? Thanks! Ray -- http://mail.python.org/mailman/listinfo/python-list

Re: How do these Java concepts translate to Python?

2005-08-12 Thread Ray
Roy Smith wrote: > Quick answer; there are none, all attributes are public. > > Slightly longer answer; if you name an attribute with two leading > underscores (i.e. "__myPrivateData"), there is some name mangling that goes > on which effectively makes the attribute private. There are ways around

Re: Python's Exception, and Capitalization

2005-08-12 Thread Ray
urprised to see the date--it was _that_ recent! :) But currently, how have you--Python guys who code for a living--been handling this case? I know that you can put another try inside a try, but obviously the need for that is not common enough in idiomatic Python program (or else this would have

Re: How do these Java concepts translate to Python?

2005-08-12 Thread Ray
bruno modulix wrote: > Then wait until you discover what one can do with __magic_methods__, > functions-as-objects, closures, callable objects, descriptors > (properties on steroids), decorators, generators, and metaclasses... > *Then* you'll know what power means !-) > > And more is to come... ..

Re: How do these Java concepts translate to Python?

2005-08-12 Thread Ray
gene tani wrote: > I think you'll like python. > > http://naeblis.cx/rtomayko/2004/12/15/the-static-method-thing > http://dirtsimple.org/2004/12/java-is-not-python-either.html > > (and python-is-not-java) Thanks gene, these are exactly the stuff I wanna know mor

Re: Python's Exception, and Capitalization

2005-08-12 Thread Ray
Steve M wrote: > You might find the Python Style Guide to be helpful: > > http://www.python.org/doc/essays/styleguide.html Nice! Thanks Steve. Ray -- http://mail.python.org/mailman/listinfo/python-list

A PIL Question

2005-08-14 Thread Ray
elf.im.putdata(data, scale, offset) AttributeError: 'NoneType' object has no attribute 'putdata' Anybody has any idea why this is the case? Thanks, Ray -- http://mail.python.org/mailman/listinfo/python-list

Please Criticize My Code

2005-08-20 Thread Ray
if say_this[-1] != digit: say_this.extend(('1', digit)) else: say_this[-2] = str(int(say_this[-2]) + 1) return "".join(say_this) # run it! print [x for x in lookAndSaySequence(1, 30)] Thanks, Ray -- http://mail.python.org/mailman/listinfo/python-list

Re: Please Criticize My Code

2005-08-20 Thread Ray
Damn, those are cool, man. Thanks! This Python thing keeps expanding and expanding my brain... Ray [EMAIL PROTECTED] wrote: -- http://mail.python.org/mailman/listinfo/python-list

Re: Please Criticize My Code

2005-08-20 Thread Ray
Michael Hoffman wrote: > Ray wrote: > > > I just wrote a short script that generates look and say sequence. What > > do you Python guys think of it? Too "Java-ish"? > > Yes, but that's beside the point. :) Well... I'm always paranoid that I'm, you

Re: Please Criticize My Code

2005-08-21 Thread Ray
Christoph Rackwitz wrote: > Why not? Because the regex isn't compiled? > Don't tell me not to do something, tell me why i should'nt do it. No it's not the regex, it's because you just spoiled the challenge for everybody who hasn't solved level 10 yet... -- http://mail.python.org/mailman/listinfo

Why is map() preferable in this case?

2005-09-18 Thread Ray
;m not aware of? Why would one want to use map() when there's already an expression that is so clear and easy to understand? Thanks! Ray -- http://mail.python.org/mailman/listinfo/python-list

Re: Why is map() preferable in this case?

2005-09-19 Thread Ray
Delaney, Timothy (Tim) wrote: > map() will be faster if the function you are calling from map() is > *also* in coded in C. If it's coded in python, then the generator > expression will probably be faster. > > Use whatever reads better to you. Look at optimising when you need to, > and not before.

Suggestions for a Java programmer

2005-03-24 Thread Ray
point me to "Python for Java Programmers" resources? I found one blog, but that only touched the tip of the iceberg, I feel. I know that as I use Python more and read more books and read how experienced Python programmers code, eventually I'll find it out. But I'd like to expedite t

Re: Suggestions for a Java programmer

2005-03-24 Thread Ray
Hi Christos, Christos TZOTZIOY Georgiou wrote: > On 24 Mar 2005 00:22:09 -0800, rumours say that "Ray" > <[EMAIL PROTECTED]> might have written: > > Searching google for "python for java programmers" (without the quotes) > produces: > > Python for

Re: Suggestions for a Java programmer

2005-03-24 Thread Ray
bruno modulix wrote: > These two books should help you to get a grasp of Pythonic idioms: > > http://www.mindview.net/Books/TIPython Will read this later. > http://diveintopython.org/ I just downloaded this one and am reading it now. Thanks bruno! > > > > -- > bruno desthuilliers > python -c "

Re: Suggestions for a Java programmer

2005-03-24 Thread Ray
Ville Vainio wrote: > Regarding a Java programmer moving to Python, a lot of the mindset > change is about the abundant use of built in data types of Python. So > a Java programmer, when confronted with a problem, should think "how > can I solve this using lists, dicts and tuples?" (and perhaps al

tcp networking question (CLOSE_WAIT)

2016-02-25 Thread Ray
hi, I'm new to python networking. I am waiting TCP server/client app by using python built-in SocketServer. My problem is if client get killed, then the tcp port will never get released, in CLOSE_WAIT maybe I didn't do the handler right? or anyway I can catch the client get killed? I wrote fo

Re: tcp networking question (CLOSE_WAIT)

2016-02-25 Thread Ray
On Thursday, February 25, 2016 at 1:18:05 PM UTC-5, Martin A. Brown wrote: > >I'm new to python networking. I am waiting TCP server/client app by > >using python built-in SocketServer. My problem is if client get > >killed, then the tcp port will never get released, in CLOSE_WAIT > > I did not t

Re: tcp networking question (CLOSE_WAIT)

2016-02-25 Thread Ray
On Thursday, February 25, 2016 at 12:56:10 PM UTC-5, Ray wrote: > hi, > > I'm new to python networking. I am waiting TCP server/client app by using > python built-in SocketServer. My problem is if client get killed, then the > tcp port will never get released, in CLOSE_WAIT

Re: tcp networking question (CLOSE_WAIT)

2016-02-25 Thread Ray
On Thursday, February 25, 2016 at 1:56:21 PM UTC-5, Martin A. Brown wrote: > Hello again Ray, > > >> >I'm new to python networking. I am waiting TCP server/client app by > >> >using python built-in SocketServer. My problem is if client get > >> >ki

matplotlib question: OverflowError: Allocated too many blocks

2013-09-20 Thread Ray
hi, i'm using matplotlib to generate chart from audio wave file, and I had a problem with it. test code as: from scipy.io import wavfile import matplotlib.pyplot as plt rate, x = wavfile.read('test2.wav') plt.plot(x) plt.savefig('test2.png') the len of x= 19531840 (as len(x) ) matplotlib give e

How to design:Use One TCPIP Client connection to Server and work concurrently

2013-10-25 Thread ray
Hi all, The system use ONE tcpip client and connection to server. A large batch transactions send to server.I want to send to server concurrently. any idea ? In my thinking, A.Devide large batch transactions to small batch transactions. B.Create multi-thread or multiprocessing to process small

Re: How to design:Use One TCPIP Client connection to Server and work concurrently

2013-10-25 Thread ray
Hi all, Because the server only can accept ONE connect from client. If the client establish connection with the server,the server can not accept other client. One large batch transaction file come from user. client divide the large file to several smaller files. In my thinking: client have many

Re: How to design:Use One TCPIP Client connection to Server and work concurrently

2013-10-25 Thread ray
In some enviroment,Client connect with Server(Always connect). It is a little like pipe.Many requester use the pipe send request and receive reponse.In client side,it dispatch requests and handle/match response. -- https://mail.python.org/mailman/listinfo/python-list

Installing 2.6 on Win 7

2011-09-09 Thread ray
seems to match. Are there win binaries or source files? ray -- http://mail.python.org/mailman/listinfo/python-list

RE: Installing 2.6 on Win 7

2011-09-09 Thread ray
Brian,   Thank you, that was great.   Ray Joseph, PE832 586-5854r...@aarden.us      Original Message Subject: Re: Installing 2.6 on Win 7From: Brian Curtin <brian.cur...@gmail.com>Date: Fri, September 09, 2011 3:14 pmTo: ray <r...@aarden.us>Cc: python-list@python.orgO

Re: Both Python 2.5.2 and 2.7.2 flop the same way under Win 7

2011-11-17 Thread ray
On Friday, November 18, 2011 12:55 AM, W. eWatson wrote: Months ago 2.5.2 stopped functioning on my Win7 PC, so a few days ago I uninstalled and installed. Same problem. If one right-clicks on a py file, IDLE is not shown in the menu as Edit with IDLE. After playing with matters I gave up, and

How to: Coordinate DictReader and Reader for CSV

2011-11-21 Thread ray
jects/Bootstrap Plan Design Tool/Sandbox/line_list_r0a.csv", "rb" ) csvDictReader=csv.DictReader( linelist, dialect='excel' ) for data in csvReader: print data[0] print data[1] print data[2] print data[3] linelist.close() Thanks, ray --

How to Get Data from DictReader for CSV Files

2011-11-21 Thread ray
csvReader= csv.DictReader( linelist, dialect='excel' ) for data in csvReader: print data linelist.close() I want to pass this data as arrays or lists to another module such as: myfunction(data1, data2, data3) How do I get the data I want out of the pair fieldname1 : data1? Tha

Re: How to: Coordinate DictReader and Reader for CSV

2011-11-21 Thread ray
On Nov 21, 7:59 am, Neil Cerutti wrote: > On 2011-11-21, ray wrote: > > > I am trying to get the data from a CSV file into variables.  I have > > used DictReader to get the field names and I can report them.  When I > > attempt to look at the data, every row

Re: How to Get Data from DictReader for CSV Files

2011-11-21 Thread ray
On Nov 21, 10:29 am, GZ wrote: > Hi, > > On Nov 21, 7:42 am, ray wrote: > > > > > > > I don't see how to get my data from the output.  I can see the data in > > the rows but it is mixed in with the field names.  That is, the data I > > get co

Please enlighten me about PyPy

2005-12-21 Thread Ray
Hello! I've been reading about PyPy, but there are some things that I don't understand about it. I hope I can get some enlightenment in this newsgroup :) First, the intro: "The PyPy project aims at producing a flexible and fast Python implementation. The guiding idea is to translate a Python-le

Re: Please enlighten me about PyPy

2005-12-21 Thread Ray
d that it'll be faster than CPython. I mean, I don't get how something that's translated into C can be faster than the handcoded C version? Thanks, Ray > > Luis -- http://mail.python.org/mailman/listinfo/python-list

Re: Guido at Google

2005-12-22 Thread Ray
EP wrote: > Congrats, Guido. Thanks for Python and may your future at Google be bright. Congrats to BDFL too--may the future of his and his creation be bright indeed! Ray > > > EP -- http://mail.python.org/mailman/listinfo/python-list

Re: Please enlighten me about PyPy

2005-12-22 Thread Ray
Luis M. González wrote: > Well, first and foremost, when I said that I leave the door open for > further explanations, I meant explanations by other people more > knowlegeable than me :-) Thanks for clearing up some of my confusion with PyPy, Luis! Cheers, Ray -- http://mail.p

Re: Please enlighten me about PyPy

2005-12-22 Thread Ray
Carl Friedrich Bolz wrote: > Hi! > > some more pointers in addition to the good stuff that Luis wrote... Thanks Carl! That solidified my mental picture of PyPy a lot more :) Warm regards, Ray -- http://mail.python.org/mailman/listinfo/python-list

Re: Microsoft IronPython?

2006-01-03 Thread Ray
they keep diverging further and further. Still I'm very excited about IP--it's the best thing to happen in a long while, especially with Jython moving so slow these days... Ray Luis M. González wrote: > Ironpython has been in development from awhile, and now it's in beta >

Re: Microsoft IronPython?

2006-01-03 Thread Ray
Luis M. González wrote: > > IronPython as it is now is already slightly different from CPython > > isn't it? Because it has to capture features of CLR languages that are > > not in Python (such as using generic containers). > > Hmm... I'm not sure what you mean by "capture features of CLR". > I th

Re: Microsoft IronPython?

2006-01-04 Thread Ray
Kay Schluehr wrote: > At least for Jython we already know from the Jython homepage that it is > the great hope of the Java platform to survive in future and far > beyond. Yeah except that it's coming on so slow... we were doing some scripting for our Java app and Groovy won because Jython has been

Re: Microsoft IronPython?

2006-01-04 Thread Ray
ty was still working on the *language > definition* in November 2005 and has yet to deliver a stable final release. Yeah, I know, I know... but I'm not the only voice in the team, mind. If it were up to me it'd be Jython for sure... Ray -- http://mail.python.org/mailman/listinfo/python-list

Re: Microsoft IronPython?

2006-01-04 Thread Ray
Luis M. González wrote: > I'm not en expert on the subject, but I guess that any language > implementation running on .Net should be able to at least "understand" > generics or any other feature available on this framework, because > languages are supposed to interact and use all kinds of classes a

Re: Microsoft IronPython?

2006-01-07 Thread Ray
Max M wrote: > First of they would need to make Python a strategic platform for > corporations, so that it was used practically everywhere on Windows. Actually, if Python gets used everywhere on Windows, I'll be happy, pure Python or no pure Python :) Visual Python 2010 anyone? -- http://mail.p

Help me in this please--is Python the answer?

2006-01-11 Thread Ray
erience, in the end, did you find Python suitable at all for this domain or you think you should have stuck to J2EE? What are the pros and cons you discovered? (I'd love to develop in Python and get paid for it finally, but at the same time I do want to give the money guy the best value

Re: Help me in this please--is Python the answer?

2006-01-12 Thread Ray
t; > even if you fail, you will have spent your days in a happy state. Yeah, I have the chance to do that if I manage to get this through, but at the same time I do want to give the guy who funds us the best value possible for his money. (If--If--it means I have to use J2EE, I will do it.) Thanks, Ray > > Ed -- http://mail.python.org/mailman/listinfo/python-list

Re: Help me in this please--is Python the answer?

2006-01-12 Thread Ray
Tim N. van der Leeuw wrote: > Hi Ray, Hi Tim! > I'm in a bit of the same boat as you only I don't get to choose my > implementation language ;-) > > Some of the concerns should be: > - Do you have to interface with things like messaging-systems (a la JMS >

Re: Help me in this please--is Python the answer?

2006-01-12 Thread Ray
Very useful input, Adrian. Thanks a lot! These are facts that I can use to convince people that Python is a legit choice for the app I'm developing. Warm regards, Ray Adrian Holovaty wrote: > Ray wrote: > > Yes, but this is more of a web application though--something that

Re: Help me in this please--is Python the answer?

2006-01-13 Thread Ray
t there! :) > You may also want to have a look at turbogears (roughly similar to > Django, but probably much more flexible) Hmm--much more flexible in what sense, Bruno? Thanks much! Ray > > My 2 cents > -- > bruno desthuilliers > python -c "print '@'.join([&#

Re: Help me in this please--is Python the answer?

2006-01-13 Thread Ray
t; poor design decisions regarding the importance of performance." > > (you all know all the counter-arguments) Does the comparison between dynamic and static language carry over to comparison between Django and Turbogear too? Is this what is meant by "Turbogear is much mor

Re: Using python code from Java?

2006-07-20 Thread Ray
fortepianissimo wrote: > > Waiting for jython2.3 might be an option, too - things are pretty much > > on the move right now. > > Any idea how soon that will be? If you just want to use Java to call Python, you can use Jython 2.1 too. Jython 2.2 is in (active) development right now, and hopefully a

Need a compelling argument to use Django instead of Rails

2006-07-24 Thread Ray
7;t tried RoR so I can't argue meaningfully on whether using Django will put us at an advantage. Can you help me with my argument? Meanwhile I think I'll give RoR a try as well. Thank you, Ray -- http://mail.python.org/mailman/listinfo/python-list

Re: Need a compelling argument to use Django instead of Rails

2006-07-24 Thread Ray
n maker, is a separate matter isn't it? Do you know of any other arguments, or you do think that for somebody who really, really doesn't care about which language, either RoR/Ruby or Django/Python will do just fine? Cheers Ray > >http://sethgodin.typepad.com/seths_blog/20

Re: Need a compelling argument to use Django instead of Rails

2006-07-24 Thread Ray
BTW the link below is good reading! Thanks Steve! Steve Holden wrote: >http://sethgodin.typepad.com/seths_blog/2005/08/i_changed_my_mi.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Need a compelling argument to use Django instead of Rails

2006-07-24 Thread Ray
Tim Heaney wrote: > "Ray" <[EMAIL PROTECTED]> writes: > > > > Can you help me with my argument? > > Well, there is this study suggesting Django outperforms Ruby on Rails > > http://wiki.rubyonrails.com/rails/pages/Framework+Performance > >

Re: Need a compelling argument to use Django instead of Rails

2006-07-24 Thread Ray
Thanks Sybren for the reply! Regarding this point: > The form handling is also excellent. Is it excellent in a way that's "better" than RoR in certain ways? Regards, Ray Sybren Stuvel wrote: > Ray enlightened us with: > > Two of the senior developers, however, are

Re: Need a compelling argument to use Django instead of Rails

2006-07-24 Thread Ray
ou get "off the beaten track" it gets > difficult to cope with complex existing databases. Hi Steve, Thanks for the reply! Regarding "running out of steam", well... we've been using Struts + Spring + Hibernate on the Java side, so yeah, we're quite used to molding

Re: Need a compelling argument to use Django instead of Rails

2006-07-24 Thread Ray
much with it. You mean the alpha? They're rushing for a beta now that'll bring Jython to 2.2, I hope it'll come out soon. But yeah, compared to IronPython (2.4 compliant, halfway to 2.5 even), it's pretty behind. But things are changing the development seems to be

When is Django going to...

2006-07-25 Thread Ray
t going to make it into any release any time soon? Thanks Ray -- http://mail.python.org/mailman/listinfo/python-list

Re: When is Django going to...

2006-07-25 Thread Ray
Bruno Desthuilliers wrote: > Ray wrote: > > support Oracle and MS SQL Server? I just realized that's gonna be a big > > blow for my case against RoR because we use both databases almost > > exclusively, we don't use any of Django supported database actually. > &

Re: Need a compelling argument to use Django instead of Rails

2006-07-26 Thread Ray
Kay Schluehr wrote: > Aren't they "rushing" for years? The last update of the Jython news > page is from march 2005. This is not very encouraging even if there is > a secret life of Jython. Yeah I know... but I've been subscribing to jython-dev for quite sometime, and the activity there is surely

Re: Need a compelling argument to use Django instead of Rails

2006-07-26 Thread Ray
Damjan wrote: > BTW I'd choose TurboGears for it's flexibility, but I guess Django could be > nice when more rapid results are needed (and the problem doesn't fall too > far from the Django sweet spot). Well actually I was thinking of exaclty the same thing, because our apps are mostly CRUD apps

Re: Need a compelling argument to use Django instead of Rails

2006-07-26 Thread Ray
John J. Lee wrote: > I get that overall impression of Django too (as being more tightly > coupled to itself, hence less flexible, when compared with TurboGears > in particular). I haven't done much with it yet, though (and > presumably the 'magic-removal' branch landing did some good). > > What do

Re: Need a compelling argument to use Django instead of Rails

2006-07-26 Thread Ray
Jaroslaw Zabiello wrote: > >> Ruby > >> has nice security system (private, protected, public scopes for methods and > >> attributes, > > > > This is not "security", this is data-hiding. > > No. Data hiding are in Python. Ruby uses security similiar to Java. If the > class has method marked as priva

Re: Newbie Q: Class Privacy (or lack of)

2006-07-26 Thread Ray
eally bought that argument--I guess I've been doing Java too long :) Cheers Ray Steve Jobless wrote: > Sybren Stuvel wrote: > > > > Steve Jobless enlightened us with: > > > The first case can be just a typo, like: > > > > > > x.valeu = 5 > >

Re: Newbie Q: Class Privacy (or lack of)

2006-07-27 Thread Ray
Sybren Stuvel wrote: > Ray enlightened us with: > > Also having to check whether a name has already existed can be a > > major pain in the butt with Python. With Java you always know when a > > name has already existed, and what type is bound to the name. I > > consi

Re: Newbie Q: Class Privacy (or lack of)

2006-07-27 Thread Ray
Sybren Stuvel wrote: > Ray enlightened us with: > > Huh? No. The compiler will always tell you. Have you ever tried Java > > before? > > I know what I'm talking about, I've got a degree in Computer Science > from the University of Amsterdam. Then how come you

Re: Newbie Q: Class Privacy (or lack of)

2006-07-27 Thread Ray
John Machin wrote: > Ray wrote: > > > The argument against this is that since development with Python is so > > rapid, you're supposed to always equip your code with extensive unit > > tests. I like Python but I've never really bought that argument--I >

Re: Newbie Q: Class Privacy (or lack of)

2006-07-27 Thread Ray
Bruno Desthuilliers wrote: > Ray wrote: > Ray, please, don't top-post Um, top-post? I'm using Google News and it looks like it is placed correctly in the thread... or you're referring to a different thing? Ray -- http://mail.python.org/mailman/listinfo/python-list

Re: Re:[OT] Newbie Q: Class Privacy (or lack of)

2006-07-27 Thread Ray
Bruno Desthuilliers wrote: > Ray wrote: > > Bruno Desthuilliers wrote: > > > >>Ray wrote: > >>Ray, please, don't top-post > > > > > > Um, top-post? I'm using Google News and it looks like it is placed > > correctly

Re: Why XP can not run Python after being setting the PATH?

2006-07-27 Thread Ray
By any chance the command window hasn't been restarted after you've changed the PATH? Strange that looks OK. If you do echo %PATH% what does it tell you, is Python there? Cheers Ray Daniel Mark wrote: > Hello all: > > I have set the PATH for Python as follows: > >

Re: Newbie Q: Class Privacy (or lack of)

2006-07-28 Thread Ray
s decision). So going back to the original example, you won't be able to say: x.func = 789 and destroy the function func--Python will raise an error. Instead you have to type a different syntax to tell Python that yes, I do want to overwrite a function with 789. Dunno, just throwing ou

Re: Newbie Q: Class Privacy (or lack of)

2006-07-28 Thread Ray
Ben Sizer wrote: > Ray wrote: > > Actually Bruno, don't you think that the notion of flexibility in > > Python comes at the expense of "security" is simply due to the fact > > that the syntax of "screw up" is exactly the same as the synt

Re: Newbie Q: Class Privacy (or lack of)

2006-07-28 Thread Ray
Bruno Desthuilliers wrote: > Ray wrote: > > Bruno Desthuilliers wrote: > > Actually Bruno, don't you think that the notion of flexibility in > > Python comes at the expense of "security" is simply due to the fact > > that the syntax of "screw up&qu

Re: Newbie Q: Class Privacy (or lack of)

2006-07-28 Thread Ray
Ben Sizer wrote: > Ray wrote: > But remember, at no point did they think to make that stuff > deliberately hard so that it would give you safety. It's hard because > the implementation is relatively complex. The flipside of that is > writing function objects in C++, which are

Re: Need a compelling argument to use Django instead of Rails

2006-07-28 Thread Ray
Ben Sizer wrote: > Roman Susi wrote: > > Ben Sizer wrote: > > > The problem is that Python is the 2nd best language for everything. ;) > > > > Is it a bad thing? > > I don't know. I suppose that depends on how you define 'bad'! For me, > it is often inconvenient, because I'd prefer to use Python b

Re: Need a compelling argument to use Django instead of Rails

2006-07-28 Thread Ray
Ben Sizer wrote: > a minimal layer over the C interface anyway. DirectX support only > appeared this year unless you used IronPython, and it doesn't seem very > popular. IronPython is not released yet, I do hope it will become popular though. It's in RC1 now and should be released soon. I'm really

Re: first book about python

2006-08-01 Thread Ray
edition of Python will your latest Core Python cover? Will it cover 2.5? Thanks Ray -- http://mail.python.org/mailman/listinfo/python-list

Installed correctly

2006-08-13 Thread Ray
I've just installed Python 2.4.3 on windows 2000. On the download page it says that if python is installed the version number will be displayed if you enter "python" in a command line window, but that does not happen - it just says "unrecognized command". Rebooting does not help. So is it correc

Re: Python and STL efficiency

2006-08-21 Thread Ray
build your C++ executable... HTH, Ray Licheng Fang wrote: > Hi, I'm learning STL and I wrote some simple code to compare the > efficiency of python and STL. > > //C++ > #include > #include > #include > #include > #include > using namespace std; > >

Re: Python and STL efficiency

2006-08-21 Thread Ray
Fredrik Lundh wrote: > in the Python example, the four strings in your example are shared, so > you're basically copying 4 pointers to the list. > > in the C++ example, you're creating 4 string objects. > > In which case, Licheng, you should try using the /GF switch. This will tell Micros

Re: Python and STL efficiency

2006-08-22 Thread Ray
Fredrik Lundh wrote: > Ray wrote: > > >> in the C++ example, you're creating 4 string objects. > > > > In which case, Licheng, you should try using the /GF switch. This will > > tell Microsoft C++ compiler to pool identical string literals together

Re: Python and STL efficiency

2006-08-22 Thread Ray
Tim N. van der Leeuw wrote: > > In which case, Licheng, you should try using the /GF switch. This will > > tell Microsoft C++ compiler to pool identical string literals together. > > > > > > :) > > The code still creates a new string - instance each time it tries to > append a const char* to the v

Re: Python and STL efficiency

2006-08-22 Thread Ray
Tim N. van der Leeuw wrote: > Incidentally, I also have a version compiled with VC++ 6 now... (not > yet w/VC++ 7) .. Compiled with release-flags and maximum optimization > for speed, here's the result of VC++ 6: OK, now I'm getting obsessed with this too ;-) I'm using VC++ Express, I didn't ca

Re: Python and STL efficiency

2006-08-22 Thread Ray
[EMAIL PROTECTED] wrote: > That's to say, > python is still much faster? Not really, see my test, in my other post in the same thread. I'm using VC++ Express 2005. If we're comparing with Python 2.5 I think it's just fair that for C++ we're using the latest as well. > I am a c++ newbie but I thin

Re: Python and STL efficiency

2006-08-23 Thread Ray
Mc Osten wrote: > Ray <[EMAIL PROTECTED]> wrote: > > > I'm using VC++ Express, I didn't care to tweak the optimizations, I > > merely chose the "Release" configuration for the executable. It's > > blazing fast, taking only 30+ ms each run. &

  1   2   3   4   >