Would there be work for a sysadmin who specializes in python?

2009-08-25 Thread walterbyrd
If I took the time to really learn to use python for sysadmin work, would I be able to find jobs, or even contract jobs? From what I am seeing on the job boards etc., I would have to say no. It looks to me as though I could possibly do that with perl, but not python. Of course, I could be

Why not enforce four space indentations in version 3.x?

2009-07-10 Thread walterbyrd
I believe Guido himself has said that all indentions should be four spaces - no tabs. Since backward compatibility is being thrown away anyway, why not enforce the four space rule? At least that way, when I get python code from somebody else, I would know what I am looking at, without having to

Re: When does the escape character work within raw strings?

2009-05-23 Thread walterbyrd
On May 22, 12:22 pm, Rhodri James How do you know how a string object is going to be treated by any given function?  Read the Fine Manual for that function. So am I to understand that there is no consistency in string handling throughout the standard modules/objects/methods? Seems to make

Re: When does the escape character work within raw strings?

2009-05-22 Thread walterbyrd
On May 21, 9:44 pm, Rhodri James rho...@wildebst.demon.co.uk wrote: Escaping the delimiting quote is the *one* time backslashes have a special meaning in raw string literals. If that were true, then wouldn't r'\b' be treated as two characters? This calls re.sub with a pattern string object

Re: When does the escape character work within raw strings?

2009-05-21 Thread walterbyrd
I guess I am confused about when when escape characters are are interpersonal as escape characters, and escape characters are not treated as escape characters. Sometimes escape characters in regular strings are treated as escape characters, sometimes not. Same seems to go for raw strings. So how

Trying to understand a very simple class - from the book dive into python

2009-05-20 Thread walterbyrd
Example 5.6. Coding the FileInfo Class class FileInfo(UserDict): store file metadata def __init__(self, filename=None): UserDict.__init__(self)(1) self[name] = filename(2) What I do not understand is the last line. I thought 'self' was supposed to refer to

Re: Is there a better way to chose a slice of a list?

2009-05-20 Thread walterbyrd
On May 19, 5:31 pm, Ben Finney ben+pyt...@benfinney.id.au wrote: That's just the same micro-goal re-stated. What is your larger problem of which this is a part? Perhaps a better approach can be suggested when that context is known. I am processing a huge spreadsheet which I have converted to

When does the escape character work within raw strings?

2009-05-20 Thread walterbyrd
I know that s = r'x\nx' means 'x' followed by a literal '\' followed by an 'n' (the '\n' is not a carriage return). s = r'x\tx' means 'x' followed by a literal '\' followed by an 't' (the '\t' is not a tab). But, boundries seem to work differently. s = re.sub(r'\bxxx\b', 'yyy', s) Is *not*

Re: Trying to understand a very simple class - from the book dive into python

2009-05-20 Thread walterbyrd
On May 20, 9:59 am, Marco Mariani ma...@sferacarta.com wrote: Do you know what a dictionary is? Yes, but I thought a dictionary used curly brackets. Is the object a dictionary? -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there a better way to chose a slice of a list?

2009-05-19 Thread walterbyrd
On May 8, 5:55 pm, John Yeung gallium.arsen...@gmail.com wrote: On May 8, 3:03 pm,walterbyrdwalterb...@iname.com wrote: This works, but it seems like there should be a better way. -- week = ['sun','mon','tue','wed','thu','fri','sat'] for day in

Re: Convert UNIX formated text files to DOS formated?

2009-05-13 Thread walterbyrd
On May 13, 3:21 am, David Robinow drobi...@gmail.com wrote: cygwin has u2d and d2u- Hide quoted text - Thank you, I did not know about those utilities, until now. -- http://mail.python.org/mailman/listinfo/python-list

Convert UNIX formated text files to DOS formated?

2009-05-12 Thread walterbyrd
I have about 150 unix formated text files that I would like to convert to dos formated. I am guessing that I loop though each file in the directory, read each line and conver the last character, then save to a file with the same name in another directory. I am not really sure what I convert the

