a question about decorator

2007-10-21 Thread kyo guan
Hi: please look at this code. def A(): print 'warp in A' def why(self, *arg, **kw): print 'in A' print self print arg print kw #self(*arg, **kw) return why class T(obj

Failure to connect in SimpleXMLRPCServer/xmlrpclib

2007-10-21 Thread iu2
Hi all, I've copied the example of RPC usage from the Python's doc. When the client and server were on the same PC ("localhost") (I use Windows) it worked ok. But putting the server on a different PC raised the error: gaierror: (11001, 'getaddrinfo failed') The error was raised upion accessing s

Re: Wrapping stdout in a codec

2007-10-21 Thread Marc 'BlackJack' Rintsch
On Mon, 22 Oct 2007 02:41:17 +, JKPeck wrote: > We want to wrap the stdout device in a codec in order to decode output > transparently according to a particular code page (which might not be > the system code page). However, codec.open requires a filename, and > stdout may be a tty or otherwi

Re: C++ version of the C Python API?

2007-10-21 Thread Nicholas Bastin
On 10/21/07, Robert Dailey <[EMAIL PROTECTED]> wrote: > On 10/21/07, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > No, I literally meant that the Python C API is object-oriented. > > You don't need an object-oriented language to write object-oriented > > code. > > I disagree with this statement.

Re: C++ version of the C Python API?

2007-10-21 Thread Nicholas Bastin
On 10/21/07, Carl Banks <[EMAIL PROTECTED]> wrote: > Now, a C++ API for CPython would necessarily be built on top of the C > API, which carries some limitations relative to the OOP abilities of C++ > itself. It wouldn't have to be, although it'd be much more of a maintenance nightmare if it poked

Re: C++ version of the C Python API?

2007-10-21 Thread Aahz
In article <[EMAIL PROTECTED]>, Robert Dailey <[EMAIL PROTECTED]> wrote: > >Is there a C++ version of the C Python API packaged with python 2.5? >It would be nice to have a OOP approach to embedding python in C++. It >would also be a bonus if this C++ Python API cleaned up a lot of the >messy code

A near realtime fs mirror application (for backup, written in Python, by Linux inotify)

2007-10-21 Thread Roc Zhou
Hello: Recently I started an open source project "cutils" on the sourceforge: http://sourceforge.net/projects/crablfs/ The document can be found at: http://crablfs.sourceforge.net/#ru_data_man This project's mirrord/fs_mirror tool is a near realtime file system mirroring application across 2

RE: Wrapping stdout in a codec

2007-10-21 Thread Ryan Ginstrom
> On Behalf Of JKPeck > otherwise anonymous. How can we accomplish this wrapping? > Our application may be loaded into a Python program that has > already set up stdout. Do you mean something like this? import sys class OutStreamEncoder(object): """Wraps a stream with an encoder""" d

Re: Problem with shelve/gdbm

2007-10-21 Thread Gabriel Genellina
En Fri, 19 Oct 2007 17:58:50 -0300, Douglas Applegate <[EMAIL PROTECTED]> escribi�: > I am having a problem with shelve. The problem I think is really with > gdbm. I'll write out a file using shelve/gdbm on an amd64 machine and > then I'll try to read it in on a i386 machine. The result is a 'gd

Re: Problem Converting Word to UTF8 Text File

2007-10-21 Thread Gabriel Genellina
En Sun, 21 Oct 2007 15:32:57 -0300, <[EMAIL PROTECTED]> escribi�: > However, I still cannot read the unicode from the Word file. If take > out the first for-statement, I get a bunch of garbled text, which > isn't helpful. I would save them all manually, but I want to figure > out how to do it in

Re: parallel NumPy: PyMPI, myMPI or something else?

2007-10-21 Thread Robert Kern
[EMAIL PROTECTED] wrote: > Hi! > > I am trying to find my way to a running parallel NumPy installation. > Can you help me getting started wihtout losing my way several times? > > PyMPI and myMPI are apperently not too actively developed. Is this > true? Are they mature enough so that they don't n

