Re: MS Word parser

2007-06-17 Thread Josiah Carlson
[EMAIL PROTECTED] wrote: > I'm currently using antiword to extract content from MS Word files. > Is there another way to do this without relying on any command prompt > application? There is also wvware http://wvware.sourceforge.net/, but it is also generally a command-line application. Either o

Re: Memory problem with Python

2007-06-17 Thread Squzer Crawler
On Jun 18, 11:06 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Jun 17, 8:51 pm, Squzer Crawler <[EMAIL PROTECTED]> wrote: > > > i am developing distributed environment in my college using Python. I > > am using therads in client for downloading wepages. Even though i am > > reusing the th

Re: Memory problem with Python

2007-06-17 Thread [EMAIL PROTECTED]
On Jun 17, 8:51 pm, Squzer Crawler <[EMAIL PROTECTED]> wrote: > i am developing distributed environment in my college using Python. I > am using therads in client for downloading wepages. Even though i am > reusing the thread, memory usage get increased. I don know why.? I am > using BerkelyDB for

Re: Trivial string substitution/parser

2007-06-17 Thread Graham Breed
Samuel wote: > Thanks, however, turns out my specification of the problem was > incomplete: In addition, the variable names are not known at compilation > time. > I just did it that way, this looks fairly easy already: > > --- > import re > > def variable_sub_cb(match): >

labeled break/continue

2007-06-17 Thread Matt Chisholm
Hi. I was wondering if there had ever been an official decision on the idea of adding labeled break and continue functionality to Python. I've found a few places where the idea has come up, in the context of named code blocks: http://groups.google.com/group/comp.lang.python/browse_thread/thread/

PyRun_String with Py_single_input to stdout?

2007-06-17 Thread [EMAIL PROTECTED]
I'm using PyRun_String with Py_single_input for a python interpreter embedded in my application. I'm using Py_single_input. Py_single input is what I want, but it seems to output to stdout. Before when I was using Py_eval_input I was able to grab the result so I could print it in a text box:

PyRun_String with Py_single_input to stdout?

2007-06-17 Thread [EMAIL PROTECTED]
I'm using PyRun_String with Py_single_input for a python interpreter embedded in my application. I'm using Py_single_input. Py_single input is what I want, but it seems to output to stdout. Before when I was using Py_eval_input I was able to grab the result so I could print it in a text box:

Re: Trivial string substitution/parser

2007-06-17 Thread Josiah Carlson
Samuel wrote: > On Sun, 17 Jun 2007 11:00:58 +, Duncan Booth wrote: > >> The elegant and lazy way would be to change your specification so that $ >> characters are escaped by $$ not by backslashes. Then you can write: >> > from string import Template > ... > > Thanks, however, turns o

Re: smtp server simulation using Python

2007-06-17 Thread Josiah Carlson
William Gill wrote: > I have a (web) development computer w/o an SMTP server and want to test > form generated e-mail using a dummy SMTP server that delivers the mail > message to a file, or better yet, to a text editor instead of actually > sending it. Is it possible to extend the DebuggingSer

Memory problem with Python

2007-06-17 Thread Squzer Crawler
i am developing distributed environment in my college using Python. I am using therads in client for downloading wepages. Even though i am reusing the thread, memory usage get increased. I don know why.? I am using BerkelyDB for URLQueue, BeautifulShop for Parsing the webpages. Any idea of redus

Windows XMLRPC Service

2007-06-17 Thread half . italian
Hi, I'm trying to serve up a simple XMLRPC server as a windows service. I got it to run properly, I'm just not sure how to stop it properly. Most of the documentation/examples I found for this was from forums, so I'd love some links to relevant info also. Here's what I have...taken from the cook

Re: The Modernization of Emacs

