Re: inspect feature

2008-10-14 Thread Gabriel Genellina
En Fri, 10 Oct 2008 14:18:53 -0300, Aaron "Castironpi" Brady <[EMAIL PROTECTED]> escribió: On Oct 10, 3:36 am, Bruno Desthuilliers wrote: I don't get what you're after ??? The decorator has full access to both the actual params *and* the function's signature (via inspect.getargspec). So your

Re: documentation: what is "::="?

2008-10-14 Thread Peter Otten
Anita Kean wrote: > I'm guessing something like "if and only if" is implicated here? > But for example, if I import the sys module and perform the following > three commands, > print sys.path > sys.path.__str__() > str(sys.path) > > the first two give me the python path, and the last reports an e

Re: Question

2008-10-14 Thread Ben Finney
"Aditi Meher" <[EMAIL PROTECTED]> writes: > I know the logic,but my language of sytax is not good There's no fault in not knowing the language, unless you choose not to rectify that by learning. If, on the other hand, you want to have programs without learning how to program in the language, you'

ANN: managesieve 0.4

2008-10-14 Thread Hartmut Goebel
After four long years I am happy to announce a new release of python-managesieve. To ensure faster development the project has moved to a new home at . managesieve 0.4 A ManageSieve client library for remotely managing Sieve scripts, i

Re: Pylab Fails with Runtime Error on Win XP Under Python 2.4

2008-10-14 Thread Gabriel Genellina
En Sun, 12 Oct 2008 23:45:15 -0300, W. eWatson <[EMAIL PROTECTED]> escribió: The meat of the matter is the Fatal error msg I copied below. To me it indicates a serious error. Maybe some developer can sort it out. From above post. ++ Ah, a tiny break through.

Re: Deviation from object-relational mapping (pySQLFace)

2008-10-14 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : (snip) It is not convincing to look at an XML file alone. Let me give you an example. Glade is a GTK+ application for creating GTK+ GUI. It generates an XML file, that can be loaded in every programming language that has libglade binding. Similarly, there could be a da

IT Degrees and Computer Schools Online

2008-10-14 Thread Jacker
IT Schools Near You Get on the fast track to an IT degree at a school near you. Choose from many accredited schools in your area and advance your career. Get free info now. http://e.goozw.com/it.htm IT Resources at Apple.com Visit Apple's IT Pro portal to find IT related content for IT Managers an

Re: Can Python fix vcard files?

2008-10-14 Thread skip
>> One question, though, is that code unicode-safe in the event that >> there are unicode characters in there? Terry> I believe that particular find/replace should be safe even if Terry> other bytes represent encoded unicode. Ah, I misread the original question. I thought he was

Plotting libraries recommendations

2008-10-14 Thread sert
I'm developing a circuit simulation application and will need to plot the output of my program. The output will not be functions, just a collection of numerical values of the dependent and independent variables. -- http://mail.python.org/mailman/listinfo/python-list

python3 - the hardest hello world ever ?

2008-10-14 Thread Helmut Jarausch
Hi, do I miss something (I do hope so) or is switching to Python3 really hard for Latin1-users? My simplest hello world script - which uses a few German umlaut characters - doesn't look very intuitive. I have to set an internal property (with leading underscore) for each output file I'm using -

Re: Launching scripts in Ubuntu ?

2008-10-14 Thread Diez B. Roggisch
>> What do you mean "it's not closed"? > well the command prompt (if it is called that way in Linus) is not > returned. > > When I run file_support, the command window looks like this > >>>python file_support.py > . all kinds of output > >>> > > When I run test.py (which calls fie_support)

Re: Reading from stdin (in windows)

2008-10-14 Thread Rob Williscroft
[EMAIL PROTECTED] wrote in news:mailman.2448.1223974725.3487.python- [EMAIL PROTECTED] in comp.lang.python: > Hi! > > I wanna write a file processor in python (Windows XP). > I wanna use pipe, and not parameters. > > When I write this: > > ... > l = [] > while 1: > t = sys.stdin.read(1) >

Re: PyGUI as a standard GUI API for Python?

