On 2006-10-11, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote:
>
> Now the real question : what if the object is not an instance of any of
> the types, but still support the expected interface ?
>
one possible answer: Use ZopeInterfaces
(and ask objects 'do you implement interface X' rather than 'a
On 2006-10-11, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote:
> A.T.Hofkamp wrote:
>> On 2006-10-11, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote:
>>> Now the real question : what if the object is not an instance of any of
>>> the types, but still support
On 2006-10-20, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hello.
>
> Is there any good information about python's internals and semantic? I
> mean "under the hood".
Not exactly 'under the hood', but very close is the Python/C API.
You can learn a great deal by reading the Extending&Embedding m
On 2006-06-02, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi all,
> After doing import file i am updating that file. Later i am
> accessing a dictionary contained in that
> file. Eventhough changes are reflected in the file... When i
> access a dictionary those changes are
> not there. I believ
On 2006-06-08, Frank Millman <[EMAIL PROTECTED]> wrote:
> I would rather make a decision now, otherwise I will have a lot of
> changes to make later on. Does anyone have any recommendations?
Did you consider XMPP?
With XMPP you create XML streams between your server and the client.
XMPP is an open
On 2007-05-31, Thorsten Kampe <[EMAIL PROTECTED]> wrote:
> * (31 May 2007 12:15:48 -0700)
>> On May 31, 12:44 pm, Thorsten Kampe <[EMAIL PROTECTED]> wrote:
>> > This is a fairly general question: is there some kind of module or
>> > framework that allows building a tree like structure from certain
On 2007-06-01, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote:
>
> FWIW, I still don't get why people insist on believing that C++ and Java
> have anything to do with OO !-)
>
> (and yes, it's friday...)
Good marketing.
Albert
--
http://mail.python.org/mailman/listinfo/python-list
On 2007-06-01, Sergey Dorofeev <[EMAIL PROTECTED]> wrote:
> Hello all!
>
> Please help, is there way to use sub-expressions in lambda?
> For example, if I want to calculate sin(x^2)+cos(x^2) I must code:
> lambda x: sin(x*x)+cos(x*x)
> How to make x*x to be evaluated once?
lambda x: (lambda y: sin
On 2007-06-27, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> HI
> I'm currently using Python. I find that a instance variable must
> confined with self,
> for example:
> class a:
> def __init__(self):
> self.aa=10
> def bb(self):
> print self.aa # See .if in c++,I could
On 2007-06-27, Alex Martelli <[EMAIL PROTECTED]> wrote:
> A.T.Hofkamp <[EMAIL PROTECTED]> wrote:
>
>> I think that again now with the default implementation of the
>> object.__eq__ and object.__hash__ methods. I believe these methods should
>> not exist unt
On 2007-06-28, Alan Isaac <[EMAIL PROTECTED]> wrote:
> A.T.Hofkamp wrote:
>
>>>>>a = Car2(123)
>>>>>b = Car2(123)
>>>>>a == b
>>
>> True
>>
>>>>>set([a,b])
>>
>> set([Car2(123), Car2(123)])
&
On 2007-06-29, Steve Holden <[EMAIL PROTECTED]> wrote:
> Just the same there are sound reasons for it, so I'd prefer to see you
> using "counterintuitive" or "difficult to fathom" rather than "broken"
> and "wrong".
You are quite correct, in the heat of typing an answer, my wording was too
stron
On 2007-06-28, Roy Smith <[EMAIL PROTECTED]> wrote:
> In article <[EMAIL PROTECTED]>,
> "A.T.Hofkamp" <[EMAIL PROTECTED]> wrote:
>
>> In object oriented programming, objects are representations of values, and
>> the
>> system shouldn't
On 2007-06-29, Gabriel Genellina <[EMAIL PROTECTED]> wrote:
> En Thu, 28 Jun 2007 11:38:56 -0300, A.T.Hofkamp <[EMAIL PROTECTED]>
> escribió:
>
>> The point I intended to make was that having a default __hash__ method on
>> objects give weird results that not
On 2007-06-29, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I want to end the execution of the command when the user closes my
> application.
>
> Right now I'm using an object my_child of type subprocess.Popen to
> execute the command, inside a thread with an infinite loop where we
> constantly a
On 2007-04-24, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi,
> How do i right adjust my output using python.I need a output
> something like this:
> DID= 0x01,0x02,0x03,0x05,0x06,0x07,0x2B,0x30,0x31,0x4D,0x4E,
> 0x51,0x52,0x53,0x55,
> minlength= 3, 3, 4, 2, 10, 10, 40, 2
On 2007-05-06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hey,
>
> I'm writing a script to generate code. I'm a bit tired of typing
> outfile.write(). Does python have a way to c-like macros? Every
> instance of o(...) in the code will be replaced by outfile.write(...)?
Just in case you do
On 2007-08-11, Adam W. <[EMAIL PROTECTED]> wrote:
> After a fair amount of troubleshooting of why my lists were coming
> back a handful of digits short, and the last digit rounded off, I
> determined the str() function was to blame:
>
foonum
> 0.0071299720384678782
str(foonum)
> '0.007129
On 2007-08-15, Paul McGuire <[EMAIL PROTECTED]> wrote:
> On Aug 14, 8:49 pm, Erik Max Francis <[EMAIL PROTECTED]> wrote:
>
> So if by '0x' you meant -1, then change this line to use -1.
> Otherwise, if you really meant 4294967295L, leave it at 0x and
> move on.
A third option is to
On 2007-08-15, Jorgen Bodde <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I am looking into using Python to introduce dynamic behavior in my
> C++, e.g. something like a simulation where objects can interact with
> eachother. I know Python can be called from C++, but is it possible to
> call a binary co
On 2007-08-15, Larry Bates <[EMAIL PROTECTED]> wrote:
>
> What are they teaching in schools these days? I see questions like this and
> the
> equally perplexing "why don't floats represent numbers exactly?" or the mildy
> amusing "how do I write bytes not characters to a file" questions at least
On 2007-08-19, yagyala <[EMAIL PROTECTED]> wrote:
> Hi.
>
> one of those standards is that the comments for each routine must
> indicate every other routine that it calls. As I try to keep my
> to do this by hand. Does anyone know of a tool that could do this for
> me, or at least a tool that can
On 2007-08-24, Nick Maclaren <[EMAIL PROTECTED]> wrote:
> people actually use regular expressions for. Not the subject
> domain, but the construction of the regular expressions.
This is easy.
I use RE for checking whether some input matches a certain pattern, and
optionally, to extract some speci
On 2007-08-28, Davy <[EMAIL PROTECTED]> wrote:
> On Aug 28, 11:00 am, Davy <[EMAIL PROTECTED]> wrote:
>> Hi all,
>>
>> It is well known that Python is appreciated for its merit of concise.
>> However, I found the over concise code is too hard to understand for
>> me.
>>
>> Consider, for instance,
>
On 2007-09-04, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Thanks guys. Changing to how Python does things has a lot of geting
> used to!
That's part of the fun :-)
> Do any of you have any ideas on the best way to do the following
> problem:
>
> Each loop I perform, I get a new list of String
On 2007-09-05, n o s p a m p l e a s e <[EMAIL PROTECTED]> wrote:
> Suppose I have a matlab script mymatlab.m. How can I call this script
> from a python script?
use the mlabwrap module
Albert
--
http://mail.python.org/mailman/listinfo/python-list
On 2007-09-05, Martin P. Hellwig <[EMAIL PROTECTED]> wrote:
> Martin v. Löwis wrote:
> Eingeben = Input: (A bit of) data from outside the function
> Ausgeben = Output: (A bit of) data to display, network
> connection or file
> Zurückgeben = Return: (altered)(bits of) data (from Input)
> to Out
On 2007-09-07, NeoGregorian <[EMAIL PROTECTED]> wrote:
> I tried instead to use:
>
> lines = []
> line = proc.stdout.readline()
> while line :
> lines.append(line)
> line = proc.stdout.readline()
>
> This prints out everything except the ">" line, which is good. But
> then freezes while wai
On 2007-09-10, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I want to be able print out the Steps as a visual representation so
> that I can show
> 1. The order the steps started
> 2. The duration of the steps
>
> i.e. a print out such as:
>
>
> [a]
>[ b ]
> [
On 2007-09-11, Wiseman <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> OK - it works in WindowsXP.
> I installed "enchant" on my SuSE 10.0 (using YAST).
> The enchant Suse package looks like a general Linux package, not a
> Python specific.
You'd seem to be right judging by this web-page:
http://www.nove
On 2007-09-13, Amit N <[EMAIL PROTECTED]> wrote:
> Hi guys,
>
> I tend to ramble, and I am afraid none of you busy experts will bother
> reading my long post, so I will try to summarize it first:
I haven't read the details, but you seem to aim for a single python program
that does 'it'. A single
On 2007-03-10, Paul Rubin wrote:
> Does anyone have an implementation of a distributed queue? I.e. I
> have a long running computation f(x) and I'd like to be able to
> evaluate it (for different values of x) on a bunch of different
batchlib and the underlying exec_proxy are designed to handle e
On 2007-04-12, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Goodmorning people :)
> I have just started to learn this language and i have a logical
> problem.
> I need to write a program to parse various file of text.
> Here two sample:
>
> ---
> trial text bla bla bla bla error
>
On 2007-09-17, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> It seems that another solution is gobject.io_add_watch, but I don't
> see how it tells me how much I can read from the file - if I don't
> know that, I won't know the argument to give to the read() method in
> order to get all the data:
Hello all,
This morning I tried to create my own read-only dictionary, and failed
miserably.
I don't understand why, can somebody enlighten me?
Below is a brute-force experiment that cannot deal with "x in obj", plz read
the explanation below the code:
class myown
On 2007-09-18, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> On Sep 18, 1:48 pm, "A.T.Hofkamp" <[EMAIL PROTECTED]> wrote:
>> On 2007-09-17, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>>
>> > It seems that another solution is gobject.io_add_wa
On 2007-09-19, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote:
> A.T.Hofkamp a écrit :
>> So if copying all methods of a native dictionary is not enough, what should I
>> do to make my class work as a dictionary WITHOUT deriving from dict (which
>> will
>> obviou
On 2007-09-25, Lawrence D'Oliveiro <[EMAIL PROTECTED]> wrote:
> In message <[EMAIL PROTECTED]>, Neil Cerutti wrote:
> That's like saying, about a program that, when given "2 + 2", outputs "5",
> that _of course_ it knows the correct answer is "4", it just chooses
> to "modify" the answer before ou
On 2007-09-25, Mark Summerfield <[EMAIL PROTECTED]> wrote:
> If there is positive feedback I will submit the PEP to the reviewers,
> so if you think it is a good idea please say so. (I'm sure that if you
> _don't_ like it you'll tell me anyway:-)
I like the idea, ie +1.
> This PEP proposes th
On 2007-09-26, wink <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm getting my feet wet in Python and thought I'd try to see how well
> Python works for asynchronous messaging. I've been using asynchronous
Have a look at Twisted (www.twistedmatrix.com)
Albert
--
http://mail.python.org/mailman/list
On 2007-10-08, Andreas Tawn <[EMAIL PROTECTED]> wrote:
>> i know this example is stupid and useless, but that's not the answer
>> to my question.
>> here it goes:
>>
> You've just discovered the joys of floating point number comparisons.
>
> Consider this snippet:
>
> status = 0.0
> print (repr(st
On 2007-10-19, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> On Oct 19, 1:44 am, MRAB <[EMAIL PROTECTED]> wrote:
>> On Oct 18, 7:05 am, Michele Simionato <[EMAIL PROTECTED]>
>>
>> if number == 0:
>> return "0"
>>
>
> Hey,
>
> Isn't
> if not number:
> return "0"
>
> faster?
Depends o
On 2007-10-23, TheSeeker <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have run into something I would like to do, but am not sure how to
> code it up. I would like to perform 'set-like' operations (union,
> intersection, etc) on a set of objects, but have the set operations
> based on an attribute of the
> On 2007-10-24, Alexandre Badez <[EMAIL PROTECTED]> wrote:
> I'm just wondering, if I could write a in a "better" way this
> code
>
> lMandatory = []
> lOptional = []
> for arg in cls.dArguments:
> if arg is True:
> lMandatory.append(arg)
> else:
> lOptional.append(arg)
> return (lMand
On 2007-10-25, Pete Bartonly <[EMAIL PROTECTED]> wrote:
>
> Quick question, probably quite a simple matter. Take the follow start of
> a method:
>
>
> def review(filesNeedingReview):
>
> for item in filesNeedingReview:
> (tightestOwner, logMsg) = item
>
> if (logMsg != None)
On 2007-10-25, Tim Williams <[EMAIL PROTECTED]> wrote:
> On 25/10/2007, A.T.Hofkamp <[EMAIL PROTECTED]> wrote:
>> On 2007-10-25, Pete Bartonly <[EMAIL PROTECTED]> wrote:
>> >
>> Also, brackets around conditions (in the if) are not needed, and comparing
&g
On 2007-10-30, Johny <[EMAIL PROTECTED]> wrote:
> Is it possible to change record separator when using readline?
> As far as I know readline reads characters until found '\n' and it is
> the end of record for readline.
> My problem is that my record consits several '\n' and when I use
> readline it
On 2007-01-12, robert <[EMAIL PROTECTED]> wrote:
>>
>> [1] http://www.python.org/pypi/parallel
>
> I'd be interested in an overview.
> For ease of use a major criterion for me would be a pure python
> solution, which also does the job of starting and controlling the
> other process(es) automatic
On 2007-11-05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> please open this link this is will help you
>
> http://www.55a.net
>
This one might help as well:
http://www.python.org/
--
http://mail.python.org/mailman/listinfo/python-list
On 2007-11-15, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> inheritance when an object's relationship to another object is 'is-a'
> and composition when the relationship is 'has-a'.
>
> Since this is all new and I'm still learning, I was hoping someone can
> give me some pointers on best practice
On 2007-11-20, Jorgen Bodde <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I want to provide my users the ability to download a repository from
> the web, and after that check for updates. I thought of a mechanism
> that could do that, but since there is patch and diff readily
> available I wondered if t
On 2007-11-20, Jorgen Bodde <[EMAIL PROTECTED]> wrote:
> The 'repositories' can be created by anyone who likes to share their
> code templates, and let the end user configure this template and
> create a customized code base of it, on which they can code their
> entire app. My tool supports increme
On 2007-11-20, Luc Goossens <[EMAIL PROTECTED]> wrote:
> Hi Tim,
>
> thanks for your suggestions
>
> I have two questions.
> 1. can I color the background of the text keeping the normal syntax
> coloring for actual text? can you give some hints on how to do that
> in vim?
:help syntax
> 2. wi
On 2007-11-20, Diez B. Roggisch <[EMAIL PROTECTED]> wrote:
> Jorgen Bodde wrote:
>
>> Hi, A.T.Hofkamp (sorry for not knowing your first name ;-),
Well Jorgen, it is at the bottom of each post (usually)... ;-)
>> SCM sounds like a term I can google for, if the tool n
On 2007-11-22, Steven D'Aprano <[EMAIL PROTECTED]> wrote:
> On Wed, 21 Nov 2007 15:51:56 -0800, braver wrote:
>
>> Is there any trick to get rid of having to type the annoying,
>> character-eating "self." prefix everywhere in a class?
You got this highly flexible language, very good for rapid prog
On 2007-11-24, BlueBird <[EMAIL PROTECTED]> wrote:
> On Nov 21, 7:05 am, "Sergio Correia" <[EMAIL PROTECTED]> wrote:
> And then you do your development in python-dev. But how do you manage
> multiple development branches of the same program ?
If you are using SVN, you may want to check out 'combi
On 2007-11-29, J. Robertson <[EMAIL PROTECTED]> wrote:
> Francesco Pietra wrote:
>> I was trying to suggest a more specific mail-list in order not to be
>> floaded. I
>> am the opinion that python-list@python.org is very informative and useful,
>> though it is hard to find the time for so many ma
On 2007-12-05, Chris Gonnerman <[EMAIL PROTECTED]> wrote:
> I spent some time today reading about Python 3, and specifically the
> differences between Python 3 and Python 2, and I was left with a
> question... why? Why bother to change to Python 3, when the CPython
> implementation is slower, a
On 2007-12-10, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> On 9 Dic, 15:43, [EMAIL PROTECTED] wrote:
>> Is it the right way to go? Is it safe in a web production
>> environment ? Is it thread-friendly (since flup is threaded) ?
>>
>> tnx
>
> Any hint ?
If you as author are asking, my bet is on
On 2007-12-06, samwyse <[EMAIL PROTECTED]> wrote:
> On Dec 6, 1:12 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> And that's my complaint. The value in is being replaced by
> something almost, but not quite, identical to the original value.
> Python's internal implementation of __iadd__ for
On 2008-01-09, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I'm pretty new to Python, and even newer to Image/Video processing,
> and trying to get started on a project similar to GRL Vienna's laser
> marker. I found some sample code here
> http://janto.blogspot.com/2006/01/motion-capture-in-pyt
On 2008-01-11, tijo <[EMAIL PROTECTED]> wrote:
> Hi mate
> i created the socket and the connection with tcp and udp i dont know
> how to check the bytes send and time
> could you help me with this
Have a look at the time or timeit modules.
Albert
--
http://mail.python.org/mailman/listinfo/python
On 2008-01-11, cesco <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a file containing four columns of data separated by tabs (\t)
> and I'd like to read a specific column from it (say the third). Is
> there any simple way to do this in Python?
>
> I've found quite interesting the linecache module but
On 2008-01-12, Jorgen Bodde <[EMAIL PROTECTED]> wrote:
> Question 1. Where do I put the bulk of python scripts in a normal
> linux environment?
> Question 2. Should I use *.pyc rather then *.py files to speed up
> executing as the user cannot write to /usr/bin or any other dir in the
> system and e
On 2008-01-13, Erik Lind <[EMAIL PROTECTED]> wrote:
> I'm new to Python, and OOP. I've read most of Mark Lutz's book and more
> online and can write simple modules, but I still don't get when __init__
> needs to be used as opposed to creating a class instance by assignment. For
> some strange re
On 2008-01-17, Heiko Niedermeyer <[EMAIL PROTECTED]> wrote:
> As I'm learning Python from scratch, I don't care wether to use (=learn)
> TKinter or PyQt or whatever, I just need some advice, which suits my
> needs best.
> It would be nice to have the programm working under win and linux
> (shoul
On 2008-01-23, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi, I am looking for a HTML parser who can parse a given page into
> a DOM tree, and can reconstruct the exact original html sources.
Why not keep a copy of the original data instead?
That would be VERY MUCH SIMPLER than trying to
On 2008-01-23, kliu <[EMAIL PROTECTED]> wrote:
> On Jan 23, 7:39 pm, "A.T.Hofkamp" <[EMAIL PROTECTED]> wrote:
>> On 2008-01-23, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>>
>> > Hi, I am looking for a HTML parser who can parse a given
On 2008-01-24, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I like the concept of TDD but find it difficult to put into practice
> most of the time. I think this primarily because I tend to like top-
> down development and functional/object decomposition and TDD feels
> more like a bottom-up appr
On 2008-01-30, grflanagan <[EMAIL PROTECTED]> wrote:
> On Jan 29, 5:39 pm, kj <[EMAIL PROTECTED]> wrote:
> For command line options I get a long way with this:
>
> [code python]
> def _getargs():
> allargs = sys.argv[1:]
> args = []
> kwargs = {}
> key = None
> while allargs:
>
On 2008-02-07, Steve Holden <[EMAIL PROTECTED]> wrote:
> Ravi Kumar wrote:
>> I have to design a Web-based CVS client. I could not find any module,
>> cvs-binding in python.
There isn't any afaik. CVS was never designed with scripting in mind. You'll
have to issue the command, then parse the text
On 2008-02-14, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi,
>
> In the standard library module "operator", it would be nice to have a
> dictionary
> mapping operators strings with their respective functions. Something like:
>
> {
> '+': add,
> '-': sub,
> 'in': contains,
>
On 2008-05-15, Gabriel <[EMAIL PROTECTED]> wrote:
> Hi all
>
> Just wondering if someone could clarify this behaviour for me, please?
>
tasks = [[]]*6
tasks
> [[], [], [], [], [], []]
tasks[0].append(1)
tasks
> [[1], [1], [1], [1], [1], [1]]
>
> Well what I was expecting to end
On 2008-05-16, Venkatraman.S. <[EMAIL PROTECTED]> wrote:
> Or a better example would be:
Indeed, this is concrete enough to make some suggestions.
> I have the params in a config file and import this module:
> myconfig.py
> a=10
> b=30
> c=31
> d=40
The big problem imho with coding such stuff di
Hello all,
Yesterday we found the cause of a bug that has caused problems for a long time.
It appeared to be the following:
class A(object):
pass
print min(1.0, A())
which is accepted by Python even though the A() object is not numerical in
nature.
The cause of this behavior seems to be th
On 2008-05-16, Venkatraman.S. <[EMAIL PROTECTED]> wrote:
> The problem being, if i change the config file, then the configobj has
> to reload this file again. I do not want to 'refresh' the config obj
> per transaction but only when the config params change.
If you have trustable time stamps at yo
On 2008-05-16, Kay Schluehr <[EMAIL PROTECTED]> wrote:
> On 16 Mai, 10:03, "A.T.Hofkamp" <[EMAIL PROTECTED]> wrote:
>> Hello all,
>>
>> Yesterday we found the cause of a bug that has caused problems for a long
>> time.
>> It appeared
On 2008-05-19, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hello all,
>
> I'm starting work on what is going to become a fairly substantial
> Python project, and I'm trying to find the best way to organize
> everything. The project will consist of:
>
> - A few applications
> - Several small scri
On 2008-05-21, zhf <[EMAIL PROTECTED]> wrote:
> I want ro walk a directory and its sub directory on linux,
> to find some shell script file, and run them, but I found some path belong
> blank charactor, such as '8000 dir', if I write as follow, I got error
> "no such file"
> path = '8000 dir'
> for
On 2008-05-21, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I'd appreciate any help. I've got a list of files in a directory, and
> I'd like to iterate through that list and process each one. Rather
> than do that serially, I was thinking I should start five threads and
> process five files at
On 2008-05-22, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi, I wanted to know how cautious it is to do something like:
>
> f = file("filename", "rb")
> f.read()
>
> for a possibly huge file. When calling f.read(), and not doing
> anything with the return value, what is Python doing internally?
On 2008-05-29, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi!
>
> I'm currently working on a scientific computation software built in
> python.
> What I want to implement is a Matlab style command window <->
> workspace interaction.
ok, although I personally favor the style of writing and runn
On 2008-06-04, Mallikarjun Melagiri <[EMAIL PROTECTED]> wrote:
> Hi Noah,
>
> I am new to python. I'm trying to use pexpect.
>
> Following is my problem definition:
>
> I should have a script on my machine A, which
> should 'ssh' to machine B and from there i
On 2008-06-05, Mathieu Prevot <[EMAIL PROTECTED]> wrote:
> I have the following error on a OSX.5 OS with CC=icc and using the
> python-svn files:
>
> checking size of wchar_t... configure: error: cannot compute sizeof (wchar_t)
>
> I would like to help so we can compile python with icc/OSX.
This l
On 2008-06-10, Peter Hunt <[EMAIL PROTECTED]> wrote:
> Hi everyone -
>
> I like playing around with language syntax and semantics. I'm thinking
> about pulling down the PyPy code and messing around to see what I can
> accomplish. My first idea is most succinctly described by example:
>
> class IBlo
On 2008-06-16, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hello. Could some1 tell me how i could "display" a specific point in
> gnuplot.py. Supposingly if i have a point of intersection (2,3). How
> can i show this on the graph? As in how can i write near the point of
> intersection the value
On 2008-06-17, John Dann <[EMAIL PROTECTED]> wrote:
> I'm reading in a byte stream from a serial port (which I've got
> working OK with pyserial) and which contains numeric data in a packed
> binary format. Much of the data content occurs as integers encoded as
> 2 consecutive bytes, ie a 2-byte in
On 2008-06-18, Robert Bossy <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I wish to know how two dict objects are compared. By browsing the
> archives I gathered that the number of items are first compared, but if
> the two dict objects have the same number of items, then the comparison
> algorithm was n
On 2008-06-18, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I have a Python script which is used to load data into a database. Up to
> now this script has been run by customers from the Windows command
> prompt using "python edg_loader.pyc". Any error messages generated are
> written to a log fil
On 2008-06-18, Robert Bossy <[EMAIL PROTECTED]> wrote:
> Lie wrote:
>>> Whoops, I think I misunderstood the question. If what you're asking
>>> whether two dictionary is equal (equality comparison, rather than
>>> sorting comparison). You could do something like this:
>>>
> Testing for equalit
On 2008-06-24, MRAB <[EMAIL PROTECTED]> wrote:
> On Jun 24, 1:26 am, [EMAIL PROTECTED] wrote:
>> I need to represent the hyperlinks between a large number of HTML
>> files as a graph. My non-directed graph will have about 63,000 nodes
>> and and probably close to 500,000 edges.
>>
>> I have looked
On 2008-06-24, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi!
>
> I am new in Python, so I count for your help. I need to get difference
> in months between two dates. How to do it in python? I am substracting
> two dates, for example date1 - date2 and I got result in days, how to
> change it?
On 2008-06-25, John W. Hamill <[EMAIL PROTECTED]> wrote:
> 20JUN2008
> By John W. Hamill
>
>
> Errata found in Python tutorial
> http://www.python.org
Bugs and other problems should be reported in bugs.python.org
Otherwise they will probably get lost.
> Error Found by John W. Hamill
> - -
On 2008-06-25, python_newbie <[EMAIL PROTECTED]> wrote:
> On 24 Haziran, 04:33, Terry Reedy <[EMAIL PROTECTED]> wrote:
> Thanks for all answers. At the end i ve only one point. If a decide to
> copy list to iterate when will i have to do this ? Before the
> iteration ? And then iterate through one
On 2008-06-25, antar2 <[EMAIL PROTECTED]> wrote:
> I am a beginner in Python and am not able to use a list element for
> regular expression, substitutions.
>
> list1 = [ 'a', 'o' ]
> list2 = ['star', 'day', 'work', 'hello']
>
> Suppose that I want to substitute the vowels from list2 that are in
>
On 2008-06-27, cesco <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I need to retrieve the content of some files which are placed on a
> network drive so in order to open them I need the full path to the
> file.
> Unfortunately some times the path is longer than 256 characters and in
> Windows such a path is
On 2008-07-01, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I'm looking over the docs for the re module and can't find how to
> "NOT" an entire regex.
(?! R)
> How make regex that means "contains regex#1 but NOT regex#2" ?
(\1|(?!\2))
should do what you want.
Albert
--
http://mail.python.org
On 2008-07-01, Brandon <[EMAIL PROTECTED]> wrote:
> What I'm trying to do is essentially force a user to fill in required items
> in a form, which will be saved to a database. How can I get it so that once
> the user clicks "OK" on the dialog box, it transfers control back to the
> form, and no
On 2008-07-02, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> This simple script writes html color codes that can be viewed in a
> browser. I used short form hex codes (fff or 000, etc) and my list
> has only six hex numbers otherwise the results get rather large. I
> invite criticism as to whethe
On 2008-07-02, Alexnb <[EMAIL PROTECTED]> wrote:
> I have no idea what "list assignment index out of range means?!?!
You are assigning a value to a non-existing list element, as in
>>> x = [1]
>>> x[2] = 4
Traceback (most recent call last):
File "", line 1, in ?
IndexError: list assignment in
1 - 100 of 119 matches
Mail list logo