Re: Problem with format string / MySQL cursor

2007-10-21 Thread John Nagle
Dennis Lee Bieber wrote: > I should also add that I'm still using a somewhat older MySQLdb (one > reason I haven't upgraded Python to 2.5 series -- finding trusted binary > builds of the third-party stuff is a pain...) What, you don't trust the build from a World of Warcraft guild?

Wrapping stdout in a codec

2007-10-21 Thread JKPeck
We want to wrap the stdout device in a codec in order to decode output transparently according to a particular code page (which might not be the system code page). However, codec.open requires a filename, and stdout may be a tty or otherwise anonymous. How can we accomplish this wrapping? Our ap

Re: Splitting URLs

2007-10-21 Thread Tim Chase
>> there are some goodies in urllib for doing some of this splitting. >> Example code at the bottom of my reply (though it seems to choke on >> certain protocols such as "mailto:"; and "ssh:" because urlparse doesn't >> return the netloc properly) > > It doesn't? That's... bad. But for my applica

Re: what is the difference between the two kinds of brackets?

2007-10-21 Thread Alex Martelli
James Stroud <[EMAIL PROTECTED]> wrote: ... > > I wonder if its the philosophical difference between: > > > > "Anything not expressly allowed is forbidden" > > > > and > > > > "Anything not expressly forbidden is allowed" ? > > > > - Hendrik > > The latter is how I interpret any religious

Re: Problem with regexp and text injection

2007-10-21 Thread chris . monsanto
On Oct 21, 6:22 pm, Panagiotis Atmatzidis <[EMAIL PROTECTED]> wrote: > Hello, > > I want to create a script in python that search for .html files in the > predefined directory and subdirectories. Then it checks if a specific > snippet of code exists in the .html file, if not it injects/adds the > c

Re: C++ version of the C Python API?

2007-10-21 Thread Michael L Torrie
Robert Dailey wrote: > On 10/21/07, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: >> No, I literally meant that the Python C API is object-oriented. >> You don't need an object-oriented language to write object-oriented >> code. > > I disagree with this statement. C is not an object oriented langua

Re: C++ version of the C Python API?

2007-10-21 Thread Carl Banks
On Sun, 21 Oct 2007 16:17:19 -0500, Robert Dailey wrote: > On 10/21/07, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: >> No, I literally meant that the Python C API is object-oriented. You >> don't need an object-oriented language to write object-oriented code. > > I disagree with this statement. C

Re: C++ version of the C Python API?

2007-10-21 Thread Alex Martelli
"Martin v. Löwis" <[EMAIL PROTECTED]> wrote: ... > The most popular ones are Boost.Python, CXX, and PySTL. I think SIP is also pretty popular (see ). Alex -- http://mail.python.org/mailman/listinfo/python-list

Re: Splitting URLs

2007-10-21 Thread Steven D'Aprano
On Sun, 21 Oct 2007 14:55:01 -0500, Tim Chase wrote: > there are some goodies in urllib for doing some of this splitting. > Example code at the bottom of my reply (though it seems to choke on > certain protocols such as "mailto:"; and "ssh:" because urlparse doesn't > return the netloc properly)

Re: Distributed RVS, Darcs, tech love

2007-10-21 Thread Owen Jacobson
On Oct 21, 3:11 pm, Lew <[EMAIL PROTECTED]> wrote: > Try using reason, logic and evidence for your points instead of merely > shouting obscenities, hm? You're expecting logic from someone who asserts that > llothar wrote: > > only contribution to software development was the theory of > > "lite

Problem with regexp and text injection

2007-10-21 Thread Panagiotis Atmatzidis
Hello, I want to create a script in python that search for .html files in the predefined directory and subdirectories. Then it checks if a specific snippet of code exists in the .html file, if not it injects/adds the code right below the string otherwise bypasses the file. I wrote the first part

Re: Distributed RVS, Darcs, tech love

2007-10-21 Thread Lew
llothar wrote: > On 21 Okt., 22:45, Lew <[EMAIL PROTECTED]> wrote: > >> Evidence is that TeX development is dead. > > Exactly and Knuths only contribution to software development was the > theory of > "literate" programming. As i said for me algorithms are not software > development, > this is pr

parallel NumPy: PyMPI, myMPI or something else?

2007-10-21 Thread smithken04
Hi! I am trying to find my way to a running parallel NumPy installation. Can you help me getting started wihtout losing my way several times? PyMPI and myMPI are apperently not too actively developed. Is this true? Are they mature enough so that they don't need any more updates? Have they been re

Re: C++ version of the C Python API?

2007-10-21 Thread Robert Dailey
On 10/21/07, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > No, I literally meant that the Python C API is object-oriented. > You don't need an object-oriented language to write object-oriented > code. I disagree with this statement. C is not an object oriented language, and I've seen attempts to

Re: C++ version of the C Python API?

2007-10-21 Thread Martin v. Löwis
> Could you emphasize a little more? I haven't worked much at all with > the Python C API, so I may be misunderstanding. First of all, you say > that the "Python C API is object oriented", which is contradictory > because it should read "Python C++ API is object oriented". Perhaps > this is a typo,

Re: C++ version of the C Python API?

2007-10-21 Thread Robert Dailey
On 10/21/07, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > I think you are misinterpreting what you are seeing. The Python C API > *is* object-oriented. It has all features of object-orientation: > classes, encapsulation, polymorphism, late binding, ... > > As for "make your own": people have trie

Re: using "request" variable in python web program

2007-10-21 Thread sami
> However, it shouldn't be too bad to set Django up, really, especially > if people have taken some time to explain something very close to what > you want to do using Django. Moreover, there's a Google group (django- > users) where you could ask general questions, and I imagine that > people will

Re: using "request" variable in python web program

2007-10-21 Thread Paul Boddie
On 21 Okt, 21:59, sami <[EMAIL PROTECTED]> wrote: > > Thanks a ton Paul for the information. I am using CGI and my host > (nearlyfreespeech.net) does not have django hosting - and being mainly > a C/dekstop apps programmer I really don't want to learn the whole MVC > concept and its implementation

Re: C++ version of the C Python API?

2007-10-21 Thread Martin v. Löwis
> Well C++ implicitly includes OOP since that is the foundation of the > language. I was more or less asking if there was an object oriented > version of the Python embedded API or perhaps an OO wrapper. However > it doesn't seem that way, so I may have to make my own. I think you are misinterpret

Re: Splitting URLs

2007-10-21 Thread Tim Chase
> URL = 'http://steve:[EMAIL PROTECTED]:82/dir" + \ > 'ectory/file.html;params?query#fragment' > > If I split the URL, I would like to get the following components: > > scheme = 'http' > netloc = 'steve:[EMAIL PROTECTED]:82' > username = 'steve' > password = 'secret' > hostname = 'www.domain.

Re: C++ version of the C Python API?

2007-10-21 Thread Robert Dailey
On 10/21/07, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > Is there a C++ version of the C Python API packaged with python 2.5? > > Stargaming has already mentioned the fine points; the first answer is: > yes, the API packaged python 2.5 can be used with C++. It is a C++ > version of the same AP

Re: Problem with format string / MySQL cursor

2007-10-21 Thread Gabriel Genellina
En Sat, 20 Oct 2007 18:40:38 -0300, Dennis Lee Bieber <[EMAIL PROTECTED]> escribi�: > On Fri, 19 Oct 2007 18:50:20 -0300, "Gabriel Genellina" > <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: >> If the MySQLdb adapter actually converts and inserts the arguments >> itself >> i

Re: what is the difference between the two kinds of brackets?

2007-10-21 Thread James Stroud
Hendrik van Rooyen wrote: > "Paul Hankin" wrote: > >> If everything else is equal, use tuples. > > Interesting point of view - mine is just the opposite. > > I wonder if its the philosophical difference between: > > "Anything not expressly allowed is forbidden" > > and > > "Anything not expr

Re: errors while building a program with Python

2007-10-21 Thread jeffstatin
On Oct 21, 1:31 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Sun, 21 Oct 2007 13:52:43 -0300, <[EMAIL PROTECTED]> escribi?: > > > I'm trying to build a program (MixMinion) with Python 2.5.1, MSVS 2003 > > SP1 and Windows XP Home SP2 but I'm getting a couple of errors. > > > Here are the

Tkinter Status on OSX

2007-10-21 Thread stephen
Hey guys, What is that status of Tkinter on OSX (10.4.10)? I have tried several installations (Python 2.4.4, 2.5 and 2.5.1) all from the official distro sites and others each version has the same major issue.Theproblem is simple to recreate, use any of the simple sample code available here: http:

Re: Problem Converting Word to UTF8 Text File

2007-10-21 Thread patrick . waldo
Indeed, the shutil.copyfile(doc,txt_doc) was causing the problem for the reason you stated. So, I changed it to this: for doc in glob.glob(input): txt_split = os.path.splitext(doc) txt_doc = txt_split[0] + '.txt' txt_doc_dir = os.path.join(input_dir,txt_doc) doc_dir = os.path.join

Re: Distributed RVS, Darcs, tech love

2007-10-21 Thread Slobodan Blazeski
On Oct 20, 6:20 pm, Daniel Pitts <[EMAIL PROTECTED]> wrote: > On Oct 20, 2:04 pm, llothar <[EMAIL PROTECTED]> wrote: > > > > I love math. I respect Math. I'm nothing but a menial servant to > > > Mathematics. > > > Programming and use cases are not maths. Many mathematics are > > the worst programm

Re: compiler module bug?

2007-10-21 Thread Brian Blais
On Oct 21, 2007, at Oct 21:2:05 PM, Gabriel Genellina wrote: The parseFile function does exactly that, along with this comment: thanks! bb -- Brian Blais [EMAIL PROTECTED] http://web.bryant.edu/~bblais -- http://mail.python.org/mailman/listinfo/python-list

Re: compiler module bug?

2007-10-21 Thread Gabriel Genellina
En Sun, 21 Oct 2007 14:33:00 -0300, Brian Blais <[EMAIL PROTECTED]> escribió: > On Oct 21, 2007, at Oct 21:1:15 PM, Gabriel Genellina wrote: >> The comment itself is not a problem; but the last line in the >> source must >> end in a newline. > > then, even if it is known problem, the docs are w

Re: Distributed RVS, Darcs, tech love

2007-10-21 Thread Joachim Durchholz
Lew schrieb: > I am afraid that your conclusion is quite mistaken. Knuth is, if > anything, a huge success in the field of software engineering, whether > you rate it as making a contribution to the art, or as being paid to > perform the art. Well, sort of. Some of the code given is unreadable

Re: compiler module bug?

2007-10-21 Thread Brian Blais
On Oct 21, 2007, at Oct 21:1:15 PM, Gabriel Genellina wrote: En Sun, 21 Oct 2007 13:36:46 -0300, Brian Blais <[EMAIL PROTECTED]> escribi�: I am experiencing a problem with the compiler module. Is this a bug, or am I doing something wrong? I think it's a well-known fact... it seems like a

Re: errors while building a program with Python

2007-10-21 Thread Gabriel Genellina
En Sun, 21 Oct 2007 13:52:43 -0300, <[EMAIL PROTECTED]> escribi�: > I'm trying to build a program (MixMinion) with Python 2.5.1, MSVS 2003 > SP1 and Windows XP Home SP2 but I'm getting a couple of errors. > > Here are the two errors I am getting: > (1) .\contrib\OpenSSL\lib\Builder5\ssleay32.lib :

Re: Visibility of symbols between extension modules

2007-10-21 Thread Sudharshan S
Hi, On Sun, 2007-10-21 at 13:43 -0300, Gabriel Genellina wrote: > En Sun, 21 Oct 2007 08:21:50 -0300, Sudharshan S <[EMAIL PROTECTED]> > escribi�: > > What is foo? a directory? And bar/_foo/baz, source files in C? Each one > defining a module object, or is there a single module - foo perhaps?

Re: compiler module bug?

2007-10-21 Thread Gabriel Genellina
En Sun, 21 Oct 2007 13:36:46 -0300, Brian Blais <[EMAIL PROTECTED]> escribi�: > I am experiencing a problem with the compiler module. Is this a bug, > or am I doing something wrong? I think it's a well-known fact... > it seems like a comment at the end breaks the parse command, but not > pars

Re: C++ version of the C Python API?

2007-10-21 Thread Martin v. Löwis
> Is there a C++ version of the C Python API packaged with python 2.5? Stargaming has already mentioned the fine points; the first answer is: yes, the API packaged python 2.5 can be used with C++. It is a C++ version of the same API as it adds proper extern "C" declarations around all prototypes,

Re: Problem Converting Word to UTF8 Text File

2007-10-21 Thread Gabriel Genellina
En Sun, 21 Oct 2007 13:35:43 -0300, <[EMAIL PROTECTED]> escribi�: > Hi all, > > I'm trying to copy a bunch of microsoft word documents that have > unicode characters into utf-8 text files. Everything works fine at > the beginning. The word documents get converted and new utf-8 text > files with

Re: Dealing with "funny" characters

2007-10-21 Thread John Nagle
Diez B. Roggisch wrote: >>No, no, that's wrong. MySQL and the Python interface to it understand >> Unicode. You don't want to convert data to UTF-8 before putting it in a >> database; the database indexing won't work. > > I doubt that indexing has anything to do with it whatsoever. Of

errors while building a program with Python

2007-10-21 Thread jeffstatin
Hi, I'm trying to build a program (MixMinion) with Python 2.5.1, MSVS 2003 SP1 and Windows XP Home SP2 but I'm getting a couple of errors. Here are the two errors I am getting: (1) .\contrib\OpenSSL\lib\Builder5\ssleay32.lib : fatal error LNK1136: invalid or corrupt file (2) error: command '"C:\P

Error when python script run as cgi script

2007-10-21 Thread sophie_newbie
Hi, I'm running a python script which if I run from the command line as root runs fine. But if I run it through the web-browser as a cgi script gives the following error "Error in X11: unable to start device PNG". Now I should say that this python script is calling fucntions in R (a scripting lang

Re: Visibility of symbols between extension modules

2007-10-21 Thread Gabriel Genellina
En Sun, 21 Oct 2007 08:21:50 -0300, Sudharshan S <[EMAIL PROTECTED]> escribi�: > I have been learning to write extension modules using the C API that > python provides, and have hit a minor roadblock that is turning out to > be major headache. > My project essentially is organized as follows, >

Problem Converting Word to UTF8 Text File

2007-10-21 Thread patrick . waldo
Hi all, I'm trying to copy a bunch of microsoft word documents that have unicode characters into utf-8 text files. Everything works fine at the beginning. The word documents get converted and new utf-8 text files with the same name get created. And then I try to copy the data and I keep on gett

compiler module bug?

2007-10-21 Thread Brian Blais
Hello, I am experiencing a problem with the compiler module. Is this a bug, or am I doing something wrong? so I have the following code: from compiler import parse, parseFile filename='blah.py' if False: # turn this to false, to get it to work ast = parse(open(filename).read()) # t

Endless GIL and thread confusion

2007-10-21 Thread enska
Can someone clarify the steps needed to make access to the interpreter safe from multiple threads? I've been reading the docs for days and I still find them very confusing and misleading. For example does the PyGILState_Ensure() function lock the GIL or just create the thread state? Is thread supp

Re: General module name clash problem?

2007-10-21 Thread jipjip
I hope, i get it right now. :-) So i worked out an extreme not-module-name-clashing-example. Type 'python start.py' at root. Thanks, jipjip root.tar.gz Description: GNU Zip compressed data -- http://mail.python.org/mailman/listinfo/python-list

Re: Distributed RVS, Darcs, tech love

2007-10-21 Thread Lew
llothar wrote: > Well programming in the small like sort algorithms for sure. But not > for his great discoveries but for one of the first man who was paid > for this by this university employee. What a curious thesis. > But in the field of software enginering as i said before he > completely > f

Re: Distributed RVS, Darcs, tech love

2007-10-21 Thread llothar
> > Depends obvious a bot on what you consider serious math. > > Expression evaluation, floating point characteristics, relational > database theory, simulation, optimum location, encryption etc. > are all based on mathematics of different levels. Thats not i call serious maths. You just need a ve

Re: Distributed RVS, Darcs, tech love

2007-10-21 Thread Lew
llothar wrote: > On 21 Okt., 21:39, Arne Vajhøj <[EMAIL PROTECTED]> wrote: > >> That level of activity could be considered dead. > > For me at least 2% of the total line count should be changed > to call it non dead. > > I don't say it it not used anymore for users it might be > not dead but thi

Re: Distributed RVS, Darcs, tech love

2007-10-21 Thread llothar
On 21 Okt., 21:39, Arne Vajhøj <[EMAIL PROTECTED]> wrote: > That level of activity could be considered dead. For me at least 2% of the total line count should be changed to call it non dead. I don't say it it not used anymore for users it might be not dead but this is not the point under discuss

Re: Distributed RVS, Darcs, tech love

2007-10-21 Thread Lew
OMouse wrote: > For the love of the Perl, Python, Lisp, Java and functional > programmers, please just give an abstract of what you've written and > link to it? I expect you'll be ignored on that. Xah Lee reposts and reposts these essays from years agone. I don't even read his posts, just the r

Re: Distributed RVS, Darcs, tech love

2007-10-21 Thread Lew
Arne Vajhøj wrote: > Lew wrote: >>> very >>> different. Having a dead - i mean end of development line software >>> like TeX - and >> >> Based on what do you call it "dead end". It's used, it's outlasted >> many other flashes in the pan, it does what its users require. You >> will need evidence

Re: Distributed RVS, Darcs, tech love

2007-10-21 Thread OMouse
For the love of the Perl, Python, Lisp, Java and functional programmers, please just give an abstract of what you've written and link to it? -Rudolf -- http://mail.python.org/mailman/listinfo/python-list

Re: logging module - restricted mode error

2007-10-21 Thread Vinay Sajip
On 21 Oct, 07:50, Paul Rudin <[EMAIL PROTECTED]> wrote: > > Can you say a little bit more about the execution environment? For > > example, are you running under mod_python? If so, which version? > > I'm not running under mod_python - but this is using cherrypy. I also > do some passing of pickled

Re: Distributed RVS, Darcs, tech love

2007-10-21 Thread Arne Vajhøj
llothar wrote: >> I'm, not sure that I'm getting your point, but are you trying to argue that >> _not_ knowing mathemathics makes you a better programmer? > > No but it doesn't help you very much either. They are just different > skills. Many things within programming have a foundation in mathema

Re: Distributed RVS, Darcs, tech love

2007-10-21 Thread Arne Vajhøj
Lew wrote: >> very >> different. Having a dead - i mean end of development line software >> like TeX - and > > Based on what do you call it "dead end". It's used, it's outlasted many > other flashes in the pan, it does what its users require. You will need > evidence for such a claim. Accordi

Splitting URLs

2007-10-21 Thread Steven D'Aprano
I'm trying to split a URL into components. For example: URL = 'http://steve:[EMAIL PROTECTED]:82/dir" + \ 'ectory/file.html;params?query#fragment' (joining the strings above with plus has no significance, it's just to avoid word-wrapping) If I split the URL, I would like to get the followi

Re: ACM SIGAPL / APL2007 Conference / Montreal / one week away

2007-10-21 Thread Dan Nagle
Hello, Can we please have a little trimming of newsgroups? Fortran's character set is a nice safe subset of seven-bit ASCII. Veli-Matti wrote: > Gosi wrote: > .. >> I can not use the APL character set at all. >> It is too mixed up with my national characters. > > What about a unicode version of

Re: Distributed RVS, Darcs, tech love

2007-10-21 Thread Lew
llothar wrote: > Depends. I would call Knuth as one of the worst programmers. Look at > his total > failures on literature programming. Software Engineering is something Umm, the term is "literate" programmer and there is evidence that it is not a "failure". > very > different. Having a dead - i

Re: Distributed RVS, Darcs, tech love

2007-10-21 Thread llothar
> I'm, not sure that I'm getting your point, but are you trying to argue that > _not_ knowing mathemathics makes you a better programmer? No but it doesn't help you very much either. They are just different skills. > Or maybe that learning math is useless to a programmer? No and at least the mat

Re: Selection error...

2007-10-21 Thread Guilherme Polo
2007/10/21, Abandoned <[EMAIL PROTECTED]>: > > > cursor.execute("SELECT id from templinks where url=%s", (URL,) ) > Yes i already try this before ask. > > URL.decode('latin-1').encode('utf-8') to transcode it into utf-8. > i know this but how do you know the html encoding's a latin-1 ? Try using c

Visibility of symbols between extension modules

2007-10-21 Thread Sudharshan S
Hi all, I have been learning to write extension modules using the C API that python provides, and have hit a minor roadblock that is turning out to be major headache. My project essentially is organized as follows, foo | - |

Re: ACM SIGAPL / APL2007 Conference / Montreal / one week away

2007-10-21 Thread Veli-Matti
Gosi wrote: .. > I can not use the APL character set at all. > It is too mixed up with my national characters. What about a unicode version of APL? Honestly, I cannot use J because it mixes with all the characters I use... ;) -Veli-Matti -- http://mail.python.org/mailman/listinfo/python-list

