Python compiled on Windows

2007-02-04 Thread Franz Steinhaeusler
Hello, I'm only curious. Why is Python and most extension (also wxPython) not built using an open source compiler like gcc or g++ on Windows? I'm always wondering, why Microsoft is still supported in that way, using VC++ 7.1, if I'm not wrong. Ok, maybe the compiled assembler code could be bett

subprocess stdin encoding

2007-02-04 Thread yc
I have a encoding problem during using of subprocess. The input is a string with UTF-8 encoding. the code is: tokenize = subprocess.Popen(tok_command,stdin=subprocess.PIPE,stdout=subprocess.PIPE,close_fds=True,shell=True) (tokenized_text,errs) = tokenize.communicate(t) the error is: File "/us

Re: sgmllib bug in Python 2.5, works in 2.4.

2007-02-04 Thread Stefan Rank
on 05.02.2007 03:49 John Nagle said the following: > (Was prevously posted as a followup to something else by accident.) > > I'm running a website page through BeautifulSoup. It parses OK > with Python 2.4, but Python 2.5 fails with an exception: > > Traceback (most recent call last): >

Re: COM makepy util finds multiple versions of my COM object

2007-02-04 Thread Tim Roberts
[EMAIL PROTECTED] wrote: > >I have a problem where an earlier version of my Com object is being >used by makepy for early binding. In makepy I see - > >MyCom (1.0) >MyCom (1.0) >MyCom (2.0) Is your MyCom object also in Python? The only way this can happen is if you are generating different GUIDs

Re: problems loading modules

2007-02-04 Thread Ganesan Rajagopal
> Frank <[EMAIL PROTECTED]> writes: import random from numpy import * print random.randrange(10) > Traceback (most recent call last): > File "", line 1, in ? > AttributeError: 'module' object has no attribute 'randrange' > Here it does not work. Here's a clue. =

Re: problems loading modules

2007-02-04 Thread Ben Finney
"Frank" <[EMAIL PROTECTED]> writes: > >>> import random > >>> print random.randrange(10) > 8 > >>> > > Everything is fine. > > >>> import random > >>> from numpy import * > >>> > >>> print random.randrange(10) > Traceback (most recent call last): > File "", line 1, in ? > AttributeError: 'module'

Re: problems loading modules

2007-02-04 Thread Robert Kern
Frank wrote: > Hi, > > I have the following weird behavior when I load modules: > > import random print random.randrange(10) > 8 > > Everything is fine. > import random from numpy import * print random.randrange(10) > Traceback (most recent call last): > File "",

problems loading modules

2007-02-04 Thread Frank
Hi, I have the following weird behavior when I load modules: >>> import random >>> print random.randrange(10) 8 >>> Everything is fine. >>> import random >>> from numpy import * >>> >>> print random.randrange(10) Traceback (most recent call last): File "", line 1, in ? AttributeError: 'module

Re: Parallel Python

2007-02-04 Thread parallelpython
On Jan 12, 11:52 am, Neal Becker <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Has anybody tried to runparallelpythonapplications? > > It appears that if your application is computation-bound using 'thread' > > or 'threading' modules will not get you any speedup. That is because > >pyth

Re: Recursive zipping of Directories in Windows

2007-02-04 Thread Josh Bloom
Hi Jandre, Your code is treating the directory as a file and trying to open it and read its bytes to zip them. You'll need to differentiate between files and directories. You'll need to check out the Zip module to see how it expects files that should be nested within folders. I believe you'll ne

Re: Decimating Excel files

2007-02-04 Thread gonzlobo
Excellent suggestion. I'm going with xlrd! Thanks > I've had good luck with xlrd. It does not require using COM, Excel, or even > Windows! > http://www.lexicon.net/sjmachin/xlrd.htm > Robert Kern -- http://mail.python.org/mailman/listinfo/python-list

Re: Parameter lists

