Re: [Tutor] Paython as a career

2009-03-17 Thread OkaMthembo
Luke, i think you gave a more balanced answer :) On Tue, Mar 17, 2009 at 10:45 AM, Luke Paireepinart wrote: > You should not choose a specific programming language and start a career in > it. If you want a career in programming you need to learn a great deal > about computer science (the theory)

Re: [Tutor] (no subject)

2009-03-17 Thread OkaMthembo
Doesn't backslash also escape the newline? Thought i saw something to that effect in the tutorial. Lloyd On Tue, Mar 17, 2009 at 4:33 PM, Daniele wrote: > > From: dukelx2...@gmail.com > > To: tutor@python.org > > Honestly I'm doing tutorials, I'm not in school. I am trying to learn it > for my

Re: [Tutor] combining Python 2.x and Python 3

2009-03-17 Thread OkaMthembo
Apparently there's a tool to convert older Python code to Python 3 compatibility - is this what you want? Must be somewhere in the cheese shop - sorry i cannot recall the name, or where exactly i saw the discussion. Lloyd On Tue, Mar 17, 2009 at 1:33 PM, Andre Engels wrote: > I have an open sou

[Tutor] PHP as seen by a Python lover

2009-04-11 Thread OkaMthembo
Hi All, I just tried setting up PHP on my machine,with Apache 2.2-something (Win. XP). I came back running. It's a SCHLEP. I love Python. Happy Easter to you all - and to those that do not celebrate it, have a great weekend! -- Lloyd Dube ___ Tutor

Re: [Tutor] python books

2009-04-26 Thread OkaMthembo
I'd recommend Core Python Programming by Wesley Chun.. On Sat, Apr 25, 2009 at 9:45 PM, Dayo Adewunmi wrote: > chinmaya wrote: > >> >> >> On Mon, Apr 13, 2009 at 11:07 PM, sudhanshu gautam < >> sudhanshu9...@gmail.com > wrote: >> >>I am new in python , so need

Re: [Tutor] Find a good linux distribution with python.

2009-05-25 Thread OkaMthembo
bhaaluu, your comments on Ubuntu are not only offensive, but display ignorance and arrogance all at the same time. Ubuntu is based on Debian, but provides a lower entry barrier to Linux for many. Not everybody wants to spend much time doing configurations. Many just want a system that works. Mich

Re: [Tutor] Best Python Editor

2009-06-15 Thread OkaMthembo
I second Tom Green, when i started off with Python i mainly used Pyscripter on Windows and its excellent. On Sat, Jun 13, 2009 at 1:48 PM, Tom Green wrote: > For Windows check out PyScripter. Its IDE is similar to Borland Delphi and > I find it very easy to use. Whatever works for you would be

Re: [Tutor] Currency conversion module in python

2009-07-30 Thread OkaMthembo
Hi Amit, this might be what you want..hopefully with a dollop of humor :) http://lmgtfy.com/?q=currency+conversion+module+in+python&l=1 Cheers On Thu, Jul 30, 2009 at 12:45 AM, Amit Sethi wrote: > Hi , Does anybody know of any currency conversion module in python > > -- > A-M-I-T S|S >

Re: [Tutor] What language should I learn after Python?

2009-10-07 Thread OkaMthembo
Hi everyone, I've watched this discussion grow with great interest, as not too long ago i was asking myself the OP's question. I started with C#.NET when i got into programming, then moved to Java. This is all at work. I taught myself Python, and will soon be tackling C as well as i can use that t

Re: [Tutor] Stolen thread: Bottom folk vs. toppers was trouble using2to3.py

2009-11-05 Thread OkaMthembo
I'm afraid you guys are witty! Good on you. Rob, you're right - and Alan, you're right too. BRA-VO. On Wed, Nov 4, 2009 at 12:19 AM, Alan Gauld wrote: > "Robert Berman" wrote > > The war between bottom posters and top posters has been long, arduous, >> and most often incredibly silly. >> > > It

Re: [Tutor] TimeOut in

2009-11-11 Thread OkaMthembo
Hi Somnath, I think the exception simply means that the thread object or class does not have a cancel function. maybe read docs on Python threads to see what functions can be called on those? On Sun, Nov 8, 2009 at 9:09 PM, somnath chakrabarti < chakrabarti.somn...@gmail.com> wrote: > Hi Alan, >

