Re: WindowsXP/ CTypes - How to convert ctypes array to a string?

2008-08-21 Thread dudeja . rajat
On Tue, Aug 19, 2008 at 8:14 AM, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > >> I also add the letter 'v' same as you suggested. However, I'm looking >> to store this into some variable ( that variable could be be a string, >> tuple or anything, Im not sure which is the su

Re: How to access an Array and a struct within a struct wrapped by Swig ?

2008-08-21 Thread emmanuel . rivoire
Thanks to point this out. It confirmed that I thought : must _manually_ write set/get functions for every array in a every structure (it looks like middle-age ;) ). Coz of this and a few other stuff, while looking at my code, I came to the conclusion that I will be better writing interface C struct

Re: subprocess seems to "detach" / ignore wait()

2008-08-21 Thread Gabriel Genellina
En Thu, 21 Aug 2008 02:46:06 -0300, Mathieu Prevot <[EMAIL PROTECTED]> escribió: >> So what is the right thing to do so my script >> returns 1 or 0 depending on its state and success ? I use something like this: def main(argv): try: try: do_things() return 0 finally:

Re: exception handling in complex Python programs

2008-08-21 Thread eliben
On Aug 19, 7:19 pm, eliben <[EMAIL PROTECTED]> wrote: > Python provides a quite good and feature-complete exception handling Thanks for the interesting discussion. Armed by the new information and few online sources, I blogged a summary for myself on the topic of robust exception handling in Pyth

Re: exception handling in complex Python programs

2008-08-21 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : On Aug 19, 4:12 pm, Steven D'Aprano <[EMAIL PROTECTED] cybersource.com.au> wrote: On Tue, 19 Aug 2008 11:07:39 -0700, [EMAIL PROTECTED] wrote: def do_something(filename): if not os.access(filename,os.R_OK): return err(...) f = open(filename) ...

Re: Factory for Struct-like classes

2008-08-21 Thread Gabriel Genellina
En Tue, 19 Aug 2008 12:43:27 -0300, eliben <[EMAIL PROTECTED]> escribió: On Aug 18, 11:16 am, Gabriel Genellina <[EMAIL PROTECTED]> wrote: On 13 ago, 14:46, eliben <[EMAIL PROTECTED]> wrote: > On Aug 13, 7:30 pm, Christian Heimes <[EMAIL PROTECTED]> wrote: > > Try named tuplehttp://code.active

Re: exception handling in complex Python programs