2007-02-04 Thread Steven D'Aprano
On Sun, 04 Feb 2007 17:45:04 +0100, Mizipzor wrote: > Consider the following snippet of code: > > == > > class Stats: > def __init__(self, speed, maxHp, armor, strength, attackSpeed, imagePath): > self.speed = speed > self.maxHp = maxHp > self.

Weekly Python Patch/Bug Summary

2007-02-04 Thread Kurt B. Kaiser
Patch / Bug Summary ___ Patches : 423 open ( +2) / 3553 closed ( +4) / 3976 total ( +6) Bugs: 963 open (+20) / 6479 closed ( +8) / 7442 total (+28) RFE : 260 open ( +0) / 250 closed ( +0) / 510 total ( +0) New / Reopened Patches __ ConfigPar

Re: Missing member

2007-02-04 Thread Paul McGuire
On Feb 4, 4:45 pm, "Mizipzor" <[EMAIL PROTECTED]> wrote: > I have some troubles with a member variable that seems to be missing > in a class. In short, heres what I do; class A is the parent class, B > inherits from A and C inherits from B (hope I used the right words > there). Now, I create an ins

sgmllib bug in Python 2.5, works in 2.4.

2007-02-04 Thread John Nagle
(Was prevously posted as a followup to something else by accident.) I'm running a website page through BeautifulSoup. It parses OK with Python 2.4, but Python 2.5 fails with an exception: Traceback (most recent call last): File "./sitetruth/InfoSitePage.py", line 268, in httpfetch

Re: Return images with matplotlib?

2007-02-04 Thread Istvan Albert
On Feb 4, 8:18 pm, Jan Danielsson <[EMAIL PROTECTED]> wrote: > def barchart(req, params): >some_format = matplotlib.generate_fancy_graph(params) >png_buf = make_png_buffer(some_format) >return png_buf > >Is this possible? If so -- how? savefig does that. You can save to a file nam

Return images with matplotlib?

2007-02-04 Thread Jan Danielsson
Hello all, I have written a program which takes some data from a postgresql database, and via mod_python outputs it as tables on a web site. Now I would like to present these tables as graphs, which matplotlib can do. But in order to properly display these graphs on the web page, I need to re

Re: Python does not play well with others

2007-02-04 Thread Graham Dumpleton
On Feb 5, 9:45 am, John Nagle <[EMAIL PROTECTED]> wrote: > Graham Dumpleton wrote: > > On Feb 4, 1:05 pm, Paul Rubin wrote: > > >>"Paul Boddie" <[EMAIL PROTECTED]> writes: > > >>>Probably the biggest inhibitor, as far as I can see, has been the > >>>server technology chos

Re: It is good to blow up a marketplace full of people buying and selling food

2007-02-04 Thread Bob Kolker
Frank Arthur wrote: > > Suicide truck bomber kills at least 130 in Baghdad > By Tina Susman, Times Staff Writer > 11:23 AM PST, February 3, 2007 The sound of the exploding bomb is the Muslim Call to Prayer. Allah hu'Akbar. Bob Kolker -- http://mail.python.org/mailman/listinfo/python-list

Re: "Subscribing" to topics?

2007-02-04 Thread Kirk Sluder
In article <[EMAIL PROTECTED]>, "Mizipzor" <[EMAIL PROTECTED]> wrote: > On Feb 4, 9:55 pm, Toby A Inkster <[EMAIL PROTECTED]> > wrote: > > You discovered wrong -- Google does not provide a free newsserver. They no > > doubt *have* several newsservers, but don't provide direct access to them > > e

Re: when will python 2.5 take in mainstream?

2007-02-04 Thread [EMAIL PROTECTED]
When they have to ... One of the big things about Python is that its penetration slows it down. There's more legacy code and interdependant systems around now that Python is more successful and more mature. Here's a thought -- perhaps it would be worth having some good ways to interact with Pytho

Re: Missing member

