Re: How to convert a number to hex number?

2005-11-08 Thread Aaron Bingham
C,DEF. > > To print the hexidecimal string representation of an integer, n, use print hex(n) or print "%x" % n Regards, Aaron Bingham -- http://mail.python.org/mailman/listinfo/python-list

Re: Eclipse best/good or bad IDE for Python?

2005-12-02 Thread Aaron Bingham
se performance is not a problem for me, but I have a beefy box. Enjoy, Aaron Bingham -- http://mail.python.org/mailman/listinfo/python-list

Re: Eclipse best/good or bad IDE for Python?

2005-12-06 Thread Aaron Bingham
oms the editor to take up the whole window and hids all the "screen furniture". You can double click the tab again to get the furniture back. Aaron Bingham -- http://mail.python.org/mailman/listinfo/python-list

Re: search backward

2005-01-04 Thread Aaron Bingham
3 >>> "foofoo".index("foo") 0 >>> "foofoo".rindex("foo") 3 -- Aaron Bingham Application Developer Cenix BioScience GmbH -- http://mail.python.org/mailman/listinfo/python-list

Re: 2 versions of python on 1 machine

2005-01-06 Thread Aaron Bingham
installed and switching versions when you need to? How can i do that? You need to put the path to the desired version in the PATH environment variable. You shoudn't need to change PYTHONPATH at all. -- Aaron Bingham Applic

Re: Fuzzy matching of postal addresses

2005-01-18 Thread Aaron Bingham
as well. This paper's algorithm deals with those problems quite nicely, -- -------- Aaron Bingham Application Developer Cenix BioScience GmbH -- http://mail.python.org/mailman/listinfo/python-list

Re: Fuzzy matching of postal addresses

2005-01-19 Thread Aaron Bingham
I pointed you to takes care of this pretty nicely. -- -------- Aaron Bingham Application Developer Cenix BioScience GmbH -- http://mail.python.org/mailman/listinfo/python-list

Re: __eq__ on a dict

2005-07-11 Thread Aaron Bingham
ocumented? > In general, you should not call __eq__ directly, but use the == operator > instead. That is clear enough, the OP was seeking information about the behavior of these operators when used with dictionaries. Thanks, -- Aaron Bingham Senior Software Engineer Cenix BioScience GmbH -- http://mail.python.org/mailman/listinfo/python-list

Re: __eq__ on a dict

2005-07-12 Thread Aaron Bingham
s are unordered: > > py> {1:1j} < {1:2j} > Traceback (most recent call last): > File "", line 1, in ? > TypeError: cannot compare complex numbers using <, <=, >, >= > > but even

Re: Faster way to do this...

2005-03-01 Thread Aaron Bingham
e(100) ;-) -- Aaron Bingham Software Engineer Cenix BioScience GmbH -- http://mail.python.org/mailman/listinfo/python-list

Re: comment out more than 1 line at once?

2004-11-30 Thread Aaron Bingham
Riko Wichmann wrote: Dear all, is there a way in Python to comment out blocks of code without putting a # in front of each line? Somethings like C's /* block of code here is commented out */ No. Why do you want this? Any good programmer's editor will have a comment/uncomment feature to mak

Re: how to list files with extension .txt in windows?

2004-12-02 Thread Aaron Bingham
ed wrote: I have used batch script to do it but it has a lot of issues with access denied... errors I pretty much given up using batch to do this. If you do not have permission to access the files, switching to a different language will not help you. You need to determine the cause of your ac

Re: byte code generated under linux ==> bad magic number under windows

2004-12-06 Thread Aaron Bingham
Philippe C. Martin wrote: I understand from my reading that a .pyc generated by python anywhere should run anywhere else - is that true ? If I generate 'compile.all' a pyc with python 2.3.3 under Linux, I get a 'bad magic number' trying to execute it under windows (2.4). What am I doing wrong ?

Re: Data problem

2004-12-15 Thread Aaron Bingham
d Y fields in the DB are actually defined as integers, not floats, but you probably already checked that. Regards, -- Aaron Bingham Application Developer Cenix BioScience GmbH -- http://mail.python.org/mailman/listinfo/python-list

Re: Optimisation Hints (dict processing and strings)

2005-03-29 Thread Aaron Bingham
r of repeated string concatenation. Regards, -- -------- Aaron Bingham Software Engineer Cenix BioScience GmbH -- http://mail.python.org/mailman/listinfo/python-list

Re: Little Q: how to print a variable's name, not its value?

2005-03-30 Thread Aaron Bingham
long as as it is used as a debugging aid, with the expression as a literal string in the program, there should be no security issue. I would never use either of these functions except as debugging aids anyway. Regards, -- -

Re: Little Q: how to print a variable's name, not its value?

2005-03-31 Thread Aaron Bingham
odo/) and its remote debugging functionality, instead of building your own tool. There may be other IDEs that provide equivalent functionality, but I am not familiar with them. Regards, -- -------- Aaron Bin

Re: Why Python does *SLICING* the way it does??

2005-04-20 Thread Aaron Bingham
excellent link! -- -------- Aaron Bingham Software Engineer Cenix BioScience GmbH -- http://mail.python.org/mailman/listinfo/python-list

Re: Access from one class to methode of other class

2005-05-26 Thread Aaron Bingham
: >>> class 1: File "", line 1 class 1: ^ SyntaxError: invalid syntax -- Aaron Bingham Software Engineer Cenix BioScience GmbH -- http://mail.python.org/mailman/listinfo/python-list