Re: nokia pys60 contacts + calendar

2007-02-03 Thread Torsten
Hi, "Programming with Python for Series 60 Platform" http://eugen.leitl.org/Programming_with_Python.pdf "Python for Series 60 Platform - API Reference" PythonForS60_doc_1_3_17.pdf should answer your questions Torsten -- http://mail.python.org/mailman/listinfo/python-list

Re: log parser design question

2007-02-03 Thread avidfan
On Mon, 29 Jan 2007 23:11:32 -0600, avidfan <[EMAIL PROTECTED]> wrote: >On 28 Jan 2007 21:20:47 -0800, "Paul McGuire" <[EMAIL PROTECTED]> >wrote: > >>On Jan 27, 10:43 pm, avidfan <[EMAIL PROTECTED]> wrote: >>> I need to parse a log file using python and I need some advice/wisdom >>> on the best wa

Re: "President Bush ... you are under arrest" - 911 truth video by Dr Morgan Reynolds, Former Chief Economist under Bush

2007-02-03 Thread Jonathan Curran
dude, please go spam elsewhere. don't post unrelated material here. -- http://mail.python.org/mailman/listinfo/python-list

Re: Decimating Excel files

2007-02-03 Thread Robert Kern
gonzlobo wrote: > No, I don't want to destroy them (funny how the word 'decimate' has > changed definition over the years) :). > > We have a data acquisition program that saves its output to Excel's > .xls format. Unfortunately, the programmer was too stupid to write > files the average user can r

Re: main

2007-02-03 Thread Paddy
On Feb 3, 10:53 pm, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On Sat, 03 Feb 2007 05:51:56 -0300, "Gabriel Genellina" > <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > > > menction that at all. And no one should expect that a beginner would have > > to read section 26.3 on t

Re: Decimating Excel files

2007-02-03 Thread Paddy
On Feb 3, 7:43 pm, gonzlobo <[EMAIL PROTECTED]> wrote: > No, I don't want to destroy them (funny how the word 'decimate' has > changed definition over the years) :). > > We have a data acquisition program that saves its output to Excel's > .xls format. Unfortunately, the programmer was too stupid t

"President Bush ... you are under arrest" - 911 truth video by Dr Morgan Reynolds, Former Chief Economist under Bush

2007-02-03 Thread stj911
You can also save them by right clicking the links and saving them as flv files and download a free flv player. google is your best friend. "Bush Administration Insider Says U.S. Government Behind 911.flv" "http://ash-v31.ash.youtube.com/get_video?video_id=HkpOsUmp-9w"; <--- key video "911 Truth

Re: Python does not play well with others

2007-02-03 Thread Kirk Sluder
In article <[EMAIL PROTECTED]>, "Paul Boddie" <[EMAIL PROTECTED]> wrote: > Quite. I imagine that most GNU/Linux distributions (and various BSDs) > provide at least some version of MySQLdb as a package. Bingo, I've rarely installed python from python.org, or other libraries from sourceforge, etc.

MozillaCookieJar doesn't work as expect

