Re: How do you control _all_ items added to a list?

2005-02-28 Thread Fuzzyman
Xif wrote: > Hi > > I want to have control over all items added to a list. > > The first attempt was to subclass list and override its .append() > method. > > Problem is, there are plenty of other ways the list can have items > added to it - e.g. extend, insert - and theyr'e not at all affected by

Re: Newbie question

2005-02-28 Thread Fuzzyman
Functions for manipulating images are contained in the 'PIL' extension - the Python Imaging Library. You'll find it with google. regards, Fuzzy http://www.voidsapce.org.uk/python/index.shtml -- http://mail.python.org/mailman/listinfo/python-list

Re: binutils "strings" like functionality?

2005-03-03 Thread Fuzzyman
I don't know anything about binutils strings, other than that a quick google reveals that you can search binary files for printable strings with it. In python the following code will read a binary file into a single string : long_string = open(filename, 'rb').read() You can then slice long_strin

Re: looking for case insesitive dictionary

2005-03-10 Thread Fuzzyman
http://www.voidspace.org.uk/python/modules.shtml#caseless Case Insensitive Dictionary, List and Sort Regards, Fuzzy http://www.voidspace.org.uk/python/index.shtml -- http://mail.python.org/mailman/listinfo/python-list

Python 2.4, distutils, and pure python packages

2005-03-10 Thread Fuzzyman
Python 2.4 is built with Microsoft Visiual C++ 7. This means that it uses msvcr7.dll, which *isn't* a standard part of the windows operating system. This means that if you build a windows installer using distutils - it *requires* msvcr7.dll in order to run. This is true even if your package is a pu

[ANN] ConfigObj Update and New PythonUtils Package

2005-03-10 Thread Fuzzyman
te - schema validation system * StandOut - flexible output object (simple logging and verbosity control) * pathutils - for working with paths and files * cgiutils - cgi helpers Regards, Fuzzyman http://www.voidspace.org.uk/python/index.shtml -- http://mail.python.org/mailman/listinfo/python-list

[ANN] Pythonutils updates - approx, approxClientproxy, caseless etc

2005-03-10 Thread Fuzzyman
Various of the Voidspace Pythonutils modules have been updated. http://www.voidspace.org.uk/python/index.shtml approx.py has been updated (Python CGI Proxy script) approxClientproxy.py version 2.0 is available listquote, caseless, linky, and downman have all been updated. *MAJOR UPDATE* approx

Re: Python 2.4, distutils, and pure python packages

2005-03-11 Thread Fuzzyman
Thomas Heller wrote: > [CC to python-dev] > "Fuzzyman" <[EMAIL PROTECTED]> writes: > > > Python 2.4 is built with Microsoft Visiual C++ 7. This means that it > > uses msvcr7.dll, which *isn't* a standard part of the windows operating > > syste

Re: PyAsm

2005-03-11 Thread Fuzzyman
Won't docstrings be removed in optimised bytecode ? that would stuff things up. Regards, Fuzzy http://www.voidspace.org.uk/python/index.shtml -- http://mail.python.org/mailman/listinfo/python-list

Re: modifiable config files in compiled code?

2005-03-11 Thread Fuzzyman
Tom Willis wrote: > ConfigParser works on linux I'm pretty sure. I just ran Ipython > imported it and loaded a config file. > > I don't remember anything in the docs that said otherwise. > ConfigParser is pure python - so it's cross platform. ConfigObj is nicer though :-) http://www.voidspace.org

Re: Passing values to another script using CGI

2005-03-14 Thread Fuzzyman
Hello Mike, Mike Wimpe wrote: > Without creating a form, how do i pass a value to another script? > > I would like to pass: > > group = "Oranges" > > to another script or at least just 'group' and initialize it in the > first script. > Do you want to pass it *from* a CGI script or *two* a CGI scr

Re: Working on a log in script to my webpage

2005-03-14 Thread Fuzzyman
Pete. wrote: > Hi all. > > Unfortunaly it looks like I dont have to skill to make a secure log in, cant > figure out how the code has to look like, so guess my webpage has to live > with a security issue. > > Thanks for the effort you put into teaching me the use of cookies. > I've written a