2007-02-04 Thread John Machin
On Feb 5, 9:45 am, "Mizipzor" <[EMAIL PROTECTED]> wrote: > I have some troubles with a member variable that seems to be missing > in a class. In short, heres what I do; class A is the parent class, B > inherits from A and C inherits from B (hope I used the right words > there). Now, I create an ins

Re: Unicode problem in BeautifulSoup; worked in Python 2.4, fails in Python 2.5.

2007-02-04 Thread Mizipzor
On Feb 4, 11:39 pm, John Nagle <[EMAIL PROTECTED]> wrote: > I'm running a website page through BeautifulSoup. It parses OK > with Python 2.4, but Python 2.5 fails with an exception: > > Traceback (most recent call last): >File "./sitetruth/InfoSitePage.py", line 268, in httpfetch > se

Re: Python does not play well with others

2007-02-04 Thread John Nagle
Graham Dumpleton wrote: > On Feb 4, 1:05 pm, Paul Rubin wrote: > >>"Paul Boddie" <[EMAIL PROTECTED]> writes: >> >>>Probably the biggest inhibitor, as far as I can see, has been the >>>server technology chosen. Many hosting providers have historically >>>offered no better

Missing member

2007-02-04 Thread Mizipzor
I have some troubles with a member variable that seems to be missing in a class. In short, heres what I do; class A is the parent class, B inherits from A and C inherits from B (hope I used the right words there). Now, I create an instance of C, which calls A's __init__ which in turn creates all th

Unicode problem in BeautifulSoup; worked in Python 2.4, fails in Python 2.5.

2007-02-04 Thread John Nagle
I'm running a website page through BeautifulSoup. It parses OK with Python 2.4, but Python 2.5 fails with an exception: Traceback (most recent call last): File "./sitetruth/InfoSitePage.py", line 268, in httpfetch self.pagetree = BeautifulSoup.BeautifulSoup(sitetext) # parse into tree

Re: Python does not play well with others

2007-02-04 Thread Paul Boddie
Graham Dumpleton wrote: > > Having said all that, perhaps those who are complaining about lack of > support for specific features in mod_python can now clarify what > actually you are talking about. At the moment the brief comments being > made seem to possibly cover some things that mod_python can

Re: How can I access data from MS Access?

