Re: Who should security issues be reported to?

2005-02-02 Thread Fuzzyman
Paul Rubin wrote: > "Fuzzyman" <[EMAIL PROTECTED]> writes: > > The sourceforge bug tracker *is* the single right place to post such > > issues. The py-dev mailing list would be a second *useful* place to > > post such a comment, although not really the righ

Is this a contradiction in the docs ?

2005-02-02 Thread Fuzzyman
The following two passages from the python documentation *appear* to contradict each other. Equally possible (or more likely !) is that I misunderstand it : eval : This function can also be used to execute arbitrary code objects (such as those created by compile()). In this case pass a code object

Re: Is this a contradiction in the docs ?

2005-02-02 Thread Fuzzyman
Pierre Barbier de Reuille wrote: > Fuzzyman a écrit : > > The following two passages from the python documentation *appear* to > > contradict each other. Equally possible (or more likely !) is that I > > misunderstand it : > > > > eval : > > This functio

Re: Save the Canvas!

2005-02-02 Thread Fuzzyman
Not that funny ! ;-) Regards, Fuzzy http://www.voidspace.org.uk/python/index.shtml -- http://mail.python.org/mailman/listinfo/python-list

Re: Apache & Python 500 Error

2005-02-02 Thread Fuzzyman
What does the error log report ? It is *possible* that you are getting an error 500 because your are not emitting valid headers. Try this instead : #!/usr/bin/python print 'Content-Type: text/plain\r' print '\r' import os print os.getcwd() Regards, Fuzzy http://www.voidspace.org.uk/python/in

Re: CONTEST - What is the (best) solution?

2005-02-02 Thread Fuzzyman
Can your dictionaries contain dictionaries ? If not you can read the file and cut at the first '}' and the last '{'. The two chunks will then be a single dictionary which can be eval'd. *However* your example above does not show ',' between all of the pairs... but only some. This will bugger you

Re: Is this a contradiction in the docs ?

2005-02-02 Thread Fuzzyman
Steve Holden wrote: > Fuzzyman wrote: > > > The following two passages from the python documentation *appear* to > > contradict each other. Equally possible (or more likely !) is that I > > misunderstand it : > > > > eval : > > This function can also

Re: Is this a contradiction in the docs ?

2005-02-02 Thread Fuzzyman
Pierre Barbier de Reuille wrote: > Fuzzyman a écrit : > > > > > > Yes.. but that would mean that eval could only run code objects that > > "consist[s] of a single expression".. which I doubt is the reality or > > the intention. > > > > Regar

Re: CONTEST - What is the (best) solution?

2005-02-02 Thread Fuzzyman
What about the syntax ? Will it have commas in the right place ? (never, always, or sometimes ? - sometimes is much worse than never or always). *damn* - problem is that '{' might appear as one of the values *So*... read the file in as a list of lines and strip each line. Dictionaries will alw

Re: CONTEST - What is the (best) solution?

2005-02-02 Thread Fuzzyman
Doesn't work if '{' or '}' can appear in the values. Regards, Fuzzy http://www.voidspace.org.uk/python/index.shtml -- http://mail.python.org/mailman/listinfo/python-list

Re: IDLE history, Python IDE, and Interactive Python with Vim

2005-02-03 Thread Fuzzyman
If you use IPython for your interactive mode stuff, you'll have a nice history... Regards, Fuzzy http://www.voidspace.org.uk/python/index.shtml -- http://mail.python.org/mailman/listinfo/python-list

Re: CONTEST - What is the (best) solution?

2005-02-03 Thread Fuzzyman
That's neater than my suggestion. Regards, Fuzzy http://www.voidspace.org.uk/python/index.shtml -- http://mail.python.org/mailman/listinfo/python-list

Re: CONTEST - What is the (best) solution?

2005-02-03 Thread Fuzzyman
rd=value), but is very easy to use. http://www.voidspace.org.uk/python/configobj.html Regards, Fuzzyman http://www.voidspace.org.uk/python/index.shtml -- http://mail.python.org/mailman/listinfo/python-list

Re: IPython colors in windows