Encodings and printing unicode

2005-03-14 Thread Fuzzyman
How does the print statement decode unicode strings itis passed ? (By that I mean which encoding does it use). Under windows it doesn't appear to use defaultencoding. On my system the default encoding is ascii, yet the terminal encoding is latin1 (or cp1252 or whatever, but not ascii). This means

Re: urllib's functionality with urllib2

2005-03-14 Thread Fuzzyman
Monty wrote: > Hello, > Sorry for this maybe stupid newbie question but I didn't find any > answer in all my readings about python: > > With urllib, using urlretrieve, it's possible to get the number of > blocks transferred and the total size of the file. > > Is it possible to get those informatio

Re: will it cause any problems to open a read-only file & not close it?

2005-03-14 Thread Fuzzyman
Sara Khalatbari wrote: > Dear friends > In a code, I'm opening a file to read. Like : > lines = open(filename).readlines() > & I'm never closing it. > I'm not writing in that file, I just read it. > > Will it cause any problems if you open a file to read > & never close it? > > Under CPython

Re: urllib (and urllib2) read all data from page on open()?

2005-03-14 Thread Fuzzyman
Certianly under urllib2 - handle.read(100) will read the next 100 bytes (up to) from the handle. Which is the same beahviour as the read method for files. Regards, Fuzzy http://www.voidspace.org.uk/python/index.shtml -- http://mail.python.org/mailman/listinfo/python-list

Re: Encodings and printing unicode

2005-03-14 Thread Fuzzyman
Kent Johnson wrote: > Fuzzyman wrote: > > How does the print statement decode unicode strings itis passed ? (By > > that I mean which encoding does it use). > > sys.stdout.encoding > [snip..] Aha... that's the missing piece of information. Thank you. Regards, Fuzz

Re: urllib (and urllib2) read all data from page on open()?

2005-03-14 Thread Fuzzyman
Alex Stapleton wrote: > Except wouldn't it of already read the entire file when it opened, or does > it occour on the first read()? Don't know, sorry. Try looking at the source code - it should be reasonably obvious. > Also will the data returned from > handle.read(100) be raw HTTP? In which cas

Escaping filename in http response

2005-03-14 Thread Fuzzyman
bably correct behaviour for firefox - but annoying :-) Which is the right function to escape the filename urllib.quote or urllib.quote_plus ? It's probably quote_plus... (and I'll probably try both later... but someone might answer before that) :-) Thanks Fuzzyman http://www.voidspac

Re: Escaping filename in http response

2005-03-14 Thread Fuzzyman
Nice one - thanks. Fuzzy http://www.voidspace.org.uk/python/index.shtml -- http://mail.python.org/mailman/listinfo/python-list

Re: urllib (and urllib2) read all data from page on open()?

2005-03-15 Thread Fuzzyman
Bengt Richter wrote: > On Mon, 14 Mar 2005 14:48:25 -, "Alex Stapleton" <[EMAIL PROTECTED]> wrote: > > >Whilst it might be able to do what I want I feel this to be a flaw in urllib > >that should be fixed, or at least added to a buglist somewhere so I can at > >least pretend someone other than

Re: win32 shell extension (virtual drive)

2005-03-15 Thread Fuzzyman
Not much help... but the place to be looking is in the win32 api. You'll then need to see if the functionality is already exposed in the win32 extensions by Mark Hammond - if not you can use ctypes to access it. The ctypes mailing list might be a useful place to ask questions - but it's not somethi

Truncated file without unbuffered mode

2005-03-15 Thread Fuzzyman
I use a simple python script to monitor downloads from my website. http://www.voidspace.org.uk/python/cgi.shtml#downman It serves the file in a loop using our old friend : ``sys.stdout.write(chunk)`` (After sending the relevant headers with filename and filesize of course). I am testing this lo

Python CGI discussion Group

2005-03-15 Thread Fuzzyman
There is a `web design` group over on google-groups. http://groups-beta.google.com/group/wd It's brief is for ``Discussion of web design (html, php, flash, wysiwig, cgi, perl, python, css, design concepts, etc.).``, but it's very quiet. I'd love to see it become a discussion forum for Python CGIs

