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
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
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
3
>>> "foofoo".index("foo")
0
>>> "foofoo".rindex("foo")
3
--
Aaron Bingham
Application Developer
Cenix BioScience GmbH
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
e(100)
;-)
--
Aaron Bingham
Software Engineer
Cenix BioScience GmbH
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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 ?
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
r of repeated
string concatenation.
Regards,
--
--------
Aaron Bingham
Software Engineer
Cenix BioScience GmbH
--
http://mail.python.org/mailman/listinfo/python-list
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,
--
-
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
excellent link!
--
--------
Aaron Bingham
Software Engineer
Cenix BioScience GmbH
--
http://mail.python.org/mailman/listinfo/python-list
:
>>> 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
19 matches
Mail list logo