2007-06-17 Thread George Sakkis
On Jun 17, 6:46 pm, Philipp Leitner <[EMAIL PROTECTED]> wrote: > Ever came to your mind that there are people (programmers and others) > who will not use emacs for their day-to-day work simply because they > have tools that suit them better for the work they have to do (Eclipse > for me, as an exa

Re: WebThumb

2007-06-17 Thread Jay Loden
John J. Lee wrote: > Johny <[EMAIL PROTECTED]> writes: > >> How can I get a website thumbnail? >> I would like to allow visitors to add their URLs to our pages with >> the thumbnail of their website. >> Can anyone suggest a solution for web thumbnails? >> Thanks >> L. > Don't know if this rea

Re: The Modernization of Emacs

2007-06-17 Thread Philipp Leitner
Ever came to your mind that there are people (programmers and others) who will not use emacs for their day-to-day work simply because they have tools that suit them better for the work they have to do (Eclipse for me, as an example)? Except from that: I personally don't feel that your rantings are

Re: Matrix Multiplication

2007-06-17 Thread sturlamolden
On Jun 17, 10:52 pm, "[EMAIL PROTECTED]" wrote: > Hi, > > Is there any direct function for matrix multiplication in Python or > any of its packages? or do we have to multiply element by element? Use numpy: www.scipy.org NumPy has a matrix type that overloads the * operator. -- http://mail.py

RE: Database Access using pyodbc. I've a problem

2007-06-17 Thread Doug Phillips
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Rajendran > Sent: Sunday, June 17, 2007 3:06 AM > To: python-list@python.org > Subject: Re: Database Access using pyodbc. I've a problem > > Hi Robert, > Thanks for your response. > The problem I've

Re: Matrix Multiplication

2007-06-17 Thread Thomas Wittek
[EMAIL PROTECTED]: > Is there any direct function for matrix multiplication in Python or > any of its packages? or do we have to multiply element by element? First hit on google for "python matrix": http://matpy.sourceforge.net/ -- Thomas Wittek http://gedankenkonstrukt.de/ Jabber: [EMAIL PROTEC

Re: global destructor not called?

2007-06-17 Thread [EMAIL PROTECTED]
On Jun 15, 7:07 pm, Neal Becker <[EMAIL PROTECTED]> wrote: > Bruno Desthuilliers wrote: > > Neal Becker a écrit : > >> To implement logging, I'm using a class: > > > If I may ask : any reason not to use the logging module in the stdlib ? > > Don't exactly recall, but needed some specific behavior a

Re: The Modernization of Emacs

2007-06-17 Thread Twisted
On Jun 17, 11:13 am, Xah Lee <[EMAIL PROTECTED]> wrote: [snip] Whoa. Xah posted something I agree with wholeheartedly. Imagine that. -- http://mail.python.org/mailman/listinfo/python-list

Matrix Multiplication

2007-06-17 Thread [EMAIL PROTECTED]
Hi, Is there any direct function for matrix multiplication in Python or any of its packages? or do we have to multiply element by element? Thank you, Amit -- http://mail.python.org/mailman/listinfo/python-list

smtp server simulation using Python

2007-06-17 Thread William Gill
I have a (web) development computer w/o an SMTP server and want to test form generated e-mail using a dummy SMTP server that delivers the mail message to a file, or better yet, to a text editor instead of actually sending it. Is it possible to extend the DebuggingServer class,and override the

Re: sqlite3 bug??

2007-06-17 Thread Carsten Haese
On Sun, 2007-06-17 at 19:26 +0100, mark carter wrote: > Carsten Haese wrote: > > On Sun, 2007-06-17 at 07:43 -0700, 7stud wrote: > >> Please report the whole docs as a bug. > > > > I imagine the author appreciates constructive criticism. This is not > > constructive criticism. > > > > In other wo

Re: sqlite3 bug??

2007-06-17 Thread Sebastian Wiesner
[ Carsten Haese <[EMAIL PROTECTED]> ] > On Sun, 2007-06-17 at 07:43 -0700, 7stud wrote: > > Please report the whole docs as a bug. > > Calling the entire docs a bug is not helpful. ... unless he also comes up with the "bugfix". ;) -- Freedom is always the freedom of dissenters.

Re: sqlite3 bug??

2007-06-17 Thread mark carter
Carsten Haese wrote: > On Sun, 2007-06-17 at 07:43 -0700, 7stud wrote: >> Please report the whole docs as a bug. > > I imagine the author appreciates constructive criticism. This is not > constructive criticism. > > In other words: Pointing out specific shortcomings and ways to correct > them, su

Re: sqlite3 bug??

2007-06-17 Thread Carsten Haese
On Sun, 2007-06-17 at 07:43 -0700, 7stud wrote: > Please report the whole docs as a bug. I imagine the author appreciates constructive criticism. This is not constructive criticism. In other words: Pointing out specific shortcomings and ways to correct them, such as what the OP is doing, is helpf

Re: Comparing UTF-8 into USC-2 and vice versa (newbie :-) )