Re: Why tuple with one item is no tuple

2005-03-15 Thread Fuzzyman
('1',) is a tuple... you need the comma to make it a tuple. regards, Fuzzy http://www.voidspace.org.uk/python/index.shtml -- http://mail.python.org/mailman/listinfo/python-list

Re: multiple import of a load of variables

2005-03-16 Thread Fuzzyman
Torsten Bronger wrote: > Hallöchen! > > I have a file that looks a little bit like a C header file with a > long list of variables (actually constants) definitions, e.g. > > VI_ATTR_TIMO = 0x54378 > ... > > Actually I need this in a couple of low-level modules that are > imported into the main mod

Re: multiple import of a load of variables

2005-03-16 Thread Fuzzyman
Torsten Bronger wrote: > Hallöchen! > > "Fuzzyman" <[EMAIL PROTECTED]> writes: > > > [...] > > > > I'm not entirely clear what you are trying to do > > The following: "variables.py" looks like this > > a = 1 > b = 2

Re: ConfigParser

2005-03-17 Thread Fuzzyman
Hmm interesting situation. The following will work with ConfigObj : [Passwords] "2:5020/758" "2:5020/794" http://www.voidspace.org.uk/python/configobj.html Regards, Fuzzy -- http://mail.python.org/mailman/listinfo/python-list

Re: Obfuscated Python: fun with shadowing builtins

2005-03-17 Thread Fuzzyman
very good. Regards, Fuzzy http://www.voidspace.org.uk/python/index.shtml -- http://mail.python.org/mailman/listinfo/python-list

Re: Ideas for projects

2004-12-09 Thread Fuzzyman
with individual developers. Anyway, whatever you do, good luck. Regards, Fuzzyman -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL for Windows for Python 2.4

2004-12-09 Thread Fuzzyman
So you've built PIL for windows, Python 2.4 ? Any chance of sharing it ? What compiler have you configured distutils to use ? Regards, Fuzzyman -- http://mail.python.org/mailman/listinfo/python-list

Re: Upgrading Python Article

2004-12-09 Thread Fuzzyman
ils to use gcc from mingw. I'm still not sure whether that will work for python 2.4 - I had got the impression it wouldn't. On the other hand the microsoft compiler is *better* than gcc anyway :-) Regards, Fuzzyman http://www.voidspace.org.uk/atlantibots/pythonutils.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.3.5 ?

2004-12-09 Thread Fuzzyman
Fuzzy Regards, What's that phrase that includes 'hobgoblin of little minds' ? -- http://mail.python.org/mailman/listinfo/python-list

Re: cookie lib policy how-tp?

2004-12-09 Thread Fuzzyman
I think your question has already been answered - but just to clarify a couple of issues. Setting a cookie policy will only *restrict* the situations in which cookies are returned. The default is to *always* return them. Also using an MSIE instance is useful for creating a CookieJar instance with

Re: ANN: GallerPy 0.5.0

2004-12-09 Thread Fuzzyman
It's very nice looking and emminently 'hackable'. Nice one. Regards, Fuzzy http://www.voidspace.org.uk/atlantibots/pythonutils.html -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL for Windows for Python 2.4

2004-12-09 Thread Fuzzyman
If you're determined enough there are instructions here : http://www.vrplumber.com/programming/mstoolkit/ These will get you the Visual Studio 7 tools (free releases of) and tell you how to configure distutils to use it. Hefty downloads though, do not attempt this without broadband ! Regards, F

Re: Python 2.3.5 ?

2004-12-10 Thread Fuzzyman
Hello Peter, Sorry to confuse you. It was actually a reply to Stefans dig about top posting. Regards, Fuzzy -- http://mail.python.org/mailman/listinfo/python-list

Re: Tibia 0.1 DOM-based website editor

2004-12-11 Thread Fuzzyman
Interesting. I couldn't get the demo to work either by the way. A 404 error on the tba file. This is *similar* t oa project I'm about to release, Jalopy. Jalopy is a collaborative website tool - allowing a team of people to work on a website together. It uses Kupu as an online WYSIWYG HTML editor