2007-02-04 Thread Ben Finney
Bruno Desthuilliers <[EMAIL PROTECTED]> writes: > I sadly admit that I was wrong. "Doesn't seem to work" is effectivly > even more useless than "doesn't work". I give up. +1 QOTW -- \ "You can't have everything; where would you put it?" -- Steven | `\

Re: Python does not play well with others

2007-02-04 Thread Graham Dumpleton
On Feb 4, 1:05 pm, Paul Rubin wrote: > "Paul Boddie" <[EMAIL PROTECTED]> writes: >> Probably the biggest inhibitor, as far as I can see, has been the >> server technology chosen. Many hosting providers have historically >> offered no better than CGI for Python, whilst PHP

Re: It is good to blow up a marketplace full of people buying and selling food

2007-02-04 Thread thermate
On Feb 4, 11:46 am, "Frank Arthur" <[EMAIL PROTECTED]> wrote: > It is good to blow up a marketplace full of people buying and selling food > in Iraq. > This is how Muslim insurgents will drive "the enemy" out of their country. > By killing and maiming fellow Iraqis! The traditional Muslim way. > Th

Re: "Subscribing" to topics?

2007-02-04 Thread Mizipzor
On Feb 4, 9:55 pm, Toby A Inkster <[EMAIL PROTECTED]> wrote: > You discovered wrong -- Google does not provide a free newsserver. They no > doubt *have* several newsservers, but don't provide direct access to them > either free, or for a fee. They only provide a web interface to access the > conten

Re: How can I access data from MS Access?

2007-02-04 Thread Bruno Desthuilliers
Peter Otten a écrit : > [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 rat

Re: "Subscribing" to topics?

2007-02-04 Thread Toby A Inkster
Mizipzor wrote: > I searhed around a little and it seems that not only do i need a > newsreader, i need a newsserver to. To fetch all the messages from > here. I learned that sometimes the ISP provides one, however, mine do > not. But then I discovered that Google has a free newsserver, so I > joi

Re: raise or not to raise [Newbie]

2007-02-04 Thread Bruno Desthuilliers
Jacol a écrit : > 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're of course right. Exceptions

Re: Definitions of editor and IDE?

2007-02-04 Thread Bruno Desthuilliers
Necmettin Begiter a écrit : > 04 Şub 2007 Paz 00:48 tarihinde, Dick Moores şunları yazmıştı: > >> 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/

Re: Learning to program in Python

2007-02-04 Thread Paul Rubin
"jbchua" <[EMAIL PROTECTED]> writes: > I am an Electrical Engineering major and have dabbled in several > languages such as Python, C, and Java in my spare time because of my > interest in programming. However, I have not done any practical > programming because I have no idea where to get started.

Re: pyYaml community

2007-02-04 Thread kwatch
you should subscribe yaml-core mailing list. mailto:[EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/yaml-core this is what you want. -- kwatch Imbaud Pierre <[EMAIL PROTECTED]> wrote: > I began using pyYaml. > I found no place where pyYaml users exchange ideas, know-how, etc > (as

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

2007-02-04 Thread Stef Mientki
> Just a note, If you run the module from different location, it may not > always work. > > The '..' is relative to the location you are running the module from, > the current directory, and not relative to the location of the module is > at. thanks for the tip Ron, I didn't realized ".." was

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

2007-02-04 Thread kwatch
Thank you, aspineux and Douglas. Douglas's analysis is especially great. I changed HZ to CLK_TCK in Python-2.5/Modules/posixmodule.c and got the proper result! $ time /usr/local/python2.5/bin/python ostimetest.rb n=35, v=14930352 utime=12.42, stime=0.04 real0m1

Re: "Subscribing" to topics?

2007-02-04 Thread Jeffrey Froman
Mizipzor wrote: > I discovered that Google has a free newsserver, so I > joined this group from there. Sadly, I cant see a feature here that > lets me subscribe to an individual topic, so if anyone else is using > Google groups and know how to do something like this, please tell > me. I don't kno

Re: Learning to program in Python

2007-02-04 Thread Steve Holden
jbchua wrote: > John Henry wrote: >> jbchua wrote: >>> Hello everybody. >>> >>> I am an Electrical Engineering major and have dabbled in several >>> languages such as Python, C, and Java in my spare time because of my >>> interest in programming. However, I have not done any practical >>> programmi

Re: Create a cookie with cookielib

2007-02-04 Thread Alessandro Fachin
John J. Lee wrote: > Fine, but see my other post -- I think you misunderstand how cookies > work. Maybe you misunderstand me... While i wrote "cookie are simply http header :)" i want to said that i've look at wrong thing, cookielib are not needed... Anyway thank you for help, regards. -- http:

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

2007-02-04 Thread Ron Adam
Stef Mientki wrote: >> Do you mean something like that? >> > import some_module >> Traceback (most recent call last): >> File "", line 1, in ? >> ImportError: No module named some_module > import sys > sys.path.append("..") > import some_module > Rob, > thank you very much, > that

Re: It is good to blow up a marketplace full of people buying and selling food

2007-02-04 Thread Jonathan Curran
Frank, Could you please try and stick to discussing python related subjects on this mailing list? - Jonathan -- http://mail.python.org/mailman/listinfo/python-list

Re: Python does not play well with others

2007-02-04 Thread Paul Boddie
John Nagle wrote: > > The real problems are with integration of modules that > aren't written in Python. Python-only modules don't have the > version compatibility problems which C modules do. Loading > a Python-only module from an external source is usually not > a big deal. Building a C m

nokia s60 python code debugging with komodo

2007-02-04 Thread worlman385
anyway I can setup and debug nokia s60 python in komodo ( a python IDE )? thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: "Subscribing" to topics?

2007-02-04 Thread Mizipzor
On Feb 4, 10:51 am, hg <[EMAIL PROTECTED]> wrote: > Mizipzor wrote: > > Is there a way to "subscribe" to individual topics? im currently > > getting bombarded with daily digests and i wish to only receive a mail > > when there is activity in a topic that interests me. Can this be done? > > > Thanks

It is good to blow up a marketplace full of people buying and selling food

2007-02-04 Thread Frank Arthur
It is good to blow up a marketplace full of people buying and selling food in Iraq. This is how Muslim insurgents will drive "the enemy" out of their country. By killing and maiming fellow Iraqis! The traditional Muslim way. The way of Allah! The way of the Quaran! The way of Mohammed! They don't n

Re: Recursive zipping of Directories in Windows

2007-02-04 Thread Jandre
On Feb 1, 9:39 pm, Larry Bates <[EMAIL PROTECTED]> wrote: > Jandre wrote: > > Hi > > > I am a python novice and I am trying to write a python script (most of > > the code is borrowed) to Zip a directory containing some other > > directories and files. The script zips all the files fine but when it

Re: Create a cookie with cookielib

2007-02-04 Thread John J. Lee
Alessandro Fachin <[EMAIL PROTECTED]> writes: > Matthew Franz wrote: > > > 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 > > Yes is

Re: Python does not play well with others

2007-02-04 Thread John Nagle
Paul Boddie wrote: > I was really advocating improvements to the built-in SSL support, > anyway, which was also what the complainant was suggesting before > people started asking him mistakenly why he thought that Python was > weakened by some third party packages (PyOpenSSL, M2Crypto). The

Re: Create a cookie with cookielib

2007-02-04 Thread John J. Lee
"Matthew Franz" <[EMAIL PROTECTED]> writes: > 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

Re: Python does not play well with others

2007-02-04 Thread Colin J. Williams
Paul Rubin wrote: > "George Sakkis" <[EMAIL PROTECTED]> writes: >>> What does "batteries included" mean to you? To me, it means you don't >>> have to install add-ons. >> So let's make a 500MB executable and add Numpy, Zope, Django, PIL, >> pretty much everything actually. Even better, make CheeseS

Re: Parameter lists

2007-02-04 Thread Jeffrey Froman
Mizipzor wrote: > class Stats: > def __init__(self, *li): > self.speed = li[0] > self.maxHp = li[1] > (...) > > Or maybe there is an even niftier way that lets me iterate through > them? Using keyword arguments instead of positional parameters makes this easy: >>> class

Re: "Subscribing" to topics?

2007-02-04 Thread Stef Mientki
Mizipzor wrote: > Is there a way to "subscribe" to individual topics? im currently > getting bombarded with daily digests and i wish to only receive a mail > when there is activity in a topic that interests me. Can this be done? > > Thanks in advance. I'm relative new (couple of months), and alth

Re: when will python 2.5 take in mainstream?

2007-02-04 Thread Steven Bethard
Eric CHAO wrote: > A lot of application based on python claim that python 2.3 or 2.4 is > needed not 2.5, ie. mysqldb. I've been using python for months. I > don't care about 2.4 or 2.5. But I like the default icons of python in > 2.5. So I just use that, but some scripts can't work on that. > > W

[ANN] ConfigObj 4.4.0 and Validate 0.2.3

2007-02-04 Thread Fuzzyman
Updated versions of both `ConfigObj `_ and `Validate `_ are now available. * `ConfigObj 4.4.0 `_ * `Validate 0.