Re: Convert UNIX formated text files to DOS formated?

2009-05-12 Thread walterbyrd
On May 12, 2:53 pm, MRAB goo...@mrabarnett.plus.com wrote: walterbyrd wrote: I have about 150 unix formated text files that I would like to convert to dos formated. I am guessing that I loop though each file in the directory, read each line and conver the last character, then save

Re: Convert UNIX formated text files to DOS formated?

2009-05-12 Thread walterbyrd
On May 12, 6:12 pm, Terry Reedy tjre...@udel.edu wrote: Are you sure you need to do that?  Most Windows programs (including Python) are happy reading text files with just \n for line endings. These files will be looked at by some non-technical people. I am sure these people will just click on

Re: Convert UNIX formated text files to DOS formated?

2009-05-12 Thread walterbyrd
On May 12, 6:15 pm, norseman norse...@hughes.net wrote: Subject line says UNIX to DOS I hope that means you are using a UNIX machine. I should have mentioned, I am working in an environment that is very restrictive about what I can put on my XP desktop. I can not put python, or even

Re: Convert UNIX formated text files to DOS formated?

2009-05-12 Thread walterbyrd
Thanks for shell script code. That code may be just as efficient, or even more efficient, than python. But, to me, python is far more readable. i=$1 i1=${i%%.*} echo $i1 cat $1 | sed s/^M// $i1._cr ---= import os for file in os.listdir('.'): infile =

Is there a better way to chose a slice of a list?

2009-05-09 Thread walterbyrd
This works, but it seems like there should be a better way. -- week = ['sun','mon','tue','wed','thu','fri','sat'] for day in week[week.index('tue'):week.index('fri')]: print day --- -- http://mail.python.org/mailman/listinfo/python-list

Path difficulties with Python 2.5 running on Cygwin

2009-05-08 Thread walterbyrd
It workerd fine yesterday, but it won't work today. I can still run python, but when I try to import csv, I get an error: File /usr/lib/python2.5/csv.py, line 8 in module . . . The module is there. I am guessing that python can not find it. --

Re: Path difficulties with Python 2.5 running on Cygwin

2009-05-08 Thread walterbyrd
On May 8, 9:22 am, walterbyrd walterb...@iname.com wrote: It workerd fine yesterday, but it won't work today. I can still run python, but when I try to import csv, I get an error: File /usr/lib/python2.5/csv.py, line 8 in module  . . . The module is there. I am guessing that python can

Re: Path difficulties with Python 2.5 running on Cygwin

2009-05-08 Thread walterbyrd
On May 8, 9:36 am, Jerry Hill malaclyp...@gmail.com wrote: On Fri, May 8, 2009 at 11:29 AM, walterbyrd walterb...@iname.com wrote: I accidently named a script csv.py, put I deleted that. You probably still have a stale csv.pyc in that directory.  Delete that too. I don't, I am very certain

Re: Path difficulties with Python 2.5 running on Cygwin

2009-05-08 Thread walterbyrd
On May 8, 10:01 am, walterbyrd walterb...@iname.com wrote: On May 8, 9:36 am, Jerry Hill malaclyp...@gmail.com wrote: On Fri, May 8, 2009 at 11:29 AM, walterbyrd walterb...@iname.com wrote: I accidently named a script csv.py, put I deleted that. You probably still have a stale csv.pyc

How do I learn about Python XML?

2009-03-28 Thread walterbyrd
It looks like the most recent book on the subject came out eight years ago. Also, as I understand it, the PyXML library has been deprecated. -- http://mail.python.org/mailman/listinfo/python-list

Re: New Python 3.0 string formatting - really necessary?

2008-12-29 Thread walterbyrd
On Dec 21, 12:28 pm, Bruno Desthuilliers bdesth.quelquech...@free.quelquepart.fr 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. --

Re: New Python 3.0 string formatting - really necessary?