Re: Tibia 0.1 DOM-based website editor

2004-12-11 Thread Fuzzyman
Robert Brewer wrote: > Fuzzyman wrote: > > Interesting. > > > > I couldn't get the demo to work either by the way. A 404 error on the > > tba file. > > Bah. You must've looked after I switched fom .tba to .py > Try http://www.aminus.org/rbre/tibia/demo

Re: why no python setup.py uninstall?

2004-12-13 Thread Fuzzyman
Installing new versions of modules over old versions has often caused me problems. Particularly py3exe recently. Admittedly 'uninstalling' the old version was as simple as deleting the folder from 'site-packages'. Regards, Fuzzy http://www.voidspace.org.uk/atlantibots/pythonutils.html -- h

Compiling PIL for Python 2.4

2004-12-13 Thread Fuzzyman
I'll post this to the image-sig as well, but the audience is a bit wider here. I've just upgraded to Python 2.4. I've installed the free microsoft optimising compiler and hacked distutils to use it - following the instructiosn from http://www.vrplumber.com/programming/mstoolkit/ . It works great a

Re: Compiling PIL for Python 2.4

2004-12-13 Thread Fuzzyman
Hmmm... disagree. Not eevryone who has experience of compilation (even compiling PIL) will be on the sig. The sifg is probably the 'right' place - but my experience is that a lot of htem are very low traffic. This is also a topic of general interest to many pythoners. See the number of questions r

Re: Compiling PIL for Python 2.4

2004-12-13 Thread Fuzzyman
Blimey - there's a lot of typos in my last post... ugh Regards, Fuzzy http://www.voidspace.org.uk/atlantibots/pythonutils.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Compiling PIL for Python 2.4

2004-12-13 Thread Fuzzyman
Great - and thanks for the info it was interesting messing around with the compiler but I'm not goign to do it for the heck of it !! Thanks Fuzzy http://www.voidspace.org.uk/atlantibots/pythonutils.html -- http://mail.python.org/mailman/listinfo/python-list

ANN: PyCrypto 2.0 Binary Installer

2004-12-13 Thread Fuzzyman
Because of export restrictions, Andrew is unable to offer prebuilt binary versions of his excellent PyCrypto module. I've built a windows installer for Python 2.4 Actually download it here http://www.voidspace.org.uk/atlantibots/pythonutils.html#crypto Visit PyCrypto Homepage - http://www.amk.ca

Re: PIL for Windows for Python 2.4

2004-12-13 Thread Fuzzyman
That's odd - it worked fully *both* times I've done it. I did the *full* doenload though and downloaded the 13 CAB files individually and did a local install. Regards, Fuzzy http://www.voidspace.org.uk/atlantibots/pythonutils.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Tibia 0.1 DOM-based website editor

2004-12-13 Thread Fuzzyman
The example that Robert posted is protected with http BASIC authentication (judging by the popup anyway). Part of the Jalopy toolkit is `Login Tools` that implements a CGI Login framework that can be plugged into any CGI with the addition of as little as 2 lines of code. It includes optional user

Re: anybody know how to use python to communicate with UART?

2004-12-13 Thread Fuzzyman
Have you tried pyserial ? Regards, Fuzzy -- http://mail.python.org/mailman/listinfo/python-list

ANN: Python Test Environment

2004-12-13 Thread Fuzzyman
Well sort of... More a request for comments really - to see if anyone is interested in this. http://www.voidspace.org.uk/atlantibots/pythonutils.html#testenv I've created a script that will build a 'test environment'. Windoze(tm) only as it uses py2exe. It scans your Python\Lib folder and b

Re: Python IDE

2004-12-14 Thread Fuzzyman
If you're willing to pay for one, Komodo is very good. Especially for projects. Regards, Fuzzy http://www.voidspace.org.uk/atlantibots/pythonutils.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Why are tuples immutable?

