Re: What is Expressiveness in a Computer Language

2006-06-20 Thread Andreas Rossberg
have to assign types to values, otherwise you couldn't prove any useful property about those systems (esp. soundness). - Andreas -- http://mail.python.org/mailman/listinfo/python-list

Re: What is Expressiveness in a Computer Language

2006-06-20 Thread Andreas Rossberg
David Squire wrote: Andreas Rossberg wrote: Rob Thorpe wrote: No, that isn't what I said. What I said was: A language is latently typed if a value has a property - called it's type - attached to it, and given it's type it can only represent values defined by a certain class

Re: What is Expressiveness in a Computer Language

2006-06-20 Thread Andreas Rossberg
Rob Thorpe wrote: Andreas Rossberg wrote: Rob Thorpe wrote: A language is latently typed if a value has a property - called it's type - attached to it, and given it's type it can only represent values defined by a certain class. it [= a value] [...] can [...] represent values? ??? I just

Negative hex to int

2006-06-14 Thread andreas . lydersen
: --- int('e7', 16) 231 --- Does anyone have a clue a to what I need to do? Thanks! Andreas Lydersen -- http://mail.python.org/mailman/listinfo/python-list

Re: creating a new database with mysqldb

2006-06-01 Thread Frithiof Andreas Jensen
John Salerno [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Since the connect method of mysqldb requires a database name, it seems like you can't use it without having a database already created. The web hotel I use create *one* database together with the account. I.O.W: I cannot

Re: Ricerca Programmatore Python

2006-05-31 Thread Frithiof Andreas Jensen
Have you considered Graphwiz with Python bindings? http://www.graphviz.org/ http://yapgvb.sourceforge.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Using python for a CAD program

2006-05-17 Thread Frithiof Andreas Jensen
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Cool. thanks for the links. I've already looked around quite a bit, and am very hesitant to just write more shit on top of other shit. All software suck. If you think that yours will not then: a) you are a narcissist b) you are the

Re: Python Translation of C# DES Encryption

2006-05-15 Thread Andreas Pauley
# method uses characters '\x01' to '\x07' for padding. If there are 3 padding characters needed (eg with a password of 5 chars), then three '\x03' chars will be used. Similarly, a 2-char password will be padded with '\x06' * 6 Regards, Andreas Pauley

Python Translation of C# DES Encryption

2006-05-12 Thread Andreas Pauley
Hi all, I'm trying to implement a Python equivalent of a C# method that encrypts a string. My Python attempt is in the attached file, but does not return the same value as the C# method (see below). Any hints? Thanks, Andreas The C# method: public static string Encrypt(string decrypted

RE: multi-threaded c++ callback problem

2006-05-12 Thread Ames Andreas
to call PyEval_InitThreads somewhere, e.g. when embedding from within the interpreter initialisation boilerplate, when extending for instance from within the extension module initialisation. cheers, aa -- Andreas Ames | Programmer | Comergo GmbH | Voice: +49 69 7505 3213 | ames AT avaya . com

RE: MinGW and Python

2006-04-28 Thread Ames Andreas
-stopper. There remains one technical issue that isn't a killer but would be inconvenient, IMHO: Can pywin32 be made working with a mingw-python (I'm quite sure it can't be made building on it)? I'd appreciate any datapoints about that ... cheers, aa -- Andreas Ames | Programmer | Comergo GmbH

RE: MinGW and Python

2006-04-28 Thread Ames Andreas
the one used to build pywin32. Even a mix of different ms-compilers would be dangerous, IMHO. cheers, aa -- Andreas Ames | Programmer | Comergo GmbH | Voice: +49 69 7505 3213 | ames AT avaya . com -- http://mail.python.org/mailman/listinfo/python-list

RE: MinGW and Python

2006-04-25 Thread Ames Andreas
releases optimize as well as any commercial compiler. GCC 4 may even optimize better than MSVC. Not to talk of standard compliance (msvc-c99 anyone?). cheers, aa -- Andreas Ames | Programmer | Comergo GmbH | Voice: +49 69 7505 3213 | ames AT avaya . com -- http://mail.python.org/mailman

wxPython - antialiased drawing

2006-04-15 Thread Andreas Ennemoser
Hello, can anybody tell me if and how I do antialiased drawing in wxPython. Andy -- http://mail.python.org/mailman/listinfo/python-list

[ANNOUNCE] OpenRTS 0.2b2 released

2006-04-06 Thread Andreas R.
OpenRTS is a cross-platform open source real-time strategy game developed in Python. Now version 0.2b2 has been released. The new release uses the Twisted networking library for multi-player games, and has graphics from the Hard Vacuum project. The game can be downloaded from

How to get pyMinGW?

2006-04-04 Thread Ames Andreas
Hi all, the download link on http://jove.prohosting.com/iwave/ipython/pyMinGW.html seems to be broken. Can anybody provide another link? Is there a current version for python 2.4.3 available? TIA, aa -- Andreas Ames | Programmer | Comergo GmbH | Voice: +49 69 7505 3213 | ames AT avaya

SimpleXMLRPCServer

2006-03-30 Thread Andreas R.
in advance. - Andreas R. www.openrts.org - Open Source RTS game -- http://mail.python.org/mailman/listinfo/python-list

Performance profiling Python code

2006-03-24 Thread Andreas Røsdal
solutions to improving the performance of the methods which I've indentified as bottlenecks here? Thanks in advance! Andreas R. The source code of the main faile is here: http://svn.gna.org/viewcvs/openrts/trunk/openrts/common/map.py?rev=89view=markup Profiling output is here: ncalls tottime

RE: From Python to c++

2006-03-22 Thread Ames Andreas
you need to convert the string data to the field types, as well in Python as in C++) you could use: std::map std::string, boost::variant std::string, int, bool parsed; if your predetermined types are string, int, bool. For more info, see http://www.boost.org/. HTH, aa -- Andreas Ames