Iran opens Nuclear Enrichment School, judeo-yank-fascists in defeat

2007-02-04 Thread thermate
First the tiny hezbollah destroyed merkevas one after another using precision anti-tank weapons reducing the israelis to madness of indiscriminate cluster bombing. But the Iranians are the smartest of these Islamics. Grand chess masters ... who once saved the ass of jews under Cyrus the Great from

Re: Dividing integers...Convert to float first?

2007-02-04 Thread rzed
"Simon Brunning" <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > On 1/5/07, Grant Edwards <[EMAIL PROTECTED]> wrote: >>>>> from __future__ import LotteryNumbers >> File "", line 1 >>SyntaxError: future feature LotteryNumbers is not defined >> >> Damn. >> >> I guess it's back t

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

2007-02-04 Thread [EMAIL PROTECTED]
On Feb 3, 11:40 am, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > 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

Re: Parameter lists

2007-02-04 Thread rzed
Mizipzor <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > Consider the following snippet of code: > > == > > class Stats: > def __init__(self, speed, maxHp, armor, strength, > attackSpeed, imagePath): > self.speed = speed > self.maxHp = max

Re: Python does not play well with others

2007-02-04 Thread Paul Boddie
Jorge Godoy wrote: > "Paul Boddie" <[EMAIL PROTECTED]> writes: > > > And while Python eggs may be useful for people managing additional > > software as some unprivileged user, hosting providers (and virtual > > private server administrators) will want packages that fit in with the > > rest of the s