2004-12-15 Thread Fuzzyman
Wasn't part of the point, that function call returns ought to be immuntable. Otherwise you can accidentally end up modifying objects that are referenced in other places ? Obviously tuples aren't the *whole* answer... but they help. Regards, Fuzzy http://www.voidspace.org.uk/atlantibots/pythonuti

ANN: Python Test Environment

2004-12-15 Thread Fuzzyman
Well sort of... Highly experimental - I'm interested in ways of improving this. http://www.voidspace.org.uk/atlantibots/pythonutils.html#testenv I've created a script that will build a 'test environment'. Windoze(tm) only as it uses py2exe. It scans your Python\Lib folder (configurable) and

Re: ANN: Python Test Environment

2004-12-15 Thread Fuzzyman
Sorry they're not reaching google groups, which is what I'm posting from. From http://groups-beta.google.com/group/comp.lang.python posts usually show up within a few minutes. The thing is, when I posted by email it showed up in seconds... Anyway - sorry about that and thanks for letti

Re: ANN: Python Test Environment

2004-12-16 Thread Fuzzyman
This seems to work very well. I'm still tweaking the 'stdlibfinder.py' and the setup.py - but it's still ok. In some ways it acts like a basic 'Python Runtime Environment'. Part of the reason for building it was that in one of my jobs I don't have python installed and can't install new programs. I

Re: Avaliable free modules

2004-12-16 Thread Fuzzyman
No but a lot of people would like there to be. No one has (to my knowledge) come forward to do the work on it yet though (or offered the bandwidth). There is a *list* of packages available - with information and liks - called the Python Package Index. See http://www.python.org/pypi Regard

Re: Python IDE

2004-12-17 Thread Fuzzyman
Dan Perl wrote: > "Mike Meyer" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > "Dan Perl" <[EMAIL PROTECTED]> writes: > > > >> "Mike Meyer" <[EMAIL PROTECTED]> wrote in message > >> news:[EMAIL PROTECTED] > >>> A: What's the most obnoxious thing on Usenet? > >>> Q: topposting. >

Re: Step by step: Compiling extensions with MS Visual C++ Toolkit 2003 - msvccompiler-patch.txt (0/1)

2004-12-17 Thread Fuzzyman
[EMAIL PROTECTED] wrote: > Having done steps 1 to 10, I tried building Numeric-23.6. And got the > following error-msg: > > F:\install\Numeric-23.6>python setup.py build > running build > running build_py > running build_ext > building '_numpy' extension > D:\Programme\Microsoft Visual C++ Toolkit

Re: setup.py - just what is it for ?

2004-12-17 Thread Fuzzyman
You could *try* writing a cgi which did something like os.spawnv('python', ['setup.py', 'install']) (or whatever would be right without looking up the docs)... You sometimes don't need admin rights to run setup.py I would be interested in the results. Regards, Fuzzy http://www.voidspace.org.uk/

Re: setup.py - just what is it for ?

2004-12-17 Thread Fuzzyman
You could *try* writing a cgi which did something like os.spawnv('python', ['setup.py', 'install']) (or whatever would be right without looking up the docs)... You sometimes don't need admin rights to run setup.py I would be interested in the results. Regards, Fuzzy http://www.voidspace.org.uk/

Re: PIL for Windows for Python 2.4

2004-12-13 Thread Fuzzyman
Steve Holden wrote: > Fuzzyman wrote: > > > If you're determined enough there are instructions here : > > http://www.vrplumber.com/programming/mstoolkit/ > > > > These will get you the Visual Studio 7 tools (free releases of) and > > tell you how to con

Re: PIL for Windows for Python 2.4

2004-12-13 Thread Fuzzyman
Yep - when it finally works it's nice to see distutils do it's stuff ! Regards, Fuzzy http://www.voidspace.org.uk/atlantibots/pythonutils.html -- http://mail.python.org/mailman/listinfo/python-list

Re: A problem with list

2004-12-13 Thread Fuzzyman
An alternative is reading the list into a string and using my 'listquote' module. It will tun strings into lists (and vice versa) - including nested lists (lists of lists) and properly handling quoted elements. http://www.voidspace.org.uk/atlantibots/pythonutils.html It won't do integer conversio