2008-08-21 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : (snip) Here is an example: a simple query tool for a tiny "mock SQL" relational database. With a method (called "select_all") you can perform the equivalent of a select query on the database. The contents of the query are specified with triples of the form [field, com

Tkinter/WindowsXP - how to use checkbutton to toggle a label in GUI?

2008-08-21 Thread dudeja . rajat
Hi, I've a checkbutton in my GUI application which I want to work as: 1. it should be un-ticked by default, 2. should display a label in Gui, by default, 3. when user ticks the check button this should the above label goes off the screen and not longer is displayed. Please suggest how could I

Re: Negative integers

2008-08-21 Thread Mikael Olofsson
Derek Martin wrote: Zero is a problem, no matter how you slice it. I definitely agree with that. Depends on the the real problem that is behind the OP:s question. Zero can be considered positive or negative (mathematically, 0 = -0). I've read quite a few articles written by mathematician

Re: Negative integers

2008-08-21 Thread Uwe Schmitt
On 20 Aug., 23:38, johnewing <[EMAIL PROTECTED]> wrote: > I am trying to figure out how to test if two numbers are of the same > sign (both positive or both negative).  I have tried > > abs(x) / x == abs(y) / y > > but that fails when one of the numbers is 0.  I'm sure that there is > an easy way t

Re: python custom command interpreter?

2008-08-21 Thread janislaw
On 21 Sie, 07:45, Martin <[EMAIL PROTECTED]> wrote: > I guess you are looking for this: > > http://docs.python.org/lib/module-cmd.html OP may also would like to hack his own language using EasyExtend: http://www.fiber-space.de/EasyExtend/doc/EE.html Most likely an overkill. -- Jan Wicijowski --

Re: The Importance of Terminology's Quality

2008-08-21 Thread Piet van Oostrum
> Arne Vajhøj <[EMAIL PROTECTED]> (AV) wrote: >AV> Robert Maas, http://tinyurl.com/uh3t wrote: >>> John W Kennedy <[EMAIL PROTECTED]> wrote: >JWK> Into the 60s, indeed, there were still machines being made >JWK> that had no instruction comparable to the mainframe BASx/BALx >JWK> family, or to

Re: Debugging of a long running process under Windows

2008-08-21 Thread Tim Golden
R. Bernstein wrote: I don't know how well Microsoft Windows allows for sending a process a signal in Python, but if the Python signal module works reasonably well on Microsoft Windows, then reread http://bashdb.sourceforge.net/pydb/pydb/lib/node38.html The answer is: not terribly well. (Or, rat

Re: subprocess seems to "detach" / ignore wait()

2008-08-21 Thread Mathieu Prevot
2008/8/21 Gabriel Genellina <[EMAIL PROTECTED]>: > En Thu, 21 Aug 2008 02:46:06 -0300, Mathieu Prevot <[EMAIL PROTECTED]> > escribió: > >>> So what is the right thing to do so my script >>> returns 1 or 0 depending on its state and success ? > > I use something like this: > > def main(argv): > tr

Read PDF content

2008-08-21 Thread AON LAZIO
Hi, Guys. I am trying to extract the PDF file content(to get the specific information) using python. I already tried pyPdf with no success. Anyone has suggestions? Thanks in advance. Aonlazio -- http://mail.python.org/mailman/listinfo/python-list

Re: Debugging of a long running process under Windows

2008-08-21 Thread R. Bernstein
Tim Golden <[EMAIL PROTECTED]> writes: > R. Bernstein wrote: >> I don't know how well Microsoft Windows allows for sending a process a >> signal in Python, but if the Python signal module works reasonably >> well on Microsoft Windows, then reread >> http://bashdb.sourceforge.net/pydb/pydb/lib/node

Re: evaluating code lines above breakpoints ?

2008-08-21 Thread Diez B. Roggisch
Stef Mientki wrote: > hello, > > I'm trying to create a high level debugger, based on rpd2. > > So when the debugger enters a breakpoint, > I want to display the values of all variables in the, let's say, > 5 lines above the breakpoint (if possible). > Any hints on how I get a list of all vars i

Re: exception handling in complex Python programs

2008-08-21 Thread Steven D'Aprano
On Thu, 21 Aug 2008 00:34:21 -0700, eliben wrote: > On Aug 19, 7:19 pm, eliben <[EMAIL PROTECTED]> wrote: >> Python provides a quite good and feature-complete exception handling > > > Thanks for the interesting discussion. Armed by the new information and > few online sources, I blogged a summar

Re: exception handling in complex Python programs

2008-08-21 Thread Bruno Desthuilliers
eliben a écrit : On Aug 19, 7:19 pm, eliben <[EMAIL PROTECTED]> wrote: Python provides a quite good and feature-complete exception handling Thanks for the interesting discussion. Armed by the new information and few online sources, I blogged a summary for myself on the topic of robust excepti

Re: Distinguish file and folder on ftp site

2008-08-21 Thread Mailing List SVR
Il giorno gio, 14/08/2008 alle 10.08 +0200, Fredrik Lundh ha scritto: > Mailing List SVR wrote: > > > is there a simple way to do this? > > > > ftplib seems unable to distinguish between files and dir, a mimetype > > check would be good, > > the FTP protocol doesn't specify the format for the ou

Re: Python Substitute for PHP GD, Resizing an image on the client side

2008-08-21 Thread brahmaforces
Thanks for your help Diez appreciate it! arjuna http://www.brahmaforces.com -- http://mail.python.org/mailman/listinfo/python-list

online and offline projects (Aliens Infotech)

2008-08-21 Thread ajith
Hello Sir/ Madam, Kindly go through the attachments slowly For Full details. Document Alignment Project detail:- The cost of a single Project is 4000 for Gear 1, 5500 for Gear 2, 6500 for Gear 3. ( PDF to doc Only Copy & Paste)

Re: getattr() on nested functions?

2008-08-21 Thread Gabriel Rossetti
Terry Reedy wrote: Gabriel Rossetti wrote: Bruno Desthuilliers wrote: Gabriel Rossetti a écrit : I thought that since functions are objects, that I could obtain it's nested functions. Well, there's probably a very hackish way, but it's not worth the pain. What Bruno meant here, I belie

Is tempfile.mkdtemp() thread-safe?

2008-08-21 Thread Gabriel Rossetti
Hello, I'm using tempfile.mkdtemp() in a multithreading program and I've been having problems with it. Sometimes it tells me the file I'm trying to access (in the directory created with tempfile.mkdtemp()) doesn't exist. I suspect that tempfile.mkdtemp() returns the same directory to differen

Re: iterparse and unicode

2008-08-21 Thread George Sakkis
On Aug 21, 1:48 am, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > George Sakkis wrote: > > It's interesting that the element text attributes after a successful > > parse do not necessarily have the same type, i.e. all be str or all > > unicode. I ported some text extraction code from  BeautifulSoup (

Re: Debugging of a long running process under Windows

2008-08-21 Thread Propad
Hello, thank you very much everybody. I gave up hope for an answer a long time ago :-). I'll take a look at the proposed solutions and give you a note. Cheers, Propad On Aug 21, 12:02 pm, [EMAIL PROTECTED] (R. Bernstein) wrote: > Tim Golden <[EMAIL PROTECTED]> writes: > > R. Bernstein wrote: >

