Re: 10GB XML Blows out Memory, Suggestions?

2006-06-07 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > Paul, > > This is interesting. Unfortunately, I have no control over the XML > output. The file is from Goldmine. However, you have given me an > idea... > > Is it possible to read an XML document in compressed format? sure. you can e.g. use gzip.open to create a file

Re: python-dev Summary for 2006-04-01 through 2006-04-15

2006-06-07 Thread Fredrik Lundh
> - > Python 2.5a1 Released > - > > Python 2.5 alpha 1 was released on April 5th. Please download it and > try it out, particularly if you are an extension writer or you embed > Python -- you may want to change things to support 64-bit sequences, > and if y

Re: newbie: python application on a web page

2006-06-07 Thread gene tani
puzz wrote: > Hi all, > I'd also appreciate a link to a beginner forum > http://www.daniweb.com/techtalkforums/forum114.html and (not really a beginner forum, not really high volume, either) http://community.livejournal.com/python_dev/ -- http://mail.python.org/mailman/listinfo/python-list

pyqt show wizard

2006-06-07 Thread Yves Glodt
Hi, I have a mainwindow in my pyqt application, and on click of a button I want to start an assistant (wizard). I have create the wizard with the Qt Designer, generated the python code with pyuic, imported it "from assistant import *", and subclassed it as usual. To show it, the onclick metho

Re: how not to run out of memory in cursor.execute