2007-06-17 Thread Martin v. Löwis
Tzury schrieb: > Yet, > 'utf_16_be' is not 'ucs-2'. That's not true. They are virtually identical. > How would I get ucs-2 encoding and decoding functionality with python? Use the UTF-16 codec. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Comparing UTF-8 into USC-2 and vice versa (newbie :-) )

2007-06-17 Thread Tzury
Yet, 'utf_16_be' is not 'ucs-2'. How would I get ucs-2 encoding and decoding functionality with python? -- http://mail.python.org/mailman/listinfo/python-list

Alternative logging packages

2007-06-17 Thread George Sakkis
I've been growing increasingly weary of the javaesque awkwardness* of the standard library logging package at the point of being willing to give a chance to alternatives. Before I go and try whatever related package there is on PyPI, could anyone that has used them (or is currently using one) comme

Re: Longest issue tracker thread?

2007-06-17 Thread John J. Lee
[EMAIL PROTECTED] (John J. Lee) writes: > Reading a recent message about a mozilla project bugzilla comment > thread 7 years old, I am curious re how dismally long and drawn-out a > tracker thread has so far been observed in the wild. [...] I'll get my coat... :-) John -- http://mail.python.or

Re: WebThumb

2007-06-17 Thread John J. Lee
Johny <[EMAIL PROTECTED]> writes: > How can I get a website thumbnail? > I would like to allow visitors to add their URLs to our pages with > the thumbnail of their website. > Can anyone suggest a solution for web thumbnails? > Thanks > L. There are a number of ways to do it, most of them involv

Re: a_list.count(a_callable) ?

2007-06-17 Thread Ping
> print "b has", b.count(25, cmp=le, key=attrgetter("age")), \ > "elements with age <= 25." > [deleted] > b has 2 elements with age <= 30. Oops, I mixed up when copying and pasting at different times... :p The output was of course b has 1 elements with age <= 25. Ping -- http://mail.p

Re: Function that returns a tuple