Re: [Tutor] Writing code while tired, counterproductive?

2009-11-15 Thread OkaMthembo
>From first-hand experience, i would concur :) A refreshed mind will perform much better than an over-exerted one. On Sat, Nov 14, 2009 at 8:57 PM, Alan Gauld wrote: > > "Modulok" wrote > > Does anyone else find, writing code while tired to be counterproductive? >> > > Yes. Doing anything that

Re: [Tutor] I love python / you guys :)

2009-11-16 Thread OkaMthembo
Stefan, you echoed my thinking too :) On Mon, Nov 16, 2009 at 8:58 AM, Stefan Lesicnik wrote: > hi, > > Although not a question, i just want to tell you guys how awesome you are! > > I am not a programmer, i can do a bit of bash. I have never officially > learnt programming, but numerous times l

Re: [Tutor] (no subject)

2009-11-23 Thread OkaMthembo
Hi Mark, When i started off i had pretty much the same questions. I think you need to start with the Python tutorial as it will show you the basics (from the Python shell and how to write and run Python files, to language syntax + keywords and how to define and use functions, classes, modules etc)

Re: [Tutor] quick question

2009-11-26 Thread OkaMthembo
Hi Travis, Welcome to the python mailing list. You have come to the right place for support and advice pertaining to python; it is what this list is about. On Thu, Nov 26, 2009 at 12:49 PM, Travis Murphy wrote: > i am a first year student taking a python developers course. i wanted to > know

Re: [Tutor] quick question

2009-11-26 Thread OkaMthembo
By the way, when asking a question or answering, you only ever need to send the message to tutor@python.org :) On Thu, Nov 26, 2009 at 3:29 PM, OkaMthembo wrote: > Hi Travis, > > Welcome to the python mailing list. You have come to the right place for > support and advice pertaini

[Tutor] Python on multicore machines

2009-11-27 Thread OkaMthembo
Hi All, Is there a python implementation that takes advantage of all cores on modern multicore machines? -- Regards, Lloyd ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tu

Re: [Tutor] Python on multicore machines

2009-11-27 Thread OkaMthembo
Sorry to double -post, Lie. Didn;t "Reply to all".. Thats interesting - is Unladen Swallow production-ready? I've been over the site briefly, but i can't decide whether it's still in incubation or not. On Fri, Nov 27, 2009 at 3:04 PM, Lie Ryan wrote: > On 11/27/20

Re: [Tutor] Python on multicore machines

2009-11-27 Thread OkaMthembo
09 at 4:57 AM, OkaMthembo wrote: > > Hi All, > > > > Is there a python implementation that takes advantage of all cores on > modern > > multicore machines? > > Presumably you mean something like, "Is there a python implementation > that can run multiple co

Re: [Tutor] Python on multicore machines

2009-11-27 Thread OkaMthembo
Thanks everyone, I realise that my question is vague on a few fronts. To try and clarify, supposing i had a box running a Python web app on it, and the web server handles say, 10 concurrent requests. Now i've read that only one instance of the Python interpreter can run on a single machine. Can t

Re: [Tutor] Python on multicore machines

2009-11-27 Thread OkaMthembo
ov 27, 2009 at 8:57 AM, OkaMthembo wrote: > > Thanks, i must admit the concept of the GIL is cloudy to me - for > example, > > if the python interpreter on a single machine is > > handling one process and locks until it is done, then on to the next one, > > and so on

Re: [Tutor] Python on multicore machines

2009-11-27 Thread OkaMthembo
i was not aware of the fact. On Fri, Nov 27, 2009 at 5:42 PM, Stefan Behnel wrote: > OkaMthembo, 27.11.2009 16:15: > > i've read that only one > > instance of the Python interpreter can run on a single machine. > > That's likely the source of your confusion then.

[Tutor] Python fast enough for ad server?

2007-05-09 Thread OkaMthembo
Hi guys, I need to write an ad-serving application and i'm using Win XP as my dev platform. Naturally, i want it to be as painless as possible and i was thinking of writing it 100% in Python. However, i have not written any big apps in the language and i wonder if Python would have the performanc

Re: [Tutor] Python fast enough for ad server?

