cx_Logging 1.1

2006-01-11 Thread Anthony Tuininga
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?

ANN: wxPython 2.6.2.1

2006-01-11 Thread Robin Dunn
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? -

PyDev 0.9.8.6 released

2006-01-11 Thread Fabio Zadrozny
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

ANN: Chandler 0.6

2006-01-11 Thread Heikki Toivonen
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)

Re: Spelling mistakes!

2006-01-11 Thread Antoon Pardon
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

Re: Why keep identity-based equality comparison?

2006-01-11 Thread Antoon Pardon
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

Re: Failing unittest Test cases

2006-01-11 Thread Michele Simionato
[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

python-soappy

2006-01-11 Thread Yves Glodt
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

Re: Encoding sniffer?

2006-01-11 Thread Stuart Bishop
[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

Re: Change Gateway Programmatically

2006-01-11 Thread Godwin Burby
Thanx again. -- http://mail.python.org/mailman/listinfo/python-list

Re: OT: Degrees as barriers to entry [was Re: - E04 - Leadership! Google, Guido van Rossum, PSF]

2006-01-11 Thread Steve Holden
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

Re: python-soappy

2006-01-11 Thread Nico Grubert
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 --

Re: Why keep identity-based equality comparison?

2006-01-11 Thread Antoon Pardon
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

Re: Cross Compile Mips / Linux

2006-01-11 Thread Frithiof Andreas Jensen
[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

Restart process with SIGHUP

2006-01-11 Thread LukasMeyerUK
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

Re: New Python.org website ?

2006-01-11 Thread Steve Holden
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

Bug in struct.pack?

2006-01-11 Thread 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? It's consistent behaviour

Re: New Python.org website ?

2006-01-11 Thread Steve Holden
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

Re: Reading from input file.

2006-01-11 Thread Sheldon
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,

Re: OT: Degrees as barriers to entry [was Re: - E04 - Leadership!Google, Guido van Rossum, PSF]

2006-01-11 Thread Richard Brodie
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

PyDev 0.9.8.6 released

2006-01-11 Thread Fabio Zadrozny
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

Re: Bug in struct.pack?

2006-01-11 Thread Raymond Hettinger
[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?

Re: Bug in struct.pack?

2006-01-11 Thread Alex Stapleton
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

exec a string in an embedded environment

2006-01-11 Thread Tommy R
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

Re: String question - find all possible versions of a person's firstname

2006-01-11 Thread bonono
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):

Re: Maximum List size (item number) limit?

2006-01-11 Thread Steve Holden
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:

Re: Maximum List size (item number) limit?

2006-01-11 Thread Juho Schultz
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

Re: New Python.org website ?

2006-01-11 Thread Fuzzyman
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...) --

Re: How can I test if an argument is a sequence or a scalar?

2006-01-11 Thread Fuzzyman
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

Re: File Paramaterized Abstract Factory

2006-01-11 Thread Charles Krug
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

Re: Maximum List size (item number) limit?

2006-01-11 Thread bearophileHUGS
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

Re: python-soappy

2006-01-11 Thread tooper
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))

Re: - E04 - Leadership! Google, Guido van Rossum, PSF

2006-01-11 Thread Anton Vredegoor
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

Re: OT: Degrees as barriers to entry [was Re: - E04 - Leadership! Google, Guido van Rossum, PSF]

2006-01-11 Thread A.M. Kuchling
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

Re: Maximum List size (item number) limit?

2006-01-11 Thread Juho Schultz
[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

Re: Unicode Pythonwin / win32 / console?

2006-01-11 Thread Robert
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

Re: OT: Degrees as barriers to entry [was Re: - E04 - Leadership! Google, Guido van Rossum, PSF]

2006-01-11 Thread Anton Vredegoor
Steve Holden wrote: Consider yourself excused. Thanks. Anton -- http://mail.python.org/mailman/listinfo/python-list

Re: A bug for unicode strings in Python 2.4?

2006-01-11 Thread Szabolcs Nagy
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

how to improve this simple block of code

2006-01-11 Thread py
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

Re: New Python.org website ?

2006-01-11 Thread Roy Smith
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

Re: New Python.org website ?

2006-01-11 Thread Steve Holden
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

Re: how to improve this simple block of code

2006-01-11 Thread Juho Schultz
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 =

Re: how to improve this simple block of code

2006-01-11 Thread py
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

Re: try: except never:

2006-01-11 Thread Duncan Booth
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):

Re: (Fucking) Unicode: console print statement and PythonWin: replacement for off-table chars HOWTO?

2006-01-11 Thread Robert
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

Re: New Python.org website ?

2006-01-11 Thread Fuzzyman
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

Re: New Python.org website ?

2006-01-11 Thread Stefan Rank
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

for OpenOffice:how acces to file-properties-user defined without xml solution

2006-01-11 Thread nicourjal
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

Re: Spelling mistakes!