2007-02-03 Thread davihigh
OS: WinXP, Python 2.4 latest version I found it doesn't actually load cookies from the exist cookies.txt. Instead, it generate a new one when visit that url. Who can help me check what's problem in following code? Many thanks in advance! cj = cookielib.MozillaCookieJar() cj.load("d:\\temp\\cooki

Re: Python does not play well with others

2007-02-03 Thread Diez B. Roggisch
Paul Rubin schrieb: > "Diez B. Roggisch" <[EMAIL PROTECTED]> writes: >> And they certainly require special treatment like putting them in the >> classpath, setting up the project directory and the like - no simple >> import will work out of the box, as it would witch python standard lib >> drivers.

Re: Decimating Excel files

2007-02-03 Thread gonzlobo
Yeah, it definitely an Excel file (so says Kate). > Is the file format really native Excel, or is a CSV or TSV file? I've > seen apps (one is a data acquisition program, as a matter of fact) > that create "Excel" files that are just CSV or TSV files. Try opening > the file with a text editor to se

Re: Decimating Excel files

2007-02-03 Thread Phil Schmidt
gonzlobo wrote: > We have a data acquisition program that saves its output to Excel's > .xls format. Unfortunately, the programmer was too stupid to write > files the average user can read. > > I'd like some advice on how to go about: > 1. Reading a large Excel file and chop it into many Excel fil

Re: Python does not play well with others

2007-02-03 Thread Paul Rubin
[EMAIL PROTECTED] writes: > Paul> Why would I expect your employer to solve my problems anyway, even > Paul> if they relate to some module that you actually use? > > Your reasoning seems to be that Python should contain the functional union > of everything at least in Java and PHP if not P

Re: Debugging SocketServer.ThreadingTCPServer

2007-02-03 Thread R. Bernstein
"Stuart D. Gathman" <[EMAIL PROTECTED]> writes: > On Tue, 16 Jan 2007 09:11:38 -0500, Jean-Paul Calderone wrote: > > > On Tue, 16 Jan 2007 00:23:35 -0500, "Stuart D. Gathman" > > <[EMAIL PROTECTED]> wrote: > >>I have a ThreadingTCPServer application (pygossip, part of > >>http://sourceforge.net/p

Re: Python does not play well with others

2007-02-03 Thread Paul Rubin
"Paul Boddie" <[EMAIL PROTECTED]> writes: > Python should only incorporate functionality in order to offer a > coherent experience (where the omission of functionality would > otherwise lead to a flawed experience). For example, having support > for SSL in the socket module offers a coherent experi

Re: Python does not play well with others

2007-02-03 Thread Paul Rubin
Dennis Lee Bieber <[EMAIL PROTECTED]> writes: > > languages do. PHP hosting providers don't have to install a separate > > PHP to MySQL interface gizmo as far as I know. > > Really? Then why does the MySQL AB download site at > http://dev.mysql.com/downloads/connector/php/ list both a > "Co

Re: Python does not play well with others

2007-02-03 Thread Paul Rubin
[EMAIL PROTECTED] writes: > Paul> Yeah well, the Wxpython, PyQt, PyGTK etc. people may feel slighted > Paul> that Tkinter got included and their stuff didn't, and the Eric, > Paul> Eclipse, Komodo etc. people may feel slighted that IDLE got > Paul> included, but that doesn't stop Tk

Parser module

2007-02-03 Thread Sulsa
Is there some way to tell parser module (parser.suite function) not to stop parsing after it have found some syntax error but to proceed with parsing and construct the abstract syntax tree for rest of the code. -- http://mail.python.org/mailman/listinfo/python-list

Modified BitTorrent site

2007-02-03 Thread Gerard White
London based start up web services company. Looking for programmer(s) to build a modified BitTorrent e-commerce site. Knowledge of Python, PHP5, JavaScript, AJAX, DHTML Java Applets and MySQL. P2P framework with modified version of BitTorrent client, modern website "sales platform" interface, m

[OT] main

2007-02-03 Thread Steven Bethard
[EMAIL PROTECTED] wrote: > def main(argv): > try: > optlist, args = getopt.getopt(argv[1:], 'hvo:D:', ['help', > 'verbose']) > except getopt.GetoptError, msg: > sys.stderr.write("preprocess: error: %s" % msg) > sys.stderr.write("See 'preprocess --help'.\n") >

Re: PyGUI show_text()

2007-02-03 Thread greg
Arnd wrote: > I needed some finer text-positioning on a canvas (ie wanted to center > a string wrt a point, something show_text() doesn't provide) Fonts have ascent, descent, height and line_height attributes, and a width() method for measuring the width of a string. You should be able to find out

Re: confused about resizing array in Python

2007-02-03 Thread Dongsheng Ruan
This seems to be clever to use reference for list. Is it unique to Python? How about the traditional programming languages like C, Pascal or C++? "Roel Schroeven" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Dongsheng Ruan schreef: >> "Roel Schroeven" <[EMAIL PROTECTED]> wrote

Re: Determining encoding of a file

2007-02-03 Thread Tony Houghton
In <[EMAIL PROTECTED]>, Ben Finney <[EMAIL PROTECTED]> wrote: > Tony Houghton <[EMAIL PROTECTED]> writes: > >> In Linux it's possible for filesystems to have a different encoding >> from the system's setting. Given a filename, is there a (preferably) >> portable way to determine its encoding? > >

Re: Is Python Right for Me?

2007-02-03 Thread Tony Houghton
In <[EMAIL PROTECTED]>, Stuart D. Gathman <[EMAIL PROTECTED]> wrote: > On Fri, 02 Feb 2007 15:09:20 -0500, Mister Newbie wrote: > >> I want to make small, 2D games. I have no programming experience. Is >> Python a good choice? > > Definitely. I teach a class for 7th to 12th grade where I use this

Re: Python does not play well with others

2007-02-03 Thread Paul Boddie
Paul Rubin wrote: > Ben Finney <[EMAIL PROTECTED]> writes: > > > Since Python is being touted as good for web apps as a competitor to > > > PHP > > > > Python is being touted as a good language for *many* purposes, not > > just web applications. Python is also a "competitor" to Java, to Ruby, > > t

Re: Decimating Excel files

2007-02-03 Thread greg
gonzlobo wrote: > 2. Decimate an Excel file & write... say every other line (user > selectable)... to a new file. Every other line would be bicimating or something, wouldn't it? -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: confused about resizing array in Python

2007-02-03 Thread Roel Schroeven
Dongsheng Ruan schreef: > "Roel Schroeven" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> Ruan schreef: >>> Then how about Python's list? >>> >>> What is done exactly when list.append is executed? >>> >>> For list, is there another larger list initialized and the contents from >

Re: result of os.times() is different with 'time' command

2007-02-03 Thread aspineux
Your analysis looks great, maybe the good arguments to report a bug ? On 3 fév, 04:27, [EMAIL PROTECTED] (Douglas Wells) wrote: > [various posting problems corrected and response interspersed in > previous post for purposes of coherent response] > > In article <[EMAIL PROTECTED]>, > > > > "aspin

Re: Decimating Excel files

2007-02-03 Thread gonzlobo
Thanks, but I was looking for a python solution. > Excel has VBA and can do this easily. One thing about > Excel's VBA is that it already understands Excel. -- http://mail.python.org/mailman/listinfo/python-list

Re: asyncore DoS vulnerability

2007-02-03 Thread aspineux
On 2 fév, 16:32, "billie" <[EMAIL PROTECTED]> wrote: > >> Why does this exception isn't handled inside asyncore.py? > > To do what ? To raise a custom asyncore error ? > > asyncore aims to be a framework, right? > I think that when select() limit is reached asyncore should just drop > other connect

Re: confused about resizing array in Python

2007-02-03 Thread Dongsheng Ruan
You mentioned "it doubles in size". Are you saying that a new double sized array is allocated and the contents of the old list is copied there? Then the old list is freed from memory? It seems to be what is called amortized constant. Say the list size is 100, before it is fully used, the append

Re: Python does not play well with others

2007-02-03 Thread Paul Boddie
Chris Mellon wrote: > On 02 Feb 2007 11:10:04 -0800, Paul Rubin > <"http://phr.cx"@nospam.invalid> wrote: > > "Paul Boddie" <[EMAIL PROTECTED]> writes: > > > If the hosting provider doesn't want to install MySQLdb then it may > > > not be a technical issue - perhaps they just can't be bothered to >

Re: .pth configuration method not working

2007-02-03 Thread John Machin
On Feb 4, 10:03 am, "Mark" <[EMAIL PROTECTED]> wrote: > Sys.path doesn't recognize any directories that I add using the .pth > method. I'm running Windows XP if that helps diagnose the problem. > > Here is what I've done: > > The original output of sys.path: > ['C:\\Python25\\Lib\\idlelib', 'C:\\

Re: Is Python Right for Me?

2007-02-03 Thread Stuart D. Gathman
On Fri, 02 Feb 2007 15:09:20 -0500, Mister Newbie wrote: > I want to make small, 2D games. I have no programming experience. Is > Python a good choice? Definitely. I teach a class for 7th to 12th grade where I use this tutorial to introduce programming: http://www.livewires.org.uk/python/ http:

PyGUI show_text()

2007-02-03 Thread Arnd
Heya, any PyGUI users out there? I needed some finer text-positioning on a canvas (ie wanted to center a string wrt a point, something show_text() doesn't provide) So I looked into the sources and found all information, eg the dimensions of the surrounding rectangle are given by mycanvas._font._g

Re: CTypes

2007-02-03 Thread [EMAIL PROTECTED]
I forgot to mention I am running Windows 98SE. -- http://mail.python.org/mailman/listinfo/python-list

Re: Vim scripting with python

2007-02-03 Thread Stuart D. Gathman
On Sat, 03 Feb 2007 05:02:54 -0800, Tool69 wrote: > Does anyone have any advice, and more genraly how to script Vim with > Python ? :py import sys :py print sys.version :help :py > I know I can put some python functions inside my vimrc file like > this : > > function! My_function() > python <<

.pth configuration method not working

2007-02-03 Thread Mark
Sys.path doesn't recognize any directories that I add using the .pth method. I'm running Windows XP if that helps diagnose the problem. Here is what I've done: The original output of sys.path: ['C:\\Python25\\Lib\\idlelib', 'C:\\WINDOWS\\system32\\python25.zip', 'C:\\Python25\\DLLs', 'C:\\Pytho

Re: Debugging SocketServer.ThreadingTCPServer

2007-02-03 Thread Stuart D. Gathman
On Tue, 16 Jan 2007 09:11:38 -0500, Jean-Paul Calderone wrote: > On Tue, 16 Jan 2007 00:23:35 -0500, "Stuart D. Gathman" > <[EMAIL PROTECTED]> wrote: >>I have a ThreadingTCPServer application (pygossip, part of >>http://sourceforge.net/projects/pymilter). It mostly runs well, but >>occasionally g

Definitions of editor and IDE?

2007-02-03 Thread Dick Moores
Are there generally accepted definitions of "editor" and "IDE". Is there a clear-cut distinction between them? I've been looking at the lists of each at python.org, < http://wiki.python.org/moin/PythonEditors>  and < http://wiki.python.org/moin/IntegratedDevelopmentEnvironments>. Many programs ar

Re: confused about resizing array in Python

2007-02-03 Thread Roel Schroeven
Ruan schreef: > "Roel Schroeven" <[EMAIL PROTECTED]> wrote: >> Ruan schreef: >>> My confusion comes from the following piece of code: >>> >>> memo = {1:1, 2:1} >>> def fib_memo(n): >>> global memo >>> if not n in memo: >>> memo[n] = fib_memo(n-1) + fib_memo(n-2) >>> return memo[n] >>> >>> I used t

Re: confused about resizing array in Python

2007-02-03 Thread John Machin
On Feb 4, 7:41 am, "Ruan" <[EMAIL PROTECTED]> wrote: > Then how about Python's list? > > What is done exactly when list.append is executed? > > For list, is there another larger list initialized and the contents from the > old list is copied to it together with the new appended list? > Qi ren you

Re: Python does not play well with others

2007-02-03 Thread Neil Hodgson
Paul Rubin: > I thought J2SE comes with JSP. Maybe that's not a "framework" in the > fancy sense though. J2SE does not include JSP. Neil -- http://mail.python.org/mailman/listinfo/python-list

Re: Decimating Excel files

2007-02-03 Thread [EMAIL PROTECTED]
On Feb 3, 1:43?pm, gonzlobo <[EMAIL PROTECTED]> wrote: > No, I don't want to destroy them (funny how the word 'decimate' has > changed definition over the years) :). > > We have a data acquisition program that saves its output to Excel's > .xls format. Unfortunately, the programmer was too stupid t

Re: Python does not play well with others

2007-02-03 Thread skip
Jorge> So we should get a better egg support. Then it would all be just Jorge> a matter of easy_install . I'm all in favor of that... Skip -- http://mail.python.org/mailman/listinfo/python-list

Re: Python does not play well with others

2007-02-03 Thread skip
Paul> Yeah well, the Wxpython, PyQt, PyGTK etc. people may feel slighted Paul> that Tkinter got included and their stuff didn't, and the Eric, Paul> Eclipse, Komodo etc. people may feel slighted that IDLE got Paul> included, but that doesn't stop Tkinter and IDLE from being useful

Re: raise or not to raise [Newbie]

2007-02-03 Thread Robert Kern
Jacol wrote: > I understand that author generated exception and than extracted the name of > function from the exeption. But is any sens in using exeptions service if > we have smthing simpler: just print for example? In my opinion no, it > doesn't make sens. You are correct. The author of that co

Re: Python does not play well with others

2007-02-03 Thread skip
Paul> Why would I expect your employer to solve my problems anyway, even Paul> if they relate to some module that you actually use? Your reasoning seems to be that Python should contain the functional union of everything at least in Java and PHP if not Perl, Ruby and Tcl as well. Free soft

Re: raise or not to raise [Newbie]

2007-02-03 Thread Paddy
On Feb 3, 9:07 pm, Jacol <[EMAIL PROTECTED]> wrote: > I understand that author generated exception and than extracted the name of > function from the exeption. But is any sens in using exeptions service if > we have smthing simpler: just print for example? In my opinion no, it > doesn't make sens.

Re: Python does not play well with others

2007-02-03 Thread skip
Szabolcs> seriously, python is a programming language and not a flee Szabolcs> market (so don't compare it to java or php) If it grew to be as bloated as Java it might well become a "flee" market. ;-) Skip -- http://mail.python.org/mailman/listinfo/python-list

Re: raise or not to raise [Newbie]

2007-02-03 Thread Jacol
I understand that author generated exception and than extracted the name of function from the exeption. But is any sens in using exeptions service if we have smthing simpler: just print for example? In my opinion no, it doesn't make sens. Jacek -- http://mail.python.org/mailman/listinfo/python-li

Re: Determining encoding of a file

2007-02-03 Thread Ben Finney
Tony Houghton <[EMAIL PROTECTED]> writes: > In Linux it's possible for filesystems to have a different encoding > from the system's setting. Given a filename, is there a (preferably) > portable way to determine its encoding? If there were, PEP 263 would not be necessary. http://www.python.or

raise or not to raise [Newbie]

2007-02-03 Thread Jacol
Hello everybody! I found this: http://mail.python.org/pipermail/python-list/1999-July/006344.html My question concernings "callerFunc" and is more general what is difference between: try: raise "xyz" except "xyz": print "This is smthing" and simpl

Re: Where Does One Begin?

2007-02-03 Thread [EMAIL PROTECTED]
On Feb 3, 2:16 am, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > In <[EMAIL PROTECTED]>, > > [EMAIL PROTECTED] wrote: > > pygame is probily a good program to start with as long as you keep in > > mind that it is possible that up to 50% of the p.c. laptops may not be > > able to run it. > >

Re: confused about resizing array in Python

2007-02-03 Thread Ruan
Then how about Python's list? What is done exactly when list.append is executed? For list, is there another larger list initialized and the contents from the old list is copied to it together with the new appended list? "Roel Schroeven" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTE

ctypes.com.IUnknown

2007-02-03 Thread Robin Becker
I find that ctypes.com has disappeared from the ctypes extension bundled with Python 2.5. I think I only need the IUnknown, I was playing with building a dialog using venster, but it needs IUnknown, STDMETHOD, HRESULT, GUID from ctypes.com. Any ideas what should replace those or is venster now

wave

2007-02-03 Thread Silver Rock
hallo, supose i´ve opened a sound with the wave module: import wave sound=wave.open(filename,'rb') now this is strange: sound.getnframes() != len(sound.readframes(sound.getnframes()) True Why so? thanks in advance, Claire -- http://mail.python.org/mailman/listinfo/python-list

Re: asyncore DoS vulnerability

2007-02-03 Thread billie
On 2 Feb, 17:09, "Chris Mellon" <[EMAIL PROTECTED]> wrote: > Thats like asking why you should have to move your fingers to type or > why you should have to eat food in order to not starve. Windows is > placing a limit of 512 descriptors per process. Call Microsoft if you > want to go over that. ?

Re: Determining encoding of a file

2007-02-03 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Tony Houghton wrote: > In Linux it's possible for filesystems to have a different encoding from > the system's setting. Given a filename, is there a (preferably) portable > way to determine its encoding? No. Ciao, Marc 'BlackJack' Rintsch -- http://mail.python.o

SndObj-Pysonic-omde-MusicKit-Jack-Alsa

2007-02-03 Thread Silver Rock
Greetings, I've been studiyng python and some things are not that clear: 1- Is python too slow to efectivelly communicate with Jack? PyJack did not seem to work right, so i tried PySndObj's JackIO object. It did not behave as good as with connection with ALSA. (btw, I could not acess lots of ob

Re: PYTHONPATH or any other way to set seachpath (winXP) ?

2007-02-03 Thread Sick Monkey
If you need to extend your PATH variable, I have used this in the past. ~~ def AddSysPath(new_path): new_path = os.path.abspath(new_path) do = -1 if os.path.exists(new_path): do = 1 # check against all paths currently available

Re: confused about resizing array in Python

2007-02-03 Thread Roel Schroeven
Ruan schreef: > My confusion comes from the following piece of code: > > memo = {1:1, 2:1} > def fib_memo(n): > global memo > if not n in memo: > memo[n] = fib_memo(n-1) + fib_memo(n-2) > return memo[n] > > I used to think that the time complexity for this code is O(n) due to its > use of memoiz

Determining encoding of a file

2007-02-03 Thread Tony Houghton
In Linux it's possible for filesystems to have a different encoding from the system's setting. Given a filename, is there a (preferably) portable way to determine its encoding? -- TH * http://www.realh.co.uk -- http://mail.python.org/mailman/listinfo/python-list

Decimating Excel files

2007-02-03 Thread gonzlobo
No, I don't want to destroy them (funny how the word 'decimate' has changed definition over the years) :). We have a data acquisition program that saves its output to Excel's .xls format. Unfortunately, the programmer was too stupid to write files the average user can read. I'd like some advice o

Re: nokia pys60 contacts + calendar

2007-02-03 Thread worlman385
On 3 Feb 2007 02:38:02 -0800, "cyberco" <[EMAIL PROTECTED]> wrote: >You can most likely find an answer on Nokia's Python forum: >http://discussion.forum.nokia.com/forum/forumdisplay.php?f=102 > >And if there's no answer there you should post the question there :) cyberco, do you knwo the answer?

confused about resizing array in Python

2007-02-03 Thread Ruan
My confusion comes from the following piece of code: memo = {1:1, 2:1} def fib_memo(n): global memo if not n in memo: memo[n] = fib_memo(n-1) + fib_memo(n-2) return memo[n] I used to think that the time complexity for this code is O(n) due to its use of memoization. However, I was told recently

Re: Create a cookie with cookielib

2007-02-03 Thread Matthew Franz
I'm not sure what you mean be forge, but if you mean set an arbitrary cookie manually (vs. one that was provided by the server). just use add_header() in http://docs.python.org/lib/request-objects.html It may be possible to use CookieJar for this purpose but I've only used it for manipulating coo

Re: Jython

2007-02-03 Thread bearophileHUGS
[EMAIL PROTECTED]: > Files aren't lists and thus don't have the functions for iteration. > Try: > def go(): > for line in open("bobo.txt", "r").readlines(): > print line > go() CPython 2.1 has xreadlines, maybe Jython has it too. Bye, bearophile -- http://mail.python.org

Re: Checking default arguments

2007-02-03 Thread George Sakkis
On Feb 2, 1:30 pm, [EMAIL PROTECTED] (Igor V. Rafienko) wrote: > Hi, > > I was wondering whether it was possible to find out which parameter > value is being used: the default argument or the user-supplied one. > That is: > > def foo(x, y="bar"): > # how to figure out whether the value of y is

Re: strange test for None

2007-02-03 Thread karoly.kiripolszky
the tested variable was really a string containing "None" instead of simply None. this is the first time i ran into this error message confusion. :) thanks for the help! On Feb 3, 6:29 pm, Michael Bentley <[EMAIL PROTECTED]> wrote: > On Feb 3, 2007, at 7:47 AM, karoly.kiripolszky wrote: > > > in

Re: Python does not play well with others

2007-02-03 Thread Jorge Godoy
Paul Rubin writes: > "Diez B. Roggisch" <[EMAIL PROTECTED]> writes: >> And they certainly require special treatment like putting them in the >> classpath, setting up the project directory and the like - no simple >> import will work out of the box, as it would witch pyth

PYTHONPATH or any other way to set seachpath (winXP) ?

2007-02-03 Thread Stef Mientki
Is it possible to change the searchpath for modules on the flight, under winXP ? Most preferred is some command to extend the searchpath. (the environment variable PYTHONPATH needs a reboot) thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: How can I access data from MS Access?

2007-02-03 Thread Peter Otten
[EMAIL PROTECTED] wrote: > On Feb 3, 10:27 pm, Bruno Desthuilliers >> "doesn't work" is the worst possible description of a problem. Did it >> print out some insults in a foreign language ? wipe out your HD ? Else ? > I havn't said "doesn't work", I rather doesn't seem to work. Bruno, admit th

Re: strange test for None

2007-02-03 Thread Michael Bentley
On Feb 3, 2007, at 7:47 AM, karoly.kiripolszky wrote: > in my server i use the following piece of code: > > ims = self.headers["if-modified-since"] > if ims != None: > t = int(ims) > > and i'm always getting the following error: > > t = int(ims) > Value

Re: How to suppress "DeprecationWarning: Old style callback, use cb_func(ok, store) instead"

2007-02-03 Thread John Nagle
Gabriel Genellina wrote: > En Sat, 03 Feb 2007 06:12:33 -0300, Peter Otten <[EMAIL PROTECTED]> > escribió: > >> John Nagle wrote: >> >>>How do I suppress "DeprecationWarning: Old style callback, use >>>cb_func(ok, >>> store) instead". A library is triggering this message, the library is

Re: How can I access data from MS Access?

2007-02-03 Thread Finger . Octopus
On Feb 3, 10:27 pm, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] a écrit :> How to access data from MS Access? I tried ADOdb > for Python but it > > doesn't seems to work. > > > Even the official examples dont work, like this one: > > > import adodb > > conn = adodb.NewADOCon

Re: Python does not play well with others

2007-02-03 Thread Paul Rubin
"Diez B. Roggisch" <[EMAIL PROTECTED]> writes: > And they certainly require special treatment like putting them in the > classpath, setting up the project directory and the like - no simple > import will work out of the box, as it would witch python standard lib > drivers. Well, that's nowhere nea

Re: Python does not play well with others

2007-02-03 Thread Kirk Sluder
In article <[EMAIL PROTECTED]>, Paul Rubin wrote: > [EMAIL PROTECTED] writes: > > Where would you stop? At the boundaries of your particular application > > interests? > > If the Pythonistas are serious > about such a claim, competitive analysis says they should be wi

Re: Python does not play well with others

2007-02-03 Thread Diez B. Roggisch
Paul Rubin schrieb: > [EMAIL PROTECTED] writes: >> I can't speak authoritatively for either PHP or J2SE, but I suspect the >> latter at least has some signifiant monetary support (if not outright gobs >> of human resources) from Sun. PHP seems to have a more limited application >> domain (web apps

Re: How can I access data from MS Access?

2007-02-03 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : > How to access data from MS Access? I tried ADOdb for Python but it > doesn't seems to work. > > Even the official examples dont work, like this one: > > import adodb > conn = adodb.NewADOConnection('access') # mxodbc required > dsn = "Driver={Microsoft Access Driver

Re: Python does not play well with others

2007-02-03 Thread Diez B. Roggisch
Paul Rubin schrieb: > "Diez B. Roggisch" <[EMAIL PROTECTED]> writes: >> This is simply not true. J2SE doesn't include a web-framework. J2EE >> does, but it's a separate multi-megabyte-download. > > I thought J2SE comes with JSP. Maybe that's not a "framework" in the > fancy sense though. JSP is

Re: Can a jet fuel/hydrocarbon fire collapse a steel structure? An experiment.

2007-02-03 Thread Jonathan Curran
I've been seeing this topic for a day or two so far. Why don't we stick to discussing python on this mailing list? I'm sure there are other mailing lists specifically for discussing chemistry. =\ - Jonathan -- http://mail.python.org/mailman/listinfo/python-list

Re: LDAP/LDIF Parsing

2007-02-03 Thread Bruno Desthuilliers
Hallvard B Furuseth a écrit : > Bruno Desthuilliers writes: > >>Hallvard B Furuseth a écrit : >> else: # all LDAP attribs are multivalued by default, # even when the schema says they are monovalued if len(data) == 1: return data[0]

Re: Jython

2007-02-03 Thread Peter Otten
Boris Ozegovic wrote: > Boris Ozegovic wrote: > >> [EMAIL PROTECTED] wrote: >> >>> Files aren't lists and thus don't have the functions for iteration. >> >> They do have iterator: >> >> C:\Documents and Settings\Silovana Vjeverica\Desktop>python FileReader.py >> 'import site' failed; use -v fo

Re: HELP NEEDED ... Regd. Regular expressions PyQt

2007-02-03 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, vishal wrote: > I am trying to work out a regular expression in a PyQt environment for > time in hh:mm:ss format. Any suggestions? Maybe don't use a re for something that simple. Splitting at ``:`` characters, converting to `int` and checking the value ranges isn't that h

Re: Jython

2007-02-03 Thread Boris Ozegovic
[EMAIL PROTECTED] wrote: > Files aren't lists and thus don't have the functions for iteration. > > Try: > > def go(): > for line in open("bobo.txt", "r").readlines(): > print line > > go() For example, you can do even this: import sys for line in sys.stdin: pr

Re: from __future__ import absolute_import ?

2007-02-03 Thread Ron Adam
Peter Otten wrote: > Ron Adam wrote: > >> >> work >> | >> |- foo.py# print "foo not in bar" >> | >> `- bar >> | >> |- __init__.py >> | >> |- foo.py# print "foo in bar" >> | >> |- absolute.py # from __futer__ import absolute_import >>

Re: Python does not play well with others

2007-02-03 Thread Kirk Sluder
In article <[EMAIL PROTECTED]>, Paul Rubin wrote: > I do think the core should have more stuff than it does, so that its > functionality can be on a par with competing language distros like > J2SE and PHP. Both of those distros include database connectvity > modules an

Re: Jython

2007-02-03 Thread Boris Ozegovic
Boris Ozegovic wrote: > [EMAIL PROTECTED] wrote: > >> Files aren't lists and thus don't have the functions for iteration. > > They do have iterator: > > C:\Documents and Settings\Silovana Vjeverica\Desktop>python FileReader.py > 'import site' failed; use -v for traceback > boris ozegovic > vedr

Re: Jython

2007-02-03 Thread Boris Ozegovic
[EMAIL PROTECTED] wrote: > Files aren't lists and thus don't have the functions for iteration. They do have iterator: C:\Documents and Settings\Silovana Vjeverica\Desktop>python FileReader.py 'import site' failed; use -v for traceback boris ozegovic vedran ozegovic -- "A mi smo stranci u vlast

Re: Jython

2007-02-03 Thread gregturn
On Feb 3, 11:21 am, Boris Ozegovic <[EMAIL PROTECTED]> wrote: > Hi > > Why this doesn't work: > > def go(): > for line in open("bobo.txt", "r"): > print line > > go() > > python FileReader.py: everything ok > jython FileReader.py: > > Traceback (innermost last): > File "Fi

Jython

2007-02-03 Thread Boris Ozegovic
Hi Why this doesn't work: def go(): for line in open("bobo.txt", "r"): print line go() python FileReader.py: everything ok jython FileReader.py: Traceback (innermost last): File "FileReader.py", line 6 File "FileReader.py", line 3 AttributeError: __getitem__ -- "A

Message ("Your message dated Sat, 3 Feb 2007 10:40:10 -0500...")

2007-02-03 Thread SLACK Incorporated LISTSERV Server (14.3)
Your message dated Sat, 3 Feb 2007 10:40:10 -0500 with no subject has been submitted to the moderator of the IDN-L list: [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: Python does not play well with others

2007-02-03 Thread Paul Rubin
[EMAIL PROTECTED] writes: > iceberg.) The Pylons, web.py, Karrigell, Webware and TurboGears people > might (rightly) feel slighted if you include Django but not their > frameworks. Yeah well, the Wxpython, PyQt, PyGTK etc. people may feel slighted that Tkinter got included and their stuff didn't,

CTypes

2007-02-03 Thread [EMAIL PROTECTED]
I'm trying to install PyWinAuto for Python 2.4. It said that one of the required libraries that I need to install would be CTypes. So I head over to CTypes's SourceForge page and I installed CTypes for Python 2.4. I go to run the PyWinAuto installation file and it throws up this error: C:\WINDOWS\

Re: Python does not play well with others

2007-02-03 Thread Paul Rubin
[EMAIL PROTECTED] writes: > I can't speak authoritatively for either PHP or J2SE, but I suspect the > latter at least has some signifiant monetary support (if not outright gobs > of human resources) from Sun. PHP seems to have a more limited application > domain (web apps) from which it has expand

Re: Python does not play well with others

2007-02-03 Thread Paul Rubin
"Diez B. Roggisch" <[EMAIL PROTECTED]> writes: > This is simply not true. J2SE doesn't include a web-framework. J2EE > does, but it's a separate multi-megabyte-download. I thought J2SE comes with JSP. Maybe that's not a "framework" in the fancy sense though. > PHP _is_ a web centered language, s

Re: Python does not play well with others

2007-02-03 Thread Paul Rubin
Ben Finney <[EMAIL PROTECTED]> writes: > > Since Python is being touted as good for web apps as a competitor to > > PHP > > Python is being touted as a good language for *many* purposes, not > just web applications. Python is also a "competitor" to Java, to Ruby, > to Perl, to many other languages

Re: compound statement from C "?:"

2007-02-03 Thread Peter Otten
Jussi Salmela wrote: > It's naturally clear that a combination of if-elifs-else is more > adaptable to different situations, but the OP's question was: > > I would like to do the equivalent if python of the C line: > printf("I saw %d car%s\n", n, n != 1 ? "s" : "") And my answer, triggered by yo

How can I access data from MS Access?

2007-02-03 Thread Finger . Octopus
How to access data from MS Access? I tried ADOdb for Python but it doesn't seems to work. Even the official examples dont work, like this one: import adodb conn = adodb.NewADOConnection('access') # mxodbc required dsn = "Driver={Microsoft Access Driver (*.mdb)};Dbq=d:\\inetpub\\adodb\ \northwind.

  1   2   >