Re: stderr is a lame hack?

2007-10-25 Thread Aahz
In article <[EMAIL PROTECTED]>, Erik Jones <[EMAIL PROTECTED]> wrote: > >So, I was just taking a look at doctest.py and saw this: > >Then running the module as a script will cause the examples in the >docstrings to get executed and verified: > >python M.py > >This won't display any

urllib2 weirdness when https_proxy environment variable is exported

2007-10-25 Thread Devraj
Hi Everyone, I have been extensively using Python's urllib2 while developing a project with the Google Data API. The Google Data API uses httplib to place all of its requests. However I have been using urllib2 and some handlers that I discovered in an ASPN article to handle HTTPS proxies in my cod

Re: Delete all not allowed characters..

2007-10-25 Thread Zentrader
> And my problem this function replace the character to "" but i > want to " " > for example: > input: Exam%^^ple > output: Exam ple > I want to this output but in my code output "Example" I don't think anyone has addressed this yet. It would be if chr found_in_allowed_set: output_string

Re: An efficient, pythonic way to calculate result sets

2007-10-25 Thread Raymond Hettinger
On Oct 25, 8:31 am, [EMAIL PROTECTED] wrote: > I've got a little issue, both programming and performance-wise. I have > a set, containing objects that refer to other sets. For example, in a > simple notation: (, ) (or in a more object-like > display: set(obj1.choices=set(a, b, c) ). There may be ob

Re: An efficient, pythonic way to calculate result sets

2007-10-25 Thread Raymond Hettinger
> Easy exercise of transforming recursion to iteration left to the > reader. Ack! That part was already done. Raymond -- http://mail.python.org/mailman/listinfo/python-list

Re: Dual Python Installed Environments..

2007-10-25 Thread Yu-Xi Lim
sam wrote: > Hey Diez... > > So you're saying it's as simple as creating an env var, and setting it to > the python version... > > ok.. (and yeah, we're talking fedora) > No, env doesn't create an environment variable. It creates a modified environment. The goal here is to have the proper PATH

[python-list] Problem with SQLObject

2007-10-25 Thread Guillermo Heizenreder
I'm creating one aplicattion and I use SQLObject, but I have a little problem, when I try to create one table my aplicattion crash! :( Let me show you: [EMAIL PROTECTED]:~/Proyectos/ghhp/lib$ python Python 2.4.4 (#2, Apr 5 2007, 20:11:18) [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on lin

Re: Dual Python Installed Environments..

2007-10-25 Thread algotother
Gaia dhuit, On Oct 25, 10:45 pm, "sam" <[EMAIL PROTECTED]> dropped 2 cents into the slot and wrote: > Hi.. Well, hello > > I'm looking to install dual versions of python 2.3, 2.4 on the same box. I'm > trying to figure out if there's something I'm missing, some kind of gotchas > that I haven't s

Re: Parallel insert to postgresql with thread

2007-10-25 Thread Scott David Daniels
Erik Jones wrote: > > On Oct 25, 2007, at 7:28 AM, Scott David Daniels wrote: >> Diez B. Roggisch wrote: >>> Abandoned wrote: Hi.. I use the threading module for the fast operation. But >> [in each thread] def save(a,b,c): cursor.execute("INSERT INTO ...

.py to sqlite translator [1 of 2]

2007-10-25 Thread smitty1e
Disclaimer(s): the author is nobody's pythonista. This could probably be done more elegantly. The driver for the effort is to get PyMacs to work with new-style classes. This rendering stage stands alone, and might be used for other purposes. A subsequent post will show using the resulting file to

OT Re: Parallel insert to postgresql with thread

2007-10-25 Thread Erik Jones
If you're not Scott Daniels, beware that this conversation has gone horribly off topic and, unless you have an interest in PostreSQL, you may not want to bother reading on... On Oct 25, 2007, at 9:46 PM, Scott David Daniels wrote: > Erik Jones wrote: >> >> On Oct 25, 2007, at 7:28 AM, Scott D

How to create a PUG mailing list?

2007-10-25 Thread Kevin D. Smith
I'm trying to get a Python User Group started in Norman, OK and I want to get one of those fancy mailing lists on mail.python.org. There is a link there to create a new list if you have the proper authority. How does someone get the proper authority? -- Kevin D. Smith -- http://mail.python

Re: threading problem..

2007-10-25 Thread John Nagle
Tried that on Python 2.5 on Windows and it worked. John Nagle Abandoned wrote: > Hi.. > I want to threading but i have a interesting error.. > == > class SelectAll(threading.Thread): >def __init__(self, name): > threading.Thread.__init

sqlite to .el translator [2 of 2]

2007-10-25 Thread smitty1e
Since I haven't yet been shot for the earlier post of a .py to sqlite rendering script, here is another script that takes the previous output and does something useful. Note that this is not the full integration with PyMacs--I rather hope to spark some interest and save some time headbanging on a)

JOIN WWW.A2ZLEARING.ORG AND GET FREE STUFF

2007-10-25 Thread RATISH KAKKAD
Register with a2zlearning and get: * More than 1000 electronic book * Lecture notes for Arts, Commerce, Science, Management * Multiple Choice Questions for Competitive Exams * Case Studies for Management Aspirants * Slide Shows on various subjects * Kids Games, Software, Co

Re: Bypassing __getattribute__ for attribute access

2007-10-25 Thread Bruno Desthuilliers
Chris Mellon a écrit : > On Thu, 2007-10-25 at 23:13 +0200, Bruno Desthuilliers wrote: > >> Dynamically adding methods to classes is pretty >> straightforward, the tricky point is to dynamically add methods to >> instances, since the descriptor protocol is only triggered for class >> attribu

<    1   2