firkin 0.02

2008-10-15 Thread Florian Diesch
I'm happy to announce release 0.02 of firkin http://www.florian-diesch.de/software/firkin/ What is firkin? === firkin is a python module to convert between different measurement units. Status == firkin is alpha software. So far it seems to work for me but it may

Re: strip module bug

2008-10-15 Thread Tim Roberts
Poppy [EMAIL PROTECTED] wrote: Thanks Steven and Tim, I understand the strip module a lot more today. It's NOT a module. It is a method of string objects. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: Deviation from object-relational mapping (pySQLFace)

2008-10-15 Thread sulyokpeti
On okt. 14, 10:09, Bruno Desthuilliers bruno. [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] a écrit : (snip) It is not convincing to look at an XML file alone. Let me give you an example. Glade is a GTK+ application for creating GTK+ GUI. It generates an XML file, that can be loaded in every

Re: Anyone Have (XP) 2.4.4 Installed and Can Check This Simple matplotlib Program?

2008-10-15 Thread pjacobi . de
On Oct 15, 6:38 am, W. eWatson [EMAIL PROTECTED] wrote: I'm going to try another stab at this problem again. I'd like someone with 2.4.4 and matplotlib-0.98.3.win32-py2.4exe to try it (below). IMHO an important detail of your configuration is missing. What's your numerical library? Did you

Re: Deviation from object-relational mapping (pySQLFace)

2008-10-15 Thread sulyokpeti
On okt. 14, 13:26, Paul Boddie [EMAIL PROTECTED] wrote: On 14 Okt, 00:43, [EMAIL PROTECTED] wrote: It is not convincing to look at an XML file alone. Let me give you an example. Glade is a GTK+ application for creating GTK+ GUI. It generates an XML file, that can be loaded in every

Re: problem using ctypes with MMX intrinsics

2008-10-15 Thread Lawrence D'Oliveiro
In message [EMAIL PROTECTED], dcharno wrote: I can load the library and access functions inside it, but I getting a seg fault when I hit one of the intrinsics. I assume that SIGSEGV indicates some (mis)alignment issue. If the instructions were not valid, you'd get SIGILL instead. --

Re: Sending multi-part MIME package via HTTP-POST

2008-10-15 Thread Lawrence D'Oliveiro
In message [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: ... but I'm getting a very vague server error message ... Which is? -- http://mail.python.org/mailman/listinfo/python-list

Re: Deviation from object-relational mapping (pySQLFace)

2008-10-15 Thread J Peyret
On Oct 12, 8:19 am, [EMAIL PROTECTED] wrote: I would like to get some opinions on this approach. Thanks. I realize I will be minority here, but... I've never quite understood why folks want to repeat the database's metadata in XML files. I've gotten much better results just using plain ol'

Re: Can Python fix vcard files?

2008-10-15 Thread Dotan Cohen
2008/10/15 Lawrence D'Oliveiro [EMAIL PROTECTED]: I didn't find anything which forbids splitting quoted-printable character values in these specifications. What adds to the confusion is that quoted-printable has its own convention for soft-wrapping long lines, using an equals sign followed by

Win32api.MessageBox

2008-10-15 Thread Unkwntech
When I use win32api.MessageBox from the interactive console from an app that runs at the command line, it works and displays my alert just fine however when I use it in a service that I built I can hear the 'beep' but the alert does not show and the program seems to stall waiting for the alert to

Re: Win32api.MessageBox

2008-10-15 Thread Bruno Desthuilliers
Unkwntech a écrit : When I use win32api.MessageBox from the interactive console from an app that runs at the command line, it works and displays my alert just fine however when I use it in a service that I built I can hear the 'beep' but the alert does not show and the program seems to stall

Home Shop 18 - Zenith Desktop

2008-10-15 Thread Ayushi Mehra
Home Shop 18 - Zenith Desktop Model No: G31644 Features: Processor: * Pentium Core2Duo - E4600 * 2.4GHz * 2 MB Cache * 800 MHz FSB Motherboard: * Intel G31 Chipset Motherboard * Supports 800/1066/1333 MHZ FSB * Supports new generation 45nm CPU * 2 DIMM Slots

Re: replace mothod for only one object but not for a class

2008-10-15 Thread Bruno Desthuilliers
George Sakkis a écrit : (snip) You're right of course; that's what you get with minimal testing ;) Still it works with a small modification, binding self to b as default argument: b.foo = lambda self=b: modified called on %s % self Ok, now with a real use case : use a named function instead