ANN: Python Test Environment

2004-12-14 Thread Fuzzyman
Well sort of... More a request for comments really - to see if anyone is interested in this. http://www.voidspace.org.uk/atlantibots/pythonutils.html#testenv I've created a script that will build a 'test environment'. Windoze(tm) only as it uses py2exe. It scans your Python\Lib folder and b

Re: Step by step: Compiling extensions with MS Visual C++ Toolkit 2003 - msvccompiler-patch.txt (0/1)

2004-12-15 Thread Fuzzyman
Cool it's nice to see these working. I followed Mike Fletchers instructions and they worked fine for me. I used mingw to get the patch tool. I did the core SDK download by doing a 'full download' (all 13 CAB files and extraction bat separately) and a local install. This is about a 350 odd meg

Re: Step by step: Compiling extensions with MS Visual C++ Toolkit 2003 - msvccompiler-patch.txt (0/1)

2004-12-16 Thread Fuzzyman
The VC Toolkit is *better* than gcc ;-) Regards, Fuzzyman http://www.voidspace.org.uk/atlantibots/pythonutils.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Keyword arguments - strange behaviour?

2004-12-23 Thread Fuzzyman
[EMAIL PROTECTED] wrote: > > Channelling the effbot, I think he was asking what namespace context > you > > expected the expression "arg=otherfunction(x)" to be evaluated in > when > > it's used at the time of a function call to dynamically create a new > > default value for arg. > > Thanks, I rea

Re: Keyword arguments - strange behaviour?

2004-12-23 Thread Fuzzyman
[EMAIL PROTECTED] wrote: > > Channelling the effbot, I think he was asking what namespace context > you > > expected the expression "arg=otherfunction(x)" to be evaluated in > when > > it's used at the time of a function call to dynamically create a new > > default value for arg. > > Thanks, I rea

Re: Keyword arguments - strange behaviour?

2004-12-23 Thread Fuzzyman
Steven Bethard wrote: > [EMAIL PROTECTED] wrote: > > However, is there a good reason why default parameters aren't evaluated > > as the function is called? (apart from efficiency and backwards > > compatibility)? > > So, one of my really common use cases that takes advantage of the fact > that def

Re: urllib and sites that require passwds

2004-12-23 Thread Fuzzyman
USe urllib2 which will fail with an exception. You can trap this exception and using the code attribute of the exception object, determine why it failed. The error code for 'authentication required' is 401. Off the top of my head : import urllib2 req = urllib2.Request(theurl) try: handle = urllib

Re: subclassing list

2004-12-23 Thread Fuzzyman
class newList(list): def clear(self): self[:] = [] is one way. HTH Regards, Fuzzy http://www.voidspace.org.uk/python/index.shtml -- http://mail.python.org/mailman/listinfo/python-list

Re: urllib and sites that require passwds

2004-12-23 Thread Fuzzyman
damn... I'm losing my leading spaces indentation should be obvious anyway... (everything below except is indented at least one step). Fuzzy -- http://mail.python.org/mailman/listinfo/python-list

Re: extract news article from web

2004-12-23 Thread Fuzzyman
If you have a reliably structured page, then you can write a custom parser. As Steve points out - BeautifulSOup would be a very good place to start. This is the problem that RSS was designed to solve. Many newssites will supply exactly the information you want as an RSS feed. You should then use U

Re: Keyword arguments - strange behaviour?

2004-12-23 Thread Fuzzyman
Steven Bethard wrote: > Fuzzyman wrote: > > Steven Bethard wrote: > > > >>[EMAIL PROTECTED] wrote: > >> > >>>However, is there a good reason why default parameters aren't > >>>evaluated as the function is called? (apart from effici

Re: Keyword arguments - strange behaviour?

2004-12-23 Thread Fuzzyman
Steven Bethard wrote: > Fuzzyman wrote: > >>>Steven Bethard wrote: > >>>> > >>>>So, one of my really common use cases that takes advantage of the > >>>>fact that default parameters are evaluated at function definition >

Re: urllib and sites that require passwds