Re: getattr() on nested functions?

2008-08-21 Thread Bruno Desthuilliers
Gabriel Rossetti a écrit : Terry Reedy wrote: (snip) Unlike the class approach, this requires recreating the constant functions and dict with each call to _test. Quick to write but a bit 'dirty', in my opinion. Another standard idiom is to set up the constants outside the function: def re

How to be successful in life

2008-08-21 Thread aassime abdellatif
Question: How to obtain success and prosperity in this world and hereafter? What kind of success or prosperity that Islam wants the Ummah Islam gain in this world? Answer: Praise be to Allah. Peace of mind, contentment, happiness and freedom from worries and anxiety… these are what everyon

free sex moves download

2008-08-21 Thread ratana
free sex moves download http://kumaripud.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

functools's partial and update_wrapper does not work together

2008-08-21 Thread piotr . findeisen
Hello! I wanted to use a decorator to wrap partially applied function like this: from functools import * def never_throw(f): @wraps(f) def wrapper(*args, **kwargs): try: return f(*args, **kwargs) except: pass return wrapper def foo(i): raise ValueError(str(i) + "

How to be successful in life

2008-08-21 Thread aassime abdellatif
Question: How to obtain success and prosperity in this world and hereafter? What kind of success or prosperity that Islam wants the Ummah Islam gain in this world? Answer: Praise be to Allah. Peace of mind, contentment, happiness and freedom from worries and anxiety… these are what everyon

ISLAM and the AIM of LIFE

2008-08-21 Thread aassime abdellatif
ISLAM and the AIM of LIFE What is your purpose in life? What is the rationale behind our life? Why do we live in this life? These questions frequently intrigue people who try to find accurate answers. People provide different answers to these questions. Some people believe the purpose of life is

ISLAM and the AIM of LIFE

2008-08-21 Thread aassime abdellatif
ISLAM and the AIM of LIFE What is your purpose in life? What is the rationale behind our life? Why do we live in this life? These questions frequently intrigue people who try to find accurate answers. People provide different answers to these questions. Some people believe the purpose of life is

ISLAM and the AIM of LIFE

2008-08-21 Thread aassime abdellatif
ISLAM and the AIM of LIFE What is your purpose in life? What is the rationale behind our life? Why do we live in this life? These questions frequently intrigue people who try to find accurate answers. People provide different answers to these questions. Some people believe the purpose of life is

Is my thinking Pythonic?

2008-08-21 Thread Hussein B
Hey, Well, as you all know by now, I'm learning Python :) One thing that is annoying my is the OOP in Python. Consider this code in Java: -- public class Car { private int speed; private String brand; // setters & getters } -- With one look at the top of the class, you can know that each ins

Re: exception handling in complex Python programs

2008-08-21 Thread eliben
> >http://eli.thegreenplace.net/2008/08/21/robust-exception-handling/ > > Just a few random points. You say: > > "Exceptions are better than returning error status codes. Some languages > (like Python) leave you with no choice as the whole language core and > standard libraries throw exceptions." >

Newbie needs help with his blood pressure...

2008-08-21 Thread Luis Speciale
Hi u all : I'm trying to build mod_python in Leopard 10.5.4 with a cvs version from http://svn.apache.org/repos/asf/quetzalcoatl/mod_python/trunk I have $ python Python 2.5.2 (r252:60911, Feb 22 2008, 07:57:53) [GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin Then when I try ./configu

Re: Is my thinking Pythonic?

2008-08-21 Thread bearophileHUGS
Hussein B: > class Car: > def setspeed(self, speed): > self.speed = speed > def setbrand(self, brand): > self.brand = brand You can also learn the _attribute and __attribute conventions. In Python getter/setters are used less often, you can remove those two setters and just access th

Re: Is my thinking Pythonic?

2008-08-21 Thread Diez B. Roggisch
Hussein B wrote: > Hey, > Well, as you all know by now, I'm learning Python :) > One thing that is annoying my is the OOP in Python. > Consider this code in Java: > -- > public class Car { > private int speed; > private String brand; > // setters & getters > } > -- > With one look at the top

Re: exception handling in complex Python programs

2008-08-21 Thread eliben
On Aug 21, 12:40 pm, Bruno Desthuilliers wrote: > eliben a écrit :> On Aug 19, 7:19 pm, eliben <[EMAIL PROTECTED]> wrote: > >> Python provides a quite good and feature-complete exception handling > > > > > Thanks for the interesting discussion. Armed by the new information > > and few online sour

wx scroll bar

2008-08-21 Thread Gandalf
Hi every one. I'm not sure whether my framework is relevant so i will mention it any way. windows XP python 2.5.2 wx 2.8 something... I'm trying to scroll a panel element and it doesn't work. (maybe this function doesn't supposed to scroll element like this) this is the relevant code: wx.Frame._

