Re: Application Generators

2006-07-22 Thread walterbyrd
Steve Hannah wrote: > I know that this is an older thread, but I came across it on Nabble.com. > Just wanted add some updated info on Walter's observations about Dataface > (http://fas.sfu.ca/dataface) . It is much further along in development now > and it does support authentication now. > Than

easy questions from python newbie

2006-07-23 Thread walterbyrd
This is the first real python program I have ever worked on. What I want to do is: 1) count identical records in a cvs file 2) create a new file with quantities instead duplicate records 3) open the new file in ms-excel For example, I will start with a file like: 1001 1012 1008 1012 1001 1001 an

Re: easy questions from python newbie

2006-07-24 Thread walterbyrd
Thanks to all who replied. As I mentioned, I am new to python. I will have to look some of this stuff, but that is fine. I am trying to learn. I am sorry I forgot to mention, the platform is windows-xp. I am doing this for a client who has a small warehouse operation. Personally, I usually use de

Accessing files on a PocketPC device

2006-07-25 Thread walterbyrd
I want my python app to read a file from a pocketpc mobile device, if possible. Assume I am running windows-xp, and activesync 3.8. Assume I have "exported" the file. As I understand it, exported files are not really on the PC, even after syncing. You have to use your stylus on the PDA to get to

wxPython for web development?

2006-10-29 Thread walterbyrd
I assume that wxWidgets can not be used if all you have is mod-python? -- http://mail.python.org/mailman/listinfo/python-list

is mod_python borked?

2006-11-02 Thread walterbyrd
I am considering python, instead of php, for web-application development. I often see mod_python.criticisized as being borked, broken, or just plain sucking. Any truth to any of that? -- http://mail.python.org/mailman/listinfo/python-list

Re: is mod_python borked?

2006-11-02 Thread walterbyrd
Shreekar Patel wrote: > No, I've been using mod_python for a long time, and I haven't run in to > any problems. In fact I use python server pages for my web development, > which is much faster than python cgi scripts. > Researching further, it looks to me like mod_python may only work well on ap

Re: is mod_python borked?

2006-11-02 Thread walterbyrd
[EMAIL PROTECTED] wrote: > One of the biggest problems is that a lot of ISPs still use Apache 1.3 > and so only mod_python 2.7.X is available on those platforms. Yes, I think that is a big problem. I don't think django or turbogears will work with apache 1.3. And it seems to me that practically

Python v PHP: fair comparison?

2006-11-14 Thread walterbyrd
I don't know if this is a fair comparison or not. Any comments appreciated. - Python is more readable, and more general purpose - PHP has awful backward compatibility - PHP has a lower barrier to entry - Most inexpensive web-hosters support PHP, but not Python - PHP has far more pre-writen scripts

Re: Python v PHP: fair comparison?

2006-11-15 Thread walterbyrd
Luis M. González wrote: > the new crop of web frameworks (Django, Turbo Gears, etc...). > > > - Newer versions of mod_python require Apache 2.0, which few hosters > > have > > You can also get alder versions of mod_python. What's the problem? The problem is that the system requirements for django

Re: Python v PHP: fair comparison?

2006-11-15 Thread walterbyrd
Larry Bates wrote: > I'd be surprised if there was more demand for PHP developers > than Python developers. Prepare to be surprised. From what I have seen demand for PHP developers is off-the-scale higher than demand for Python developers. If you search the job boards, then -IMO- it is only fai

Re: Python v PHP: fair comparison?

2006-11-15 Thread walterbyrd
Bjoern Schliessmann wrote: > walterbyrd wrote: > > > - PHP has a lower barrier to entry > > Which kind of barrier do you mean -- syntax, availability, ...? > Putting php into a web-site is as easy as throwing some php code into a my html file, and maybe giving the file a php

Re: Python v PHP: fair comparison?

2006-11-15 Thread walterbyrd
Michael Torrie wrote: > Absolutely false. Most of my standalone, command-line scripts for > manipulating my unix users in LDAP are written in PHP, although we're > rewriting them in python. > I would say that you are one of very few who use PHP for sys-admin tasks - and even you have switched t

Will GPL Java eat into Python marketshare?

