ANN: Snakelets 1.39 (simple-to-use web app server with dynamic pages)

2005-04-17 Thread Irmen de Jong
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

Frog 1.4 (web log aka blogging server)

2005-04-23 Thread Irmen de Jong
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

Frog 1.7 (blog server)

2005-10-08 Thread Irmen de Jong
. 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

ANN: Pyro 3.6 beta

2007-02-12 Thread Irmen de Jong
' 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

Pyro 3.7 (remote objects)

2007-05-20 Thread Irmen de Jong
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

Pyro 3.8 released

2008-08-23 Thread Irmen de Jong
. 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

Pyro 3.10 released

2009-12-09 Thread Irmen de Jong
://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/

Pyro 4.0 released

2010-06-13 Thread Irmen de Jong
-- 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

Pyro 4.1 released

2010-06-28 Thread Irmen de Jong
- 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 4.2 released!

2010-09-28 Thread Irmen de Jong
. 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

Pyro 3.11 released

2010-11-22 Thread Irmen de Jong
: 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/

Pyro 3.14 released.

2011-05-27 Thread Irmen de Jong
: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

Pyro 4.6 released.

2011-06-02 Thread Irmen de Jong
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/

Pyro 4.7 released.

2011-06-20 Thread Irmen de Jong
, 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/

Pyro 4.8 released

2011-07-16 Thread Irmen de Jong
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/

Pyrolite 1.1 - lightweight Pyro client library for Java and .NET

2011-07-28 Thread Irmen de Jong
(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

Pyro 4.9 released

2011-09-19 Thread Irmen de Jong
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/

Pyro 4.13 available

2012-04-17 Thread Irmen de Jong
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/

Re: Why 'r' mode anyway?

2005-01-14 Thread Irmen de Jong
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

Re: ANNOUNCE: Altova ... blah blah blah

2005-01-18 Thread Irmen de Jong
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

Re: Integration with java (Jpype vs. JPE)

2005-01-18 Thread Irmen de Jong
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).

Re: hex notation funtion

2005-01-18 Thread Irmen de Jong
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

Re: xml parsing escape characters

2005-01-20 Thread Irmen de Jong
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

Re: xml parsing escape characters

2005-01-20 Thread Irmen de Jong
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

Re: What YAML engine do you use?

2005-01-20 Thread Irmen de Jong
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

ANN: Frog 1.3 released (python 'blog' application)

2005-01-30 Thread Irmen de Jong
://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

Re: hotspot profiler experience and accuracy?

2005-02-02 Thread Irmen de Jong
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

Re: Python for S60 mentioned in a mainstream Finnish e-news website

2005-02-02 Thread Irmen de Jong
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).

Getting a module's byte code, how?

2005-02-02 Thread Irmen de Jong
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

Re: Getting a module's byte code, how?

2005-02-02 Thread Irmen de Jong
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

Re: Getting a module's byte code, how?

2005-02-02 Thread Irmen de Jong
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

Re: Getting a module's byte code, how?

2005-02-02 Thread Irmen de Jong
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

Re: Popularizing SimpleHTTPServer and CGIHTTPServer

2005-02-03 Thread Irmen de Jong
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).

Re: ANN: Frog 1.3 released (python 'blog' application)

2005-02-04 Thread Irmen de Jong
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

Re: ANN: Frog 1.3 released (python 'blog' application)

2005-02-06 Thread Irmen de Jong
. 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

Re: Python versus Perl ?

2005-02-08 Thread Irmen de Jong
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

is there a safe marshaler?

2005-02-10 Thread 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. Is xdrlib the only option? I would expect that it is fast and safe because it (the xdr spec) has been around for so

Re: is there a safe marshaler?

2005-02-10 Thread Irmen de Jong
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

Re: is there a safe marshaler?

2005-02-10 Thread Irmen de Jong
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

Re: XDR? (was Re: is there a safe marshaler?)

2005-02-10 Thread Irmen de Jong
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

Re: is there a safe marshaler?

2005-02-10 Thread Irmen de Jong
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

Re: XDR? (was Re: is there a safe marshaler?)

2005-02-10 Thread Irmen de Jong
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

Re: is there a safe marshaler?

2005-02-10 Thread Irmen de Jong
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

Re: is there a safe marshaler?

2005-02-11 Thread Irmen de Jong
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

Re: is there a safe marshaler?

2005-02-11 Thread Irmen de Jong
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

Re: is there a safe marshaler?

2005-02-11 Thread Irmen de Jong
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:

Re: Web interface GUI??

2005-02-12 Thread Irmen de Jong
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

Re: is there a safe marshaler?

2005-02-12 Thread Irmen de Jong
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

Re: ANN: pyMinGW support for Python 2.3.5 (final) is available

2005-02-12 Thread Irmen de Jong
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

Re: multi threading in multi processor (computer)