2008-10-14 Thread lkcl
> Although using browser technologies for desktop applications is > interesting (and not new by any means), there are a few things with > regard to layouts which are very difficult with Web technologies (and > aren't getting any easier, either) but which are almost trivial with > classic graphical

Acer Laptops

2008-10-14 Thread Online Shopping
Acer ranks among the world's top five branded PC vendors and their product range includes PC notebooks and Desktops, servers and storage systems, monitors, peripheral devices, digital devices, LCD TVs and e- business solutions for business, Government, Education and home users. To know about the la

Re: docpicture

2008-10-14 Thread Scott David Daniels
Steven D'Aprano wrote: And if not, it's no big deal. Your help string has a clearly labeled few lines of hex: Help on function spam: spam(...) spam spam spam spam spam spam spam spam spam spam with a fried egg on top === begin docpicture === 1234567890ABCDEF... === end d

Re: python3 - the hardest hello world ever ?

2008-10-14 Thread pjacobi . de
Hi Helmut, All, > do I miss something (I do hope so) or is switching to Python3 > really hard for Latin1-users? It's as complicated as ever -- if you have used unicode strings in the past (as the 3.0 strings now are always unicode strings). > # sys.setfilesystemencoding('latin1') This cares abo

Reading from stdin (in windows)

2008-10-14 Thread [EMAIL PROTECTED]
Hi! I wanna write a file processor in python (Windows XP). I wanna use pipe, and not parameters. When I write this: ... l = [] while 1: t = sys.stdin.read(1) if t == '': break l.append(t) t = "".join(l) ... and use code this: process.py http://mail.python.org/mailman/listi

Re: PyGUI as a standard GUI API for Python?

2008-10-14 Thread lkcl
On Oct 13, 9:12 pm, Terry Reedy <[EMAIL PROTECTED]> wrote: > lkcl wrote: > > On Oct 11, 11:17 pm, Terry Reedy <[EMAIL PROTECTED]> wrote: > >> lkcl wrote: > > >> I got the impression that there is currently no Windows binary > >> available. Correct? If not, perhaps someone trustworthy will someday

Re: Reg: Installation problems in psycopg2

2008-10-14 Thread raj . indian . 08
Hi Philip, Thank you. I have posted the same in psycopg mailing list too. I had setup the pg_config value too, but even then the error was coming. Hi Dave, Thank you for the quick reply. Regards Raj K -- http://mail.python.org/mailman/listinfo/python-list

Re: Plotting libraries recommendations

2008-10-14 Thread eliben
On Oct 14, 1:18 pm, sert <[EMAIL PROTECTED]> wrote: > I'm developing a circuit simulation application and will need to > plot the output of my program. The output will not be functions,   > just a collection of numerical values of the dependent and > independent variables. One good option is matpl

Re: Can Python fix vcard files?

2008-10-14 Thread Dotan Cohen
2008/10/14 <[EMAIL PROTECTED]>: > >>> One question, though, is that code unicode-safe in the event that >>> there are unicode characters in there? > >Terry> I believe that particular find/replace should be safe even if >Terry> other bytes represent encoded unicode. > > Ah, I misrea

Re: Can Python fix vcard files?

2008-10-14 Thread Dotan Cohen
2008/10/14 Paul Boddie <[EMAIL PROTECTED]>: >> Can Python go through a directory of files and replace each instance >> of "newline-space" with nothing? The system is Ubuntu 8.04 with KDE if >> it matters. Thanks. > > You should file a bug against Kontact: the KDE developers love fixing > bugs, espe

Re: PyGUI as a standard GUI API for Python?

2008-10-14 Thread lkcl
> if there's a way to enforce the displaying of text - for the _text_ > to say "i need to be a total area of X in order to display my words. > if you make my width too small, i will _force_ my height to be larger > as i wrap the text". > > just like an HTML does. ... of course, i'm well aware

Re: pyuno store OO object into blob

2008-10-14 Thread Hartmut Goebel
DarkBlue schrieb: I want to store an openoffice writer object into a blob field using the pyuno bridge. I read about the possibility of using streams , but only see some old basic or java examples . The writer document has been created and stored into an odf file on disk. How to get it from the

Unittest - adding a doctest suite to unittest.main

2008-10-14 Thread Paul Moore
My normal testing consists of a tests.py script using unittest, with the basic if __name__ == '__main__': unittest.main() incantation to get things going. But I now want to incorporate some other tests (specifically, a text file containing doctests) and I find that there is no gradual proces

Re: Can Python fix vcard files?

2008-10-14 Thread Paul Boddie
On 14 Okt, 02:31, "Dotan Cohen" <[EMAIL PROTECTED]> wrote: > KDE's Kontact PIM breaks quoted-printable vcard files because it > linebreaks in the middle of a word. Take this text for example: > NOTE;CHARSET=UTF-8;ENCODING=QUOTED-PRINTABLE:=D7=A9=D7=95=D7=A8=D7=94 =D7=A >  8=D7=90=D7=A9=D7=95=D7=A0=

Re: Deviation from object-relational mapping (pySQLFace)

2008-10-14 Thread Paul Boddie
On 14 Okt, 00:43, [EMAIL PROTECTED] wrote: > > It is not convincing to look at an XML file alone. Let me give you an > example. Glade is a GTK+ application for creating GTK+ GUI. It > generates an XML file, that can be loaded in every programming > language that has libglade binding. Similarly, the

Re: PyGUI as a standard GUI API for Python?

2008-10-14 Thread lkcl
On Oct 13, 9:59 pm, Orestis Markou <[EMAIL PROTECTED]> wrote: > Just want to say, thank you for a very enlightening writeup. You > should really post this somewhere that we can link to. orestis, thank you for the encouragement. i did post it on my diary: http://advogato.org/person/lkcl/diary/523

Compiling Webkit-Glib and PyWebkitGTK for Win32

2008-10-14 Thread lkcl
On Oct 13, 4:03 pm, Propad <[EMAIL PROTECTED]> wrote: > > the bottom line is: if you want a windows version of pywebkitgtk, i'm > > happy to assist and advise anyone of the process- it should be quite > > straightforward _if_ you have MSVC and follow the standard > If Visual Studio 2005 suffices,

Python-URL! - weekly Python news and links (Oct 14)

2008-10-14 Thread Gabriel Genellina
QOTW: "Using Unix is the computing equivalent of listening only to music by David Cassidy." - Rob Pike http://interviews.slashdot.org/article.pl?sid=04/10/18/1153211&tid=189&tid=156&tid=130&tid=11 Default mutable arguments revisited: http://groups.google.com/group/comp.lang

Re: Reading from stdin

2008-10-14 Thread Gabriel Genellina
En Wed, 08 Oct 2008 10:28:55 -0300, Luis Zarrabeitia <[EMAIL PROTECTED]> escribió: And I may try to find next()'s implementation... I guess I'll be downloading python's source when my bandwidth allows it (or find it on a browseable repository) Try http://svn.python.org - in particular, h

Need help with Wxpython

2008-10-14 Thread azrael
I need to implement a tree which will append a root. Any other node in the tree will be triggered when a button is pressed. I created the button, all the needed events, tree and a root. But when I want to append a node pressing the button I don't know How. My idea is using the wx.EVT_TREE_SEL_CHAN

Re: documentation: what is "::="?

2008-10-14 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Peter Otten wrote: > ... you have probably executed > > from locale import * > > This has imported the locale.str() function that now shadows the builtin > str(). One of many reasons not to use wildcard imports. :) -- http://mail.python.org/mailman/listinfo/pytho

