>
> You can do that in Python using the pywin32 extensions
> either by using the Wshell objects as you have done:
>
>
>
> import win32com.client
> WShell = win32com.client.Dispatch ("WScript.Shell")
> WShell.SpecialFolders ("Desktop")
>
>
>
> or by using the shell module from the same packag
Is there any codec available for handling The special UTF-7 codec for IMAP?
I have searched the web for info, but there only seem to be discussions
about it. Not actual implementations.
This is what I am talking about:
http://www.faqs.org/rfcs/rfc2060.html
5.1.3. Mailbox International Naming Con
Steven Bethard wrote:
> Peter Otten wrote:
>> Steven Bethard wrote:
>>
>>>def __eq__(self, other):
>>>"""x.__eq__(y) <==> x == y"""
>>>return (isinstance(other, self.__class__)
>>>and self.__dict__ == other.__dict__)
>>
>> This results in an asymmetry:
>>
> [snip]
>>
>> Whe
Brad Tilley wrote:
Python 2.3 placed a registry key under:
'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Python2.3'
[...]
Python 2.4 does not use this registry entry on the two machines I have
installed it on... any tips on how to locate this?
It's under
HKEY_LOCAL_MACHI
Max M wrote:
Is there any codec available for handling The special UTF-7 codec for IMAP?
I have searched the web for info, but there only seem to be discussions
about it. Not actual implementations.
Is there something special do you need or is recipe OK?
>>> u"\u00ff".encode('utf-7')
'+AP8-'
Cheer
Can we expect the current release of 2.4 to be just as reliable as
2.3.4 for 2.3 compliant software?
Thanks for any help!
Jens
--
http://mail.python.org/mailman/listinfo/python-list
Christmas came early this year. Thank you all nice Python developers.
--
mvh Björn
--
http://mail.python.org/mailman/listinfo/python-list
Brian Quinlan wrote:
> Max M wrote:
>
>> Is there any codec available for handling The special UTF-7 codec for
>> IMAP?
> Is there something special do you need or is recipe OK?
>
> >>> u"\u00ff".encode('utf-7')
> '+AP8-'
A recipe would be excellent. Unfortunately yours is no right. It should
hav
On Wed, Dec 01, 2004 at 10:23:55AM +0100, Jens Bloch Helmers wrote:
> Can we expect the current release of 2.4 to be just as reliable as
> 2.3.4 for 2.3 compliant software?
Only time will tell.
I myself had never had any problems with 2.x.0 versions of Python. Only early
2.0.x had a few problems
wes weston <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>...
> Lad wrote:
> > Hi,
> > I have a file of records of 4 fields each.
> > Each field is separated by a semicolon. That is
> >
> > Filed1;Ffield2;Field3;Field4
> >
> > But there may be also empty records such as
> >
> >
Some more decorator examples.
How to create abstract methods using an @absractmethod decorator:
http://www.brpreiss.com/books/opus7/html/page117.html
Generics, property getters and setters. I don't know what these
decorators are supposed to do:
http://www.cis.upenn.edu/~edloper/pydecorators.html
Lad wrote:
> wes weston <[EMAIL PROTECTED]> wrote in message
> news:<[EMAIL PROTECTED]>...
>> Lad wrote:
>> > Hi,
>> > I have a file of records of 4 fields each.
>> > Each field is separated by a semicolon. That is
>> >
>> > Filed1;Ffield2;Field3;Field4
>> >
>> > But there may be also empty reco
Hello NG,
I am quite new with Python... I'm writing an application that does
also some regexp things on strings, but I'm having problem about
identifying/extracting a substring from another string. What I have to do
is to extract all the strings that begins with a "$" character, but
excluding
[EMAIL PROTECTED] writes:
> #CODE BEGIN
> import re
>
> mystring = "This Is An \$EXAMPLE\String;"
> regex = re.compile("[\$]+\S*",re.IGNORECASE)
> keys = regex.findall(mystring)
>
> #CODE END
regex = re.compile("[\$]+\w*",re.IGNORECASE)
>>> import re
>>>
>>> mystring = "This Is An \$EXAMPLE\Stri
You could try the following:
regex = re.compile("[\$]\w+", re.IGNORECASE)
I've only done a bit of testing. Maybe somebody has a better solution.
Cheers!!
Dermot.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: 01 December 2004
On 2004-12-01, fuego <[EMAIL PROTECTED]> wrote:
> My company (http://primedia.com/divisions/businessinformation/) has
> two job openings that we're having a heckuva time filling.
Allow offsite workers and you'll have all the candidates you want.
-Bill
--
Sattre Press
[EMAIL PROTECTED] wrote:
> identifying/extracting a substring from another string. What I have to do
> is to extract all the strings that begins with a "$" character, but
> excluding characters like "." (point) and "'" (single quote) and "\" "/"
> (slashes). For example I have:
>
> 1) This Is An
Title: RE: 2.4 or 2.3.4 for 2.3 software?
[Jens Bloch Helmers]
#- Can we expect the current release of 2.4 to be just as reliable as
#- 2.3.4 for 2.3 compliant software?
Actually, you can expect to be more reliable, a lot of bugs were fixed.
. Facundo
--
http://mail.python.org/
BJörn Lindqvist <[EMAIL PROTECTED]> writes:
> I think the essence of decorators is that it makes it possible to do
> in Python what you in other languages do with method qualifiers.
I find it fascinating that the addition of a bit of syntax sugar gives
the perception that a whole range of new and
I'm trying to use a Web Service written in C# from Python (using SOAPpy),
and I don't know how to set namespace.
I'd like to add the attribute xmlns="http://www.uniud.it/email/"; in the tag
or in my method tag .
I don't want the syntax http://servizi.amm.uniud.it/email/";> used by SOAPpy because
Hi
I´m wondering why there are so few examples with Semaphore.
Is it obsolete?
I´ve got a Class Data.
It offers 2 Threads methods for updating, editing, .. a private
dictionary.
Now I have to make sure, that both threads are synchronal,
1 thread edits something and the other is blocked until th
fuego> We've posted at Monster, Dice, jobs.perl.org and
fuego> python.jobmart.com. Can anyone advise other job boards that
fuego> might be helpful?
http://www.python.org/Jobs-howto.html
Skip
--
http://mail.python.org/mailman/listinfo/python-list
I realize this is more a regexp question than a python question, but maybe one
of the re object could help me:
I have wish to know how to _no_ match:
This is but an example of the data I handle:
xx xx xx xx xx xx xx [yy yy yy yy yy yy yy] (zz zz zz zz)
I currently can retrieve the three group
Jens Bloch Helmers wrote:
Can we expect the current release of 2.4 to be just as reliable as
2.3.4 for 2.3 compliant software?
Yes, you can expect it.
Whether it *will be* just as reliable is of course a different
story.
The best way to find out is to install it and use it with
your 2.3 software.
On Wed, 01 Dec 2004 10:35:59 +0100, Max M <[EMAIL PROTECTED]> wrote:
>Brian Quinlan wrote:
> > Max M wrote:
> >
> >> Is there any codec available for handling The special UTF-7 codec for
> >> IMAP?
>
> > Is there something special do you need or is recipe OK?
> >
> > >>> u"\u00ff".encode('
Jacek> Anything you can do with decorators, you could do before (with
Jacek> the exception of rebinding the __name__ of functions).
And while that feature was added because we realized it would be nice if the
decorated function could have the same name as the original function, it
seems l
On 30 Nov 2004 12:09:37 -0800, Chang LI <[EMAIL PROTECTED]> wrote:.
> > On behalf of the Python development team and the Python community, I'm
> > happy to announce the release of Python 2.4.
> >
>
> Is there Windows 64-bit edition available?
If you went to the 2.4 page, you'd see that there is i
Bastian Hammer wrote:
Hi
I´m wondering why there are so few examples with Semaphore.
Is it obsolete?
I´ve got a Class Data.
It offers 2 Threads methods for updating, editing, .. a private
dictionary.
Now I have to make sure, that both threads are synchronal,
1 thread edits something and the other
Hello Philippe,
> What I would rather do is.
>
> "get the data block that is _not_ between brackets or parenthesis i.e; 'xx
> xx
> xx xx xx xx xx' knowing that the intial string could be:
See http://docs.python.org/lib/re-syntax.html and search for "negative
lookahead"
HTH.
--
---
Thanks for your response.
I guess the documentation on the p format wasn't clear to me ... or
perhaps I was just hoping to much for an easy solution !
The data is part of a record structure that is written to a file with
a few "int"'s and "longs" mixed in. The pattern repeats through the
file wi
> "Bastian" == Bastian Hammer <[EMAIL PROTECTED]> writes:
Bastian> Now I have to make sure, that both threads are
Bastian> synchronal, 1 thread edits something and the other is
Bastian> blocked until the first thread is ready.
Bastian> Isn´t it a good idea to do this with a se
Hello all,
I need your wisdom again. I'm working on a multi-threaded application
that handles multiple data sources in small batches each time. The idea
is that there are 3 threads that run simultaneously, each read a fixed
number of records, and then they wait for eachother. After that the main
"Yuri Shtil" <[EMAIL PROTECTED]> writes:
> I am trying to learn python and use the gud/pdb from emacs. The
> functionality that I am used to under gud/gdb and gud/perldb is missing, or
> I don't know how to make it work.
> Specifically: when I start pdb on a script file, the source does not show i
"anton muhin" wrote:
> Stefan Behnel wrote:
> >
> >
> > shark schrieb:
> >
> >> row = {"fname" : "Frank", "lname" : "Jones", "city" : "Hoboken",
> >> "state" :
> >> "Alaska"}
> >> cols = ("city", "state")
> >>
> >> Is there a best-practices way to ask for an object containing only the
> >> keys
> >
Martin v. Löwis wrote:
Brad Tilley wrote:
Python 2.3 placed a registry key under:
'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Python2.3'
[...]
Python 2.4 does not use this registry entry on the two machines I have
installed it on... any tips on how to locate this?
It
On Wed, 1 Dec 2004 10:23:28 -0500, Dave Merrill <[EMAIL PROTECTED]> wrote:
> "anton muhin" wrote:
> > Or dict((key, row[key]) for key in cols).
>
> I'm on Py 2.3.3, and neither of these appear to work. Can someone confirm? I
> can't see anything in the 2.4 release notes that point to where this wo
The correct syntax is:
dict([(key, row[key]) for key in cols])
i.e. the list must be enclosed in [...].
/Jean Brouwers
In article <[EMAIL PROTECTED]>, Dave Merrill
<[EMAIL PROTECTED]> wrote:
> "anton muhin" wrote:
> > Stefan Behnel wrote:
> > >
> > >
> > > shark schrieb:
> > >
> > >> ro
Harry George <[EMAIL PROTECTED]> writes:
> Normally the SOAP Servers are designed to take control of a port and
> run their own sockets via inheritance from SocktServer.
>
> But under inetd and xinetd, the port is controlled elsewhere and the
> service just gets the stdin/stdout. I need to config
Anthony Baxter schrieb:
happy to announce the release of Python 2.4.
Thanks!
minor remarks:
First line from C:\Python24\README.txt
This is Python version 2.4 alpha 3
In C:\Python24\Tools
in various subdirs the README.TXT files disappeared.
--
regards kgm
--
http://mail.python.org/mailman/listinfo/p
Peter Otten <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>...
> Lad wrote:
>
> > wes weston <[EMAIL PROTECTED]> wrote in message
> > news:<[EMAIL PROTECTED]>...
> >> Lad wrote:
> >> > Hi,
> >> > I have a file of records of 4 fields each.
> >> > Each field is separated by a semicolon
Brad Tilley wrote:
Martin v. Löwis wrote:
Brad Tilley wrote:
Python 2.3 placed a registry key under:
'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Python2.3'
[...]
Python 2.4 does not use this registry entry on the two machines I
have installed it on... any tips on how
Peter Otten wrote:
Steven Bethard wrote:
def __eq__(self, other):
"""x.__eq__(y) <==> x == y"""
return (isinstance(other, self.__class__)
and self.__dict__ == other.__dict__)
This results in an asymmetry:
from bunch import Bunch
class B(Bunch): pass
...
B().__eq__(Bunch())
False
B
Gentlemen,
I'm looking for a graphing or drawing python package that will allow me
to draw complex geometric shapes. I need to be able to create shapes
like cogwheels and Venn diagrams:
http://encyclopedia.thefreedictionary.com/Venn
The library must support alpha blending and the ability to retu
On Wed, 1 Dec 2004 07:48:24 -0600, Philippe C. Martin
<[EMAIL PROTECTED]> wrote:
I realize this is more a regexp question than a python question, but
maybe one
of the re object could help me:
I have wish to know how to _no_ match:
This is but an example of the data I handle:
xx xx xx xx xx xx
Hello,
I have a script that is called by the shell this way :
mqtrigger.py "TMC2TEST.QUEUE LV1871.MQPROCESS"
So argv[1] is the string "TMC2TEST.QUEUE LV1871.MQPROCESS"
I would like to construct a class with that string that contains the
attributes
-StrucId
-VersionId
-QName
-Pr
Alban Hertroys wrote:
Hello
all,
I need your wisdom again. I'm working on a multi-threaded application
that handles multiple data sources in small batches each time. The idea
is that there are 3 threads that run simultaneously, each read a fixed
number of records, and then they wait for e
Dave Merrill wrote:
"anton muhin" wrote:
Or dict((key, row[key]) for key in cols).
I'm on Py 2.3.3, and neither of these appear to work.
You're probably getting the error shown. Try the change in
the line following it instead.
Python 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit (Intel)]
I have a project for which being able to write xmlrpc server code in python
would be vastly preferable to the second choice solution for a number of
reasons. Unfortunately, pretty much everything I see on the net in the way
of documentation appears either insufficient or outdated.
The example gi
I just came across the slides for Guido van Rossum's "Python Regrets"
talk, given in 2002. It worries me that much of my Python code would
be broken if all of his ideas were implemented. He doesn't even like
'print'. Of course, I am not qualified to argue with Van Rossum about
the direction of Pyth
"fuego" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> My company (http://primedia.com/divisions/businessinformation/) has
> two job openings that we're having a heckuva time filling. We've
> posted at Monster, Dice, jobs.perl.org and python.jobmart.com. Can
> anyone advise other j
[EMAIL PROTECTED] wrote:
I just came across the slides for Guido van Rossum's "Python Regrets"
talk, given in 2002. It worries me that much of my Python code would
be broken if all of his ideas were implemented. He doesn't even like
'print'. Of course, I am not qualified to argue with Van Rossum ab
ted> The example given in the Python documentation for
ted> SimpleXMLRPCServer is more or less incomprehensible.
Agreed, there is a doc fix needed. Try mentally adding
from math import *
to the start of the example. That will get you the pow function. It's
still incorrect thoug
[EMAIL PROTECTED]
> I just came across the slides for Guido van Rossum's "Python
> Regrets" talk, given in 2002. It worries me that much of my Python
> code would be broken if all of his ideas were implemented.
Actually, none of it would break, provided you don't change the Python
implementation y
Hi,
I use select() to wait for a file object (stdin) to become readable. In that
situation I wanted to read everything available from stdin and return to
the select statement to wait for more.
However, the file object's read method blocks if the number of bytes is 0 or
negative.
Is there no way
On Tue, 30 Nov 2004 16:46:43 -0500, Brad Tilley <[EMAIL PROTECTED]> wrote:
> I discovered that when I wrap my code up in a function def and call it
> that it uses around 4.6 MB of RAM all the time... even while sleeping.
> However, when I don't put it in a function def it uses around 2.6MB of
> dat
Skip Montanaro wrote:
> ted> I don't see what "lambda" is or how a lambda function is supposed
> ted> to be construed as adding two numbers together.
>
> Lambda is a keyword in Python used to create and return very simple
> (single-expression) functions. Lambda expressions can be used a
ted> Would several web services on the same server listen on different
ted> ports (, 8889, 8890...) or on the same port?
Port numbers are never implicit. You need to provide a listen port each
time you start the server.
Skip
--
http://mail.python.org/mailman/listinfo/python-list
ted> The only other real question is what about the cgi servers? I'd
ted> assume I'd take the example given:
ted> class MyFuncs:
ted> def div(self, x, y) : return div(x,y)
ted> handler = CGIXMLRPCRequestHandler()
ted> handler.register_function(pow)
ted> handler.re
> Im trying to compile a script with py2exe. The pickle module is causing the
> program to give an error.
>
> Traceback (most recent call last):
> File "SETIstat.pyw", line 330, in ?
> File "SETIstat.pyw", line 84, in start_up
> File "SETIstat.pyw", line 79, in config_load
> File "pickle.p
Looks like the installer for the Win32 extensions has changed from Wise to
distutils, so now my automated silent installations don't work anymore.
Anyone know if the distutils binary installer can be run silently?I
haven't been able find a command line reference for distutils binaries (I'm
Mark Pilgrim wrote a really neat piece of python code that did XML-RPC
over CGI. It seems to have disappeared from his website, though
(http://diveintomark.org/public/webservices.txt).
If you can't dig it up, I have a working copy that I use. I'll post
it / email it if you want.
jw
On Wed, 1
Anyway, what's to worry about?When the time comes just whip out a little
script that converts Python 1.6 (or whatever you like) to Python3K; it will
only take seven lines of P3K code.
--
http://mail.python.org/mailman/listinfo/python-list
Jaime Wyant wrote:
> Mark Pilgrim wrote a really neat piece of python code that did XML-RPC
> over CGI. It seems to have disappeared from his website, though
> (http://diveintomark.org/public/webservices.txt).
>
> If you can't dig it up, I have a working copy that I use. I'll post
> it / email
On Wed, 01 Dec 2004 19:39:45 +0100, Uwe Mayer <[EMAIL PROTECTED]> wrote:
>Hi,
>
> I use select() to wait for a file object (stdin) to become readable. In that
> situation I wanted to read everything available from stdin and return to
> the select statement to wait for more.
>
> However, the file
"Matt Gerrans" <[EMAIL PROTECTED]> writes:
> Looks like the installer for the Win32 extensions has changed from Wise to
> distutils, so now my automated silent installations don't work anymore.
> Anyone know if the distutils binary installer can be run silently?I
> haven't been able find a
You didn't specify exactly how the string is parsed, so this is a guess:
class Thingy(object):
def __init__(self,rawinfo):
self.StructId, vq,self.ProcessName = rawinfo.split()
self.Version,self.QName = vq.split('.')
def __str__(self):
return '' % (self.StructId, self.Versio
>> Have you looked in your web server's error log file?
ted> Shoulda thought of that It's telling me that the name
ted> CGIXMLRPCRequestHandler is not found. In other words, it is trying
ted> to execute the proper file at least. I'd have that that importing
ted> SimpleX
Check these out ->
http://server3.sleekcom.com/~jaime/webservice.html (syntax highlighted version)
http://server3.sleekcom.com/~jaime/webservice.txt (savable text version)
HTH,
jw
On Wed, 01 Dec 2004 20:04:46 GMT, ted holden <[EMAIL PROTECTED]> wrote:
> Jaime Wyant wrote:
>
> > Mark Pilgrim wro
Matt Gerrans wrote:
Anyway, what's to worry about?When the time comes just whip out a little
script that converts Python 1.6 (or whatever you like) to Python3K; it will
only take seven lines of P3K code.
How about 'import classic'
--
http://mail.python.org/mailman/listinfo/python-list
This is to inform those interested in compiling Python in MinGW that
an updated version of pyMinGW is now available.
Get it from here:
http://jove.prohosting.com/iwave/ipython/pyMinGW.html
Regards
Khalid
--
http://mail.python.org/mailman/listinfo/python-list
People!
Have somebody build M2Crypto for 2.4 on windows? If yes, please tell
if there are any problems.
--
http://mail.python.org/mailman/listinfo/python-list
Skip Montanaro wrote:
> If so, you need to qualify the reference to the handler class like
>
> SimpleXMLRPCServer.CGIXMLRPCRequestHandler
Again thanks, that works. If I weren't worried about jinxing myself I'd say
I seem to be in pretty good shape at this point...
Ted
--
http://mail.pyth
Brad Tilley wrote:
Matt Gerrans wrote:
Anyway, what's to worry about?When the time comes just whip out a
little script that converts Python 1.6 (or whatever you like) to
Python3K; it will only take seven lines of P3K code.
How about 'import classic'
... or
from __past__ import __mistakes__
l
In article <[EMAIL PROTECTED]>,
Uwe Mayer <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I use select() to wait for a file object (stdin) to become readable. In that
> situation I wanted to read everything available from stdin and return to
> the select statement to wait for more.
>
> However, the file o
Jp Calderone <[EMAIL PROTECTED]> writes:
> def nonBlockingReadAll(fileObj):
> bytes = []
> while True:
> b = fileObj.read(1024)
> bytes.append(b)
> if len(b) < 1024:
> break
> return ''.join(bytes)
Wouldn't this still
David Siedband wrote:
> The problem I'm solving is to take a sequence like 'ATSGS' and make all
> the DNA sequences it represents. The A, T, and G are fine but the S
> represents C or G. I want to take this input:
>
> [ [ 'A' ] , [ 'T' ] , [ 'C' , 'G' ], [ 'G' ] , [ 'C' , 'G' ] ]
>
> and make
Matt Gerrans wrote:
Maybe there is a better way to do an unattended install of the Win32
extensions (that is, perhaps without using the binary)?
You could use the ActivePython MSI package, which includes the PyWin32
extensions and offers a silent install option:
http://aspn.activestate.com/ASPN/
"Steven Bethard" <[EMAIL PROTECTED]> wrote in message
>>>def __eq__(self, other):
>>>"""x.__eq__(y) <==> x == y"""
>>>return (isinstance(other, self.__class__)
Since an instance of a subclass is an instance of a parent class, but not
vice versa, I believe you introduce here the assymetr
That sounds easy enough, but I imagine the Acive State package requires some
kind of licensing.I'm pre-installing on millions of consumer PCs.
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
I can't install PIL on Python 2.4 ; the soft search Python 2.3 ; gh
!
Do you know if the great F.L. want to make, soon, a P24 version ?
Thanks !
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Terry Reedy wrote:
"Steven Bethard" <[EMAIL PROTECTED]> wrote in message
>>>def __eq__(self, other):
"""x.__eq__(y) <==> x == y"""
return (isinstance(other, self.__class__)
Since an instance of a subclass is an instance of a parent class, but not
vice versa, I believe you introduce here the
Brad Tilley wrote:
I found the documentation here:
http://python.fyxm.net/2.4/msi.html
The original, of course, is at
http://python.org/2.4/msi.html
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
Martin v. Löwis wrote:
Brad Tilley wrote:
I found the documentation here:
http://python.fyxm.net/2.4/msi.html
The original, of course, is at
http://python.org/2.4/msi.html
Regards,
Martin
Thanks Martin... going to a .msi was a great move... we can do fully
automated, unattended installs now. I ap
Michel Claveau - abstraction méta-galactique non triviale en fuite
perpétuelle. wrote:
> Hi !
>
> I can't install PIL on Python 2.4 ; the soft search Python 2.3 ;
gh
> !
> Do you know if the great F.L. want to make, soon, a P24 version ?
Yes, this kind of thing is stopping me trying 2.4 fo
Obviously, Peter and Jorge are hardcore, but below is what a beginner like
me hacked up:
My point, I guess, is that it is possible to quickly get a solution to a
specific problem like this without being a total expert. The code below
was typed out once, and with only one minor correction be
Hi,
I want to ensure that all my time calculations are done in UTC. This is
easy with Python on UNIX machines. I simply set the TZ environment
variable to "UTC", and it ensures that the time functions use UTC.
My question is, how do I get similar functionality using Python on
Windows?
Thanks
On 01 Dec 2004 15:55:18 -0500, David Bolen <[EMAIL PROTECTED]> wrote:
>Jp Calderone <[EMAIL PROTECTED]> writes:
>
> > def nonBlockingReadAll(fileObj):
> > bytes = []
> > while True:
> > b = fileObj.read(1024)
> > bytes.append(b)
> > if len(b)
Brad Tilley wrote:
Matt Gerrans wrote:
Anyway, what's to worry about?When the time comes just whip out a
little script that converts Python 1.6 (or whatever you like) to
Python3K; it will only take seven lines of P3K code.
How about 'import classic'
from past import python23
:-)
--
Gustavo Có
Tim Jarman wrote:
OK, I'm an arts graduate[1] so this is probably a really stupid
question, but what kind(s) of science would be non-experimental?
Astronomy. Archaeology. Paleontology. Seismology. Cosmic ray
research.
There have been a few experiments in environmental science, like
tenting a s
David Bolen wrote:
Jp Calderone <[EMAIL PROTECTED]> writes:
def nonBlockingReadAll(fileObj):
bytes = []
while True:
b = fileObj.read(1024)
bytes.append(b)
if len(b) < 1024:
break
return ''.join(bytes)
Wouldn't this still block
Since upgrading to python 2.4 yesterday, I am no longer able to use
Tkinter. From http://www.python.org/moin/TkInter I learned that I need
to edit Modules/Setup to include Tkinter during the make. However, it
isn't clear to me what modifications to make. I am supposed to specify
directories in w
Matt Gerrans wrote:
That sounds easy enough, but I imagine the Acive State package requires some
kind of licensing.I'm pre-installing on millions of consumer PCs.
Ah, so your group is responsible for all the "I've found Python on my
computer, what does it do and can I remove it" messages w
Hi. I'm trying to resolve an issue with strings.
The command(inclusive of the back-slashes)
condor_q -l -constraint "ProjectId==\"anoopr_samadams.fnal.gov_161903_30209\""
is the only way the command returns the right result.
I'm trying to run this command from inside a python program.
The way I
Hi,
Currently, I use filters in Privoxy followed by a JavaScript embedded
script to further filter a web page that is restricted to IE (because
of incompatibilities of the DOM), and was wondering if it'd be
feasible to write a Python GUI app with wxPython that would do the
same, ie. fetch a web pa
In article <[EMAIL PROTECTED]>,
Gustavo Córdova Avila <[EMAIL PROTECTED]> wrote:
> David Bolen wrote:
>
> >Jp Calderone <[EMAIL PROTECTED]> writes:
> >
> >>def nonBlockingReadAll(fileObj):
> >>bytes = []
> >>while True:
> >>b = fileObj.read(1024)
> >>
Anoop Rajendra wrote:
Hi. I'm trying to resolve an issue with strings.
The command(inclusive of the back-slashes)
condor_q -l -constraint "ProjectId==\"anoopr_samadams.fnal.gov_161903_30209\""
is the only way the command returns the right result.
I'm trying to run this command from inside a python
On Wed, 01 Dec 2004 17:15:38 -0500, Steve Holden <[EMAIL PROTECTED]>
wrote:
>You are right about ActiveState, the copy you download from their web
>site is licensed to prohibit redistribution. They might be prepared to
>cut you a special license, but you'd have to ask them about that.
Does it m
Timothy Hume <[EMAIL PROTECTED]> writes:
> I want to ensure that all my time calculations are done in UTC. This is
> easy with Python on UNIX machines. I simply set the TZ environment
> variable to "UTC", and it ensures that the time functions use UTC.
>
> My question is, how do I get similar
Luke Skywalker wrote:
On Wed, 01 Dec 2004 17:15:38 -0500, Steve Holden <[EMAIL PROTECTED]>
wrote:
You are right about ActiveState, the copy you download from their web
site is licensed to prohibit redistribution. They might be prepared to
cut you a special license, but you'd have to ask them abo
Donn Cave wrote:
In article <[EMAIL PROTECTED]>,
Gustavo Córdova Avila <[EMAIL PROTECTED]> wrote:
David Bolen wrote:
Jp Calderone <[EMAIL PROTECTED]> writes:
def nonBlockingReadAll(fileObj):
bytes = []
while True:
b = fileObj.read(1024)
bytes.append(b)
1 - 100 of 130 matches
Mail list logo