Hello!
> You might take a look at PyRTF in PyPI. It's still in beta,
I think PyRTF would be the right choice, thanks. Yust had a short look
at it.
Lg,
AXEL.
--
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD",
"SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in thi
"Delaney, Timothy C (Timothy)" <[EMAIL PROTECTED]> writes:
> Thomas Heller wrote:
>
>> zipextimporter.py contains the ZipExtImporter class which allows to
>> load Python binary extension modules contained in a zip.archive,
>> without unpacking them to the file system.
>
> I take it this was what y
Derived classes sometimes need to delegate portions of the work in overridden
methods to methods in their base classes. This was traditionally done with
explicit calls in python, e.g.,
class Derived(Left, Right):
def __init__(self, myarg, larg, rarg):
Left.__init__(self, larg)
Right._
Mike Thompson wrote:
> File "C:\Python23\Lib\site-packages\elementtree\ElementTree.py", line 709, in
> _write
> for n in node:
> File "C:\Python23\Lib\site-packages\elementtree\ElementTree.py", line 227, in
> __getitem__
> return self._children[index]
>
> The exception is triggered in Elemen
Stephen Waterbury wrote:
> [If there is a separate list for elementtree, please someone
> clue me ... I didn't see one.]
the xml-sig is preferred, I think.
> Fredrik or other xml / elementtree gurus:
>
> I see from the source that ElementTree.write() writes
>
>
>
> at the beginning of the xml o
Hi all,
while playing with PBP/mechanize/ClientForm, I ran into a problem with
the way htmllib.HTMLParser was handling encoded tag attributes.
Specifically, the following HTML was not being handled correctly:
Small (6)
The 'value' attr was being given the escaped value, not the
correct unescaped
Op 2004-12-17, Jeff Shannon schreef <[EMAIL PROTECTED]>:
> Adam DePrince wrote:
>
>>And how exactly do you propose to mutate an object without changing its
>>hash value?
>>
>>
>>* Create this mutate-able object type.
>>* Create two objects that are different with different hash values.
>>* Mutate
Whoops! Forgot an executable example ;).
Attached, and also available at
http://issola.caltech.edu/~t/transfer/test-enc.py
http://issola.caltech.edu/~t/transfer/test-enc.html
Run 'python test-enc.py test-enc.html' and note that
htmllib.HTMLParser-based parsers give different outpu
Bengt Richter wrote:
On Fri, 17 Dec 2004 02:06:01 GMT, Steven Bethard <[EMAIL PROTECTED]> wrote:
Michael Spencer wrote:
... conv = "".join(char.lower() for char in text if char not in
unwanted)
Probably a good place to use str.replace, e.g.
conv = text.lower()
for char in unwanted:
conv =
Oleg Paraschenko wrote:
[snip]
In my case "Hello" works and "Quit" doesn't (GUI stays frozen).
Linux, Python 2.3.3, pygtk-0.6.9.
That's not a multithreading issue, but just the way the quit method works.
Try:
-
import time
from Tkinter import *
root
Dan Perl wrote:
> "Mike Meyer" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > "Dan Perl" <[EMAIL PROTECTED]> writes:
> >
> >> "Mike Meyer" <[EMAIL PROTECTED]> wrote in message
> >> news:[EMAIL PROTECTED]
> >>> A: What's the most obnoxious thing on Usenet?
> >>> Q: topposting.
>
Having done steps 1 to 10, I tried building Numeric-23.6. And got the
following error-msg:
F:\install\Numeric-23.6>python setup.py build
running build
running build_py
running build_ext
building '_numpy' extension
D:\Programme\Microsoft Visual C++ Toolkit 2003\bin\cl.exe /c /nologo
/Ox /MD /W3
/GX
Op 2004-12-17, Jeff Shannon schreef <[EMAIL PROTECTED]>:
> Antoon Pardon wrote:
>
>>Op 2004-12-16, Jeff Shannon schreef <[EMAIL PROTECTED]>:
>>
>>
>>
>>>nevermind the fact that I can't think of a case where I'm
>>>likely to "retrieve" a key from a dict, modify it, and then put it
>>>back. (I c
Have you ever wondered where your python modules get imported from?
Here is a little script, called "pywhich", that will tell you.
--
\/ \/
(O O)
-- oOOo~(_)~oOOo
Keith Dart <[EMAIL P
jfj wrote:
Why can't we __setitem__ for tuples?
It seems from your suggestions here that what you really want is a
single sequence type, list, instead of two sequence types: tuple and
list. Under your design, list would support hash, and it would be up to
the programmer to make sure not to modi
To canadians there is no "outside" of hockey games.
Jeff Shannon wrote:
Peter Hansen wrote:
P.S.: I'm only half Danish, but the other half is from
a particularly bloodthirsty line of Canadians.
I thought it was physically impossible for Canadians to be bloodthirsty
outside of hockey games... ;)
On Fri, 17 Dec 2004 01:43:56 -0600, rumours say that Mike Meyer
<[EMAIL PROTECTED]> might have written:
>Assembler was better - at least you had recursion with
>assembler.
You had recursion with BASIC --what you probably mean is that you had no
stacked parameters (unless you imitated that with us
Except what if you want to access elements based on user input or something?
you can't do
var = "varA"
obj = struct(varA = "Hello")
print obj.var
and expect it to say Hello to you.
objects contain a __dict__ for a reason :P
> Certainly makes writing 'print obj.spam, obj.spam, obj.eggs, obj.bacon,
>
*** WARNING **
Este mensaje ha sido analizado por MDaemon AntiVirus y ha encontrado
un fichero anexo(s) infectado(s). Por favor revise el reporte de abajo.
AttachmentVirus name Action taken
---
Back in 2000 I made a news aggregation site (REALpolitik,
http://www.realpolitik.com/) since I didn't find anything that fit my
needs. (REALpolitik is unfortunately made in Perl; it was my last
significant project before I started using Python for most of my work.)
At the time, RSS had not re
Alex Stapleton wrote:
you can't do
var = "varA"
obj = struct(varA = "Hello")
print obj.var
and expect it to say Hello to you.
The Bunch object from the PEP can take parameters in the same way that
dict() and dict.update() can, so this behavior can be supported like:
>>> b = Bunch({"varA":"Hello!"
Thanks for the help. This is the final script:
#!/usr/bin/env python
import os
import sys
import time
import string
import pexpect
import commands
# Test if the words of list2 elements appear in any order in list1 elements
# disregarding case and parens
# Reference list
list1 = ["a b C (D)", "D
Steven Bethard wrote:
Alex Stapleton wrote:
you can't do
var = "varA"
obj = struct(varA = "Hello")
print obj.var
and expect it to say Hello to you.
The Bunch object from the PEP can take parameters in the same way that
dict() and dict.update() can, so this behavior can be supported like:
>>> b
Mark Devine wrote:
the trouble is it throws up the following error for set:
$ ./test.py
Traceback (most recent call last):
File "./test.py", line 23, in ?
reflist = [normalize(element) for element in list1]
File "./test.py", line 20, in normalize
return set(text.split())
NameError: glob
Thanks. This version is the version that comes with cygwin. They must be behind.
Steven Bethard <[EMAIL PROTECTED]> wrote:
>
> Mark Devine wrote:
> > the trouble is it throws up the following error for set:
> >
> > $ ./test.py
> > Traceback (most recent call last):
> > File "./test.py", line
Alex Stapleton wrote:
you are setting the variable name in your code (b.varA), not generating
the variable name in a string (var = "varA") (dictionary key) at
run-time and fetching it from the __dict__ like i was attempting to
describe.
Ahh. Well if you just want to get an attribute, I don't se
Mike Meyer wrote:
BASIC as implented by Microsoft for the Apple II and the TRS 80 (among
others) is simply the worst programming language I have ever
encountered. Assembler was better - at least you had recursion with
assembler.
Basic has progressed much since you last looked at it, time to update
Steven Bethard wrote:
Alex Stapleton wrote:
you are setting the variable name in your code (b.varA), not
generating the variable name in a string (var = "varA") (dictionary
key) at run-time and fetching it from the __dict__ like i was
attempting to describe.
Ahh. Well if you just want to get a
I got the script working. Thanks for all your help everyone. Trouble is its not
showing the correct results. Here is the script and results:
#!/usr/bin/env python
import os
import sys
import time
import string
import pexpect
import commands
from sets import Set as set
# Test if the words of lis
[EMAIL PROTECTED] wrote:
> Having done steps 1 to 10, I tried building Numeric-23.6. And got the
> following error-msg:
>
> F:\install\Numeric-23.6>python setup.py build
> running build
> running build_py
> running build_ext
> building '_numpy' extension
> D:\Programme\Microsoft Visual C++ Toolkit
Esmail Bonakdarian wrote:
do you (or anyone else) have a recommendation for 2D type
graphics?
A possible approach is jython that gives you access to Java2D. Makes it easy
to deploy your animated or interactive graphics as a java-compatible applet.
--
http://mail.python.org/mailman/listinfo/python
If I use:
if el.issubset(testelement):
I get a closer anwser but the brackets cause a problem. They are optional in
the test list so (D) in the test list is equal to D or (D) in the reference
list.
"Mark Devine" <[EMAIL PROTECTED]> wrote:
>
> I got the script working. Thanks for all your he
Hi - This is probably quite a stupid question but I've never
understood what setup.py does. I've got a situation at the moment
where I would like to use a script (which someone else has written and
made available) to do CGI on a shared webserver to which I do not have
shell access.
The install ins
Mark Devine wrote:
> I got the script working. Thanks for all your help everyone. Trouble is
> its not showing the correct results. Here is the script and results:
In my book it is not working then.
> def normalize(text, unwanted = "()", table =
> string.maketrans(string.ascii_uppercase,string.a
Peter Hickman wrote:
> Mike Meyer wrote:
>> BASIC as implented by Microsoft for the Apple II and the TRS 80 (among
>> others) is simply the worst programming language I have ever
>> encountered. Assembler was better - at least you had recursion with
>> assembler.
>
> Basic has progressed much sin
Richard Shea wrote:
> Hi - This is probably quite a stupid question but I've never
> understood what setup.py does. I've got a situation at the moment
> where I would like to use a script (which someone else has written and
> made available) to do CGI on a shared webserver to which I do not have
>
Max M <[EMAIL PROTECTED]> wrote in news:41bf121e$0$280
[EMAIL PROTECTED]:
>
> ##
> st = '80 00 00 00'
>
> import binascii
> import struct
>
> s = ''.join([binascii.a2b_hex(s) for s in st.split()])
> v = struct.unpack("f", s)[0]
> print v
> ##
This one worked great for what I was trying to do.
On Fri, Dec 17, 2004 at 11:49:22AM +0100, Peter Otten wrote:
> Peter Hickman wrote:
> > [..] Basic has progressed much since you last looked at it, time
> > to update your facts. Basic has recursion, it compiles to native
> > code, it has objects, can be event driven and everything else you
> > wou
In article <[EMAIL PROTECTED]>, Mike Meyer <[EMAIL PROTECTED]> wrote:
>And before Python 2.2 there was the UserList class in the standard
>library. Which is still there in 2.4. Shouldn't it be depreciated by
>this point?
Apart from compatibility issues as mentioned in the UserList
documentation,
Am Fri, 17 Dec 2004 09:09:25 + schrieb Keith Dart:
> Have you ever wondered where your python modules get imported from?
> Here is a little script, called "pywhich", that will tell you.
Nice, you could add it to the python cookbook.
Thomas
--
Thomas Güttler, http://www.thomas-guettler.de
Peter Otten wrote:
May you could give us an idea of the current state of basic affairs then by
translating the following example snippet:
yes you can do it in VB6, but pythons lists and dictionarys are superior
to those built in in VB and I think to those in most other languages.
It's me wrote:
Gerhard Haering wrote:
IIRC BASIC does have a portable language definition:
ANSI BASIC, which is the old crap with GOTO and GOSUB that nobody in
their right mind would want to use nowadays ...
True, I forgot about that. The nearest to portable I have seen is Bywater Basic.
At least it is written i
Christos TZOTZIOY Georgiou wrote:
On Thu, 16 Dec 2004 14:28:21 +, rumours say that [EMAIL PROTECTED]
I challenge you to a benchmark :-)
Well, the numbers I provided above are almost meaningless with such a
small set (and they easily could be reverse, I just kept the
convenient-to-me first run
Thomas Guettler wrote:
> [...]
> Nice, you could add it to the python cookbook.
> [...]
Just in the case the OP doesn't know where to find the cookbook:
http://aspn.activestate.com/ASPN/Cookbook/Python/
--
http://mail.python.org/mailman/listinfo/python-list
Gerhard Haering wrote:
> In VB6, it would an exercise of working around the limitations of the
> data structures.
In MS Access I would probably end up with two database tables. The
juxtaposition of incredibly polished and virtually unusable features is
amazing.
Peter
--
http://mail.python.org
M.E.Farmer wrote:
> Messed up it does need the dots.
> This should handle bmp ico png gif and several other formats.
> Still need to be 32 by 32
>
> wx.InitAllImageHandlers()
> image = wx.Image(file, wx.BITMAP_TYPE_ANY)
> image = image.ConvertToBitmap()
>
> icon = wxEmptyIcon()
> icon.CopyFromBitm
Thought you might enjoy my super-small flatten function: (though google
groups seems to be munging my whitespace today)
def flatten(d):
"flatten([[[1,[2,3],[4,5]],6],[7]])==[1,2,3,4,5,6,7]"
return reduce(lambda a,b:a+b,[(type(x) in (list, tuple) \
and flatten(x) or [x]) for x in d])
--
http://ma
Steven Bethard wrote:
Very cool. I didn't know about this. Does anyone know how to make it
work with Pythonwin[1]? (Obviously, I can type the above in manually
every time, but I'd much rather have Pythonwin do this automatically for
me.)
Steve
[1] I'd do my example code at the command prompt
The point is that when you have 100,000s of records, this grep becomes
really slow?
Any comments?
Thats why I looked for python :)
> that would be
>
> grep -vf B A
>
> and it is a rare use of grep, indeed.
> --
> TZOTZIOY, I speak England very best.
> "Be strict when sending and tolerant when
You could *try* writing a cgi which did something like
os.spawnv('python', ['setup.py', 'install']) (or whatever would be
right without looking up the docs)...
You sometimes don't need admin rights to run setup.py
I would be interested in the results.
Regards,
Fuzzy
http://www.voidspace.org.uk/
You could *try* writing a cgi which did something like
os.spawnv('python', ['setup.py', 'install']) (or whatever would be
right without looking up the docs)...
You sometimes don't need admin rights to run setup.py
I would be interested in the results.
Regards,
Fuzzy
http://www.voidspace.org.uk/
On Fri, 17 Dec 2004 12:21:08 +, rumours say that [EMAIL PROTECTED]
might have written:
[snip some damn lie aka "benchmark"]
[me]
>> (Yes, I cheated by adding the F (for no regular expressions) flag :)
>
>Also you only have 1000 entries in B!
>Try it again with all entries in B also ;-)
>Remem
Jeff Shannon wrote:
Judging from this, I think that os.environ['USERPROFILE'] seems like it
may do what you want, though os.environ['APPDATA'] might be useful as
well. Of course, if you're trying to get something to work
cross-platform, things may be more difficult -- but that's because
Window
"Christos TZOTZIOY Georgiou" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Fri, 17 Dec 2004 01:43:56 -0600, rumours say that Mike Meyer
> <[EMAIL PROTECTED]> might have written:
>
> >Assembler was better - at least you had recursion with
> >assembler.
>
> You had recursion with
"Gregor Horvath" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Peter Otten wrote:
>
> > May you could give us an idea of the current state of basic affairs then
by
> > translating the following example snippet:
>
> yes you can do it in VB6, but pythons lists and dictionarys are sup
[EMAIL PROTECTED] wrote:
I rather like it! I prefer writing obj.spam to obj["spam"]! I wonder if
there is a technical downside to this use of Python?
P.S.
Certainly makes writing 'print obj.spam, obj.spam, obj.eggs, obj.bacon,
obj.sausages, "and", obj.spam' a lot easier ;-)
Of course this whole t
Gregor Horvath wrote:
> Peter Otten wrote:
>
>> May you could give us an idea of the current state of basic affairs then
>> by translating the following example snippet:
>
> yes you can do it in VB6, but pythons lists and dictionarys are superior
> to those built in in VB and I think to those in
It's me wrote:
Absolutely *ugly*!
But still, your point is well taken. Thank you for pointing this out.
Adam was right:
"Don't do it, unless your goal is simply to embarrass and insult
programmers".
OK. Then please schow me, how you can create a complex form with grids,
explorer like trees etc.
Ok, here are my results, all python Versions supplied by Debian:
[EMAIL PROTECTED]:~> python1.5 /usr/lib/python1.5/test/pystone.py
Pystone(1.1) time for 1 passes = 1.33
This machine benchmarks at 7518.8 pystones/second
[EMAIL PROTECTED]:~> python2.2 /usr/lib/python1.5/test/pystone.py
Pystone(1
Hi,
I just wrote my first decorator example - and I already love them.
However I've encountered one peculiarity that strikes me odd:
When one writes a decorated function like this:
@decorate
def foo():
pass
the function decorate usually looks like this:
def decorate(func):
def _d(*ar
Mark Devine wrote:
I got the script working. Thanks for all your help everyone. Trouble is its not
showing the correct results. Here is the script and results:
Well, that's a pretty unusual interpretation of the word "working" :-)
> [...]
I see from later postings you are getting closer to an answ
On Thu, 16 Dec 2004 20:20:09 -0500, Grumman <[EMAIL PROTECTED]> wrote:
> I'm sure there's a pretty complete python ADO wrapper out there as well.
http://adodbapi.sourceforge.net/
--
Cheers,
Simon B,
[EMAIL PROTECTED],
http://www.brunningonline.net/simon/blog/
--
http://mail.python.org/mailman/l
Alex Stapleton wrote:
To canadians there is no "outside" of hockey games.
Some Canadians aren't so fanatical about hockey, or any sport.
For example, I've still never figured out how "conversions" work...
or switch-hitters.
--
http://mail.python.org/mailman/listinfo/python-list
sf wrote:
The point is that when you have 100,000s of records, this grep becomes
really slow?
There are performance bugs with current versions of grep
and multibyte characters that are only getting addressed now.
To work around these do `export LANG=C` first.
In my experience grep is not scalable s
Adam DePrince wrote:
On Thu, 2004-12-16 at 13:36, abisofile wrote:
hi
I'm new to programming.I've try a little BASIC so I want ask since
Python is also interpreted lang if it's similar to BASIC.
Nobody is answering this question because they are shuddering in fear
and revulsion.
During the 19
Gregor Horvath wrote:
It's me wrote:
Absolutely *ugly*!
But still, your point is well taken. Thank you for pointing this out.
Adam was right:
"Don't do it, unless your goal is simply to embarrass and insult
programmers".
OK. Then please schow me, how you can create a complex form with grids,
exp
The function is os.rename(old, new). If you actually
tried 'os.raname' (as your post suggests) that is an illegal
function. I suspect that you mistyped it in your post,
but Peter's replys is correct. Always copy and paste your
code and your traceback error message so it will be precise.
Permisss
Steve Holden wrote:
>> Certainly makes writing 'print obj.spam, obj.spam, obj.eggs, obj.bacon,
>> obj.sausages, "and", obj.spam' a lot easier ;-)
>>
> Of course this whole thing of substituting attribute access for dictionary
> keys only works as long
> as the keys are strings with the same synt
Am Fri, 17 Dec 2004 02:17:38 -0600 schrieb Robert Dick:
> Derived classes sometimes need to delegate portions of the work in overridden
> methods to methods in their base classes. This was traditionally done with
> explicit calls in python, e.g.,
>
> class Base:
> def __init__(self):
> p
Gregor Horvath wrote:
It's me wrote:
Absolutely *ugly*!
But still, your point is well taken. Thank you for pointing this out.
Adam was right:
"Don't do it, unless your goal is simply to embarrass and insult
programmers".
OK. Then please schow me, how you can create a complex form with grids,
expl
I love Python and started back when 1.52 was the popular version.
Whilst learning Python, I created a website framework called [EMAIL PROTECTED],
which I run at the following two sites :
http://www.meeks.ca
All content is done in [EMAIL PROTECTED] and static pages are created.
http://www.programm
Richards Noah wrote:
>> You had recursion with BASIC --what you probably mean is that you had no
>> stacked parameters (unless you imitated that with using an indexed
>> array).
>>
>> 90 rem recursion
>> 100 print "beautiful colours"
>> 110 gosub 100
>
> I think he means that you had no recursive
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
Would someome like to post their email filters code. Its so common that
probably some standard library
supports it or many would have written it already. If I have basic
structure, I can take from there.
( Essentially I want get rid of XP by getting rid of powerful mail client
"TheBat!" )
...
Fredrik Lundh wrote:
Steve Holden wrote:
Certainly makes writing 'print obj.spam, obj.spam, obj.eggs, obj.bacon,
obj.sausages, "and", obj.spam' a lot easier ;-)
Of course this whole thing of substituting attribute access for dictionary keys only works as long
as the keys are strings with the same
Jive wrote:
> # Is that really much different from this?
Functionally, no. However it can help make code more readable when
dealing with complex data structures, e.g. compare:
obj.spam[1].eggs[3].ham
to:
obj["spam"][1]["eggs"][3]["ham"]
I've used it a couple times for this particular reason a
Diez B. Roggisch wrote:
def decorate(func):
def _d(*args, **kwargs):
do_something()
# call func
func(*args, **kwargs)
return _d
@decorate
def foo():
pass
[T]he function decorator has to return a function that is bound to the na
Steve Holden wrote:
Adam DePrince wrote:
On Thu, 2004-12-16 at 13:36, abisofile wrote:
hi
I'm new to programming.I've try a little BASIC so I want ask since
Python is also interpreted lang if it's similar to BASIC.
Nobody is answering this question because they are shuddering in fear
and revulsio
It turns out that the retrlines method strips of EOL CRLF and \n. My
solution was to create a new method in ftplib that doesn't do this.
I'm assuming that there is a better OOP solution to this, e.g. some
kind of subclassing, but do not have the expertise as yet to implement
that. At any rate, ju
On Fri, 17 Dec 2004 15:07:26 GMT, sf <[EMAIL PROTECTED]> wrote:
> Would someome like to post their email filters code. Its so common that
> probably some standard library
> supports it or many would have written it already. If I have basic
> structure, I can take from there.
http://spambayes.sourc
"Mike Meyer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> "Thomas Bartkus" <[EMAIL PROTECTED]> writes:
>
> > The "interpreted" nature of the existing Python language has little to
do
> > with how it compares to other languages. Most languages, including
BASIC,
> > are available in
Hello
I was wondering if there is an existing function that would let me
determine the difference in time. To explain:
Upon starting a program:
startup = time.time()
After some very long processing:
now = time.time()
print, now - startup
So, to print in a formatted way (D-H-M-S) the dif
Hi
> Clear now? there is no extra indirection. If you call something on
> the @ line, the _result_of_that_call_ should be a decorator function.
> If you use my curry recipe in the python cookbook, you can use curry
> lower the apparent "indirection":
Ok - that makes it clear, thanks.
--
Regard
"GMane Python" <[EMAIL PROTECTED]> wrote:
> I was wondering if there is an existing function that would let me
> determine the difference in time. To explain:
>
> Upon starting a program:
>
> startup = time.time()
>
> After some very long processing:
> now = time.time()
>
> print, now - star
> ..
> - open POP-SSL connection to pop.someserver.com
> - Get all mails and store as Unix mail file (mymails)
> - do not delete mails from server
> - close connection.
> ..
> - open mymails file
>
> - Do following for each mail in mymails file (one
"hawkmoon269" <[EMAIL PROTECTED]> wrote:
> It turns out that the retrlines method strips of EOL CRLF and \n. My
> solution was to create a new method in ftplib that doesn't do this.
> I'm assuming that there is a better OOP solution to this, e.g. some
> kind of subclassing, but do not have the ex
On Friday 17 December 2004 15:40, Fredrik Lundh wrote:
> "GMane Python" <[EMAIL PROTECTED]> wrote:
> > I was wondering if there is an existing function that would let me
> > determine the difference in time. To explain:
> >
> > Upon starting a program:
> >
> > startup = time.time()
> >
> > After
"hawkmoon269" <[EMAIL PROTECTED]> wrote:
> Specifically, when I use DOS, the file transfers like this --
>
> string, string, string (hidden CRLF)
> string, string, string (hidden CRLF)
> ...
>
> but when I use Python in transfers like this --
>
> string, string, string (hidden CRLF) string, string
On Fri, 17 Dec 2004 13:53:15 +, Gregor Horvath wrote:
> OK. Then please schow me, how you can create a complex form with grids,
> explorer like trees etc. in 2 minutes in standard python.
>
> Or make any given standard python object accessible from MS Excel in 2
> minutes.
Boa, gtkglade, or
On Fri, 17 Dec 2004 14:22:34 +, rumours say that [EMAIL PROTECTED]
might have written:
sf:
>sf wrote:
>> The point is that when you have 100,000s of records, this grep becomes
>> really slow?
>
>There are performance bugs with current versions of grep
>and multibyte characters that are only g
"Fuzzyman" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Dan Perl wrote:
>> "Mike Meyer" <[EMAIL PROTECTED]> wrote in message
>> news:[EMAIL PROTECTED]
>> > "Dan Perl" <[EMAIL PROTECTED]> writes:
>> >
>> >> "Mike Meyer" <[EMAIL PROTECTED]> wrote in message
>> >> news:[EMAIL PROT
I got this working now. Thanks everybody for your help.
_
Sign up for eircom broadband now and get a free two month trial.*
Phone 1850 73 00 73 or visit http://home.eircom.net/broadbandoffer
--- Begin Message ---
Happy to help. Pass
I just wanted to indicate that a carriage return is present but not
visible.
hawk
--
http://mail.python.org/mailman/listinfo/python-list
Alex Stapleton wrote:
> you can't do
>
> var = "varA"
> obj = struct(varA = "Hello")
> print obj.var
>
> and expect it to say Hello to you.
Did you mean "print obj.varA"? I can't think of any use case for the way
you wrote it, so I'm naively guessing you've got a typo. Feel free to
correct me. ;)
That's a good idea. Thanks! :-)
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
I really like the finditer() method of the re module. I'm having
difficulty at the moment, however, because finditer() still creates a
callable-iterator oject, even when no match is found. This is
undesirable in cases where I would like to circumvent execution of code
meant to parse out data
André wrote:
> I needed to scale the image down to 16 by 16 on my Windows computer
to
> make it work.
Hello André,
# I actually ran this code ;)
import wx
app = wx.PySimpleApp()
class myframe(wx.Frame):
def __init__(self):
wx.Frame.__init__(self,None,-1,"Icon Frame",
size=(100,100),pos=(-1,-1))
This must be the silliest question ever:
What about user input in Python? (like stdin)
Where can I find it? I can't find any references to it in the documentation.
Amir
--
http://mail.python.org/mailman/listinfo/python-list
On Friday 17 December 2004 16:40, Amir Dekel wrote:
> This must be the silliest question ever:
>
> What about user input in Python? (like stdin)
> Where can I find it? I can't find any references to it in the
> documentation.
See sys.stdin
Cheers,
Frans
--
http://mail.python.or
Title: RE: A completely silly question
[Amir Dekel]
#- What about user input in Python? (like stdin)
#- Where can I find it? I can't find any references to it in
#- the documentation.
sys.stdin
http://docs.python.org/lib/module-sys.html
. Facundo
. . . . . . . . . . . . . .
1 - 100 of 250 matches
Mail list logo