2004-12-23 Thread Fuzzyman
Ishwor wrote: > On 23 Dec 2004 06:46:50 -0800, Fuzzyman <[EMAIL PROTECTED]> wrote: > > damn... I'm losing my leading spaces indentation should be obvious > We'll forgive you for that. It was from "top-of-your-head" ~;-) > Hey - I put the indentation

Re: Keyword arguments - strange behaviour?

2004-12-28 Thread Fuzzyman
Steven Bethard wrote: > Fuzzyman wrote: > > It wasn't that part of the example that I thought was over complex. > > (although it's not a 'pattern' I use often). You suggested that if we > > had dynamic evaluation of default values, you would have to r

Re: Python + Lisp integration?

2004-12-29 Thread Fuzzyman
Simo Melenius wrote: > Hi, > > I'm wondering (after a bit of googling) whether there exists a Python > binding to any open source Lisp environment (like librep or some > Scheme or Common Lisp implementation) that could be recommended for > non-toy use? > > My intention would be to use the Lisp env

Re: ANN: GallerPy 0.6.0

2004-12-29 Thread Fuzzyman
Nice one Freddie. You beat me to it - I had adding a 'header_file' type thingy to gallerpy on my list of things to do. gallerpy will be replacing my static galleries on voidspace 'soon'. Regards, Fuzzy http://www.voidspace.org.uk/python/index.shtml -- http://mail.python.org/mailman/listinfo/pyth

Re: portable text user interface

2004-12-29 Thread Fuzzyman
Miki Tebeka wrote: > Hello Maxim, > > > Are there widely used and recommended Python libraries that will > > let me makes a portable text user interface? > If you just need a text-like interface you can use Tkinter. > See (shameless plug) http://developer.berlios.de/projects/bcd/ and > http://deve

Re: what would you like to see in a 2nd edition Nutshell?

2004-12-29 Thread Fuzzyman
I second that Regards, Fuzzy http://www.voidspace.org.uk/python/index.shtml -- http://mail.python.org/mailman/listinfo/python-list

Re: portable text user interface

2004-12-30 Thread Fuzzyman
Miki Tebeka wrote: > Hello Fuzzyman, > > > > > Are there widely used and recommended Python libraries that will > > > > let me makes a portable text user interface? > > > If you just need a text-like interface you can use Tkinter. > > > See (sham

Re: Parsing a search string

2004-12-31 Thread Fuzzyman
That's not bad going considering you've only run out of alcohol at 6 in the morning and *then* ask python questions. Anyway - you could write a charcter-by-character parser function that would do that in a few minutes... My 'listquote' module has one - but it splits on commas not whitespace. Soun

Re: HTML editor component?

2005-03-21 Thread Fuzzyman
t. Regards, Fuzzyman http://www.voidspace.org.uk/python/index.shtml -- http://mail.python.org/mailman/listinfo/python-list

UTF Questions

2005-03-21 Thread Fuzzyman
(recently?) been expanded to include new character sets. This means that the latest unicode standard can't be fully supported with 2 bytes per character. As far as I know though, Python doesn't (yet) support the extended version of unicode anyway ? Am I correct ? Best Rea

Re: UTF Questions

2005-03-22 Thread Fuzzyman
Thanks Serge. Regards, Fuzzy http://www.voidspace.org.uk/python/index.shtml -- http://mail.python.org/mailman/listinfo/python-list

Re: looking for programmer

2005-03-24 Thread Fuzzyman
I'd also be interested... Regards, Fuzzy http://www.voidspace.org.uk/python -- http://mail.python.org/mailman/listinfo/python-list

Re: Distributing closed source modules

2005-03-25 Thread Fuzzyman
Dave Brueck wrote: > Jiri Barton wrote: [snip..] Hello Dave, > > Protecting code in any language is pretty tough and/or futile, but you can > Google the archives if you're interested in reading more on that. > It's certainly something lot's of people are interested in. I guess it depends who yo

Re: Distributing closed source modules

2005-03-29 Thread Fuzzyman
Dave Brueck wrote: > Fuzzyman wrote: > > Dave Brueck wrote: > > It's certainly something lot's of people are interested in. I guess it > > depends who your audience is. If ytour code isn't for *mass* > > distribution - the chances of people puttin

Re: author index for Python Cookbook 2?

2005-03-29 Thread Fuzzyman
Andrew Dalke wrote: > Is there an author index for the new version of the > Python cookbook? As a contributor I got my comp version > delivered today and my ego wanted some gratification. > I couldn't find my entries. > > Andrew > [EMAIL

Re: What's the best GUI toolkit in Python,Tkinter,wxPython,QT,GTK?

2005-03-30 Thread Fuzzyman
Undoubtably Wax :-) Easier to learn than TKinter, with none of the limitations (it's built on top of wxPython). See http://zephyfalcon.org I've just started using it and I'm really impressed. Best Regards, Fuzzy http://www.voidspace.org.uk/python -- http://mail.python.org/mailman/listinfo/pyth

Re: What's the best GUI toolkit in Python,Tkinter,wxPython,QT,GTK?

2005-03-30 Thread Fuzzyman
True enough :-) Thanks Fuzzy http://www.voidspace.org.uk/python -- http://mail.python.org/mailman/listinfo/python-list