Re: Is my thinking Pythonic?

2008-08-21 Thread Paul Boddie
On 21 Aug, 14:21, Hussein B <[EMAIL PROTECTED]> wrote: > If you have a huge class, you can't figure the instance variables of > each object. > So, I created this constructor: > -- > def __init__(self): >   self.speed = None >   self.brand = None > -- > This way, I can figure the instance variables

Newbie needs help with... his blood pressure ;-)

2008-08-21 Thread Luis Speciale
Hi I'm trying to build mod_pyton on Leopard 10.5.4 on a Mac G5 with this cvs version http://svn.apache.org/repos/asf/quetzalcoatl/mod_python/trunk with this Python python Python 2.5.2 (r252:60911, Feb 22 2008, 07:57:53) [GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin So i did ./confi

Re: python custom command interpreter?

2008-08-21 Thread Derek Martin
On Thu, Aug 21, 2008 at 05:17:41AM +, Marc 'BlackJack' Rintsch wrote: > On Wed, 20 Aug 2008 18:46:42 -0400, Derek Martin wrote: > > > How so? What could be easier than "rm -rf directory"? > > C:\>rm -rf directory Yeah, except the application specified by the OP is to remove directories duri

Re: Newbie needs help with... his blood pressure ;-)

2008-08-21 Thread Luis Speciale
Oups. Bad beginning. Sorry for the double post. Thunderbird has mental problems Luis -- http://mail.python.org/mailman/listinfo/python-list

Re: wx scroll bar

2008-08-21 Thread Gandalf
On Aug 21, 2:42 pm, Gandalf <[EMAIL PROTECTED]> wrote: > Hi every one. I'm not sure whether my framework is relevant so i will > mention it any way. > windows XP > python 2.5.2 > wx 2.8 something... > > I'm trying to scroll a panel element  and it doesn't work. (maybe this > function doesn't suppos

Re: Read PDF content

2008-08-21 Thread William Purcell
Sorry, this last email was meant to be to the list. On Thu, Aug 21, 2008 at 8:41 AM, William Purcell <[EMAIL PROTECTED]>wrote: > I have been trying to do the same thing. Here is something I came up with, > although it's not completely dependent on Python. It requires pdftotext to > be installed.

Re: wx scroll bar

2008-08-21 Thread William Purcell
I have been wanting to figure this out. I used a couple of your code snippets below and I can get a scroll bar. When I scroll down, it doesn't scroll the panel down. The only thing that happens is that the scroll bar moves up and down. Any thoughts? On Thu, Aug 21, 2008 at 8:36 AM, Gandalf <[EMAIL

Re: getattr() on nested functions?

2008-08-21 Thread Gabriel Rossetti
Bruno Desthuilliers wrote: Gabriel Rossetti a écrit : Terry Reedy wrote: (snip) Unlike the class approach, this requires recreating the constant functions and dict with each call to _test. Quick to write but a bit 'dirty', in my opinion. Another standard idiom is to set up the constants ou

Re: Prevalent Python/Django academic software

2008-08-21 Thread tobias.oleary
Blackboard and Moodle are the dominant players in the area you're talking about. If you are trying to help people out then I suggest writing more Moodle modules. If you are trying to make money good luck. -- http://mail.python.org/mailman/listinfo/python-list