2008-12-22 Thread walterbyrd
On Dec 21, 12:28 pm, Bruno Desthuilliers bdesth.quelquech...@free.quelquepart.fr 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

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,

Re: Python's popularity

2008-12-22 Thread walterbyrd
On Dec 22, 10:13 am, r rt8...@gmail.com 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

Re: Python's popularity

2008-12-22 Thread walterbyrd
On Dec 22, 11:42 am, Ellinghaus, Lance lance.ellingh...@eds.com 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

Re: Python's popularity

2008-12-22 Thread walterbyrd
On Dec 22, 11:50 am, Bruno Desthuilliers bdesth.quelquech...@free.quelquepart.fr 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

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 excor...@gmail.com 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,

Re: New Python 3.0 string formatting - really necessary?

2008-12-20 Thread walterbyrd
On Dec 19, 10:25 am, Michael Torrie torr...@gmail.com 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.

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 rt8...@gmail.com 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. --

Re: New Python 3.0 string formatting - really necessary?

2008-12-20 Thread walterbyrd
On Dec 20, 5:05 pm, Roy Smith r...@panix.com 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

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' gne...@gmail.com 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

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

2008-12-17 Thread walterbyrd
On Dec 17, 10:00 am, r rt8...@gmail.com 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

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 r.bro...@rl.ac.uk 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

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

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 some

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 am

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

Python 3.0 - is this true?

2008-11-08 Thread walterbyrd
I have read that in Python 3.0, the following will raise an exception: [2, 1, 'A'].sort() Will that raise an exception? And, if so, why are they doing this? How is this helpful? Is this new enhancement Pythonic? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3.0 - is this true?

2008-11-08 Thread walterbyrd
On Nov 8, 12:02 pm, Arnaud Delobelle [EMAIL PROTECTED] wrote: It goes well with duck typing.  It lets you know when you things happen that you don't mean to happen. But doesn't that also make the language less flexible? For example, if I used C, I would never have to worry about assigning a

Re: Python 3.0 - is this true?

2008-11-08 Thread walterbyrd
On Nov 8, 7:44 pm, Steven D'Aprano [EMAIL PROTECTED] cybersource.com.au wrote: Define your own ordering if you need to sort incomparable types. If you starting new, I suppose you can always work around this new enhancement. But, couldn't this cause a lot of backward compatibility issues?

Can I write a binary windows executable with Python?

2008-08-29 Thread walterbyrd
I have heard about Pysco. But does create a single executable that can run without Python being installed? Or does that just compile the libraries? -- http://mail.python.org/mailman/listinfo/python-list

Re: frameword vs application server?

2008-05-12 Thread walterbyrd
On May 12, 8:34 am, Diez B. Roggisch [EMAIL PROTECTED] wrote: As mentioned above - in some aspects, that is not really needed. But if you want more of an app-server, have a look at ZOPE, Kamaelia and maybe even twisted. Thanks. Kamaelia reminds me of SOA - loosely coupled software services

frameword vs application server?

2008-05-11 Thread walterbyrd
Can somebody help me understand the difference? Not just where Python is concerned, but in general? As I understand it, an application server is supposed to be a great help in developing apps, because most of the business logic is already there. It seems to me that, usually when applications

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

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

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

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

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

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

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

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 table. Thank you, that is great

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 differences

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

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

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 employ

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

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

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

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

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 stdin, 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 tuple. But, you

Re: Collections of non-arbitrary objects ?

2007-06-27 Thread walterbyrd
On Jun 26, 8:23 am, Bruno Desthuilliers bruno. [EMAIL PROTECTED] 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

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

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, without an explicit

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

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 would

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

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

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

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 - both free:

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 been

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

Re: Python compared to other language

2007-05-19 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-19 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. It

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

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

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. Usually, after I submit

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.

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

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

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

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

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

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

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 bruno. [EMAIL PROTECTED] 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

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

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

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

  1   2   >