2006-01-11 Thread Mike Meyer
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

Re: python-soappy

2006-01-11 Thread m.banaouas
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=

Re: how to improve this simple block of code

2006-01-11 Thread Matt Hammond
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

Re: Why keep identity-based equality comparison?

2006-01-11 Thread Mike Meyer
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

Re: Restart process with SIGHUP

2006-01-11 Thread Mike Meyer
[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

Re: how to improve this simple block of code

2006-01-11 Thread Mike Meyer
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

Re: (Fucking) Unicode: console print statement and PythonWin: replacement for off-table chars HOWTO?

2006-01-11 Thread Thomas Heller
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

Re: Why keep identity-based equality comparison?

2006-01-11 Thread Antoon Pardon
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

Re: - E04 - Leadership! Google, Guido van Rossum, PSF

2006-01-11 Thread Christopher Subich
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

Optimal Control Algorithms in Python

2006-01-11 Thread aprasad21k
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

Re: how to improve this simple block of code

2006-01-11 Thread Peter Otten
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]

Re: Optimal Control Algorithms in Python

2006-01-11 Thread [EMAIL PROTECTED]
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

Python script running as Windows service: Clean shutdown

2006-01-11 Thread Stefan Krah
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

Re: New Python.org website ?

2006-01-11 Thread Rocco Moretti
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

RE: Change Gateway Programmatically

2006-01-11 Thread Tim Golden
[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

Re: Spelling mistakes!

2006-01-11 Thread skip
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

Re: New Python.org website ?

2006-01-11 Thread Mike Meyer
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

Re: MVC programming with python (newbie) - please help

2006-01-11 Thread bwaha
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

Re: New Python.org website ?

2006-01-11 Thread Fuzzyman
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

PyConn--anyone needing roommates?

2006-01-11 Thread Jeremy Moles
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

Re: Cross Compile Mips / Linux

2006-01-11 Thread Nick Craig-Wood
[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)

MVC in wxPython HELP!

2006-01-11 Thread meonimarco
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

Re: how to improve this simple block of code

2006-01-11 Thread Gary Duzan
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')

Re: MVC in wxPython HELP!

2006-01-11 Thread Diez B. Roggisch
[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

Re: Spelling mistakes!

2006-01-11 Thread Hans Nowak
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

ANN: Django 0.91 released

2006-01-11 Thread Adrian Holovaty
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

Re: MVC in wxPython HELP!

2006-01-11 Thread snoe
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

Re: Why keep identity-based equality comparison?

2006-01-11 Thread Mike Meyer
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

How can I determine an HTTPMessage ?

2006-01-11 Thread Kevin
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

Re: how to improve this simple block of code

2006-01-11 Thread Matt Hammond
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 =

Re: MVC in wxPython HELP!

2006-01-11 Thread Scott David Daniels
[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

Memory Profiler

2006-01-11 Thread Dave
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

Re: exec a string in an embedded environment

2006-01-11 Thread Graham Fawcett
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

Re: Memory Profiler

2006-01-11 Thread Grig Gheorghiu
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

Problems with WX and program loop...

2006-01-11 Thread Mr BigSmoke
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: -

Re: OT: Degrees as barriers to entry [was Re: - E04 -Leadership!Google, Guido van Rossum, PSF]

2006-01-11 Thread Fredrik Lundh
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 --

The effbot does not exist!

2006-01-11 Thread David Murmann
http://effbot.org/F ;) -- http://mail.python.org/mailman/listinfo/python-list

Re: New Python.org website ?

2006-01-11 Thread rzed
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

Re: how to improve this simple block of code

2006-01-11 Thread Peter Hansen
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

Python Scripts to logon to websites

2006-01-11 Thread BartlebyScrivener
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

Re: for OpenOffice:how acces to file-properties-user defined without xml solution

2006-01-11 Thread Peter Hansen
[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

Re: Why keep identity-based equality comparison?

2006-01-11 Thread Steven Bethard
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

How do initial login/password before can download web file with urllib?

2006-01-11 Thread [EMAIL PROTECTED]
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

batch tiff to jpeg conversion script

2006-01-11 Thread [EMAIL PROTECTED]
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

Re: How can I determine an HTTPMessage ?

2006-01-11 Thread Peter Hansen
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

Re: How do initial login/password before can download web file with urllib?

2006-01-11 Thread Peter Hansen
[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

Re: How do initial login/password before can download web file withurllib?

2006-01-11 Thread Fredrik Lundh
[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:

Re: how to improve this simple block of code

2006-01-11 Thread Peter Otten
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

Re: How can I test if an argument is a sequence or a scalar?

2006-01-11 Thread Russell E. Owen
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

Re: Python Scripts to logon to websites

2006-01-11 Thread Peter Hansen
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

Re: Problems with WX and program loop...

2006-01-11 Thread Chris Mellon
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

Re: Reading from input file.

2006-01-11 Thread paczkow
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   2   3   >