I'm trying to pack two characters into a single byte, and the shifting
in Python has me confused.
Essentially, it should be possible to use a 'packed string' format in
Python, where as long as the characters you're sending are in the ASCII
range 0 to 127, two will fit in a byte.
Here's the code.
On Wed, 23 Feb 2005 21:32:52 -0700, Steven Bethard wrote:
> [snip]
> Another possibility is to play around with *args:
>
> class Vector3d(object):
> def __init__(self, *args):
> if not args:
> # constructor with no arguments
> elif len(args) == 6:
>
> As stated in the on-line WalkThrough, the information there was written for
> an older version of the program.
>
Hi,
I understand, but the walkthrough I'm doing comes from the doc folder
of the latest windows package. I thought that the walkthrough were
updated to fit the newest version. Than
QOTW: "Who's 'Guido'?" -- Ilias Lazaridis
"I know this document. It has no relevance to me." -- Ilias
Lazaridis, on http://www.catb.org/~esr/faqs/smart-questions.html >
"Nobody asked them to do this (AFAIK), it's more that nobody could
_stop_ them from doing it." -- timbot, on the work of Jason
tom wrote:
> On Wed, 23 Feb 2005 19:04:47 -0600, Andy Leszczynski wrote:
>
> > It is on Windows, Linux, Python 2.3:
> >
> > [GCC 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk)] on linux2 Type "help",
> > "copyright", "credits" or "license" for more information.
> > >>> a=1.1
> > >>> a
> > 1.1
[EMAIL PROTECTED] wrote:
When I specify an source encoding such as:
# -*- coding: GBK -*-
or
# -*- coding: GB2312 -*-
as the first line of source, I got the following error:
SyntaxError: 'unknown encoding: GBK'
Does this mean Python does not support GBK/GB2312? What do I do?
GB2312 is supported in
2.4 support gb2312, gbk, gb18030 and cjk codec.
you can also move these things to 2.3.
On Wed, 23 Feb 2005 22:34:02 -0600, Steve Holden <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
>
> > When I specify an source encoding such as:
> >
> > # -*- coding: GBK -*-
> > or
> > # -*- coding: GB
John M. Gabriele wrote:
I know that Python doesn't do method overloading like
C++ and Java do, but how am I supposed to do something
like this:
This was just discussed. See
http://tinyurl.com/6zo3g
Kent
- incorrect
#!/usr/bin/python
class Point3d:
This was discussed only days ago:
http://groups-beta.google.com/group/comp.lang.python/browse_thread/thread/41a6c0e1e260cd72/fc1c924746532316?q=multiple+constructors+python&_done=%2Fgroups%3Fq%3Dmultiple+constructors+python%26&_doneTitle=Back+to+Search&&d#fc1c924746532316
-Don
John M. Gabriele wrot
John M. Gabriele wrote:
class Vector3d:
def __init__(self):
...
def __init__(self, x_from, y_from, z_from, x_to, y_to, z_to):
...
def __init__(self, point_from, point_to):
...
def __init__(self, same_as_this_vec):
...
My prefer
[EMAIL PROTECTED] wrote:
When I specify an source encoding such as:
# -*- coding: GBK -*-
or
# -*- coding: GB2312 -*-
as the first line of source, I got the following error:
SyntaxError: 'unknown encoding: GBK'
Does this mean Python does not support GBK/GB2312? What do I do?
Well, *your* Python mi
Paddy wrote:
I do in fact have the case you mention. I am writing a module that will
manipulate functions of global variables where the functions are
defined in another module.
Would it be possible to have your functions take arguments instead of globals? That would seem to be
a better design.
Ke
Use the dir() function
dir(myClass)
returns a list of strings
-Dan
--
http://mail.python.org/mailman/listinfo/python-list
When I specify an source encoding such as:
# -*- coding: GBK -*-
or
# -*- coding: GB2312 -*-
as the first line of source, I got the following error:
SyntaxError: 'unknown encoding: GBK'
Does this mean Python does not support GBK/GB2312? What do I do?
-
narke
--
http://mail.python.org/mailm
Awesome, wrapping that into a function:
def getargs(func):
numArgs = func.func_code.co_argcount
names = func.func_code.co_varnames
return names[:numArgs]
short, concise, and it works :)
variables declared inside the function body are also in co_varnames
but after the arguments only it s
Thank you All !
--
http://mail.python.org/mailman/listinfo/python-list
Is there a canonical way of iterating over the lines of a file that
are null-separated rather than newline-separated? Sure, I can
implement my own iterator using read() and split(), etc., but
considering that using "find -print0" is so common, it seems like
there should be a more cannonical way.
On Wed, 23 Feb 2005 19:04:47 -0600, Andy Leszczynski wrote:
> It is on Windows, Linux, Python 2.3:
>
> [GCC 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk)] on linux2 Type "help",
> "copyright", "credits" or "license" for more information.
> >>> a=1.1
> >>> a
> 1.1001
> >>>
> >>>
> >>>
>
> Is it normal?
Yes. The interpreter prints back the repr of a, which reflects the
imprecision inherent in floats. If you want '1.1', use the string
returned by the str function.
>>> a = 1.1
>>> a
1.1001
>>> repr(a)
'1.1001'
>>> str(a)
'1.1'
Michael
--
Michael D. Hartl
I know that Python doesn't do method overloading like
C++ and Java do, but how am I supposed to do something
like this:
- incorrect
#!/usr/bin/python
class Point3d:
pass
class Vector3d:
"""A vector in three-dimensional cartesian space."""
In article <[EMAIL PROTECTED]>,
Leif B. Kristensen <[EMAIL PROTECTED]> wrote:
>Danny skrev:
>
>> Does anyone know of a good python tutorial?
>> I was also looking for some non-trivial projects to do in python.
>
>There's a lot of projects on Sourceforge that are written in Python,
>where you're fr
Thanks ya.It helped me a lot
--
http://mail.python.org/mailman/listinfo/python-list
I'm not familiar with Exchange log files but this can be done rather
easily assuming the log file is a flat text file (which usually these
are not-- like NT event logs).
search_str = "words and phrases"
data = open(LogFile, 'r').read()
if search_str in data:
flag = 1
If they are binary files,
?
--
http://mail.python.org/mailman/listinfo/python-list
In article <[EMAIL PROTECTED]>, Andy Leszczynski wrote:
> >>> a=1.1
> >>> a
> 1.1001
> >>>
>
>
> Is it normal?
Yes, for floating-point numbers. This is due to inherent imprecision
in how floats are represented in hardware. If you can live with being
a touch off that many decimal plac
Nick Vargish wrote:
Ilias Lazaridis <[EMAIL PROTECTED]> writes:
Guido is the one, who should care by time about the status of the
python-community.
That one crashed my parser.
Sounds like a new Ministry song - "Guido Crashed my Parser". Could be
the sequel to "Jesus Built My Hot Rod".
--
http:/
On 23 Feb 2005 02:37:48 -0800, DE <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Some long time ago, I used to use Tcl/Tk. I had an tcl embedded into my
> app.
>
> The coolest thing was however, I was able to attach to the interpreter
> (built in to my app) via a tcl shell in which I could type in regul
Michael Spencer wrote:
> [EMAIL PROTECTED] wrote:
> > Kent Johnson wrote:
> >
> >>[EMAIL PROTECTED] wrote:
> >>
> >>>p.s. the reason I'm not sticking to reversed or even reverse :
> >
> > suppose
> >
> >>>the size of the list is huge.
> >>
> >>reversed() returns an iterator so list size shouldn't b
Dan Eloff wrote:
How can you determine that func2 will only accept
bar and zoo, but not foo and call the function with
bar as an argument?
Let Python answer the question for you:
>>> def func2(bar='a', zoo='b'):
... pass
...
>>> for name in dir(func2):
... print '%s: %s' % (name, getattr(func2, na
Jacques Daussy wrote:
Hello
How can I transfert information between a JAVA application and a python
script application. I can't use jython because, I must use python
interpreter.I think to socket or semaphore, but can I use it on Windows
plateform ?
thanks a lot
jack
Well, it all depends on
In article <[EMAIL PROTECTED]>,
Andy Leszczynski <[EMAIL PROTECTED]> wrote:
>It is on Windows, Linux, Python 2.3:
>
>[GCC 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk)] on linux2
>Type "help", "copyright", "credits" or "license" for more information.
> >>> a=1.1
> >>> a
>1.1001
> >>>
>
>
>Is
In article <[EMAIL PROTECTED]>,
Robin Becker <[EMAIL PROTECTED]> wrote:
>DE wrote:
>> Hello,
>>
>> Some long time ago, I used to use Tcl/Tk. I had an tcl embedded into my
>> app.
>>
>> The coolest thing was however, I was able to attach to the interpreter
>> (built in to my app) via a tcl shell
In article <[EMAIL PROTECTED]>,
Dave Brueck <[EMAIL PROTECTED]> wrote:
>Tor Erik Sønvisen wrote:
>>>From my Python-program I spawn a new process. When using P_NOWAIT spawnl
>> returns the pid but in windows it returns a process handle.
>> Later I want to kill this process. How can I do this when
It is on Windows, Linux, Python 2.3:
[GCC 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> a=1.1
>>> a
1.1001
>>>
Is it normal?
Andy
--
http://mail.python.org/mailman/listinfo/python-list
Leif wrote:
" If globals were deeply substituted when using eval, the program would
presumably print "42\n24", which would be far from intuitive. If you
limit the deep substitution to functions in the same module, you're
creating a confusing special case. "
I guess I need outside opinions on what
Hello readers,
my name is Joannis Courtis and I study computer science in
Frankfurt/Germany. I hope you can help me, because I try to find a script
that helps me to filter logfiles which I received from the Microsoft
Exchange Server.
Can you help me, where I can find a script in Python.
Regards J
Kent Johnson wrote:
Could this be handled with a try / except in unicode()? Something like
this:
Perhaps. However, this would cause a significant performance hit, and
possbibly undesired side effects. So due process would require that the
interface of __unicode__ first, and then change the actual
You can take a dictionary of key/value pairs and pass it to a function as
keyword arguments:
def func(foo,bar):
print foo, bar
args = {'foo':1, 'bar':2}
func(**args)
will print "1 2"
But what if you try passing those arguments to a function
def func2(bar,zoo=''):
print bar, zoo
H
Jacques Daussy wrote:
Hello
How can I transfert information between a JAVA application and a python
script application. I can't use jython because, I must use python
interpreter.I think to socket or semaphore, but can I use it on Windows
plateform ?
Jython has an interpreter and Windows has sock
Thanks everyone!!:-) Nicks solution coupled with John's modifications
worked great for 2.2!! Yipeee...!!:):)
--
http://mail.python.org/mailman/listinfo/python-list
[Raghul]
>>> Is it posssible to read only the new messages or unread
>>> messages using imaplib in python? If it is possible pls
>>> specify the module or give a sample code.
[Tony Meyer]
>> This will print out the first 20 chars of each undeleted message.
>> You should be able to figure out how
On Wed, Feb 23, 2005 at 10:07:19PM +0100, "Martin v. Löwis" wrote:
> So we have three options:
> 1. skip this string, only return the ones that can be
>converted to Unicode. Give the user the impression
>the file does not exist.
> 2. return the string as a byte string
> 3. refuse to listdir
On Wed, 23 Feb 2005 20:15:47 +, Phil Jackson
<[EMAIL PROTECTED]> wrote:
> Tom Willis <[EMAIL PROTECTED]> writes:
>
> > How are the expert pythoneers dealing with config files?
>
> You could use the cPickle module if you don't mind your config files
> being unreadable by humans. There is also
In article <[EMAIL PROTECTED]>,
Ktm <[EMAIL PROTECTED]> wrote:
> I don't have the same behaviour with two codes who are quite the same,
> one using SSL, the other not. I tested the programs with stunnel and
> telnet , respectively.
[... program source ...]
> The server blocks on recv here.
SSL
aurora <[EMAIL PROTECTED]> wrote:
> It was discussed in the last Bay Area Python Interest Group meeting.
>
> Thursday, February 10, 2005
> Agenda: Developing Responsive GUI Applications Using HTML and HTTP
> Speakers: Donovan Preston
> http://www.baypiggies.net/
>
> The author has a component Li
Martin v. LÃwis wrote:
Steven Bethard wrote:
Yeah, I agree it's weird. I suspect if someone supplied a patch for
this behavior it would be accepted -- I don't think this should break
backwards compatibility (much).
Notice that the "right" thing to do would be to pass encoding and errors
to __un
John Willems wrote:
Interesting GUI developments, it seems. Anyone developed a "Ajax"
application using Python? Very curious
thx
(Ajax stands for:
XHTML and CSS;
dynamic display and interaction using the Document Object Model;
data interchange and manipulation using XML and XSLT;
asynchronous d
In message <[EMAIL PROTECTED]>, Ilias Lazaridis
<[EMAIL PROTECTED]> writes
Stephen Kellett wrote:
[...]
Who's Guido?
Guido is the one, who should care by time about the status of the
python-community.
Who is care by time?
--
Stephen Kellett
Object Media Limitedhttp://www.objmedia.demon.co.uk
It was discussed in the last Bay Area Python Interest Group meeting.
Thursday, February 10, 2005
Agenda: Developing Responsive GUI Applications Using HTML and HTTP
Speakers: Donovan Preston
http://www.baypiggies.net/
The author has a component LivePage for this. You may find it from
http://nevow.
Serge Orlov wrote:
Shouldn't os.path.join do that? If you pass a unicode string
and a byte string it currently tries to convert bytes to characters
but it makes more sense to convert the unicode string to bytes
and return two byte strings concatenated.
Sounds reasonable. OTOH, this would be the onl
I'm currently using the msnp.py module in a project. We are trying to
implement a group chats feature. Has anyone had any success in doing
this or know how to do this? We have it doing single chats, but we
can't figure out how MSN is adding the multiple invites. Any help
would be greatly apprec
"Martin v. Löwis" wrote:
>> My goal is to build generalized code that consistently works with all
>> kinds of filenames.
>
> Then it is best to drop the notion that file names are
> character strings (because some file names aren't). You
> do so by converting your path variable into a byte
> string
Interesting GUI developments, it seems. Anyone developed a "Ajax"
application using Python? Very curious
thx
(Ajax stands for:
XHTML and CSS;
dynamic display and interaction using the Document Object Model;
data interchange and manipulation using XML and XSLT;
asynchronous data retrieval usi
Kenneth Pronovici wrote:
1) Why LC_ALL has any effect on the os.listdir() result?
The operating system (POSIX) does not have the inherent notion
that file names are character strings. Instead, in POSIX, file
names are primarily byte strings. There are some bytes which
are interpreted as charact
Kenneth Pronovici wrote:
I think that I can solve my problem by just converting any unicode
strings from configuration into utf-8 simple strings using encode().
Using this solution, all of my existing regression tests still pass, and
my code seems to make it past the unusual directory.
See my other
Steven Bethard wrote:
Yeah, I agree it's weird. I suspect if someone supplied a patch for
this behavior it would be accepted -- I don't think this should break
backwards compatibility (much).
Notice that the "right" thing to do would be to pass encoding and errors
to __unicode__. If the string o
Paddy wrote:
I had to do as you suggest but I was thinking either it was a kludge,
and there should be a 'deep' substitution of globals, or that there
was a good reason for it to work as it does and some magician would
tell me.
If there was deep substitution of globals, how would functions importe
Hi -
This is the "vacation" program; I'm working for my owner, Ben. The account to
which you have sent your mail is going to be discontinued at at the end of July
(Yahoo's mail service has deteriorated well past "abysmal" into "nightmarishly
bad", and the trend shows no sign of stopping). Pleas
As stated in the on-line WalkThrough, the information there was written for
an older version of the program.
"Deltones" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi all,
>
> I'm just getting into Python/wxPython/Pythoncard and I'm trying the
> tutorial from this page:
> http:/
Horst Gutmann napisał(a):
Don't use minidom or convert HTML4 to XHTML and change declaration of
doctype.
This was just a bad example :-) I get the same problem with XHTML in the
doctype. The funny thing here IMO is, that the special chars are simply
removed. No warning, no nothing :-(
As Fredri
Hello
How can I transfert information between a JAVA application and a python
script application. I can't use jython because, I must use python
interpreter.I think to socket or semaphore, but can I use it on Windows
plateform ?
thanks a lot
jack
--
http://mail.python.org/mailman/listinfo/p
Tom Willis <[EMAIL PROTECTED]> writes:
> How are the expert pythoneers dealing with config files?
You could use the cPickle module if you don't mind your config files
being unreadable by humans. There is also the shlex module for more
powerful config file needs:
http://docs.python.org/lib/module
Thomas Guettler wrote:
> Is it possible to change future python versions, that
> assert accept parenthesis?
It's possible, but extremely unlikely that it will ever happen. assert
is not a function, but a statement (like print). Statements don't use
parentheses; when you use parentheses, it con
Ilias Lazaridis <[EMAIL PROTECTED]> writes:
> Guido is the one, who should care by time about the status of the
> python-community.
That one crashed my parser.
> Thank's for every bit of contribution, which has made this thread an
> worthfull insight into the python-community.
To really get a s
Thanks Kent for your reply.
I had to do as you suggest but I was thinking either it was a kludge,
and there should be a 'deep' substitution of globals, or that there was
a good reason for it to work as it does and some magician would tell
me.
Oh, the third reason could be that it was first implimen
Hello,
I don't have the same behaviour with two codes who are quite the same,
one using SSL, the other not. I tested the programs with stunnel and
telnet , respectively.
Here are the first code :
---
Scott David Daniels <[EMAIL PROTECTED]> writes:
> Thomas Guettler wrote:
> You can write portable programs (if you test across platforms). The
> only truly portable programs in any language are abstract. Once you
> start dealing with I/O and the real world, you inevitably have to face
> issues
Hi
thanks for the answer. Coming from C and C++ this behaviour wasn't
really obvious to me. I still love Python though :-) Most elegant
language I've ever seen.
Bart
--
http://mail.python.org/mailman/listinfo/python-list
Fredrik Lundh <[EMAIL PROTECTED]> wrote:
> because running a script isn't the same thing as importing it. try adding
> "print __name__" lines before your other print statements so you can see
> who's printing what.
>
> > Is there more than one global space?
>
> in this case, there are more modu
A quick look at the site, and following the link to
the XEphem site reveals that the Windows port
of XEphem uses Cygwin. AFAIK, that's not
compatible with the usual CPython implementation.
Again, AFAIK, you'll either have to use a Python
port compiled under Cygwin, or you'll have to
find a Windows
Raghul said the following on 2/22/2005 11:24 PM:
Is it posssible to read only the new messages or unread messages using
imaplib in python? If it is possible pls specify the module or give a
sample code.
Thanks in advance
import imaplib, sys
conn = imaplib.IMAP4_SSL(host='mail.example.com')
# or co
In Python 2.4, use the new subprocess module for this. It subsume the
popen* methods.
Hi,
I'm a newbie, so please be gentle :-)
How would I run a shell command in Python?
Here is what I want to do:
I want to run a shell command that outputs some stuff, save it into a
list and do stuff with th
Simon John - Feb 13, 4:24 pm:
> After building with MSVC6 (Python 2.3.5 and 2.4 versions) I've
noticed
> that the ToolTips don't seem to work in the GPL version.
Free (GPL) Qt3 port to Windows is not complete. They indeed need help
to conclude their job. And as Trolltech is not going to release
[EMAIL PROTECTED] wrote:
Kent Johnson wrote:
[EMAIL PROTECTED] wrote:
p.s. the reason I'm not sticking to reversed or even reverse :
suppose
the size of the list is huge.
reversed() returns an iterator so list size shouldn't be an issue.
What problem are you actually trying to solve?
Kent
Oh, you
Simon John - Feb 10, 11:51 am:
> I've just read the Qt4 GPL for Windows will only support gcc (and
maybe
> MinGW) anyway, not BCC or VisualC++ (or it's free equivalents), so it
> looks like it would be a daunting task to actually build PyQt
Why? I think that it is fair. Why a Free Software dev
Graham said unto the world upon 2005-02-23 09:42:
Hi. I'm looking for a documentation generation tool (such as pydoc,
epydoc, happydoc, etc.) that will allow me to filter what it includes
in
it's output.
I only want the reader to know about classes and methods in my package
if if the classes have d
On Wed, Feb 23, 2005 at 01:03:56AM -0600, Kenneth Pronovici wrote:
[snip]
> Today, I accidentally ran across a directory containing three "normal"
> files (with ASCII filenames) and one file with a two-character unicode
> filename. My code, which was doing something like this:
>
>for entry
Hello
Sorry for not being too exact in my request!
>If the data you want to pass is structured then you might consider
>XML-RPC which is a cross platform way of passing structured data
XML-RPC looks like something very suitable for my needs. It seems
Python handles the remote procedure calls ver
Hello
>Python is perfectly capable of generating HTML. You don't have to demean
>yourself by working in PHP.
Thanks for the tip about using Python instead of PHP to generate web
pages. I may follow it.
Nils Emil
--
My reply-address is valid. www.bios-flash.dk
Min svar-adresse er gyldi
Stephen Kellett wrote:
[...]
Who's Guido?
Guido is the one, who should care by time about the status of the
python-community.
-
I've send an addition CC of this message to the python-foundation, which
will hopefully take some steps to improve the build-system.
[EVALUATION] - E02 - Support for
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi there.
I'm making a talker's base in python and i'm with a serious bug in it.
Everytime a client connects to the talker and presses for ex. the arrow
key lets say twice, the following characters appears in it's screen:
Ë[[AË[[A, if he presses enter
In message <[EMAIL PROTECTED]>, George Sakkis
<[EMAIL PROTECTED]> writes
"Ilias Lazaridis" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Grant Edwards wrote:
[...]
> Um, you realize that nobody in this thread takes you the least
> bit seriously and people are just poking you with a
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
A second request for help...
Has anyone run the PyEphem ephemeris application under WinXP?
http://rhodesmill.org/brandon/projects/pyephem.html
I have compiled it with Visual Studio 6 and it crashes Python with a
simple
>>> import ephem
>>> ephem.
Tor Erik Sønvisen wrote:
From my Python-program I spawn a new process. When using P_NOWAIT spawnl
returns the pid but in windows it returns a process handle.
Later I want to kill this process. How can I do this when I only have the
process handle?
Try ctypes - if it's really a Windows handle, the
"Ilias Lazaridis" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> Grant Edwards wrote:
> [...]
> > Um, you realize that nobody in this thread takes you the least
> > bit seriously and people are just poking you with a stick to
> > watch you jump?
>
> jump:
>
> [EVALUATION] - E02 - Sup
Hi all,
I'm just getting into Python/wxPython/Pythoncard and I'm trying the
tutorial from this page:
http://pythoncard.sourceforge.net/walkthrough1.html
Is it me who's totally dense or there's some sort of confusion with
this tutorial?
Here's what is said in the tutorial:
Open the file starter1
Please consider my submission also (Python 2.3-compatible).
-- Paul McGuire
.import sets
.
.input = [[1, 2], [3, 4], [2, 3], [4, 5]]
.input = [[1, 2], [3, 4], [4, 5]]
.input = [[1, 2],[2,1], [3, 4], [4, 5],[2,2],[2,3],[6,6]]
.
.def merge(pairings):
.ret = []
.f
> "Colombes" == Colombes <[EMAIL PROTECTED]> writes:
Colombes>Now I only need to figure out how to install the
Colombes> correct "Numeric" module(s). I'm making progress,
Colombes> almost have my home laptop fully capable with the
Colombes> MatLab-like (PyLab) graphs, plo
* * * * * * * * * * * * * * * Vexira ALERT * * * * * * * * * * * * * * *
This version of Vexira MailArmor is licensed and full featured.
Vexira has detected the following in a mail from your address:
Worm/NetSky.Z worm
The mail was not delivered.
Your computer may be infected with
Kent Johnson wrote:
Steven Bethard wrote:
No, this is documented behavior[1]:
"""
unicode([object[, encoding [, errors]]])
...
For objects which provide a __unicode__() method, it will call
this method without arguments to create a Unicode string. For all
other objects, the 8-bit string v
Greg Lindstrom wrote:
I'm running Python 2.3 on a windows box and would like to use PIL to
superimpose text over an existing pgn image. I have no problem getting
the text on the image but can not figure out how to manage fonts. How
to set the font style and size. From reading the archives I s
I need to access a MSSQL database (MS-Sql, not MySQL!)and would very
much like to use mssql-0.09.tar.gz which is available from
http://www.object-craft.com.au/projects/mssql/download.html
Unfortunately the binary for Python-2.4 isn't available yet and I'd
hate to step back to a previous version.
Yeah.. Tkinter is nice. Wzx is just as easy though, but scales better
because it's built on wx.
Regards,
Fuzzy
http://www.voidsapce.org.uk/python/index.shtml
--
http://mail.python.org/mailman/listinfo/python-list
I ran into this strange behavior when noticing some missing spaces in
some debugging output. It seems that somewhere in the print
processing, there is special handling for string contents that isn't
affected by changing how a string is represented when printed
(overriding __str__).
For example, g
Sandman wrote:
> How would I run a shell command in Python?
>
> Here is what I want to do:
> I want to run a shell command that outputs some stuff, save it into a
> list and do stuff with the contents of that list.
There's a Python Cookbook example that should fit nicely with what
you're trying
Propylon is looking to recruit people with Python or Zope experience
for several projects that we are involved in.
We are seeking candidates with varying amount of experience in Python
and all who are interested in learning in Python are encouraged to apply
for the positions.
Experience with Zope
I am looking for examples on how to write a Socks-4 client example
using the Twisted framework. Has anybody attempted this or aware of
examples?
Thanks,
Daniel
--
http://mail.python.org/mailman/listinfo/python-list
Doh, use the search Luke:
http://www.wellho.net/forum/Programming-in-Python-and-Ruby/Running-shell-commands-from-Python.html
Seems like popen is the way to go.
S
--
http://mail.python.org/mailman/listinfo/python-list
Am Wed, 23 Feb 2005 07:00:31 -0800 schrieb Sandman:
> Hi,
>I'm a newbie, so please be gentle :-)
>
> How would I run a shell command in Python?
[cut]
> Is popen the answer? Also, where online would I get access to good
> sample code that I could peruse?
Yes, popen is the answer. I recommend
Grant Edwards wrote:
[...]
Um, you realize that nobody in this thread takes you the least
bit seriously and people are just poking you with a stick to
watch you jump?
jump:
[EVALUATION] - E02 - Support for MinGW Open Source Compiler
Essence:
http://groups-beta.google.com/group/comp.lang.python/msg/
1 - 100 of 146 matches
Mail list logo