2006-11-15 Thread walterbyrd
Some think it will. Up untill now, Java has never been standard across different versions of Linux and Unix. Some think that is one reason that some developers have avoided Java in favor of Python. Now that Java has been GPL'd that might change. IMO: it won't make much difference. But I don't rea

Re: Python v PHP: fair comparison?

2006-11-15 Thread walterbyrd
Bruno Desthuilliers wrote: > walterbyrd a écrit : > You mean there are web hosting companies that are still using Apache > 1.3.x ? > Practically all web-hosters still use Apache 1.3.x. Certainly all of the lower priced hosters. > C'mon, let's be serious. I just or

Re: Python v PHP: fair comparison?

2006-11-15 Thread walterbyrd
Gabriel Genellina wrote: > - php sucks :) > I think that it's such a braindead > language which turns people into braindead programmers :) > > In fairness, a lot of very serious work is done in PHP. I think yahoo and other major web-sites use php. I have issues with PHP as well. They will break

Re: Python v PHP: fair comparison?

2006-11-16 Thread walterbyrd
James Cunningham wrote: > Nope. It disproves your assertion that "certainly all of the lower > priced hosters" use Apache 1.3. Okay, where can I get Python and Apache 2.X for $10 a year? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python v PHP: fair comparison?

2006-11-16 Thread walterbyrd
Tim Chase wrote: > I can't say I've come across any hosting places that serve up PHP > for $10/yr either...the closest I've found is about $3.50/mo > (which also provides Python CGI). dollar-hosting.net offers php5 and python 2.3, for $10 a year. the-protagonist.net has PHP 4.4 hosting for $10

does anybody earn a living programming in python?

2006-09-25 Thread walterbyrd
If so, I doubt there are many. I wonder why that is? -- http://mail.python.org/mailman/listinfo/python-list

Re: does anybody earn a living programming in python?

2006-09-25 Thread walterbyrd
> > Well I do. So do the other dozen or so developers at my company. We're looking > to hire a few more, in fact. > I'm surprised. It seems I never see listings for python developers. I didn't mean any disrespect. I think python is a great language. It just doesn't seem like there is much demand

Re: does anybody earn a living programming in python?

2006-09-26 Thread walterbyrd
Fredrik Lundh wrote: > someone just posted this > > > Site Perl Python > > Hotjobs 2756 655 > > Monster >1000 317 > > Dice 4828 803 > >From what I have seen, most of listings are not for python developers. Rather they list python as a "nice t

Re: does anybody earn a living programming in python?

2006-09-26 Thread walterbyrd
Max M wrote: > walterbyrd skrev: > > If so, I doubt there are many. > > > > I wonder why that is? > > Because you are ignorant? In this particular subject: yes. My research of this subject was very limited, just looked at the major job boards, and compared demand for

Python v PHP for web, and restarting Apache?

2006-11-17 Thread walterbyrd
I think I have read somewhere that using Python to develop web-applications requires some restarting of the Apache server, whereas PHP does not. Also, I seem to remember reading something about PHP being able to recover from Apache restarting more easily than Python. I am not trying to suggest a

What do I look for in a shared Python host?

2006-11-17 Thread walterbyrd
For example: - If I want to use Django, I need either FastCGI or Apache 2.X/mod_python 3.x - if I want to use TurboGears, I need Python 2.4: not 2.3 and not 2.5 - I have just learned that some hosters have T&Cs that forbid long running processes. I am not sure exactly what that means. Except I u

Re: Python v PHP for web, and restarting Apache?

2006-11-18 Thread walterbyrd
[EMAIL PROTECTED] wrote: > > Python is much better suited to writing and mainting large web > applications though. > I have to ask: why is that? Because Python is more readable? Because Python runs faster? Is Python more stable for large scale applications? Does this apply when using Python with

Re: Python v PHP for web, and restarting Apache?

2006-11-18 Thread walterbyrd
Fredrik Lundh wrote: > > modularity, modularity, and modularity. > Can't PHP be made to be just as modular? As a matter of popular practise, I suppose that is not done. I would think that it could be. My big problem with PHP is the lack of backward compatibility. My big problem with Python is

Re: Trying to understand Python objects