Re: Parameter lists

2007-02-04 Thread bearophileHUGS
Mizipzor > I dont like the looks of that code, there are many > function parameters to be sent in and if I were to add an attribute, i > would need to add it in three places. Add it to the function > parameters, add it to the class and assign it. > Is there a smoother way to do this? You may use s

Re: "Subscribing" to topics?

2007-02-04 Thread hg
Mizipzor wrote: > Is there a way to "subscribe" to individual topics? im currently > getting bombarded with daily digests and i wish to only receive a mail > when there is activity in a topic that interests me. Can this be done? > > Thanks in advance. Use a news reader and leave the mailing list

Parameter lists

2007-02-04 Thread Mizipzor
Consider the following snippet of code: == class Stats: def __init__(self, speed, maxHp, armor, strength, attackSpeed, imagePath): self.speed = speed self.maxHp = maxHp self.armor = armor self.strength = strength self.attackSpeed

Re: parent-child object design question

2007-02-04 Thread Steven D'Aprano
On Fri, 02 Feb 2007 13:53:21 -0800, manstey wrote: > Hi, > > There was a mistake above, and then I'll explain what we're doing: insCacheClass = CacheClass(oref) insCacheProperty = CacheProperty(insOref,'Chapter') > > should have been insCacheClass = CacheClass(oref) insCacheP

"Subscribing" to topics?

2007-02-04 Thread Mizipzor
Is there a way to "subscribe" to individual topics? im currently getting bombarded with daily digests and i wish to only receive a mail when there is activity in a topic that interests me. Can this be done? Thanks in advance. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python does not play well with others

2007-02-04 Thread Ramon Diaz-Uriarte
I find Paul Rubin's arguments compelling and convincing. As just a Python user (i.e., someone who has contributed nothing) let me add a few comments along the same lines. On 03 Feb 2007 18:31:03 -0800, Paul Rubin <"http://phr.cx"@nospam.invalid> wrote: > [EMAIL PROTECTED] writes: > > Paul> Why

Re: Definitions of editor and IDE?

2007-02-04 Thread Kirk Sluder
In article <[EMAIL PROTECTED]>, "Paddy" <[EMAIL PROTECTED]> wrote: > On Feb 4, 9:01 am, Necmettin Begiter <[EMAIL PROTECTED]> > wrote: > > Can't give definitions, but here is the difference: if you use an editor, > > you > > will have to run your script or program from outside the editor; if you

Re: Dlaczego ten destruktor nie dziala

2007-02-04 Thread Sulsa
sorry, wrong group. -- http://mail.python.org/mailman/listinfo/python-list

Dlaczego ten destruktor nie dziala