2005-02-12 Thread Irmen de Jong
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

Re: Text files read multiple files into single file, and then recreate the multiple files

2005-02-12 Thread Irmen de Jong
[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

ANN: Pyro 3.5 beta (remote objects)

2005-02-13 Thread Irmen de Jong
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

Re: is there a safe marshaler?

2005-02-14 Thread Irmen de Jong
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

Re: is there a safe marshaler?

2005-02-14 Thread Irmen de Jong
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

Re: multi threading in multi processor (computer)

2005-02-14 Thread Irmen de Jong
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

Re: is there a safe marshaler?

2005-02-14 Thread Irmen de Jong
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

Re: is there a safe marshaler?

2005-02-14 Thread Irmen de Jong
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

Re: is there a safe marshaler?

2005-02-14 Thread Irmen de Jong
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

Re: Calling a function from module question.

2005-02-15 Thread Irmen de Jong
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 --

Re: SHA1 broken

2005-02-16 Thread Irmen de Jong
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

Re: socket receive file does not match sent file

2005-11-07 Thread Irmen de Jong
[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

Re: CherryPy not playing nicely with win32com?

2005-11-10 Thread Irmen de Jong
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 =

Re: Aproximative string matching

2005-11-21 Thread Irmen de Jong
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

Re: Persistent objects

2004-12-12 Thread Irmen de Jong
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

Re: Parallelization with Python: which, where, how?

2004-12-21 Thread Irmen de Jong
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

Re: Python on Linux Cluster

2004-12-23 Thread Irmen de Jong
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:

Re: website hosting

2005-01-03 Thread Irmen de Jong
[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

Re: How to access database?

2005-01-03 Thread Irmen de Jong
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

there's a socket.sendall(), so why no socket.recvall()?

2005-01-08 Thread Irmen de Jong
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

Re: there's a socket.sendall(), so why no socket.recvall()?

2005-01-08 Thread Irmen de Jong
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

Re: tuples vs lists

2005-01-08 Thread Irmen de Jong
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

Re: Windows XP Installation

2005-01-08 Thread Irmen de Jong
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:

Re: an intriguing wifi http server mystery...please help

2005-12-01 Thread Irmen de Jong
[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

Re: Request opinion on web application framework

2005-12-04 Thread Irmen de Jong
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

Re: getting data off a CDrom

2005-12-04 Thread Irmen de Jong
[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

Re: How to detect the presence of a html file

2005-12-09 Thread Irmen de Jong
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 --

Re: Developing a network protocol with Python

2005-12-13 Thread Irmen de Jong
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

Re: Developing a network protocol with Python

2005-12-15 Thread Irmen de Jong
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

Re: Sockets on Windows and Mac

2006-01-08 Thread Irmen de Jong
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.

Re: Remote Function Call

2006-01-12 Thread Irmen de Jong
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 --

Re: Windows Python 2.4: Unbuffered flag causes SyntaxError on interactive sessions?

2005-09-13 Thread Irmen de Jong
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' ^

Re: Dictionary sorting problem

2005-09-16 Thread Irmen de Jong
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

Re: socket.gethostbyaddr problem

2005-09-17 Thread Irmen de Jong
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.

Re: 1 Million users.. I can't Scale!!

2005-09-28 Thread Irmen de Jong
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

Re: tcp socket programming

2005-10-04 Thread Irmen de Jong
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

ANN: Pyro 3.5 (remote objects)

2005-10-06 Thread Irmen de Jong
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

ANN: Frog 1.7 (blog server)

2005-10-07 Thread Irmen de Jong
. 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

Re: Pyro2.3 problem

2005-05-25 Thread Irmen de Jong
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

Re: [ANN] XPN 0.4.6

2005-05-27 Thread Irmen de Jong
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

Re: Comparing 2 similar strings?

2005-05-28 Thread Irmen de Jong
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

Re: Seti-like program

2005-06-01 Thread Irmen de Jong
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

[ANN] Snakelets 1.41 and Frog 1.6

2005-06-03 Thread Irmen de Jong
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

Re: [ANN] Snakelets 1.41 and Frog 1.6

2005-06-04 Thread Irmen de Jong
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

Problem on python 2.3.x was: [ANN] Snakelets 1.41 and Frog 1.6

2005-06-04 Thread Irmen de Jong
...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

Re: Sending mail from 'current user' in Python

2005-06-11 Thread Irmen de Jong
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

Re: Going crazy...

2005-06-13 Thread Irmen de Jong
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

Re: Python in Games (was RE: [Stackless] Python in Games)

2005-06-14 Thread Irmen de Jong
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 :-)

Re: getting an object name

2005-06-22 Thread Irmen de Jong
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

Re: python broadcast socket

2005-06-29 Thread Irmen de Jong
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

Re: Scket connection to server

2005-07-01 Thread Irmen de Jong
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   2   3   4   5   6   7   >