Re: Wx.Grid and popup over cells

2008-10-14 Thread Mike Driscoll
On Oct 14, 5:21 am, Massi <[EMAIL PROTECTED]> wrote: > Hi everyone, > > I'm writing a python script which uses a grid (PyGridTableBase) whose > cells can contain very large values (not only numbers, but also > strings). I've also written a custom renderer which dinamically shows > only the first n

Re: Can Python fix vcard files?

2008-10-14 Thread Dotan Cohen
2008/10/14 Paul Boddie <[EMAIL PROTECTED]>: >> Can Python go through a directory of files and replace each instance >> of "newline-space" with nothing? The system is Ubuntu 8.04 with KDE if >> it matters. Thanks. > > You should file a bug against Kontact: the KDE developers love fixing > bugs, espe

Re: Need help with Wxpython

2008-10-14 Thread Mike Driscoll
On Oct 14, 9:00 am, azrael <[EMAIL PROTECTED]> wrote: > I need to implement a tree which will append a root. Any other node in > the tree will be triggered when a button is pressed. > I created the button, all the needed events, tree and a root. But when > I want to append a node pressing the butto

Re: Need help with Wxpython

2008-10-14 Thread azrael
Seen it already but looks to complicated. Someone knows a better way? -- http://mail.python.org/mailman/listinfo/python-list

Re: inspect feature

2008-10-14 Thread George Sakkis
On Oct 14, 3:06 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Fri, 10 Oct 2008 14:18:53 -0300, Aaron "Castironpi" Brady > <[EMAIL PROTECTED]> escribió: > > > > > On Oct 10, 3:36 am, Bruno Desthuilliers > [EMAIL PROTECTED]> wrote: > >> I don't get what you're after ??? The decorator has f

