Re: How can this script fail?

2008-08-27 Thread M.-A. Lemburg
On 2008-08-27 13:15, [EMAIL PROTECTED] wrote: > On Aug 27, 1:08 pm, "M.-A. Lemburg" <[EMAIL PROTECTED]> wrote: > >> I don't think this is related to IDLE or your setup. The odbc >> module is very old and unmaintained, so it's possible that Windows >&

Re: (in memory) database

2008-09-01 Thread M.-A. Lemburg
tabase tools might be suitable for this. I > would just write the import from the text files and ... the tool does > the rest. The only problem I can imagine is that this would not be > fast enough. But I would give it a shoot. > Unfortunately I have only some knowledge of SQLite which i

Re: PyGUI as a standard GUI API for Python?

2008-09-04 Thread M.-A. Lemburg
etc and have it talk to a Flex front-end via XML-RPC or REST. As a nice side-effect, this also results in a better separation between GUI and backend, effectively making the solution future-proof and easy to adapt to other front-end technologies. We've been working with this approach for alm

Re: PyGUI as a standard GUI API for Python?

2008-09-04 Thread M.-A. Lemburg
On 2008-09-04 11:14, Kay Schluehr wrote: > On 4 Sep., 10:31, "M.-A. Lemburg" <[EMAIL PROTECTED]> wrote: >> On 2008-09-04 07:49, Kay Schluehr wrote: >> >>> 3) Following the public rumor mill and the latest hype RIA i.e. the >>> merge of web- and

Re: PyGUI as a standard GUI API for Python?

2008-09-04 Thread M.-A. Lemburg
On 2008-09-04 12:57, Banibrata Dutta wrote: > On Thu, Sep 4, 2008 at 3:45 PM, M.-A. Lemburg <[EMAIL PROTECTED]> wrote: > >> On 2008-09-04 11:14, Kay Schluehr wrote: >>> On 4 Sep., 10:31, "M.-A. Lemburg" <[EMAIL PROTECTED]> wrote: >>>>

Re: Can anyone suggest a good crypto package?

2008-09-04 Thread M.-A. Lemburg
On 2008-09-04 20:39, Fett wrote: > I need a crypto package that works on windows with python 2.5. Can > anyone suggest one for me? > > I have been searching for a couple days for a good cryptography > package to use for public/private key encryption, at this point I > would se

Re: Error importing mxTidy

2008-09-08 Thread M.-A. Lemburg
On 2008-09-07 15:00, Mike Hostetler wrote: > I built and installed mx-experimental 3.0.0 from source and it seemed to go > fine. But when I try to import it, I get this: > > localhost% python -c "import mx.Tidy" > Traceback (most recent call last): > File "", line 1, in ? > File "mx/T

F2PY ?? Has anyone worked with the F2PY generator?

2008-09-08 Thread Blubaugh, David A.
To All, Has anyone worked with the F2PY generator? This is something that is supposedly built within numpy and scipy for the Python environment. I was wondering if anyone has encountered any issues with this environment?? This is important to find the answers to these questions. Thanks, D

RE: F2PY ?? Has anyone worked with the F2PY generator?

2008-09-08 Thread Blubaugh, David A.
"C:\Python25\Lib\site-packages\numpy\f2py\setup.py", line 130, in **config) TypeError: setup() got multiple values for keyword argument 'version' >>> I do not know as to how to fix the multiple values for version?? PLEASE HELP!!! David Blubaugh --

Re: wxpython ms-dos black window popping up in background

2008-09-10 Thread James A. Donald
On Tue, 9 Sep 2008 14:35:13 -0700 (PDT), icarus <[EMAIL PROTECTED]> wrote: > Oh ok. Thanks. In windows xp I just renamed the file extension to .pyw > That did it. > > one more question... > > how do I create a pythonw standalone executable that works on w32, > linux,

PYTHON FOR THE MSP430 or DSP ?

2008-09-10 Thread Blubaugh, David A.
To All, I was wondering if anyone has ever worked on developing a project for Python, where the Python and Numpy script code could then be generated into either C or assembly source for the Texas Instruments MSP430 or related DSP microcontrollers? Such as quickly generating from python

Re: wxpython ms-dos black window popping up in background

2008-09-10 Thread James A. Donald
James A. Donald > > Horrible installs are a chronic problem of GUI programs driven by > > interpreted languages  Installing visual basic programs that worked on > > one Windows machine to work on a very slightly different windows > > machine was also a nightmare. > &g

