[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
> -
> 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
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
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
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
> > [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
Desktop application development
--
http://mail.python.org/mailman/listinfo/python-list
scientific computing
testing systems
hobby: games. check http://mashebali.com/?Chess_2
--
http://mail.python.org/mailman/listinfo/python-list
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
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)
>>>
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", "
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
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
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
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
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
>>> 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
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
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
[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
[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
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
[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
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
>
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:
>
>
> 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
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
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
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
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
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
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
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
Laszlo Nagy wrote:
Have a look at:
http://trevp.net/tlslite/
--
mph
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
[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
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
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
> "[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
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
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
> >
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
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
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
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
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
>
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. > >
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
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
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
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
[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
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
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
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
hacker1017 wrote:
> im just asking out of curiosity.
Embedded control system
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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:
>> 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
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
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.
* 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
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
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
[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
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
>
> 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
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)
>
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():
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
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
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)
>
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
[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
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
> 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 - 100 of 195 matches
Mail list logo