2006-11-22 Thread walterbyrd
Thanks everybody. I will sort all of this out, but right now my head is spinning. Is there some book, or other reference, that explains of this? I was thinking about "Python for Dummies." The "Think like a Computer Scientist" book, and "Dive into Python" book don't seem to explain Python's object

Is PyGTK only for local - not web?

2006-11-27 Thread walterbyrd
I have noticed that there is also pygtk-web project, I suppose that is what you use for the web? -- http://mail.python.org/mailman/listinfo/python-list

Who uses Python?

2007-06-04 Thread walterbyrd
I mean other than sysadmins, programmers, and web-site developers? I have heard of some DBAs who use a lot of python. I suppose some scientists. I think python is used in bioinformatics. I think some math and physics people use python. I suppose some people use python to learn "programming" in g

Re: Who uses Python?

2007-06-05 Thread walterbyrd
On Jun 5, 3:01 am, Maria R <[EMAIL PROTECTED]> wrote: > I tend to agree with some earlier poster that if you use Python you > are, in a sense, a programmer :o) > Yes, in a sense. But, in another sense, that is sort of like saying that people who post on message boards are "writers." I should have

What's with "orange" ??

2007-06-16 Thread walterbyrd
The maker of the skeletonz python based CMS, amonge other things: http://orangoo.com/skeletonz/ One of the few hosts that really provides good support for django: http://asmallorange.com/ The python component-based data mining software: http://www.ailab.si/orange -- http://mail.python.org/ma

Re: Newbie question: how to get started?

2007-06-16 Thread walterbyrd
On Jun 16, 8:48 pm, ed <[EMAIL PROTECTED]> wrote: > Hi, > > I'm interested in starting to learn python. I'm looking for any > reccomendations or advice that I can use to get started. Looking > forward to any help you can give! > > Thanks! > > -e Here are two very well regarded online books - bot

newbie opinion: easygui rocks

2007-06-19 Thread walterbyrd
I barely even know how to program in python. I downloaded this easygui, and I was writing useful gui application within a few minutes. I can hardly believe it. Any other noobs here, you may want to give this a try. http://www.ferg.org/easygui/ -- http://mail.python.org/mailman/listinfo/python-l

Collections of non-arbitrary objects ?

2007-06-21 Thread walterbyrd
Python seems to have a log of ways to do collections of arbitrary objects: lists, tuples, dictionaries. But what if I want a collection of non-arbitrary objects? A list of records, or something like that? -- http://mail.python.org/mailman/listinfo/python-list

Re: Collections of non-arbitrary objects ?

2007-06-22 Thread walterbyrd
On Jun 21, 5:38 pm, Ben Finney <[EMAIL PROTECTED]> wrote: > That's a flippant response, but I don't understand the question. Everybody here seems to have about the same response: "why would you ever want to do that?" Maybe it's something that doesn't "need" to be done, but it seems to me that wo

Re: Collections of non-arbitrary objects ?

2007-06-23 Thread walterbyrd
On Jun 22, 11:43 pm, Ben Finney <[EMAIL PROTECTED]> wrote: > Can you help us understand, by showing a use case that would in your > estimation be improved by the feature you're describing? > Suppose you are sequentially processing a list with a routine that expects every item to be of a certain t

Re: Collections of non-arbitrary objects ?

2007-06-25 Thread walterbyrd
On Jun 24, 10:31 pm, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > > Especially since variables in python do not have to be explicitly > > assigned > > ??? I have probably expressed this incorrectly. What I meant was: >>> a = [1,2,3] >>> b = a >>> a[1] = 'spam' Here, I have changed b, withou

Re: Collections of non-arbitrary objects ?

2007-06-26 Thread walterbyrd
> > On Jun 24, 10:31 pm, Bruno Desthuilliers > > <[EMAIL PROTECTED]> wrote: > > You perhaps don't know this, but most statically typed languages have > the notion of either pointers or references, that can cause similar - > and usually worse - problems. > Yes, but those languages also have the not

Re: Collections of non-arbitrary objects ?

