Hm, interesting. So I'm hearing lots of different opinions here, but it
seems like there's not too many radical thoughts about not using snake
at all and it can be pretty much summed up to 2 things
1) use a snake
2) combine snake with -some- monty python's symbolic
I personally totally like the
fuzzylollipop wrote:
TruStudio for Eclipse is nice for those everything must be free
socialists.
ActiveState Komodo is probably the best commerical Python IDE
and the ActiveState Python plugin for Visual Studio is great for those
that do VS.
It's also great for those college students looking to
Hallo!
However, our company's product, PDFTextStream does do a phenomenal job of
extracting text and metadata out of PDF documents. It's crazy-fast, has a
clean API, and in general gets the job done very nicely. It presents two
points of compromise from your idea situation:
1. It only produces
I am trying to do some xpath on
http://fluidobjects.com/doc.xhtml
but cannot get past 'point A' (that is, I am totally stuck):
>> import libxml2
>> mydoc = libxml2.parseDoc(text)
>> mydoc.xpathEval('/html')
>> []
this returns an empty resultlist, which just seems plain wrong. Can anyone
throw a s
In article <[EMAIL PROTECTED]>, Adam DePrince wrote:
> On Tue, 2004-12-14 at 18:27, Roy Smith wrote:
>> Terry Reedy <[EMAIL PROTECTED]> wrote:
>> > I did not really 'get' OOP until after learning Python. The
>> > relatively simple but powerful user class model made more sense to
>> > me than C++.
On Wed, 15 Dec 2004 23:59:13 -0500, Adam DePrince <[EMAIL PROTECTED]> wrote:
>
> message = [chr( (ord( x ) + 3 )%256) for x in message]
>
Minor correction:
message = ''.join([chr( (ord( x ) + 3 )%256) for x in message])
--
http://mail.python.org/mailman/listinfo/python-list
Esmail Bonakdarian wrote:
>> how about:
>>
>> http://vpython.org/
>
> hi,
>
> thanks, I didn't know about that.
>
> do you (or anyone else) have a recommendation for 2D type
> graphics?
WCK, Tk's Canvas, wxPython (do they have a canvas-style widget
available these days), any other self-respec
Esmail Bonakdarian wrote:
First of all, I *really* like Python ;-)
I need some help with the graphical side of things. I would like to do
some basic graphics with Python, but I am not sure what the best/most
effective way for me to do what I want.
Basically, I would like to be able to create some b
On Thu, 16 Dec 2004 00:56:50 -0500, Jeremy Bowers wrote:
> editing with the object representing the GUI widget; I actually give each
> editable object a guaranteed unique id on creation, never changed, and I
> define __eq__(self, other) as "return self is other".
Before anybody asks why I don't u
On Wed, 15 Dec 2004 15:08:09 +, Antoon Pardon wrote:
> And I think that is a stupid reason. There are enough other situations
> were people work with mutable objects but don't wish to mutate specific
> objects. Like objects in a sorted sequence you want to keep that way
> or objects in a heap
Lady_Valerie wrote:
> hello guys! i just want to ask favor, coz i want to know how python
> compiler method could be done? im really clueless of this programming
> language hope anyone coule help me with this topic... im just focusing
> only on the compiler of the python.thanks a lot!!!
This shou
On Sunday 12 December 2004 09:27 pm, duane osterloth wrote:
> I'm looking for a stand alone email program which is not browser based.
> I simply want to write, send and receive email without accessing the
> internet. Is Python 3.0 that kind of program? I'd appreciate your
> response.
The fa
On Saturday 11 December 2004 04:10 pm, Michael McGarry wrote:
> I intend to use a scripting language for GUI development and front end
> code for my simulations in C. I want a language that can support SQL,
> Sockets, File I/O, and shell interaction.
In my humble opinion, anything complicated en
I'm inexperienced in both languages, and am toying around with
both now, so I offer these comments with warnings of the blind
leading the blind.
As far as regular expressions go I can't offer much information.
They both meet my needs. I prefer the Python syntax, however:
it is possible in both lan
hello guys! i just want to ask favor, coz i want to know how python
compiler method could be done? im really clueless of this programming
language hope anyone coule help me with this topic... im just focusing
only on the compiler of the python.thanks a lot!!!
lady valerie
--
http://mail.python.
In reply to the OP, I think the snake mascot drawing is cute and
pretty compelling.
On Sunday 12 December 2004 05:49 pm, Luis M. Gonzalez wrote:
> 1) I think that Python's logo should reflect its power.
> If we use a mascot as its image, we would be giving the wrong idea:
> that Python is a "toy"
I haven't seen any solid responses come across the wire, and I suspect
there isn't a product or package that will do exactly what you want.
However, our company's product, PDFTextStream does do a phenomenal job
of extracting text and metadata out of PDF documents. It's crazy-fast,
has a clean
On Wed, 2004-12-15 at 10:26, Jp Calderone wrote:
> On Wed, 15 Dec 2004 14:18:21 GMT, Roel Schroeven <[EMAIL PROTECTED]> wrote:
> >Antoon Pardon wrote:
> > > Op 2004-12-15, Fredrik Lundh schreef <[EMAIL PROTECTED]>:
> > >>sorry, but I don't understand your reply at all. are you saying that
> > >>d
[Jane Austine]
> fromkeys(open(f).readlines()) and fromkeys(open(f)) seem to be
> equivalent.
Semantically, yes; pragmatically, no, in the way explained before.
> When I pass an iterator instance(or a generator iterator) to the
> dict.fromkeys, it is expanded at that moment,
I don't know what "e
On Tue, 2004-12-14 at 18:27, Roy Smith wrote:
> Terry Reedy <[EMAIL PROTECTED]> wrote:
> > I did not really 'get' OOP until after learning Python. The
> > relatively simple but powerful user class model made more sense to
> > me than C++. So introducing someone to Python, where OOP is a
> > choic
On Wed, 15 Dec 2004 23:38:04 -0500, Adam DePrince <[EMAIL PROTECTED]> wrote:
>On Wed, 2004-12-15 at 10:26, Jp Calderone wrote:
> > On Wed, 15 Dec 2004 14:18:21 GMT, Roel Schroeven <[EMAIL PROTECTED]> wrote:
> > >Antoon Pardon wrote:
> > > > Op 2004-12-15, Fredrik Lundh schreef <[EMAIL PROTECTED]>
On Mon, 2004-12-13 at 17:23, jfj wrote:
> Yo.
>
> Why can't we __setitem__ for tuples?
> The way I see it is that if we enable __setitem__ for tuples there
> doesn't seem to be any performance penalty if the users don't use it
> (aka, python performance independent of tuple mutability).
>
> On t
On Tue, 2004-12-14 at 18:18, Paul Rubin wrote:
> Markus Zeindl <[EMAIL PROTECTED]> writes:
>
> > Now I get every character with a loop:
> >
> > buffer = ""
> > for i in range(len(message)):
> >ch = message[i-1:i]
>
> You mean
> ch = message[i]
> what you have does the wrong thing when i =
> "Jive" <[EMAIL PROTECTED]> taunted:
>
> > Subject: NO REALLY
> >
> > Isn't there a comp.lang.flame or something?
>
Oh, my, don't you have BIG CAPS! Someone should wash them, thoroughly!
Why don't you come up to my room, big boy.
-DIRK
[is that flaming enough?]
--
http://mail.python.or
On Mon, 2004-12-13 at 17:23, jfj wrote:
Yo.
Why can't we __setitem__ for tuples?
The way I see it is that if we enable __setitem__ for tuples there
doesn't seem to be any performance penalty if the users don't use it
(aka, python performance independent of tuple mutability).
On the other ha
[Fredrik Lundh]
>>> bdict = dict.fromkeys(open(bfile).readlines())
>>>
>>> for line in open(afile):
>>>if line not in bdict:
>>>print line,
>>>
>>>
[Tim Peters]
>> Note that an open file is an iterable object, yielding the lines in
>> the file. The "for" loop exploited that above, bu
Esmail Bonakdarian wrote:
Fredrik Lundh wrote:
how about:
http://vpython.org/
hi,
thanks, I didn't know about that.
do you (or anyone else) have a recommendation for 2D type
graphics?
I like Kiva (but then, I also help develop it). The best place to get it
right now is the SVN repository, but
On Friday 03 December 2004 02:04 pm, Robert wrote:
> If I have Python 2.4 installed and I want to install the latest stable
> Zope, will Zope have problems or does Zope looks to its own setup and
> not my install of Python 2.4?
The latest version of Zope (2.7 or later) runs fine with Python 2.3
an
Skip Montanaro wrote:
Dan> I also see an 8-10% speed decrease in 2.4 (I built) from 2.3.3
Dan> (shipped w/Fedora2) in the program I'm writing (best of 3 trials
Dan> each). Memory use seems to be about the same.
How do you how the compiler flags were the same if you didn't compile both
Peter Hansen:
> (Darn those Norwegians, influencing people's ideas of how a
> name like Hansen ought to be spelled, grumble, grumble.
And then there's my sister, a Nelson, who drove with friends
of their's, the Olsons, to visit our aunt and uncle, the Larsons,
and my grandmother, born a Hanson. S
This is not what I meant. My posting was a judgement error. You are right
though that my intuition was leading me to something like this. However, I
didn't realize that it was not necessary for what I was doing. But this is
very educational too. It made me look up string decode, encode, and
Try retrbinary instead of retrlines in the original script (the one
without write('\n')).
retrlines fetches the file in ASCII mode and that must be altering the
line terminations.
On 15 Dec 2004 15:49:31 -0800, hawkmoon269 <[EMAIL PROTECTED]> wrote:
> I would like to write a small ftp script that
Peter Hansen wrote:
Lingyun Yang wrote:
I want to use python as a "shell like" program,
and execute an external program in it( such as mv, cp, tar, gnuplot)
os.execv("/bin/bash",("/usr/bin/gnuplot",'-c "gnuplot < plot.tmp"'))
I would suggest checking out the "subprocess" module,
new in Python 2.
exec calls will replace the script process with the new process.
>From the execv documentation:
"These functions all execute a new program, replacing the current
process; they do not return. On Unix, the new executable is loaded
into the current process, and will have the same process ID as the
ca
On Thu, 16 Dec 2004 03:00:45 GMT, Lingyun Yang <[EMAIL PROTECTED]> wrote:
>Hi,
>
>I want to use python as a "shell like" program,
> and execute an external program in it( such as mv, cp, tar, gnuplot)
> I tried:
>
> os.execv("/bin/bash",("/usr/bin/gnuplot",'-c "gnuplot < plot.tmp"'))
>
> s
Hi,
I want to use python as a "shell like" program,
and execute an external program in it( such as mv, cp, tar, gnuplot)
I tried:
os.execv("/bin/bash",("/usr/bin/gnuplot",'-c "gnuplot < plot.tmp"'))
since it's in a for-loop, it should be executed many times, but
It exits after the first time runn
Lingyun Yang wrote:
I want to use python as a "shell like" program,
and execute an external program in it( such as mv, cp, tar, gnuplot)
os.execv("/bin/bash",("/usr/bin/gnuplot",'-c "gnuplot < plot.tmp"'))
I would suggest checking out the "subprocess" module,
new in Python 2.4. It subsumes the f
Brian van den Broek wrote:
Peter Hansen said unto the world upon 2004-12-15 17:39:
I could easily see this thread descending into a flame war in,
oh, about another ten posts. That would be so freaky...
Without a doubt that is the most ignorant and small-minded thought that
ever has been, and ever
I am working on a file conversion project that reads data from a one
file format, reformats in and writes in out to another. The data is
records of informations - names address, account number,statistics.
The numeric values in the original file are stored in what appears to
be a "packed" data for
Fredrik Lundh wrote:
how about:
http://vpython.org/
hi,
thanks, I didn't know about that.
do you (or anyone else) have a recommendation for 2D type
graphics?
Thanks,
Esmail
--
http://mail.python.org/mailman/listinfo/python-list
Antoon Pardon wrote:
Demanding that users of dictioanaries somehow turn their mutable objects
into tuples when used as a key and back again when you retrieve the keys
and need the object [...]
But, you generally don't "retrieve" _keys_ from dicts. You *use* keys
to retrieve *values* from a dict.
Mike Meyer wrote:
Grumman <[EMAIL PROTECTED]> writes:
Bill Turczyn wrote:
Does python have a module similiar to the perl Spreadsheet::WriteExcel
In a pinch, you can output an HTML table, give the file an .xls
extension, and Excel will read it just fine.
Welll, someone pointed ou
"Marc 'BlackJack' Rintsch" <[EMAIL PROTECTED]> said:
>In <[EMAIL PROTECTED]>, Amir Dekel wrote:
>
>> When I import a module I have wrote, and then I find bugs, it seems that
>> I can't import it again after a fix it. It always shows the same
>> problem. I try del module but it doesn't work.
>> (
Try NewEdit if you have time.
http://wiki.wookpecker.org.cn/moin.cgi/NewEdit
Chris wrote:
What IDE's do y'all recommend for Python? I'm using PythonWin atm, but
I'd like something with more functionality.
Chris
--
I love python!
My Blog: http://www.donews.net/limodou
--
http://mail.python.org/ma
Markus Zeindl wrote:
Hello,
I want to write a simple encrypter, but I've got a problem:
How can I convert characters into integers?
Check this out, you'll like it even more than ord/chr:
import array
def mangle(message):
a = array.array('B')
a.fromstring(message)
Grumman <[EMAIL PROTECTED]> writes:
> Bill Turczyn wrote:
>> Does python have a module similiar to the perl Spreadsheet::WriteExcel
>> Thanks,
>> Bill
>>
> In a pinch, you can output an HTML table, give the file an .xls
> extension, and Excel will read it just fine.
Welll, someone pointed out a t
The Dejavu Object-Relational Mapper (version 1.2.6) is now available and
in the public domain. Get it at svn://casadeamor.com/dejavu/trunk.
Dejavu is an Object-Relational Mapper for Python applications. It is
designed to provide the "Model" third of an MVC application. Dejavu
avoids making decisio
I would like to write a small ftp script that I could use in place of
DOS. So far I have this --
from ftplib import FTP
server = 'xxx'
username = 'xxx'
password = 'xxx'
file = 'xxx'
ftp = FTP(server)
ftp.login(username, password)
ftp.retrlines('RETR ' + file, open('C:\My Documents\' + file,
'w'
Bill Turczyn wrote:
Does python have a module similiar to the perl Spreadsheet::WriteExcel
Thanks,
Bill
In a pinch, you can output an HTML table, give the file an .xls
extension, and Excel will read it just fine.
There's probably a better option in python (under win32, you
could use win32com and
Peter Hansen said unto the world upon 2004-12-15 17:39:
Martijn Faassen wrote:
Jive wrote:
Isn't there a comp.lang.flame or something?
I've doublechecked, but I didn't see any significant flaming in this
article (and I'm generally not very tolerant of it). My PSU posting
was certainly not intend
Goggle: keyword pyXLWriter - ported from Perl. Does not support newer
exel files. F.e. if you create a table and write headers (names) they
will be in the table as row 0. But it is fast and it works. Has a lot
of examples.
--
http://mail.python.org/mailman/listinfo/python-list
> "The Internet Communications Engine (Ice) is a modern alternative to
> object middleware such as CORBAâ or COM/DCOM/COM+. Ice is easy to learn,
> yet provides a powerful network infrastructure for demanding technical
> applications. Ice shines where technologies such as SOAP or XML-RPC are
>
Martijn Faassen wrote:
Jive wrote:
Isn't there a comp.lang.flame or something?
I've doublechecked, but I didn't see any significant flaming in this
article (and I'm generally not very tolerant of it). My PSU posting was
certainly not intended as a flame, in case that was misinterpreted.
What'd I
Martijn Faassen wrote:
Peter Hansen wrote:
Well, in any case, thanks for setting the record straight, Martjin.
That of course also happens to me once every while. I can take care of
myself though -- Dijkstra however needs an advocate for the correct
spelling of his name in this earthly realm.
The
Fredrik Lundh wrote:
"ouz as" <[EMAIL PROTECTED]> wrote:
i have an electronic module which only understand binary data.
i use python pyserial.
for example the module starts when 00100 8-bit binary data sent.but
... in computers, bits are combined into bytes (or longer machine words).
the strin
On Wed, 2004-12-15 at 22:48 +0100, Wolfgang Keller wrote:
> > "The Internet Communications Engine (Ice) is a modern alternative to
> > object middleware such as CORBAâ or COM/DCOM/COM+. Ice is easy to learn,
> > yet provides a powerful network infrastructure for demanding technical
> > applicati
"Jive" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Everyone keep moving. There is nothing to see here. Move along.
>
You wish! If only ending a thread were that easy - we wouldn't be hearing
about "Why is Python slower than Java?" anymore!
But I agree with Martijn (note spell
Dan Perl wrote:
Is there a way to convert a regular string to a raw string so that one could
get from '\bblah' to r'\bblah' other than parsing the string and modifying
the escapes?
Assuming you might mean something else, that something else might be:
s = r'no_tab_\t_here'
len(s.split()) ==
Nick Craig-Wood wrote:
There are many ways for a program to fail (non-zero exit codes) but
only one way for it to succeed (zero exit code). Therefore rc should
be 0 for success.
Exactly. And as a convenience the ExitStatus object of proctools handles
that for you.
As a general rule, I believe Py
Jive wrote:
Isn't there a comp.lang.flame or something?
I've doublechecked, but I didn't see any significant flaming in this
article (and I'm generally not very tolerant of it). My PSU posting was
certainly not intended as a flame, in case that was misinterpreted.
What'd I miss?
Regards,
Martijn
Hi !
There are many ideas with same type than Python.
Indentation, set, sequences (list), parallel (zip), sequential (iter), map
(dictionnary),
I had see :
Set comprehension :A = {1..20} C = {i | i in A where 2 * i
in A}
Map comprehension (god)
etc. etc.
--
Esmail Bonakdarian wrote:
> Basically, I would like to be able to create some basic animations
> where I can help visualize various sorting algorithms (for instance
> http://ciips.ee.uwa.edu.au/~morris/Year2/PLDS210/sorting.html#insert_anim)
> or graph searches (coloring nodes as each gets visited
Peter Hansen wrote:
Martijn Faassen wrote:
Paul McGuire wrote:
"Martijn Faassen" <[EMAIL PROTECTED]> wrote in message
Yikes! (or better, "Jikes!" or even "Yijkes!"?) - my bad.
And he was on faculty at UT right here in Austin, too.
It's a very common mistake I've seen so often that for a while I
> >>> import pdb
> >>> pdb.x = "Darn writeable module dictionaries"
> >>> from pdb import x
> >>> x
> >>>'Darn writeable module dictionaries'
> If Python really does behave that way, that bug should be fixed
> immediately.
The fact that the attributes of Python modules, like those of classes (a
First of all, I *really* like Python ;-)
I need some help with the graphical side of things. I would like to do
some basic graphics with Python, but I am not sure what the best/most
effective way for me to do what I want.
Basically, I would like to be able to create some basic animations
where I ca
Hi Lucas,
> No,the reason that you see 2 times as many processors as really are
> installed is the hyperthreading feature of the Xeon (see
> http://www.infoworld.com/infoworld/article/02/02/25/020225plxeon_1.html)
>
> I turned it off (in the BIOS). The machine I tested on has 2 (pysical)
> proc
In <[EMAIL PROTECTED]>, Frans Englich
wrote:
>> > In my use of getopt.getopt, I would like to make a certain parameter
>> > mandatory.
>>
>> Isn't a *mandatory option* a contradiction? Why don't you turn it into an
>> argument? You already called it argument in the subject of your post.
>
> I p
Fredrik Lundh wrote:
<[EMAIL PROTECTED]> wrote:
How can a python, or even a .bat script modify the system PATH?
It doesn't appear to be in the registry.
did you look under
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Environment
And see also this helpful recipe:
http://aspn.activ
Martin Bless wrote:
...
Two things first - not to forget:
(1) In contrast to what Mike writes I had to use a different registry
key (see step 9)
Which is expected (even noted on the page), particularly if you have a
different version of the SDKs. The keys in the patch were extracted
from an E
Great, works a treat. Thanks
-Original Message-
From: Jim Sizelove [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 15, 2004 11:28 AM
To: [EMAIL PROTECTED]
Subject: Re: Dynamically passing variables to unittest
Tom Haddon wrote:
> Hi Peter,
>
> Yeah, you're right, the term "ConnectSt
"Martin v. Löwis" <[EMAIL PROTECTED]> writes:
> Can you elaborate? To me, that problem only originates from
> the OS lack of support for deleting open files. If you could
> delete a shared libary that is still in use (as you can on
> Unix), the put the new version of the DLL in the place, (...)
N
In <[EMAIL PROTECTED]>, Amir Dekel wrote:
> When I import a module I have wrote, and then I find bugs, it seems that
> I can't import it again after a fix it. It always shows the same
> problem. I try del module but it doesn't work.
> (I use Python 2.4 with the ActivePython pack (PythonWin IDE)
Does python have a module similiar to the perl Spreadsheet::WriteExcel
Thanks,
Bill
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, 15 Dec 2004, Amir Dekel wrote:
> Hello everyone,
>
> First, I have to say that Python is one of the coolest programing languages I
> have seen.
> And now for the problem (must be a silly one):
> When I import a module I have wrote, and then I find bugs, it seems that I
> can't import it ag
Hello everyone,
First, I have to say that Python is one of the coolest programing
languages I have seen.
And now for the problem (must be a silly one):
When I import a module I have wrote, and then I find bugs, it seems that
I can't import it again after a fix it. It always shows the same
proble
On Wednesday 15 December 2004 20:12, Marc 'BlackJack' Rintsch wrote:
> In <[EMAIL PROTECTED]>, Frans Englich
>
> wrote:
> > Hello,
> >
> > In my use of getopt.getopt, I would like to make a certain parameter
> > mandatory.
>
> Isn't a *mandatory option* a contradiction? Why don't you turn it into
Isn't there a comp.lang.flame or something?
--
http://mail.python.org/mailman/listinfo/python-list
TruStudio for Eclipse is nice for those everything must be free
socialists.
ActiveState Komodo is probably the best commerical Python IDE
and the ActiveState Python plugin for Visual Studio is great for those
that do VS.
--
http://mail.python.org/mailman/listinfo/python-list
In <[EMAIL PROTECTED]>, Frans Englich
wrote:
>
> Hello,
>
> In my use of getopt.getopt, I would like to make a certain parameter
> mandatory.
Isn't a *mandatory option* a contradiction? Why don't you turn it into an
argument? You already called it argument in the subject of your post.
Ciao,
<[EMAIL PROTECTED]> wrote:
> I want to write some kind of install script for my python app that
> will add c:\cygwin\usr\bin to the system path. I don't want
> to walk around to 50 PC's and twiddle through the GUI to:
>
> My Computer --> Control Panel --> System --> Advanced --> Environment
>
>
>
Matthew Moss wrote:
>> >>> data = [['foo','bar','baz'],['my','your'],['holy','grail']]
>> >>> [e for l in data for e in l]
>> ['foo', 'bar', 'baz', 'my', 'your', 'holy', 'grail']
>
> Okay, I tried this in an interactive Python session and it works as
> stated. My question is, why? How is the inte
Tom Haddon wrote:
Hi Peter,
Yeah, you're right, the term "ConnectString" is a little confusing. Perhaps I
should change that.
Here's a valid call to DB:
conn=DB.DB('pg','test','localhost',5432,'test','test')
In the context of this unittest, a valid syntax would be (except that this unittest would
On Wed, Dec 15, 2004 at 06:43:35PM +, Jeff Lindholm wrote:
> The only issue with this is you will have to reboot for it take
> effect.
The above is not quite true -- at least under NT/2000/XP. The reboot is
only necessary for the SCM (and services) to notice the change.
Otherwise, you just ne
Responding to Beliavsky...
Les Hatton "Does OO sync with the way we think?", IEEE Software, 15(3),
p.46-54
"This paper argues from real data that OO based systems written in C++
appear to increase the cost of fixing defects significantly when
compared with systems written in either C or Pascal. It
[Fredrik Lundh]
>>> bdict = dict.fromkeys(open(bfile).readlines())
>>>
>>> for line in open(afile):
>>>if line not in bdict:
>>>print line,
>>>
>>>
[Tim Peters]
>> Note that an open file is an iterable object, yielding the lines in
>> the file. The "for" loop exploited that above, bu
QOTW: "[Python demands more thought in optimization, because i]n
other languages, by the time you get the bloody thing working it's
time to ship, and you don't have to bother worrying about making
it optimal." -- Simon Brunning
"One of the best features of c.l.py is how questions phrased in the
m
Diez B. Roggisch wrote:
> >>> data = [['foo','bar','baz'],['my','your'],['holy','grail']]
> >>> [e for l in data for e in l]
> ['foo', 'bar', 'baz', 'my', 'your', 'holy', 'grail']
Okay, I tried this in an interactive Python session and it works as
stated. My question is, why? How is the interpre
Hi !
You are a very good soothsayer (*) !
With # -*- coding: cp-1252 -*-it's bugging
With # -*- coding: utf-8 -*- it's OK !
(*) soothsayer is the masculine of pythoniss (good english term ?)
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-li
I think you solved it Fredrik.
The first ten folders looked like this:
D:\0\1\2\3\4\5\6\7\8\9
22 Chars long.
The rest looked like this:
\10\11\12\13\82\83\84
~ 222 CHars long.
Subdir 84 had one file in it named XXX.bat
That file broke the 255 limit, then subdir 85 wasn't created
>
> I want to write some kind of install script for my python app that
> will add c:\cygwin\usr\bin to the system path. I don't want
> to walk around to 50 PC's and twiddle through the GUI to:
>
> My Computer --> Control Panel --> System --> Advanced --> Environment
>
>
> How can a python, or even
Dan> I also see an 8-10% speed decrease in 2.4 (I built) from 2.3.3
Dan> (shipped w/Fedora2) in the program I'm writing (best of 3 trials
Dan> each). Memory use seems to be about the same.
How do you how the compiler flags were the same if you didn't compile both
versions yourself?
[EMAIL PROTECTED] wrote:
> [Windows XP Pro, cygwin python 2.4, *nix hacker, windows newbie]
>
> I want to write some kind of install script for my python app that
> will add c:\cygwin\usr\bin to the system path. I don't want
> to walk around to 50 PC's and twiddle through the GUI to:
>
> My Com
[Windows XP Pro, cygwin python 2.4, *nix hacker, windows newbie]
I want to write some kind of install script for my python app that
will add c:\cygwin\usr\bin to the system path. I don't want
to walk around to 50 PC's and twiddle through the GUI to:
My Computer --> Control Panel --> System --> A
Is there a safe way to run tkinter in a multithreaded app where the
mainloop runs in a background thread ?
Here's some test code demonstrating the problem. I'm running Python2.4
under Windows 2000.
Code snip starts-
from Tkinter import *
def GetTkinterThread():
im
I use PyDev (pydev.sf.net), an Eclipse plug-in. I may be biased, since
I contributed some code to the project, but it works great for me. An
article talking about using PyDev and ant within Eclipse is available
at
http://www-106.ibm.com/developerworks/library/os-ecant/?ca=drs-tp2604.
Grig
Chris w
You are correct Peter, the exception read something like this:
"Folder 85 not found."
I am paraphrasing, but that is the crux of the error. It takes about an
hour to produce the error so if you want an exact quote from the
exception, let me know and give me awhile. I looked through the nested
dir
Tim Peters wrote:
>> bdict = dict.fromkeys(open(bfile).readlines())
>>
>> for line in open(afile):
>>if line not in bdict:
>>print line,
>>
>>
>
> Note that an open file is an iterable object, yielding the lines in
> the file. The "for" loop exploited that above, but fromkeys() can
>
[EMAIL PROTECTED] wrote:
[snip code involving copyfile:]
shutil.copyfile(os.path.join(root, f),
The problem with this is that it only copies about 35 GB/hour. I would
like to copy at least 100 GB/hour... more if possible. I have tried to
copy from the IDE CD drive to the SATA array with the same r
Hi Peter,
Yeah, you're right, the term "ConnectString" is a little confusing. Perhaps I
should change that.
Here's a valid call to DB:
conn=DB.DB('pg','test','localhost',5432,'test','test')
In the context of this unittest, a valid syntax would be (except that this
unittest would fail, as this
I think this is a silly task, but I have to do it. I have to fill a
file server (1 TB SATA RAID Array) with files. I wrote a Python script
to do this, but it's a bit slow... here it is:
import shutil
import os
import sys
import time
src = "G:"
des = "C:scratch"
os.chdir(src)
try:
for x in xrange
1 - 100 of 191 matches
Mail list logo