it as a daemon (on Unix).
Enjoy,
--Irmen de Jong.
P.S. if you want to see it in action, visit www.promozilla.nl
(the site is all Dutch though)
--
http://mail.python.org/mailman/listinfo/python-announce-list
Support the Python Software Foundation:
http://www.python.org/psf/donations.html
I've released a new version of Frog, a web log
aka blogging server written in 100% python.
Get version 1.4 from http://snakelets.sourceforge.net/frog/index.html
(note: storage file format has been changed since v1.3)
Some of the more interesting features are:
- multi user
- no database needed
.
For more info, see: http://snakelets.sourceforge.net/frog/
Have fun!
--Irmen de Jong
P.S. if you don't already have Snakelets 1.42 installed, you can download
the 'frogcomplete' package. It includes everything to get Frog up and running.
--
http://mail.python.org/mailman/listinfo/python-announce
' chapter
in the manual, and/or visit Pyro's todo wiki page:
http://www.razorvine.net/python/PyroTodoList
Thanks for your support, and I'm looking forward to release a
final Pyro-3.6 version soon !
Sincerely,
--Irmen de Jong
PS: Sourceforge's shell access is down at the moment so I can't
to recent WxPython API, deprecation warning is gone
Have fun, and thanks for your interest, support, and feedback!
--Irmen de Jong
--- What is Pyro?
Pyro is an acronym for PYthon Remote Objects. Pyro is an advanced and powerful
Distributed Object Technology system written entirely in Python
. Please check the changes chapter in the manual for details:
http://pyro.sourceforge.net/manual/12-changes.html#latest
Have fun, and thanks for your interest, support, and feedback!
--Irmen de Jong
** What is Pyro?
Pyro is an acronym for PYthon Remote Objects. Pyro is an advanced and powerful
://sourceforge.net/projects/pyroor from PyPI
http://pypi.python.org/pypi/Pyro/
Enjoy,
Irmen de Jong
--
http://mail.python.org/mailman/listinfo/python-announce-list
Support the Python Software Foundation:
http://www.python.org/psf/donations/
--
Detailed info here: http://www.razorvine.net/python/Pyro
(a page about migration from Pyro 3.x is included)
Download Pyro 4.0 here: http://www.xs4all.nl/~irmen/pyro4/download/
License: MIT software license.
Enjoy,
Irmen de Jong
--
http://mail.python.org/mailman/listinfo/python
- added @Pyro.callback decorator to be able to raise callback exceptions
locally as well as on the caller side.
Enjoy,
Irmen de Jong
--
http://mail.python.org/mailman/listinfo/python-announce-list
Support the Python Software Foundation:
http://www.python.org/psf/donations/
.
Pyro is designed to be simple (but powerful) so it's only a manner of
adding a few lines of code to ignite your objects.
Simple example: http://www.razorvine.net/python/Pyro/Example
Enjoy,
Irmen de Jong
--
http://mail.python.org/mailman/listinfo/python-announce-list
Support the Python
: http://pypi.python.org/pypi/Pyro/
Enjoy,
Irmen de Jong
--
http://mail.python.org/mailman/listinfo/python-announce-list
Support the Python Software Foundation:
http://www.python.org/psf/donations/
:http://www.xs4all.nl/~irmen/pyro3/
Enjoy,
Irmen de Jong
PS. Pyro 3.x is the old version that is only getting bug fixes. For a modern
version
that has new features such as Python 3.x compatibility, you'll have to switch
to Pyro4.
--
http://mail.python.org/mailman/listinfo/python-announce
ofcourse! :-)
Enjoy,
Irmen de Jong
--
http://mail.python.org/mailman/listinfo/python-announce-list
Support the Python Software Foundation:
http://www.python.org/psf/donations/
, including
Python 2.x,
Python 3.x, IronPython, Jython and Pypy.
Enjoy,
Irmen de Jong
--
http://mail.python.org/mailman/listinfo/python-announce-list
Support the Python Software Foundation:
http://www.python.org/psf/donations/
is written in
100% pure
Python and therefore runs on many platforms and Python versions, including
Python 3.x.
Enjoy,
Irmen de Jong
--
http://mail.python.org/mailman/listinfo/python-announce-list
Support the Python Software Foundation:
http://www.python.org/psf/donations/
(but probably works in visual studio too).
I've done quite some work to make this a stable and usable piece of software but
consider it an experiment, or a beta version. I am quite interested in your
thoughts
about it. Let me know if you find it useful!
Irmen de Jong
--
http://mail.python.org
and Python versions, including
Python 3.x.
Enjoy,
Irmen de Jong
--
http://mail.python.org/mailman/listinfo/python-announce-list
Support the Python Software Foundation:
http://www.python.org/psf/donations/
in
100% pure
Python and therefore runs on many platforms and Python versions, including
Python 3.x.
Enjoy,
Irmen de Jong
--
http://mail.python.org/mailman/listinfo/python-announce-list
Support the Python Software Foundation:
http://www.python.org/psf/donations/
Tim Peters wrote:
That differences may exist is reflected in the C
standard, and the rules for text-mode files are more restrictive than
most people would believe.
Apparently. Because I know only about the Unix - Windows difference
(windows converts \r\n -- \n when using 'r' mode, right).
So it's
Altova Announcements wrote:
Altova Unveils .
[spam]
Well now, I didn't like their products very much already,
but this spam has certainly made them drop another few
steps down on my scale. Hmpf.
--Irmen
--
http://mail.python.org/mailman/listinfo/python-list
Joachim Boomberschloss wrote:
Option iii would also enable writing independent
packages in Python and Java, but its glue layer will
be distributed between Python and Java using Jython
and Pyro (I chose Pyro because it works in both
CPython and Jython, and can be used to communicate
between them).
tertius wrote:
Hi,
Is there a builtin function that will enable me to display the hex
notation of a given binary string? (example below)
Does this help:
hello.encode(hex)
'68656c6c6f'
deadbeef.decode(hex)
'\xde\xad\xbe\xef'
?
--Irmen
--
http://mail.python.org/mailman/listinfo/python-list
Kent Johnson wrote:
[...]
This is an XML document containing a single tag, string, whose content
is text containing entity-escaped XML.
This is *not* an XML document containing tags DataSet, Order,
Customer, etc.
All the behaviour you are seeing is a consequence of this. You need to
unescape
Martin v. Löwis wrote:
Irmen de Jong wrote:
The unescaping is usually done for you by the xml parser that you use.
Usually, but not in this case. If you have a text that looks like
XML, and you want to put it into an XML element, the XML file uses
lt; and gt;. The XML parser unescapes
Istvan Albert wrote:
XML with elementtree is what makes me never have think about XML again.
+1 QOTW
-Irmen
--
http://mail.python.org/mailman/listinfo/python-list
://snakelets.sourceforge.net/frog/
It's 60Kb if you already have Snakelets, otherwise 122Kb.
Frog 1.3 uses the same storage format as 1.2 so no conversion
is required. If you encounter bugs or problems, or want to give
some feedback, please let me know.
Enjoy,
--Irmen de Jong.
PS I'm running Frog for my personal
aurora wrote:
But the numbers look skeptical. Hotspot claim 71.166 CPU seconds but
the actual elapsed time is only 54s. When measuring elapsed time
instead of CPU time the performance gain is only 13% with the profiler
running and down to 10% when not using the profiler.
Is there something
Ville Vainio wrote:
Thomas == Thomas Heller [EMAIL PROTECTED] writes:
(Yeah, ctypes will probably be a problem because of the way Symbian
handles DLLs)
Thomas How *does* symbian handle DLLs?
By ordinal, so the dll does not include the symbol name (in order to
keep the size small).
What would be the best way, if any, to obtain
the bytecode for a given loaded module?
I can get the source:
import inspect
import os
src = inspect.getsource(os)
but there is no ispect.getbytecode() ;-)
--Irmen
--
http://mail.python.org/mailman/listinfo/python-list
Mark Nenadov wrote:
On Wed, 02 Feb 2005 23:03:17 +0100, Irmen de Jong wrote:
What would be the best way, if any, to obtain
the bytecode for a given loaded module?
I can get the source:
import inspect
import os
src = inspect.getsource(os)
but there is no ispect.getbytecode() ;-)
--Irmen
Steve Holden wrote:
Having said which, if the module was loaded from a .pyc file then the
bytecode is available from that - take everything but the first eight
bytes and use marshal.loads() to turn it back into a code object:
Yup. As I explained in the other message, this is basically
what I'm
Steve Holden wrote:
But I also want the bytecode of modules that don't have a .pyc file,
possibly because they have already been 'dynamically' loaded from
another bytecode string ;-)
Aah, right, I suspect in these cases (which *are* pretty far from the
ordinary run of things) you'd sometimes be
Jorey Bump wrote:
Does anyone know how to use SimpleHTTPServer to:
1. Support virtual hosts?
2. Support SSL?
I'd like to use SimpleHTTPServer to create some simple reporting utilities,
but can't get past these two points. Is there a NotSoSimpleHTTPServer?
Give Snakelets a try (snakelets.sf.net).
Jorey Bump wrote:
Irmen de Jong [EMAIL PROTECTED] wrote in news:41fcf53b
[EMAIL PROTECTED]:
I've just uploaded the Frog 1.3 release.
Frog is a blog (web log) system written in 100% Python.
It is a web application written for Snakelets.
It outputs XHTML, is fully unicode compatible, small
.
For now, you'll just have to login twice or hack your own centralized
logon thing ;-)
Have fun,
--Irmen de Jong
--
http://mail.python.org/mailman/listinfo/python-list
m wrote:
Fredrik Lundh wrote:
if you use Python mostly to write empty loops, your programming license
should be revoked. the benchmark author seems to have realized that, as
can be seen from the it's dead paragraph at the top of the page, which
makes me wonder why you posted this link...
/F
i
Pickle and marshal are not safe. They can do harmful
things if fed maliciously constructed data.
That is a pity, because marshal is fast.
I need a fast and safe (secure) marshaler.
Is xdrlib the only option?
I would expect that it is fast and safe because
it (the xdr spec) has been around for so
Pierre Barbier de Reuille wrote:
Irmen de Jong a écrit :
Pickle and marshal are not safe. They can do harmful
things if fed maliciously constructed data.
That is a pity, because marshal is fast.
I need a fast and safe (secure) marshaler.
Is xdrlib the only option?
I would expect that it is fast
Hello Guido
[EMAIL PROTECTED] wrote:
Irmen de Jong wrote:
Pickle and marshal are not safe. They can do harmful
things if fed maliciously constructed data.
That is a pity, because marshal is fast.
I think marshal could be fixed; the only unsafety I'm aware of is that
it doesn't always act
PA wrote:
On Feb 10, 2005, at 15:01, Irmen de Jong wrote:
Is xdrlib the only option?
I would expect that it is fast and safe because
it (the xdr spec) has been around for so long.
XDR? Like Sun's XDR: External Data Representation standard?
http://www.faqs.org/rfcs/rfc1014.html
http://www.faqs.org
Alan Kennedy wrote:
[Irmen de Jong]
Pickle and marshal are not safe. They can do harmful
things if fed maliciously constructed data.
That is a pity, because marshal is fast.
I need a fast and safe (secure) marshaler.
Hi Irmen,
I'm not necessarily proposing a solution to your problem, but am
PA wrote:
Sorry if this is off-topic, I didn't follow the thread from the very
beginning, but wouldn't something like YAML work for you perhaps?
http://yaml.org/
Perhaps, but the spec makes my skin crawl.
Also, it seems ill-fit for efficient machine-to-machine
communication (yaml seems to be
Hi Alan
Alan Kennedy wrote:
Well, the python JSON codec provided appears to use eval, which might
make it *seem* unsecure.
http://www.json-rpc.org/pyjsonrpc/index.xhtml
But a more detailed examination of the code indicates, to this reader at
least, that it can be made completely secure very
cmkl wrote:
but can't effbot's fast cElementree be used for PYROs XML_PICKLE
and would it be safe and fast enough?
ElementTree's not a marshaler.
Or has it object (de)serialization included?
--Irmen
--
http://mail.python.org/mailman/listinfo/python-list
Fredrik Lundh wrote:
import os
os.path.getsize(BL.xml)
1302
from xml.dom import minidom
x = minidom.parse(BL.xml)
(have patience. have lots of patience.)
Hehe, the XML killer file BillionLaughs... correct?
--Irmen
--
http://mail.python.org/mailman/listinfo/python-list
Fredrik Lundh wrote:
the problem is that the following may or may not reach the done! statement,
somewhat depending on python version, memory allocator, and what data you
pass to dumps.
import marshal
data = marshal.dumps((1, 2, 3, hello, 4, 5, 6))
for i in range(len(data), -1, -1):
try:
Luc wrote:
So I am looking for another solution with a web interface that should work
with linux and windows XP.
I had a look to zope but was afraid with the complexity and debug
difficulties.
Are there some other solutions?
Yes. A lot: http://www.python.org/moin/WebProgramming
I know someone who
Alan Kennedy wrote:
[Irmen de Jong]
Interestingly enough, I just ran across Flatten:
http://sourceforge.net/project/showfiles.php?group_id=82591package_id=91311
...which aids in serializing/unserializing networked data securely,
without having to fear execution of code or the like.
Sounds
Simon John wrote:
Maybe I'll fork out the 100usd for Visual Studio .NET 2003 after all
$100? Where? Last time I looked it was closer to $800.
--Irmen
--
http://mail.python.org/mailman/listinfo/python-list
Paul Rubin wrote:
John Lenton [EMAIL PROTECTED] writes:
and buying more, cheap computers gives you more processing power than
buying less, multi-processor computers.
The day is coming when even cheap computers have multiple cpu's.
See hyperthreading and the coming multi-core P4's, and the
[EMAIL PROTECTED] wrote:
Hiya,
The title says it all really, but im a newbie to python sort of. I can
read in files and write files no probs.
But what I want to do is read in a couple of files and output them to
one single file, but then be able to take this one single file and
recreate the files
in the manual:
http://pyro.sourceforge.net/pyro-manual/12-changes.html#latest
Because it is a beta release, there may still be bugs.
Please test this version and let me know of any issues.
Have fun, and thanks for your interest, support, and feedback!
--Irmen de Jong
--- What is Pyro?
Pyro is an acronym
Paul Rubin wrote:
There's another issue with marshal that makes it unsuitable for Pyro,
which is that its data format is (for legitimate reasons) not
guaranteed to be the same across different Python releases. That
means that if the two ends of the Pyro application aren't using the
same Python
Paul Rubin wrote:
Yes, however, you can at least set the protocol level. Marshal doesn't
give you that option.
That's right. So good for Pyro then :)
It works most of the time, even across different Python versions,
unless using mobile code.
What do you do about the security issue if you're using
Leif K-Brooks wrote:
Irmen de Jong wrote:
the GIL must die.
I couldn't resist:
http://www.razorvine.net/img/GIL.jpg
Neither could I:
http://ecritters.biz/diegil.png
(In case it's not entirely obvious, the stick figure just slices the GIL
into two pieces with his sword, causing its blood
Paul Rubin wrote:
Yes, that's what I meant, using hmac to authenticate using a shared secret,
sending the rest in the clear. Note you should also put sequence numbers
in the messages, to stop the attacker from fooling you by selectively
deleting or replaying messages.
Thanks for the tip. I'll
Fredrik Lundh wrote:
the bug had nothing to do with the XML-RPC protocol itself;
True, sorry for the confusion. I should have written it more precisely.
it was a
weakness in the SimpleXMLRPCServer framework which used reflection
to automatically publish instance methods (if you use getattr
Paul Rubin wrote:
Hmm, you also want a random blob in each packet (including the session
start) included in the authentication of the next packet, so the
attacker can't cut and paste messages from old sessions into the
current ones. You know, by the time you're through designing this you
may be
Sean wrote:
Then I would have a script that uses the
print_this function defined in the module
without using the module name in the call.
from module_name import print_this
or, even:
from module_name import print_this as other_nice_name
--Irmen
--
Tim Churches wrote:
Also, the new findings only apply to hash collisions, not to the invertibility of SHA1
hashes - thus, as Schneier points out, uses of keyed hashes (such as HMAC) are not
compromised by this.
What about HMAC-MD5?
--Irmen
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
when I test the two program in the same OS,
i mean from a redhat 9 OS to a redhat 9 OS,
It's ok. receivefile match sent file.
But when I run receiver on a Redhat 9,
and send file from a windows XP,
the received file's size is randomized.
May be that's where
infidel wrote:
I've been trying to get my CherryPy server to authenticate users
against our network. I've managed to cobble together a simple function
that uses our LDAP server to validate the username and password entered
by the user:
[...]
moniker, i, bindCtx =
javuchi wrote:
I'm searching for a library which makes aproximative string matching,
for example, searching in a dictionary the word motorcycle, but
returns similar strings like motorcicle.
Is there such a library?
Perhaps the get_close_matches function that is presentt in the standard
Paul Rubin wrote:
Basically I wish there was a way to have persistent in-memory objects
in a Python app, maybe a multi-process one. So you could have a
persistent dictionary d, and if you say
d[x] = Frob(foo=9, bar=23)
that creates a Frob instance and stores it in d[x]. Then if you
exit the
Jp Calderone wrote:
On 21 Dec 2004 05:04:36 -0800, Mike M?ller [EMAIL PROTECTED] wrote:
Can someone recommend a parallelization approach? Are there examples or
documentation? Has someone got experience with stability and efficiency?
I am successfully using pyro http://pyro.sourceforge.net for my
Gurpreet Sachdeva wrote:
I have shifted my python script on a 4 node open ssi cluster. Please
guide me what changes do I have to do in my python scripts to fully
utilize the cluster. How do we introduce parralel processing in
python???
There was a very recent thread about this subject:
[EMAIL PROTECTED] wrote:
[some spam]
Those people don't even provide python hosting, how lame.
(Yes, I know, I shouldn't have clicked the link).
--
http://mail.python.org/mailman/listinfo/python-list
Florian Lindner wrote:
AFAIK python has a generic API for database access which adapters are
supposed to implement. How can I found API documentation on the API?
http://www.python.org/topics/database/
--Irmen
--
http://mail.python.org/mailman/listinfo/python-list
Subject says it all;
there's a socket.sendall(), so why no socket.recvall()?
I know that I can use the MSG_WAITALL flag with recv(),
but this is not implemented on all platforms, most
notably windows.
--Iremn
--
http://mail.python.org/mailman/listinfo/python-list
Robert Brewer wrote:
Irmen de Jong wrote:
Subject says it all;
there's a socket.sendall(), so why no socket.recvall()?
[...]
If you call .makefile() and then .read() the _fileobject, you get the
same behavior (only better). Adding recvall would just duplicate that, I
think. But that's desirable
Steve Holden wrote:
Well, it might be Two-Pull in American, but in English it's tyoopl
-- NOT choopl (blearch!). I've also heard people say tuppl.
Probably the same ones who attend Tuppl-ware parties.
--Irmen
--
http://mail.python.org/mailman/listinfo/python-list
Smitsky wrote:
Hi. I am a newbie to Python. I am running Win XP and want to know what the
best course is for installing Python on my system. Could someone kindly
direct me to some related resources? Thanks in advance, Steve
The Python beginners guide contains a lot of information for you:
[EMAIL PROTECTED] wrote:
Hi again Istvan,
Good suggestion.
I have tried another server and it works flawlessly, regardless of the
computers being wireless or wired. Excellent.
However, i am still intrigued as to why the server is fast when both
computers are wireless and the desktop is the
Thomas wrote:
Can anyone recommend a web framework for such an application? I have looked
a little and most seem to focus on CMS type applications instead of
technical programs.
Then IMO you haven't looked hard enough.
http://wiki.python.org/moin/WebProgramming
There's lots of
[EMAIL PROTECTED] wrote:
Hi there,
I'm trying to load data from 2 different CD drives to compare the data
on them to see if they are identical. I've found the WinCDRom module
online but it doesn't seem to give access to the data at all. The only
thing it seems to do is check if there is a
BartlebyScrivener wrote:
Even weirder,
os.path.isfile(r'c://bookmarks.html')
Never mind. It works that way from the command line, too. Never tried
it before.
Forward slashes as path separator only works on NTFS volumes I believe.
--Irmen
--
Laszlo Zsolt Nagy wrote:
I need to send Python objects too. They are too elaborate to convert
them to XML. (They are using cyclic weak references and other Python
specific stuff.) I can be sure that on both sides, there are Python
programs. Is there any advantage in using XML if I already
Laszlo Zsolt Nagy wrote:
Mobile objects. Clients and servers can pass objects around - even when
the server has never known them before. Pyro will then automatically
transfer the needed Python bytecode.
I believe that using cPickle and transferring data (but not the code) is
still more
rodmc wrote:
I am new to Python and have been writing some socket based programmes
on Windows (with some success), however I am unable to get them to work
on Mac.
Please elaborate on unable to get them to work. What problems do you see?
In my experience, there is no difference with the Mac.
Mike wrote:
Hi,
I have two machines. A python program on machine 1 needs to make a
python call to a method in machine 2. What is the most efficient / fast
/ programmer friendly way to do it?
- XML-RPC?
- Http Call?
use Pyro
http://pyro.sourceforge.net
--Irmen
--
Michael Hoffman wrote:
Lonnie Princehouse wrote:
C:\python -u
Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)]
on win32
Type help, copyright, credits or license for more information.
print 'hello'
File stdin, line 1
print 'hello'
^
JerryB wrote:
Hi,
I have a dictionary for counting ocurrences of strings in a document.
The dictionary looks like this:
'hello':135
'goodbye':30
'lucy':4
'sky':55
'diamonds':239843
'yesterday':4
I want to print the dictionary so I see most common words first:
'diamonds':239843
Mohammed Smadi wrote:
hi;
I am trying to do some very basic socket programming and i get the
following error. Any help will be appreciated:
Code:
import socket
x = socket.gethostbyaddr(www.google.ca)
return an error: socket.herror: (1, 'Unknown host')
You're using the wrong method.
Chris Curvey wrote:
Multi-threading may help if your python program is spending all it's
time waiting for the network (quite possible). If you're CPU-bound and
not waiting on network, then multi-threading probably isn't the answer.
Unless you are on a multi cpu/ multi core machine.
(but mind
Mohammed Smadi wrote:
hi;
If i have a tcp connection with a remote server, what is a good way to
read all the data into a buffer before starting to process the data?
I know that the data recieved will be 3 lines with CRLF between them.
However if I can sock.recv(1024) the output is not
in the manual:
http://pyro.sourceforge.net/manual/12-changes.html#latest
Have fun, and thanks for your interest, support, and feedback!
--Irmen de Jong
--- What is Pyro?
Pyro is an acronym for PYthon Remote Objects. Pyro is an advanced and
powerful Distributed Object Technology system written
.
For more info, see: http://snakelets.sourceforge.net/frog/
Have fun!
--Irmen de Jong
P.S. if you don't already have Snakelets 1.42 installed, you can download
the 'frogcomplete' package. It includes everything to get Frog up and running.
--
http://mail.python.org/mailman/listinfo/python-list
Golawala, Moiz M (GE Infrastructure) wrote:
Hi All,
I am seeing some interesting behavior with Pyro 2.3. I created a server using
Pyro2.2
and a client on a different machine with Python2.2 and communication was just
fine (I
am not using a Name server). However when I upgraded the client
Nemesis wrote:
XPN (X Python Newsreader XPN) is a multi-platform newsreader with
Unicode support. It has features like scoring/actions, X-Face and Face
decoding, muting of quoted text, newsrc import/export, find article and
search in the body, spoiler char/rot13, random taglines, and
Rob W. W. Hooft wrote:
After reading this thread, I have wrapped up a different approach,
probably not what you were looking for, but it is very good for what I
wanted: comparing a command string typed by a user with all possible
commands a program can accept, to be able to do
Magnus Lycka wrote:
Both CORBA implementations and simpler things like PYRO could help, but
these systems are more aimed at enabling communication between programs
running in a distributed fashion, and I don't think they target tasks
such as job queues, starting and stopping jobs, or load
on both projects here:
http://snakelets.sourceforge.net/
Download:
http://sourceforge.net/project/showfiles.php?group_id=41175
The detailed release notes have been added to the version section.
Have fun!
--Irmen de Jong
--
http://mail.python.org/mailman/listinfo/python-list
thinfrog wrote:
It's very interesting, i'm glad to try.
And it can access data by MYSQL/SQL or other database software?
it meaning Snakelets, I assume.
(because Frog, the blog server, doesn't use any database for storage)
Snakelets does not contain ANY database connector.
You can therefore
...darn, some users have reported that a strange problem
occurs when running Snakelets 1.41 on Python 2.3.x
(Python 2.4 is fine!)
It seems that there is a bug in older versions of
inspect.getmodule() and that bug causes Snakelets to stop
working correctly on Python 2.3.x
If you experience this
Grig Gheorghiu wrote:
I use this function as a platform-independent way of finding out the
current user name:
def get_username():
if sys.platform == 'win32':
return win32api.GetUserName()
else:
return getpass.getuser()
[e:\]python
Python 2.4.1 (#65, Mar 30
Jan Danielsson wrote:
Hello all,
I'm 100% sure that I saw an example which looked something like this
recently:
a=(1, 2, 3, 4, 5, 6)
b=(2, 3, 6)
a - b
(1, 4, 5)
The only new language I have been involved in lately is Python. Is my
memory failing me, or have I seen such an
Patrick Down wrote:
My understanding is that the upcoming Civilization IV will have python
scripting.
Also, alledgedly the new BattleField II uses Python in a way...
because I heard that you had to comment out a certain line
in a certain .py file to remove the time limit of the demo :-)
David Bear wrote:
Let's say I have a list called, alist. If I pass alist to a function,
how can I get the name of it?
alist = range(10)
def afunction(list):
listName = list.__name__ (fails for a list object)
You don't, see the other reply.
You didn't say why you think you need
Grant Edwards wrote:
Under Linux, you need to be root to send a broadcase packet.
I don't think this is true.
--Irmen
--
http://mail.python.org/mailman/listinfo/python-list
Christopher Subich wrote:
Steve Horsley wrote:
There is a higher level socket framework called twisted that everyone
seems to like. It may be worth looking at that too - haven't got round
to it myself yet.
I wouldn't say 'like,' exactly. I've cursed it an awful lot (mostly for
1 - 100 of 615 matches
Mail list logo