Re: The Importance of Terminology's Quality

2008-08-21 Thread Rob Warnock
[EMAIL PROTECTED]> wrote: +--- | [EMAIL PROTECTED] (Rob Warnock) wrote: | >In the LGP-30, they used hex addresses, sort of[1], but the opcodes | >(all 16 of them) had single-letter mnemonics chosen so that the | >low 4 bits of the character codes *were* the correct nibble for | >the opc

Re: Newbie needs help with... his blood pressure ;-)

2008-08-21 Thread Paul Boddie
On 21 Aug, 14:57, Luis Speciale <[EMAIL PROTECTED]> wrote: > > /usr/sbin/apxs -I/Users/speciale/Desktop/dossier sans titre 3/src/include [...] I imagine that if this is really the command run by the Makefile, apxs might get upset by the unquoted path which contains spaces. Either the Makefile nee

Re: Tkinter/WindowsXP - how to use checkbutton to toggle a label in GUI?

2008-08-21 Thread Gabriel Genellina
En Thu, 21 Aug 2008 05:07:45 -0300, <[EMAIL PROTECTED]> escribi�: I've a checkbutton in my GUI application which I want to work as: 1. it should be un-ticked by default, 2. should display a label in Gui, by default, 3. when user ticks the check button this should the above label goes off the sc

Re: Question re ConfigParser

2008-08-21 Thread loial
On 20 Aug, 13:49, alex23 <[EMAIL PROTECTED]> wrote: > On Aug 20, 5:34 pm, loial <[EMAIL PROTECTED]> wrote: > > > Given a section like > > > [Data] > > value1 > > value2 > > value3 > > > Can ConfigParser be easily used to put the values in a dictionary? If > > so, how? > > Dictionaries are key/value

Re: Prevalent Python/Django academic software

2008-08-21 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Daniel Bickett <[EMAIL PROTECTED]> wrote: >Is anyone working on any software at present, using django or python >in general, which serves various academic/course functions, or else >that of student-instructor arbitration? A popular example which my >university uses

Re: getattr() on nested functions?

2008-08-21 Thread Bruno Desthuilliers
Gabriel Rossetti a écrit : Bruno Desthuilliers wrote: Gabriel Rossetti a écrit : Terry Reedy wrote: (snip) Unlike the class approach, this requires recreating the constant functions and dict with each call to _test. Quick to write but a bit 'dirty', in my opinion. Another standard idiom is

Re: exception handling in complex Python programs

2008-08-21 Thread Bruno Desthuilliers
eliben a écrit : On Aug 21, 12:40 pm, Bruno Desthuilliers wrote: eliben a écrit :> On Aug 19, 7:19 pm, eliben <[EMAIL PROTECTED]> wrote: (snip) """ Document the exceptions thrown by your code """ If you mean "the exceptions *explicitely raised* by your code", then I agree. But with any gene

semantics of the |= operator

2008-08-21 Thread akva
Hi All, what's the exact semantics of the |= operator in python? It seems that a |= d is not always equivalent to a = a | d For example let's consider the following code: def foo(s): s = s | set([10]) def bar(s): s |= set([10]) s = set([1,2]) foo(s) print s # prints set([1, 2]) bar(s)

Re: semantics of the |= operator

2008-08-21 Thread Diez B. Roggisch
akva wrote: > Hi All, > > what's the exact semantics of the |= operator in python? > It seems that a |= d is not always equivalent to a = a | d > > For example let's consider the following code: > > def foo(s): >s = s | set([10]) > > def bar(s): >s |= set([10]) > > s = set([1,2]) > >

Re: functools's partial and update_wrapper does not work together

2008-08-21 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : Hello! I wanted to use a decorator to wrap partially applied function like this: from functools import * def never_throw(f): @wraps(f) def wrapper(*args, **kwargs): try: return f(*args, **kwargs) except: pass Not an answer to your question,

Re: Is my thinking Pythonic?