2007-06-27 Thread walterbyrd
On Jun 26, 8:23 am, Bruno Desthuilliers wrote: > walterbyrda écrit : > > >> You do program carefully, don't you ?-) > > > I try. But things like typos are a normal part a life. > > So are they in any language. I fail to see much difference here. > For example: if I mis-type a variable name in C,

Re: Collections of non-arbitrary objects ?

2007-06-28 Thread walterbyrd
> > Did you try to sort a tuple ? > > >>> (1, "aaa").sort() > Traceback (most recent call last): >File "", line 1, in ? > AttributeError: 'tuple' object has no attribute 'sort' I can do this: >>> x = (3,2,1) >>> x = tuple(sorted(list(x))) Which, although senseless, effectively sorts the x t

Does Python work with QuickBooks SDK?

2007-07-04 Thread walterbyrd
My guess is that it would, but I can find no mention of python in the intuit developers site. I can find some references to PHP and Perl, but no Python. I looks to me like Intuit develops have a strong preference for visual- basic, then c/c++, then delphi. I find it just a little bit surprising,

Re: Does Python work with QuickBooks SDK?

2007-07-04 Thread walterbyrd
Thanks to Greg and Mike. I am not looking for specifics right now. I was just wondering if there was a practical way to do use python to integrate with intuit apps. Apparently, there is. -- http://mail.python.org/mailman/listinfo/python-list

Can python find HW/SW installed on my PC - like Belarc?

2007-04-30 Thread walterbyrd
Lets suppose, I want a listing of what hardware and software is installed on my windows box. Can I do that with Python? -- http://mail.python.org/mailman/listinfo/python-list

Can I use Python instead of Joomla?

2007-05-02 Thread walterbyrd
If I wanted to build a website with forums, news feeds, galleries, event calander, document managment, etc. I do so in Joomla easily. But, I would perfer to use django/python, if that would be at all practical. I suppose I could put python scripts into django, if those scripts exist. -- http://

Re: Can I use Python instead of Joomla?

2007-05-03 Thread walterbyrd
On May 2, 5:38 pm, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > You're mixing apples, fishes, and cars here. Joomla is a content > management system, Django a framework and Python a language. Yes, I know, but they are all ways to create a website. If I wanted a site which included galleries,

Re: Can I use Python instead of Joomla?

2007-05-03 Thread walterbyrd
On May 3, 11:08 am, Bruno Desthuilliers wrote: > I'm not sure integrating CakePHP stuff into something like Joomla or > Drupal will be that easy. I don't know either. But, there are projects called "jake" and "drake" which are specifically geared toward intergrating cakephp with joomla and drupa

Re: Can I use Python instead of Joomla?

2007-05-03 Thread walterbyrd
On May 3, 7:49 pm, John Draper <[EMAIL PROTECTED]> wrote: > I admit, Joomla is easy to use I admit, but very easy to vector into > a root exploit. I had no idea. Thank you for posting that. One thing I really like about joomla is the 1600+ extensions. But, I don't need those kinds of security

Newbie look at Python and OO

2007-05-10 Thread walterbyrd
I learned to program with Pascal, way back when. Went into software development for a while, then went into systems admin. Have programmed in several languages, just learning Python. Some things I find odd: 1) 5/-2 == -3? 2) list assignment handling, pointing two vars to the same list: With sim

Re: Newbie look at Python and OO

2007-05-10 Thread walterbyrd
Thanx for all the replies, I may be slowly getting it. But, can anybody explain this? >>> a = 'hello' >>> b = 'hello' >>> a is b True >>> a = 'hello there' >>> b = 'hello there' >>> a is b False -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie look at Python and OO

2007-05-10 Thread walterbyrd
Nevermind my previous question. I found the answer in "Learning Python" >> Python internally caches and reuses short strings as an optimization, there really is just a single string, 'spam', in memory, shared by S1 and S2; hence, the is identity test reports a true result. To trigger the normal be

Re: Newbie look at Python and OO

2007-05-11 Thread walterbyrd
> He's thinking in Pascal, not C. > Actually, I have programmed in many languages. I just first learned in Pascal. For me, going from Pascal, to basic,c,cobol,fortran . . was not that difficult. Python, however, feels strange. As crazy as this may sound: Python, in some ways, reminds me of asse

Re: Newbie look at Python and OO

