return codecs.charmap_encode(input,errors,encoding_map)
UnicodeEncodeError: 'charmap' codec can't encode character u'\x84' in position
0: character maps to
>>> ^Z
Why does the exec call fail, and is there a workaround?
Thanks,
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
I have this code:
type1 = [0]
type2 = [0]
type3 = [0]
map = {0:type1, 1:type1, 2:type3, 3:type1, 4:type2} # the real map is
longer than this
def increment(value):
map[value][0] += 1
increment(1)
increment(1)
increment(0)
increment(4)
#increment will actually be called many times through
Thanks to everyone who posted. First, I don't think my question was
clear enough: Rob Cowie, Ant, Simon Forman, [EMAIL PROTECTED], and Jon
Ribbens offered solutions that don't quite work as-is, because I need
multiple values to map to a single type. Tim Chase and Bruno
Destuilliers both offer ver
if (check && check != new)
> Py_FatalError("Invalid thread state for this thread");
> }
> #endif
>
> The variable 'check' looks as if it is the 'previous' thread state, as
> if changing the thread state
> is not
Yes, I highly recommend the subprocess module. subprocess.call() can
do almost anything you want to do, and the options are all pretty
intuitive Whenever I need to write quick scripts for myself, it's what
I use.
THN
Roy Smith wrote:
> In article <[EMAIL PROTECTED]>,
> Donald Duck <[EMAIL PRO
dependant... So, at least on unix-like
platform, you can use the signal module to detect segfault:
import signal
def handler(signum, frame):
print 'Segfault detected'
# you may use the stack frame here to help debugging
signal.signal(signal.SIGSEGV, handler)
--
Thomas SAMSO
in genetic algorithms, but here are
some links :
http://pygp.sourceforge.net/
http://packages.qa.debian.org/g/genetic.html
and of course,
http://www.freenet.org.nz/python/pygene/
--
Thomas Samson
BOFH Excuse #420:
Feature was not beta tested
--
http://mail.python.org/mailman/listinfo/python-list
ake it thread
> aware.
You need some kind of lock. Look at the module threading. There
is a class called "Lock".
PS: If you use pygtk: I switched from using threads to idle_add and (*). This
is much easier
and you don't need any locking.
# (*)
while gtk.events_pending():
gt
ilable?
>
> Best wishes,
>
> Harald
>
http://effbot.org/downloads/#PIL
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
ator returned as
> well.
Well, x.split(":", 1) returns a list of one or two elements, depending on x,
while x.partition(":") always returns a three-tuple.
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
r, but worth a try.
Maybe another possibility is that py2exe fails to include makepy
generated modules. Could that lead to this error?
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
called if there are no actions in the
event-loop.
HTH,
Thomas
--
Thomas Güttler, http://www.thomas-guettler.de/ http://www.tbz-pariv.de/
E-Mail: guettli (*) thomas-guettler + de
Spam Catcher: [EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
In newer py2exe-versions,
you have to use 'console=[name]' in the above script.
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
"C:\Python25\lib\site-packages\py2exe\build_exe.py", line 591,
> in create_
> binaries
> bytes = zlib_file.read()
> AttributeError: 'NoneType' object has no attribute 'read'
>
> This is a standard Python 2.5 installation. Doing the same thing with
> 2.4 works like a charm.
>
> Did I miss anything?
>
Patches for this have been posted to the py2exe-users list.
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
seb wrote:
> The best thing would be to have a queue feature that would be be shared
> between processes but as far as I know It does not exists in python.
There is a queue class to share data between threads:
http://docs.python.org/lib/module-Queue.html
--
Thomas Güttler, http://www.
have a False boolean value, so
'if pv: '
should work. Except for c_void_p, c_char_p and c_wchar_p instances.
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
your stated "policy" leave you still wasting 20-30% of your
programming efforts on other languages?
We would be curious to know about those things you can do in C++
but can't do in Python.
(Doubting) Thomas Bartkus
--
http://mail.python.org/mailman/listinfo/python-list
False in a boolean
>> expression (and you could assume that non-NULL pointers are True, as
>> any other object in general),
>
> I see this now that you show the clueless newbie me, yes thank you.
> Except now by showing me here we have provoked the authority Thomas
> Hell
alue, but it is -1 not 0x.
Worse, on 64-bit systems c_void_p(-1).value is 184467440737009661615, which
is the same as 0x.
So, to be portable, INVALID_HANDLE_VALUE should be defined like this:
INVALID_HANDLE_VALUE = c_void_p(-1).value
and your test would become
(ctypes.cast(pv, ctype
the .value of a c_void_p instance is signed on
>> 32-bit systems, and unsigned on 64-bit systems, but it seems we have to live
>> with that.
Obviously, as you discovered, and I confirmed, this is no longer true. In the
Python2.5
ctypes, the value of c_void_p is always unsigned. I just meant that we have to
live
for quite some time with the behaviour of ctypes as implemented, because only
bug
fixes can be made to Python 2.5.
Thomas (I'll probably leave for a few days now)
--
http://mail.python.org/mailman/listinfo/python-list
rograms designed for the job, such as
vnc2swf (which produces macromedia flash), vncrec (which produces a
special format readable by transcode) or istanbul (which produces
ogg/theora). I doubt Tk would have a special mechanism to do this.
--
Thomas Jollans alias free-zombie
--
http://mail.python.org/mailman/listinfo/python-list
> player, how do i also get that music into my itunes library
> ta all
> jen
What does this have to do with python ?
--
Thomas Jollans alias free-zombie
--
http://mail.python.org/mailman/listinfo/python-list
e as serialization format, akin
to pickle.
--
Thomas Jollans alias free-zombie
--
http://mail.python.org/mailman/listinfo/python-list
(specified in PEP 333:
http://www.python.org/dev/peps/pep-0333/) you should be able to convert
your app to WSGI, which will run on mod_python, relatively easily
(depending on your code; 'print' won't work anymore)
--
Thomas Jollans alias free-zombie
--
http://mail.python.org/mailman/listinfo/python-list
printf("Pointer cast: %d %10.6f\n", *(int*)&f, *(float*)&i);
to the program. It should output the same numbers as the
"Bitcopy" printf(). But what is cast here is the *address* of
the variables, not the actual contents of them. It is the
*dereferencing* of thos
e you looking for sockets' makefile method ?
--
Thomas Jollans alias free-zombie
--
http://mail.python.org/mailman/listinfo/python-list
but what if I absolutely want to pass a
> value to f()? "None" doesn't seem to work..
>
> Thanks in advance.
a) if you feel that your program needs to pass a value, fix the program.
b)
>>> def f(v=1):
... return v*2
...
>>> f()
2
>>> f(1)
2
>
x27;ll want to convert the data when
reading using int() and long().
> i get
> 2 None
> 7 None
>
> data file is:
> 2 1
> 2 2
> 2 3
> 2 4
> 7 7
> 7 8
> 7 9
> 7 10
--
Thomas Jollans alias free-zombie
--
http://mail.python.org/mailman/listinfo/python-list
t
/usr/lib/python2.4/site-packages/gtk-2.0/gtk/__init__.pyc . On your
system, __import__('gtk').__file__ knows more than you.
--
Thomas Jollans alias free-zombie
--
http://mail.python.org/mailman/listinfo/python-list
Hello folks,
I am thinking about reading and understanding the Source Code of Python, but
where would it be best to start? Possibly someone can give me a little hint. I
am getting into socketmodule.c a little bit at the moment, but thats not what I
want.
Greetz, Thomas
--
Der GMX
in a
library)
make: *** [Python.framework/Versions/2.5/Python] Error 1
What does that mean?
Thanks,
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
ests printing.
>
> Or just let Windows do the dirty work of locating Adobe Reader,
> figuring out the parameters and such:
>
> import win32api
> win32api.ShellExecute(0, "print", path/to/document.pdf, None, None, 0)
>
Note that in Pyhton2.5, os.startfile was
docs for select.select say:
Empty sequences are allowed, but acceptance of three empty sequences is
platform-dependent.
(It is known to work on Unix but not on Windows.)
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
one else who can do this) will decide to choose one
soon.
Thomas
--
Thomas Güttler, http://www.thomas-guettler.de/ http://www.tbz-pariv.de/
E-Mail: guettli (*) thomas-guettler + de
Spam Catcher: [EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
g into a class, then
you can traverse two directory trees at once and can do funny things
with it?
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
;
>
Have you actually even tried to find some "documentation"?
Have you placed a google search "python directories rename files"?
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
Maybe a stupid subject, but this is what I want to do :
I got some python code stored in a string:
somecode = """
from somemodule import ISomeInterface
class Foo(ISomeInterface):
param1 = ...
param2 =
"""
and I want to compile that code so that I can use the Foo-class and
check w
Great !!! That works like charm.
Thanks alot.
Thomas
Leo Kislov wrote:
> Thomas W wrote:
> > Maybe a stupid subject, but this is what I want to do :
> >
> > I got some python code stored in a string:
> >
> > somecode = """
> >
>
robert wrote:
> I'm looking for a function which extracts a table of contents of HTML file(s)
> from ... and possibly auto-creates the ancors.
> Maybe something already exists?
You can try mine:
http://www.thomas-guettler.de/scripts/number-html-headings.py.txt
--
Thomas
straight-forward conversion of the
code in the above article to Python. Needs ctypes and comtypes.
Python 2.5 already includes ctypes; comtypes can be installed
with 'easy_install comtypes'.
Thomas
import sys, time
from ctypes import windll, oledll, WinError, byref, POINTER
from ctypes.wint
__init__
GIFAnimationCtrl.__init__(self,statusBar,-1,info.imageFile(fileName))
File
"//Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx-2.7.1-mac-unicode/wx/animate.py",
line 242, in __init__
self.LoadFile(filename)
File
"/Library/Frameworks/Python.fra
rships python.
That just tells me Python is right. Whatever angle you look at it.
:-D
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
Markus Rosenstihl schrieb:
> On 2006-11-19 15:50:14 +0100, Thomas Ploch <[EMAIL PROTECTED]> said:
>
>> Hello,
>>
>> I followed the instructions in the Mac/README file.
>>
>> I ran ./configure --enable-framework
>>
>> But when I try
re a way to get rid of the manual incrementation of the 2 counters?
>
> Thanks,
for counter in xrange(len(lineList)):
for itemCounter in xrange(len(lineList[counter].split()))
myArray[counter, itemCounter]
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
contains *lots*
> of things like this. It makes the code very unreadable.
>
> Thanks,
>
Nothing in your code actually __is__ a list. they are all tuples...
A list is:
aList = [a,b,c1,c2,c3,d1,d2,d3,d4,d5]
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
ed.
>
> '1402.6700\x00\x12\x00*\x00\x00\x004\xfb\x12\x00\xfd\x1a\xd9w4\xc1\x00'
>
> Any thoughts on this?
>
> TIA,
>
> jab
>
Looks like a bug, either in the dde module or the dde server.
But it's easy to find a workaround:
>>>
f ;-) with forged
headers.
But I'm not sure what you mean with Python-related... Not the contents, IIRC.
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
,5,itemList)
>>>print a,b,c,d
['a'] ['b'] ['c1', 'c2', 'c3'] ['d1', 'd2', 'd3', 'd4', 'd5']
>>>a,b,c,d = getSlices(3,1,1,0,itemList2)
>>>print a,b,c,d
['a1', 'a2', 'a3'] ['b'] ['c'] []
%-)
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
John Henry schrieb:
> Thomas Ploch wrote:
>
>> I had a little bit of fun while writing this:
>>
>> itemList = (a,b,c1,c2,c3,d1,d2,d3,d4,d5) and
>> itemList2 = (a1,a2,a3,b,c,d1,d2,d3,d4,d5) the next time.
>>
>
> Huh? What's a,b,d5?
>
John H
stead of working as a filter only.
Thanks,
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
Robert R. schrieb:
> Hello,
>
> i would like to write a piece of code to help me to align some sequence
> of words and suggest me the ordered common subwords of them
>
> s0 = "this is an example of a thing i would like to have".split()
> s1 = "another example of something else i would like to hav
bj.write(process(foo))
fileobj.close()
Which one is the 'official' recommended way?
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
Thomas Ploch schrieb:
> Amir Michail schrieb:
>> Hi,
>>
>> It seems to me that measuring productivity in a programming language
>> must take into account available tools and libraries.
>>
>> Eclipse for example provides such an amazing IDE for java that it
orts
PyLint and PyChecker, manages the python path when new modules are
added, but can be improved (as can everything :-) )). But as I said, often my
system hangs when having quite a few
files opened, so that brought me off using it too often.
Thomas
--
"Ein Herz für Kinder" - Ihr
s.
> I am pritty well to do with windows API, I am an a good python
> programmer, but I can't find the link between the two.
> there are modules but no good documentation.
> krishnakant.
Maybe then ctypes is the right thing for you?
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
Chuck Rhode schrieb:
> Thomas Heller wrote this on Thu, Nov 30, 2006 at 09:50:25PM +0100. My
> reply is below.
>
>> The two things that bother me at the moment are how the comments are
>> formatted (dunno if that can be customized or changed easily), and
>> it would
hing licked.
Get SQL in your head and all you will need would be the db-api interface
with Postgres that Frederick Lundh pointed you to. All you want to do is
throw SQL commands at Postgres and recover result sets into Python.
It's a cinch.
Thomas Bartkus
--
http://mail.python.org/mailman/listinfo/python-list
er than a feature
> in the interpreter itself.
>
I read the whole thread and this is more or less the first post which
actually has a good thing to say without saying any bad thing about anyone.
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
up, regularizes, and reformats the text of
> Python scripts:
>
> http://www.LacusVeris.com/PythonTidy/PythonTidy.python
>
> What next? Is it appropriately submitted to the Cheese Shop?
>
Of course.
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
please, stay true to that.
And don't forget those, who actually view source code in a terminal.
:-)
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
call .__len__() but that is ugly.
I have read the FAQ to the len function:
http://www.python.org/doc/faq/general/#why-does-python-use-methods-for-some-functionality-e-g-list-index-but-functions-for-other-e-g-len-list
--
Thomas Güttler, http://www.thomas-guettler.de/ http://www.tbz-pariv.de/
E
Chuck Rhode schrieb:
> Thomas Heller wrote this on Tue, Dec 05, 2006 at 07:06:30PM +0100. My
> reply is below.
>
>> There is still one major issue. pythonTidy uses open(input-file,
>> "rb") to open the Python module to tidy up. That does not work on
>> Win
...
- the python-win32 mailing list
- the ctypes-users mailing list
- or should I create a new comtypes-users mailing list, mirrored on gmane, of
course?
Thanks for any opinions,
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
Some of the
>> material exists scattered about and just needs locating and organizing.
>>
>>http://wiki.python.org/moin/Advocacy
>
>
> I think it also appears to need faster hardware. It's running glacially
> slow.
I hope you are _not_ using IE...
(So
Thomas Ploch schrieb:
> Roy Smith schrieb:
>> In article <[EMAIL PROTECTED]>,
>> Jeff Rush <[EMAIL PROTECTED]> wrote:
>>
>>> As the Python Advocacy Coordinator, I've put up some wiki pages on the
>>> Python
>>> website f
fer of stderr will
get full. The child will block. The parent will wait for ever.
See http://docs.python.org/lib/popen2-flow-control.html
My hint: Always use popen4
You can get dead locks with popen4, too. But only if you
write to pipe.tochild.
Thomas
--
Thomas Güttler, http://www.thomas
There's an optional count argument that will give what you want. Try
re.sub('a.*b','','ababc',count=1)
Carsten Haese wrote:
> On Thu, 2006-12-14 at 06:45 -0800, [EMAIL PROTECTED] wrote:
> > Can someone please explain why these expressions both produce the same
> > result? Surely this means that
;
It seems so:
python -c "o = object(); print o.__str__ == o.__str__"
prints True with Python 2.5, and False with Python 2.4.
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
Asper Faner schrieb:
> I seem to always have hard time understaing how this regular expression
> works, especially how on earth do people bring it up as part of
> computer programming language. Natural language processing seems not
> enough to explain by the way. Why no eliminate it ?
>
Erm, I am
Ben Finney schrieb:
> "John Machin" <[EMAIL PROTECTED]> writes:
>
>> Ben Finney wrote:
>>
>>> \ "...one of the main causes of the fall of the Roman Empire was |
>>> `\that, lacking zero, they had no way to indicate successful |
>>> _o__) termination of their C program
aving VI key commands Back into "Learning Python", and DIP...
Yes, I love that, too. The Komodo Rx Toolkit is really good for people
who are new to regular expressions just to try them out, to get to know
grouping, to see how MULTILINE and other flags work.
I can recommend this to anyone
> Ben Finney schrieb:
>> "John Machin" <[EMAIL PROTECTED]> writes:
>>
>>> Ben Finney wrote:
>>>
\ "...one of the main causes of the fall of the Roman Empire was |
`\that, lacking zero, they had no way to indicate successful |
_o__) termination of their C
Felix Benner schrieb:
> Thomas Ploch schrieb:
>>> Ben Finney schrieb:
>>>> "John Machin" <[EMAIL PROTECTED]> writes:
>>>>
>>>>> Ben Finney wrote:
>>>>>
>>>>>> \ "...one of the main causes
;m not supposed to be funny.
Argh, I am writing to President Horst Köhler to take away your German
citizenship. You _need_ to stay true to German attributes (like not
being funny, what you have been...)! This is the last warning!
:-D
Regarding the topic:
I can't see where Perl should be more
have a look here:
http://docs.python.org/lib/os-file-dir.html#os-file-dir
Thomas
(This could have been done by yourself, but I am in a christmasly mood)
--
http://mail.python.org/mailman/listinfo/python-list
ould
> I look?
> TIA,
>
> Michele Simionato
>
I don't know how to get the command line flags, but the variable you are
interested
in is this one:
from ctypes import *
print c_int.in_dll(pythonapi, "Py_InteractiveFlag")
;-)
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
the matching engine implemented then?
I thought regular languages can be described by deterministic /
non-deterministic finite state machines. I am just curious ...
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
orking hard on reverse-engineering it though. I hope no one
> slaps them with a DMCA-style lawsuit ...
>
> Tim Delaney
I heard Steve Ballmer recently made an offer to the pope for purchasing
the license for an apple and an egg (Apfel und Ei).
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
I wish everybody a merry Christmas and a happy new year.
Have a good and beautiful new year.
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
.? Or is this a blatantly idiotic idea?
I hope I am not the idiot of the month right now...
Thanks in advance,
Thomas
P.S.:
I might give some of my Christmas chocolate away as a donation to this
list... :-)
--
http://mail.python.org/mailman/listinfo/python-list
Steven D'Aprano wrote:
> On Sun, 31 Dec 2006 02:03:34 +0100, Thomas Ploch wrote:
>
>> Hello fellow pythonists,
>>
>> I have a question concerning posting code on this list.
>>
>> I want to post source code of a module, which is a homework for
>&
Marc 'BlackJack' Rintsch schrieb:
> In <[EMAIL PROTECTED]>, Thomas Ploch
> wrote:
>
>> Alright, my prof said '... to process documents written in structural
>> markup languages using regular expressions is a no-no.' (Because of
>> nested El
Marc 'BlackJack' Rintsch schrieb:
> In <[EMAIL PROTECTED]>, Thomas Ploch
> wrote:
>
>> This is how my regexes look like:
>>
>> import re
>>
>> class Tags:
>> def __init__(self, sourceText):
>> self.source = sourceText
uot; is unreasonably expensive. In Python, at least
> you can index through a string.
>
> John Nagle
I take it with LALR(0) you mean that HTML is a language created by a
Chomsky-0 (regular language) Grammar?
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
can use the CoClass from the typelibrary, look into the
generated module in the comtypes\gen directory for a class derived from
comtypes.CoClass.
InternetExplorer, for example, can be started in these ways:
# using the progid:
ie = CreateObject("InternetExplorer.Application")
# using the clsid:
ie = CreateObject("{0002DF01---C000-0046}")
# using the coclass from the generated module:
mod = GetModule("shdocvw.dll")
ie = CreateObject(mod.InternetExplorer)
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
o, it
> will work if you type "setup.py install" but not if you type "python
> setup.py install". For instance, I have an entry for Firefox in that
> part of the registry, but if you try executing "firefox" at the command
> line, it fails.
Not really. It
definitely
*is* possible.
Something like this doesn't exist yet, but people (especially
Computational Linguists) are working on this.
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
t;
> Maybe Mark is around here somewhere...
It may be better to mail him directly. You should be able to find his
email address.
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
self.data = data
dataVault = DataStorage(data)
dataVault1 = dataVault
dataVault2 = dataVault
...
but why not use a static_data.py (put your data in there) file and do:
>>> from static_data.py import DATA
This way you only load it once and it will be accessible throughout your
program.
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
ry for instance variables (if defined)
|
| __weakref__ =
| list of weak references to the object (if defined)
>>> TestClass()
Creating object of TestClass...
<__main__.TestClass object at 0x00AED0B0>
>>> TestClass().method1()
Creating object of TestClass...
This is a method
>>>
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
wcc schrieb:
> Hello group,
>
> Is there a separate mailing list for comtypes? Or this is the
> appropriate place to post questions related to this package(from Thomas
> Heller)?
It seems the python-win32 mailing list is the place where the most COM knowledge
is, so tha
es,
how is the best way to implement it?
Thanks,
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
it__(self)
# Has to be defined to override the base class's method
# when inheriting from class Foo. Otherwise: SPAM
def foo(self):
print 'foo'
I don't know any other way.
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
mplementedError in
> the base class (apart from documenting how your class is supposed to be
> used).
>
>
I learn so much from this list. I didn't even know this error existed.
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
Grant Edwards schrieb:
> On 2007-01-05, Thomas Ploch <[EMAIL PROTECTED]> wrote:
>
>>>> I am writing a class that is intended to be subclassed. What
>>>> is the proper way to indicate that a sub class must override a
>>>> method?
>
at might
get others that rely on that (commercial) to use python for more
projects as it is done now.
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] schrieb:
> I'm still pretty new to Python. I'm writing a function that accepts
> thre integers as arguments. I need to divide the first integer by te
> second integer, and get a float as a result. I don't want the caller of
> the function to have to pass floats instead of integers
Jonathan Smith schrieb:
> Thomas Ploch wrote:
>> [EMAIL PROTECTED] schrieb:
>>> I'm still pretty new to Python. I'm writing a function that accepts
>>> thre integers as arguments. I need to divide the first integer by te
>>> second integer, and get a
4.6-r1, ssp-3.4.5-1.0, pie-8.7.9)] on linux2
>Type "help", "copyright", "credits" or "license" for more
>information.
>>>> from __future__ import LotteryNumbers
> File "", line 1
>SyntaxError: future feature Lo
thon2.5 setup.py install
Normally it gets installed into the directory of the python version you
use when running setup.py. Is python 2.3 still the default on MAC OS X
10.4? I thought they switched to python 2.4.
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
1901 - 2000 of 3755 matches
Mail list logo