Re: wxpython ms-dos black window popping up in background

2008-09-10 Thread James A. Donald
James A. Donald > > > > Horrible installs are a chronic problem of GUI programs driven by > > > > interpreted languages  Installing visual basic programs that worked on > > > > one Windows machine to work on a very slightly different windows > > > >

Has any one worked with Rpyc

2008-09-13 Thread Blubaugh, David A.
To All, Has anyone out there worked much with Rpyc? Thanks, David This e-mail transmission contains information that is confidential and may be privileged. It is intended only for the addressee(s) named above. If you receive this e-mail in error, please do not read, copy or dissemina

I cannot find where Numpy 1.2 is located

2008-09-13 Thread Blubaugh, David A.
To All, I have been trying to locate as to where Numpy 1.2 can be downloaded. I will need this update. The only version available at the Numpy website for download is only 1.1.1 not the required 1.2 that I definitely need at this time. David Blubaugh This e-mail transmission contains info

Has any one out there ever worked with the Rpyc, which is a remote process call for python

2008-09-13 Thread Blubaugh, David A.
To All, Has any one out there ever worked with the Rpyc, which is a remote process call for python? David Blubaugh This e-mail transmission contains information that is confidential and may be privileged. It is intended only for the addressee(s) named above. If you receive this e-mail in

NEW GENERATED DLL ERROR FOUND WITHIN f2PY.py

2008-09-20 Thread Blubaugh, David A.
To All, I have now been able to generate a .pyd file from a FORTRAN file that I am trying to interface with python. I was able to execute this with an additional insight into how f2py operates. It seems as though the documentation requires an upgrade, since there appears to be missing

RE: NEW GENERATED DLL ERROR FOUND WITHIN f2PY.py

2008-09-20 Thread Blubaugh, David A.
Sir, Let me state that do have extensive experience with developing binary files. Please note that I have followed all of the instructions to the letter as far as developing a DLL to be imported. However, it is not working correctly. I believe it might be my system environment variables

RE: NEW GENERATED DLL ERROR FOUND WITHIN f2PY.py

2008-09-21 Thread Blubaugh, David A.
ran compiler, that was prescribed to use, as well as, the required commands on the following website: http://www.scipy.org/F2PY_Window <https://webmail.belcan.com/exchweb/bin/redir.asp?URL=http://www.scipy.org/F2PY_Window> I comes down to that yes, I am able to generate a .pyd file, which was

Re: Milenko Kindl rtegdgd

2008-09-21 Thread Michael A. Terrell
html aioe.org, Goggle Groups, and Web TV users must request to be white listed, or I will not see your messages. If you have broadband, your ISP may have a NNTP news server included in your account: http://www.usenettools.net/ISP.htm There are two kinds of people on this earth: The crazy, and th

Time.sleep(0.0125) not available within Linux

2008-09-22 Thread Blubaugh, David A.
To All, I was wondering if anyone has come across the issue of not being allowed to have the following within a Python script operating under Linux: time.sleep(0.0125) It appears that I am not allowed to have the object sleep. Has anyone encountered this specific issue before in the past

PYTHON WORKING WITH PERL ??

2008-09-29 Thread Blubaugh, David A.
To All, I was wondering if it was possible to have a situation where a programming project would utilized BOTH python and perl? Such as utilizing python for internet programming and then utilize perl for text processing and systems programming? Is this even feasible??? Thanks, David

RE: PYTHON WORKING WITH PERL ??

2008-09-29 Thread Blubaugh, David A.
Sir, You are absolutely correct. I was praying to G_d I did not have to slaughter my project's source code in this manner. However, like life itself, I was given legacy source code (i.e. someone else errors to fix) in Perl. However, I have just found out that there is a way to import the

RE: PYTHON WORKING WITH PERL ??

