On Sat, 28 Oct 2006 03:13:42 +0100, Steve Holden wrote:
>> Python is not evaluating the truth of the matter, but, as Ms. Creighton
>> would say, the "somethingness" of that which 10 > 5 evaluates to. (1
>> aka True)
>>
> >>> type(10>5)
>
> >>>
>
> It does seem that there is a specific t
Hi David
here is th output :
[EMAIL PROTECTED] PyQt-x11-gpl-3.16]# python configure.py -q
/usr/lib/qt-3.3/ -w
This is the GPL version of PyQt 3.16 (licensed under the GNU General
Public
License) for Python 2.4.2 on linux2.
Type 'L' to view the license.
Type 'yes' to accept the terms of the licens
Martin v. Löwis wrote:
> sturlamolden schrieb:
>
> > And why doesn't Python's mmap take an offset argument to handle large
> > files?
>
> I don't know exactly; the most likely reason is that nobody has
> contributed code to make it support that. That's, in turn, probably
> because nobody had the pr
[EMAIL PROTECTED] wrote:
> I am trying to compile Python 2.5 on AIX 5.3. I used
>
> building '_locale' extension
> ./Modules/ld_so_aix xlc_r -q64 -bI:Modules/python.exp
> build/temp.aix-5.3-2.5/home/pxadm/.test/Python-2.5/Modules/_localemodule.o
> -L/usr/local/lib -o build/lib.aix-5.3-2.5/_locale.s
Thank you,Fredrik,I see.
Fredrik Lundh wrote:
> steve wrote:
>
> > Can an argument to reference an object's attribute??
>
> sorry, cannot parse that sentence.
>
> the arguments to a method are objects, and objects have attributes. why
> do you find this surprising?
>
>
--
http://mail.python.o
see you over there!
--
http://mail.python.org/mailman/listinfo/python-list
At Friday 27/10/2006 23:13, Steve Holden wrote:
J. Clifford Dyer wrote:
> the one thing that Ms. Creighton points out that I can't get past is
> that Python, even with its bool type, *still* evaluates somethingness
> and nothingness, and True and False are just numbers with hats on.
>
> >>> Tru
J. Clifford Dyer wrote:
> I do see how mapping to Truth/Falsehood is more natural, and I do
> believe that one of the great things about python is that it feels
> natural in so many ways, and hence makes it easy to produce code, but
> the one thing that Ms. Creighton points out that I can't get
At Friday 27/10/2006 21:09, Ben Finney wrote:
> > >GLOBAL = object()
> > >
> > >def insert_ids(ids=GLOBAL):
> > >if ids is GLOBAL:
> > >ids = get_global_ids()
> >
> >The one disadvantage of this approach is that it complicates
> >pickling if/when you store the stentin
[EMAIL PROTECTED] schrieb:
> Hi,
>
> I am new to python and am currently writing my first application. One
> of the problems I quickly ran into, however, is that python's imports
> are very different from php/C++ includes in the sense that they
> completely wrap the imported script in a module obj
"Michael B. Trausch" writes:
> Ben Finney wrote:
> > Jean-Paul Calderone <[EMAIL PROTECTED]> writes:
> >
> >> 1) Write unit tests for your code. Keep writing unit tests until
> >> you have some that _don't pass_. Then fix your code so that they
> >> do. When you do further development, write
That was it. Once I added the other DLLs then it was able to find and
make the call.
Thanks for all the help,
Marc
Bruno Desthuilliers wrote:
> Mudcat a écrit :
> > Hi,
> >
> > I can't figure out why ctypes won't load the DLL I need to use. I've
> > tried everything I can find (and the ctypes we
Gabriel Genellina <[EMAIL PROTECTED]> writes:
> At Friday 27/10/2006 00:48, Michael Naunton wrote:
>
> >As noted in the problem, a deck has 52 cards. cardsLeft(self)
> >therefore always returns 52.
>
> Uhm, maybe it's a matter of language, but how do you name the pile of
> cards remaining to be d
Gabriel Genellina <[EMAIL PROTECTED]> writes:
> At Friday 27/10/2006 11:40, Aahz wrote:
> > Ben Finney wrote:
> > >GLOBAL = object()
> > >
> > >def insert_ids(ids=GLOBAL):
> > >if ids is GLOBAL:
> > >ids = get_global_ids()
> >
> >The one disadvantage of this approach is
[EMAIL PROTECTED] (Aahz) writes:
> Ben Finney <[EMAIL PROTECTED]> wrote:
> >Use a unique do-nothing object, defined at the module level so
> >callers can easily get at it [...]
> >
> >GLOBAL = object()
> >
> >def insert_ids(ids=GLOBAL):
> >if ids is GLOBAL:
> >ids = ge
At Friday 27/10/2006 19:48, [EMAIL PROTECTED] wrote:
Wouldn't importing and re-importing the same modules cause considerable
resource bulk? Or does python cache that stuff?
No. Once a module is imported by the first time, the module object is
placed in sys.modules; if a subsequent import find
Fulvio <[EMAIL PROTECTED]> writes:
> On Friday 27 October 2006 06:48, Ben Finney wrote:
> > There is always the option to not send messages to this list using
> > that mail server
>
> Once again sorry for that. I'll take action to switch to another
> mailserver. Thank for the advice
That would b
I do see how mapping to Truth/Falsehood is more natural, and I do
believe that one of the great things about python is that it feels
natural in so many ways, and hence makes it easy to produce code, but
the one thing that Ms. Creighton points out that I can't get past is
that Python, even with
[EMAIL PROTECTED] wrote:
> Wouldn't importing and re-importing the same modules cause considerable
> resource bulk? Or does python cache that stuff?
If a module is already imported, then the import statement just uses the
cached module. However, you can force a full reload of the module using
th
Wouldn't importing and re-importing the same modules cause considerable
resource bulk? Or does python cache that stuff?
On Oct 27, 6:28 pm, Gabriel Genellina <[EMAIL PROTECTED]> wrote:
> At Friday 27/10/2006 18:53, [EMAIL PROTECTED] wrote:
>
> >I am new to python and am currently writing my first
At Friday 27/10/2006 18:53, [EMAIL PROTECTED] wrote:
I am new to python and am currently writing my first application. One
of the problems I quickly ran into, however, is that python's imports
are very different from php/C++ includes in the sense that they
completely wrap the imported script in
At Friday 27/10/2006 00:48, Michael Naunton wrote:
It is clear your professor does not understand computer science. Switch
to a new university now.
As noted in the problem, a deck has 52 cards. cardsLeft(self) therefore
always returns 52.
This may seem pendantic, but CS is mostly about think
That sounds cool to me.. I am looking for a way to save(self) (csound
routines).. and I saw your background in religion :) so I will head on
over there
https://sourceforge.net/project/showfiles.php?group_id=156455
Omar wrote:
> I've been learning some programming during my little sabbatical (m
On Fri, 27 Oct 2006 11:25:09 -0700
Carl Banks <[EMAIL PROTECTED]> wrote:
#> P.S. binary trees do have length: it's the number of nodes, just as
#> the number of keys is the length of a dict. I can't think of any
#> objects that use indexing but don't have a length,
Well, infinite lists (either ci
Hi,
I am new to python and am currently writing my first application. One
of the problems I quickly ran into, however, is that python's imports
are very different from php/C++ includes in the sense that they
completely wrap the imported script in a module object. One of the
problems with this was
Hi,
I am using Karrigell & Sprite for webdevelopment. Sprite is placed in
the main folder of my app. I got a sub-folder called admin. I am using
the below line to import Sprite within the subfolder.
from ..sprite import Sprite
Most of the time it works. However time to time, it will throw an erro
Paul McGuire wrote:
> "Wijaya Edward" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>> Hi all,
>>
>> I was trying to split a string that
>> represent chinese characters below:
>>
>>
> str = '\xc5\xeb\xc7\xd5\xbc'
> fields2 = split(r'\\',str)
>
> There are no backslash char
On Friday 27 October 2006 16:36, Magnus Lycka wrote:
> David Boddie wrote:
>> You're forgetting that Qt isn't just a widget toolkit.
>
> I suspect that the non-GUI parts are (just like in Wx) C++ stuff
> which is more or less equivalent with things that are either Python
> builtins or parts of Pyt
On 27 Oct 2006 12:14:57 -0700, Adam Jones <[EMAIL PROTECTED]> wrote:
>
> emacs
>
(...)
> > It would be fine for a begginer, right?
>
> Probably not. I think you have to spend enough time with environments
Actually, I've read similar things before and I don't quite get it. I
guess all of us are
On Thursday 26 October 2006 23:43, you wrote:
> Hi all,
>
> I was trying to split a string that
>
> represent chinese characters below:
> >>> str = '\xc5\xeb\xc7\xd5\xbc'
> >>> print str2,
>
> ???
>
> >>> fields2 = split(r'\\',str)
> >>> print fields2,
>
> ['\xc5\xeb\xc7\xd5\xbc']
>
> But why the s
Fredrik Lundh wrote:
> John Salerno wrote:
>
>>> If you have some time to spare, why not drop by, pick some random
>>> article, and let us know how it can be improved:
>>>
>>> http://effbot.org/random/pyfaq
>>
>> How do we log in to make changes?
>
> as with the 'infogami' version, you don't
At Friday 27/10/2006 16:35, [EMAIL PROTECTED] wrote:
If I'm building a function to accept optional parameters, do I need to
allow for the capture of both the positional arguments as well as the
keyword arguments? If it doesn't make sense to allow keyword arguments,
can I just write:
def myfunc(
At Friday 27/10/2006 11:40, Aahz wrote:
>GLOBAL = object()
>
>def insert_ids(ids=GLOBAL):
>if ids is GLOBAL:
>ids = get_global_ids()
The one disadvantage of this approach is that it complicates pickling
if/when you store the stentinel in an instance. There are ways
If I'm building a function to accept optional parameters, do I need to
allow for the capture of both the positional arguments as well as the
keyword arguments? If it doesn't make sense to allow keyword arguments,
can I just write:
def myfunc(a, b, *tup):
...
and be done with it?
TIA
--
http:
Roberto Bonvallet wrote:
> Omar wrote:
> > more to come!
>
> Please, use a more meaningful subject next time, like "Integration of
> Python and Flash" or "Where can I find vido tutorials". That way it will
> be easier to people that knows about the subject to find your message and
> answer you.
>
Hi,
I am using Karrigell & Sprite for web development. Sprite is placed in
the main
folder of my app. I got a sub-folder called admin. I am using the below
line to import Sprite from the subfolder.
from ..sprite import Sprite
Most of the time it works. However time to time, it will throw an error
>> What's your favorite IDE?
>
> emacs
>
>> What do you like about it?
>
> It does just about everything. It can edit just about every kind of
> code I use, read my mail, connection to irc ... everything. Well,
> except order pizza, but I think it might be possible to make that
> happen as well.
Hi,
I am using Karrigell & Sprite for web development. Sprite is placed in
the main
folder of my app. I got a sub-folder called admin. I am using the below
line to import Sprite from the subfolder.
from ..sprite import Sprite
Most of the time it works. However time to time, it will throw an error
I've been learning some programming during my little sabbatical (mostly
python), and I thought it'd be cool to see if other people are
interested in programming for music theory. So I started a Music
Theory Programming google group. Consider yourselves invited! It'll
be a place for people with d
John Salerno wrote:
>> If you have some time to spare, why not drop by, pick some random
>> article, and let us know how it can be improved:
>>
>> http://effbot.org/random/pyfaq
>
> How do we log in to make changes?
as with the 'infogami' version, you don't -- if you find something that
nee
[EMAIL PROTECTED] wrote:
> Recently I've had some problems with PythonWin when I switched to
> Py2.5, tooka long hiatus, and came back. So now I'm without my god sent
> helper, and I'm looking for a cool replacement, or some advocation to
> reinstall/setup PyWin. But the Python website's list is i
> Robert, that's not the point. I do have enough Python knowledge to
> understand this (totally trivial) code !-)
>
> What I don't understand is how this code is supposed to save you from
> having to actually write both complex-key-expr and
> expensive-calc-expression more than once. You need them
thank you all for your replies
--
http://mail.python.org/mailman/listinfo/python-list
Fulvio <[EMAIL PROTECTED]> writes:
> ***
> Your mail has been scanned by InterScan MSS.
> ***
Delighted to know that.
>
> On Friday 27 October 2006 17:31, R. Bernstein wrote:
> > pydb (http://bashdb.sf.net/pydb) has a both the ability to trace lines
>
> I
On 2006-10-27, Donn Cave <[EMAIL PROTECTED]> wrote:
> In article <[EMAIL PROTECTED]>,
> Antoon Pardon <[EMAIL PROTECTED]> wrote:
> ...
>> I think you are incorrect.
>
> Thanks! I rest my case!
>
>> And how do I express that a number has to be greater than
>> 100 into a Nothing vs Something dichot
On Fri, 27 Oct 2006 16:40:44 +0100, Matthew Warren <[EMAIL PROTECTED]> wrote:
>Hallo,
>
import telnetlib
l=telnetlib.Telnet('dbprod')
l.interact()
>telnet (dbprod)
>
>Login:
>
>
>Could anyone show how the above would be written using the twisted
>framework? All I'm after is a more 'i
Friend,
I'm always looking for good and intelligent individuals like you to
visit my website, www.ChezBrandon.com , and it has pictures of
beautiful women, information about aged clones, and a link to Ultimate
Fighting Championship, a very good show.
My name is Brandon, and I'm in my 20s, am a co
On 2006-10-27, Grant Edwards <[EMAIL PROTECTED]> wrote:
> On 2006-10-27, Irmen de Jong <[EMAIL PROTECTED]> wrote:
>
>>> how to set source ip-address when do __socket.connect((host, port))
>>> on a machine that have a several ip-adresses?
>>>
>>> __socket = socket.socket(socket.AF_INET, socket.SOCK
Steven D'Aprano wrote:
> But in this specific instance, I don't see any advantage to explicitly
> testing the length of a list. Antoon might think that is sufficiently
> polymorphic, but it isn't. He cares whether the object has zero _length_,
> but for true polymorphism, he should be caring about
On 2006-10-27, Irmen de Jong <[EMAIL PROTECTED]> wrote:
>> how to set source ip-address when do __socket.connect((host, port))
>> on a machine that have a several ip-adresses?
>>
>> __socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
>> __socket.connect((host, port))
>
> sock.connect ( (
On 2006-10-27, Steven D'Aprano <[EMAIL PROTECTED]> wrote:
> On Fri, 27 Oct 2006 09:16:57 +, Antoon Pardon wrote:
>
>>> I think it is a good time to remind people of some extremely well-thought
>>> out opposition to the introduction of bools to Python from Laura Creighton:
>>>
>>> http://mail.py
Fredrik Lundh wrote:
> If you have some time to spare, why not drop by, pick some random
> article, and let us know how it can be improved:
>
> http://effbot.org/random/pyfaq
How do we log in to make changes?
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
Though I posted about this article earlier, reposting it with a more
appropriate title, to make it easier for searches.
"Using xtopdf, a PDF creation toolkit"
URL: http://www.packtpub.com/article/Using_xtopdf
This is an article by me, written for Packt Publishing, about how to
use my xtopdf
On 2006-10-27, Steven D'Aprano <[EMAIL PROTECTED]> wrote:
> But in this specific instance, I don't see any advantage to explicitly
> testing the length of a list. Antoon might think that is sufficiently
> polymorphic, but it isn't. He cares whether the object has zero _length_,
> but for true poly
Maksim Kasimov wrote:
> Hi,
>
> how to set source ip-address when do __socket.connect((host, port))
> on a machine that have a several ip-adresses?
>
> many thanks for advice.
>
> __socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
> __socket.connect((host, port))
>
>
sock.connect (
In article <[EMAIL PROTECTED]>,
Antoon Pardon <[EMAIL PROTECTED]> wrote:
...
> I think you are incorrect.
Thanks! I rest my case!
> And how do I express that a number has to be greater than
> 100 into a Nothing vs Something dichotomy? Declare all
> greater numbers as Something and the rest as N
In <[EMAIL PROTECTED]>, Bjoern Schliessmann wrote:
>> This email is confidential and may be privileged. If you are not
>> the intended recipient please notify the sender immediately and
>> delete the email from your computer.
>
> Am I the inteded recipient? I'm not listed in the headers.
This is
In <[EMAIL PROTECTED]>, gmarkowsky
wrote:
> Hi all,
>
> I'm trying to import a class from a module. The class looks like this:
> class App:
>
> def __init__(self, master):
>
> frame = Frame(master)
> frame.pack()
>
> self.button = Button(frame, text=text_1, command=
***
Your mail has been scanned by InterScan MSS.
***
On Friday 27 October 2006 06:48, Ben Finney wrote:
> There is always the option to not send messages to this list using
> that mail server
Once again sorry for that. I'll take action to switch to another
Hi all,
I'm trying to import a class from a module. The class looks like this:
class App:
def __init__(self, master):
frame = Frame(master)
frame.pack()
self.button = Button(frame, text=text_1, command= self.comm_1)
self.button.pack(side=LEFT)
self.h
Stephan Kuhagen wrote:
> "Michael B. Trausch" <"mike$#at^&nospam!%trauschus"> wrote:
>
> > Basically, is there something that will log every line of Python code
> > executed, in its order of execution, to a text file so that I can see
> > what is (or isn't) happening that I am expecting?
>
> Python
steve wrote:
> Can an argument to reference an object's attribute??
sorry, cannot parse that sentence.
the arguments to a method are objects, and objects have attributes. why
do you find this surprising?
--
http://mail.python.org/mailman/listinfo/python-list
Matthew Warren wrote:
> Could anyone show how the above would be written using the twisted
> framework? All I'm after is a more 'intelligent' interactive
> telnet session (handles 'vi' etc..) rather than the full
> capabilities of the twisted framework.
Not done this until now, but have a look at
Hallo,
>>> import telnetlib
>>> l=telnetlib.Telnet('dbprod')
>>> l.interact()
telnet (dbprod)
Login:
Could anyone show how the above would be written using the twisted
framework? All I'm after is a more 'intelligent' interactive telnet
session (handles 'vi' etc..) rather than the full capabilit
I need to embed the ability to create a Clarify Case in a python
program I have written. Unfortunately my familiarity with Clarify is
very limited at this point.
Is there a module out there that makes this process semi-painless? I
couldn't find one googling around... Has anyone implemented some
robert wrote:
> Bruno Desthuilliers wrote:
>> robert wrote:
>>> Bruno Desthuilliers wrote:
robert a écrit :
(snip)
> class MemoCache(dict): # cache expensive Objects during a session
> (memory only)
>def memo(self, k, f):
>try: return self[k]
>excep
You can test it here: http://www.sqlinform.com
--
http://mail.python.org/mailman/listinfo/python-list
On 10/26/06, Michael B. Trausch wrote:
Kenneth McDonald wrote:>> With the most recent edition of PyDev, I find Eclipse works quite well
> for me.>Since you mentioned it, I have a question that searching around andpoking around has not solved for me, yet.Do you have aut
David Boddie wrote:
> You're forgetting that Qt isn't just a widget toolkit.
I suspect that the non-GUI parts are (just like in Wx) C++ stuff
which is more or less equivalent with things that are either Python
builtins or parts of Python's standard library. Besides, getting
those proprietary depen
Méta-MCI wrote:
> Hi! (***sorry for my approximative english***)
That's ok. Quite amusing to read that you were repaired.
> A few months ago, I needed a console, under Windows.
> After several research, I selected the console of EffBot.
>
> Thank you very much, Fredrik Lundh, for this small
Fulvio wrote:
> ***
> Your mail has been scanned by InterScan MSS.
> ***
>
>
> HI,
>
> I've a small doubt regarding the way to save a configuration file on the file
> manipulated by ConfigParser.
> As far as I could understand this:
>
> cp = ConfigParser
I just thought I would put my 2 cents in on this issue. Others
have suggested that unit tests are an excellent way of debugging
your code and I agree. I also find that writing code from the
outset using a logging class (there is one in the standard
library) that allows you to create log files of
joe Li wrote:
> I saw the following code, but I don't understand the rule for virtual
> function that appears in two bases
> Could anyone explain it for me, thanks.
http://docs.python.org/tut/node11.html#SECTION001151
--
http://mail.python.org/mailman/listinfo/python-list
Fulvio schrieb:
> ***
> Your mail has been scanned by InterScan MSS.
> ***
>
>
> HI,
>
> I've a small doubt regarding the way to save a configuration file on the file
> manipulated by ConfigParser.
> As far as I could understand this:
>
> cp = ConfigPars
Can an argument to reference an object's attribute??
Fredrik Lundh wrote:
> steve wrote:
>
> > The example code from: http://sjbrown.ezide.com/games/example1.py.html
> > ...
> > def Notify( self, event ):
> > if not isinstance(event, TickEvent): Debug( "
> > Message: " + event.name
[EMAIL PROTECTED] wrote:
> [EMAIL PROTECTED] PyQt-x11-gpl-3.16]# python configure.py -q
> /usr/lib/qt-3.3/
> This is the GPL version of PyQt 3.16 (licensed under the GNU General
> Public
> License) for Python 2.4.2 on linux2.
[...]
> Creating features file...
> Error: Unable to build mkfeatures u
Fulvio wrote:
> ***
> Your mail has been scanned by InterScan MSS.
> ***
>
>
> On Thursday 26 October 2006 16:43, Wijaya Edward wrote:
> > How can we print out the hidden character like
> > "\n", "\r" etc in Python?
>
> If it's meant to evidentiate then you
In article <[EMAIL PROTECTED]>,
Ben Finney <[EMAIL PROTECTED]> wrote:
>
>Fourth, if you have decided that a magic sentinel value is called for
>but None is already taken for some other purpose, don't use a
>string. Use a unique do-nothing object, defined at the module level so
>callers can easily
On 27-Oct-06, at 2:25 AM, Leo Kislov wrote:
>
> Ivan Vinogradov wrote:
>> ...
>>
>> call("core/main") works but uses .. of core for input/output.
>>
>> call("core/main",cwd="core") and call("main",cwd="core") both
>> result in
> [snip exception]
>
> Usually current directory is not in the PATH o
Hi Robin,
You may want to use a spell checker for announcements and for the
wxpython.org website. For example, the first paragraph of your
announcement contains the words "plust" and "pacakges", and the word
"pacakge" can also be found on the following pages:
www.wxpython.org/download.php
www.wxp
***
Your mail has been scanned by InterScan MSS.
***
On Friday 27 October 2006 17:31, R. Bernstein wrote:
> pydb (http://bashdb.sf.net/pydb) has a both the ability to trace lines
I faced several time that pydb stuck without sign of errors. In the other han
Yang> Note: I realize hotshot is obsoleted by cProfile, but 2.5 breaks
Yang> several packages I depend on. I'm using Python 2.4.3.
Not a direct answer to your question, but the cProfile module runs just fine
under 2.4.
Skip
--
http://mail.python.org/mailman/listinfo/python-list
Really appreciate all the all the different answers and learning tips!
--
http://mail.python.org/mailman/listinfo/python-list
Test
--
http://mail.python.org/mailman/listinfo/python-list
I created a simple test case showing the zope.interface problem. Just
pass the following file to profile.py (i.e. the 'profile' module in
your Python standard library, run as a standalone app). The culprit
*seems* to be Twisted. Any ideas? Thanks in advance.
#!/usr/bin/env python
"""
error i get:
Bruno Desthuilliers wrote:
> robert wrote:
>> Bruno Desthuilliers wrote:
>>> robert a écrit :
>>> (snip)
class MemoCache(dict): # cache expensive Objects during a session
(memory only)
def memo(self, k, f):
try: return self[k]
except KeyError:#<
Bernard Lebel wrote:
> Hi,
>
> That's because I'm using Python through another application, via the
> pywin32 extensions. When that other application starts, it performs
> several thousands of file requests (we're talking 4,500, roughly) in
> the Python installation, locations where there are Pyth
Tim Roberts wrote:
> "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>> Suppose I have a dos format text file. The following python code will
>> print ^M at the end. I'm wondering how to print it in unix format.
>>
>> fh = open(options.filename)
>> for line in fh.readlines()
>> print line,
>
> Are
On Fri, 27 Oct 2006 12:54:35 +0100, Steve Holden wrote:
> Antoon Pardon wrote:
>> On 2006-10-27, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
>>
>>>Antoon Pardon wrote:
>>>
>>>
>since you never publish any code,
This is not True. You shouldn't confuse your lack of recollection
with r
***
Your mail has been scanned by InterScan MSS.
***
HI,
I've a small doubt regarding the way to save a configuration file on the file
manipulated by ConfigParser.
As far as I could understand this:
cp = ConfigParser.ConfigParser
cp.set(section,option)
***
Your mail has been scanned by InterScan MSS.
***
On Thursday 26 October 2006 16:43, Wijaya Edward wrote:
> How can we print out the hidden character like
> "\n", "\r" etc in Python?
If it's meant to evidentiate then you should scan each byte an print i
***
Your mail has been scanned by InterScan MSS.
***
On Thursday 26 October 2006 02:56, John Salerno wrote:
> >>> s = 'hello'
> >>> s == True
> False
> >>> if s:
> print 'hi'
>
this isn't only a python behavior.
the "if" test is valid for all no
I removed my previous post about this topic because I apparently have
pasted the wrong code. Sorry for the confusion and thanks for being
patient.
I am having problem to kill the following script completely. The script
basically does the following. The main thread creates a new thread,
which does
Original Message
Subject: Using cElementTree and elementtree.ElementInclude
Date: Mon, 23 Oct 2006 09:40:24 -0500
From: Mark E. Smith <[EMAIL PROTECTED]>
Organization: AEDC
To: python-list@python.org
> cElementTree cannot hold ElementTree instances.
>
> can you post a small but
olive wrote:
> > Michael B. Trausch wrote:
> >
>
>> >> Yep. Still does it.
>>
> >
> > I'm running PyDev 1.2.4 without completion problem so far.
> >
> > Are you up to date ?
> >
> > Maybe you should install the latest from scratch.
> >
>
>
>Yep, I am up to date. As I said, I am t
"Wijaya Edward" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Hi,
>
> How can we slurp all content of a single file
> into one variable?
>
Please don't double-post your questions. Now you have two threads running
with people answering the same question.
-- Paul
--
http://m
Travis E. Oliphant wrote:
> We are very pleased to announce the release of NumPy 1.0 available for
> download at http://www.numpy.org
Congratulations to you and the other NumPy developers for completing
this major undertaking. I would also like to express my sincere
gratitude for making this mak
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> myfile_content is an object and you have only opened the file. Python
> doesn't yet know whether you want to read it, copy it etc.
>
> to read it try
>
> text = myfile_content.readlines()
> print text
>
> this should be in most tutoria
"Wijaya Edward" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Hi all,
>
> I was trying to split a string that
> represent chinese characters below:
>
>
str = '\xc5\xeb\xc7\xd5\xbc'
print str2,
> ???
fields2 = split(r'\\',str)
print fields2,
> ['\xc5\xeb\xc7\xd
olive wrote:
> Michael B. Trausch wrote:
>
>> Yep. Still does it.
>
> I'm running PyDev 1.2.4 without completion problem so far.
>
> Are you up to date ?
>
> Maybe you should install the latest from scratch.
>
Yep, I am up to date. As I said, I am totally confused.
-- Mike
--
http
1 - 100 of 142 matches
Mail list logo