Re: comparing huge files

2006-03-17 Thread Frithiof Andreas Jensen
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] thanks for the reply, I have used another method to solve my problem. ie 1) get the total count of the first file 2) write this total count to basecnt eg basecnt 3) get another file, get the total count of this file. eg filecnt 4) if

XML international characters

2006-03-10 Thread Andreas R.
so far. Thanks in advance, Andreas www.openrts.org - Python RTS game -- http://mail.python.org/mailman/listinfo/python-list

Re: Learning different languages

2006-03-09 Thread Frithiof Andreas Jensen
Terry Hancock [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Tuesday 07 March 2006 04:44 pm, Rich wrote: I've been trying to get my kids to learn a little Python for some time, but it hasn't been too easy for them yet. Then, out of the blue, they want to learn Lua. Why?

Re: asynchat - operation could not complete w/ blocking

2006-03-08 Thread Andreas R.
Fredrik Lundh wrote: Andreas R. wrote: I'm using Python's asynchat module for networking. When calling the sendall() method of asynchat, I sometimes get the error message the operation could not complete without blocking. what sendall method ? to get proper output buffering

Re: asynchat - operation could not complete w/ blocking

2006-03-08 Thread Andreas R.
Dennis Lee Bieber wrote: On Wed, 08 Mar 2006 08:57:53 +0100, Andreas R. [EMAIL PROTECTED] declaimed the following in comp.lang.python: The problem I was having with push, is that is does not always send complete packages. The solution to this was to use sendall() instead, but sendall

asynchat - operation could not complete w/ blocking

2006-03-07 Thread Andreas R.
received with asynchat so far in this news group. - Andreas -- http://mail.python.org/mailman/listinfo/python-list

Re: asynchat - operation could not complete w/ blocking

2006-03-07 Thread Andreas R.
Fredrik Lundh wrote: Andreas R. wrote: I'm using Python's asynchat module for networking. When calling the sendall() method of asynchat, I sometimes get the error message the operation could not complete without blocking. what sendall method ? to get proper output buffering

asynchat network send problems

2006-03-01 Thread Andreas R.
and server, when running len(packet) on the *compressed* packed. The len() of a large packet is usually about 64969. Complete source code is available at http://svn.gna.org/daily/openrts-snapshot.tar.gz Thanks anyone for the help, - Andreas R. www.openrts.org -- http://mail.python.org/mailman

ANN: pyFltk-1.1

2006-02-22 Thread andreas
distribution, a Windows installer, and a Linux binary (including fltk) can be downloaded from http://pyfltk.sourceforge.net. Regards Andreas Held http://pyfltk.sourceforge.net -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation

Re: pyFltk-1.1

2006-02-22 Thread andreas
To put it simply, if you think Tkinter is not very easy/simple/fast/... (fill in your favourite adjective here) then you might want to try pyFltk. It basically helps you to build simple user interfaces from Python. Regards Andreas Held http://pyfltk.sourceforge.net -- http://mail.python.org

asynchat + send problem

2006-02-13 Thread Andreas R.
select etc.? The source code is here: http://svn.gna.org/viewcvs/openrts/trunk/openrts/server/clienthandler.py?rev=36view=markup Thanks in advance! Andreas R. www.openrts.org -- http://mail.python.org/mailman/listinfo/python-list

Re: asynchat + send problem

2006-02-13 Thread Andreas R.
Fredrik Lundh wrote: Andreas R. [EMAIL PROTECTED] wrote: I'm using Python's asynchat for networking. If I invoke the send() method of the asynchat module, only a single send operation is possible at any given time. If I call it more than once, only the first call is registered at the other

OT: Another try at Python's selfishness

2006-02-09 Thread Frithiof Andreas Jensen
DH [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Frithiof Andreas Jensen wrote: [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Having read previous discussions on python-dev I think I'm not the only Python programmer who doesn't particularly like python's self

Re: critique my code, please

2006-02-08 Thread Frithiof Andreas Jensen
Brian Blais [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, I am including at the end of this document (is it better as an attachment?) some code for a small gui dialog. Since I am quite new to this, if anyone has any suggestions for improvements to the code, bad coding

Re: Another try at Python's selfishness

2006-02-08 Thread Frithiof Andreas Jensen
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Having read previous discussions on python-dev I think I'm not the only Python programmer who doesn't particularly like python's self parameter: Ok, there might be five programmers and one imam. The imam does not like anything more

OpenRTS - new OSS Python game

2006-02-01 Thread Andreas R.
OpenRTS is a new open source project, with the aim of creating a realtime strategy game. The game is developed in Python with Pygame. See http://www.openrts.org for more info about the game if you are interested. -- http://mail.python.org/mailman/listinfo/python-list

Re: OpenRTS - new OSS Python game

2006-02-01 Thread Andreas R.
Sybren Stuvel wrote: To be honest, it looks very much like games from 1995... The game has isometric graphics. It's possible to have nice isometric graphics, ie. look at Civilization 3. Besides, there's a lot more to a good strategy game than good looks. --

Re: writing large files quickly

2006-01-27 Thread Erik Andreas Brandstadmoen
Grant Edwards wrote: Because the filesystem code keeps track of where you are in that 400MB stream, and returns 0x00 anytime you're reading from a hole. The cp program and the md5sum just open the file and start read()ing. The filesystem code returns 0x00 bytes for all of the read positions

Re: Is there a maximum length of a regular expression in python?

2006-01-24 Thread Frithiof Andreas Jensen
Bryan Olson [EMAIL PROTECTED] skrev i en meddelelse news:[EMAIL PROTECTED] Roy Smith wrote: Does no one care about an internal error in the regular expression engine? Yes, but - given the example - In about the same way that I care about an internal error in my car engine after dropping a

Re: Is there a maximum length of a regular expression in python?

2006-01-19 Thread Frithiof Andreas Jensen
[EMAIL PROTECTED] skrev i en meddelelse news:[EMAIL PROTECTED] I have a regular expression that is approximately 100k bytes. (It is basically a list of all known norwegian postal numbers and the corresponding place with | in between. I know this is not the intended use for regular

Re: ConfigParser: writes a list but reads a string?

2006-01-16 Thread Frithiof Andreas Jensen
Terry Carroll [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] It looks like ConfigParser will accept a list to be writing to the *.ini file; but when reading it back in, it treats it as a string. ConfigParser is nasty because it does not really support type conversions but still

Re: pdb.py - why is this debugger different from all other debuggers?

2006-01-15 Thread Andreas Kostyrka
things, python -i is more then enough to test and debug code interactivly. Consider writing a settrace function, that catches any data and control flow you might be interested. Andreas I was disappointed not to see any replies to this. I use pdb a lot because most of my debugging needs

Re: pdb.py - why is this debugger different from all other debuggers?

2006-01-15 Thread Andreas Kostyrka
it easier than constantly modifying the source code. One question that is often needed is How did we get to this place?. The easiest solution is, putting this code in the place you are curious about: import traceback ; traceback.print_stack() Andreas signature.asc Description: Dies ist ein digital

Re: Remote Function Call

2006-01-13 Thread Frithiof Andreas Jensen
Mike [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I have two machines. A python program on machine 1 needs to make a python call to a method in machine 2. What is the most efficient / fast Some Custom Mechanism: Pyro or SPREAD f.ex. / programmer friendly way to do it?

Re: Cross Compile Mips / Linux

2006-01-11 Thread Frithiof Andreas Jensen
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi Everyone, Should I try using a Linux based machine for the build, would that help?? YES - The problem is that the Linux build tools generally assume that they are sitting in the target environment and therefore tries to use

Re: Encoding sniffer?

2006-01-06 Thread Andreas Jung
Thanks! --On 5. Januar 2006 18:21:39 -0600 [EMAIL PROTECTED] wrote: http://orca.mojam.com/~skip/python/ pgpyF17uM2CTT.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Encoding sniffer?

2006-01-05 Thread Andreas Jung
Does anyone know of a Python module that is able to sniff the encoding of text? Please: I know that there is no reliable way to do this but I need something that works for most of the case...so please no discussion about the sense of such a module and approach. Andreas pgpj27jiq5WgN.pgp

Re: Application architecture (long post - sorry)

2006-01-02 Thread Frithiof Andreas Jensen
[EMAIL PROTECTED] skrev i en meddelelse news:[EMAIL PROTECTED] It would give me great satisfaction though to roll my own solution to this Ahh - a bright young employee ready to meet the realities of corporate life, much like a bike rider meets the concrete he drives on ;-) and then at

Problem compiling an extension with MS Visual C++ Toolkit 2003

2005-12-31 Thread Andreas
-packages Question: -- Has anyone an idea ? Thanks, Andreas -- http://mail.python.org/mailman/listinfo/python-list

Re: python speed

2005-12-28 Thread Andreas Kostyrka
that create an optimized piece of code for combinations of argument types, like Psyco does. Andreas signature.asc Description: Dies ist ein digital signierter Nachrichtenteil -- http://mail.python.org/mailman/listinfo/python-list

Re: debian and python--any potential pitfalls?

2005-12-20 Thread Frithiof Andreas Jensen
Brian van den Broek [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] The only area of computing in which I am interested and with which he's unfamiliar is Python. He suggested I try to find out if there are any potential issues with Debian stable and Python. Only that Python is

Re: SVG rendering with Python

2005-12-15 Thread Andreas Lobinger
Aloha, richard wrote: Dennis Benzinger wrote: Does anybody know of a SVG rendering library for Python? Google python svg ... to find what? Whishing a happy day LOBI -- http://mail.python.org/mailman/listinfo/python-list

Re: Using printf in a C Extension

2005-12-09 Thread Frithiof Andreas Jensen
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I am extending python with C and trying to debug with printf. The code below succssfully returns the string hello when compiled and called, but the can print from in here phrase does not reach python stdout. It should go to

Re: SNMPV3

2005-12-07 Thread Frithiof Andreas Jensen
Jacek Pop³awski [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Do you have any experience with Python in SNMPv3 area? SNMP suck per design and SNMPv3 suck even more by adding complexity to that design IMO. SNMPv2 sort of works well within the limits of the design of SNMP, so that is

Re: Dynamic Link Library

2005-12-05 Thread Andreas Kostyrka
an interface module with public cdef'ed functions in Pyrex, and embed Python in your DLL. But it's certainly not something you want to try when you ask this kind of questions, it's a headache. Andreas Please provide any answers you may have. Warmest Regards, musicdev signature.asc

Re: python speed

2005-11-30 Thread Frithiof Andreas Jensen
Krystian [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi are there any future perspectives for Python to be as fast as java? Sure, if/when Python becomes as water-logged with obtruse OO-layers as Java is now. Python is faster than Java. Because Python per design generally is a

Re: Using Cron to run a python program

2005-11-24 Thread Frithiof Andreas Jensen
[EMAIL PROTECTED] skrev i en meddelelse news:[EMAIL PROTECTED] permissions just to be safe. What would cause the logging to work at a command prompt but fail in cron? Because the environment is different; man cron might tell *how* it is different (I cannot because it varies with platform,

Re: Accessing a database from a multithreaded application

2005-11-23 Thread Frithiof Andreas Jensen
Alan Kemp [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, Can someone suggest a better (ie, valid) strategy for this? Pass the connection to the thread as a parameter and use it to create a cursor local to the thread. You may have to create a connection per thread also - in some

Re: how to bypass firewall

2005-11-16 Thread Frithiof Andreas Jensen
Parth [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello everyone, I need some help regrading byassing firewalls.My college has internet aces but it prevents us from dowloading music(*.mp3,*.mid,etc.)from the net. Then Don't - The firewall, being lame as those things are,

Re: Data Transmission Crash Course Required

2005-11-16 Thread Frithiof Andreas Jensen
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] exchange. I am looking for a quick-n-dirty approach, upon which I can certainly expand by further reading Python documentation. Also, if anyone can recommend an online resource for learning more about TCP/IP and the like (a

Re: 3-dimensional plot in Python?

2005-11-15 Thread Frithiof Andreas Jensen
questions? [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I want to make a 3d plot. x is a vector(discrete), y is also a vector(discrete), for each pairwise x,y I have a value z(x,y)(it is not a function, just discrete values for each pair of x,y) I want to show them on a two

Re: 3-dimensional plot in Python?

2005-11-15 Thread Frithiof Andreas Jensen
Robert Kern [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Those interfaces are long since deprecated. Please use matplotlib instead. http://matplotlib.sf.net Long since being When? I recently installed SciPy and it did not say anything about deprecated! --

Re: python server

2005-11-09 Thread Frithiof Andreas Jensen
linuxpld [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello I`m writing a program (server in future) in python. I would like to write it in such a way that I will be able to write gui in any language and connect to my python program and use functionality included with it. are

Re: python server

2005-11-09 Thread Frithiof Andreas Jensen
Magnus Lycka [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Thee are many solutions. An XML-RPC server springs to mind as a solution. There are several Python XML-RPC servers . Good Idea. Seems that those particular batteries are included with Python 2.2 and up: OP: See help

Re: Addressing the last element of a list

2005-11-08 Thread Andreas Lobinger
Aloha, [EMAIL PROTECTED] wrote: Isn't there an easier way than lst[len(lst) - 1] = ... lst[-1] = ... Wishing a happy day LOBI -- http://mail.python.org/mailman/listinfo/python-list

Re: tachometer diagram

2005-11-02 Thread Andreas Kaiser
Hi Franz, you're right! Andrea (the developer of these widgets) sends me this link about the wxPython ML. Thanks. Andreas -- http://mail.python.org/mailman/listinfo/python-list

[Subprocess/Windows] subprocess module under Windows 98

2005-11-02 Thread Andreas Jung
documentation. Is there a way to suppress the DOS boxes somehow using these attributes or is there another way to get rid of them? Thanks in advance, Andreas pgpwXZAww91hx.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: subprocess module under Windows 98

2005-11-02 Thread Andreas Jung
--On 2. November 2005 08:48:24 -0800 Ernesto [EMAIL PROTECTED] wrote: This worked for me on XP... not sure for 98... http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/409002 Thanks, this works! Andreas pgpeWK0kWa6KX.pgp Description: PGP signature -- http://mail.python.org/mailman

tachometer diagram

2005-10-31 Thread Andreas Kaiser
Hello, I'am searching for a python solution for display a tachometer diagram. I prefer a solution for wxPython. The plot libraries I've found do not implement this diagram type. Any hints welcome! Thanks Andreas -- http://mail.python.org/mailman/listinfo/python-list

Re: tachometer diagram

2005-10-31 Thread Andreas Kaiser
Hello Jorge, I can change my mind, sorry. The target OS for this app is Win. When pyQt4 is available, I will check QT. Andreas -- http://mail.python.org/mailman/listinfo/python-list

Re: tachometer diagram

2005-10-31 Thread Andreas Kaiser
I can change my mind, sorry. Should be: I _can't_ change ... Andreas -- http://mail.python.org/mailman/listinfo/python-list

Re: more than 100 capturing groups in a regex

2005-10-25 Thread Frithiof Andreas Jensen
Joerg Schuster [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, Python regular expressions must not have more than 100 capturing groups. Really ?? I have been waiting a long time now for Python to get rid of this limitation. Ahh - The dark side of Open Source: If nobody

Re: more than 100 capturing groups in a regex

2005-10-25 Thread Frithiof Andreas Jensen
Joerg Schuster [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Some people, when confronted with a problem, think I know, I'll use regular expressions. Now they have two problems. --Jamie Zawinski Thanks for the citation. If my goal had been to redesign my program, I would not ask

Re: need some advice on x y plot

2005-10-25 Thread Frithiof Andreas Jensen
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] If the x-axis is time, gnuplot will plot it correctly but it will connect *all* the datapoints and scale the x-axis so that everything will fit on the graph. Is it the autoscaling or conneting that what you think is wrong? Getting a

Re: create user message for wxPython

2005-10-24 Thread Frithiof Andreas Jensen
James Hu [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, There are 2 wxPython application, A and B and need to exchange msg. I do not think that wx even has a mechanism for sending events between applications.? You need some other tool, like a socket, a named pibe, some windows

Re: Abstract Methods Abstract Class

2005-10-20 Thread Andreas Kostyrka
TypeError(abstract method called) But basically, Python does not have abstract methods, and usually doesn't need them. Andreas -- http://mail.python.org/mailman/listinfo/python-list

Re: extract PDF pages

2005-10-13 Thread Andreas Lobinger
Aloha, David Isaac wrote: I am looking for a Python solution. Just for PDF page extraction. Any hope? With python, there's always hope. http://sourceforge.net/projects/pdfplayground In the CVS (sorry no distribution at the time) you'll find an example page-extract.

Re: Python based unacceptable language filter

2005-10-04 Thread Frithiof Andreas Jensen
David Pratt [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi. Thank you for the links. I am looking for something that would function in a similar way to Yahoo's filter for it's message boards. Perhaps I should have used the term profanity instead of unacceptable language. I am

Re: no variable or argument declarations are necessary.

2005-10-04 Thread Frithiof Andreas Jensen
bruno modulix [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] James A. Donald wrote: I am contemplating getting into Python, which is used by engineers I admire - google and Bram Cohen, but was horrified horrified ??? Ok, so I'll give you more reasons to be 'horrified': - no

Re: Python based unacceptable language filter

2005-10-03 Thread Frithiof Andreas Jensen
David Pratt [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi. Is anyone aware of any python based unacceptable language filter code to scan and detect bad language in text from uploads etc. Many thanks. David Look up Spambayes - if you can filter on terms like dear friend you

ready-made file format for file pibes?

2005-09-20 Thread Frithiof Andreas Jensen
I am writing an application that does a lot of filtering of much data through a sequence of filters. After some thinking and wasting a lot of time with an object oriented design with GUI and all, I decided that the Real Way to do this is to create the filters as independent programs that take

Re: Do thread die?

2005-09-20 Thread Frithiof Andreas Jensen
Maurice LING [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I do have another dumb question which is OT here. Say aFunc method instantiates a SOAP server that serves forever, will it prevent bFunc from running as a separate thread? If the SOAP server thread never sleeps or block,

zlib written in python

2005-09-20 Thread Andreas Lobinger
Aloha, is a pure _python_ implementation of the zlib available? I have broken zlib streams and need to patch the deocder to get them back. Wishing a happy day LOBI -- http://mail.python.org/mailman/listinfo/python-list

Re: Help! Python either hangs or core dumps when calling C malloc

2005-09-20 Thread Frithiof Andreas Jensen
Lil [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I already double checked my C code. It runs perfectly fine in C without any errors. Errr - It runs perfectly fine without *announcing* any errors (while gleefully urinating all over its memory space). The programming model for C is

Re: encryption with python

2005-09-07 Thread Andreas Lobinger
Aloha, [EMAIL PROTECTED] wrote: I was wondering if someone can recommend a good encryption algorithm written in python. It would be great if there exists a library already written to do this, and if there is, can somebody please point me to it?? M2Crypto, interface to OpenSSL

Re: Lossless Number Conversion

2005-08-29 Thread Andreas Kostyrka
a complex number instead of raising an exception? Lisp has something like this, and it makes number crunching much more convenient. Yes and no. There isn't general solution. But for example you want to allow complex number, just use cmath. Andreas signature.asc Description: Dies ist ein digital

Re: The ONLY thing that prevents me from using Python

2005-08-24 Thread Andreas Kostyrka
traffic, I'd had to look it up 60GB storage, 256MB RAM and a 2.4GHz P4 CPU all alone to me). That makes the 79.95 dollars for Linode 256 somehow a bit expensive. OTOH perhaps dedicated servers are really cheap in Germany ;) Whatever, Andreas -- http://mail.python.org/mailman/listinfo/python-list

Re: Moinmoin config

2005-08-18 Thread Andreas Schlapsi
Hi, I have Moinmoin 1.3.4 installed and working on Linux RHEL3.0. However, all screen elements are lined up on the left hand side. How can I get it displayed like the wiki at: http://moinmoin.wikiwikiweb.de/HelpOnConfiguration Hi Mark, It seems that your MoinMoin installation works

Re: Parsing a log file

2005-08-14 Thread Andreas Kostyrka
motivate that person is another question. b) try to hack some solution yourself. Start with doing the python tutorial? Andreas I am looking for a way to parse a simple log file to get the information in a format that I can use. I would like to use python, but I am just beginning to learn how

Re: Parsing a log file

2005-08-14 Thread Andreas Kostyrka
into data (start, end, user) value (%r, %r, %r); print sql % (starttime, endtime, user) else: raise AssertationError(%r is not a valid line % l) Am Sonntag, den 14.08.2005, 07:31 -0700 schrieb CG: Thanks Andreas, In your first paragraph, you ask about incorrect input. I

Re: Parsing a log file

2005-08-14 Thread Andreas Kostyrka
into data (start, end, user) value (%r, %r, %r); print sql % (starttime, endtime, user) else: raise AssertationError(%r is not a valid line % l) Am Sonntag, den 14.08.2005, 07:31 -0700 schrieb CG: Thanks Andreas, In your first paragraph, you ask about incorrect input. I

Re: time.time() under load between two machines

2005-07-22 Thread Andreas Kostyrka
I've just noticed that you didn't mention any details like OS, versions, network infrastructure. You do not mention either how large the difference is. Andreas -- http://mail.python.org/mailman/listinfo/python-list

Re: return None

2005-07-22 Thread Andreas Kostyrka
is the representation of nothing in Python ;) Andreas -- http://mail.python.org/mailman/listinfo/python-list

Re: python certification

2005-07-20 Thread Andreas Kostyrka
they are asking about ;) (These are the people look for Pearl and Pyhton programmers ;) ) Andreas -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list

using hotshot for timing and coverage analysis

2005-07-15 Thread Andreas Lobinger
Aloha, hotshot.Profile has flags for recording timing per line and line events. Even if i had both set to 1 i still get only the standard data (time per call). Is there any document available that has examples how to use the hotshot for converage analysis and to display timing per line? Hoping

Re: httplib/HTTPS Post Problem

2005-07-15 Thread Andreas Kostyrka
is recieved by the web server with no problems. Just a curious guess: Are you behind a proxy? If so, it's a known and never fixed bug from Python 1.5 times ;) You might also try to use PyCurl. Andreas When I post using my python client the headers get there, but the body of the message does

Re: Frankenstring

2005-07-14 Thread Andreas Lobinger
Aloha, Thomas Lotze wrote: A string, and a pointer on that string. If you give up the boundary condition to tell backwards, you can start to eat up the string via f = f[p:]. There was a performance difference with that, in fact it was faster ~4% on a python2.2. When I tried it just now, it was

Re: Existance of of variable

2005-07-13 Thread Andreas Kostyrka
;) OTOH, perhaps for me it was teaching more, because I have been forced to maintain by first bigger python application almost for a decade. One learns quite a bit about software engineering this way ;) Andreas signature.asc Description: Dies ist ein digital signierter Nachrichtenteil -- http

Re: threads and sleep?

2005-07-13 Thread Andreas Kostyrka
program seems to be non-functional (missing if expression?), but as I said above, the main thread waits via select, so the child process should be able to run in this time (assuming time.sleep releases the GIL, but I'd file it as a bug if it doesn't). Andreas signature.asc Description: Dies ist ein

Re: threads and sleep?

2005-07-13 Thread Andreas Kostyrka
. Andreas signature.asc Description: Dies ist ein digital signierter Nachrichtenteil -- http://mail.python.org/mailman/listinfo/python-list

Re: threads and sleep?

2005-07-13 Thread Andreas Kostyrka
not show as a Python thread. Without some special interfacing with the Python/C API any thread created in C will not show up in Python. that thread probably wouldn't be running a Python interpreter. Andreas signature.asc Description: Dies ist ein digital signierter Nachrichtenteil -- http

<    5   6   7   8   9   10   11   >