On Jul 14, 5:55 am, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
>
> So, as always, one should measure in each specific case if optimization is
> worth the pain [...].
>
I hope I am somehow misreading the above sentence :-). IMO synonim
language contructs
should result in the same performance
Hi fellas,
I am experiencing problems reading a 2GB zipfile consisting of
multiple zipped files. I found a thread
http://mail.python.org/pipermail/python-dev/2005-April/053027.html
that mentions a problem on the writing side, does such a problem exist
on a reading side? I am using 2.4.1, perhaps th
On Jul 15, 1:30 pm, "Sebastian Bassi" <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> In my CSV file, the first line has the name of the variables. So the
> data I want to parse resides from line 2 up to the end. Here is what I
> do:
>
> import csv
> lines=csv.reader(open("MYFILE"))
> lines.next() #this is ju
En Sat, 14 Jul 2007 20:04:21 -0300, Orlando Döhring <[EMAIL PROTECTED]>
escribió:
> I want to marshal objects:
>
> - http://docs.python.org/lib/module-marshal.html
> where I have problems with a bigger objects, e.g.
Any specific reason you use this module? As a general purpose serializer,
use
On 7/13/07, Simon Hibbs <[EMAIL PROTECTED]> wrote:
> place. At the end of it you'll have a good idea how OOP works, and how
> Python works. Learning OOp this way is easy and painless, and what you
...
But this tutorial states "I assume you know how object-oriented
programming works"
--
Sebastián
En Sat, 14 Jul 2007 14:44:05 -0300, bvdp <[EMAIL PROTECTED]> escribió:
>> > But, I still don't understand how python can access a function in a
>> > file I have NOT included. In this case, to get things to work, I DO
>> > NOT "import MMA.grooves" but later in the module I access a function
>> > wi
Dennis Lee Bieber <[EMAIL PROTECTED]> writes:
> Though I should have added that, in Python, the toolset tends to
> be... just an editor...
Much more than that. The common toolset I see used is:
* A customisable, flexible, programmer's text editor
* The online documentation in a web bro
En Sat, 14 Jul 2007 13:03:01 -0300, Yoav Goldberg
<[EMAIL PROTECTED]> escribió:
> I need to have a dictionary of dictionaries of numbers, and I would like
> the
> dictionaries to be defaultdicts, because it makes the code much nicer
> (I want to be able to do: d['foo']['bar']+=1 ).
>
> So nat
Hi,
In my CSV file, the first line has the name of the variables. So the
data I want to parse resides from line 2 up to the end. Here is what I
do:
import csv
lines=csv.reader(open("MYFILE"))
lines.next() #this is just to avoid the first line
for line in lines:
DATA PARSING
This works fine.
On 7 13 , 6 34 , Godzilla <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm trying to find a way to convert an integer (8-bits long for
> starters) and converting them to a list, e.g.:
>
> num = 255
> numList = [1,1,1,1,1,1,1,1]
>
> with the first element of the list being the least significant, so
> t
On Jul 15, 10:06 am, Graham Dumpleton <[EMAIL PROTECTED]>
wrote:
> On Jul 15, 2:47 am, 7stud <[EMAIL PROTECTED]> wrote:
>
>
>
> > Themod_pythonmanual says this under section 2.1 Prerequisites:
>
> > --
> > In order to compilemod_pythonyou will need to have the include files
> > for both Apache
On Jul 15, 11:12 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> On Jul 14, 5:49?pm, Paul McGuire <[EMAIL PROTECTED]> wrote:
>
>
>
> > On Jul 13, 3:46 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> > > On Jul 13, 5:17 am, Paul McGuire <[EMAIL PROTECTED]> wrote:
>
> > > > On Jul 12, 5:3
bvdp wrote:
> before I moved other
> imports around I was able to do the following:
>
> 1. NOT include MMA.gooves,
> 2. call the function MMA.grooves.somefunc()
>
> and have it work.
The import doesn't necessarily have to be in the same module
where the attribute is used. The first time *any*
On Jul 14, 5:49?pm, Paul McGuire <[EMAIL PROTECTED]> wrote:
> On Jul 13, 3:46 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > On Jul 13, 5:17 am, Paul McGuire <[EMAIL PROTECTED]> wrote:
>
> > > On Jul 12, 5:34 pm, Godzilla <[EMAIL PROTECTED]> wrote:
>
> > > > Hello,
>
> > > > I'm t
Steve Holden <[EMAIL PROTECTED]> writes:
> What do you actually think
>
> for m in msg:
> print m
>
> should do? Why do you believe that what you think it should do would
> be a natural choice?
I think it odd for a Message to support the mapping protocol. However,
since
On Jul 15, 2:47 am, 7stud <[EMAIL PROTECTED]> wrote:
> Themod_pythonmanual says this under section 2.1 Prerequisites:
>
> --
> In order to compilemod_pythonyou will need to have the include files
> for both Apache and Python, as well as the Python library installed on
> your system. If you inst
www.OutpatientSurgicare.com/video/
Outpatient Doctors Surgery Center is committed to offering the
healthcare the community needs. We offer patients a meaningful
alternative to traditional surgery. This state-of-the-art outpatient
surgery center, located in the heart of Orange County, at 10900 Warne
Dear community,
I want to marshal objects:
- http://docs.python.org/lib/module-marshal.html
where I have problems with a bigger objects, e.g.
self.contiguousSurfaceResidues, see below.
I was writing the object to file:
fDump1 = open('dump_13PK_C.dat','wb')
marshal.dump(self.contiguous
On Jul 13, 3:46 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> On Jul 13, 5:17 am, Paul McGuire <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > On Jul 12, 5:34 pm, Godzilla <[EMAIL PROTECTED]> wrote:
>
> > > Hello,
>
> > > I'm trying to find a way to convert an integer (8-bits long for
> > > starter
Hello, All-
I have written a class that allows me to create and manipulate data segments
(the type one deals with when reading/writing text files); validating
fields, serialization, etc. I would like to put this together as a module
and release it to the community while I expand on the feature
jeffbg123 wrote:
> The numbers are always rendered the same. So I don't know if OCR is a
> necessary step.
>
> Also, what if I just got the data from the packets? Any disadvantages
> to that? Any good python packet capturing libraries?
>
> Thanks
>
Packet capture is probably a bad idea for two
Hendrik van Rooyen wrote:
> "Lenard Lindstrom" <[EMAIL PROTECTED]> wrote:
>
>
>> Pascal has no break, continue or return. Eiffel doesn't even have a
>> goto. In such imperative languages boolean variables are used a lot.
>
> Thanks did not know this.
>
>> from StringIO import StringIO
>> lin
On Sat, 14 Jul 2007 11:49:48 -0600, darren kirby
<[EMAIL PROTECTED]> wrote:
>quoth the Wayne Brehaut:
>
>> (I started with Royal McBee LGP 30 machine language (hex input) in
>> 1958, and their ACT IV assembler later! Then FORTRAN IV in 1965. By
>> 1967 I too was using (Burroughs) Algol-60, and 10
On Sat, 14 Jul 2007 19:18:05 +0530, "Rustom Mody"
<[EMAIL PROTECTED]> wrote:
>On 7/14/07, Alex Martelli <[EMAIL PROTECTED]> wrote:
>>
>> OOP can be abused (particularly with deep or intricate inheritance
>> structures). But the base concept is simple and clear: you can bundle
>> state and behavio
On Sat, Jul 14, 2007 at 05:47:22PM +, Nikola Skoric wrote:
> I'm using sgmllib.SGMLParser to parse HTML. I have successfuly
> parsed start tags by implementing start_something method. But, now
> I have to fetch the string inside the start tag and end tag too. I
> have been reading through SGMLP
On Jul 14, 12:47 pm, Nikola Skoric <[EMAIL PROTECTED]> wrote:
> I'm using sgmllib.SGMLParser to parse HTML. I have successfuly parsed start
> tags by implementing start_something method. But, now I have to fetch the
> string inside the start tag and end tag too. I have been reading through
> SGMLPa
quoth the Wayne Brehaut:
> (I started with Royal McBee LGP 30 machine language (hex input) in
> 1958, and their ACT IV assembler later! Then FORTRAN IV in 1965. By
> 1967 I too was using (Burroughs) Algol-60, and 10 years later upgraded
> to (DEC-10) Simula-67.)
>
> Going---going---
Mel? Is that
I'm using sgmllib.SGMLParser to parse HTML. I have successfuly parsed start
tags by implementing start_something method. But, now I have to fetch the
string inside the start tag and end tag too. I have been reading through
SGMLParser documentation, but just can't figure that out... can somebody
hel
> > But, I still don't understand how python can access a function in a
> > file I have NOT included. In this case, to get things to work, I DO
> > NOT "import MMA.grooves" but later in the module I access a function
> > with "xx=MMA.grooves.somefunc()" and it finds the function, and works
> > jus
On Fri, 13 Jul 2007 20:37:04 -0400, Steve Holden <[EMAIL PROTECTED]>
wrote:
>Aahz wrote:
>> In article <[EMAIL PROTECTED]>,
>> Chris Carlen <[EMAIL PROTECTED]> wrote:
>>>From what I've read of OOP, I don't get it.
>>
>> For that matter, even using OOP a bit with C++ and Perl, I didn't get it
>
The mod_python manual says this under section 2.1 Prerequisites:
--
In order to compile mod_python you will need to have the include files
for both Apache and Python, as well as the Python library installed on
your system. If you installed Python and Apache from source, then you
already have e
Hello,
I need to have a dictionary of dictionaries of numbers, and I would like the
dictionaries to be defaultdicts, because it makes the code much nicer
(I want to be able to do: d['foo']['bar']+=1 ).
So naturally, I used:
d = defaultdict(lambda :defaultdict(int))
It works great, but now I c
The Tkinter tutorial refrrred to is at
http://infohost.nmt.edu/tcc/help/pubs/tkinter//
and it is a great starting point ...
Ron Stephens
On Jul 14, 3:01 am, "Hendrik van Rooyen" <[EMAIL PROTECTED]> wrote:
> "Chris Carlen" wrote:
>
> > Form 2: Use Python and PySerial and TkInter or wxWidgets.
[EMAIL PROTECTED] wrote:
>> A slightly more generic match in case your package names turn out to be less
>> consistent than given in the test cases:
>>
>> #!/usr/bin/python
>>
>> import re
>> pattern = re.compile(r'(\w+?-(\d+[\.-])+\d+?)-\D+.*RPM')
>> pkgnames = ["hpsmh-1.1.1.2-0-RHEL3-Linux.RPM",
[EMAIL PROTECTED] wrote:
> On Jul 14, 3:39 am, "Viewer T." <[EMAIL PROTECTED]> wrote:
>> I am trying to write a script that deletes certain files based on
>> certain criteria.
>>
>> What I am trying to do is to automate the process of deleting certain
>> malware files that disguise themselves as sy
On 7/14/07, Alex Martelli <[EMAIL PROTECTED]> wrote:
>
> OOP can be abused (particularly with deep or intricate inheritance
> structures). But the base concept is simple and clear: you can bundle
> state and behavior into a stateful "black box" (of which you may make as
> many instances, with inde
On Jul 14, 3:39 am, "Viewer T." <[EMAIL PROTECTED]> wrote:
> I am trying to write a script that deletes certain files based on
> certain criteria.
>
> What I am trying to do is to automate the process of deleting certain
> malware files that disguise themselves as system files and hidden
> files. W
Adrian Petrescu <[EMAIL PROTECTED]> writes:
> Oh, you're right! Silly me, I had always thought it was standard.
> Thanks for pointing this out! I went and downloaded ClientCookie and
> it works great on OS X. And since it is BSD-licensed, I can use it in
> my app without any fear. Perfect.
>
> Tha
[EMAIL PROTECTED] (Aahz) writes:
[...]
> Note very very carefully that Python does not require an OOP style of
> programming,
agree
> but it will almost certainly be the case that you just
> naturally start using OOP techniques as you learn Python.
There's some truth to this. But stagnation is
[Chris Carlen]
> From what I've read of OOP, I don't get it. I have also found some
> articles profoundly critical of OOP. I tend to relate to these
> articles.
If you want to know the truth, and opt to neither trust a friend or
colleague, nor spend the time to try it yourself, here's a third w
En Sat, 14 Jul 2007 06:26:43 -0300, Tzury <[EMAIL PROTECTED]>
escribió:
>> What do you actually think
>>
>> ... for m in msg:
>> ... print m
>>
>> should do? Why do you believe that what you think it should do would be
>> a natural choice?
>
> I needed to know how to extract part
[EMAIL PROTECTED] wrote:
> 1- Find all html files in the folders (sub-folders ...)
> 2- Do some file I/O and feed Sed or Python or what else with the file.
> 3- Apply recursively some regular expression on the file to do the
> things a want. (delete when it encounters certain tags, certain
> attrib
[EMAIL PROTECTED] writes:
> On Jul 13, 3:08 pm, Sean <[EMAIL PROTECTED]> wrote:
>> I am trying to read a cookie I set but I am not sure if I really set
>> it correctly or I am not reading it correctly. I was given the
>> following instructions to set the cookie. It appears to be working
>> becau
In article <[EMAIL PROTECTED]>,
Chris Carlen <[EMAIL PROTECTED]> wrote:
> Why would OOP be better? Different is not better. Popular is not
> better. What the academics say is not better. Less lines of code might
> be better, if the priority is ease of programming. Or, less machine
> execu
> What do you actually think
>
> ... for m in msg:
> ... print m
>
> should do? Why do you believe that what you think it should do would be
> a natural choice?
I needed to know how to extract particular parts of a message, such as
the message 'body', 'subject', 'author', etc.
I co
> There seems to be some problem. For the tar version, initial steps
> execute OK, but after typing:
> [EMAIL PROTECTED] pygame-1.7.1release]# ./configure
> bash: ./configure: No such file or directory
>
> So i don't hav a configure file? What should i do now?
Sorry, instead of ./configure do this
I am trying to write a script that deletes certain files based on
certain criteria.
What I am trying to do is to automate the process of deleting certain
malware files that disguise themselves as system files and hidden
files. When I use os.remove() after importing the os module is raises
a Window
nik wrote:
> Hi,
>
> I am looking for an interactive graphical script builder for python.
> Basically, something like the os X automator. I have made a group of
> methods that some non-programmers need to combine into a script. I
> don't need a python IDE necessarially, but more of a sequence buil
On Jul 14, 8:49 am, James Stroud <[EMAIL PROTECTED]> wrote:
>
> Any gui more complicated than a few entry fields and some checkbuttons
> is going to lend itself to OOP--so if you want to do GUI, learn OOP.
Yep, there is nothing to be added to that. Except maybe that if you
don't care
too much abou
Hello,
We have requirement for TAC Engineer in Phoenix. If your skills and
experience matches with the same, send me your resume asap with
contact # and rate to '[EMAIL PROTECTED]
Job Title= TAC Engineer
Location = Phoenix
Duration = 6months
Must / Core Skills
Linux System adminis
"Lenard Lindstrom" <[EMAIL PROTECTED]> wrote:
> Pascal has no break, continue or return. Eiffel doesn't even have a
> goto. In such imperative languages boolean variables are used a lot.
Thanks did not know this.
>
> from StringIO import StringIO
> lines = StringIO("one\ntwo\nthree\nfour\n"
"Aahz" <[EMAIL PROTECTED]> wrote:
> Newbie. ;-)
>
> (I started with BASIC in 1976.)
>
*grinz @ Newbie*
I was writing COBOL and NEAT/3 in 1968...
- Hendrik
--
http://mail.python.org/mailman/listinfo/python-list
"Chris Carlen" wrote:
> Form 2: Use Python and PySerial and TkInter or wxWidgets.
>
> Pro: Cross-platform goal will likely be achieved fully. Have a
> programmer nearby with extensive experience who can help.
> Con: Must learn new language and library. Must possibly learn a
> completely
Chris Carlen wrote:
> Hi:
>
> From what I've read of OOP, I don't get it. I have also found some
> articles profoundly critical of OOP.
I've also found articles critical of Darwinism--but we can chalk that up
to religious zealotry can't we?
Any gui more complicated than a few entry fields an
J. J. Ramsey wrote:
> if I can avoid doing what amounts to reading the
> whole file into memory, changing the copy in memory, and writing it
> all out again.
Except in very special circumstances, not really.
If you do anything that makes a line longer or
shorter, everything after that line in the
Ben Finney <[EMAIL PROTECTED]> writes:
> This seems to make the dangerous assumption that the programmer has
> the correct program in mind, and needs only to transfer it correctly
> to the computer.
Well, I hope the programmer can at least state some clear
specficiations that a correct program sho
56 matches
Mail list logo