2007-06-17 Thread Alex Martelli
David Wahler <[EMAIL PROTECTED]> wrote: ... > Tuples are immutable (can't be modified once created). Try this: > > def BDllids(): > conn = sqlite.connect('tasques.db') > cursor = conn.cursor() > cursor.execute('SELECT * FROM tasques') > a = [row[0] for row in cursor] > retu

Re: The Modernization of Emacs

2007-06-17 Thread Thomas F. Burdick
For the love of dogs, Xah, try to keep up. Aquamacs is an Emacs distribution that, which not there yet, is at least half way between "classic" Emacs and a modern Mac UI. You sound ridiculous, like if you were complaining about Windows not being really graphical, based on experience with Windows-3

Re: Interpolation of a discrete 3D trajectory

2007-06-17 Thread Scott David Daniels
Peter Beattie wrote: > I'm looking for a way to smooth out the edges of a 3D trajectory that is > really just a sequence of points in space > What I would like to have now is for the trajectory not to pass through > the individual points at a sharp angle, but to have an interpolated > curve in

Re: a_list.count(a_callable) ?

2007-06-17 Thread Ping
Somehow I did not see my post sent about 10 hours ago. I'm posting it again. I apologize if it showed up twice. After seeing all the ideas tossed around, now I like the proposal made by BJörn Lindqvist the best, and I extend it further to match the sort() method: L.count(value, cmp=None, key=N

Re: Embedding unit tests in source files?

2007-06-17 Thread Jean-Paul Calderone
On Sun, 17 Jun 2007 08:15:46 -0700, Roy Smith <[EMAIL PROTECTED]> wrote: >I'm starting a new project and am thinking of embedding my unit tests >right in the source files. I've used unittest before, and I'm happy >with it, but I've always used it with the source code in one file and >the unit test

Embedding unit tests in source files?

2007-06-17 Thread Roy Smith
I'm starting a new project and am thinking of embedding my unit tests right in the source files. I've used unittest before, and I'm happy with it, but I've always used it with the source code in one file and the unit tests in another. I figure if I just put a if __name__ == '__main__": impor

The Modernization of Emacs

2007-06-17 Thread Xah Lee
[this post is a excerpt from The Modernization of Emacs, Xah Lee, 2006-04 at http://xahlee.org/emacs/modernization.html ] The Modernization of Emacs THE PROBLEM Emacs is a great editor. It is perhaps the most powerful and most versatile text editor. And,

Re: sqlite3 bug??

2007-06-17 Thread mark carter
7stud wrote: > On Jun 17, 7:16 am, mark carter <[EMAIL PROTECTED]> wrote: >> David Wahler wrote: >>> On 6/17/07, mark carter <[EMAIL PROTECTED]> wrote: Anyone else getting these problems? >>> Seehttp://www.python.org/dev/peps/pep-0249/(emphasis mine): >>>.commit() >> >> I'm seriously thin

Re: sqlite3 bug??

2007-06-17 Thread 7stud
On Jun 17, 7:16 am, mark carter <[EMAIL PROTECTED]> wrote: > David Wahler wrote: > > On 6/17/07, mark carter <[EMAIL PROTECTED]> wrote: > >> Anyone else getting these problems? > > > Seehttp://www.python.org/dev/peps/pep-0249/(emphasis mine): > > >.commit() > > OK, I tried that, and I appear to

Re: Questions about mathematical and statistical functionality in Python

2007-06-17 Thread David Boddie
On Fri Jun 15 03:08:08 CEST 2007, Josh Gilbert wrote: > In a similar vein, I wish there was a reasonable Free Software equivalent to > Spotfire. The closest I've found (and they're nowhere near as good) are > Orange (http://www.ailab.si/orange) and WEKA > (http://www.cs.waikato.ac.nz/ml/weka/). Or

Re: sqlite3 bug??

2007-06-17 Thread mark carter
David Wahler wrote: > On 6/17/07, mark carter <[EMAIL PROTECTED]> wrote: >> Anyone else getting these problems? > > See http://www.python.org/dev/peps/pep-0249/ (emphasis mine): > >.commit() OK, I tried that, and I appear to be cooking. The funny thing is, I could have sworn that I tried t

Re: Interpolation of a discrete 3D trajectory

2007-06-17 Thread Jules César
Peter Beattie a écrit : > Hey guys, > > I'm looking for a way to smooth out the edges of a 3D trajectory that is > really just a sequence of points in space. I've got co-ordinates just > like these: > > 0.072 -0.25 0.582 > -0.036 -0.25 0.644 > 0.036 0.338 0.104 > > What I would like to have now

Re: Trivial string substitution/parser

2007-06-17 Thread Samuel
On Sun, 17 Jun 2007 11:00:58 +, Duncan Booth wrote: > The elegant and lazy way would be to change your specification so that $ > characters are escaped by $$ not by backslashes. Then you can write: > from string import Template ... Thanks, however, turns out my specification of the

Re: sqlite3 bug??

2007-06-17 Thread Peter Otten
mark carter wrote: > I hesitate to ask, but ... Don't :-) > I'm using Ubuntu Feisty: > * Python 2.5.1 (r251:54863, May 2 2007, 16:56:35) > [GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2 > * SQLite version 3.3.13 > > Suppose I run the following program: > import sqlite3 > > conn = sqlite3.conne

Re: sqlite3 bug??

2007-06-17 Thread Carsten Haese
On Sun, 2007-06-17 at 12:59 +0100, mark carter wrote: > I hesitate to ask, but ... > > I'm using Ubuntu Feisty: > * Python 2.5.1 (r251:54863, May 2 2007, 16:56:35) > [GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2 > * SQLite version 3.3.13 > > Suppose I run the following program: > import sq

Re: Python's "only one way to do it" philosophy isn't good?

2007-06-17 Thread Neil Cerutti
On 2007-06-17, Paul Rubin wrote: > Neil Cerutti <[EMAIL PROTECTED]> writes: >> I don't know that much about ML. I know is does a really nice job >> of generic containers, as does C++. But can it 'foo' any type as >> easily as C++? >> >> template T foo(T); > > I don't know enough C++ to understan

Re: sqlite3 bug??

2007-06-17 Thread David Wahler
On 6/17/07, mark carter <[EMAIL PROTECTED]> wrote: > I hesitate to ask, but ... > > I'm using Ubuntu Feisty: > * Python 2.5.1 (r251:54863, May 2 2007, 16:56:35) > [GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2 > * SQLite version 3.3.13 > > Suppose I run the following program: > import sqlit

Re: Newbie question: how to get started?

2007-06-17 Thread Paul McGuire
On Jun 16, 10:01 pm, ed <[EMAIL PROTECTED]> wrote: > I should also mention that I know C/C++, Perl, Javascript, the basics > of mySQL, and HTML/CSS. If anyone has tried to enter python from these > angles, I'd be grateful to hear from you. > > On 2007-06-16 22:48:32 -0400, ed <[EMAIL PROTECTED]> s

sqlite3 bug??

2007-06-17 Thread mark carter
I hesitate to ask, but ... I'm using Ubuntu Feisty: * Python 2.5.1 (r251:54863, May 2 2007, 16:56:35) [GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2 * SQLite version 3.3.13 Suppose I run the following program: import sqlite3 conn = sqlite3.connect('example') c = conn.cursor() # Create

Re: Newbie question: how to get started?

2007-06-17 Thread Robert Bauck Hamar
ed wrote: > I should also mention that I know C/C++, Perl, Javascript, the basics > of mySQL, and HTML/CSS. If anyone has tried to enter python from these > angles, I'd be grateful to hear from you. What's C/C++? Well, I knew C, C++, Perl, Java, SQL, and HTML before learning Python. And some mo

Re: Inserting breakpoints ...

2007-06-17 Thread Stef Mientki
Gabriel Genellina wrote: > En Sat, 16 Jun 2007 10:22:34 -0300, Stef Mientki > <[EMAIL PROTECTED]> escribió: > >> for the simulation of some micro language (JAL), >> the original language is (with a minimal effort) translated into Python, >> after which the code is run in Python. >> >> I want to a

Re: Trivial string substitution/parser

2007-06-17 Thread Duncan Booth
Samuel <[EMAIL PROTECTED]> wrote: > Hi, > > How would you implement a simple parser for the following string: > > --- > In this string $variable1 is substituted, while \$variable2 is not. > --- > > I know how to write a parser, but I am looking for an elegant (and lazy) > way. Any idea? > The

Re: Goto

2007-06-17 Thread Neil Cerutti
On 2007-06-17, Tina I <[EMAIL PROTECTED]> wrote: > Back then I took a course in structured BASIC programming (now > there is a contradiction in terms) and the instructor warned > about goto time and time again. But his biggest mistake was to > tell us that if we had to use goto at least we should e

very important for your life...

2007-06-17 Thread asm
Hi there ... Thank you for reading this message . Did you here about Islam? I mean the real Islam... Do you have some questions in your religion and you don't have the answers for them? Do you know that you have to condemns in Islam? Ok... just visit these sites, read and download any thing you

Re: Function that returns a tuple

2007-06-17 Thread John Machin
On Jun 17, 7:49 pm, Baltimore <[EMAIL PROTECTED]> wrote: > On 17 juin, 11:16, Marcpp <[EMAIL PROTECTED]> wrote: > > > > > On 17 jun, 03:53, Dan Hipschman <[EMAIL PROTECTED]> wrote:> On Sat, Jun 16, > > 2007 at 06:30:26PM -0700, Marcpp wrote: > > > > Hi, I need to returns a tuple from a function (r

Re: Function that returns a tuple

2007-06-17 Thread Peter Otten
Baltimore wrote: > On 17 juin, 11:16, Marcpp <[EMAIL PROTECTED]> wrote: >> On 17 jun, 03:53, Dan Hipschman <[EMAIL PROTECTED]> wrote:> On Sat, Jun >> 16, 2007 at 06:30:26PM -0700, Marcpp wrote: >> > > Hi, I need to returns a tuple from a function (reads a database) >> > > Any idea?. >> >> > Like t

Re: Function that returns a tuple

2007-06-17 Thread David Wahler
On 6/17/07, Marcpp <[EMAIL PROTECTED]> wrote: > On 17 jun, 03:53, Dan Hipschman <[EMAIL PROTECTED]> wrote: > Hi, I need to return a tupla like this function: > > def BDllids(a): > a = () > conn = sqlite.connect('tasques.db') > cursor = conn.cursor() > cursor.exe

Interpolation of a discrete 3D trajectory

2007-06-17 Thread Peter Beattie
Hey guys, I'm looking for a way to smooth out the edges of a 3D trajectory that is really just a sequence of points in space. I've got co-ordinates just like these: 0.072 -0.25 0.582 -0.036 -0.25 0.644 0.036 0.338 0.104 What I would like to have now is for the trajectory not to pass through the

Trivial string substitution/parser

2007-06-17 Thread Samuel
Hi, How would you implement a simple parser for the following string: --- In this string $variable1 is substituted, while \$variable2 is not. --- I know how to write a parser, but I am looking for an elegant (and lazy) way. Any idea? -Samuel -- http://mail.python.org/mailman/listinfo/python-l

Re: Function that returns a tuple

2007-06-17 Thread Baltimore
On 17 juin, 11:16, Marcpp <[EMAIL PROTECTED]> wrote: > On 17 jun, 03:53, Dan Hipschman <[EMAIL PROTECTED]> wrote:> On Sat, Jun 16, > 2007 at 06:30:26PM -0700, Marcpp wrote: > > > Hi, I need to returns a tuple from a function (reads a database) > > > Any idea?. > > > Like this? > > > def foo(): > >

Re: Goto

2007-06-17 Thread John Machin
On Jun 14, 4:32 pm, "Hendrik van Rooyen" <[EMAIL PROTECTED]> wrote: [snip] > > Anything more fancy is "Verboten" - except, that, if you ask nicely, > John Machin might explain his comefrom construct. > > And maybe I will understand it this time around... Hendrik, if you google for 'comefrom' in th

Re: Function that returns a tuple

2007-06-17 Thread Marcpp
On 17 jun, 03:53, Dan Hipschman <[EMAIL PROTECTED]> wrote: > On Sat, Jun 16, 2007 at 06:30:26PM -0700, Marcpp wrote: > > Hi, I need to returns a tuple from a function (reads a database) > > Any idea?. > > Like this? > > def foo(): > return 1, 2, 3, 4 Hi, I need to return a tupla like this funct

Re: Comparing UTF-8 into USC-2 and vice versa (newbie :-) )

2007-06-17 Thread John Machin
On Jun 17, 6:48 pm, Tzury <[EMAIL PROTECTED]> wrote: > On Jun 17, 10:48 am, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > > > > > I recently rewrote a .net application in python. > > > The application is basically gets streams via TCP socket and handle > > > operations against an existing databa

Re: PythonWin crash - works only once after installation

2007-06-17 Thread Ze'ev
On Jun 15, 2:19 pm, Ze'ev <[EMAIL PROTECTED]> wrote: > Hi, > I've installed Python 2.5 and PythonWin (pywin32-210.win32-py2.5) on > my new XP machine. The first time I run PythonWin after installation > it runs normally but if I close it and try to run it again it crashes > ("PyWin32 has encounte

Re: Comparing UTF-8 into USC-2 and vice versa (newbie :-) )

2007-06-17 Thread Tzury
On Jun 17, 10:48 am, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > I recently rewrote a .net application in python. > > The application is basically gets streams via TCP socket and handle > > operations against an existing database. > > The Database is SQLite3 (Encoded as UTF-8). > > The Network

Re: Comparing UTF-8 into USC-2 and vice versa (newbie :-) )

2007-06-17 Thread Tzury
On Jun 17, 10:48 am, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > I recently rewrote a .net application in python. > > The application is basically gets streams via TCP socket and handle > > operations against an existing database. > > The Database is SQLite3 (Encoded as UTF-8). > > The Network

Re: Database Access using pyodbc. I've a problem

2007-06-17 Thread Rajendran
Hi Robert, Thanks for your response. The problem I've mentioned comes up only with the Python but not with the PHP. Is it because PHP has been integrated with Apache and Python isn't? I mean, we have included these # For PHP 5 do something like this: LoadModule php5_module "c:/php/php5apache2_2.

Re: Comparing UTF-8 into USC-2 and vice versa (newbie :-) )

2007-06-17 Thread Martin v. Löwis
> I recently rewrote a .net application in python. > The application is basically gets streams via TCP socket and handle > operations against an existing database. > The Database is SQLite3 (Encoded as UTF-8). > The Networks streams are encoded as UCS-2. > > Since in UCS-2, 'A' = '0041' and when I

Re: Goto

2007-06-17 Thread Tina I
Daniel Nogradi wrote: >> How does one effect a goto in python? I only want to use it for debug. >> I dasn't slap an "if" clause around the portion to dummy out, the >> indentation police will nab me. > > > http://entrian.com/goto/ LOL!! * major flashback to horrible BASIC programs from the eighti

Comparing UTF-8 into USC-2 and vice versa (newbie :-) )

2007-06-17 Thread Tzury
I recently rewrote a .net application in python. The application is basically gets streams via TCP socket and handle operations against an existing database. The Database is SQLite3 (Encoded as UTF-8). The Networks streams are encoded as UCS-2. Since in UCS-2, 'A' = '0041' and when I check with t