2008-08-21 Thread Bruno Desthuilliers
Hussein B a écrit : Hey, Well, as you all know by now, I'm learning Python :) One thing that is annoying my is the OOP in Python. If so, the answer to your question is "obviously, no" !-) Ok, let's see... Consider this code in Java: -- public class Car { private int speed; private String

How to simulate packages?

2008-08-21 Thread Daniel
Hello, I have a project that I've decided to split into packages in order to organize my code better. So what I have looks something like this src -module1 -mod1_file.py -module2 -mod2_file.py Everytime I run mod2_file.py I need to import mod1_file.py. Right now I'm using an ugly l

Re: The Jihad Candidate

2008-08-21 Thread Lloyd
On Aug 19, 10:59 pm, [EMAIL PROTECTED] wrote: > DUDE, have you gone mad ? The ZIONIST MEDIA never barked that it was a > jew or a yank bastard when those fake anthrax letters were mailed. 911 > was an > inside job. Thermate cutter charges were used by yank bastards > themselves. > The media never d

Re: Read PDF content

2008-08-21 Thread James Matthews
You can also use pdflib http://www.pdflib.com/download/pdflib-family/pdflib-7/ On Thu, Aug 21, 2008 at 6:47 AM, William Purcell <[EMAIL PROTECTED]>wrote: > Sorry, this last email was meant to be to the list. > > On Thu, Aug 21, 2008 at 8:41 AM, William Purcell < > [EMAIL PROTECTED]> wrote: > >> I

Re: Is my thinking Pythonic?

2008-08-21 Thread Craig Allen
generally, I name the members in the Class definition and set them to None there... class Car: speed = None brand = None def __init__(): self.speed = defaultspeed #alternately, and more commonly, get this speed as a initializer argument self.brand = defaultbrand That solves

Re: Is my thinking Pythonic?

2008-08-21 Thread Diez B. Roggisch
Craig Allen wrote: > generally, I name the members in the Class definition and set them to > None there... > > class Car: >speed = None >brand = None > >def __init__(): > self.speed = defaultspeed #alternately, and more commonly, get > this speed as a initializer argument >

Re: Is my thinking Pythonic?

2008-08-21 Thread bearophileHUGS
Craig Allen: > class Car: >speed = None >brand = None > >def __init__(): > self.speed = defaultspeed #alternately, and more commonly, get > this speed as a initializer argument > self.brand = defaultbrand > > That solves the issue of being able to "see" all the members of a

Re: exception handling in complex Python programs

2008-08-21 Thread magloca
Bruno Desthuilliers @ Thursday 21 August 2008 17:31: >>> If you mean "the exceptions *explicitely raised* by your code", then >>> I agree. But with any generic enough code, documenting any possible >>> exception that could be raised by lower layers, objects passed in as >>> arguments etc is just p

Re: getattr() on nested functions?

2008-08-21 Thread castironpi
On Aug 21, 10:14 am, Bruno Desthuilliers wrote: > Gabriel Rossetti a écrit : > > > > > Bruno Desthuilliers wrote: > >> Gabriel Rossetti a écrit : > >>> Terry Reedy wrote: > >> (snip) > Unlike the class approach, this requires recreating the constant > functions and dict with each call to

Re: mmap and ctypes

2008-08-21 Thread castironpi
On Aug 18, 1:09 am, "Méta-MCI \(MVP\)" <[EMAIL PROTECTED]> wrote: > Hi! > > See here: >  http://www.ponx.org/download/CD/COMdll/autoitmmap.dll > > @-salutations > -- > Michel Claveau I don't see how it fits in. -- http://mail.python.org/mailman/listinfo/python-list

Could anyone point me to a good site for pearl compiler download

2008-08-21 Thread rich murphy
Could anyone point me to a good site for pearl compiler download. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to simulate packages?

2008-08-21 Thread Gabriel Genellina
En Thu, 21 Aug 2008 13:04:51 -0300, Daniel <[EMAIL PROTECTED]> escribi�: I have a project that I've decided to split into packages in order to organize my code better. So what I have looks something like this src -module1 -mod1_file.py -module2 -mod2_file.py Everytime I run mod2

Re: Is my thinking Pythonic?

2008-08-21 Thread Gabriel Genellina
En Thu, 21 Aug 2008 14:31:02 -0300, Craig Allen <[EMAIL PROTECTED]> escribi�: generally, I name the members in the Class definition and set them to None there... class Car: speed = None brand = None def __init__(): self.speed = defaultspeed #alternately, and more commonly, get

urllib2 HTTPBasicAuthHandler and resumingbroken downloads

2008-08-21 Thread Brendan
Is there any way to resume an https file download using urllib2 and an HTTPBasicAuthHandler? -- http://mail.python.org/mailman/listinfo/python-list

Re: How to simulate packages?

2008-08-21 Thread Jason Scheirer
On Aug 21, 11:26 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Thu, 21 Aug 2008 13:04:51 -0300, Daniel <[EMAIL PROTECTED]>   > escribi : > > > I have a project that I've decided to split into packages in order to > > organize my code better.  So what I have looks something like this > > >

Re: Could anyone point me to a good site for pearl compiler download

2008-08-21 Thread Gabriel Genellina
En Thu, 21 Aug 2008 15:01:16 -0300, rich murphy <[EMAIL PROTECTED]> escribió: Could anyone point me to a good site for pearl compiler download. Would be better to ask for it in a Perl group, don't you think? -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: urllib2 HTTPBasicAuthHandler and resumingbroken downloads

2008-08-21 Thread Gabriel Genellina
En Thu, 21 Aug 2008 15:37:41 -0300, Brendan <[EMAIL PROTECTED]> escribi�: Is there any way to resume an https file download using urllib2 and an HTTPBasicAuthHandler? You should provide the Range header (and probably If-Range too) in the request. http://www.w3.org/Protocols/rfc2616/rfc261

Re: Python Behind a Squid Corporate Proxy on Windows

2008-08-21 Thread Danilo
Hi, do you manage to go through the proxy? I'm having the same problem with error 407. I've tried many solutions from the web but it always show the same error. So, if you solved your problem, please, post it here. Thanks Danilo On 18 jul, 15:43, Larry Hale <[EMAIL PROTECTED]> wrote: > Thank you

Re: Could anyone point me to a good site for pearl compiler download

2008-08-21 Thread thejmags
I think he wants to know where he can find good abalone. -- http://mail.python.org/mailman/listinfo/python-list

Re: Prevalent Python/Django academic software

2008-08-21 Thread Daniel Bickett
On Aug 21, 7:39 am, [EMAIL PROTECTED] (Cameron Laird) wrote: > I don't understand the question. YES, there are MANY > Python-based applications doing service in a variety > of academic contexts. No, there is no central index > of all such programs. Sorry if I was unclear. If there are many such

Re: Could anyone point me to a good site for pearl compiler download

2008-08-21 Thread Mike Driscoll
On Aug 21, 1:51 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Thu, 21 Aug 2008 15:01:16 -0300, rich murphy   > <[EMAIL PROTECTED]> escribió: > > > Could anyone point me to a good site for pearl compiler download. > > Would be better to ask for it in a Perl group, don't you think? > > -- >

Re: Graphics Contexts and DCs explanations?

2008-08-21 Thread RgeeK
Chris Mellon wrote: This is probably better suited to the wxPython ML instead of c.l.p, because it's so specific. In short: wxDC (and friends) are traditional raster based drawing contexts. wxGraphicsContext is a vector/path based API. If you're doing drawing that's suited for a vector format (l

Re: How to simulate packages?

2008-08-21 Thread Bruno Desthuilliers
Daniel a écrit : Hello, I have a project that I've decided to split into packages in order to organize my code better. So what I have looks something like this src -module1 -mod1_file.py -module2 -mod2_file.py Everytime I run mod2_file.py I need to import mod1_file.py. Right now

Re: evaluating code lines above breakpoints ?

2008-08-21 Thread Stef Mientki
Diez B. Roggisch wrote: Stef Mientki wrote: hello, I'm trying to create a high level debugger, based on rpd2. So when the debugger enters a breakpoint, I want to display the values of all variables in the, let's say, 5 lines above the breakpoint (if possible). Any hints on how I get a list

Re: Is my thinking Pythonic?

2008-08-21 Thread Bruno Desthuilliers
Craig Allen a écrit : generally, I name the members in the Class definition and set them to None there... class Car: Unless you have a really good reason to use an antiquated and deprecated object model, use "new-style" classes (for a value of "new" being "now many years old"): class Car(o

programming toolbox

2008-08-21 Thread William Purcell
Hi all, I started programming with python about a year ago. I am now somewhat experienced with python but have virtually no experience with any other language. I use python to write little command line tools, GUI's to do anything from my time sheet at work to balancing my checkbook, and for school

Re: functools's partial and update_wrapper does not work together

2008-08-21 Thread piotr . findeisen
> If not already done by someone else, it might be worth filling a ticket > - generic decorators should work with any callable, not only with > functions (well, IMHO at least). you're right. it's already there http://bugs.python.org/issue3445 regards! -- http://mail.python.org/mailman/listinfo/p

Re: exception handling in complex Python programs

2008-08-21 Thread Bruno Desthuilliers
magloca a écrit : Bruno Desthuilliers @ Thursday 21 August 2008 17:31: If you mean "the exceptions *explicitely raised* by your code", then I agree. But with any generic enough code, documenting any possible exception that could be raised by lower layers, objects passed in as arguments etc is j

Re: How to simulate packages?

2008-08-21 Thread Daniel
On Aug 21, 12:26 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Thu, 21 Aug 2008 13:04:51 -0300, Daniel <[EMAIL PROTECTED]>   > escribi : > > > I have a project that I've decided to split into packages in order to > > organize my code better.  So what I have looks something like this > > >

Re: How to simulate packages?

2008-08-21 Thread Daniel
On Aug 21, 2:22 pm, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > Daniel a écrit : > > > Hello, > > > I have a project that I've decided to split into packages in order to > > organize my code better.  So what I have looks something like this > > > src > >   -module1 > >     -mod1_file.py > >  

Re: semantics of the |= operator

2008-08-21 Thread Terry Reedy
akva wrote: Hi All, what's the exact semantics of the |= operator in python? It seems that a |= d is not always equivalent to a = a | d The manual explicitly specifies that mutable objects may implement the operation part of operation-assignments by updating in place -- so that the object

Re: The Importance of Terminology's Quality

2008-08-21 Thread Martin Gregorie
On Thu, 21 Aug 2008 09:11:48 -0500, Rob Warnock wrote: > You're assuming that all machines *have* some sort of "boot ROM". Before > the microprocessor days, that was certainly not always the case. The > "boot ROM", or other methods of booting a machine without manually > entering at least a small

Re: The Jihad Candidate

2008-08-21 Thread Artfishlintlgenz
On Aug 21, 2:10 pm, "hanson" <[EMAIL PROTECTED]> wrote: > AHAHAHAHAHA... ahahahaha... AHAHAHA... --- > > Parki-pooh aka "Lloyd" <[EMAIL PROTECTED]> wrote in messagenews:[EMAIL > PROTECTED] > > thermate at india.com , a genuine ass-venter, cranked > himself and with extreme prejudice h

Having trouble with tail -f standard input

2008-08-21 Thread sab
Hello, I have been working on a python script to parse a continuously growing log file on a UNIX server. The input is the standard in, piped in from the log file. The application works well for the most part, but the problem is when attempting to continuously pipe information into the applicatio

'While' question

2008-08-21 Thread Ben Keshet
Hi - I am writing now my second script ever in python and need some help with 'while'. I am reading text from a set of files and manipulating the data somehow. I use 'while 'word' not in line' to recognize words in the texts. Sometimes, the files are empty, so while doesn't find 'word' and ru

Re: 'While' question

2008-08-21 Thread Wojtek Walczak
On Thu, 21 Aug 2008 18:01:25 -0400, Ben Keshet wrote: > somehow. I use 'while 'word' not in line' to recognize words in the > texts. Sometimes, the files are empty, so while doesn't find 'word' and > runs forever. I have two questions: > 1) how do I overcome this, and make the script skip the emp

Experiences with libical Python bindings?

2008-08-21 Thread Grant Edwards
I searched the c.l.p archive and didn't find any postings mentioning libical newer than 2002. Does that mean it's well documented and "just works", or that nobody is using it? -- Grant Edwards grante Yow! Wow! Look!! A stray at

Re: Could anyone point me to a good site for pearl compiler download

2008-08-21 Thread Timothy Grant
On Thu, Aug 21, 2008 at 12:19 PM, Mike Driscoll <[EMAIL PROTECTED]> wrote: > On Aug 21, 1:51 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> > wrote: >> En Thu, 21 Aug 2008 15:01:16 -0300, rich murphy >> <[EMAIL PROTECTED]> escribió: >> >> > Could anyone point me to a good site for pearl compiler downl

Re: Could anyone point me to a good site for pearl compiler download

2008-08-21 Thread John Machin
On Aug 22, 5:01 am, [EMAIL PROTECTED] wrote: > I think he wants to know where he can find good abalone. Which he may have confused with baloney. -- http://mail.python.org/mailman/listinfo/python-list

Re: Having trouble with tail -f standard input

2008-08-21 Thread Diez B. Roggisch
sab schrieb: Hello, I have been working on a python script to parse a continuously growing log file on a UNIX server. The input is the standard in, piped in from the log file. The application works well for the most part, but the problem is when attempting to continuously pipe information into

  1   2   >