rope python-emacs problem

2008-10-15 Thread Rustom Mody
Ive been trying to use rope for python in emacs and I get a backtrace which starts with AttributeError: 'module' object has no attribute 'samefile' Any ideas? -- http://mail.python.org/mailman/listinfo/python-list

Re: xor: how come so slow?

2008-10-15 Thread John Machin
On Oct 15, 10:19 pm, Michele [EMAIL PROTECTED] wrote: Hi, I'm trying to encode a byte data. Let's not focus on the process of encoding; in fact, I want to emphasize that the method create_random_block takes 0.5s to be executed (even Java it's faster) on a Dual-Core 3.0Ghz machine: took

multiprocessing: queue.get() blocks even if queue.qsize() != 0

2008-10-15 Thread redbaron
I run into problem with queue from multiprocessing. Even if I queue.qsize() != 0 queue.get() still blocks and queue.get_nowait() raises Emtpy error. I'm unable to cut my big part to small test case, because smaller test case similair to my real app by design is works. In what conditions is it

Re: Sending multi-part MIME package via HTTP-POST

2008-10-15 Thread Steve Holden
Lawrence D'Oliveiro wrote: In message [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: ... but I'm getting a very vague server error message ... Which is? very vague ... -- Steve Holden+1 571 484 6266 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ --

BDSM in BDSM mpeg

2008-10-15 Thread fernandena
BDSM http://youtubeplayer.byethost9.com/jpeg/bdsm.html BDSM -- http://mail.python.org/mailman/listinfo/python-list

urllib accept-language doesn't have any effect

2008-10-15 Thread Martin Bachwerk
Hello, I'm trying to load a couple of pages using the urllib2 module. The problem is that I live in Germany and some sites seem to look at the IP of the client and forward him to a localized page.. Here's an example of the code, how I want to access google.com main english page, but get

Re: urllib accept-language doesn't have any effect

2008-10-15 Thread Diez B. Roggisch
Martin Bachwerk wrote: Hello, I'm trying to load a couple of pages using the urllib2 module. The problem is that I live in Germany and some sites seem to look at the IP of the client and forward him to a localized page.. Here's an example of the code, how I want to access google.com main

Re: python3 - the hardest hello world ever ?

2008-10-15 Thread Helmut Jarausch
Ben Finney wrote: Helmut Jarausch [EMAIL PROTECTED] writes: I have to set an internal property (with leading underscore) for each output file I'm using - right? If you're referring to the source encoding declaration: No, underscores have no effect. The specification is at

Re: PyGUI as a standard GUI API for Python?

2008-10-15 Thread lkcl
On Oct 15, 12:27 am, greg [EMAIL PROTECTED] wrote: Paul Boddie wrote: there are a few things with regard to layouts which are very difficult with Web technologies (and aren't getting any easier, either) but which are almost trivial with classic graphical user interface toolkits, and of

recommendations for a web CMS (content management system)?

2008-10-15 Thread Joe Strout
We need to set up a content management system that allows nontechnical users to manage the content of their web site. Rather than starting from scratch, I'd prefer to start with an existing CMS that we can extend as needed. So, I'd prefer something with nice clean, easy-to- follow code

Kicking off a python script using Windows Scheduled Task

2008-10-15 Thread korean_dave
Does anyone know how to properly kick off a script using Windows Scheduled Task? The script calls other python modules within itself. HERE'S THE CATCH: I am used to running the script directly from the command window and the print() is very handy for us to debug and monitor. When running the task

Re: urllib accept-language doesn't have any effect

2008-10-15 Thread Martin Bachwerk
Hi, yes, well my browser settings are set to display sites in following languages en-gb then en. As a matter of fact, Google does indeed show me the German site first, before I click on go to google.com and it probably stores a cookie to remember that. But a site like gizmodo.com forwards

Re: recommendations for a web CMS (content management system)?

2008-10-15 Thread Bruno Desthuilliers
Joe Strout a écrit : We need to set up a content management system that allows nontechnical users to manage the content of their web site. Rather than starting from scratch, I'd prefer to start with an existing CMS that we can extend as needed. So, I'd prefer something with nice clean,

Re: python3 - the hardest hello world ever ?

2008-10-15 Thread Paul Boddie
On 15 Okt, 12:08, Helmut Jarausch [EMAIL PROTECTED] wrote: What defines me as latin1-user? What does sys.stdout.encoding say? In Python 2.x, at least, that attribute should reflect the capabilities of your environment (specifically, the character encoding) and help determine whether it makes

Re: urllib accept-language doesn't have any effect

2008-10-15 Thread Diez B. Roggisch
Martin Bachwerk wrote: Hi, yes, well my browser settings are set to display sites in following languages en-gb then en. As a matter of fact, Google does indeed show me the German site first, before I click on go to google.com and it probably stores a cookie to remember that. But a

Re: recommendations for a web CMS (content management system)?

2008-10-15 Thread Diez B. Roggisch
Joe Strout wrote: We need to set up a content management system that allows nontechnical users to manage the content of their web site. Rather than starting from scratch, I'd prefer to start with an existing CMS that we can extend as needed. So, I'd prefer something with nice clean,

Python equivalent to SharePoint?

2008-10-15 Thread Joe Strout
We've got a client who has been planning to use SharePoint for managing their organization documents, but has recently dropped that idea and is looking for an alternative. Is there any Python package with similar functionality? I confess that I've never used SharePoint myself, and what I

RE: Kicking off a python script using Windows Scheduled Task

2008-10-15 Thread Andreas Tawn
Does anyone know how to properly kick off a script using Windows Scheduled Task? The script calls other python modules within itself. HERE'S THE CATCH: I am used to running the script directly from the command window and the print() is very handy for us to debug and monitor. When running the

Re: multiprocessing: queue.get() blocks even if queue.qsize() != 0

2008-10-15 Thread MRAB
On Oct 15, 2:05 pm, redbaron [EMAIL PROTECTED] wrote: I run into problem with queue from multiprocessing. Even if I queue.qsize() != 0 queue.get() still blocks and queue.get_nowait() raises Emtpy error. I'm unable to cut my big part to small test case, because smaller test case similair to

Re: [CentOS] App Question.

2008-10-15 Thread Les Mikesell
bruce wrote: Hi list!! Got a question, and I can't find a good answer for, so I figured i'd post here. I'm working on a project that involves a number of smaller apps to be developed, and run. In order to build this overall application, I'm trying to find a web based app that I can use to

Re: urllib accept-language doesn't have any effect

2008-10-15 Thread Philip Semanchuk
On Oct 15, 2008, at 9:50 AM, Martin Bachwerk wrote: Hello, I'm trying to load a couple of pages using the urllib2 module. The problem is that I live in Germany and some sites seem to look at the IP of the client and forward him to a localized page.. Here's an example of the code, how I

Ooo 3.0 Python user macros

2008-10-15 Thread Lawrence D'Oliveiro
Has anyone been able to run user-defined Python macros in OpenOffice.org 3.0? I had one in ~/.ooo-2.0/user/Scripts/python/try.py which did work under Ooo2.x. So I put the same thing in ~/.ooo3/user/Scripts/python/, but it will not show up in any macro dialog in Ooo 3.0. The provided example

Re: newbie - merging xls files using xldt and xlwt

2008-10-15 Thread Albert-jan Roskam
Hi John, Thanks! Using a higher xlrd version did the trick! Regarding your other remarks: -yep, input files with multiple sheets don't work yet. I kinda repressed that ;-) Spss outputs only single-sheet xls files, but I agree it's nicer if the programs works in other cases too. -and no, I don't

Re: docpicture

2008-10-15 Thread Pete Forman
Scott David Daniels [EMAIL PROTECTED] writes: or you could even use: '''docpicture name=fig1.png code=base64 version=1 1234567890ABCDEF... /docpicture''' A comment _not_ a docstring (only found by scanning the source). which is easy enough to hunt for. -1 for XML

ANN: eGenix mx Base Distribution 3.1.1 for Python 2.6

2008-10-15 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING eGenix.com mx Base Distribution Version 3.1.1 for Python 2.6 Open Source Python extensions providing important and useful services for Python

ANN: eGenix mxODBC - ODBC Database Interface for Python 3.0.2

2008-10-15 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING eGenix.com mxODBC - ODBC Database Interface for Python Version 3.0.2 mxODBC is our commercially supported Python extension providing ODBC database connectivity to

Re: Kicking off a python script using Windows Scheduled Task

2008-10-15 Thread korean_dave
Hey all. i solved this problem by logging on with my network domain login (log in using...) instead of NT AUTHORITY\SYSTEM which only gave out local privleges to the process started off by Task scheduler. On Oct 15, 10:36 am, korean_dave [EMAIL PROTECTED] wrote: Does anyone know how to properly

Re: python3 - the hardest hello world ever ?

2008-10-15 Thread Helmut Jarausch
Paul Boddie wrote: On 15 Okt, 12:08, Helmut Jarausch [EMAIL PROTECTED] wrote: What defines me as latin1-user? What does sys.stdout.encoding say? In Python 2.x, at least, that It says ansi_x3.4-1968 Where can I change this? attribute should reflect the capabilities of your environment

Re: Can Python fix vcard files?

2008-10-15 Thread Dotan Cohen
2008/10/14 [EMAIL PROTECTED]: Dotan Can Python go through a directory of files and replace each Dotan instance of newline-space with nothing? Sure. Something like (*completely* untested, so caveat emptor): import glob import os for f in glob.glob('*.vcf'): #

xor: how come so slow?

2008-10-15 Thread Michele
Hi, I'm trying to encode a byte data. Let's not focus on the process of encoding; in fact, I want to emphasize that the method create_random_block takes 0.5s to be executed (even Java it's faster) on a Dual-Core 3.0Ghz machine: took 46.74679s, avg: 0.4674679s Thus I suppose that the xor

Re: Python equivalent to SharePoint?

2008-10-15 Thread Paul Boddie
On 15 Okt, 17:17, Joe Strout [EMAIL PROTECTED] wrote: We've got a client who has been planning to use SharePoint for   managing their organization documents, but has recently dropped that   idea and is looking for an alternative.  Is there any Python package   with similar functionality?

Using variable in storbinary function of ftpilb module

2008-10-15 Thread Arya, Manish Kumar
Hi, I am new to python. I have written a simple code to upload a file via ftp to remote server - import sys import ftplib host=sys.argv[1] username=sys.argv[2] passwd=sys.argv[3] filename=sys.argv[4] print host,username,passwd ftp = ftplib.FTP(host,username,passwd)

Re: Anyone Have (XP) 2.4.4 Installed and Can Check This Simple matplotlib Program?

2008-10-15 Thread W. eWatson
[EMAIL PROTECTED] wrote: On Oct 15, 6:38 am, W. eWatson [EMAIL PROTECTED] wrote: I'm going to try another stab at this problem again. I'd like someone with 2.4.4 and matplotlib-0.98.3.win32-py2.4exe to try it (below). IMHO an important detail of your configuration is missing. What's your

Re: python3 - the hardest hello world ever ?

2008-10-15 Thread Paul Boddie
On 15 Okt, 17:59, Helmut Jarausch [EMAIL PROTECTED] wrote: Paul Boddie wrote: What does sys.stdout.encoding say? In Python 2.x, at least, that It says  ansi_x3.4-1968 That's ASCII, yes. Where can I change this? What's your locale? I can provoke the same setting if I run a Python program

Re: python3 - the hardest hello world ever ?

2008-10-15 Thread Diez B. Roggisch
Helmut Jarausch wrote: Paul Boddie wrote: On 15 Okt, 12:08, Helmut Jarausch [EMAIL PROTECTED] wrote: What defines me as latin1-user? What does sys.stdout.encoding say? In Python 2.x, at least, that It says ansi_x3.4-1968 Where can I change this? By changing your console's terminal

Re: [egenix-info] ANN: eGenix mx Base Distribution 3.1.1 for Python 2.6

2008-10-15 Thread M.-A. Lemburg
Just to let you know: we also provide binaries and support for Mac OS X Intel and PPC. Thanks to Joe Strout for pinging us about this. On 2008-10-15 17:41, eGenix Team: M.-A. Lemburg wrote: ANNOUNCING

Re: python3 - the hardest hello world ever ?

2008-10-15 Thread Orestis Markou
I would just use UTF-8 and be done with it. Set your editor to write UTF-8 files, set the correct #coding at your python script, make sure your terminal supports outputting UTF-8 characters (and your font has the correct glyphs) and everything should be fine. No trickery required. Even

Re: [ANN] Data Plotting Library DISLIN 9.4

2008-10-15 Thread M�ta-MCI (MVP)
Hello! version 9.4 of DISLIN Thanks! I like Dislin. But... I don't found the release (binary/win) for Python 2.6... -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: xor: how come so slow?

2008-10-15 Thread Seun Osewa
My answer is: never do things like this with python. You will find this module useful: www.pycrypto.org On Oct 15, 12:19 pm, Michele [EMAIL PROTECTED] wrote: Hi, I'm trying to encode a byte data. Let's not focus on the process of encoding; in fact, I want to emphasize that the method

Re: Overloading operators

2008-10-15 Thread Aaron Castironpi Brady
On Oct 15, 7:34 am, Mr.SpOOn [EMAIL PROTECTED] wrote: Hi, in a project I'm overloading a lot of comparison and arithmetic operators to make them working with more complex classes that I defined. Sometimes I need a different behavior of the operator depending on the argument. For example, if

Re: Overloading operators

2008-10-15 Thread Robert Lehmann
On Wed, 15 Oct 2008 14:34:14 +0200, Mr.SpOOn wrote: Hi, in a project I'm overloading a lot of comparison and arithmetic operators to make them working with more complex classes that I defined. Sometimes I need a different behavior of the operator depending on the argument. For example, if

Re: xor: how come so slow?

2008-10-15 Thread bearophileHUGS
Few suggestions for your code: - Use xrange instead of range. - Loop over lists where you can instead of their indexes. - array.array(B, somestring) may help you because it gives a byte view of a string. - Using psyco helps a lot for such kind of code. - I think numpy arrays can contain text/chars

Re: python3 - the hardest hello world ever ?

2008-10-15 Thread Helmut Jarausch
Martin v. Löwis wrote: do I miss something (I do hope so) or is switching to Python3 really hard for Latin1-users? Why do you want to switch? sys.stdout.encoding should already be iso-8859-1, if you are a Latin1-user. What defines me as latin1-user? commenting #

Re: Distributing compiled (swig) python modules

2008-10-15 Thread Diez B. Roggisch
mathieu wrote: Hi there, I have prepared binaries of a python module that I wrote. Basically the lib is written in C++ and wrapped in python using SWIG. Of course it links to the python dynamic libraries. I found out that this is version dependant. For instance if I prepare the binaries

Re: replace mothod for only one object but not for a class

2008-10-15 Thread hofer
On Oct 14, 7:50 pm, hofer [EMAIL PROTECTED] wrote: Hi, I have multiple objects all belonging to the same class  (which I didn't implement and whose code I don't want to modify) Now I'd like to change one method for one object only (after it has been created) without adding any overhead to

Re: Using variable in storbinary function of ftpilb module

2008-10-15 Thread Diez B. Roggisch
Arya, Manish Kumar wrote: Hi, I am new to python. I have written a simple code to upload a file via ftp to remote server - import sys import ftplib host=sys.argv[1] username=sys.argv[2] passwd=sys.argv[3] filename=sys.argv[4] print host,username,passwd ftp =

Distributing compiled (swig) python modules

2008-10-15 Thread mathieu
Hi there, I have prepared binaries of a python module that I wrote. Basically the lib is written in C++ and wrapped in python using SWIG. Of course it links to the python dynamic libraries. I found out that this is version dependant. For instance if I prepare the binaries on my machine with a

Re: Deviation from object-relational mapping (pySQLFace)

2008-10-15 Thread Bruno Desthuilliers
J Peyret a écrit : On Oct 12, 8:19 am, [EMAIL PROTECTED] wrote: I would like to get some opinions on this approach. Thanks. I realize I will be minority here, but... Then count me in - as long as all SQL stuff is cleanly encapsulated in it's own module and called via appropriate functions

Re: python3 - the hardest hello world ever ?

2008-10-15 Thread Helmut Jarausch
Brian Quinlan wrote: Hey Helmut, Did you try just: print(Hallo, Süßes Python) Yes, but that doesn't work here. Please see my reply to Martin's reply. Thanks, Helmut. -- Helmut Jarausch Lehrstuhl fuer Numerische Mathematik RWTH - Aachen University D 52056 Aachen, Germany --

Re: Installing Python 2.4 over 2.4?

2008-10-15 Thread Martin v. Löwis
More a generic -- some applications allow one control over optional features. Change would let one, uhm, change the options that were installed; repair attempt to restore the installation to the configuration that had been last installed. In the specific case of Python, the typical

Re: Can Python fix vcard files?

2008-10-15 Thread skip
Dotan The regex seems to be catching more than I would expect it to: ... Worked for me. The directory I ran the script in had your sample and one other VCF file. It made the apparently correct changes to yours. The other was unchanged. Dotan Why is that? I tried to fix it, but I

IDE Question

2008-10-15 Thread Steve Phillips
Hi All, I am just wondering what seems to be the most popular IDE. The reason I ask is I am currently at war with myself when it comes to IDE's. It seems like every one I find and try out has something in it that others don't and viceversa. I am in search for the perfect IDE and after many months

multiprocessing: Queue.get_nowait() never returns data

2008-10-15 Thread redbaron
I stuck in new multiprocessing module (ex. processing). I dont' understand why queue.get_nowait() never returns data, but always raises Empty, even if it is guaranteed that queue is not empty. I've created small test case, here it is: http://pastebin.ca/1227666 Hope someone could explain why I'm

Re: Win32api.MessageBox

2008-10-15 Thread Duncan Booth
Bruno Desthuilliers [EMAIL PROTECTED] wrote: Unkwntech a écrit : When I use win32api.MessageBox from the interactive console from an app that runs at the command line, it works and displays my alert just fine however when I use it in a service that I built I can hear the 'beep' but the alert

Re: Can Python fix vcard files?

2008-10-15 Thread Paul Boddie
On 15 Okt, 06:40, Lawrence D'Oliveiro [EMAIL PROTECTED] central.gen.new_zealand wrote: In message [EMAIL PROTECTED], Paul Boddie wrote: I didn't find anything which forbids splitting quoted-printable character values in these specifications. What adds to the confusion is that

Re: multiprocessing: Queue.get_nowait() never returns data

2008-10-15 Thread redbaron
my fault. changing continue to break solves the problem -- http://mail.python.org/mailman/listinfo/python-list

Re: replace mothod for only one object but not for a class

2008-10-15 Thread Bruno Desthuilliers
hofer a écrit : Hi hofer a écrit : I have multiple objects all belonging to the same class (which I didn't implement and whose code I don't want to modify) Now I'd like to change one method for one object only (after it has been created) without adding any overhead to the call of the other

Re: replace mothod for only one object but not for a class

2008-10-15 Thread hofer
Hi hofer a écrit : I have multiple objects all belonging to the same class (which I didn't implement and whose code I don't want to modify) Now I'd like to change one method for one object only (after it has been created) without adding any overhead to the call of the other object's

Re: IDE Question

2008-10-15 Thread Chris Rebert
You can find a list and several reviews on http://wiki.python.org/moin/IntegratedDevelopmentEnvironments I think Wing IDE (http://www.wingware.com/products) is generally thought to be the most sophisticated one; but it's neither open-source nor gratis (they do let noncommerical open-source devs

Re: IDE Question

2008-10-15 Thread Fabio Zadrozny
I am just wondering what seems to be the most popular IDE. The reason I ask is I am currently at war with myself when it comes to IDE's. It seems like every one I find and try out has something in it that others don't and viceversa. I am in search for the perfect IDE and after many months of

Re: Can Python fix vcard files?

2008-10-15 Thread Dotan Cohen
2008/10/15 [EMAIL PROTECTED]: Just out of curiosity, are the line endings CRLF perchance? If so, try changing the replace call like this: cooked = uncooked.replace('\r\n ', '') Apparently they were CRLF. Actually, I think that is part of the Vcard spec. Now, it seems that I have a few

newbie - merging xls files using xldt and xlwt

2008-10-15 Thread Albert-jan Roskam
Hi, I wrote the program below to merge all xls files in a given directory into one multisheet xls file. It uses xlwt and xlrd. The xls files I use for input are generated by Spss. When I open and re-save the files in Excel, the program works, but when I use the xls files as they were created

Re: IDE Question

2008-10-15 Thread tomohiro kusumi
How about pyscripter or pydev (eclipse plugin), although I don't know if they are the most popular one. I use them on Windows. Tomohiro Kusumi 2008/10/16 Steve Phillips [EMAIL PROTECTED] Hi All, I am just wondering what seems to be the most popular IDE. The reason I ask is I am currently at

Overloading operators

2008-10-15 Thread Mr . SpOOn
Hi, in a project I'm overloading a lot of comparison and arithmetic operators to make them working with more complex classes that I defined. Sometimes I need a different behavior of the operator depending on the argument. For example, if I compare a object with an int, I get a result, but if I

Re: PyGUI as a standard GUI API for Python?

2008-10-15 Thread lkcl
hello_loader.py is the main err um i just double- checked, so i'd be able to advise you and... err... the problem i described (with the GridTest) seems to have... gone away!! There are lots of references to PyGTK classes in there. yes, that's because i had started with the

File Management

2008-10-15 Thread erict1689
I am writing this program in which I open up a file and update that information but to a new file. I already have a global variable for it but how do I go about creating an openable file in the source code? If it helps here is what I have: def startUp(): # Purpose: opens files and print

Re: Sending multi-part MIME package via HTTP-POST

2008-10-15 Thread [EMAIL PROTECTED]
On Oct 15, 2:42 am, Lawrence D'Oliveiro [EMAIL PROTECTED] central.gen.new_zealand wrote: In message [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: ... but I'm getting a very vague server error message ... Which is? In this case it's not really something that will be readily recognized here,

File management

2008-10-15 Thread erict1689
I am writing a program in which i open up a file and read the contents then do some calculations and update the information but in a new file. So my question is how do i go about declaring the new file so that the program will know that the new information goes into the new file and not the

OOP books?

2008-10-15 Thread Ken D'Ambrosio
Hi, all. Over the years, I've programmed in a fair number of languages; the ones with which I became most familiar were assembler, BASIC, Pascal, and lately (the last fifteen years or so) Perl. Now I'm trying my hand at Python. While I don't have any problems with the ins and outs of the

Re: IDE Question

2008-10-15 Thread jdd
On Oct 15, 1:19 pm, Steve Phillips [EMAIL PROTECTED] wrote: Hi All, I am just wondering what seems to be the most popular IDE. The reason I ask is I am currently at war with myself when it comes to IDE's. It seems like every one I find and try out has something in it that others don't and

Re: IDE Question

2008-10-15 Thread Stef Mientki
Steve Phillips wrote: Hi All, I am just wondering what seems to be the most popular IDE. The reason I ask is I am currently at war with myself when it comes to IDE's. It seems like every one I find and try out has something in it that others don't and viceversa. I am in search for the perfect

Re: IDE Question

2008-10-15 Thread Fabio Zadrozny
I would personally recommend that you take the time to learn your way around a powerful text editor such as emacs or vim (I use emacs, myself), however that may not fit well with your personal editing tastes, and the learning curve is a bit steep. The editing tastes problem can be solved once

Re: newbie - merging xls files using xldt and xlwt

2008-10-15 Thread Terry Reedy
Albert-jan Roskam wrote: Hi, When you start a new topic/, make sure that you start a new thread by hitting the appropriate button on your program and not by replying to a different thread. Your post has nothing to do with GUIs and will be missed by anyone who has threads collapsed and who

Re: xor: how come so slow?

2008-10-15 Thread Peter Otten
Michele wrote: I'm trying to encode a byte data. Let's not focus on the process of encoding; in fact, I want to emphasize that the method create_random_block takes 0.5s to be executed (even Java it's faster) on a Dual-Core 3.0Ghz machine: took 46.74679s, avg: 0.4674679s How

Re: Distributing compiled (swig) python modules

2008-10-15 Thread Scott David Daniels
mathieu wrote: ...Is there some documentation (that I missed in my previous google search) that describe how to prepare python module that can be redistributed with some kind of backward compatibility (= so that when prepared on python 2.4, it works on 2.5/2.6 at least) ? Nope, you didn't miss

[ANN] Data Plotting Library DISLIN 9.4

2008-10-15 Thread Helmut Michels
Dear Python users, I am pleased to announce version 9.4 of the data plotting software DISLIN. DISLIN is a high-level and easy to use plotting library for displaying data as curves, bar graphs, pie charts, 3D-colour plots, surfaces, contours and maps. Several output formats are supported such as

Re: Compiling Webkit-Glib and PyWebkitGTK for Win32

2008-10-15 Thread lkcl
terry, hi: instructions to ensure that you have the right build environment for windows is here: http://webkit.org/building/tools.html it's not made clear whether the use of VS 2005 will _automatically_ download all of the build dependencies for you - you'll have to find out :) regarding

Re: OOP books?

2008-10-15 Thread Mike Driscoll
On Oct 15, 1:02 pm, Ken D'Ambrosio [EMAIL PROTECTED] wrote: Hi, all.  Over the years, I've programmed in a fair number of languages; the ones with which I became most familiar were assembler, BASIC, Pascal, and lately (the last fifteen years or so) Perl.  Now I'm trying my hand at Python.  

Re: ANN: eGenix mxODBC - ODBC Database Interface for Python 3.0.2

2008-10-15 Thread Terry Reedy
FYI I initially parsed the subject line as eGenix mxODBC - ODBC Database Interface for Python 3.0.2 and thought, Wow, already prepared for the future (6 months to a year) ;-). tjr -- http://mail.python.org/mailman/listinfo/python-list

Problem with py2exe

2008-10-15 Thread Srinivasa NL
Hi, I am having problem with running exe generated using py2exe. I wrote a simple script test.py which prints a line (e.g print 'Hello World') and generated an exe using py2exe. I used the command python setup.py py2exe. When I run the exe test.exe in the dist directory I get the error message

Re: replace mothod for only one object but not for a class

2008-10-15 Thread Bruno Desthuilliers
Bruno Desthuilliers a écrit : hofer a écrit : Hi, I have multiple objects all belonging to the same class (which I didn't implement and whose code I don't want to modify) Now I'd like to change one method for one object only (after it has been created) without adding any overhead to the call

Re: [ANN] final 2008 Python courses, San Francisco

2008-10-15 Thread wesley chun
*** FINAL REMINDER also, the course begins on monday immediately following the *free* CodeCamp conference http://siliconvalley-codecamp.com (click Program = Sessions to see all the talks)... 5 straight days of learning in the San Francisco Bay Area!! *** -- Forwarded message --

Re: IDE Question

2008-10-15 Thread Steve Phillips
Thanks for all of your responses. I did forget to mention that I do use Notepad++ for just about everything. My larger scripts I use that and just say the hell with the auto-complete and the call-tips. I lived on that wiki page and actually still do waiting to see if something new was going to

Re: IDE Question

2008-10-15 Thread jdd
On Oct 15, 2:13 pm, Fabio Zadrozny [EMAIL PROTECTED] wrote: Now, following that route, many people call Eclipse is the 21st century Emacs... ;-) I don't want to kick off an editor war or anything, but I don't think that Eclipse is anywhere near being a 21st century emacs, unless there's been a

UICrawler

2008-10-15 Thread mccarth . jack
Hello all, I am trying to run the Universal information crawler wed spider on my mac. It seems to install without any trouble but when, in unix command line, I try to run paster create --list-templates it returns this Value Code error. I followed instructions provided at

Re: problem using ctypes with MMX intrinsics

2008-10-15 Thread Robert Kern
dcharno wrote: Is it possible to use ctypes with a shared library which uses MMX/SSE intrinsics? I can load the library and access functions inside it, but I getting a seg fault when I hit one of the intrinsics. I'm wondering if there might be some sort of stack alignment problem. I am

Re: OOP books?

2008-10-15 Thread Alan G Isaac
Mike Driscoll wrote: I have yet to read a Python book that only focuses on the OOP part, http://www.amazon.com/Scripting-Objects-Comparative-Presentation-Object-Oriented/dp/047039725X fwiw, Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

  1   2   >