2007-05-12 Thread walterbyrd
> > You started this thread with a list of conceptual problems you were > having. Are they now cleared up? > Yes. Thank you, and everybody else. I'm still learning, and still getting used to Python. But, I understand the concepts that I was having trouble with before. -- http://mail.python.org

How to do basic CRUD apps with Python

2007-05-13 Thread walterbyrd
With PHP, libraries, apps, etc. to do basic CRUD are everywhere. Ajax and non-Ajax solutions abound. With Python, finding such library, or apps. seems to be much more difficult to find. I thought django might be a good way, but I can not seem to get an answer on that board. I would like to put t

How do I count the number of spaces at the left end of a string?

2007-05-16 Thread walterbyrd
I don't know exactly what the first non-space character is. I know the first non-space character will be * or an alphanumeric character. -- http://mail.python.org/mailman/listinfo/python-list

How do I tell the difference between the end of a text file, and an empty line in a text file?

2007-05-16 Thread walterbyrd
Python's lack of an EOF character is giving me a hard time. I've tried: - s = f.readline() while s: . . s = f.readline() and --- s = f.readline() while s != '' . . s = f.readline() --- In both cases, the loop ends as soon it encounters an empty line in the file, i.e. xx

how do I count spaces at the beginning of a string?

2007-05-16 Thread walterbyrd
The strings start with whitespace, and have a '*' or an alphanumeric character. I need to know how many whitespace characters exist at the beginning of the string. -- http://mail.python.org/mailman/listinfo/python-list

In a text file: how do I tell the EOF, from a blank line?

2007-05-16 Thread walterbyrd
How do I test for the end of a file, in such a why that python can tell the EOF from a blank line? -- http://mail.python.org/mailman/listinfo/python-list

Re: In a text file: how do I tell the EOF, from a blank line?

2007-05-17 Thread walterbyrd
On May 16, 10:12 pm, Grant Edwards <[EMAIL PROTECTED]> wrote: > On 2007-05-17, walterbyrd <[EMAIL PROTECTED]> wrote: > > This has already been explained to you by at least 5 different > people -- complete with examples. Sorry about dual posting. I am using google groups.

No Python for Blackberry?

2007-05-18 Thread walterbyrd
I could not find a version of Python that runs on a Blackberrry. I'm just amazed. A fairly popular platform, and no Python implementation? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python compared to other language

2007-05-18 Thread walterbyrd
On May 18, 2:17 pm, Larry Bates <[EMAIL PROTECTED]> wrote: > Python is Portable - C is probably the only more portable language Small quibble: IMO, although C runs on many platforms, I don't think C code is typically portable between platorms. Unless you are doing something very simple. If you wr

Re: Python compared to other language

2007-05-18 Thread walterbyrd
On May 18, 8:28 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > Surely the fact that Python is available on so many platforms implies > that C is a fairly portable language. Unless it's the same C code, I don't see how that means anything. If I write an app on Windows with C, and I rewrite the same

Re: Python compared to other language

2007-05-18 Thread walterbyrd
On May 18, 10:24 pm, [EMAIL PROTECTED] (Alex Martelli) wrote: > > I think that Ruby, which roughly speaking sits somewhere between Python > and Perl, is closer to Python than Perl is. I don't know much about Ruby, but it does not seem to be commonly used for anything other than web-development. I

Re: Python compared to other language

2007-05-19 Thread walterbyrd
On May 19, 7:23 am, Steve Holden <[EMAIL PROTECTED]> wrote: > The reason you can do this with Python is precisely because the > developers have ironed out the wrinkles between platforms by putting the > requisite conditionals in the C source. But that is my point. With Python, the language itself

Re: Python compared to other language

2007-05-19 Thread walterbyrd
On May 19, 9:36 am, [EMAIL PROTECTED] (Alex Martelli) wrote: > > From these numbers it would seem that Ruby (and PHP) aren't really more > web-specific than Perl (and Python). > Excellent find, nice work. However, if it is found that there are "X" many PHP programs running payroll applications, do

Re: Why PHP is so much more popular for web-development

