[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
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
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
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):
>
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/
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:
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:
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
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
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
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
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
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
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
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
> -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
[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
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
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
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
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
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
[ 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.
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
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
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
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
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
[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
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
> 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
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
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
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
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
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
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
[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,
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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():
> >
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
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
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
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
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
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
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.
> 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
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
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
71 matches
Mail list logo