I make program in c++ embedding python2.4 in windows, I need the
python24_d.lib to link with the debug version of my program, but i can't
find the source code to build python24_d.lib on the internet, I even can't
find python24_d.lib/python24_d.dll on the internet.
Does the python24 source code rele
Donnie Leen <[EMAIL PROTECTED]> wrote:
>I make program in c++ embedding python2.4 in windows, I need the
> python24_d.lib to link with the debug version of my program, but i can't
> find the source code to build python24_d.lib on the internet, I even can't
> find python24_d.lib/python24_d.dll on t
Hi,
I'm trying to get PyQt up and running under Mac OS X 10.2.8, but
can't get past configuring sip.
I installed fink's qt3-3.2.3-2 and restarted my shells to get
qt3's environment variables QTDIR and QMAKESPEC.
I downloaded sip-4.1 from
http://www.river-bank.demon.co.uk,
unpacked it, ran
pytho
Jive wrote:
Well, ain't that enough to gag a maggot? I was aware that DLL's don't
really link dynamically. I was not aware that the crt dll file name was
hard-coded into the linker. But I looked on the link line and, sure enough,
that particular dll was not listed among the others.
It's not hard
Installing new versions of modules over old versions has often caused
me problems. Particularly py3exe recently.
Admittedly 'uninstalling' the old version was as simple as deleting the
folder from 'site-packages'.
Regards,
Fuzzy
http://www.voidspace.org.uk/atlantibots/pythonutils.html
--
h
Brian Beck wrote:
Dimitri Tcaciuc wrote:
While I'm not absolutely positive, it looks like Python still doesn't
have any official mascot or logo. Hence, here's something I came up
with yesterday. Its by no means a final version, but rather just a
draft to show an idea. Here's a link to png file.
Fuzzyman schrieb:
I'll post this to the image-sig as well, but the audience is a bit
wider here.
Sorry, can't help you on the rest (which seems to be rather MS and
compiler specific), but in general: cross-posting is not a good idea. Read
any of the many copies of the Netiquette on this topic. In
Christos TZOTZIOY Georgiou wrote:
Both languages cover all of your requirements. So read as much
documentation needed to write some simple programs as examples doing
similar tasks to the one you want in *both* languages. Test them that
they work. Then forget about your problems. Go to an island
[EMAIL PROTECTED] wrote:
Hi, I had very bad experience with Tkinter when using input servers(for
CJK languages like scim, xcin...) on Linux (doesn't work), so you might
consider this.
Eh? I use (not frequently, I admit...) kinput2 with canna and wnn servers with
Tkinter on Linux and it works quite
Christian Ergh wrote:
flag = true
for char in data:
if 127 < ord(char) < 128:
flag = false
if flag:
try:
data = data.encode('latin-1')
except:
pass
A little OT, but (assuming I got your indentation right[1]) this kind of
loop is exactly what the else clause of a
Dan Bishop wrote:
Out of pure curiousity,
Why wasn't 'While True' optimized also?
Probably has something to do with "True" and "False" not being
constants.
Yup. Even 'None' only just became a constant in 2.4.
I don't know if 'True' and 'False' are in line for similar treatment (there are
obvious
I'll post this to the image-sig as well, but the audience is a bit
wider here.
I've just upgraded to Python 2.4. I've installed the free microsoft
optimising compiler and hacked distutils to use it - following the
instructiosn from http://www.vrplumber.com/programming/mstoolkit/ . It
works great a
Steven Bethard wrote:
> Christian Ergh wrote:
>> flag = true
>> for char in data:
>> if 127 < ord(char) < 128:
>> flag = false
>> if flag:
>> try:
>> data = data.encode('latin-1')
>> except:
>> pass
>
> A little OT, but (assuming I got your indentation right[1]
Martin v. Löwis wrote:
Dylan wrote:
Things I have tried include encode()/decode()
This should work. If you somehow manage to guess the encoding,
e.g. guess it as cp1252, then
htmlstring.decode("cp1252").encode("us-ascii", "xmlcharrefreplace")
will give you a file that contains only ASCII charact
> Since the word 'Python' would bring -some- sort of snake associations,
> I
> thought of combining snake and Monty Python symbolic, like making a
> snake wind around a giant foot, or adding long mustache and an english
> hat to a snake or something in that manner, or even put a snake into a
Hmmm... disagree. Not eevryone who has experience of compilation (even
compiling PIL) will be on the sig. The sifg is probably the 'right'
place - but my experience is that a lot of htem are very low traffic.
This is also a topic of general interest to many pythoners. See the
number of questions r
Hi !
Fredrik Lundh did what is necessary. PIL for P 2.4 is at :
http://effbot.org/downloads/#PIL
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Peter Otten wrote:
Steven Bethard wrote:
Christian Ergh wrote:
flag = true
for char in data:
if 127 < ord(char) < 128:
flag = false
if flag:
try:
data = data.encode('latin-1')
except:
pass
A little OT, but (assuming I got your indentation right[1]) this kind of
loop i
Henry 'Pi' James wrote:
This whole issue seems so obvious and trivial to me that I've in fact
expected it to be resolved by itself
Obvious - arguable
Trivial - I think so too, but probably not in the way you mean
The obviousness is arguable because the differences between __getattr__ and
__getattr
Once more, indention should be correct now, and the 128 is gone too. So,
something like this?
Chris
import urllib2
url = 'www.someurl.com'
f = urllib2.urlopen(url)
data = f.read()
# if it is not in the pagecode, how do i get the encoding of the page?
pageencoding = '???'
xmlencoding = 'whatever
Blimey - there's a lot of typos in my last post... ugh
Regards,
Fuzzy
http://www.voidspace.org.uk/atlantibots/pythonutils.html
--
http://mail.python.org/mailman/listinfo/python-list
Great - and thanks for the info it was interesting messing around
with the compiler but I'm not goign to do it for the heck of it !!
Thanks
Fuzzy
http://www.voidspace.org.uk/atlantibots/pythonutils.html
--
http://mail.python.org/mailman/listinfo/python-list
Because of export restrictions, Andrew is unable to offer prebuilt
binary versions of his excellent PyCrypto module. I've built a windows
installer for Python 2.4
Actually download it here
http://www.voidspace.org.uk/atlantibots/pythonutils.html#crypto
Visit PyCrypto Homepage - http://www.amk.ca
Well the most well known Flying Circus snake related sketch is probably
the one eyed trouser snake one, which is er-, probably less than a good
idea for a logo. The Snake with some sort of Monty Python themeing is
probably the best idea, but drawing a snake + large foot/16 ton
weight/holy grail
- snip -
def get_encoded(st, encodings):
"Returns an encoding that doesn't fail"
for encoding in encodings:
try:
st_encoded = st.decode(encoding)
return st_encoded, encoding
except UnicodeError:
pass
-snip-
This works fine, but after this
I had tried already, the doesn't contain the sourcecode.
In python2.3.3, the release pakage contained sourcecode is Python-2.3.3.tar.
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Donnie Leen <[EMAIL PROTECTED]> wrote:
>
> >I make program in c++ embedding python2.4
Fredrik Lundh wrote:
I'd say that for a typical user,
$ python -m foo.bar arg
is a marginal improvement over
$ python -c "import foo.bar" arg
This doesn't work. Any code protected by "if __name__ == '__main__':" won't run
in this context (since 'foo.bar' is being imported as a module, not
> Hi,
>
> I'm trying to get PyQt up and running under Mac OS X 10.2.8, but
> can't get past configuring sip.
>
> I installed fink's qt3-3.2.3-2 and restarted my shells to get
> qt3's environment variables QTDIR and QMAKESPEC.
>
> I downloaded sip-4.1 from
> http://www.river-bank.demon.co.uk,
> unpa
It seems that urrlib2 default redirection does not allow me to handle
Cookies. Service I'm trying seems to use IP switcher and session id's
with cookies. After successful login it changes session id
(PD-H_SESSION-ID) in 302 Moved temporarily. Urllib2 is so clever that it
handles redirection but
"houbahop Thank you everyone, but I still not understand why such a comon feature like
passing parameters byref that is present in most serious programming
languages is not possible in a clean way,here in python.
I have the habit to never use globals as far as possible and this involve
that my m
> duane> I'm looking for a stand alone email program which is not
> duane> browser based. I simply want to write, send and receive
> duane> email without accessing the internet. Is Python 3.0 that
> duane> kind of program? I'd appreciate your response.
> I'm a little confused by
Would a parrot on it's back be better?
adil
On Mon, 13 Dec 2004, Alex Stapleton wrote:
> Well the most well known Flying Circus snake related sketch is probably
> the one eyed trouser snake one, which is er-, probably less than a good
> idea for a logo. The Snake with some sort of Monty Pytho
Fuzzyman wrote:
Steve Holden wrote:
Fuzzyman wrote:
If you're determined enough there are instructions here :
http://www.vrplumber.com/programming/mstoolkit/
These will get you the Visual Studio 7 tools (free releases of) and
tell you how to configure distutils to use it.
Hefty downloads though, d
Op 2004-12-12, Tim Peters schreef <[EMAIL PROTECTED]>:
>
> I think you'd have to ask Brett (who did most of the work on
> dummy_thread and dummy_threading). It doesn't really matter, though:
> it's a general truth that starting a thread as a side effect of
> importing is a recipe for deadlock, an
Thanks Diez,
Obvious when you put it that way...
--
http://mail.python.org/mailman/listinfo/python-list
Yo.
Why can't we __setitem__ for tuples?
The way I see it is that if we enable __setitem__ for tuples there
doesn't seem to be any performance penalty if the users don't use it
(aka, python performance independent of tuple mutability).
On the other hand, right now we have to use a list if we want t
Hello NG,
I'm quite new to Python and I don't know if this is a FAQ (I can't
find it) or an obvious question. I'm using the RE module in python, and I
would like to be able to contruct something like the Window$ "Find Files Or
Folders" engine. As the Window$ users know, you can filter the fi
Donnie Leen wrote:
I had tried already, the doesn't contain the sourcecode.
In python2.3.3, the release pakage contained sourcecode is Python-2.3.3.tar.
Rhubarb. All you had to do was follow Fredrik's instructions.
Since they didn't appear to be explicit enough for you, search in the
page he names
hi,
I want to transfer 0 bit and 1 bit in order with pyserial.But pyserial only
send string data.
Can anyone help me?
Sorry about my english..
_
Depolama alani sikintisindan kurtulun - hemen Hotmail'e üye olun!
http://odeme.hotmail
Luis M. Gonzalez wrote:
Hey Dimitri,
I completely agree with you in that Python needs once for all a cool
logo.
I like your design very much, but I have a few thoughts about it:
1) I think that Python's logo should reflect its power.
Vorpal Bunny. Now, *that's* power.
If we use a mascot as its
The problem with parrots is that Perl 6's engine is called Parrot.
Although I suppose the image of a dead Parrot/snake eating a parrot etc
could be a "good" one in some peoples minds. But i'm not sure Perl
people are really the sort that you wan't to make enemies of, they are
deadly with custard
Hi !
1 byte is 8 bits. If you want to manage bits, one by one, you can rewrite a
protocol, and replace pyserial.
Have a good day
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Some addresses were rejected by the MDA fetchmail forwards to.
Reporting-MTA: dns; localhost
Final-Recipient: rfc822; [EMAIL PROTECTED]
Last-Attempt-Date: Mon, 13 Dec 2004 18:41:26 +0530 (IST)
Action: failed
Status: 3.0.0
Diagnostic-Code: [EMAIL PROTECTED]: 550
<[EMAIL PROTECTED]>... User unknow
That's odd - it worked fully *both* times I've done it.
I did the *full* doenload though and downloaded the 13 CAB files
individually and did a local install.
Regards,
Fuzzy
http://www.voidspace.org.uk/atlantibots/pythonutils.html
--
http://mail.python.org/mailman/listinfo/python-list
jfj wrote:
Yo.
Why can't we __setitem__ for tuples?
The way I see it is that if we enable __setitem__ for tuples there
doesn't seem to be any performance penalty if the users don't use it
(aka, python performance independent of tuple mutability).
On the other hand, right now we have to use a list i
The example that Robert posted is protected with http BASIC
authentication (judging by the popup anyway). Part of the Jalopy
toolkit is `Login Tools` that implements a CGI Login framework that can
be plugged into any CGI with the addition of as little as 2 lines of
code.
It includes optional user
Fuzzyman wrote:
That's odd - it worked fully *both* times I've done it.
I did the *full* doenload though and downloaded the 13 CAB files
individually and did a local install.
I made the mistake of trying to use the Microsoft installer, which is
frankly a load of crap. As I write it's now canceling
"ouz as" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I want to transfer 0 bit and 1 bit in order with pyserial.But pyserial only
> send string data.
string _is_ the type one would normally use in Python for 8-bit
encoded data. If you are a Unicode purist, that's perhaps
all yo
Donnie Leen wrote:
I make program in c++ embedding python2.4 in windows, I need the
python24_d.lib to link with the debug version of my program, but i can't
find the source code to build python24_d.lib on the internet, I even can't
find python24_d.lib/python24_d.dll on the internet.
Does the python
> I want to transfer 0 bit and 1 bit in order with pyserial.But pyserial
> only send string data.
Convert your data to numbers and use module struct to create strings out of
it.
Apart from that: You can only send chunks of bits as configured in your
serial settings - e.g. 8N1 means that you will
Dylan wrote:
Here's what I'm trying to do:
- scrape some html content from various sources
The issue I'm running to:
- some of the sources have incorrectly encoded characters... for
example, cp1252 curly quotes that were likely the result of the author
copying and pasting content from Word
Finally:
Forgot a part... You need the encoding list:
encodings = [
'utf-8',
'latin-1',
'ascii',
'cp1252',
]
Christian Ergh wrote:
Dylan wrote:
Here's what I'm trying to do:
- scrape some html content from various sources
The issue I'm running to:
- some of the sources have incorrectly e
On Mon, 13 Dec 2004 22:14:03 +0800, rumours say that Qiangning Hong
<[EMAIL PROTECTED]> might have written:
>I want to know if I can write files into a directory before I actually
>perferm the write behavor. I found os.access(path, os.W_OK) but it uses
>real uid/gid to check instead of euid/egi
Hi,
I've a drawing made in an OpenGL canvas. I want to save it to a file
(preferibly PostScript format). Somebody knows how to do it?
TIA
Zunbeltz
--
Zunbeltz Izaola Azkona| wmbizazz at lg dot ehu
dotes
Materia Kondentsatuaren Fisika Saila |
Zientzia eta Teknologia F
On Sun, 12 Dec 2004 21:44:02 -0600, rumours say that John Hunter
<[EMAIL PROTECTED]> might have written:
>I'm a little confused by your request to send and receive email
>without accessing the internet, since email generally travels over the
>internet. Do you only want to handle email over an int
My method isn't elegant, but I use tempfile to create a
tempfile in the directory (inside a try block). If it
works, closing the file makes it go away.
Larry Bates
Syscon, Inc.
Qiangning Hong wrote:
I want to know if I can write files into a directory before I actually
perferm the write behavor.
[Antoon Pardon]
> I don't see why starting a thread as a side effect of importing is
> bad thread practice. Sure python doesn't cater for it, but IMO
> that seems to be python failing.
Obviously, it's bad practice in Python because it can lead to
deadlocks in Python. It's nearly tautological. Im
<[EMAIL PROTECTED]> wrote:
>but when I have Mylist in a file and I read it from the file it does
>not work as I expect.
>#
>import string
>ff=open('C:\\Robotp\\MyFile.txt','r') # read MyList from a file
>MyList=ff.read()
>for i in MyList:
>print i
>###
>I will get
>[
>'
>a
>b
>c
>'
Title: RE: A problem with list
[EMAIL PROTECTED]
#- where my MyFile.txt looks like this:
#- ['abc','def']
The issue is that in the file you don't have a list, you have text, and there is the difference in the behaviour.
>>> l = ['abc','def']
>>> for x in l:
print x
abc
def
>>>
I thought there was probably already an official mascot. There's a
little green snake with his tongue hanging out on the left of the URL
when you visit www.python.org. I see it in my Safari browser on Mac OS
X and in Firefox, but not in Internet Exploder. I thought that I had
seen a large pictur
[EMAIL PROTECTED] wrote:
The following code
##
import string
MyList=['abc','def']
for i in MyList:
print i
###
works as I expect that is I get
abc
def
but when I have Mylist in a file and I read it from the file it does
not work as I expect.
#
import string
ff=open('
[Peter Hansen]
|
| Richie Hindle wrote:
| > [Greg]
| >
| import win32api
| print "Uptime:", win32api.GetTickCount(), "Milliseconds"
| >
| > Note that in the unlikely event of your Windows machine being up for
| > longer than 2^32 ms (about 49 days), GetTickCount() will
| wrap back to
|
"jfj" wrote:
> Why can't we __setitem__ for tuples?
http://www.python.org/doc/faq/general.html#why-are-there-separate-tuple-and-list-data-types
> The way I see it is that if we enable __setitem__ for tuples there
> doesn't seem to be any performance penalty if the users don't use it
> (aka, pyth
Hi,
Just installed Python 2.4 on a machine (RH8.0 Linux) that also has python 2.3
and python 2.2 installed. The latter came with the linux distribution, the other
are compiled from source tarballs.
Comparing them gives the following unexpected result:
[EMAIL PROTECTED] test]$ /usr/bin/python pys
Hmm, i never liked the i++ syntax, because there is a value asignment
behind it and it does not show - except the case you are already used to it.
>>> i = 1
>>> i +=1
>>> i
2
I like this one better, because you see the assignment at once, it is
easy to read and inuitive usability is given - in m
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I've assembled a binary installer for the native version of PyQt. See
http://www.wordtech-software.com/pyqt-mac.html
I built it on Panther. Not sure if it will work on Jaguar, but you're
welcome to give it a try.
Michael McGarry wrote:
| Hi,
|
| I'm tr
Nick Coghlan wrote:
>> $ python -c "import foo.bar" arg
>
> This doesn't work. Any code protected by "if __name__ == '__main__':" won't
> run in this context
> (since 'foo.bar' is being imported as a module, not run as a script).
I appreciate that you're taking the time to teach me about Py
I want to use python to communicate with UART port in my PC, how can I
achieve this? any modules need to be installed?
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
Hello Andrea,
> I'm quite new to Python and I don't know if this is a FAQ (I
> can't find it) or an obvious question. I'm using the RE module
> in python, and I would like to be able to contruct something
> like the Window$ "Find Files Or Folders" engine. As the Window$
> users know, you can filte
<[EMAIL PROTECTED]> wrote:
> I'm quite new to Python and I don't know if this is a FAQ (I can't
> find it) or an obvious question. I'm using the RE module in python, and I
> would like to be able to contruct something like the Window$ "Find Files Or
> Folders" engine. As the Window$ users kno
Hi,
Summary: In my opinion, the C-like prefix
increment and decrement operators (++i and --i)
should be marked as "syntax error".
Current situation: try... (Python 2.4 (#60, ...))
>>> i = 1
>>> i
1
>>> i++
File "", line 1
i++
^
SyntaxError: invalid syntax
>>> ++i
1
>>> --i
1
>>>
Rea
Richie Hindle wrote:
> [Robert]
> > Tibia is an in-browser editor for web pages. It allows you
> to quickly
> > and easily modify the content of your web pages. It allows you to
> > directly view, edit, and save files on your webserver.
>
> Very impressive! I ran into a couple of difficulties bu
Arnold wrote:
I want to use python to communicate with UART port in my PC, how can I
achieve this? any modules need to be installed?
Thanks
pyserial is the usual solution. See http://pyserial.sourceforge.net/
regards
Steve
--
Steve Holden http://www.holdenweb.com/
Python Web Program
"Eino Mäkitalo" <[EMAIL PROTECTED]> wrote:
> It seems that urrlib2 default redirection does not allow me to handle
> Cookies. Service I'm trying seems to use IP switcher and session id's with
> cookies. After
> successful login it changes session id (PD-H_SESSION-ID) in 302 Moved
> temporarily.
Have you tried pyserial ?
Regards,
Fuzzy
--
http://mail.python.org/mailman/listinfo/python-list
Not that my opinion is worth anything in these matters, but I like the
upper-left example at http://exogen.cwru.edu/python.png the best (out
of the samples I've seen thus far). I don't like the "gear" shape, and
I think adding a coil or circle around the "head" detracts somewhat
from the look. I
Nick Coghlan wrote:
> Python could be said to pass everything by reference. You are getting caught
> more by the
> difference between mutable and immutable types, than by the distinction
> between 'pass by
> reference' and 'pass by value' that other languages have (Python actually
> uses a bl
thanks, very usefull answer.
> Immutable types (e.g. strings, numbers, tuples) are generally returned
> directly from functions, rather than returned as 'output parameters'. The
> ability to return multiple values easily (via "return a, b, c" & "x, y, z
> = myfunc()" generally eliminates the n
Martijn Faassen wrote:
> Unfortunately this is currently not near production use, and whether
> Microsoft is funding
> IronPython development is up in the air:
http://www.microsoft.com/careers/search/details.aspx?JobID=6391a54a-bfd7-4384-b18f-cecb0acf86e0
(too bad it's in seattle)
--
ht
Steve Holden wrote:
Fuzzyman wrote:
That's odd - it worked fully *both* times I've done it.
I did the *full* doenload though and downloaded the 13 CAB files
individually and did a local install.
I made the mistake of trying to use the Microsoft installer, which is
frankly a load of crap. As I writ
Jan Gregor wrote:
Hello
I found that price of += operator on string is too high in jython. For
example 5000 such operations took 90 seconds (i generated html copy of
table with 1000 rows and 5 columns). Generation of row data into separate
string and joining after lead to time 13 seconds !!!
Christian Ergh schrieb:
Ah, ok, i misunderstood you. Well, to mark it as a syntax error sounds
good, and at the Moment I would not know a case where this conflicts
with a implementation.
target = 'a='
sign = '-'
operand = '-2'
exec(target+sign+operand)
--
-
Christopher J. Bottaro wrote:
>I installed Python-2.3.4 from source...
> configure && make && make install
>
> Now I want to remove it, but make uninstall doesn't work. How do I
> uninstall it?
$ python
>>> import sys
>>> sys.executable
'/usr/somewhere/bin/python'
>>> sys.prefix
'/usr/somewhere'
Petr Prikryl wrote:
Summary: In my opinion, the C-like prefix
increment and decrement operators (++i and --i)
should be marked as "syntax error".
My guess is that the impact of it would be nil.
This is python, there are no prefix or postfix
operators. That is very easy to remember. Just because
one
[Peter Hanson]
> The real solution, in spite of the dozen alternatives we've
> now produced, seems to be to use the win32pdh library
> to access the "System"-> "System Up Time" value. It
> claims to return an 8-byte value, which likely doesn't
> wrap quite so soon. (And yes, remarkably, with the
So Python installs one file and two dirs (containing files/dirs). If I
delete all three of those, it will delete all installed modules as well,
right? I mean, when I installed cx_Oracle, it only installed files in
$PYTHONDIR/lib/python2.3 and $PYTHONDIR/include/python2.3 right?
Thanks for the he
Hi,
We are trying to build a Database of all Open Source Bounties, Call for
Tenders (projects), and Grants.
Other than the Bounties provided by Mark Shuttleworth is anyone
available of any on other sites?
Here is a link to our DB:
http://www.opensourcexperts.com/bountylist.html
Cheers,
Mark
--
On Mon, 13 Dec 2004 16:42:28 +0100, rumours say that "Petr Prikryl"
<[EMAIL PROTECTED]> might have written:
>Summary: In my opinion, the C-like prefix
>increment and decrement operators (++i and --i)
>should be marked as "syntax error".
[snip of lots of explanations]
I am +0 on this.
However, I
At the risk of beating a dead horse, but you really should consider
using SMTP instead if you are really going to be sending a lot
of messages.
The problem is that doesn't work in more complicated configurations
such as when authentication and/or SSL have to happen, not to mention
the issue of conf
if I change fileText = fileLike.read() to fileText =
fileLike.readLines().
It works for a while before it gets killed of out of memory.
These are huge files. My goal is to analyze the content of the gzip
file in the tar file without having to un gzip. If that is possible.
--
http://mail.python
Phil Thompson wrote:
>> Michael McGarry wrote:
>>> Hi,
>>>
>>> How do I convert from a qt.QString to a Python string?
>>>
>>> Michael
>> Apparently the ascii() method of QString does this. (I answered my own
>> question).
>
> Or use the str() builtin.
>
> Phil
unicode() is even better because Q
On Mon, 2004-12-13 at 11:30, houbahop -->
> thanks, very usefull answer.
>
>
> > Immutable types (e.g. strings, numbers, tuples) are generally returned
> > directly from functions, rather than returned as 'output parameters'. The
> > ability to return multiple values easily (via "return a, b, c
Andrey Ivanov wrote:
[Peter Hanson]
For the life of me, however, I can't figure out how to do it.
Here's how. :-)
=
import win32pdh
query = win32pdh.OpenQuery()
counter = win32pdh.AddCounter(query, r"\System\System Up Time")
Argh! A _
There is actually a workaround. You're using Simple MAPI which has a
nice easy interface. The confirmation dialogs are only for Simple MAPI.
Using Extended MAPI can work around the problem but its a lot more tricky.
See the initial discussion here:
http://aspn.activestate.com/ASPN/Mail/Message/P
Lucas Hofman wrote:
Anyone who understands what is going on?
It is difficult to measure a speedup that might be
well within your measurement error.
Run the same pystone benchmark repeatedly and
see what variation you get.
Istvan.
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
I'm seeking a read method that will block until new data is available. Is
there such a python function that does that?
Thanks,
Steven Howe
--
http://mail.python.org/mailman/listinfo/python-list
Jeffrey Maitland writes:
[EMAIL PROTECTED] writes:
Hi,
suppose I am reading lines from a file or stdin.
I want to just "peek" in to the next line, and if it starts
with a special character I want to break out of a for loop,
other wise I want to do readline().
Is there a way to do this?
for
Michael McGarry wrote:
I intend to use a scripting language for GUI development and front end
code for my simulations in C. I want a language that can support SQL,
Sockets, File I/O, and shell interaction.
In my experience, Python is definitely much more suitable than Perl
for the first four area
For the first time, I am trying to compile a matplotlib installer for
win32 / python2.4 under cygwin. I tested this earlier with one of the
pre-release candidates and had no troubles. But when I compile with
python2.4, I get the following error when I try and import my
extension code
the proc
Steven Bethard <[EMAIL PROTECTED]> writes:
> Brian Beck wrote:
> > http://exogen.cwru.edu/python2.png
>
> Oooh, I like this one. Very cool!
>
Its visually stunning. But under Windows gears show up in the DLL
and batch file icons.
Lenard Lindstrom
<[EMAIL PROTECTED]>
--
http://mail.python.org/
1 - 100 of 302 matches
Mail list logo