2007-07-25 Thread walterbyrd
On Jul 25, 2:12 pm, Carsten Haese <[EMAIL PROTECTED]> wrote: > Also, CherryPy's requirements are very > minimal. In terms of memory and CPU, maybe. But I think that *requires* apache 2.x and a very recent version of mod_python. By web-hosting standards, those are very steep requirements. -- h

Re: Why PHP is so much more popular for web-development

2007-07-25 Thread walterbyrd
On Jul 25, 2:10 pm, Jeff <[EMAIL PROTECTED]> wrote: > I can tell you exactly why PHP > is so popular: it acts as an extension of HTML and is syntactically > similar to Perl. > Although, that can lead to problems, if you're not careful: Perl: my $x = 5 + 9000 || 1; # $x is 9005 PHP: $x = 5 + 900

Re: Why PHP is so much more popular for web-development

2007-07-26 Thread walterbyrd
On Jul 22, 12:17 am, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > Either you are a casual user with 101 web > development skills trying to set up your personal home page But this, sort of, brings me back to my original point. Nobody starts out being advanced. There are substantial difference

Re: Why PHP is so much more popular for web-development

2007-07-25 Thread walterbyrd
On Jul 25, 3:55 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > Jeff McNeil wrote: > > Unfortunately, I also find that PHP programmers are usually more > > plentiful than their Python counterparts. When thinking of staffing > > an organization, it's common to target a skill set that's cheaper to >

Why PHP is so much more popular for web-development

2007-07-25 Thread walterbyrd
"Once you start down the Dark path, forever will it dominate your desiny. Consume you, it will." - Yoda I'm fairly new to web-development, and I'm trying out different technologies. Some people wonder why PHP is so popular, when the language is flawed in so many ways. To me, it's obvious: it's bec

Re: Why PHP is so much more popular for web-development

2007-07-25 Thread walterbyrd
On Jul 25, 12:40 pm, Carsten Haese <[EMAIL PROTECTED]> wrote: > What exactly could Python learn from PHP? Remember, I'm a noob, I'm not trolling. When I posted "Python" I meant the Python web-developement world. In particular, python frameworks, like CherryPy, have requirements that are not real

Is it reasonably easy easy to something like this with python?

2007-08-28 Thread walterbyrd
This is made with a php5 framework called qcodo. http://examples.qcodo.com/examples/dynamic/inline_editing.php With qcodo it's easy to make grids that are sortable and inline editable. Qcodo grids work from the database - not an xml table or array. Qcodo handles complex data relations, and fairly

Re: Is it reasonably easy easy to something like this with python?