2007-05-10 Thread OkaMthembo
wrote: Hey OkaMthenbo, OkaMthembo wrote: > Hi guys, > > I need to write an ad-serving application and i'm using Win XP as my dev > platform. Naturally, i want it to be as painless as possible and i was > thinking of writing it 100% in Python. However, i have not written any > b

Re: [Tutor] Python fast enough for ad server?

2007-05-11 Thread OkaMthembo
Hi guys, I stumbled upon a tool called Psyco (http://psyco.sourceforge.net/) sounds like what i need. Thanks again, Lloyd On 5/10/07, OkaMthembo <[EMAIL PROTECTED]> wrote: Thanks for all your contributions. i think i will do it all in Python, it seems to me that the advantages far ou

[Tutor] ActivePython and CPython

2007-05-14 Thread OkaMthembo
Hi guys, What are the difference between ActiveState's Python distributions and the standard Python distribution from python.org, and which is better? Also, what IDE will give a user the ability to view HTML designs of a web application as well as the code view (like Dreamweaver does with PHP pag

[Tutor] Python and Clearsilver for Web Development

2007-06-21 Thread OkaMthembo
Hi All, Would anyone have experience using Clearsilver with Python for web development? i wish to find out - how easy/ difficult it is to seperate presentation from logic, - how fast such a setup would be compared to asp.net, jsp and php - whether or not such a setup would work with Lighttpd. I h

[Tutor] Large Scale Python websites

2007-08-07 Thread OkaMthembo
Hi all, Is anyone aware of any large scale web apps developed in Python? Please let me know of any that you know of... Kind Regards, -- Sithembewena Lloyd Dube "The Stupidry Foundry" ___ Tutor maillist - Tutor@python.org http://mail.python.org/mail

Re: [Tutor] Large Scale Python websites

2007-08-08 Thread OkaMthembo
On 8/7/07, Mike Hansen <[EMAIL PROTECTED]> wrote: > > > >> Is anyone aware of any large scale web apps developed in Python? > > >> Please let > > >> me know of any that you know of... > > I think that reddit.com switched from LISP to Python a while back. > > Mike > _

[Tutor] YouTube Python web framework

2008-01-14 Thread OkaMthembo
Dear Friends, Does anybody know what Python web framework e.g. Webware or Web.py, etc YouTube is built on/in? Kind Regards, -- Sithembewena Lloyd Dube "The Stupidry Foundry" ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listi

Re: [Tutor] YouTube Python web framework

2008-01-14 Thread OkaMthembo
Thanks Kent :) On Jan 14, 2008 2:09 PM, Kent Johnson <[EMAIL PROTECTED]> wrote: > OkaMthembo wrote: > > Dear Friends, > > > > Does anybody know what Python web framework e.g. Webware or Web.py, etc > > YouTube is built on/in? > > There is a little info here

[Tutor] web.py vs webwareforpython

2008-02-21 Thread OkaMthembo
Which is better for large scale apps? I know YouOS and reddit use web.py - which big site successfully uses webware? Thanks. -- Lloyd Dube ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] web.py vs webwareforpython

2008-02-21 Thread OkaMthembo
thought there must be a good reason. I am just very curious as to which python web framework will ultimately be the best to work with; and i dont want to waste time trying if some arent worth the trouble. On Thu, Feb 21, 2008 at 2:16 PM, Kent Johnson <[EMAIL PROTECTED]> wrote: > OkaMthe

Re: [Tutor] web.py vs webwareforpython

2008-02-21 Thread OkaMthembo
wrote: > > "OkaMthembo" <[EMAIL PROTECTED]> wrote > > > I am just very curious as to which python web framework will > > ultimately be > > the best to work with; and i dont want to waste time trying if some > > arent > > worth the trouble. >

Re: [Tutor] web.py vs webwareforpython

2008-02-25 Thread OkaMthembo
@Kent, that's some useful background info. @Marc, i also thought about the issue of Python hosts not supporting long-running processes. Do check with WebFaction though http://www.webfaction.com - apparently one can get Python hosting that allows installation of certain server modules e.g. mod_pyth

[Tutor] python web dev

2007-01-04 Thread OkaMthembo
hi pythonistas! this is my first post. please could you tell me which is the best lightweight python web framework? also, which is the best templating language for python? (which can handle other data formats in addition to text). so far im lured by Cheetah, although i havent done any web dev wit