Re: Can Python fix vcard files?

2008-10-14 Thread Peter Pearson
On Tue, 14 Oct 2008 03:23:37 +0200, Dotan Cohen <[EMAIL PROTECTED]> wrote: > 2008/10/14 <[EMAIL PROTECTED]>: >> >>Dotan> Can Python go through a directory of files and replace each >>Dotan> instance of "newline-space" with nothing? >> >> Sure. Something like (*completely* untested, so cav

Re: Safe eval of insecure strings containing Python data structures?

2008-10-14 Thread lkcl
On Oct 13, 6:12 pm, George Sakkis <[EMAIL PROTECTED]> wrote: > On Oct 13, 8:36 am,lkcl<[EMAIL PROTECTED]> wrote: > > > > > On Oct 9, 4:32 am, "James Mills" <[EMAIL PROTECTED]> wrote: > > > > On Thu, Oct 9, 2008 at 2:26 PM, Warren DeLano <[EMAIL PROTECTED]> wrote: > > > > JSON rocks! Thanks everyon

[NEWBIE] csv to excel format problem

2008-10-14 Thread MM
Hi to all, I'm trying to import a tab separated values file onto Excel with the following script: import csv from pyExcelerator import * w = Workbook() worksheet = w.add_sheet('sim1') def writeExcelRow(worksheet, lno, columns): style = XFStyle() style.num_format_str = '0.00E+00' cno = 0

Re: Need help with Wxpython

2008-10-14 Thread Mike Driscoll
On Oct 14, 9:36 am, azrael <[EMAIL PROTECTED]> wrote: > Seen it already but looks to complicated. Someone knows a better way? What about the tree control's GetSelection method? That seems to return the TreeItemId. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Unittest - adding a doctest suite to unittest.main

2008-10-14 Thread Paul Moore
On 14 Oct, 16:09, Duncan Booth <[EMAIL PROTECTED]> wrote: > Create a function named test_suite which creates a test suite containing > all your tests including the doctests. Pass that to main as the defaultTest > argument. Ah, thanks. I see now - a suite is itself a test. That makes sense. But ho

Re: gmpy and counting None

2008-10-14 Thread Mensanator
On Oct 13, 5:16 pm, Robert Kern <[EMAIL PROTECTED]> wrote: > Mensanator wrote: > > On Oct 13, 2:43 pm, <[EMAIL PROTECTED]> wrote: > >> Hi, > > >> I just stumbled upon the following issue (I am running Debian): > > >> $ python > >> Python 2.5.2 (r252:60911, Sep 29 2008, 21:15:13) > >> [GCC 4.3.2] on

Re: docpicture

2008-10-14 Thread bearophileHUGS
André: > Ok, the following is my first attempt at implementing this idea. I suggest you to change the program you use to encode your images, because it's 1000 bytes, while with my program the same 256 colors image needs just 278 bytes: iVBORw0KGgoNSUhEUgAAABYeCAMfOR5kBGdBTUEAAL GP

Re: compile() and comments

2008-10-14 Thread Steve Holden
Ed Leafe wrote: > On Oct 13, 2008, at 8:35 AM, Fuzzyman wrote: > >> It is certainly an odd restriction, but the docs for compile [1] do >> explicitly state that the input must be newline terminated. > > > Understood; what I found odd was that if the last > non-newline-terminated statement wa

Re: gmpy and counting None

2008-10-14 Thread Robert Kern
Mensanator wrote: On Oct 13, 5:16 pm, Robert Kern <[EMAIL PROTECTED]> wrote: Mensanator wrote: On Oct 13, 2:43 pm, <[EMAIL PROTECTED]> wrote: Hi, I just stumbled upon the following issue (I am running Debian): $ python Python 2.5.2 (r252:60911, Sep 29 2008, 21:15:13) [GCC 4.3.2] on linux2 Type

Emacs users: feedback on diffs between python-mode.el and python.el?

2008-10-14 Thread skip
If you're an Emacs user who has used both python-mode.el (the python mode code distributed with Python and XEmacs) and python.el (the python mode code distributed with GNU Emacs), I'd like to get your impressions on how they compare and where you feel the bugs lie. I'm nominally one of the python-

Re: Wx.Grid and popup over cells

2008-10-14 Thread Massi
On 14 Ott, 16:13, Mike Driscoll <[EMAIL PROTECTED]> wrote: > On Oct 14, 5:21 am, Massi <[EMAIL PROTECTED]> wrote: > > > Hi everyone, > > > I'm writing a python script which uses a grid (PyGridTableBase) whose > > cells can contain very large values (not only numbers, but also > > strings). I've als

Re: Upgrading from 2.5 to 2.6

2008-10-14 Thread Gabriel Genellina
En Tue, 14 Oct 2008 02:26:50 -0300, Martin v. Löwis <[EMAIL PROTECTED]> escribió: That isn't entirely true. In Windows, python files bound to a particular version of python in the registry. So, for example, if you double click on "some_prog.py" to run it, then it will by default start up using

replace mothod for only one object but not for a class

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

Re: gmpy and counting None

2008-10-14 Thread Mensanator
On Oct 14, 12:14 pm, Robert Kern <[EMAIL PROTECTED]> wrote: > Mensanator wrote: > > On Oct 13, 5:16 pm, Robert Kern <[EMAIL PROTECTED]> wrote: > >> Mensanator wrote: > >>> On Oct 13, 2:43 pm, <[EMAIL PROTECTED]> wrote: > Hi, > I just stumbled upon the following issue (I am running Debian)

C API with *args and **kw

2008-10-14 Thread Miki
Hello All, I'm try to write the C equivalent of: def kw(*args, **kw): print "%d args" % len(args), if "default" in kw: print "default is %s" % kw["default"] else: print "no default" I've written: static PyObject * kw(PyObject *self, PyObject *args, PyObject *kwds) {

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

2008-10-14 Thread Miki
from functools import partial class Point: def __init__(self, x, y): self.x, self.y = x, y def show(self, n): for i in range(n): print "Point: (%s, %s)" % (self.x, self.y) def new_method(obj, func): def method(*args, **kw): return func(obj, *args,

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

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

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

2008-10-14 Thread Bruno Desthuilliers
George Sakkis a écrit : On Oct 14, 1:50 pm, hofer <[EMAIL PROTECTED]> wrote: Hi, I have multiple objects all belonging to the same class (which I didn't implement and whose code I don't want to modify) Now I'd like to change one method for one object only (after it has been created) without a

How to create Pygments extension for Sphinx

2008-10-14 Thread Glenn Hutchings
Hi there Pythonistas... I'm writing documentation for a non-Python program using Sphinx (http://sphinx.pocoo.org), which is great. The program has an input file syntax suitable for highlighting using Pygments (http:// pygments.org), but, obviously, Pygments knows nothing about it. I've created a

Re: Plotting libraries recommendations

2008-10-14 Thread Daniel da Silva
Seconded. If you are familiar with Matlab plotting at all, the interface is nearly identical, and the graphics are great. Daniel On Tue, Oct 14, 2008 at 9:19 AM, eliben <[EMAIL PROTECTED]> wrote: > On Oct 14, 1:18 pm, sert <[EMAIL PROTECTED]> wrote: > > I'm developing a circuit simulation applic

Re: inspect feature

2008-10-14 Thread Aaron "Castironpi" Brady
On Oct 14, 9:42 am, George Sakkis <[EMAIL PROTECTED]> wrote: > On Oct 14, 3:06 am, "Gabriel Genellina" <[EMAIL PROTECTED]> > wrote: > > > > > En Fri, 10 Oct 2008 14:18:53 -0300, Aaron "Castironpi" Brady > > <[EMAIL PROTECTED]> escribió: > > > > On Oct 10, 3:36 am, Bruno Desthuilliers > > [EMAIL PR

Tkinter question: howto redirect text output (stdout) to Text widget?

2008-10-14 Thread dmitrey
hi all, could anyone post an example how to redirect text output (stdout) to Text widget? Thank you in advance, Dmitrey. -- http://mail.python.org/mailman/listinfo/python-list

Re: default value in __init__

2008-10-14 Thread David C. Ullrich
In article <[EMAIL PROTECTED]>, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > David C. Ullrich a écrit : > > In article > > <[EMAIL PROTECTED]>, > > kenneth <[EMAIL PROTECTED]> wrote: > > > >> On Oct 9, 10:14 am, Christian Heimes <[EMAIL PROTECTED]> wrote: > >>> kenneth wrote: > the

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

2008-10-14 Thread Jason Scheirer
On Oct 14, 11:20 am, George Sakkis <[EMAIL PROTECTED]> wrote: > On Oct 14, 1:50 pm, hofer <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > I have multiple objects all belonging to the same class > >  (which I didn't implement and whose code I don't want to modify) > > > Now I'd like to change one met

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

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

Re: gmpy and counting None

2008-10-14 Thread Robert Kern
Mensanator wrote: On Oct 14, 12:14 pm, Robert Kern <[EMAIL PROTECTED]> wrote: Mensanator wrote: On Oct 13, 5:16 pm, Robert Kern <[EMAIL PROTECTED]> wrote: Mensanator wrote: On Oct 13, 2:43 pm, <[EMAIL PROTECTED]> wrote: Hi, I just stumbled upon the following issue (I am running Debian): $ py

Re: Upgrading from 2.5 to 2.6

2008-10-14 Thread Martin v. Löwis
> I'd say the wording in the installer is unfortunate. The option is > labeled "Register extensions" and for some time I thought it was related > to .pyd/.dll files ("C extensions"), not "Associate .py files to this > Python installation" Unfortunately, I think this is too long for the available s

Re: type-checking support in Python?

2008-10-14 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Kay Schluehr wrote: > ... and I'm sad noticing that it is apparently abandonware. In Open Source, nothing is ever truly abandonware unless nobody cares about it any more. :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Question

2008-10-14 Thread Gabriel Genellina
En Tue, 14 Oct 2008 03:27:37 -0300, Aditi Meher <[EMAIL PROTECTED]> escribió: I am using ubuntu operating system,i am using python and self app for DB storage. I hv already mentioned in my question that i want to display 10 records out of 100,how to create buffer to store remaining records wh

Re: Emacs users: feedback on diffs between python-mode.el and python.el?

2008-10-14 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : If you're an Emacs user who has used both python-mode.el (the python mode code distributed with Python and XEmacs) and python.el (the python mode code distributed with GNU Emacs), I'd like to get your impressions on how they compare and where you feel the bugs lie. I'

Re: Compiling Webkit-Glib and PyWebkitGTK for Win32

2008-10-14 Thread lkcl
> the reason why you'll need python-gtk2 is because of codegen.py - that > is used to turn the webkit.defs into a webkit.c file. this might help: http://aruiz.typepad.com/siliconisland/2006/12/allinone_win32_.html it includes python-gobject, python-gtk, gtk runtime and much more. exactly _how_ mu

Re: Installing Python 2.4 over 2.4?

2008-10-14 Thread Terry Reedy
Steve Holden wrote: W. eWatson wrote: I suspect something has been corrupted in Python 2.4. Can I just re-install on top of it, and still expect to have scipy and other pkgs I've installed? On Windows, certainly - you can even uninstall and reinstall and retain your installed libraries. On Lin

Re: csv to excel format problem

2008-10-14 Thread MM
On 14 Ott, 12:03, MM <[EMAIL PROTECTED]> wrote: > Hi to all, > > I'm trying to import a tab separated values file onto Excel with the > following script: > > import csv > from pyExcelerator import * > > w = Workbook() > worksheet = w.add_sheet('sim1') > > def writeExcelRow(worksheet, lno, columns):

Excel 2007 Charts with PyWin32

2008-10-14 Thread Ally
Hi all, I’m looking to plot charts in Excel from python. After some Googling I’ve found the following code: def plot(x, y, xAxisLog=False, yAxisLog=False): # acquire application object, which may start application application = Dispatch("Excel.Application") # create new file ('Workbo

Re: Question

2008-10-14 Thread David C. Ullrich
In article <[EMAIL PROTECTED]>, "Aditi Meher" <[EMAIL PROTECTED]> wrote: > Hello > > How to write code to store data into buffer using python? buffer = data > Please reply. -- David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: Installing Python 2.4 over 2.4?

2008-10-14 Thread Martin v. Löwis
W. eWatson wrote: > I suspect something has been corrupted in Python 2.4. Can I just > re-install on top of it On Windows, you shouldn't reinstall, but instead run the "repair" installation, from "Add and remove programs". Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Launching scripts in Ubuntu ?

2008-10-14 Thread Gabriel Genellina
En Tue, 14 Oct 2008 10:46:34 -0300, Stef Mientki <[EMAIL PROTECTED]> escribió: well the command prompt (if it is called that way in Linus) is not returned. When I run file_support, the command window looks like this >>>python file_support.py . all kinds of output >>> When I run test.py

Re: python3 - the hardest hello world ever ?

2008-10-14 Thread Martin v. Löwis
> do I miss something (I do hope so) or is switching to Python3 > really hard for Latin1-users? Why do you want to switch? sys.stdout.encoding should already be iso-8859-1, if you are a Latin1-user. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: inspect feature

2008-10-14 Thread George Sakkis
On Oct 14, 2:35 pm, "Aaron \"Castironpi\" Brady" <[EMAIL PROTECTED]> wrote: > On Oct 14, 9:42 am, George Sakkis <[EMAIL PROTECTED]> wrote: > > > > > On Oct 14, 3:06 am, "Gabriel Genellina" <[EMAIL PROTECTED]> > > wrote: > > > > En Fri, 10 Oct 2008 14:18:53 -0300, Aaron "Castironpi" Brady > > > <[EM

Re: C API with *args and **kw

2008-10-14 Thread Christian Heimes
Miki wrote: Hello All, I'm try to write the C equivalent of: Use PyArg_ParseTupleAndKeywords() to parse the args and kwargs objects. Christian -- http://mail.python.org/mailman/listinfo/python-list

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

2008-10-14 Thread Christian Heimes
Bruno Desthuilliers wrote: If the class is a new-style one [1], it just requires invoking the descriptor protocol by yourself to get a bound method, ie: Another note about new style classes: You can NOT overwrite most magic methods (__*__) on the instance. Most magic methods are only looked up

Re: Upgrading from 2.5 to 2.6

2008-10-14 Thread Steve Holden
Martin v. Löwis wrote: >> I'd say the wording in the installer is unfortunate. The option is >> labeled "Register extensions" and for some time I thought it was related >> to .pyd/.dll files ("C extensions"), not "Associate .py files to this >> Python installation" > > Unfortunately, I think this

Re: PyGUI as a standard GUI API for Python?

2008-10-14 Thread Paul Boddie
On 13 Okt, 23:59, Orestis Markou <[EMAIL PROTECTED]> wrote: > Just want to say, thank you for a very enlightening writeup. You   > should really post this somewhere that we can link to. Is this not good enough for you...? http://mail.python.org/pipermail/python-list/2008-October/511375.html I do

Re: Launching scripts in Ubuntu ?

2008-10-14 Thread Diez B. Roggisch
Stef Mientki wrote: > hello, > > I'm not familiar with Linux / Ubuntu, > still trying to get my application working under these operating systems. > > I've a script "file_support.py", > now when I'm in Ubuntu, open a command window and go to the directory > where that file is, > I can launch th

Wx.Grid and popup over cells

2008-10-14 Thread Massi
Hi everyone, I'm writing a python script which uses a grid (PyGridTableBase) whose cells can contain very large values (not only numbers, but also strings). I've also written a custom renderer which dinamically shows only the first n characters (according to the width of the cell) replacing the la

Re: python3 - the hardest hello world ever ?

2008-10-14 Thread Brian Quinlan
Hey Helmut, Did you try just: print("Hallo, Süßes Python") Cheers, Brian Helmut Jarausch wrote: Hi, do I miss something (I do hope so) or is switching to Python3 really hard for Latin1-users? My simplest hello world script - which uses a few German umlaut characters - doesn't look very intu

Re: Implementing my own Python interpreter

2008-10-14 Thread Stefan Behnel
Ognjen Bezanov wrote: > Also, any pro's out there willing to chime on the feasibility of > implementing python to run directly on the hardware (without an > underlying OS)? I don't expect 100% compatibility, but would the basics > (branching, looping, arithmatic) be feasible? You should take a loo

Re: Excel 2007 Charts with PyWin32

2008-10-14 Thread Ally
Solved. See http://bytes.com/forum/thread482449.html application = Dispatch("Excel.Application") should be application = win32com.client.gencache.EnsureDispatch('Excel.Application') -- http://mail.python.org/mailman/listinfo/python-list

Re: C API with *args and **kw

2008-10-14 Thread Stefan Behnel
Miki wrote: > I'm try to write the C equivalent of: > > def kw(*args, **kw): > print "%d args" % len(args), > if "default" in kw: > print "default is %s" % kw["default"] > else: > print "no default" Consider using Cython instead, it will make your life a lot easier. Th

Re: docpicture

2008-10-14 Thread bearophileHUGS
Steven D'Aprano: > Unless bearophile is willing to share his code, There's no code: all I do is written in my post, and so far I have done it "manually" :-) Bye, bearophile -- http://mail.python.org/mailman/listinfo/python-list

Re: Reg: Installation problems in psycopg2

2008-10-14 Thread Dave
gmail.com> writes: > I am trying to install psycopg2 in my windows machine for > connecting with the PostgreSQL server. > Since there is no binary executable*, I am trying to build my own > - and I am facing this issue. > > C:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\

Re: C API with *args and **kw

2008-10-14 Thread Hrvoje Niksic
[ Note that there's a mailing list dedicated to the C API, http://mail.python.org/mailman/listinfo/capi-sig ] Miki <[EMAIL PROTECTED]> writes: > However when running the test: > from kw import kw > kw(default="2") > kw(1) > kw() > > I get "bus error" on the 2'nd call (OS X Python 2.5.2). When

Re: default value in __init__

2008-10-14 Thread Bruno Desthuilliers
David C. Ullrich a écrit : In article <[EMAIL PROTECTED]>, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: David C. Ullrich a écrit : (snip) Seems to me that people often site the "important warning" in the tutorial. Of course there's no reason anyone would bother going through the tutoria

Lenovo Laptops

2008-10-14 Thread Online Shopping
As a global leader in the PC market, Lenovo develops, manufactures and markets cutting-edge, reliable, high-quality PC products and value- added professional services that provide customers around the world with smarter ways to be productive and competitive. For buying latest Lenovo laptops visit:

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

2008-10-14 Thread Bruno Desthuilliers
Christian Heimes a écrit : Bruno Desthuilliers wrote: If the class is a new-style one [1], it just requires invoking the descriptor protocol by yourself to get a bound method, ie: Another note about new style classes: You can NOT overwrite most magic methods (__*__) on the instance. Most magi

Re: Unittest - adding a doctest suite to unittest.main

2008-10-14 Thread Duncan Booth
Paul Moore <[EMAIL PROTECTED]> wrote: > Just before I start diving into the gory details, have I missed a > simple way of adding an additional doctest.DocFileSuite to > unittest.main? Create a function named test_suite which creates a test suite containing all your tests including the doctests.

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

2008-10-14 Thread George Sakkis
On Oct 14, 12:28 pm, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > George Sakkis a écrit : > > > > > On Oct 14, 1:50 pm, hofer <[EMAIL PROTECTED]> wrote: > >> Hi, > > >> I have multiple objects all belonging to the same class > >> (which I didn't implement and whose code I don't want to modify)

Re: docpicture

2008-10-14 Thread André
On Oct 14, 10:58 am, Steven D'Aprano <[EMAIL PROTECTED] cybersource.com.au> wrote: > On Tue, 14 Oct 2008 06:12:59 -0700, Scott David Daniels wrote: > > Steven D'Aprano wrote: > >> And if not, it's no big deal. Your help string has a clearly labeled > >> few lines of hex: > > >> Help on function spa

Re: inspect feature

2008-10-14 Thread Aaron "Castironpi" Brady
On Oct 14, 2:32 pm, George Sakkis <[EMAIL PROTECTED]> wrote: > On Oct 14, 2:35 pm, "Aaron \"Castironpi\" Brady" > > > > <[EMAIL PROTECTED]> wrote: > > On Oct 14, 9:42 am, George Sakkis <[EMAIL PROTECTED]> wrote: > > > > On Oct 14, 3:06 am, "Gabriel Genellina" <[EMAIL PROTECTED]> > > > wrote: > > >

Re: Installing Python 2.4 over 2.4?

2008-10-14 Thread W. eWatson
Terry Reedy wrote: Steve Holden wrote: W. eWatson wrote: I suspect something has been corrupted in Python 2.4. Can I just re-install on top of it, and still expect to have scipy and other pkgs I've installed? On Windows, certainly - you can even uninstall and reinstall and retain your install

Re: Making class attributes non-case-sensitive?

2008-10-14 Thread Matimus
> So is iterating through dir() to force both the members of dir(), and > the requested attribute name, to lower case for a comparison, really > the easiest way? > > Thanks again for sticking with me. I hope I didn't add to the > confusion. What I learn I will of course pass on. > > - Rafe It stil

Re: Installing Python 2.4 over 2.4?

2008-10-14 Thread W. eWatson
Martin v. Löwis wrote: W. eWatson wrote: I suspect something has been corrupted in Python 2.4. Can I just re-install on top of it On Windows, you shouldn't reinstall, but instead run the "repair" installation, from "Add and remove programs". Regards, Martin Do you mean on the Win Control Pan

  1   2   >