2007-02-04 Thread Sulsa
Mam klase A po ktorej dziedziczy B i jesli w destruktorze klasy B wywolam: self.__class__.__bases__[0].__del__(self) to wszytkos jest ok, i destruktor klasy a jest wywolywany, jesli natomiast napisze: A.__del__(self) to otrzymuje nastepujacy wyjatek: Exception exceptions.AttributeError: "'NoneTy

Re: Python does not play well with others

2007-02-04 Thread Kirk Sluder
In article <[EMAIL PROTECTED]>, "Paul Boddie" <[EMAIL PROTECTED]> wrote: > Would it benefit the Python community more if Python shipped with > MySQL support out of the box? Is it likely that a user suddenly finds > him/herself needing to connect to a MySQL database? The other problem is that it

Re: Python does not play well with others

2007-02-04 Thread Jorge Godoy
"Paul Boddie" <[EMAIL PROTECTED]> writes: > And while Python eggs may be useful for people managing additional > software as some unprivileged user, hosting providers (and virtual > private server administrators) will want packages that fit in with the > rest of the software being managed in the h

Re: Python does not play well with others

2007-02-04 Thread Paul Boddie
Paul Rubin wrote: > "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 mod

Re: Python does not play well with others

2007-02-04 Thread Paul Boddie
Kirk Sluder wrote: > 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 >

Re: Vim scripting with python

2007-02-04 Thread Tool69
Thanks Stuart, I'll take a look at it. Another thing : Is there any way to made some modification de the python.syntax file to highlight the functions call, i.e : os.popen(...) ---> "popen(...)" will be highlighted. Cheers. -- http://mail.python.org/mailman/listinfo/python-list

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

2007-02-04 Thread Stef Mientki
Inca wrote: >> Through "My computer" | properties | advanced | Environment Variables" >> you have to reboot. > > The best overall solution is the one where you modify sys.path to add > your own custom paths, I agree, specially in my situation that is the best solution. however Jussi is right in

Re: when will python 2.5 take in mainstream?

2007-02-04 Thread paul
Eric CHAO schrieb: > A lot of application based on python claim that python 2.3 or 2.4 is > needed not 2.5, ie. mysqldb. I've been using python for months. I > don't care about 2.4 or 2.5. But I like the default icons of python in > 2.5. So I just use that, but some scripts can't work on that. What

Re: CTypes

2007-02-04 Thread [EMAIL PROTECTED]
On Feb 4, 7:26 am, "Mark" <[EMAIL PROTECTED]> wrote: Hey, I really appreciate you responding to my post. I've been on this problem for some days now and it was getting to me. Sad that pywinauto doesn't run on Win98SE, are there any other Python libraries for 'automating' Windows COM? If not I look

Re: stlib name clash when using python as ASP language

2007-02-04 Thread Joost
> You *assume* that [0] is the IIS path, but perhaps some other imported > module changed sys.path too, and now it's not the first one anymore. > If you know exactly the path, try sys.path.remove(iis_path). > > -- > Gabriel Genellina It's was a hack and definitely not meant to go in to production

Re: Hi, I'm new to python

2007-02-04 Thread millball54
Thanks very much guys for your help.. Its been greatly appreciated. -- http://mail.python.org/mailman/listinfo/python-list

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

2007-02-04 Thread Inca
> Through "My computer" | properties | advanced | Environment Variables" > you have to reboot. The best overall solution is the one where you modify sys.path to add your own custom paths, however Jussi is right in that you do not need to reboot. You have to restart any applications that relies on

Re: CTypes

2007-02-04 Thread Mark
Hi, On Feb 3, 6:22 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I forgot to mention I am running Windows 98SE. Hmm - pywinauto is not supported on Windows 98 - it relies competely on Unicode. You could try renaming all the functions ending in W to ending in A e.g. change GetModuleFileNam

Question

2007-02-04 Thread Magdy Sanad
Dear All I'm a Researcher from Cairo, Egypt. I installed the language programmer Python Enthought Edition--Python 2.4.3 for Windows Enhanced Python Distribution.I have certain data in the defau

Re: ctypes.com.IUnknown