Re: [Tutor] python web dev

2007-01-05 Thread OkaMthembo
s lighttpd build? the link to kevinworthington.com on the official site is dead, and ive not had a response from the lighttpd webmaster. happy coding... Shortash On 1/4/07, Simon Brunning <[EMAIL PROTECTED]> wrote: On 1/4/07, OkaMthembo <[EMAIL PROTECTED]> wrote: > this i

[Tutor] lighttpd for windows

2007-01-13 Thread OkaMthembo
hey folks! Could someone please show me where to get lighttpd for windows xp sp2? ive tried the lighttpd site but no success thanks "shortash" ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Perfect Python web stack?

2007-01-17 Thread OkaMthembo
Ok pythonistas! Please help me to decide. I might have asked some of you before, so please bear with me. I want to build a database driven python web app and i need to decide, so please vote on the best components (im developing on XP SP2): 1) MySQL vs PostGRES 2) Lighttpd + FastCGI vs Apache +

Re: [Tutor] Perfect Python web stack?

2007-01-17 Thread OkaMthembo
Thanks, gentlemen. Input appreciated and noted. "Shortash" On 1/17/07, Mike Hansen <[EMAIL PROTECTED]> wrote: > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of OkaMthembo > Sent: Wednesday, January 17, 2007 3:59 AM &

Re: [Tutor] Perfect Python web stack?

2007-01-19 Thread OkaMthembo
Thanks folks, Just to add a bit of chaos :-)...i am settled on using Quicksilver: http://www.quicksilver.net I guess with so many frameworks out there, it all boils down to specific implementations and how much rolling their own one can do. I hope to benchmark Quicksilver performance and i'll rep

Re: [Tutor] Perfect Python web stack?

2007-01-19 Thread OkaMthembo
Im thoroughly embarrassed. its http://www.clearsilver.net and not quicksilver as i said earlier. thanks Kent. "Shortash" On 1/19/07, Kent Johnson <[EMAIL PROTECTED]> wrote: OkaMthembo wrote: > Thanks folks, > Just to add a bit of chaos :-)...i am settled on usi

Re: [Tutor] Best IDE for Python

2007-01-25 Thread OkaMthembo
hi guys, would someone please point me to an active link to download SPE? the url to Stani's site just wont click through to http://stani.be/python/spe/blog/ i have a similar problem with the url to the Windows distro of Lighttpd from http://www.kevinworthington.com:8181/ would appreciate any h

Re: [Tutor] Best IDE for Python

2007-01-26 Thread OkaMthembo
hi guys, how useable is vim on Windows? i saw on its site that it was developed primarily as a Unix tool. i wish i could learn Unix. which distro do you think is good to learn? ive been eyeing FreeBSD but ive got untouched Ubuntus. thanks_up_ front() "Shortash" On 1/25/07, Mike Hansen <[EMAIL

[Tutor] youtube & yelp

2007-01-31 Thread OkaMthembo
Hi folks, im of the beaten path here, but does anyone know what frameworks YouTube and Yelp use? i know/ read that they use python. Thankee "shortash" -- "The Stupidry Foundry" ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/li

[Tutor] Python 2.5 and PHP 5.2.0

2007-02-01 Thread OkaMthembo
Hi Guys, I need some wisdom from you. Is it possible to have PHP pages posting to python scripts on the server side and returning values back to the calling PHP files? Like, if my enterval.php form's action="think.py", would the two scripts be able to talk to each other? Thanks and Best Regards,

Re: [Tutor] Python 2.5 and PHP 5.2.0

2007-02-01 Thread OkaMthembo
Thank you s much gentlemen, you have come to my aid very promptly indeed :-) I have to say, this is why i love Open Source; For the People, By the People! Thankee "Shortash" On 2/1/07, Christopher Arndt <[EMAIL PROTECTED]> wrote: Luke Paireepinart schrieb: > I can think of a roundabout w

[Tutor] PYTHON MOBILE WEB DEVELOPMENT

2007-03-06 Thread OkaMthembo
Hello All, I am keen to find out if there are any frameworks for Python mobile web development out there. Does anyone know of a major/popular mobile web app written in python? Moreover, if i wrote a mobile web app with standard HTML for presentation and Python as a server-side language, would the