2005-02-04 Thread Fuzzyman
Are you really using the readline module from newcenturycomputers ? I've got a feeling that's broken and you need to use the Gary Bishop one with IPython Sorry if this is spurious... (restricted internet access, so I can't check for you... but the correct one is linked to from the IPython site

Re: Help implementing an idea

2005-06-19 Thread Fuzzyman
[EMAIL PROTECTED] wrote: [snip..] > results. Now, I was thinking today, I'd really like to create a program that > can go to a specific directory and upload all the files in the directory to a > specific url for backup purposes, and I have the feeling that the python > implementation would be ruthl

Re: What platforms have Python Virtual Machines and what version(s) ofPython do they support?

2005-06-19 Thread Fuzzyman
Hmmm... the page is a *bit* out of date (which is to be expected I suppose). There is a port of Python 2.3 for Pocket PC. I think pippy is pretty dead and wasn't that useable. On this newsgroup not long ago someone announced they were working on a new PalmOS port. To the best of my knowledge jyt

Re: login website that using PHP

2005-06-20 Thread Fuzzyman
The behaviour with the browser is what is known as a 'session cookie' -the site sets it when you login and the browser keeps it until you end the session by closing the browser. You handle the cookie using ClientCookie (Python 2.3) or cookielib (Python 2.4). You need to create a cookiejar instance

Re: howto load and unload a module

2005-06-24 Thread Fuzzyman
Answer to 2 - ``hasattr(module, name)`` -- http://mail.python.org/mailman/listinfo/python-list

Re: Sorting part of a list

2005-06-24 Thread Fuzzyman
You can assign to a slice in place, but referencing a slice creates a copy. I think you understand it quite well :-) a = ll[2:] a.sort() ll[2:] = a To do a partial sort, in place, you'll have to subclass list - but you'll still end up doing something similar unless you delve into C or write your

Re: Downloading files using URLLib

2005-06-27 Thread Fuzzyman
> If so please guid me a bit here. I aaume you mean 'guido' here ? ;-) Anyway - you probably want to be using urllib2 as the other poster points out. Regards, Fuzzy -- http://mail.python.org/mailman/listinfo/python-list

urllib2, https, and proxies

2005-06-29 Thread Fuzzyman
Hello all (well, some of you I guess), Is it true that you can't configure a proxy handler for urllib2 to fetch https URLs through a proxy ? I know that you pass a dictionary, keyed by protocol, to the proxy handler - but when we get an exception when we fetch an https URL. Fetching the same URL

Inheriting from object

2005-06-29 Thread Fuzzyman
anyone explain any tangible benefit of inheriting from object, when not explicitly using any features of new style classes ? Thanks :-) Fuzzyman http://www.voidspace.org.uk/python -- http://mail.python.org/mailman/listinfo/python-list

Re: Inheriting from object

2005-06-29 Thread Fuzzyman
So theres no actual advantage that you know of ;-) Surely when they are removed : class foo: pass won't become invalid syntax, it will just automatically inherit from object ? That's what I assumed, anyway Regards, Fuzz http://www.voidspace.org.uk/python -- http://mail.python.org/ma

Re: Inheriting from object