2008-09-29 Thread Blubaugh, David A.
Thank You Steve!!! -Original Message- From: Steve Holden [mailto:[EMAIL PROTECTED] Sent: Monday, September 29, 2008 1:38 PM To: python-list@python.org Subject: Re: PYTHON WORKING WITH PERL ?? Blubaugh, David A. wrote: > To All, > > > I was wondering if it was poss

Is Pyperl still active ??

2008-09-29 Thread Blubaugh, David A.
To All, I was wondering if Pyperl is still active?? It appears as though it may very well be no longer active at this time!!! Is this correct?? Thanks, David Blubaugh This e-mail transmission contains information that is confidential and may be privileged. It is intended only for the

Is Pyperl still active ??

2008-09-29 Thread Blubaugh, David A.
To All, I was wondering if Pyperl is still active?? It appears as though it may very well be no longer active at this time!!! Is this correct?? Thanks, David Blubaugh This e-mail transmission contains information that is confidential and may be privileged. It is intended only for the a

Re: how to find out the version of a certain installed package

2008-09-30 Thread M.-A. Lemburg
On 2008-09-30 18:17, Christophe wrote: > Hi, > > In a projecet I'm making using pycrypto, I need to find out the > current installed version of pycrypto. After looking around, I found > out that "pkg_resources.requires("pycrypto") will give me a string > cont

OS.SYSTEM ERROR !!!

2008-09-30 Thread Blubaugh, David A.
:\myprogramfolder\run> Myprogram.exe 1 1 acc 0 The executable would execute perfectly. However, when I would try to execute the following lines of source code within a python script file: import os os.system(r"C:\myprogramfolder\run\Myprogram.exe 1 1 acc 0") The executable file w

RE: OS.SYSTEM ERROR !!!

2008-09-30 Thread Blubaugh, David A.
Thank You!! I am still new to Python!! David Blubaugh -Original Message- From: Christian Heimes [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 30, 2008 2:08 PM To: python-list@python.org Subject: Re: OS.SYSTEM ERROR !!! Blubaugh, David A. wrote: > To All, > >

RE: OS.SYSTEM ERROR !!!

2008-09-30 Thread Blubaugh, David A.
Yes, I new it was a directory issue. I am new to Python. Thank You David Blubaugh -Original Message- From: Martin Walsh [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 30, 2008 1:42 PM To: python-list@python.org Subject: Re: OS.SYSTEM ERROR !!! Blubaugh, David A. wrote: >

Python for the Playstation 3

2008-10-02 Thread Blubaugh, David A.
To All, I was wondering if there is still a community effort to develop Python for Linux distributions for the Sony Playstation 3?? I have found a few WebPages stating this effort to port Python in such a way to take advantage of the Cell architecture within the playstation? However, all of

Threading.Lock() question

2006-03-09 Thread Alvin A. Delagon
I have a multithreaded application that spawns threads which query a database server. During stress test I encountered some threads failing due "lost connection errors" and sometimes the actual script itself dies due to a "Segmentation Fault". I realized that it might be a

Re: Threading.Lock() question

2006-03-09 Thread Alvin A. Delagon
I think I just found out my problem. How stupid of me, I should've created an instance of lock in the class Process instead of class Send. Good Heaven's python's threading rocks! I stress tested the server script having two clients sending requests on a while 1 loop without ev

Re: Threading.Lock() question

2006-03-09 Thread Alvin A. Delagon
@ Dennis Thanks for the quick heads up! You're right! I noticed the bug on my script just after sending out my question. Yes, I'm using MySQLdb but I did a wrapper for it to further simplify my script that why the sample script I wrote is a little bit different. Thanks again! Py

Obtaining the remote ip address

2006-03-27 Thread Alvin A. Delagon
One quick question: I have a python cgi script running behind a CGI server which is also built using python using CGIHTTPServer module. How can my cgi script obtain the remote ip address? -- http://mail.python.org/mailman/listinfo/python-list

Re: Obtaining the remote ip address

2006-03-27 Thread Alvin A. Delagon
Thanks a lot Justin! ^_^ -- http://mail.python.org/mailman/listinfo/python-list

Re: GUI in python

2006-03-30 Thread Nicolay A. Vasiliev
Hello! I think this library is enough old, isn't it? Version 0.72 was released on 2004-06-20. Nicolay [EMAIL PROTECTED] wrote: > For quick, no learning curve, simple: > > http://www.ferg.org/easygui/ > > -- http://mail.python.org/mailman/listinfo/python-list

CGIHTTPServer threading problems

2006-03-31 Thread Alvin A. Delagon
I'm a simple python webserver based on CGIHTTPServer module: import CGIHTTPServer import BaseHTTPServer import SocketServer import sys import SQL,network from config import * class ThreadingServer(SocketServer.ThreadingMixIn,BaseHTTPServer.HTTPServer): pass cfg = params() print

Re: Python Programming Challenges for beginners?

2009-11-30 Thread Edward A. Falk
In article <09ea817f-57a9-44a6-b815-299ae3ce7...@x5g2000prf.googlegroups.com>, alex23 wrote: >On Nov 27, 1:24 pm, astral orange <457r0...@gmail.com> wrote: >> I would like to test out what I know so far by solving programming >> challenges. > >Projec

Re: parsing json data

2009-11-30 Thread Edward A. Falk
There's a json parsing library in 2.6. (Sadly, 2.6 is not out for Ubuntu yet.) -- -Ed Falk, f...@despams.r.us.com http://thespamdiaries.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: python bijection

2009-12-03 Thread M.-A. Lemburg
Raymond Hettinger wrote: > [Joshua Bronson] >> Raymond, do you think there might be any future in including a built- >> in bidict data structure in Python? > > I don't think so. There are several forces working against it: > > * the recipe is new, so it hasn&#x

Re: python bijection

2009-12-03 Thread M.-A. Lemburg
geremy condra wrote: > On Thu, Dec 3, 2009 at 7:04 AM, M.-A. Lemburg wrote: >> I think the only major CS data type missing from Python is some >> form of (fast) directed graph implementation à la kjGraph: >> >>http://gadfly.sourceforge.net/kjbuckets.html >> &g

Re: Which is more pythonic?

2009-12-03 Thread Edward A. Falk
In article , Filip GruszczyÅ ski wrote: > >for choice in self.__choices: > choicesBox.addItem(choice) This is the easiest to read. I'm guessing that this is not inner-loop stuff that needs to be optimized, so you should favor readability over performance. -- -Ed Falk, f...@despam

Re: python bijection

2009-12-04 Thread M.-A. Lemburg
geremy condra wrote: > On Thu, Dec 3, 2009 at 12:57 PM, M.-A. Lemburg wrote: >> geremy condra wrote: >>> On Thu, Dec 3, 2009 at 7:04 AM, M.-A. Lemburg wrote: >>>> I think the only major CS data type missing from Python is some >>>> form of (fast)

Re: When will Python 3 be fully deployed

2009-12-06 Thread Edward A. Falk
rade my perfectly-function Ubuntu 8 system. That means I can't even run Python 2.6 code. I'm still using 2.5. >Should I stick, so far, to Python 2.6? For development purposes, you should stick with the oldest version that will actually run your code. Every time you move to a more moder

Re: python bijection

2009-12-07 Thread M.-A. Lemburg
Terry Reedy wrote: > M.-A. Lemburg wrote: > >> Integrating an easy-to-use graph library into the collections >> module (and it's C companion) is good idea. >> >>>> This would have to be written in C, though, >>> That's currently in the works,

Re: python bijection

2009-12-07 Thread M.-A. Lemburg
Carl Banks wrote: > On Dec 4, 4:42 pm, Lie Ryan wrote: >> On 12/5/2009 9:41 AM, Carl Banks wrote: >> >> >> >> >> >>> On Dec 4, 12:46 pm, geremy condra wrote: >>> more common than full-blown graph package). >>>> Sure, its a tree

Re: python bijection

2009-12-07 Thread M.-A. Lemburg
geremy condra wrote: > On Mon, Dec 7, 2009 at 7:51 AM, M.-A. Lemburg wrote: >> Terry Reedy wrote: >>> M.-A. Lemburg wrote: >>> >>>> Integrating an easy-to-use graph library into the collections >>>> module (and it's C companion) is good idea

Graph library for Python (was: Re: python bijection)

2009-12-07 Thread M.-A. Lemburg
geremy condra wrote: > How interested are you in a C port of graphine? I haven't had > any specific requests for it, but if its something you need I > can shuffle it towards the top of the to do pile. There are two main reasons for a C implementation: 1. performance 2. memory fo

Re: Graph library for Python

2009-12-07 Thread M.-A. Lemburg
geremy condra wrote: > On Mon, Dec 7, 2009 at 2:51 PM, M.-A. Lemburg wrote: >> geremy condra wrote: >>> How interested are you in a C port of graphine? I haven't had >>> any specific requests for it, but if its something you need I >>> can shuffle it towar

Re: Graph library for Python

2009-12-09 Thread M.-A. Lemburg
geremy condra wrote: > On Mon, Dec 7, 2009 at 6:28 PM, M.-A. Lemburg wrote: >>>> * Graph.__init__ should be able to take a list or set >>>> of nodes and edges as initializer >>> >>> The format of this will need to be thought all the way >>>

Re: Dangerous behavior of list(generator)

2009-12-14 Thread M.-A. Lemburg
exar...@twistedmatrix.com wrote: > On 08:45 am, tjre...@udel.edu wrote: >> Tom Machinski wrote: >>> In most cases, `list(generator)` works as expected. Thus, >>> `list()` is generally equivalent to `[>> expression>]`. >>> >>> Here's a mi

Re: os.starfile() linux

2009-12-20 Thread Todd A. Jacobs
On Mon, Nov 30, 2009 at 05:35:31PM +, joao abrantes wrote: > to open a new shell and to put the output of the new python program > there.. The subprocess module is probably what you want. -- "Oh, look: rocks!" -- Doctor Who, "Destiny of the Daleks"

Re: Invalid syntax error

2009-12-20 Thread Todd A. Jacobs
On Sun, Dec 20, 2009 at 08:40:05AM -0500, Ray Holt wrote: > Why am I getting an invalid syntax error on the following: > os.chdir(c:\\Python_Modules). The error message says the colon after c You need to pass either a string literal or a variable. If you're passing a string, like you

Re: converting string to a date format

2009-12-22 Thread M.-A. Lemburg
tekion wrote: > All, > I know there is a datetime module for converting and manipulate date > format. I have this string date format: 24/Nov/2009:10:39:03 -0500 > and would like to convert it to a date format of "2009-11-24 > 10:39:03". At the moment I am reading datet

Re: Difference Between Two datetimes

2009-12-29 Thread M.-A. Lemburg
nutes between Nat and Bree" > > yields: > There were 3071 days, 0:49:35 minutes between Nat and Bree > > That's fine, but I'd like to start with two dates as strings, as > "1961/06/16 04:35:25" and "1973/01/18 03:45:50" > >

Re: Fractional Hours from datetime?

2010-01-11 Thread M.-A. Lemburg
W. eWatson wrote: > Maybe there's a more elegant way to do this. I want to express the > result of datetime.datetime.now() in fractional hours. > > Here's one way. > > dt=datetime.datetime.now() > xtup = dt.timetuple() > h = xtup[3]+xtup[4]/60.0+xtup[5]/36

Re: Generic Python Benchmark suite?

2010-01-19 Thread M.-A. Lemburg
Anand Vaidya wrote: > Is there a generic python benchmark suite in active development? I am > looking forward to comparing some code on various python > implementations (primarily CPython 2.x, CPython 3.x, UnladenSwallow, > Psyco). > > I am happy with something that gives me a

Re: setattr() oddness

2010-01-20 Thread M.-A. Lemburg
>>> Interesting. I can understand the "would take time" argument, but I >>>>> don't see any legitimate use case for an attribute only accessible >>>>> via getattr(). Well, at least not a pythonic use case. >>>> >>>> mostl

Re: Interesting Problem

2010-01-20 Thread M.-A. Lemburg
Victor Subervi wrote: > Hi; > I think I finally have an interesting problem for y'all. I need to import a > script from a lower dir, forcing me to change dirs: > > cwd = os.getcwd() > os.chdir('%s/..' % cwd) > sys.path.append(os.getcwd()) > from templateFram

Re: Using jython to call python procedures/methods

2010-01-20 Thread M.-A. Lemburg
KB wrote: > Hi there, > > I have an application that only publishes a Java API. I can use jython > to access java classes, but jython currently (to the best of my > knowledge) does not support numpy/scipy. > > Ideally I would like to have jython call a "native" py

Re: ctypes for AIX

2010-01-26 Thread M.-A. Lemburg
Waddle, Jim wrote: > I need to use ctypes with python running on AIX. It appears that python is > being developed mostly for windows. Is there a policy concerning getting > functions like ctypes working on AIX. If you can provide patches to get ctypes working on AIX, we'd conside

Re: Authenticated encryption with PyCrypto

2010-01-26 Thread M.-A. Lemburg
course, it does not meet all of the requirements set forth by the > OP in the referenced thread (the pycrypto dependency is a problem), > but it is an attempt to provide a simple interface for performing > strong, password-based encryption. Are there already modules out there > that p

Re: Authenticated encryption with PyCrypto

2010-01-26 Thread M.-A. Lemburg
M.-A. Lemburg wrote: > Daniel wrote: >> Just got done reading this thread: >> >> http://groups.google.com/group/comp.lang.python/browse_thread/thread/b31a5b5f58084f12/0e09f5f5542812c3 >> >> and I'd appreciate feedback on this recipe: >> &

Re: Authenticated encryption with PyCrypto

2010-01-26 Thread M.-A. Lemburg
geremy condra wrote: > On Tue, Jan 26, 2010 at 12:37 PM, M.-A. Lemburg wrote: > > > >> You are also using CBC mode, even though you are really after >> ECB mode (your code doesn't use chaining). With ECB mode, you >> don't need the IV string. > &

Re: Authenticated encryption with PyCrypto

2010-01-26 Thread M.-A. Lemburg
Daniel wrote: > On Jan 26, 12:37 pm, "M.-A. Lemburg" wrote: >> Note that your code has a padding bug: the decoder doesn't >> undo the padding. You're lucky though, since pickle will only >> read as much data as it needs and not complain about the extra >

Re: Ad hoc lists vs ad hoc tuples

2010-01-27 Thread M.-A. Lemburg
Iain King wrote: > On Jan 27, 10:20 am, Floris Bruynooghe > wrote: >> One thing I ofter wonder is which is better when you just need a >> throwaway sequence: a list or a tuple? E.g.: >> >> if foo in ['some', 'random', 'strings&#x

Re: myths about python 3

2010-01-27 Thread Edward A. Falk
In article , Daniel Fetchinson wrote: >Hi folks, > >1. Print statement/function creates incompatibility between 2.x and 3.x! > >Certainly false or misleading, if one uses 2.6 and 3.x the >incompatibility is not there. Print as a function works in 2.6: Yes, but does print a

Re: myths about python 3

2010-01-27 Thread Edward A. Falk
In article , Grant Edwards wrote: > >That said, I don't expect to start using Python 3 until library >availability or my Linux distro forces me to. If python 3 is much more efficient than python 2, or it has features I really need for some application I'll write in the future, I might be tempted

Re: different behaviour for user defined exception with attribute args

2009-09-29 Thread M.-A. Lemburg
constructor argument tuple or list, not a single value. > def __str__(self): > return repr(self.v) > > an iteration is happening when the exception is raised > > Meanwhile for almost the same structured exception replacing the > attribute 'args' with s

Re: custom data warehouse in python vs. out-of-the-box ETL tool

2009-10-02 Thread M.-A. Lemburg
Tony Schmidt wrote: > Hi, Marc-Andre - well, so far you seem to be the only one suggesting > that cross-database joins is the way to go - everyone else has been > telling me to build a warehouse. I initially was trying to avoid the > warehouse idea to "avoid going through the e

Re: mktime, how to handle dates before 01-01-1970 ?

2009-10-07 Thread M.-A. Lemburg
human history. > > I prefer JDN or MJD (http://en.wikipedia.org/wiki/JDN) for dates long > before or after the unix epoch. The conversion from JDN as float to a > datetime object is trivial. FWIW, mxDateTime can help you with all of those: >>> impor

Re: mktime, how to handle dates before 01-01-1970 ?

2009-10-07 Thread M.-A. Lemburg
Christian Heimes wrote: > M.-A. Lemburg schrieb: >> Christian Heimes wrote: >>> Ben Finney wrote: >>>> If you're committed to changing the epoch anyway, I would recommend >>>> using http://en.wikipedia.org/wiki/Astronomical_year_numbering> >>

Re: AES decrypting in Python

2009-10-07 Thread M.-A. Lemburg
Mike Driscoll wrote: > Hi, > > I am working on a project where I need to decrypt some data that has > been encrypted with AES. It looks like M2Crypto is the module of > choice for these sorts of things, but I cannot figure out how to do > this stuff from the docs. I have the

Re: windows side-by-side configuration woes on windows HPC

2009-10-08 Thread M.-A. Lemburg
Nick Touran wrote: > Copying my local copy of Python 2.6 to a Windows HPC 2008 system is giving > dll side-by-side configuration errors for some third-party packages > (matplotlib, pyMSSQL, in particular). I understand that there is a tradition > of Python supporting XCOPY deploymen

mxDateTime history (Re: mktime, how to handle dates before 01-01-1970 ?)

2009-10-09 Thread M.-A. Lemburg
John Yeung wrote: > On Oct 6, 4:10 pm, Stef Mientki wrote: >> >> thanks guys, >> mx works a bit better > > Another popular Python date library is dateutil: > > http://labix.org/python-dateutil > > It gives a certain amount of credit to mxDateTime

Re: mxDateTime history (Re: mktime, how to handle dates before 01-01-1970 ?)

2009-10-12 Thread M.-A. Lemburg
Tim Chase wrote: >> Month arithmetic is a bit of a mess, since it's not clear how >> to map e.g. Jan 31 + one month. > > "Jan 31 + one month" usually means "add one to the month value and then > keep backing off the day if you get an exception making th

Re: mxDateTime history (Re: mktime, how to handle dates before 01-01-1970 ?)

2009-10-12 Thread M.-A. Lemburg
Rhodri James wrote: > On Fri, 09 Oct 2009 13:39:43 +0100, Tim Chase > wrote: > >>> Month arithmetic is a bit of a mess, since it's not clear how >>> to map e.g. Jan 31 + one month. >> >> "Jan 31 + one month" usually means "add one to

Re: mxDateTime history (Re: mktime, how to handle dates before 01-01-1970 ?)

2009-10-12 Thread M.-A. Lemburg
Chris Rebert wrote: > On Mon, Oct 12, 2009 at 4:27 AM, Piet van Oostrum wrote: >>>>>>> greg (g) wrote: >> >>> g> MRAB wrote: >>>>> And when someone says "January 30", do they really mean the day before >>>>> the la

Re: windows side-by-side configuration woes on windows HPC

2009-10-12 Thread M.-A. Lemburg
Nick Touran wrote: > It is indeed a pain. I would really like a work-around. Matplotlib is > supposed to be immune to this nowadays but it's not. Nor are some other > third-party modules. Did they break with the new release? (2.6.3?) The main problem appears to be that the the M

Re: pickle's backward compatibility

2009-10-13 Thread M.-A. Lemburg
gt;> What if I serialize (using pickle) an object of a class defined in >> python library, will it be successfully read in later version of >> python? > > Sometimes. Sometimes not. Python doesn't really offer any guarantees > regarding this. I think this needs to b

Re: pickle's backward compatibility

2009-10-13 Thread M.-A. Lemburg
gt;>> this class, will the serialized object be successfully read in later >>>> version of python. >>>> >>>> What if I serialize (using pickle) an object of a class defined in >>>> python library, will it be successfully read in later version

Re: windows side-by-side configuration woes on windows HPC

2009-10-16 Thread M.-A. Lemburg
hat, matplotlib started working, but pymssql still did > not. Thanks for your report. Could you add a summary to the ticket I mentioned below ? > I then renamed _mssql.pyd to _mssql.dll so that VS2008 could recognize the > manifest, removed the publicKeyToken attribute, and renamed i

Re: How to set up web service by python?

2009-10-24 Thread Edward A. Falk
In article <7kh22qf38i28...@mid.uni-berlin.de>, Diez B. Roggisch wrote: > >As you don't show us the code, I can only guess - but experience tells >me that you try & bind your service to a priviledged (<=1024) port, >which *nix only allows with root-privileges. Con

Re: transpose array

2009-10-27 Thread Edward A. Falk
In article , yoshco wrote: >hello everyone >i have 3 arrays >xVec=[a1,a2,a3,a4,a5] >yVec=[b1.b2.b3.b4.b5] >zVec=[c1,c2,c3,c4,c5] > >and i want to output them to a ascii file like so > >a1,b1,c1 >a2,b2,c2 >a3,b3,c3 >... Elegant or obfuscated, you be the judge:

Re: Building Python on Solaris 10?

2009-10-29 Thread M.-A. Lemburg
olaris ? Those options should only be used for Mac OS X. Python currently does not support building universal binaries on Solaris. If you're still having problems, you might want to look at this patch: http://bugs.python.org/issue1628484 If it works for you, please add a comment. -- Marc-

Re: Pyfora, a place for python

2009-11-03 Thread M.-A. Lemburg
Kee Nethery wrote: > I just noticed the tag line "a place for Python". Looked it up online > (http://pyfora.org/) and it will be interesting to see if it can fill > the void that I experience (no centralized place to post and view user > submitted sample code) in the exi

Re: Freezing python files into executables

2009-11-03 Thread M.-A. Lemburg
gs should be fine. However, it's possible that you need to tweek the freeze.py script a little, since RedHat chose to split the Python installation on x64 in two parts and they may have missed patching freeze.py as well: The platform independent parts are in /usr/lib, whereas the platform depen

Re: Freezing python files into executables

2009-11-03 Thread M.-A. Lemburg
Rami Chowdhury wrote: > On Tue, 03 Nov 2009 11:15:39 -0800, Girish Venkatasubramanian > wrote: > >> Hello, >> I have been using freeze.py on 32 bit linux distributions without a >> problem. But recently I tried to do the same on RHEL5 x86_64 and ran >> into som

Re: open source linux -> windows database connectivity?

2009-11-12 Thread M.-A. Lemburg
Tony Schmidt wrote: > I am trying to read a Pervasive database on a Windows machine from a > Python script on a Linux machine. > > I understand that this can be done with a proprietary ODBC-to-ODBC > bridge called mxODBC or Easysoft OOB. The product is called "mxODBC

Re: open source linux -> windows database connectivity?

2009-11-13 Thread M.-A. Lemburg
Tony Schmidt wrote: >> Note: The client part of this product is free. You only need to >> get a license for the server part. > > Yeah, but don't I need the server part to make the connection? Sure, but you don't need to get a license per client, unlike for e.g. the c

Re: bootstrapping on machines without Python

2009-11-13 Thread M.-A. Lemburg
Jonathan Hartley wrote: > While examining py2exe et al of late, my thoughts keep returning to > the idea of writing, in C or similar, a compiled stand-alone > executable 'bootstrapper', which: > 1) downloads and install a Python interpreter if none exists > 2) runs the ap

Re: python simply not scaleable enough for google?

2009-11-14 Thread Edward A. Falk
In article , Terry Reedy wrote: > >I can imagine a day when code compiled from Python is routinely >time-competitive with hand-written C. I can't. Too much about the language is dynamic. The untyped variables alone are a killer. int a,b,c; ... a = b +

Re: python simply not scaleable enough for google?

2009-11-15 Thread Edward A. Falk
In article , Robert Brown wrote: > >It's hard to refute your assertion. You're claiming that some future >hypothetical Python implementation will have excellent performance via a JIT. >On top of that you say that you're willing to change the definition of the >

Re: Language mavens: Is there a programming with "if then else ENDIF" syntax?

2009-11-16 Thread Edward A. Falk
In article , Steve Ferg wrote: >I've often thought that a language with this kind of block-free syntax >would be nice and intuitive: > >if then >do stuff >elif then >do stuff >else >do stuff >endif > >Note that

Re: Code for finding the 1000th prime

2009-11-17 Thread Edward A. Falk
In article , mrholtsr wrote: >I am absolutely new to python and barely past beginner in programming. >Also I am not a mathematician. Can some one give me pointers for >finding the 1000th. prime for a course I am taking over the internet >on Introduction to Computer Science and

Re: ANN: a mini-language for encapsulating deep-copy operations on Python data structures

2009-11-18 Thread M.-A. Lemburg
Steve Howell wrote: > During the last few days I have written code in support of a small DDL > language that encapsulates a concise representation of the > manipulations needed to make a deep subcopy of a Python-like data > structure. It is inspired by syntax from mainstream mode

Re: python and netezza

2009-11-23 Thread M.-A. Lemburg
server or the same platform, e.g. both Windows): http://www.egenix.com/products/python/mxODBC/ For multiple-tier setups (client application on a different server or different platform, e.g. Linux and Windows): http://www.egenix.com/products/python/mxODBCConnect/ -- Marc-Andre L

Re: csv and mixed lists of unicode and numbers

2009-11-25 Thread M.-A. Lemburg
Sibylle Koczian wrote: > Hello, > > I want to put data from a database into a tab separated text file. This > looks like a typical application for the csv module, but there is a > snag: the rows I get from the database module (kinterbasdb in this case) > contain unicode object

Re: HTML Parser which allows low-keyed local changes (upon serialization)

2010-02-01 Thread M.-A. Lemburg
typically write the auto-converted HTML files > to a 2nd test folder first, and want use "diff -u ..." to see > human-readable what changed happened - which again is only reasonable if > the original layout is preserved as good as possible ) > > lxml and BeautifulSoup e.g.

<    4   5   6   7   8   9   10   11   12   >