2007-08-28 Thread walterbyrd
On Aug 28, 1:31 pm, Gerardo Herzig <[EMAIL PROTECTED]> wrote: > walterbyrd wrote: > The one who make that table sorteable is AJAX. Not php. The php part is > kind of trivial (so it would be `trivial' in python too). It just reads > some data and format it in an html tabl

What's with "long running processes" ?

2007-09-18 Thread walterbyrd
I understand that Python has them, but PHP doesn't. I think that is because mod_php is built into apache, but mod_python is not usually in apache. If mod_python was built into apache, would python still have long running processes (LRP)? Do LRPs have to do with a Python interpreter running all t

Is hostmonster any good for hosting python?

2007-10-10 Thread walterbyrd
According to hostmonster's list of features, they do support python. Does anybody have any experience with hostmonster? -- http://mail.python.org/mailman/listinfo/python-list

Re: Is hostmonster any good for hosting python?

2007-10-11 Thread walterbyrd
I should have mentioned, I am thinking about using a python framework, either django, turbogears, or pylons. I think these frameworks require a newer version of python, maybe 2.4. Also, I think some of them require a newer version of Apache - 2.0 or better. I also think these python frameworks all

SDTimes - Trends From 2007: "Dynamic languages are on the rise."

2007-12-27 Thread walterbyrd
This according to SDTimes: http://www.sdtimes.com/article/story-20071215-13.html They don't specifically mention Python. But, I think Python qualifies as a dynamic language. "1. Dynamic languages are on the rise. We went into 2007 knowing that Ruby would be a popular topic, thanks to Ruby on Rai

Trying to understand Python web-development

2008-01-29 Thread walterbyrd
I don't know much php either, but running a php app seems straight forward enough. Python seems to always use some sort of development environment vs production environment scheme. For development, you are supposed to run a local browser and load 127.0.0.1:5000 - or something like that. Then to ru

Re: Trying to understand Python web-development

2008-01-30 Thread walterbyrd
Thanks for all that posts. This thread has been helpful. I have seen a lot of posts about the importance of decoupling the deployment technologies from the framework technologies. This is how I have done that in PHP. I develop on my home box. When I get something working the way I want, I ftp thos

Can I load a python program at the interactive >>> prompt?

2008-12-05 Thread walterbyrd
I am running cygwin on xp. Much to my annoyance, I can not cut-and-paste from a windows app to the python prompt. I think I could do this with putty, but I do not have the permissions to install putty on my xp box. Can I load a file into the python interactive environment? For example I have a f

Is 3.0 worth breaking backward compatibility?

2008-12-07 Thread walterbyrd
IMO: breaking backward compatibility is a big deal, and should only be done when it is seriously needed. Also, IMO, most of, if not all, of the changes being made in 3.0 are debatable, at best. I can not think of anything that is being changed that was really a "show stopper" anyway. At best, I a

Re: Is 3.0 worth breaking backward compatibility?

2008-12-11 Thread walterbyrd
On Dec 7, 12:35 pm, Andreas Waldenburger <[EMAIL PROTECTED]> wrote: > Plze. Python 3 is shipping now, and so is 2.x, where x > 5. Python > 2 is going to be around for quite some time. What is everybody's > problem? A possible, potential, problem, could arise if you were using python 2.x, but

Re: Why no lexical scoping for a method within a class?

2008-12-17 Thread walterbyrd
On Dec 17, 10:00 am, r wrote: > When writing > procedural code how would you like it if vars inside functions were > automatically global. Your code with be blowing chunks in no time. That was my point - I consider python's ordinary use of lexical scoping to be a good thing, and I was wondering w

Re: Why no lexical scoping for a method within a class?

2008-12-17 Thread walterbyrd
On Dec 17, 9:04 am, rdmur...@bitdance.com wrote: > Yes.  It's called Object Oriented Programming. I think you mean it's *Python* Object Oriented Programming. I am not sure that every other OO language works like that. -- http://mail.python.org/mailman/listinfo/python-list

Re: Why no lexical scoping for a method within a class?

2008-12-17 Thread walterbyrd
On Dec 17, 10:17 am, "Richard Brodie" wrote: > Not really, self is a formal parameter to the function. It would be > a strange language where a function's own arguments weren't in scope. Thank you, that makes sense to me. -- http://mail.python.org/mailman/listinfo/python-list

Re: Why no lexical scoping for a method within a class?

2008-12-17 Thread walterbyrd
On Dec 17, 8:41 am, prueba...@latinmail.com wrote: > If scoping worked as you want, how, pray tell, would you define object > attributes?- Hide quoted text - I suppose you could do this: class className(): varname = "whatever" def fname(self, varname): . . . . Instead of having v

Why no lexical scoping for a method within a class?

2008-12-17 Thread walterbyrd
For a language as well structured as Python, this seems somewhat sloppy, and inconsistant. Or is there some good reason for this? Here is what I mean: def a(): x = 99 print x def b(): print x a() b() # raises an exception because x is not defined. However in the methods are within

New Python 3.0 string formatting - really necessary?

2008-12-19 Thread walterbyrd
I have not worked with Python enough to really know. But, it seems to me that more I look at python 3.0, the more I wonder if it isn't a step backwards. To me, it seems that this: print "%s=%d" % ('this',99) Is much easier, and faster, to type, and is also easier to read and understand. It also

Re: New Python 3.0 string formatting - really necessary?

2008-12-19 Thread walterbyrd
On Dec 19, 9:13 am, "Giampaolo Rodola'" wrote: > You can use the old 2.x syntax also in Python 3.x: Yeah, but it's deprecated, and - as I understand it - may be removed completely in future versions. Also, in the future, if you are working with code from another developer, it's likely that develo

WAGs on when django will use Python 3.0?

2008-12-20 Thread walterbyrd
Will Django be primarily using Python 3.0 one year from now? Two years from now? Any WAGs? -- http://mail.python.org/mailman/listinfo/python-list

Re: New Python 3.0 string formatting - really necessary?

2008-12-20 Thread walterbyrd
On Dec 19, 12:43 pm, excord80 wrote: > Also, I like having only *one* special symbol (`%') to worry > about in my strings instead of two (`{' and `}'). > Actually the new way has, at least three special symbols: ( '{', '}' , '.') as well as the method name "format" so "%s=%s" % (k, v) for k, v

Re: New Python 3.0 string formatting - really necessary?

2008-12-20 Thread walterbyrd
On Dec 19, 10:25 am, Michael Torrie wrote: > Personally the new string formatter is sorely needed in Python.   Really? You know, it's funny, but when I read problems that people have with python, I don't remember seeing that. Loads of people complain about the white space issue. Some people comp

Re: New Python 3.0 string formatting - really necessary?

2008-12-20 Thread walterbyrd
On Dec 19, 10:55 am, bearophileh...@lycos.com wrote: > Regarding the speed of Python3 programs, > they will go faster "The net result of the 3.0 generalizations is that Python 3.0 runs the pystone benchmark around 10% slower than Python 2.5. " http://docs.python.org/dev/3.0/whatsnew/3.0.html >

Re: New Python 3.0 string formatting - really necessary?

2008-12-20 Thread walterbyrd
On Dec 20, 4:34 pm, r wrote: > Walter, > > Would you be kind enough to translate this code to the new syntax? I am sorry, but I just don't know the new syntax well enough. I am not sure if the examples that I have posted, so far, are correct. -- http://mail.python.org/mailman/listinfo/python-lis

Re: New Python 3.0 string formatting - really necessary?

2008-12-20 Thread walterbyrd
On Dec 20, 5:05 pm, Roy Smith > He got really hung up on the % syntax. I guess it's good to know that there is, at least, one person in the world doesn't like the % formatting. As least the move was not entirely pointless. But, you must admit, of all the things people complain about with Python

Re: New Python 3.0 string formatting - really necessary?

2008-12-22 Thread walterbyrd
On Dec 21, 12:28 pm, Bruno Desthuilliers wrote: > Strange enough, > no one seems to complain about PHP or Ruby's performances... A few years back, there was a certain amount of chest thumping, when python/django easily beat ror in a benchmark test. Now that ruby is faster, I guess speed is no big

Python's popularity

2008-12-22 Thread walterbyrd
I have read that python is the world's 3rd most popular language, and that python has surpassed perl in popularity, but I am not seeing it. >From what I have seen: - in unix/linux sysadmin, perl is far more popular than python, windows sysadmins typically don't use either. - in web-development, p

Re: Python's popularity

2008-12-22 Thread walterbyrd
On Dec 22, 10:13 am, r wrote: > Since the > advent of Ruby(Python closet competitor), Python's hold on this niche > is slipping. About the only place I ever hear of ruby being used is web development with RoR. When it comes to web development, it seems to me that ruby (because of rails) is far mo

Re: Python's popularity

2008-12-22 Thread walterbyrd
On Dec 22, 11:42 am, "Ellinghaus, Lance" wrote: > Yes, Ruby has taken some of the popularity out of Python, but they are > also hitting different markets. Do you mean different markets within web development, or do you mean ruby is used mostly for web-dev, while python is used for other stuff? -

Re: Python's popularity

2008-12-22 Thread walterbyrd
On Dec 22, 11:50 am, Bruno Desthuilliers wrote: > > When it comes to web development, it seems to me that ruby > > (because of rails) is far more popular > > s/popular/hyped/ I'm not so sure. Go to dice.com, enter "ruby rails" no quotes, search all words, job titles only - I got 86 hits, and ano

Re: New Python 3.0 string formatting - really necessary?

2008-12-29 Thread walterbyrd
On Dec 21, 12:28 pm, Bruno Desthuilliers wrote: > > I can see where the new formatting might be helpful in some cases. > > But, I am not sure it's worth the cost. > > Err... _Which_ cost exactly ? Loss of backward compatibility, mainly. -- http://mail.python.org/mailman/listinfo/python-list

  1   2   >