2005-06-30 Thread Fuzzyman
The reason I ask is that I often (well... a couple of times anyway) see cryptic omments like : and if you inherit from object you get all the benefits of new style classes Now I know about the advantages of inheriting from the built in types (if that's what you want to do) -but am a bit fuzzi

Re: Unicode drives me crazy...

2005-07-04 Thread Fuzzyman
[EMAIL PROTECTED] wrote: > Hi ! > > I want to get the WMI infos from Windows machines. > I use Py from HU (iso-8859-2) charset. > > Then I wrote some utility for it, because I want to write it to an XML file. > > def ToHU(s,NoneStr='-'): > if s==None: s=NoneStr > if not (type(s) in [type(

Re: Unicode drives me crazy...

2005-07-04 Thread Fuzzyman
At some point you have to convert - esp. when writing data out to file. If you receive data as a byte string and have to store it as a byte string, it is sometimes convenient to *not* convert in the middle. Best Regards, Fuzzy http://www.voidspace.org.uk/python -- http://mail.python.org/mailman

Re: Lisp development with macros faster than Python development?..

2005-07-06 Thread Fuzzyman
So Lisp is for really good programmers, and Python is for mediocre programmers ? Best Regards, Fuzzy http://www.voidspace.org.uk/python -- http://mail.python.org/mailman/listinfo/python-list

Re: Dr. Dobb's Python-URL! - weekly Python news and links (Jul 5)

2005-07-06 Thread Fuzzyman
Simon Brunning wrote: [snip..] > > The online Python Journal is posted at pythonjournal.cognizor.com. > [EMAIL PROTECTED] and [EMAIL PROTECTED] > welcome submission of material that helps people's understanding > of Python use, and offer Web presentation of your work. > Does the 'p

Re: Python exception hook simple example needed

2005-07-06 Thread Fuzzyman
Wax has a brilliant prebuilt dialog/handler. It's a wrapper over wxPython - so you still use wxPython objects, it's jsut all a lot easier. http://zephyrfalcon.org/labs Best Regards, Fuzzy http://www.voidspace.org.uk/python -- http://mail.python.org/mailman/listinfo/python-list

Re: Good starterbook for learning Python?

2005-07-06 Thread Fuzzyman
A book that will stay useful as a referene *after* you've used it to learn is 'Programming Python'. Best Regards, Fuzzy http://www.voidspace.org.uk/python -- http://mail.python.org/mailman/listinfo/python-list

Re: Lisp development with macros faster than Python development?..

2005-07-06 Thread Fuzzyman
Fair enough ;-) I'd like to discover the power of Lisp, but I have a limited amount of time to sink into programming... so maybe I'm better off putting my energies and imagination into Python. *A language is a medium of expression.* - Paul Graham All the best. Fuzzy http://www.voidspace.org.uk/

Re: Python exception hook simple example needed

2005-07-07 Thread Fuzzyman
Do you have an exception handling dialog ? Can you use the UI layer without being tied to the rest of the framework ? They seemed pretty integrated to me. Best Regards, Fuzzy http://www.voidspace.org.uk/pythonhave an -- http://mail.python.org/mailman/listinfo/python-list

Re: Python exception hook simple example needed

2005-07-11 Thread Fuzzyman
Ed Leafe wrote: > On Jul 7, 2005, at 7:27 AM, Fuzzyman wrote: > > > Do you have an exception handling dialog ? > > Not per se, as there hasn't been a request for one; we have several > dialogs ranging from simple messages to alerts to interactive dialogs, >

Re: Missing Something Simple

2005-07-12 Thread Fuzzyman
Hello John, John Abel wrote: > harold fellermann wrote: > > >Hi, > > > > > > > >>I have a list of variables, which I am iterating over. I need to set > >>the value of each variable. My code looks like: > >> > >>varList = [ varOne, varTwo, varThree, varFour ] > >> > >>for indivVar in varList: > >

Re: Software needed

2005-07-12 Thread Fuzzyman
Sounds like the sort of project that could work as a plugin to chandler. There's a Python interface to TWAIN (the scanner protocol) - but I'm not *aware* of anything built on top of it. google may have a better idea though. Regards, Fuzzy http://www.voidspace.org.uk/python -- http://mail.pytho

Re: breaking out of nested loop

2005-07-12 Thread Fuzzyman
You either need to set a marker flag with multiple breaks - *or* (probably more pythonic) wrap it in a try..except and raise an exception. Define your own exception class and just trap for that if you want to avoid catching other exceptions. There is no single command to break out of multiple loop

Re: Tkinter Button widget

2005-07-14 Thread Fuzzyman
Peter Otten wrote: > Shankar Iyer ([EMAIL PROTECTED]) wrote: > [snip..] > > Change your source code from > > # wrong > button = Tkinter.Button(..., command=some_function(),...) > > to > > # correct > button = Tkinter.Button(..., command=some_function,...) > > to pass the *function* to the widget

Re: Snakespell

2005-07-16 Thread Fuzzyman
here it used to live seems to have expired. > > Does anybody know where I can get hold of this? (or even send a tgz to > me) PyEnchant is maintained and easy to use jsut anotehr suggestion. Regards, Fuzzyman http://www.voidspace.org.uk/python -- http://mail.python.org/mailman/listinfo/python-list

Re: IDLE in Jython

2005-07-16 Thread Fuzzyman
Pippy looks pretty dead. Wasn't someone else working on a Palm port ? Best Regards, Fuzzyman http://www.voidspace.org.uk/python -- http://mail.python.org/mailman/listinfo/python-list

Re: Python IDE

2005-07-20 Thread Fuzzyman
Hmmm.. I've *never* hada problem with SPE crashing.. at least not under Windoze... Regards, Fuzzy http://www.voidspace.org.uk/python -- http://mail.python.org/mailman/listinfo/python-list

Re: How to limit the uploading file size in python?

2005-07-21 Thread Fuzzyman
Hello Prabahar, It entirely depends on the mechanism you are using to receive the file (there is no generic solution). Is it within a CGI ? The normal way would be to check the file sized and discard if it's too big. You'll have to do it within your code - but it's probably a one line check ! Be

Re: Web-Forms

2005-07-22 Thread Fuzzyman
Mike Meyer wrote: > Mathias Waack <[EMAIL PROTECTED]> writes: > > > Hi, > > > > I need to access some information from a web site which are only accessible > > through a form. Thus for each bucket of data you have to fill out the form, > > submit it and wait for an answer. Very easy - if you don'

Re: PyGTK or wxPython (not a flame war) on Windows

2005-07-22 Thread Fuzzyman
TPJ wrote: > GUI's etc: PyGtk on Windows > "(...) So if someone develops mainly for X and just wants to make sure > that it is not impossible to run on Windows, you can use PyGTK. (...)", > July 2nd, 1999 > > pyGTK on Windows > "(...) > > can i use pyGTK under > > Windows??? > > It's probably doa

Re: return None

2005-07-23 Thread Fuzzyman
Grant Edwards wrote: [snip..] > Personally, I don't really like the idea that falling off the > botton of a function implicitly returns None. It's just not > explicit enough for me. My preference would be that if the > function didn't execute a "return" statement, then it didn't > return anyting

Re: A Module on Time & Date

2005-07-27 Thread Fuzzyman
There is a Python 2.2 compatible version. Part of the Pythonweb modules (google for it). It has *most* of the functionality. There is also the Dateutil module (although I don't know which version of Python that requires). There is also my own (now outdated) dateutils module that *might* help with

Re: urllib2 problem/bug: Request.add_header does() nothing?

2005-07-27 Thread Fuzzyman
[EMAIL PROTECTED] wrote: > I have a simple cgi-script on a server that prints all key-value pairs > from a request. And it really works when i use a browser and type smth > like http://server/cgi-bin/test?name=mike&johny=dummy. But when I use > the following script, nothing is printed (like i typ

Re: how to append cgi FieldStorage Class instance

2005-07-29 Thread Fuzzyman
praba kar wrote: > Dear All, > I have doubt in python cgi script. I describe > that doubt with below code > import cgi > form = cgi.FieldStorage() > passwd = form['passwd'].value > print passwd > But Now I want to assign some value to form['passwd'] > field value > form['passwd'] = 'surese' >

Re: how to append cgi FieldStorage Class instance

2005-07-29 Thread Fuzzyman
praba kar wrote: > --- Fuzzyman <[EMAIL PROTECTED]> wrote: > > > > > praba kar wrote: > > > Dear All, > > > I have doubt in python cgi script. I describe > > > that doubt with below code > > > import cgi > > > form = cgi.

Re: To thread or not to thread

2005-07-29 Thread Fuzzyman
Some people are of the opinion that threads are evil. Best Regards, Fuzzy http://www.voidspace.org.uk/python -- http://mail.python.org/mailman/listinfo/python-list

Re: writing a web client

2005-07-29 Thread Fuzzyman
attically then the module ClientForm is useful (allegedly). Best Regards, Fuzzyman http://www.voidspace.org.uk/python -- http://mail.python.org/mailman/listinfo/python-list

Re: Wheel-reinvention with Python

2005-08-01 Thread Fuzzyman
Torsten Bronger wrote: > Hallöchen! > > Peter Decker <[EMAIL PROTECTED]> writes: > > > On 7/30/05, Torsten Bronger <[EMAIL PROTECTED]> wrote: > > > >> I've been having a closer look at wxPython which is not Pythonic > >> at all and bad documented. Probably I'll use it nevertheless. > >> PyGTK and

Re: Printing Docstrings Without Importing

2005-08-01 Thread Fuzzyman
This seems to scratch several people's itches. Care to develop/maintain it ? Regards, Fuzzball http://www.voidspace.org.uk/python -- http://mail.python.org/mailman/listinfo/python-list

Re: Printing Docstrings Without Importing

2005-08-03 Thread Fuzzyman
Bengt Richter wrote: > On 1 Aug 2005 06:50:23 -0700, "Fuzzyman" <[EMAIL PROTECTED]> wrote: > > >This seems to scratch several people's itches. > > > >Care to develop/maintain it ? > > > Are you talking to me? ;-) > > (My news server is

Re: using httplib for authentication

2005-08-03 Thread Fuzzyman
James Stroud wrote: > Hello All, > > I want to use python to download files from sites where authentication is > required. The page appears to send a form with the login and pass by post. I > would like to log in and keep this session open within python and > download a number of files automatical

Re: Python HTTP digest authentication woes...

2005-08-08 Thread Fuzzyman
john wrote: > I'm trying to access the XML version of my Tivo now playing list with > python. It uses auth digest HTTP authentication. I could really use > some help! > > I'm able to get this page using curl: > curl --dump-header tivoHeaders --insecure --anyauth --user tivo:808 > "https://192.

Re: MultiFile object does not iterate

2005-08-10 Thread Fuzzyman
It has no __iter__ method either. I guess 'next' is just a historical accident. Should be easy enough to wrap it in your own class though and resolve this ? Regards, Fuzzy http://www.voidspace.org.uk/python -- http://mail.python.org/mailman/listinfo/python-list

Re: Pre-PEP Proposal: Codetags

2005-08-11 Thread Fuzzyman
I'm sure Martin's comment is basically correct. *However* - you could take your proposal forward by developing a set of tools (e.g. documentation tools) that use your proposal. That way people have a working implementation to use. e.g. Tools to generate HTML TODO lists from source code It would t

Re: Why does __init__ not get called?

2005-08-12 Thread Fuzzyman
If you subclass strings you have to do your magic in __new__ rather than __init__. It receives the same arguments as you would normally expect to go to __init__. (Except cls rather than self). Best Regards, Fuzzy http://www.voidspace.org.uk/python -- http://mail.python.org/mailman/listinfo/pyt

Re: python html

2005-08-19 Thread Fuzzyman
I do exactly that in my Python CGI proxy (approx). I wrote a very simple parser called scraper.py that makes it easy. It won't choke on bad html either. http://www.voidspace.org.uk/python/recipes.shtml All the best, Fuzzyman http://www.voidspace.org.uk/python -- http://mail.pytho

Re: Python Light Revisted?

2005-08-23 Thread Fuzzyman
ing_python.shtml Just make a list of the modules you want to keep and fetch the Python 2.4 installers before making the switch. Gives you a nice opportunity to clean up your 'site-packages' folder. Regards, Fuzzyman http://www.voidspace.org.uk/python -- http://mail.python.org/mailman/listinfo/python-list

Re: cgi, reusing html. common problem?

2005-09-01 Thread Fuzzyman
On Thu, 01 Sep 2005 03:10:07 -0400, "John M. Gabriele" <[EMAIL PROTECTED]> wrote: >I'm putting together a small site using Python and cgi. > >(I'm pretty new to this, but I've worked a little with >JSP/servlets/Java before.) > >Almost all pages on the site will share some common (and >static) html

Re: 'isa' keyword

2005-09-01 Thread Fuzzyman
On 1 Sep 2005 00:52:54 -0700, "talin at acm dot org" <[EMAIL PROTECTED]> wrote: >Although I realize the perils of even suggesting polluting the Python >namespace with a new keyword, I often think that it would be useful to >consider defining an operator for testing whether or not an item is a >mem

ANN: ConfigObj 4.0.0 Beta 4

2005-09-08 Thread Fuzzyman
Hello Pythoneers, ConfigObj 4.0.0 has a beta 4 release. This fixes a couple of moderately serious bugs - so it's worth switching to. http://cheeseshop.python.org/pypi/ConfigObj http://www.voidspace.org.uk/python/configobj.html http://www.voidspace.org.uk/cgi-bin/voidspace/downman.py?file=configob

ANN: pythonutils 0.2.1

2005-09-09 Thread Fuzzyman
Hello Python Folk, pythonutils 0.2.1 is now available. This is a *major* update since 0.1.0 http://www.voidspace.org.uk/python/modules.shtml#pythonutils http://www.voidspace.org.uk/cgi-bin/voidspace/downman.py?file=pythonutils-0.2.1.win32.zip http://www.voidspace.org.uk/cgi-bin/voidspace/downman

Re: Why do Pythoneers reinvent the wheel?

2005-09-10 Thread Fuzzyman
Michael Amrhein wrote: > Stefano Masini schrieb: > > On 8 Sep 2005 08:24:50 -0700, Fuzzyman <[EMAIL PROTECTED]> wrote: > > > >>What is pythonutils ? > >>= > >>ConfigObj - simple config file handling > >>validate - valida

CGIHTTPServer, popen3, and windoze

2005-09-11 Thread Fuzzyman
an shed any light on this behavior ? All the best, Fuzzyman http://www.voidspace.org.uk/python P.S. I've also patched CGIHTTPServer so that it can handle paths wih spaces and CGIs in subdirectories of the 'cgi-bin' folder. I'll *suggest* these changes to the maintainers

Re: Predicting Thumbnail Sizes from PIL

2005-09-11 Thread Fuzzyman
ly first, and it then shrinks the > resulting image vertically: > > >>> 816 * 697 / 800 > 710 > >>> 697 * 697 / 710 > 684 > Thanks ! This was also helpful to me. Fuzzyman http://www.voidspace.org.uk/python > -- http://mail.python.org/mailman/listinfo/python-list

Re: First release of Shed Skin, a Python-to-C++ compiler.

2005-09-12 Thread Fuzzyman
ing duck typing for example. I'm not sure if I've got *any* code that doesn't use exceptions somewhere ;-) All the best, Fuzzyman http://www.voidspace.org.uk/python/index.shtml > > thanks! > mark. -- http://mail.python.org/mailman/listinfo/python-list

Re: First release of Shed Skin, a Python-to-C++ compiler.

2005-09-13 Thread Fuzzyman
ing the more dynamic features of Python for 'compilation' is a possibly worthwhile tradeoff. How easy is it going to be to call your c++ code from Python (and vice versa) ? Fuzzyman http://www.voidspace.org.uk/python/index.shtml -- http://mail.python.org/mailman/listinfo/python-list

Re: CGIHTTPServer, popen3, and windoze

2005-09-14 Thread Fuzzyman
Fuzzyman wrote: > Hello all, > > I may well post this a a bug on Monday (after testing with Python 2.3) > - but I thought I'd post here to see if anyone has any ideas. > Hmm... testing on Python 2.3 I *don't* have the same problem - but it's very frustrating under

Pythonutils 0.2.2 , ConfigObj 4.0.0 Beta 5, odict 0.1.1

2005-09-15 Thread Fuzzyman
utils.html __ http://www.voidspace.org.uk/python/odict.html __ http://www.voidspace.org.uk/python/configobj.html __ http://www.voidspace.org.uk/python/modules.shtml (The pythonutils update contains odict 0.1.1 *and* ConfigObj Beta 5) All the best, Fuzzyman http://www.voidspace.org.uk/python/

Re: AsciiDoc 6.0.0

2005-02-08 Thread Fuzzyman
Donnal Walter wrote: > Stuart Rackham wrote: > > AsciiDoc > > > > AsciiDoc is an uncomplicated text document format for writing short > > documents, articles, books and UNIX man pages. > > > > AsciiDoc files can be translated to HTML (with or without > > stylesheets), DocBook (articles, b

[ANN] Movable Python 0.4.6

2005-02-10 Thread fuzzyman
A new release of Movable Python is available - 0.4.6 This fixes a few issues including a bug in the Python 2.2 support, and a fix for a psyco/IPython incompatibility issue. We have a new icon and logo thanks to Aidan Ashby - http://aidan.voidspace.org.uk Due to bugfixes (in movpy) we can now off

Re: PyINI : Cross-Platform INI parser

2005-02-11 Thread Fuzzyman
Giovanni Bajo wrote: > SeSe wrote: > > > hi, every one, > > > > I started a opensource project PyINI for corss-platform *.ini parsing > > at http://sourceforge.net/projects/pyini/ > > > > I have released a simple alpha version, which can read *.ini, with > > some extended features such as "key=val

Re: - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Fuzzyman
Ilias Lazaridis wrote: > I'm a newcomer to python: > > [EVALUATION] - E01: The Java Failure - May Python Helps? > http://groups-beta.google.com/group/comp.lang.python/msg/75f0c5c35374f553 > > - > > I've download (as suggested) the python 2.4 installer for windows. > > Now I have problems to compil

Re: AES crypto in pure Python?

2005-02-14 Thread Fuzzyman
[EMAIL PROTECTED] wrote: > I'm looking for an implementation of AES (the Advanced Encryption > Standard) in pure Python. I'm aware of pycrypto, but that uses C code. > I'm hoping to find something that only uses Python...I'm willing to > trade speed for portability, since my application is desig

Re: - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Fuzzyman
Ilias Lazaridis wrote: [snip..] > >> b) Why does the Python Foundation not ensure, that the python > >> source-code is directly compilable with MinGW? > > > > Why should they? It already runs on Windows with a freely available > > compiler. > > Obvious: Courtesy [against the userbase needs] > > O

Re: mxCGIPython binaries for Python 2.3.5

2005-02-14 Thread Fuzzyman
Oleg Broytmann wrote: > On Fri, Feb 11, 2005 at 10:13:21AM -0800, Titus Brown wrote: > > what does mxCGIPython do? I can't find anything at that Web site that > >http://www.egenix.com/files/python/mxCGIPython.html > > > doesn't involve downloading & unpacking a file. > >It is unpackable,

Re: saving a text file

2005-02-14 Thread Fuzzyman
Hmmm.. I can't guess what format you will create the 'tables' in, or what format you want to save them in. You need the pyserial module to read data from the serial port - I assume you have already discovered that ? Writing a text file to disc is *extremely* trivial Turning a table - (li

[ANN] ConfigObj update - v3.2.5

2005-02-15 Thread fuzzyman
ConfigObj has had another update - now version 3.2.5 This update includes 3 bugfixes and several new features. Because of the bugfixes it's reccomended for all users. New features include - lines can now be broken over two or more lines, initial and final comments in a config file are preserved (o

Re: [newbie]How to install python under DOS and is there any Wxpython can be installed under dos?

2005-02-16 Thread Fuzzyman
Hans Nowak built some old DOS binaries... although I believe on his website he points to a more 'modern' projects. Sorry - restricted internet or I would check for you. Try http://zephyrfalcon.org Regards, Fuzzy http://www.voidspace.org.uk/python/index.shtml -- http://mail.python.org/mailman/l

Re: [newbie]How to install python under DOS and is there any Wxpython can be installed under dos?

2005-02-17 Thread Fuzzyman
john san wrote: > Actually the "windows" running very good under the xbox-NTOS via > xboxmediacenter. its just limited functions(not easy to programming the > "windows" prog.), if we can find WxPython-like can be ported (I can import * > from it to my xboxPython) )it will be a great great ...

Re: Help needed for to build a CGI shell interface.

2005-02-18 Thread Fuzzyman
Tim Roberts wrote: > Slalomsk8er <[EMAIL PROTECTED]> wrote: > > > >What do I want to do? I am building an admintool (deamon and client) and > >for this I need to script a interface to the shell, with the console > >ansi escape sequences, whitch is fully transparent for the user. > > Do you honest

Keyword Named Args

2005-02-21 Thread Fuzzyman
A colleague and I have built a Validator object for use with ConfigObj and other general schema situations. A config file is used to store a schema that specifies how to test a value that it is valid. keyword=function(param1, param2) e.g. you could specify : size = range(30, 50) This means that

functions and named keyword arguments

2005-02-21 Thread Fuzzyman
Sorry if this is a duplicate - I use the google interface and sometiems it screws up (not showing stuff you've posted *or* not posting it). Before you ask it's because at work I have no NNTP and *heavily* restricted http. A colleague and I have built a Validator object for use with ConfigObj and o

Re: functions and named keyword arguments

2005-02-22 Thread Fuzzyman
Diez B. Roggisch wrote: > > Sorry if this is a duplicate - I use the google interface and sometiems > > it screws up (not showing stuff you've posted *or* not posting it). > > Before you ask it's because at work I have no NNTP and *heavily* > > restricted http. > > It is - so I requote my answer :

Re: Memory Based File Objects

2005-02-22 Thread Fuzzyman
Quick reply... check out the StringIO module Regards, Fuzzy http://www.voidspace.org.uk/python/index.shtml -- http://mail.python.org/mailman/listinfo/python-list

Re: UTF-8 / German, Scandinavian letters - is it really this difficult?? Linux & Windows XP

2005-02-22 Thread Fuzzyman
Mike Dee wrote: > A very very basic UTF-8 question that's driving me nuts: > > If I have this in the beginning of my Python script in Linux: > > #!/usr/bin/env python > # -*- coding: UTF-8 -*- > > should I - or should I not - be able to use non-ASCII characters > in strings and in Tk GUI button la

Re: Problem with the sort() function

2005-02-22 Thread Fuzzyman
Sion Arrowsmith wrote: > clementine <[EMAIL PROTECTED]> wrote: > >Thanx Nick...I forgot to mention im using python 2.2 and along with a host > >of other things it doesnt seem to have the enumarate built in function > >:(:(:(...is it possible to replace it by something else? I dont think > >simulat

Re: UTF-8 / German, Scandinavian letters - is it really this difficult?? Linux & Windows XP

2005-02-22 Thread Fuzzyman
Max M wrote: > Fuzzyman wrote: > > Mike Dee wrote: > > >>#!/usr/bin/env python > >># -*- coding: UTF-8 -*- > > > This will mean string literals in your source code will be encoded as > > UTF8 - if you handle them with normal string operations you might

Re: Dealing with config files what's the options

2005-02-23 Thread Fuzzyman
Hello Tom, Tom Willis wrote: > How are the expert pythoneers dealing with config files? > > Is there anything similair to .net's config files or java's .properties? > I'm not familiar with those config file formats - but ConfigObj certainly makes handling config files easy. It uses the ini type

Re: Style guide for subclassing built-in types?

2005-02-23 Thread Fuzzyman
I guess print is using the __repr__ (or __str__ ?) methods of lsit - which you will need to override as well. Regards, Fuzzy http://www.voidspace.org.uk/python/index.shtml -- http://mail.python.org/mailman/listinfo/python-list

Re: user interface for python

2005-02-23 Thread Fuzzyman
wax is a nice layer on top of wx - it maintains cross-platform-ability and is easier to learn ! See http://zephyrfalcon.org Regards, Fuzzy http://www.voidspace.org.uk/python/index.shtml -- http://mail.python.org/mailman/listinfo/python-list

Re: Style guide for subclassing built-in types?

2005-02-23 Thread Fuzzyman
[EMAIL PROTECTED] wrote: > Fuzzyman wrote: > > I guess print is using the __repr__ (or __str__ ?) methods of lsit - > > which you will need to override as well. > > > > Regards, > > > > Fuzzy > > http://www.voidspace.org.uk/python/index.shtml &g

Re: Attaching to a Python Interpreter a la Tcl

2005-02-23 Thread Fuzzyman
Do you mean making the interpreter available from within a Python app ? There are various ways of doing that - you can see the SPE editor which uses pycrust as one example. http://spe.pycs.net You could also embed IPython for a good interface to the interpreter. http://ipython.scipy.net Regards,

Re: user interface for python

2005-02-23 Thread Fuzzyman
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

Re: python tutorial/projects

2005-02-24 Thread Fuzzyman
I'm looking for people to work on a couple of projects... online bookmarks manager for example Regards, Fuzzy http://www.voidspace.org.uk/python/index.shtml -- http://mail.python.org/mailman/listinfo/python-list

Re: wxpython tutorials

2005-02-25 Thread Fuzzyman
Raghul wrote: > hi, > > I want to learn Wxpython to work in windows.Is there any tutorials > available?Pls specify the link that will be easy to learn for beginers > like me I'm just learning wxPython, but rather than do it directly I'm using wax. wax is another layer that sits on top of wxPy

Re: Trees

2005-02-25 Thread Fuzzyman
Alex Le Dain wrote: > Is there a generic "tree" module that can enable me to sort and use > trees (and nodes). Basically having methods such as .AddNode(), > .GetAllChildren(), .FindNode() etc. > > Is this handled natively with any of the core modules? > > cheers, Alex. > > -- > Poseidon Scientifi

Re: Hey, How Do I Distribute my New Completed Python Project?

2005-02-28 Thread Fuzzyman
As Swaroop mentions, there is a relatively simple standard for distributing extension modules. For actual applications - convenience is the only guideline :-) Regards, Fuzzy http://www.voidspace.org.uk/python/index.shtml -- http://mail.python.org/mailman/listinfo/python-list

<    1   2   3   4   5   6   7   8   9   >