[Tutor] Python Mobile Web Development

2007-03-06 Thread OkaMthembo
Hello All, I am keen to find out if there are any frameworks for Python mobile web development out there. Does anyone know of a major/popular mobile web app written in python? Moreover, if i wrote a mobile web app with standard HTML for presentation and Python as a server-side language, would the

[Tutor] File storage vs DB storage.

2007-04-10 Thread OkaMthembo
Hello all, Im a newbie and am currently going through the Python Tutorial for the second time. At work, i use C#, but what a delight Python is! Ok, to get to the point: when building a web app that should store an retrieve photos, what would be more efficient between the app storing the files on

Re: [Tutor] File storage vs DB storage.

2007-04-11 Thread OkaMthembo
this combo before i plunge? Thanks again Lloyd On 4/10/07, Alan Gauld <[EMAIL PROTECTED]> wrote: "OkaMthembo" <[EMAIL PROTECTED]> wrote > Ok, to get to the point: when building a web app that should store > an > retrieve photos, what would be more efficient betwee

[Tutor] Stackless Python

2008-04-28 Thread OkaMthembo
Hi guys, I was just wondering...doesanybody think Stackless Python would be ideal for writing web apps, ie better for large systems? And are there Python hosts that run Stackless? Regards, -- Lloyd Dube ___ Tutor maillist - Tutor@python.org http://m

[Tutor] Stackless Python and CPython code compatibility

2008-06-05 Thread OkaMthembo
Hi guys, Could someone please explain whether or not using Stackless Python with CPython affects compatibility across code versions? e.g. if one wanted Stackless for web development, would Cheetah, Django, Zope, Plone et al play nicely with it? Regards, -- Lloyd Dube ___

[Tutor] Python and the Global Interpreter Lock

2008-08-07 Thread OkaMthembo
Hi there, I just came across something called the Global Interpreter Lock, and apparently its a condition where an interpreter locks resources to avoid sharing them with other apps/ processes on the system? I wish to find out what this means in terms of Python. for example does it mean that Python

[Tutor] Python GIL

2008-11-25 Thread OkaMthembo
Hi all, I wish to find out what the Global Interpreter Lock is and its relevance regarding the serving of high traffic Python sites. My understanding from what i read is that its a state whereby only one interpreter can be invoked on a physical machine. How does this impact performance of web apps

Re: [Tutor] Want to write a Perl based IP to Domain Name converter.

2009-01-31 Thread OkaMthembo
Lol..thats okay. Now that you are here and have seen what fun we have writing Python code - why not join the party? Don't be shy to join us :p - i bet you won't be sorry. On Sat, Jan 31, 2009 at 4:11 PM, wrote: > On Saturday, January 31, 2009 at 21:44, ken...@tds.net wrote: > > On Sat, Jan 31

Re: [Tutor] reading file, adding to each line, writing file

2009-02-04 Thread OkaMthembo
The following is adapted from my humble text processing script that i use at work for a recurring task of mine. Any excuse not to use Java all day :) file_1 = open('step2', 'r+') lines = file_1.readlines() sentences = [] for line in lines: if line: sentences.i

Re: [Tutor] reading file, adding to each line, writing file

2009-02-04 Thread OkaMthembo
The following is adapted from my humble text processing script that i use at work for a recurring task of mine. Any excuse not to use Java all day :) There was an error with my other posts. Pardon the triple posting - won't happen again soon. file_1 = open('step2', 'r+') lines = file_1.

Re: [Tutor] reading file, adding to each line, writing file

2009-02-04 Thread OkaMthembo
Hmm...thanks Kent. Could use such information myself. I did feel that my code was bloated or could be tweaked somehow. Ha...there i double posted again :( Am having trouble paying attention today. On Wed, Feb 4, 2009 at 5:42 PM, Kent Johnson wrote: > On Wed, Feb 4, 2009 at 10:18 AM, OkaMthe

Re: [Tutor] (no subject)

2009-02-06 Thread OkaMthembo
Lol..indeed [?] On Fri, Feb 6, 2009 at 5:08 PM, bob gailer wrote: > Okeke emmanuel wrote: > >> >> >> >> >> ___ >> Tutor maillist - Tutor@python.org >> http://mail.python.org/ma