Re: ACM SIGAPL / APL2007 Conference / Montreal / one week away

2007-10-21 Thread Wade Ward
"Gosi" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Oct 20, 10:46 pm, rbe <[EMAIL PROTECTED]> wrote: >> On Oct 15, 5:22 am, Mike Kent <[EMAIL PROTECTED]> wrote: >> >> > Conference page >> > // with links to program details // >> > (updated Friday 10/12

Shed Skin Python-to-C++ compiler 0.0.24, 0.0.25

2007-10-21 Thread Mark Dufour
Hi all, I've just released Shed Skin 0.0.25. Together with the (unannounced) 0.0.24 release, there have been some interesting changes. Most importantly perhaps, Shed Skin now caches (most) 1-length strings, which can improve performance dramatically for string-intensive programs. I also performed

Re: ACM SIGAPL / APL2007 Conference / Montreal / one week away

2007-10-21 Thread Gosi
On Oct 20, 10:46 pm, rbe <[EMAIL PROTECTED]> wrote: > On Oct 15, 5:22 am, Mike Kent <[EMAIL PROTECTED]> wrote: > > > Conference page > > // with links to program details // > > (updated Friday 10/12) > > >http://www.sigapl.org/apl2007.html... > > At APL2007, I'll be

Re: Distributed RVS, Darcs, tech love

2007-10-21 Thread Timofei Shatrov
On Sat, 20 Oct 2007 14:04:06 -0700, llothar <[EMAIL PROTECTED]> tried to confuse everyone with this message: > >> I love math. I respect Math. I'm nothing but a menial servant to >> Mathematics. > >Programming and use cases are not maths. Many mathematics are >the worst programmers i've seen becau

Re: Selection error...

2007-10-21 Thread Abandoned
> cursor.execute("SELECT id from templinks where url=%s", (URL,) ) Yes i already try this before ask. URL.decode('latin-1').encode('utf-8') to transcode it into utf-8. i know this but how do you know the html encoding's a latin-1 ? Html encoding is to be iso-8859-9 or ascii or cp1254 ... For this

Re: logging module - restricted mode error

2007-10-21 Thread Paul Rudin
Vinay Sajip <[EMAIL PROTECTED]> writes: > On 16 Oct, 04:14, Paul Rudin <[EMAIL PROTECTED]> wrote: >> I'm occasionally seeing tracebacks like this: >> >> Traceback (most recent call last): >> File "logging/__init__.py", line 744, in emit >> File "logging/__init__.py", line 630, in format >> F