2006-06-07 Thread [EMAIL PROTECTED]
whenever you are using a package that leaks memory. it can be appropriate to use Rpyc (http://rpyc.wikispaces.com/) to run the leaking code in a different process, and restart it from time to time. I've been using this method to avoid the leaks of matplotlib. -- http://mail.python.org/mailman/lis

Re: A more elegant way to do this list comprehension?

2006-06-07 Thread [EMAIL PROTECTED]
> > [1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, > > 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8] > [i+1 for i in range(8) for j in range(i+1)] [i for i in range(9) for j in range(i)] -- http://mail.python.org/mailman/listinfo/python-list

Re: what are you using python language for?

2006-06-07 Thread mystilleef
Desktop application development -- http://mail.python.org/mailman/listinfo/python-list

Re: what are you using python language for?

2006-06-07 Thread [EMAIL PROTECTED]
scientific computing testing systems hobby: games. check http://mashebali.com/?Chess_2 -- http://mail.python.org/mailman/listinfo/python-list

Re: Writing to a certain line?

2006-06-07 Thread bruno at modulix
Tommy B wrote: > bruno at modulix wrote: (snip) >>import os >>old = open("/path/to/file.txt", "r") >>new = open("/path/to/new.txt", "w") >>for line in old: >> if line.strip() == "Bob 62" >>line = line.replace("62", "66") >> new.write(line) >>old.close() >>new.close() >>os.rename("/path/to/n

Re: Writing to a certain line?

2006-06-07 Thread Christophe
bruno at modulix a écrit : > Tommy B wrote: > >>bruno at modulix wrote: > > > (snip) > > >>>import os >>>old = open("/path/to/file.txt", "r") >>>new = open("/path/to/new.txt", "w") >>>for line in old: >>> if line.strip() == "Bob 62" >>> line = line.replace("62", "66") >>> new.write(line) >>>

Bug in list comprehensions?

2006-06-07 Thread Iain King
I was playing with list comprehensions, to try and work out how doubled up versions work (like this one from another thread: [i for i in range(9) for j in range(i)]). I think I've figured that out, but I found something strange along the way: >>> alpha = ["one", "two", "three"] >>> beta = ["A", "

Re: newbie: python application on a web page

2006-06-07 Thread SuperHik
Max wrote: > puzz wrote: >> sorry about the missunderstanding... >> >> but my question is "how" and not "where" to put it online >> and that's where the "newbie" comes from >> >> P M > > If you just want to make it available for download, that's easy. If you > want to make it open source, you cou

Re: Bug in list comprehensions?

2006-06-07 Thread Fredrik Lundh
Iain King wrote: > I'm guessing I'm the one confused here... but I'm confused! What's > going on? reading the documentation may help: /.../ the elements of the new list are those that would be produced by considering each of the for or if clauses a block, nesting from left to ri

Re: Bug in list comprehensions?

2006-06-07 Thread Duncan Booth
Iain King wrote: [x for x in y for y in beta] > ['C', 'C', 'C'] [y for y in beta] > [['one', 'two', 'three'], ['one', 'two', 'three'], ['one', 'two', > 'three']] [x for x in y for y in beta] > ['one', 'one', 'one', 'two', 'two', 'two', 'three', 'three', 'three'] > > Shoudn't both l

Use of Python in .NET

2006-06-07 Thread sushant . sirsikar
Hi, I am developing a code which has MVC (Model - View - Controler) architecture.My view is in .NET. And my controller is in Python.So can i call Python script from .NET? If yes, Can anybody tell me method or related documentation? Thanks in Advamce -- http://mail.python.org/mailman/list

secure xmlrpc server?

2006-06-07 Thread Laszlo Nagy
Hello, I'm trying to create a simple XMLRPC server and a client. It is a small application, but the connection needs to be secure. I would like the client to be as thin as possible. Ideally, the client should only require the basic python library, nothing else. I found many examples on the

Python language problem

2006-06-07 Thread ripleyfu
>>> class A: ... pass ... >>> a = A() >>> b = a >>> del b >>> a <__main__.A instance at 0x00B91BC0> I want to delete 'a' through 'b', why It does't? How can I do that? -- http://mail.python.org/mailman/listinfo/python-list

Re: what are you using python language for?

2006-06-07 Thread Claudio Grondi
hacker1017 wrote: > im just asking out of curiosity. It appears to me, that the natural language is not enough to record thoughts/observations/enlightenments for being reviewed and used with ease after a longer time, as for this purpose it is necessary to include in such records some sort of ac

Re: Need pixie dust for building Python 2.4 curses module on Solaris 8

2006-06-07 Thread skip
John> Was libncurses.a compiled with -fpic (or -fPIC, if necessary)? John> http://mail.python.org/pipermail/python-dev/2001-March/013510.html When built shared the source was compiled with -fPIC. -fPIC is not used when not built shared. I forced that in a non-shared build. It still ga

Re: Python language problem

2006-06-07 Thread Boris Borcic
[EMAIL PROTECTED] wrote: class A: > ... pass > ... a = A() b = a del b a > <__main__.A instance at 0x00B91BC0> > I want to delete 'a' through 'b', why It does't? > How can I do that? del a,b -- http://mail.python.org/mailman/listinfo/python-list

Re: Python language problem

2006-06-07 Thread Laszlo Nagy
[EMAIL PROTECTED] i'rta: class A: > ... pass > ... > a = A() b = a del b a > <__main__.A instance at 0x00B91BC0> > I want to delete 'a' through 'b', why It does't? > How can I do that? > > You must undestand that 'a' and 'b' are names. Y

Re: Python language problem

2006-06-07 Thread ripley
Boris Borcic wrote: > [EMAIL PROTECTED] wrote: > class A: > > ... pass > > ... > a = A() > b = a > del b > a > > <__main__.A instance at 0x00B91BC0> > > I want to delete 'a' through 'b', why It does't? > > How can I do that? > > del a,b But 'b' is also deleted, i want u

CENSORSHIP - Django Project (Schema Evolution Support)

2006-06-07 Thread Ilias Lazaridis
[posted publicly to comp.lang.python, with email notification to 6 recipients relevant to the topic] I have implemented a simple schema evolution support for django, due to a need for a personal project. Additionally, I've provided an Audit: http://case.lazaridis.com/wiki/DjangoAudit As a resu

Re: Python language problem

2006-06-07 Thread ripley
Laszlo Nagy wrote: > You must undestand that 'a' and 'b' are names. You can only delete > names, not objects. Objects are freed by the garbage collector, > automatically. Probably you used to write programs in C or Pascal or > other languages with pointers. In Python, there are no pointers, just >

Re: Bug in list comprehensions?

2006-06-07 Thread Sion Arrowsmith
Fredrik Lundh <[EMAIL PROTECTED]> wrote: >Iain King wrote: >> I'm guessing I'm the one confused here... but I'm confused! What's >> going on? >the clauses nest from left to right, not from right to left, so "[x for >x in y for y in beta]" is equivalent to > > out = [] > for x in y: >

Re: Python language problem

2006-06-07 Thread Diez B. Roggisch
> > Thanks for your so detailed explain, I think I know you, But my Engish > is not enough > to explain. > > I create same object in Tree, I want to update Tree, when I need to > delete subtree. > If where no references, I can't do that. some thing like blow: > for i in list: >del i This ma

Re: CENSORSHIP - Django Project (Schema Evolution Support)

2006-06-07 Thread Diez B. Roggisch
http://en.wikipedia.org/wiki/Ilias_Lazaridis [posted publicly to comp.lang.python, with no email notification to recipients that certainly don't consider this a relevant topic and for all those who don't know Illias] Diez -- http://mail.python.org/mailman/listinfo/python-list

Re: tempfile Question

2006-06-07 Thread John Machin
On 7/06/2006 3:57 PM, Dennis Lee Bieber wrote: > On Wed, 07 Jun 2006 09:56:13 +1000, John Machin <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > >> The dir, prefix and suffix parameters are passed to mkstemp(). > >> So I'd be thinking about using the (deprecated) mktemp

Re: CENSORSHIP - Django Project (Schema Evolution Support)

2006-06-07 Thread Simon Willison
Ilias Lazaridis wrote: > [posted publicly to comp.lang.python, with email notification to 6 > recipients relevant to the topic] > > I have implemented a simple schema evolution support for django, due to > a need for a personal project. Additionally, I've provided an Audit: > > http://case.lazaridi

Re: secure xmlrpc server?

2006-06-07 Thread Jeethu Rao
Using Twisted on the server side for xmlrpc doesn't restrict your options to using only Twisted on the client side. Nothing prevents you from using xmlrpclib.ServerProxy on the client side. Jeethu Rao Laszlo Nagy wrote: > Hello, > > I'm trying to create a simple XMLRPC server and a client. It

Re: CENSORSHIP - Django Project (Schema Evolution Support)

2006-06-07 Thread Ilias Lazaridis
Diez B. Roggisch wrote: > http://en.wikipedia.org/wiki/Ilias_Lazaridis What has this "wikipedia" entry to do with the topic here? What is the credibility and value of the provided "wikipedia" entry? Let's review the editor's list: http://en.wikipedia.org/w/index.php?title=Ilias_Lazaridis&action

A WAD(-like) C-level exception catcher for Windows?

2006-06-07 Thread robert
For Unix there exists the WAD (part of SWIG) to catch C/machine-level errors (mem. access error, etc. ) and transform them into nice Python exceptions. ( http://www.usenix.org/events/usenix01/full_papers/beazley/beazley.pdf ) Does something like that exist for Windows? Or does somebody know a ro

Re: subprocesses, stdin/out, ttys, and beating insubordinate processes into the ground

2006-06-07 Thread Steve Holden
Jonathan Smith wrote: > First a bit about what I'm trying to do. I need a function which takes a > patchfile and patches a source directory. Thats it. However, I need to > be able to do so no matter what the patchlevel (-px) of the diff is. So, > my solution is to just try to patch until it work

Re: secure xmlrpc server?

2006-06-07 Thread Martin P. Hellwig
Laszlo Nagy wrote: Have a look at: http://trevp.net/tlslite/ -- mph -- http://mail.python.org/mailman/listinfo/python-list

Re: CENSORSHIP - Django Project (Schema Evolution Support)

2006-06-07 Thread Ilias Lazaridis
Simon Willison wrote: > Ilias Lazaridis wrote: >> [posted publicly to comp.lang.python, with email notification to 6 >> recipients relevant to the topic] >> >> I have implemented a simple schema evolution support for django, due to >> a need for a personal project. Additionally, I've provided an Au

Re: tempfile Question

2006-06-07 Thread Steve Holden
John Machin wrote: > On 7/06/2006 3:57 PM, Dennis Lee Bieber wrote: > >>On Wed, 07 Jun 2006 09:56:13 +1000, John Machin <[EMAIL PROTECTED]> >>declaimed the following in comp.lang.python: >> >> >>>The dir, prefix and suffix parameters are passed to mkstemp(). >> >> >> >>>So I'd be thinking ab

Re: Again, Downloading and Displaying an Image from the Internet in Tkinter

2006-06-07 Thread Dustan
Fredrik Lundh wrote: > Dustan wrote: > > > Ok, that worked (was it plain w or the writelines/readlines that messed > > it up?). > > the plain "w"; very few image files are text files. > > > But Tkinter still can't find the image. I'm getting an error > > message: > > > > TclError: image "C:\Docume

Re: Use of Python in .NET

2006-06-07 Thread Fuzzyman
[EMAIL PROTECTED] wrote: > Hi, > I am developing a code which has MVC (Model - View - Controler) > architecture.My view is in .NET. And my controller is in Python.So can > i call Python script from .NET? If yes, > Can anybody tell me method or related documentation? http://www.google.com/searc

Re: CENSORSHIP - Django Project (Schema Evolution Support)

2006-06-07 Thread Fuzzyman
Ilias Lazaridis wrote: > Diez B. Roggisch wrote: > > http://en.wikipedia.org/wiki/Ilias_Lazaridis > > What has this "wikipedia" entry to do with the topic here? > > What is the credibility and value of the provided "wikipedia" entry? > [snip..] Wow, you're a troll with your own wikipedia entry. T

cgi and popen

2006-06-07 Thread Maarten van Veen
A long story made short, I've build a python/cgi website consisting of two pages. Page1 has a html form in which you can input a series of queries. Then via Popen it starts a pythons search script, which stores the results in a python shelve. As the Popen command is given it should redirect to p

Re: how not to run out of memory in cursor.execute

2006-06-07 Thread John Hunter
> "[EMAIL PROTECTED]" == [EMAIL PROTECTED] com <[EMAIL PROTECTED]> writes: [EMAIL PROTECTED]> whenever you are using a package that leaks memory. [EMAIL PROTECTED]> it can be appropriate to use Rpyc [EMAIL PROTECTED]> (http://rpyc.wikispaces.com/) to run the leaking [EMAIL PROT

Re: Python language problem

2006-06-07 Thread Steve Holden
ripley wrote: > Boris Borcic wrote: > >>[EMAIL PROTECTED] wrote: >> >>class A: >>> >>>... pass >>>... >>> >>a = A() >>b = a >>del b >>a >>> >>><__main__.A instance at 0x00B91BC0> >>>I want to delete 'a' through 'b', why It does't? >>>How can I do that? >> >>del a,b > > > Bu

Re: python socket proxy

2006-06-07 Thread jstobbs
Hi Thanks for the reply. I found a proxy that works for me. Now I would like to know if its possible to run a python script, so its not visible in the cmd window (windows, i know, its bad :-) ) Maybe run it as a windows service? Filip Wasilewski wrote: > [EMAIL PROTECTED] wrote: > > Hi all > >

Re: secure xmlrpc server?

2006-06-07 Thread Laszlo Nagy
Martin P. Hellwig wrote: > Laszlo Nagy wrote: > > Have a look at: > http://trevp.net/tlslite/ > C:\temp\ccc>python setup.py install running install running build running build_py running build_ext error: The .NET Framework SDK needs to be installed before building extensions f or Python. C:\t

Re: secure xmlrpc server?

2006-06-07 Thread Martin P. Hellwig
Laszlo Nagy wrote: > Martin P. Hellwig wrote: >> Laszlo Nagy wrote: >> >> Have a look at: >> http://trevp.net/tlslite/ >> > C:\temp\ccc>python setup.py install > running install > running build > running build_py > running build_ext > error: The .NET Framework SDK needs to be installed before b

Re: python socket proxy

2006-06-07 Thread Jeethu Rao
Simplest way would be to rename your python file with a .pyw extension instead of a .py extension. If you're looking for windows services, checkout win32serviceutil.ServiceFramework in pywin32. Jeethu Rao [EMAIL PROTECTED] wrote: > Hi > > Thanks for the reply. > > I found a proxy that works fo

Re: capture video from camera

2006-06-07 Thread aljosa
i had no intention to say that videocapture is bad but it's not what i'm looking for. concerning docs, everybody has their own view on how docs should look like. that said, i should have written more clearly what i'm looking for. -- http://mail.python.org/mailman/listinfo/python-list

Re: secure xmlrpc server?

2006-06-07 Thread Laszlo Nagy
Martin P. Hellwig írta: > Laszlo Nagy wrote: > >> Martin P. Hellwig wrote: >> >>> Laszlo Nagy wrote: >>> >>> Have a look at: >>> http://trevp.net/tlslite/ >>> >>> >> C:\temp\ccc>python setup.py install >> running install >> running build >> running build_py >> running build_ext >

Re: pyqt show wizard

2006-06-07 Thread David Boddie
Yves Glodt wrote: > I have a mainwindow in my pyqt application, and on click of a button I > want to start an assistant (wizard). > > I have create the wizard with the Qt Designer, generated the python code > with pyuic, imported it "from assistant import *", and subclassed it as > usual. > >

Re: pyqt show wizard

2006-06-07 Thread David Boddie
Summary of the usual mess made by the Google Groups web interface: I suspect that you really want to call w.exec_loop() instead, since this will only return control to the method after the user has finished interacting with the wizard. Take a look at the QWizard documentation for more informati

curses event handling

2006-06-07 Thread John Hunter
I have a curses app that is displaying real time data. I would like to bind certain keys to certain functions, but do not want to block waiting for c = screen.getch() Is it possible to register callbacks with curses, something like screen.register('keypress', myfunc) Thanks, JDH -- ht

Re: what are you (not) using python language for?

2006-06-07 Thread robert
hacker1017 wrote: > im just asking out of curiosity. > I am curious for what kind of (new) serious programs and projects the Python language and its offsprings like Pyrex would not be the optimal programming language currently? (Unless you completely misbelieve in Ruby) Device drivers, small

Re: Python language problem

2006-06-07 Thread baiju
May be you are looking for weakref module: http://www.python.org/doc/current/lib/module-weakref.html -- Baiju M -- http://mail.python.org/mailman/listinfo/python-list

Re: Django Quick Start with Schema Evolution Support

2006-06-07 Thread Ilias Lazaridis
[Replying to comp.lang.python, due to censorship on Django User] [additional notification of poster via email, as medium is changed] [EMAIL PROTECTED] wrote: > yep. i feel particularly hosed for trying to work with you offline to > synchronize our efforts. I don't think that telling me when yo

wddx problem with entities

2006-06-07 Thread Tim Arnold
I'm confused about why I get this error: UnicodeError: ASCII encoding error: ordinal not in range(128) when I try to load a wddx file containing this string: The image file, gif/aperçu.png, does not exist. When I loop through the file as if it's text and check the ord() value of

Re: secure xmlrpc server?

2006-06-07 Thread Martin P. Hellwig
Laszlo Nagy wrote: > http://trevp.net/tlslite/ - no exe installers. > http://sourceforge.net/projects/tlslite/ - no file packages to download > > :-( Download the zip and unpack it: http://trevp.net/tlslite/tlslite-0.3.8.zip Then there is an installers directory >> SimpleXMLRPCServer uses Simpl

Re: tkinter: making widgets instance or not?

2006-06-07 Thread John Salerno
John McMonagle wrote: > def __init__(self, master): > self.parent = master > self.entry1 = self.draw_entry('First Name:') > self.entry2 = self.draw_entry('Last Name:') Genius! :) Looks like you solved both of my problems! Thanks! -- http://mail.python.org/mailman/list

Re: what are you using python language for?

2006-06-07 Thread Dale Huffman
hacker1017 wrote: > im just asking out of curiosity. Embedded control system -- http://mail.python.org/mailman/listinfo/python-list

Re: what are you (not) using python language for?

2006-06-07 Thread Grant Edwards
On 2006-06-07, robert <[EMAIL PROTECTED]> wrote: > I am curious for what kind of (new) serious programs and projects the > Python language and its offsprings like Pyrex would not be the optimal > programming language currently? The stuff I work on for which I don't use Python: * Device driver

help to install MySQL-python module

2006-06-07 Thread ciccio
Dear python users, I have an account on a Linux Cluster. I installed python version 2.3.5 on my account. I need to install the module MySQL-python to interact with a MySQL server already installed on the cluster. However, I read the README file but running python setup.py build the system f

THE IMPORTANCE OF MAKING THE GOOGLE INDEX DOWNLOADABLE

2006-06-07 Thread gen_tricomi
THE IMPORTANCE OF MAKING THE GOOGLE INDEX DOWNLOADABLE I write here to make a request on behalf of all the programmers on earth who have been or are intending to use the Google web search API for either research purposes or for the development of real world applications, that Google make their i

Re: Django Quick Start with Schema Evolution Support

2006-06-07 Thread Steve Holden
Ilias Lazaridis wrote: > [Replying to comp.lang.python, due to censorship on Django User] > [additional notification of poster via email, as medium is changed] > And yet you still don't see why people call you a troll? This is completely inappropriate for comp.lang.python. Please take it elsewhe

Re: Django Quick Start with Schema Evolution Support

2006-06-07 Thread Ilias Lazaridis
Steve Holden wrote: > Ilias Lazaridis wrote: >> [Replying to comp.lang.python, due to censorship on Django User] >> [additional notification of poster via email, as medium is changed] >> > And yet you still don't see why people call you a troll? Missing liberal qualities? http://dev.lazaridis.com

Re: THE IMPORTANCE OF MAKING THE GOOGLE INDEX DOWNLOADABLE

2006-06-07 Thread Duncan Booth
gen_tricomi wrote: > Currently application programmers using the Google web search API are > limited to 1000 queries a day. This on the one hand is a reasonable > decision by Google because; limiting the queries will prevent harm on > the Google system by unnecessary automated queries; but it is a

Re: Django Quick Start with Schema Evolution Support

2006-06-07 Thread Brian
Ilias Lazaridis wrote: > http://lazaridis.com I would agree with you that this is a place to discuss python. However, your posts primarily deal with your expulsion from another group. Instead of discussing that, why don't your discuss the python technicalities of your project and leave the rest

Re: Django Quick Start with Schema Evolution Support

2006-06-07 Thread Steve Holden
Ilias Lazaridis wrote: > Steve Holden wrote: > >>Ilias Lazaridis wrote: >> >>>[Replying to comp.lang.python, due to censorship on Django User] >>>[additional notification of poster via email, as medium is changed] >>> >> >>And yet you still don't see why people call you a troll? > > > Missing li

Re: THE IMPORTANCE OF MAKING THE GOOGLE INDEX DOWNLOADABLE

2006-06-07 Thread Steve Holden
gen_tricomi wrote: > THE IMPORTANCE OF MAKING THE GOOGLE INDEX DOWNLOADABLE > > > > I write here to make a request on behalf of all the programmers on > earth who have been or are intending to use the Google web search API > for either research purposes or for the development of real world > app

Re: How to add few pictures into one

2006-06-07 Thread Lad
K.S.Sreeram wrote: > Lad wrote: > > I really would like to have ALL pictures in one file. > > import Image > > def merge_images( input_files, output_file ) : > img_list = [Image.open(f) for f in input_files] > out_width = max( [img.size[0] for img in img_list] ) > out_height = sum( [im

Re: cgi and popen

2006-06-07 Thread Thomas Guettler
Am Wed, 07 Jun 2006 14:54:41 +0200 schrieb Maarten van Veen: > A long story made short, I've build a python/cgi website consisting of > two pages. Page1 has a html form in which you can input a series of > queries. Then via Popen it starts a pythons search script, which stores > the results in

Re: 10GB XML Blows out Memory, Suggestions?

2006-06-07 Thread gregarican
Am I missing something? I don't read where the poster mentioned the operation as being CPU intensive. He does mention that the entirety of a 10 GB file cannot be loaded into memory. If you discount physical swapfile paging and base this assumption on a "normal" PC that might have maybe 1 or 2 GB of

Re: cgi and popen

2006-06-07 Thread Maarten van Veen
In article <[EMAIL PROTECTED]>, Thomas Guettler <[EMAIL PROTECTED]> wrote: > Am Wed, 07 Jun 2006 14:54:41 +0200 schrieb Maarten van Veen: > > > A long story made short, I've build a python/cgi website consisting of > > two pages. Page1 has a html form in which you can input a series of > > que

Re: Django Quick Start with Schema Evolution Support

2006-06-07 Thread Ilias Lazaridis
Brian wrote: > Ilias Lazaridis wrote: > >> http://lazaridis.com > > I would agree with you that this is a place to discuss python. > However, your posts primarily deal with your expulsion from another > group. Instead of discussing that, why don't your discuss the python > technicalities of your

Re: pyqt show wizard

2006-06-07 Thread Iain King
David Boddie wrote: > Summary of the usual mess made by the Google Groups web interface: > > > I suspect that you really want to call w.exec_loop() instead, since > this will only return control to the method after the user has finished > interacting with the wizard. > > > Take a look at the QWiza

Re: 10GB XML Blows out Memory, Suggestions?

2006-06-07 Thread fuzzylollipop
Fredrik Lundh wrote: > fuzzylollipop wrote: > > > you got no idea what you are talking about, anyone knows that something > > like this is IO bound. > > which of course explains why some XML parsers for Python are a 100 times > faster than other XML parsers for Python... > dependes on the CODE an

Very nice python IDE (windows only)

2006-06-07 Thread ago
I have just discovered Python Scripter by Kiriakos Vlahos and it was a pleasant surprise. I thought that it deserved to be signalled. It is slim and fairly fast, with embedded graphical debugger, class browser, file browser... If you are into graphical IDEs you are probably going to enjoy it. Windo

Re: CENSORSHIP - Django Project (Schema Evolution Support)

2006-06-07 Thread Rene Pijlman
Ilias Lazaridis: >What is the credibility and value of the provided "wikipedia" entry? Wikipedia always tells the Absolute Truth, because if it doesn't, we can edit it and fix it right away. -- http://mail.python.org/mailman/listinfo/python-list

Re: Django Quick Start with Schema Evolution Support

2006-06-07 Thread Ilias Lazaridis
Steve Holden wrote: > Ilias Lazaridis wrote: >> Steve Holden wrote: >>> Ilias Lazaridis wrote: ... This thread is now technical. Thank you for your comments. . -- http://lazaridis.com -- http://mail.python.org/mailman/listinfo/python-list

Re: PUDGE - Project Status, Alternative Solutions

2006-06-07 Thread Ilias Lazaridis
Ilias Lazaridis wrote: > Ilias Lazaridis wrote: >> What is going on with the pudge project? > > Any chance to get an comment on this? After a little bit off-list discussion, I understand that many python documentation projects stop at some point, and that efforts are in general not very synchro

Re: CENSORSHIP - Django Project (Schema Evolution Support)

2006-06-07 Thread Ilias Lazaridis
Rene Pijlman wrote: > Ilias Lazaridis: >> What is the credibility and value of the provided "wikipedia" entry? > > Wikipedia always tells the Absolute Truth, because if it doesn't, we can > edit it and fix it right away. fascinating! . -- http://lazaridis.com -- http://mail.python.org/mailman

Re: help to install MySQL-python module

2006-06-07 Thread Lou Losee
On 6/7/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > Dear python users, > > I have an account on a Linux Cluster. I installed python version 2.3.5 on my > account. I need to install the module MySQL-python to interact with a MySQL > server already installed on the cluster. > However, I rea

Re: curses event handling

2006-06-07 Thread Walter Dörwald
John Hunter wrote: > I have a curses app that is displaying real time data. I would like > to bind certain keys to certain functions, but do not want to block > waiting for > > c = screen.getch() > > Is it possible to register callbacks with curses, something like > > screen.register('ke

Re: 10GB XML Blows out Memory, Suggestions?

2006-06-07 Thread [EMAIL PROTECTED]
Thanks guys for all your posts... So I am a bit confusedFuzzy, the code I saw looks like it decompresses as a stream (i.e. per byte). Is this the case or are you just compressing for file storage but the actual data set has to be exploded in memory? fuzzylollipop wrote: > Fredrik Lundh wrote:

Re: help to install MySQL-python module

2006-06-07 Thread Tim Chase
>> error: invalid Python installation: unable to open >> /usr/local/lib/python2.3/config/Makefile (No such file or >> directory) > > Ernesto, Where did the install put Python - the obvious > situation is that the Makefile is not where the install of > MySQL-Python thinks it is. Some binary distro

creating and naming objects

2006-06-07 Thread Brian
I have a question that some may consider silly, but it has me a bit stuck and I would appreciate some help in understanding what is going on. For example, lets say that I have a class that creates a student object. Class Student: def setName(self, name) self.name = name def setId(

How do I automatically redirect stdout and stderr when using os.popen2?

2006-06-07 Thread mikem76
How do I automatically redirect stdout and stderr when using os.popen2 to start a long running process. If the process prints a lot of stuff to stdout it will eventually stop because it runs out of buffer space. Once I start reading the stdout file returned by os.popen2 then the process resumes.

Re: CENSORSHIP - Django Project (Schema Evolution Support)

2006-06-07 Thread Thorsten Kampe
* Ilias Lazaridis (2006-06-07 12:35 +) > [posted publicly to comp.lang.python, with email notification to 6 > recipients relevant to the topic] I think I have a deja-vu... Did someone say "Xah"?! T. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python to C converter

2006-06-07 Thread Carl Friedrich Bolz
Chance Ginger wrote: > If you are looking for a "real" python to C, well in this case > C++ look for the shedskin compiler. It will take a rather > nice subset of Python and generate C++ code from it. In which sense is shedskin a more "real" python to C/C++ compiler than some of the other menti

Re: 10GB XML Blows out Memory, Suggestions?

2006-06-07 Thread Diez B. Roggisch
fuzzylollipop wrote: > > Fredrik Lundh wrote: >> fuzzylollipop wrote: >> >> > you got no idea what you are talking about, anyone knows that something >> > like this is IO bound. >> >> which of course explains why some XML parsers for Python are a 100 times >> faster than other XML parsers for Pyt

Re: How do I automatically redirect stdout and stderr when using os.popen2?

2006-06-07 Thread Dennis Benzinger
[EMAIL PROTECTED] wrote: > How do I automatically redirect stdout and stderr when using os.popen2 > to start a long running process. If the process prints a lot of stuff > to stdout it will eventually stop because it runs out of buffer space. > Once I start reading the stdout file returned by os.p

Re: Concatenating dictionary values and keys, and further operations

2006-06-07 Thread Roberto Bonvallet
Girish said, through Gerard's forwarded message: > >Thanks a lot Gerard and Roberto.but i think i should explain the exact > >thing with an example. > >Roberto what i have right now is concatenating the keys and the > >corresponding values: > >e.g {'a':[1,2],'b':[3,4,5],'c':[6,7]} should give me >

Re: creating and naming objects

2006-06-07 Thread Tim Chase
> def createStudent(): > foo = Student() > /add stuff > > Now, suppose that I want to create another Student. Do I need > to name that Student something other than foo? What happens > to the original object? If you want to keep the old student around, you have to keep a reference to i

Re: creating and naming objects

2006-06-07 Thread Diez B. Roggisch
Brian wrote: > I have a question that some may consider silly, but it has me a bit > stuck and I would appreciate some help in understanding what is going > on. > > For example, lets say that I have a class that creates a student > object. > > Class Student: > def setName(self, name) >

Re: creating and naming objects

2006-06-07 Thread Dennis Benzinger
Brian wrote: > [...] > For example, lets say that I have a class that creates a student > object. > > Class Student: > def setName(self, name) > self.name = name > def setId(self, id) > self.id = id > > Then I instantiate that object in a method: > > def createStudent():

Re: How do I automatically redirect stdout and stderr when using os.popen2?

2006-06-07 Thread Grant Edwards
On 2006-06-07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > How do I automatically redirect stdout and stderr when using os.popen2 > to start a long running process. popen2 does redirect stdout to a file object. That's the whole point of using it. If you don't want a file object that's connec

Re: 10GB XML Blows out Memory, Suggestions?

2006-06-07 Thread Fredrik Lundh
fuzzylollipop wrote: > dependes on the CODE and the SIZE of the file, in this case > processing 10GB of file, unless that file is heavly encrypted or > compressed will, the process will be IO bound PERIOD! so the fact that for token, node in pulldom.parse(file): pass is 50-200% sl

Re: creating and naming objects

2006-06-07 Thread Steve Holden
Brian wrote: > I have a question that some may consider silly, but it has me a bit > stuck and I would appreciate some help in understanding what is going > on. > > For example, lets say that I have a class that creates a student > object. > > Class Student: > def setName(self, name) >

printing backslash

2006-06-07 Thread micklee74
hi i want to print something like this |\| first i tried it as string a = "|\|" it prints ok but when i put it to a list a = ["|\|"] it gives me '|\\|' .there are 2 back slashes...i only want one.. how can i properly escape it? I have tried [r"|\|"] , [r'\\'] but they do not work... thanks

Re: printing backslash

2006-06-07 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > i want to print something like this > > |\| > > first i tried it as string > > a = "|\|" > > it prints ok > > but when i put it to a list > > a = ["|\|"] > > it gives me '|\\|'. if you want to print "|\|", why are you printing the list? > there are 2 back slashe

Re: 10GB XML Blows out Memory, Suggestions?

2006-06-07 Thread gregarican
Point for Fredrik. If someone doesn't recognize the inherent performance differences between different XML parsers they haven't experienced the pain (and eventual victory) of trying to optimize their techniques for working with the albatross that XML can be :-) Fredrik Lundh wrote: > fuzzylollipop

Re: printing backslash

2006-06-07 Thread Tim Chase
> i want to print something like this > > |\| > > first i tried it as string > > a = "|\|" > > it prints ok > > but when i put it to a list > > a = ["|\|"] > > it gives me '|\\|' .there are 2 back slashes...i only want one.. how > can i properly escape it? > I have tried [r"|\|"] , [r'\\'] b

  1   2   >