Re: author index for Python Cookbook 2?

2005-03-30 Thread Fuzzyman
Premshree Pillai wrote: > There's an index here: http://harvestman.freezope.org/cookbook/creds.html > > But dunno if all the recipes were finally included. Maybe somebody > (Alex?) can confirm? > > [snip..] Well - my copy just arrived :-) Three of my recipes are in - but one has been merged with

Python Google Server

2005-04-05 Thread fuzzyman
I've hacked together a 'GoogleCacheServer'. It is based on SimpleHTTPServer. Run the following script (hopefully google groups won't mangle the indentation) and set your browser proxy settings to 'localhost:8000'. It will let you browse the internet using google's cache. Obviously you'll miss image

Re: Python Google Server

2005-04-05 Thread Fuzzyman
vegetax wrote: > it works on opera and firefox on linux, but you cant search in the cached > google! it would be more usefull if you could somehow search "only" in the > cache instead of putting the straight link. maybe you could put a magic url > to search in the cache, like search:"search terms"

Re: Python Google Server

2005-04-05 Thread Fuzzyman
Another change - change the line `dotloc = url.find('.') + 1` to `dotloc = url.rfind('.') + 1` This makes it find the last '.' in the url Best Regards, Fuzzy http://www.voidspace.org.uk/python -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Google Server

2005-04-05 Thread Fuzzyman
Of course - sorry. Thanks for the fix. Out of interest - why are you using this... just for curiosity, or is it helpful ? Regards, Fuzzy http://www.voidspace.org.uk/python -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Google Server

2005-04-05 Thread Fuzzyman
Note - there are a couple of *minor* chanegs to this. See the online python cookbok, the thread on comp.lang.python or http://www.voidspace.org.uk/python/weblog/index.shtml -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Google Server

2005-04-05 Thread Fuzzyman
The difficulty is 'on some other machine'... there's a fantastic python CGI proxy called approx - http://www.voidspace.org.uk/python/cgi.shtml#approx The trouble is the current policy is 'whitelist only'... so I need the proxy installed on a server that is *on the whitelist*... which will take a l

Re: Python Google Server

2005-04-06 Thread Fuzzyman
vegetax wrote: > Fuzzyman wrote: > > > Of course - sorry. Thanks for the fix. Out of interest - why are you > > using this... just for curiosity, or is it helpful ? > > because is fun to surf on the google cache, =) Ha - cool ! The bizarre thing is, that for me it&#x

[ANN] Voidspace Pythonutils Updates

2005-04-08 Thread Fuzzyman
Lots of updates to the Voidspace modules and recipes. Update to the Firedrop plugins see : http://www.voidspace.org.uk/python/programs.shtml#firedrop New version of FireSpell the spell checker (based on PyEnchant by Ryan Kelly) New plugin called FireMail which lets you send blog entries (or articl

<    1   2   3   4   5   6   7   8   9   >