What is cx_Logging?
cx_Logging is a Python extension module which operates in a fashion
similar to the logging module that ships with Python 2.3 and higher.
It also has a C interface which allows applications to perform logging
independently of Python.
Where do I get it?
Announcing
--
The 2.6.2.1 release of wxPython is now available for download at
http://wxpython.org/download.php. There have been many enhancements
and fixes implemented in this version, listed below and at
http://wxpython.org/recentchanges.php.
What is wxPython?
-
Hi All,
PyDev - Python IDE (Python Development Enviroment for Eclipse) version
0.9.8.6 has been released.
Check the homepage (http://pydev.sourceforge.net/) for more details.
Details for Release: 0.9.8.6:
Major highlights:
---
* Added a new 'Pydev project' wizard (Mikko
Open Source Applications Foundation (OSAF) released Chandler 0.6 on
December 20, 2005. Chandler 0.6 includes an “experimentally usable”
calendar, with support for recurring events, time-zones and the ability
to share calendars with others.
Chandler is a Personal Information Management (PIM)
Op 2006-01-10, Terry Hancock schreef [EMAIL PROTECTED]:
On 9 Jan 2006 11:21:10 GMT
Antoon Pardon [EMAIL PROTECTED] wrote:
Op 2006-01-06, Terry Hancock schreef
[EMAIL PROTECTED]:
On 6 Jan 2006 07:30:41 -0800
KraftDiner [EMAIL PROTECTED] wrote:
in an init method I declare a variable
Op 2006-01-10, Christopher Subich schreef [EMAIL PROTECTED]:
Antoon Pardon wrote:
Op 2006-01-10, Peter Decker schreef [EMAIL PROTECTED]:
I don't see the two comparisons as equivalent at all. If two things
are different, it does not follow that they can be ranked.
That a b returns false
[EMAIL PROTECTED] wrote:
Michele I am also +1 to run the tests in the code order.
Got any ideas how that is to be accomplished short of jiggering the names so
they sort in the order you want them to run?
Skip
Well, it could be done with a decorator, but unittest is already
cumbersome how
Hi list,
can anybody point me to a tutorial, howto or example code of
python-soappy...? google did not have really useful results about...
Best regards,
Yves
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
Andreas Does anyone know of a Python module that is able to sniff the
Andreas encoding of text?
I have such a beast. Search here:
http://orca.mojam.com/~skip/python/
for decode.
Skip
We have similar code. It looks functionally the same except
Thanx again.
--
http://mail.python.org/mailman/listinfo/python-list
Steven D'Aprano wrote:
On Tue, 03 Jan 2006 08:27:39 -0800, Alex Martelli wrote:
Or some even more stringent qualification, such as the state's Bar exam
for lawyers -- you may not be able to sit for that exam w/o the
appropriate degree, but the degree by itself is not enough, you still
have to
can anybody point me to a tutorial, howto or example code of
python-soappy...? google did not have really useful results about...
This might be helpful:
http://www-128.ibm.com/developerworks/library/ws-pyth5/
http://users.skynet.be/pascalbotte/rcx-ws-doc/python.htm
Nico
--
Op 2006-01-10, Mike Meyer schreef [EMAIL PROTECTED]:
Antoon Pardon [EMAIL PROTECTED] writes:
There is no way in python now to throw an exception when you
think comparing your object to some very different object
is just meaningless and using such an object in a container
that can be searched
[EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi Everyone,
Should I try using a Linux based machine for the build, would that
help??
YES -
The problem is that the Linux build tools generally assume that they are
sitting in the target environment and therefore tries to use
Hello,
I'm trying to restart a process with the os.kill command. My Problem is
that if the command gets executed, my python script stops working. I
want to SIGHUP a process with the following command: os.kill(pid,
signal.SIGHUP).
Can anyone give me a hint in solving this?
Best regards,
Lukas
Bugs wrote:
Aahz wrote:
Dunno about in time for the new year, but there is a new design that is
supposedly in final stages of getting implemented. What's your hurry?
No hurry:
http://tinyurl.com/8d9ar
http://beta.python.org
Happy New Year. We could do with some help completing the
from struct import pack
pack(B, 1)
'\x01'
pack(BB, 0, 1)
'\x00\x01'
pack(BI, 0, 1)
'\x00\x00\x00\x00\x01\x00\x00\x00'
calcsize(BI)
8
calcsize(BB)
2
Why does an unsigned char suddenly become 4 bytes long when you
include an unsigned int in the format string? It's consistent
behaviour
Bugs wrote:
Aahz wrote:
Dunno about in time for the new year, but there is a new design that is
supposedly in final stages of getting implemented. What's your hurry?
No hurry:
http://tinyurl.com/8d9ar
http://beta.python.org
Happy New Year. We could do with some help completing the
Hi Kyrstian,
Try reading the file with ope(file,'r').read()
and then split the string using '\n' as the delimiter (this will break
the file down into each individual line consisting of several columns).
Then string split each line of the file (unsing ' ' as the delimiter),
they should now be 3,
Steve Holden [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Wrong [see above]. I don't remember many mediaeval cathedrals falling down.
Your memory of medieval times has gone a bit hazy I expect; in truth,
some would fall down from time to time, particularly if the builders tried
Hi All,
PyDev - Python IDE (Python Development Enviroment for Eclipse) version
0.9.8.6 has been released.
Check the homepage (http://pydev.sourceforge.net/) for more details.
Details for Release: 0.9.8.6:
Major highlights:
---
* Added a new 'Pydev project' wizard (Mikko
[Alex Stapleton]
from struct import pack
pack(B, 1)
'\x01'
pack(BB, 0, 1)
'\x00\x01'
pack(BI, 0, 1)
'\x00\x00\x00\x00\x01\x00\x00\x00'
calcsize(BI)
8
calcsize(BB)
2
Why does an unsigned char suddenly become 4 bytes long when you
include an unsigned int in the format string?
Idiot.
On 11 Jan 2006, at 10:46, Alex Stapleton wrote:
from struct import pack
pack(B, 1)
'\x01'
pack(BB, 0, 1)
'\x00\x01'
pack(BI, 0, 1)
'\x00\x00\x00\x00\x01\x00\x00\x00'
calcsize(BI)
8
calcsize(BB)
2
Why does an unsigned char suddenly become 4 bytes long when you
include an
Hi all pythonistas!
I have a problem with my embedding of python inside a c app.
very short background
I work on a safety critical embedded application that runs on VxWorks.
I have successfully ported the interpreter to VW. In my solution I have
restricted other classes to use python through my
Nico Grubert wrote:
This sounds like a homework problem. You might try splitting the name
at the e's, check the length of the resulting list and do that many
nested loops.
This was my idea too but I am wondering if there are any scripts for
tasks like this.
Nico
def combine_lol(seq):
Kriston-Vizi Janos wrote:
Dear Mr. Kern, and Members,
Thank you very much for the fast answer, my question became
over-simplified.
My source code is appended below. It uses two text files (L.txt and
GC.txt) as input and merges them. Please find these two files here:
Kriston-Vizi Janos wrote:
Dear Mr. Kern, and Members,
Thank you very much for the fast answer, my question became
over-simplified.
My source code is appended below. It uses two text files (L.txt and
GC.txt) as input and merges them.
Both L.txt and GC.txt contains 3000 rows. When
Now that is a very cool site.
I'm not very good with HTML - but can write content... I might see if
there is something I can do.
All the best,
Fuzzyman
http://www.voidspace.org.uk/python/index.shtml
(and yes I do get referrals from these links...)
--
That's a neat little piece of code there.
All the best,
Fuzzyman
http://www.voidspace.org.uk/python/index.shtml
--
http://mail.python.org/mailman/listinfo/python-list
On 2006-01-11, Fredrik Lundh [EMAIL PROTECTED] wrote:
Charles Krug wrote:
What I'd like is to do something like this:
factoryFile = sys.argv[1] # we assume that argv[1] implements a
# correct ThingMaker interface.
sys.argv[1] is a string, so I assume that you
Juho Schultz
NIR_mean_l only from lines 1, 4, 7, ...
R_mean_l only from lines 2, 5, 8, ...
G_mean_l only from lines 3, 6, 9, ...
This can be the problem, but it can be right too.
The following code is shorter and I hope cleaner, with it maybe
Kriston-Vizi Janos can fix his problem.
class
On the client side :
from SOAPpy import SOAPProxy
server= SOAPProxy(http://foo.bar.org:8090;)
print server.Hello(world)
On the server side :
from SOAPpy import SOAPServer
def Hello(name):
return Hello +name+ !
server= SOAPServer((localhost,8080))
Alex Martelli wrote:
Anton Vredegoor [EMAIL PROTECTED] wrote:
...
You are not my superior (or even considered to be more succesfull) as
you seem to imply.
Depends on who does the considering, I'm sure. If the considerer loves
the English language, for example, a horrible mis-spelling
On Tue, 10 Jan 2006 23:13:01 +,
Steve Holden [EMAIL PROTECTED] wrote:
attempt to draw direct comparisons. Maybe having an uncle helped you in
to the trade, but it didn't cut you much slack in terms of required
standards, hence the absence of cathedral-shaped heaps of rubble. York
[EMAIL PROTECTED] wrote:
Juho Schultz
NIR_mean_l only from lines 1, 4, 7, ...
R_mean_l only from lines 2, 5, 8, ...
G_mean_l only from lines 3, 6, 9, ...
This can be the problem, but it can be right too.
I guess he is expecting 3000 elements, not 1000, as he wrote:
And I noticed that all
Martin v. Löwis schrieb:
Robert wrote:
win32ui.MessageBox(s)
Traceback (most recent call last):
File interactive input, line 1, in ?
UnicodeEncodeError: 'ascii' codec can't encode characters in position
12-16: ordinal not in range(128)
Can't comment on that - this is a PythonWin
Steve Holden wrote:
Consider yourself excused.
Thanks.
Anton
--
http://mail.python.org/mailman/listinfo/python-list
Thanks. I'll write my own split().
do you want to split character by character?
then use
list(u'\u9019\u662f\u4e2d\u6587\u5b57\u4e32')
--
http://mail.python.org/mailman/listinfo/python-list
Say I have...
x = 132.00
but I'd like to display it to be 132 ...dropping the trailing
zeros...I currently try this
if x.endswith(0):
x = x[:len(x)-1]
if x.endswith(0):
x = x[:len(x)-1]
if x.endswith(.):
x = x[:len(x)-1]
I do it like this because if
x = 132.15 ...i dont want to
Steve Holden [EMAIL PROTECTED] wrote:
http://beta.python.org
All I can say is, Wow!. If nothing else, it will forever eliminate the
idea that the web site doesn't look professional. It's almost *too* slick.
--
http://mail.python.org/mailman/listinfo/python-list
Fuzzyman wrote:
Now that is a very cool site.
I'm not very good with HTML - but can write content... I might see if
there is something I can do.
All the best,
Fuzzyman
http://www.voidspace.org.uk/python/index.shtml
(and yes I do get referrals from these links...)
Please note that
py wrote:
Say I have...
x = 132.00
but I'd like to display it to be 132 ...dropping the trailing
zeros...I currently try this
if x.endswith(0):
x = x[:len(x)-1]
if x.endswith(0):
x = x[:len(x)-1]
if x.endswith(.):
x = x[:len(x)-1]
I do it like this because if
x =
hanz wrote:
x = x.rstrip('0.') # removes trailing zeroes and dots
knew there had to be a way, thanks.
--
http://mail.python.org/mailman/listinfo/python-list
Tom Anderson wrote:
class NeverRaised(Exception):
def __init__(self, *args):
raise RuntimeError('NeverRaised should never be raised')
Briliant! Although i'd be tempted to define an
UnraisableExceptionError to signal what's happened. Or ...
class ImpossibleException(Exception):
Neil Hodgson schrieb:
Robert:
PythonWin did have some Unicode support but I think Mark Hammond was
discouraged by bugs. In pythonwin/__init__.py there is a setting
is_platform_unicode = 0 with a commented out real test for Unicode on
the next line. Change this to 1 and restart and you
Content in ReST - iot ought to be using rest2web then. ;-)
Fuzzyman
http://www.voidspace.org.uk/python/rest2web/
--
http://mail.python.org/mailman/listinfo/python-list
on 11.01.2006 11:44 Steve Holden said the following:
http://beta.python.org
Very nice!
Just wanted to note that the content area and the menu area overlap
(leaving some content unreadable)
in Opera 8.51 / WinXP
str
--
http://mail.python.org/mailman/listinfo/python-list
is it possible to know user defined properties with python by dealing
with an object or something
--
http://mail.python.org/mailman/listinfo/python-list
Dennis Lee Bieber [EMAIL PROTECTED] writes:
On Wed, 11 Jan 2006 06:57:06 +, Steve Holden [EMAIL PROTECTED]
declaimed the following in comp.lang.python:
I suppose most readers aren't old enough to remember the punch card
days, when you would hand your work in on coding sheets to the punch
tooper a écrit :
On the client side :
from SOAPpy import SOAPProxy
server= SOAPProxy(http://foo.bar.org:8090;)
print server.Hello(world)
On the server side :
from SOAPpy import SOAPServer
def Hello(name):
return Hello +name+ !
server=
On Wed, 11 Jan 2006 13:58:05 -, py [EMAIL PROTECTED] wrote:
Say I have...
x = 132.00
but I'd like to display it to be 132 ...dropping the trailing
zeros...
How about:
if . in x:
x, frac = x.split(.)
frac = frac.rstrip(0)
if frac:
x = x + . + frac
Copes if x
Antoon Pardon [EMAIL PROTECTED] writes:
Op 2006-01-10, Mike Meyer schreef [EMAIL PROTECTED]:
Now you can take the practical option and decide that programmatically
it make no sense to compare a specific couple of values and throw an
exception in this case, but it doesn't matter much which test
[EMAIL PROTECTED] writes:
I'm trying to restart a process with the os.kill command. My Problem is
that if the command gets executed, my python script stops working. I
want to SIGHUP a process with the following command: os.kill(pid,
signal.SIGHUP).
That looks right.
Can anyone give me a
py [EMAIL PROTECTED] writes:
Say I have...
x = 132.00
but I'd like to display it to be 132 ...dropping the trailing
zeros...I currently try this
The two-strip solution is cleaner, but:
if x.endswith(0):
x = x[:len(x)-1]
x = x[:-1]
or
del x[-1]
both improve that one
Robert [EMAIL PROTECTED] writes:
Guess I have to create special C-code for my major wide unicode needs -
especially listctrl-SetItem and TextOut-Stuff...
Or does anybody know of some existing wide-unicode functions/C-code
parallel to normal pywin32?
You could use ctypes to access and call
Op 2006-01-11, Mike Meyer schreef [EMAIL PROTECTED]:
Antoon Pardon [EMAIL PROTECTED] writes:
Op 2006-01-10, Mike Meyer schreef [EMAIL PROTECTED]:
Now you can take the practical option and decide that programmatically
it make no sense to compare a specific couple of values and throw an
Fredrik Lundh wrote:
TAG.did.you.just.call.me.a.kook.questionmark
TAG.no.dash.but.if.you.keep.replying.to.them.all.the.time.i.may.have.to.plonk.you.too.smiley
TAG.you're.it.exclamation.point.
--
http://mail.python.org/mailman/listinfo/python-list
Is anyone aware of Python code for Optimal Control Algorithms based on
Pontryagin's Maximum Principle? Thanks in advance for any leads on this.
--
http://mail.python.org/mailman/listinfo/python-list
Mike Meyer wrote:
py [EMAIL PROTECTED] writes:
Say I have...
x = 132.00
but I'd like to display it to be 132 ...dropping the trailing
zeros...I currently try this
The two-strip solution is cleaner, but:
if x.endswith(0):
x = x[:len(x)-1]
x = x[:-1]
or
del x[-1]
Not exactly but I am aware of Python code for nonlinear optimization
algorithms. Check the nlpy project at http://nlpy.sf.net It is
specifically targeted at finite-dimensional problems. However the
current trend in optimal control algorithms is to use grid-refinement
and iteratively solve
Hello,
I'm trying to run a Python script as a Windows service with a defined
shutdown. The script (enigma-client.py) handles the communications with
the server in a distributed computing effort and calls a C program
(enigma.exe) to do the computations.
enigma.exe should save its current state
Roy Smith wrote:
Steve Holden [EMAIL PROTECTED] wrote:
http://beta.python.org
All I can say is, Wow!. If nothing else, it will forever eliminate the
idea that the web site doesn't look professional. It's almost *too* slick.
I agree with the too slick impression. The learn why pictures
[Godwin Burby]
| Subject: Re: Change Gateway Programmatically
|
| Well netsh turned out to be the perfect solution for my problem(even
| though doing it in python would have given me some kicks).
Just in case you fancied an alternative approach, you can do
this with WMI.
(untested, because I
Steve I suppose most readers aren't old enough to remember the punch
Steve card days, when you would hand your work in on coding sheets to
Steve the punch room and it would be punched onto cards using huge
Steve machines (anyone remember the 026 and 029 punches?).
I do remember
Stefan Rank [EMAIL PROTECTED] writes:
on 11.01.2006 11:44 Steve Holden said the following:
http://beta.python.org
Very nice!
Just wanted to note that the content area and the menu area overlap
(leaving some content unreadable)
in Opera 8.51 / WinXP
Ditto for Opera 8.51 / OSX, and for
snip
Well I read this in daylight hours. Talk about Enlightening!!!. It all
became clear. Now I even understand the point of an observer class, which
was shown in an example I posted back to the group from an earlier reply.
Thanks again for sharing your knowledge.
Be Well and Happy Always
Steve Holden wrote:
Fuzzyman wrote:
Now that is a very cool site.
I'm not very good with HTML - but can write content... I might see if
there is something I can do.
All the best,
Fuzzyman
http://www.voidspace.org.uk/python/index.shtml
(and yes I do get referrals from these
There's a specific list, I believe, for this sort of question, but it
has been surprisingly quiet since I registered. :)
My employer has agreed to send me to PyConn this year (yay!) but I'm on
my own as far as roomage is concerned. If anyone needs another body--or
wants to find another body--I'm
[EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Has anyone successfully built for Mips/Linux using a PC for the
build??, Should I try using a Linux based machine for the build,
would that help??
One thing you could try is to build a linux/mips file system image
(say debian which support mips)
Hi to all.
I woud implement MVC with wxPython. Is it possible? Is there anyone
that have experience in this?
The only correct example according to Observer Pattern that i found on
web is not the formal implementation of MVC (is Document/View) and is
implemented with gtk...
How can i translate
py wrote:
x = 132.15 ...i dont want to modify it. But if
x = 132.60 ...I want it to become 132.6
is there a better way to do this? It seems a bit ugly to me.
The following works as long as you don't mind losing leading zeros
as well:
x = x.strip('0')
[EMAIL PROTECTED] wrote:
Hi to all.
I woud implement MVC with wxPython. Is it possible? Is there anyone
that have experience in this?
The only correct example according to Observer Pattern that i found on
web is not the formal implementation of MVC (is Document/View) and is
implemented
Antoon Pardon wrote:
Op 2006-01-10, Terry Hancock schreef [EMAIL PROTECTED]:
In unit testing, you write the code, then write code to test
the code, which must correctly identify the methods in the
code. So you have to type 'everything' twice.
But you don't type attribute names twice in unit
We're pleased to announce Django 0.91, the result of a month and a half
of feature additions, bug fixes, usability changes and other
improvements to the Django Web framework.
http://www.djangoproject.com/
There are literally hundreds of improvements since version 0.90 -- but
some of the most
See this recent explanation by has:
http://groups.google.ca/group/comp.lang.python/msg/f8990a2c666a793c?hl=en;
(The rest of the thread may lead you to more concrete examples as well.)
--
http://mail.python.org/mailman/listinfo/python-list
Antoon Pardon [EMAIL PROTECTED] writes:
Op 2006-01-11, Mike Meyer schreef [EMAIL PROTECTED]:
Antoon Pardon [EMAIL PROTECTED] writes:
Op 2006-01-10, Mike Meyer schreef [EMAIL PROTECTED]:
Now you can take the practical option and decide that programmatically
it make no sense to compare a
Can you tell me what to look for in an HTTPMessage that is an error? I
have looked at the header objects and I cannot determine an error
message.
--
http://mail.python.org/mailman/listinfo/python-list
How about:
if . in x:
x, frac = x.split(.)
frac = frac.rstrip(0)
if frac:
x = x + . + frac
Or simpler still:
if . in x:
x = x.rstrip(0)
x = x.rstrip(.)
More concise, but slightly less readable IMO:
if . in x:
x =
[EMAIL PROTECTED] wrote:
Hi to all.
I woud implement MVC with wxPython. Is it possible? Is there anyone
that have experience in this?
The only correct example according to Observer Pattern that i found on
web is not the formal implementation of MVC (is Document/View) and is
implemented with
Hi,
Is there any memory profiler for Python programs? I
would like to see how much memory objects take up,
cache misses, etc. I tried to patch PySizer, but got a
build error (Error 138).
Thanks!
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has
Tommy R wrote:
I need some way to execute a string and pass arguments to the functions
inside the string. We have discussed a solution where we first load the
string (containing some funcs) and then run something similar to
Py_RunString(foo(1.0, 'str')); We need to do this in a generic way
See
http://pycheesecake.org/wiki/PythonTestingToolsTaxonomy#MiscellaneousPythonTestingTools
In particular, PySizer and HeapPy might be what you're looking for. I
can't say for sure, since I haven't used these tools myself.
Grig
--
http://mail.python.org/mailman/listinfo/python-list
Hi everybody... I have an app that has to controll some ascii files
every 10/30 seconds... I was planning to have an GUI using wxpython.
The problems is that i wasn't able to manage my application loop and
the wxApp loop, so my interface is always freezing...
My app do something like this:
-
Richard Brodie wrote:
Wrong [see above]. I don't remember many mediaeval cathedrals falling down.
Your memory of medieval times has gone a bit hazy I expect
probably because he was hit in the head by a falling stone during a trip to
southern
france, many years ago.
/F
--
http://effbot.org/F
;)
--
http://mail.python.org/mailman/listinfo/python-list
Steve Holden [EMAIL PROTECTED] wrote in
news:[EMAIL PROTECTED]:
Bugs wrote:
Aahz wrote:
Dunno about in time for the new year, but there is a new
design that is supposedly in final stages of getting
implemented. What's your hurry?
[...]
http://beta.python.org
So what's the character
py wrote:
hanz wrote:
x = x.rstrip('0.') # removes trailing zeroes and dots
knew there had to be a way, thanks.
But that's not it. :-)
This is a wonderful opportunity for you to learn about unit testing, and
begin the long process of developing good testing habits. Of all the
ideas
New to Python and Programming. Trying to make scripts that will open
sites and automatically log me on.
The following example is from the urllib2 module.
What are realm and host in this example.
import urllib2
# Create an OpenerDirector with support for Basic HTTP
Authentication...
auth_handler
[EMAIL PROTECTED] wrote:
is it possible to know user defined properties with python by dealing
with an object or something
Have you investigated the Python interface to the OpenOffice APIs? I
don't recall the name offhand, but I'm sure Googling for python
openoffice would tell you.
If you
Mike Meyer wrote:
Steven Bethard writes:
Not to advocate one way or the other, but how often do you use
heterogeneous containers?
Pretty much everything I do has heterogenous containers of some sort
or another.
Sorry, I should have been a little more specific. I meant heterogeneous
I finally figured out how to use the wonderful module urllib to
download files.
What if web page requires you to fill out a form with login and
password first?
Is this just like any other FORM? Can login/password from a GET method
form be handled by appending something like
Hope it's not inappropriate to post this here.
Could someone critique my code? I have no Python programmers in my
office to show this to. The script works OK, but should I do it
differently? I especially don't like how I check to see if jpegs exist.
The style may not be acceptable to some, but
Kevin wrote:
Can you tell me what to look for in an HTTPMessage that is an error? I
have looked at the header objects and I cannot determine an error
message.
I think you're missing most of the context and detail that would help us
provide a useful answer for you.
Think about it from a
[EMAIL PROTECTED] wrote:
I finally figured out how to use the wonderful module urllib to
download files.
What if web page requires you to fill out a form with login and
password first?
Is this just like any other FORM? Can login/password from a GET method
form be handled by appending
[EMAIL PROTECTED] wrote:
I finally figured out how to use the wonderful module urllib to
download files.
What if web page requires you to fill out a form with login and
password first?
the examples section shows how to encode form data for either GET
or POST requests:
Peter Hansen wrote:
Of all the ideas posted, I believe only Mark Hammond's would correctly
pass the basic obvious test cases
Too bad he didn't post at all :-)
Peter
--
http://mail.python.org/mailman/listinfo/python-list
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] wrote:
I want to be able to pass a sequence (tuple, or list) of objects to a
function, or only one.
It's easy enough to do:
isinstance(var, (tuple, list))
But I would also like to accept generators. How can I do this?
Anything else is assumed
BartlebyScrivener wrote:
New to Python and Programming. Trying to make scripts that will open
sites and automatically log me on.
The following example is from the urllib2 module.
What are realm and host in this example.
http://www.ietf.org/rfc/rfc2617.txt probably provides more background
On 11 Jan 2006 10:33:08 -0800, Mr BigSmoke [EMAIL PROTECTED] wrote:
Hi everybody... I have an app that has to controll some ascii files
every 10/30 seconds... I was planning to have an GUI using wxpython.
The problems is that i wasn't able to manage my application loop and
the wxApp loop, so
I do not clearly understand what you say.
I am no going to change input files in anyway. I just want to read them
with Python, and postprocess.
I understand:
open(inputfile.txt, 'r').read()
However what you mean saying split the string using '\n'. Where should
I put it? After file name, or what?
1 - 100 of 213 matches
Mail list logo