2007-02-04 Thread Robin Becker
Giles Brown wrote: > > > What about downloading the spin-off library? > http://sourceforge.net/projects/comtypes/ > > (I think this was created to move the com stuff out of ctypes?) ... Thanks I didn't know that; I'll give it a whirl. -- Robin Becker -- http://mail.python.org/mailm

Re: Definitions of editor and IDE?

2007-02-04 Thread Paddy
On Feb 4, 9:01 am, Necmettin Begiter <[EMAIL PROTECTED]> wrote: > 04 Şub 2007 Paz 00:48 tarihinde, Dick Moores şunları yazmıştı:> 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 pyth

when will python 2.5 take in mainstream?

2007-02-04 Thread Eric CHAO
A lot of application based on python claim that python 2.3 or 2.4 is needed not 2.5, ie. mysqldb. I've been using python for months. I don't care about 2.4 or 2.5. But I like the default icons of python in 2.5. So I just use that, but some scripts can't work on that. When will all these applicatio

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

2007-02-04 Thread Stef Mientki
Jussi Salmela wrote: > Stef Mientki kirjoitti: >> Is it possible to change the searchpath for modules on the flight, >> under winXP ? > What do you mean by *on the flight*: inside IDLE? using the command line? No, I run Python, embedded from within a Delphi program. >> Most preferred is some comm

Re: Decimating Excel files

2007-02-04 Thread Arnd
> Every other line would be bicimating or something, > wouldn't it? Good observation, but as we have numbers of type Cardinalia, Ordinalia, Distributiva & Multiplicativa in Latin I would prefer secundating or secondating. (Bisimating or bicimating would multiply the lines by a factor 2) ;) Arnd

Re: ctypes.com.IUnknown

2007-02-04 Thread Giles Brown
On 3 Feb, 20:36, Robin Becker <[EMAIL PROTECTED]> wrote: > 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 ctype

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

2007-02-04 Thread Jussi Salmela
Stef Mientki kirjoitti: > Is it possible to change the searchpath for modules on the flight, > under winXP ? What do you mean by *on the flight*: inside IDLE? using the command line? > Most preferred is some command to extend the searchpath. > (the environment variable PYTHONPATH needs a reboot) >

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

2007-02-04 Thread Stef Mientki
> Do you mean something like that? > import some_module > Traceback (most recent call last): > File "", line 1, in ? > ImportError: No module named some_module import sys sys.path.append("..") import some_module Rob, thank you very much, that's exactly what I want. (Why is th

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

2007-02-04 Thread Rob Wolfe
Stef Mientki <[EMAIL PROTECTED]> writes: > 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) Do you mean something like that? >>> import some_module

Re: wxPython: TextCtrl delayed update when using TE_RICH(2)

2007-02-04 Thread jean-michel bain-cornu
Hi, > def Execute(self, evt): > print "Start query" > time.sleep(5) > > The "Start query" message should show in the *messages* box when I > press the button. Instead, it shows only after the time.sleep(5) > delay. > > If I don't use the wx.TE_RICH / wx.TE_RICH2 style on *messages*, the >

Re: Where Does One Begin?

2007-02-04 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > 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

Re: Decimating Excel files

2007-02-04 Thread jean-michel bain-cornu
Hi, > 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 files (with >

Re: confused about resizing array in Python

2007-02-04 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Dongsheng Ruan wrote: > This seems to be clever to use reference for list. > > Is it unique to Python? No of course not. Java is very similar in only passing references around for objects. And `ArrayList` and `Vector` behave similar to Python lists. > How about the tr

Re: Definitions of editor and IDE?

2007-02-04 Thread Necmettin Begiter
04 Şub 2007 Paz 00:48 tarihinde, Dick Moores şunları yazmıştı: > 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://wi

Re: Create a cookie with cookielib

2007-02-04 Thread Alessandro Fachin
Matthew Franz wrote: > 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 Yes is exactly what i want to do... i don't known because i looked