Re: Exec inside a class method to call other class methods?

2008-12-25 Thread David Stanek
On Thu, Dec 25, 2008 at 1:22 PM, Matthew Dubins matt.dub...@sympatico.ca wrote: Hello all, I have made a python script to upload contact information from an excel worksheet to an online database. One part of the program that really tripped me up was when I wanted to call specific class

Re: Exec inside a class method to call other class methods?

2008-12-25 Thread David Stanek
On Thu, Dec 25, 2008 at 6:22 PM, Matthew Dubins matt.dub...@sympatico.ca wrote: Each type does contain its own parsing method. It's just that, as it stands, one method is being used to shunt off the data to the correct parsing method. Not really. You have all of the parsing methods in a

Re: Exec inside a class method to call other class methods?

2008-12-25 Thread David Stanek
You won't need the dictionary at all if each type has a parse method. On 12/25/08, Chris Rebert c...@rebertia.com wrote: On Thu, Dec 25, 2008 at 4:16 PM, J. Clifford Dyer j...@sdf.lonestar.org wrote: snip and so forth. Then your if/else chain can be pulled out to the place where you

Re: Basic misunderstanding of generators

2008-12-22 Thread David Stanek
On Mon, Dec 22, 2008 at 4:47 AM, Barak, Ron ron.ba...@lsi.com wrote: if __name__ == __main__: filename = sac.log.gz log_stream = LogStream(filename) line_ = log_stream.next_line(log_stream.input_file) print line_ $ python LogManager_try.py generator object at 0x00B94648

Re: Event Driven programming - Doubts

2008-12-22 Thread David Stanek
On Mon, Dec 22, 2008 at 9:57 AM, Kottiyath n.kottiy...@gmail.com wrote: If so, Even though data locking etc is not a problem, are we not still having threads? Will it not still cause scalability problems in high traffic? If not, could somebody let me know how it is done? This somewhat

Re: scaling problems

2008-05-20 Thread David Stanek
On Tue, May 20, 2008 at 12:03 AM, James A. Donald [EMAIL PROTECTED] wrote: On Mon, 19 May 2008 21:04:28 -0400, David Stanek [EMAIL PROTECTED] wrote: What is the difference if you have a process with 10 threads or 10 separate processes running in parallel? Apache is a good example of a server

Re: scaling problems

2008-05-19 Thread David Stanek
On Mon, May 19, 2008 at 8:47 PM, James A. Donald [EMAIL PROTECTED] wrote: I am just getting into python, and know little about it, and am posting to ask on what beaches the salt water crocodiles hang out. 1. Looks to me that python will not scale to very large programs, partly because of the

[issue2445] Use The CygwinCCompiler Under Cygwin

2008-03-21 Thread David Stanek
Changes by David Stanek [EMAIL PROTECTED]: -- type: - compile error __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2445 __ ___ Python-bugs-list mailing list

[issue2445] Use The CygwinCCompiler Under Cygwin

2008-03-21 Thread David Stanek
David Stanek [EMAIL PROTECTED] added the comment: As Christian suggested I removed the unrelated svn:ignore changes. Added file: http://bugs.python.org/file9804/cygwin-smaller.diff __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2445

[issue2445] Use The CygwinCCompiler Under Cygwin

2008-03-21 Thread David Stanek
Changes by David Stanek [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file9803/cygwin.diff __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2445 __ ___ Python-bugs-list

[issue1686] string.Template.safe_substitute fail when overriding pattern attribute

2008-03-17 Thread David Stanek
David Stanek [EMAIL PROTECTED] added the comment: I am uploading a new diff that includes the original fix from Hagai along with some tests. -- keywords: +patch nosy: +dstanek Added file: http://bugs.python.org/file9704/braced_override.diff __ Tracker

Re: Autogenerate functions (array of lambdas)

2007-09-06 Thread David Stanek
On 9/6/07, Chris Johnson [EMAIL PROTECTED] wrote: What I want to do is build an array of lambda functions, like so: a = [lambda: i for i in range(10)] (This is just a demonstrative dummy array. I don't need better ways to achieve the above functionality.) print [f() for f in a] results

Re: Getting original working directory

2007-09-06 Thread David Stanek
On 9/6/07, rave247 rave247 [EMAIL PROTECTED] wrote: If I could use os.getcwd() or save the value to some variable before calling os.chdir() I would do it, believe me. However I can't because it is the part of code where I can't do any changes. Why is it not possible. If nothing else create a

Re: Cleveland Ohio Python Meeting

2005-09-30 Thread David Stanek
On Wed, Sep 28, 2005 at 07:10:15AM -0400, David Stanek wrote: October 6 from 18:30-20:30 A presentation will be given on Django and I am sure that we will discuss web frameworks in general. Everyone is welcome. For more details take a look at http://www.clepy.org/meetings

Cleveland Ohio Python Meeting

2005-09-28 Thread David Stanek
October 6 from 18:30-20:30 A presentation will be given on Django and I am sure that we will discuss web frameworks in general. Everyone is welcome. For more details take a look at http://www.clepy.org/meetings/2005_10_06_mtg_details David -- GPG keyID #6272EDAF on http://pgp.mit.edu Key

Re: mod_python config problem

2005-06-03 Thread David Stanek
the following line to your .htaccess file: PythonPath sys.path + ['/your/path'] Where '/your/path' is the path in which mptest.py resides. -- David Stanek www.roninds.net GPG keyID #6272EDAF on http://pgp.mit.edu Key fingerprint = 8BAA 7E11 8856 E148 6833 655A 92E2 3E00 6272 EDAF pgpqT33AXn9gS.pgp

Python interest group software

2005-06-03 Thread David Stanek
Is there already any software out there to manage a Python Interest Group? Something that can register users, take RSVPs for meetings, etc. -- David Stanek www.roninds.net GPG keyID #6272EDAF on http://pgp.mit.edu Key fingerprint = 8BAA 7E11 8856 E148 6833 655A 92E2 3E00 6272 EDAF

ANN: Cleveland Area Python Interest Group

2005-06-02 Thread David Stanek
I am attempting to start a Cleveland (Ohio) Python Interest Group. This group is a revival of the very inactive Cleveland Python Meetup Group. If you are in the Cleveland area and are interested goto http://www.clepy.org for more information. -- David Stanek www.roninds.net GPG keyID #6272EDAF

<    1   2