Re: Survey: improving the Python std lib docs

2017-05-22 Thread rzed
A portion of this thread seems to be focusing on what key word args parameters actually mean, in the Python sense. There is documentation for that, and a modicum of experience with Python makes this a relatively simple question and answer. However, when docs for a specific function or method spe

Re: Survey: improving the Python std lib docs

2017-05-16 Thread rzed
On Friday, May 12, 2017 at 6:02:58 AM UTC-4, Steve D'Aprano wrote: > One of the more controversial aspects of the Python ecosystem is the Python > docs. Some people love them, and some people hate them and describe them as > horrible. > [...] One thing I would love to see in any function or class

Difficulty with ez_setup.py

2014-01-07 Thread Rzed
ee the error message above. It's been awhile since I last installed ez_install, and I remember it being a pain, but I don't remember this issue. What am I doing wrong? On a possibly related note, is there a specific place that ez_setup.py is expected to be in when this is run? -- rzed -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3 syntax error question

2011-06-26 Thread rzed
steve+comp.lang.pyt...@pearwood.info wrote in news:4e074768$0$29982$c3e8da3$54964...@news.astraweb.com: > rzed wrote: > >> I've tried to install PySVG in a Python 3 setting, and I get a >> few errors on the build. Most are easy to fix, but this one I

Python 3 syntax error question

2011-06-26 Thread rzed
e. I'm new to Py3, so maybe there's some obvious thing I'm not seeing here. Does anyone have any suggestions? -- rzed -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: PyGUI 2.5

2011-06-17 Thread rzed
from distutils_extensions import pygui_build_py ImportError: No module named distutils_extensions -- rzed -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Card alternatives?

2011-06-13 Thread rzed
s to all of you for the interesting responses. As is so often the case with Python, there are many options, and many possible approaches to solutions for the same problem. I have some reading to do, I see. -- rzed -- http://mail.python.org/mailman/listinfo/python-list

Python Card alternatives?

2011-06-11 Thread rzed
ely, and it has some points of interest. I much prefer Python as a language, but Rebol View's layout specifications are wonderfully concise, and the support code seems to be fairly straightforward as well. Has anyone tried to mimic their approach in Python? -- rzed -- http://mail.py

Re: Parse config file and command-line arguments, to get a single collection of options

2011-05-28 Thread rzed
7;: 'value'} group2 = {'b': 'beta', 'name': 'doogie howser'} size = (400, 200) name = 'waldo' ... while >python @test.spec count=32 name=waldo temp=Vitalis sub='' dream -k count = 32 _vars = ['dream'] log = 'test.log' temp = 'Vitalis' _switches = ['k'] name = 'waldo' group1 = {'a': 'alpha', 'key': 'value'} group2 = {'b': 'beta', 'name': 'doogie howser'} size = (400, 200) sub = '' What the program does with the results is up to it, of course. -- rzed -- http://mail.python.org/mailman/listinfo/python-list

Re: Purely historic question: VT200 text graphic programming

2011-03-13 Thread rzed
Anssi Saari wrote in news:vg3tyf75eq1@pepper.modeemi.fi: > rzed writes: > >> Did you say "was"? The last time I did any programming on a VMS >> system was ... about 5 1/2 hours ago. Our shop runs OpenVMS now, >> programs mostly in C and BASIC. I'v

Re: Purely historic question: VT200 text graphic programming

2011-03-11 Thread rzed
on a VMS system was ... about 5 1/2 hours ago. Our shop runs OpenVMS now, programs mostly in C and BASIC. I've quietly insinuated Python into the mix over the last few months, and that has helped my sanity considerably. I did use the curses library with Vax C years ago, though onl

Re: The Disappearing Program?

2010-02-20 Thread rzed
our system is set. If you click on Tools . Folder Options . View you should see a checkbox for the "Hide extensions for known file types" option. Uncheck it, and the disappearing program will return to view. This is a separate issue for why snowball.py executes when you enter "sn

Re: Raw strings as input from File?

2009-12-01 Thread rzed
iteral, then maybe it does the same. It still seems weird to me. I can accept that '\1' means x01, but \10 seems to be expanded to \010 and then translated from octal to get to x08. That's just strange. I'm sure it's documented somewhere, but it's not easy to search for. Oh, and this: >>> '\7' '\x07' >>> '\70' '8' ... is realy odd. -- rzed -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: PyGUI 2.0.5

2009-04-26 Thread rzed
apped in Events.py. Does that mean there is no way to signal such an event? Is that a QT or PyQt limitation? -- rzed Groping nearsightedly through the MiaSma... -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: PyGUI 2.0.4

2009-04-23 Thread rzed
David Robinow wrote in news:mailman.4403.1240449918.11746.python-l...@python.org: > On Wed, Apr 22, 2009 at 8:50 PM, rzed wrote: >> Greg Ewing wrote in >> news:49edb69f.7070...@canterbury.ac.nz: >> >>> PyGUI 2.0.4 is available: >>> >>>    http:/

Re: ANN: PyGUI 2.0.4

2009-04-22 Thread rzed
e it would be obvious to me what to do to get it working. And it is for people like me that I want to see it work. I really don't want to have to spend more than a few minutes investigating the nuances of a windowing system. I just want to be able to put up a convenient front end for a program. -- rzed -- http://mail.python.org/mailman/listinfo/python-list

Re: Rough draft: Proposed format specifier for a thousands separator

2009-03-22 Thread rzed
ltin > in Py2.6 and Py3.0: > http://docs.python.org/library/string.html#formatspec > [...] > Comments and suggestions are welcome but I draw the line at > supporting Mayan numbering conventions ;-) Is that inclusive or exclusive? -- rzed -- http://mail.python.org/mailman/listinfo/python-list

Re: Scanning a file character by character

2009-02-22 Thread rzed
t_name = re.split("(\w+)", "The quick brown fox jumps, and falls over.")[1::2] >>> list_name[2] 'brown' You see, temporary variables are set. Their names are spelled 'list_name[x]', where x is an index into the list. If your plan was instead to have predefined names of variables, what would they be called? How many would you have? With list variables, you will have enough, and you will know their names. -- rzed -- http://mail.python.org/mailman/listinfo/python-list

Re: Import, site packages, my modules, Windows vs. Linux

2008-06-07 Thread rzed
there before you wipe out that directory tree, etc. Instead, just set up another directory containing your code and add that to your PYTHONPATH environment variable string. That will be unaffected by the Python version you're running, and will be available for multiple versions, if you run more than one. -- rzed -- http://mail.python.org/mailman/listinfo/python-list

Re: Doesn't know what it wants

2008-01-26 Thread rzed
e 2d vectors > 2. it should return a vector with x=0 and y=0 > 3. That's what it's done before. > 4. trying it in the interpreter seems to show that it returns a > vec2d with zero length. as it should. > 5.cp.cpMomentForCircle seems to expect a vec2d. I'm baseing that > on a functioning demo that uses the exact same line. > > I guess that the vec2d I've got is not the one it wants. How do > I tell the difference? I'll go look at all the imports. > Are you passing the class or an instance of the class? I'd bet the former, but it should be the latter. -- rzed -- http://mail.python.org/mailman/listinfo/python-list

Re: may be a bug in string.rstrip

2007-11-22 Thread rzed
"120.exe".rstrip('x.e') or "120.exe".rstrip('ab.cdefghijklmnopqrstuvwxyz') In other words, by passing ".torrent" as an argument, you cause the function to remove and of the characters in this set: [.toren] from the end of the string. Not surprisingly, it did remove ".torrent", but also the trailing 'e' from 'exe'. Since 'x' is not in that set of characters, the function stopped there. -- rzed -- http://mail.python.org/mailman/listinfo/python-list

Re: What is python?????

2007-11-19 Thread rzed
y I responded to the post. Do we all really have the same view of what Python actually is? Or what it could be? -- rzed -- http://mail.python.org/mailman/listinfo/python-list

Re: What is python?????

2007-11-18 Thread rzed
ell. Some people conflate these meanings of "Python", which can lead to confusion at times. Much of the crowdedness of the group has to do with discussion related to the batteries-included features and to the other packages written to run in the Python environment. Hope that h

Re: startswith( prefix[, start[, end]]) Query

2007-09-08 Thread rzed
ec per loop 100 loops, best of 3: 0.513 usec per loop 100 loops, best of 3: 0.514 usec per loop 100 loops, best of 3: 0.515 usec per loop In other words, the shorter name did seem to affect the timings, but in a negative way. Why it would actually change at all is beyond me, but it is co

Re: Why is this loop heavy code so slow in Python? Possible Project Euler spoilers

2007-09-02 Thread rzed
[EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: > The puzzle is: p is the perimeter of a right angle triangle with > integral length sides, {a,b,c}. which value of p < 1000, is the > number of solutions {a,b,c} maximised? > > Here's my python code: > > #!/usr/local/bin/python > > solutions

Re: SimplePrograms challenge

2007-06-14 Thread rzed
>>> for ix in range(10): ... print iter_primes() Not what you might expect. Later: >>> for ix in range(10): ... print iter_primes().next() Hm ... and so on. In much of Python's documentation, and in this case, an occasional working example of use would go FAR in aiding understanding of the underlying concept. -- rzed -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and GUI

2007-05-26 Thread rzed
hon should accommodate to that. Unless that happens, we'll see more of what we now see: continual questions about what is the best GUI or the best Database. Because once you start building an app, you commit to the syntax of the package and you are no longer (in my view) coding in Python

Re: Printing dots in sequence ('...')

2007-05-22 Thread rzed
"Tim Williams" <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: [...] > maybe this: (on Win32, don't know about *nix) > > for x in range(10): > print '.\b', better: print '\b.', -- rzed -- http://mail.python.org/mailman/listinfo/python-list

Re: Lists vs tuples (newbie)

2007-05-21 Thread rzed
nary keys and lists cannot. I would guess (but would have to test to confirm) that tuples occupy less space for the same data. I don't know whether any differences in, say, iteration speed would be terribly significant, but I would expect tuples to be marginally faster. -- rzed -- http:

Re: Nested dictionaries trouble

2007-04-21 Thread rzed
uot;0 6 > ","Jul":"07","Aug":"08","Sep":"09","Oct":"10","Nov":"11","Dec":" 1 > 2"} > > It is this last step I'm referring to. I got close with: > httpMonths = {} > for month in months[1:]: > httpMonths[month] = str(len(httpMonths)+1) > > but the month numbers are missing the leading zero for 01-09. > Thanks! > Maybe something like: httpMonths = dict((k,"%02d" % (x+1)) for x,k in enumerate(months[1:]) ) -- rzed -- http://mail.python.org/mailman/listinfo/python-list

Re: Clean "Durty" strings

2007-04-02 Thread rzed
def withReplacements( s, flist,tlist ): for ix, f in enumerate(flist): t = tlist[ix] s = s.replace( f,t ) return s print withReplacements(' '.join(s.split()),fromlist,tolist) If the question is about efficiency or robustness or generality, then that's another set of issues, but that's for the 1.1 version to handle. -- rzed -- http://mail.python.org/mailman/listinfo/python-list

Re: Clean "Durty" strings

2007-04-02 Thread rzed
extraneous spaces can be removed by tokenizing the string and rejoining the tokens. Replacing portions of a string with equivalents is standard stuff. It might be preferable to create a function that will accept lists of from and to strings and translate the entire string by successively applying the replacements. From what I've seen so far, that would be all the OP needs for this task. It might take a half- dozen lines of code, plus the from/to table definition. -- rzed -- http://mail.python.org/mailman/listinfo/python-list

Re: print a ... z, A ... Z, "\n"' in Python

2007-03-03 Thread rzed
quot; rstr = '' lp = chars.find(lo) hp = chars.find(hi) if lp < hp: rstr = chars[lp:hp+1] return rstr print pycrange('c','n') Lame code, though. -- rzed -- http://mail.python.org/mailman/listinfo/python-list

Re: quickly read a formated file?

2007-03-01 Thread rzed
[EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: > lialie: >> The formated file may be very popularly, but the module >> ConfigPaser doesn't handle it. Is there a way to process it >> freely? > > First try, assuming the input file can be read whole. The code > isn't much readable, it needs be

Re: Dividing integers...Convert to float first?

2007-02-04 Thread rzed
teryNumbers is not defined >> >> Damn. >> >> I guess it's back to work then. > > Remember the PEP 8 module name standards. > >>>> from __future__ import lottery_numbers > [1, 16, 19, 20, 21, 39] > My Python version is so old that I only get three numbers. I guess I'll have to upgrade. -- rzed -- http://mail.python.org/mailman/listinfo/python-list

Re: Parameter lists

2007-02-04 Thread rzed
getattr__ = __getitem__ ... __setattr__ = __setitem__ ... >>> m = dict(a=1,b=22,c=(1,2,3)) >>> p = Stats(m,x=4,y=[5,9,11]) >>> p.y [5, 9, 11] >>> p['y'] [5, 9, 11] -- rzed -- http://mail.python.org/mailman/listinfo/python-list

Re: strange test for None

2007-02-03 Thread rzed
> and i'm always getting the following error: > > t = int(ims) > ValueError: invalid literal for int(): None > > i wanna know what the hell is going on... first i tried to test > using is not None, but it makes no difference. > It appears that ims is the string &#x

Re: How do I print out in the standard output coloured lines

2007-02-02 Thread rzed
[EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: > On Feb 2, 1:16 pm, rzed <[EMAIL PROTECTED]> wrote: >> [EMAIL PROTECTED] wrote >> innews:[EMAIL PROTECTED]: >> >> > Hi, >> >> > I'm interested in printing out coloured lines of my &

Re: How do I print out in the standard output coloured lines

2007-02-02 Thread rzed
ion is and what you mean by colored lines. Does your application emit output to a plotter, an ink-jet printer, or a color laser printer? Is it a drawing program? An editor in which you want lines colored to highlight context? It might be useful to know what system you are running as well. Just a l

Re: win32com.client

2007-02-01 Thread rzed
downloaded the installer, click on it in your Windows Explorer. This will execute the installer, and the entire pywin32 package will be installed, including win32com. Try those steps, then try importing win32com again. -- rzed -- http://mail.python.org/mailman/listinfo/python-list

Re: win32com.client

2007-01-31 Thread rzed
re using Windows and have downloaded the Python.org one, then, as Gary has told you: "You want the "python for windows" extension, available from http://sourceforge.net/projects/pywin32/"; I think the ActiveState distro includes it as part of its package. I don't know

Re: Are there sprintf in Python???

2007-01-22 Thread rzed
"questions?" <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > Are there any sprintf in Python? > I know you can print to files(or redefine sys.stout) and later > open the file content. > > Are there similar function to sprintf in C? Something like this? x = 9 vbl = "One digit: %d, four d

Re: OT Annoying Habits (Was: when format strings attack)

2007-01-20 Thread rzed
o do. It takes practice regardless. This subthread reminds me of my *highly secure* plaintext encryption system that would render the sentence as I think it looks vaguely Esperantonic (Esperantoid? Esperantic?), if anything. -- rzed -- http://mail.python.org/mailman/listinfo/python-list

Re: **argv can't work

2007-01-19 Thread rzed
"Jm lists" <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > hello members, > > See my script piece below: > > def testB(shift,**argv): > print "first argument is %s" %shift > print "all other arguments are:",argv > > testB('mails','Jen','[EMAIL PROTECTED]','Joe','[EMAIL PROTECTED

Re: where is python on linux?

2007-01-07 Thread rzed
p. > > man which > > mmm... sloppy joes -- rzed "A sandwich is a sandwich, but a Manwich is a meal." -- http://mail.python.org/mailman/listinfo/python-list

Re: still struggling, howto use a list-element as a name ?

2007-01-06 Thread rzed
Bruno Desthuilliers <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > rzed a écrit : > (snip) >> for k in self.pin.keys(): >> self.__dict__[self.pin[k]['Name']] = self.pin[k] > > for pin self.pin.values(): >self.__dict__[pi

Re: still struggling, howto use a list-element as a name ?

2007-01-06 Thread rzed
;m not sure what you mean. Easier to create? Maybe. But if you are then going to assign the values to names, then it doesn't strike me as easier to go through the two-step process. But as I said, I may be confused about what you are really trying to do. > >> for k in se

Re: still struggling, howto use a list-element as a name ?

2007-01-06 Thread rzed
Stef Mientki <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > In the example below, "pin" is an object with a number of > properties. Now I want > 1- an easy way to create objects that contains a number of these > "pin" 2- an multiple way to access these "pin", i.e. > device.pin[so

Re: Just Getting Started with Python on MS XP Pro

2007-01-06 Thread rzed
n ... to invoke it, rather than > c:\python25\python ... and something similar may be true for the Scripts subdirectory. -- rzed -- http://mail.python.org/mailman/listinfo/python-list

Re: function without brackets ?

2007-01-03 Thread rzed
rmal, but you did not in fact call the function, if you were using Python. Functions are objects that, for example, can be passed to other functions. The way to refer to the functions themselves is to omit the arguments and parentheses. So by simply stating the name of a function, that'

Re: File write() problem

2006-12-27 Thread rzed
7;ll still be in misery as soon as someone replaces the password "G811ploo" with "ALongerPassword". Flat files aren't databases. You're better off reading the entire file (opened in read mode) into memory and closing it, then re-opening it in write mode and writing out the entire thing with the changed password, replacing the original file. -- rzed ... for some value of better off... -- http://mail.python.org/mailman/listinfo/python-list

Re: Formatting a string to be a columned block of text

2006-12-26 Thread rzed
ix += 2 if bix >= 1+len(ls)/2: bix = 1 if diff > 0: if len(ls[-eix]) == 0 or ls[-eix].find(' ') >= 0: ls[-eix] += ' ' else: ls.insert(-eix,'') diff -= 1 eix += 2 if eix >= 1+len(ls)/2: eix = 1 line = ' '.join(ls) return line -- rzed -- http://mail.python.org/mailman/listinfo/python-list

Re: what is wrong with my code?

2006-12-20 Thread rzed
in would have been associated with task_to_remove. -- rzed -- http://mail.python.org/mailman/listinfo/python-list

Class and instance question

2006-12-17 Thread rzed
? It seems that I can't instantiate it or derive from it, so I guess it isn't a proper class. But it's something; it has an attribute. What is it? How would it be used (or, I guess, how should the __new__() method be used)? Any hints? -- rzed -- http://mail.python.org/mailman/listinfo/python-list

Re: aggdraw for 2.5 on WinXP?

2006-12-15 Thread rzed
Stéphane Muller <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > rzed a écrit : >> Has anyone generated an aggdraw installer or aggdraw.pyd for >> Python 2.5 (WinXP)? If so, could it be made available for those >> of us who don't have a working compile

aggdraw for 2.5 on WinXP?

2006-12-14 Thread rzed
Has anyone generated an aggdraw installer or aggdraw.pyd for Python 2.5 (WinXP)? If so, could it be made available for those of us who don't have a working compiler? -- rzed -- http://mail.python.org/mailman/listinfo/python-list

Re: PythonTidy

2006-12-05 Thread rzed
g or coding line for my purposes, but without going into the code and commenting out lines, I can't readily suppress them. As it stands now, I can't trust PythonTidy to do the right thing on unfamiliar code, and I can't readily try out various options by simply activating or deact

Re: A question about list

2006-10-17 Thread rzed
nstruction? > Thanks!! > b = [[x,y,'='] for (x,y) in a] -- rzed -- http://mail.python.org/mailman/listinfo/python-list

Re: does anybody earn a living programming in python?

2006-09-28 Thread rzed
ot;too many to count". Though I would have taken Anthony's usage ("there's countless other people I know...") less than literally. -- rzed -- http://mail.python.org/mailman/listinfo/python-list

Re: New Python.org website ?

2006-01-11 Thread rzed
t's your hurry? >> > [...] > http://beta.python.org So what's the character encoding? I haven't found (WinXP Firefox) that displays that city in Sweden without a paragraph symbol or worse. -- rzed -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.4 - Help does not work in Windows

2006-01-05 Thread rzed
XP, though. Incidentally, this manifested itself both in Python and in the system command line (cmd.exe), for some reason. I expect there was a clash with some other software I installed. At any rate, I re-installed Python over the top of the existing installation, and *both* Python help and the command-line help reappeared. I don't know what to make of that. The XP system does have a Python 2.2.3 version that came pre- installed, though I've not used it directly. (checking) It's help seems to work now, but then so does my 2.4.2 help, now. -- rzed -- http://mail.python.org/mailman/listinfo/python-list

About zipfile on WinXP

2006-01-02 Thread rzed
n view the python-created file's contents. Has anyone else observed this? If not, is there something in the code that I should change to permit XP to view the contents? -- rzed -- http://mail.python.org/mailman/listinfo/python-list

Build Python using Mars compiler?

2006-01-01 Thread rzed
look out for? -- rzed -- http://mail.python.org/mailman/listinfo/python-list

Re: Windows and python execution

2005-12-26 Thread rzed
HEXT variable means that you can execute "myNeatProgram.py" with this command-line: prompt>myNeatProgram Since .py appears in the PATHEXT variable, the system knows that .py files are executable, so it's not necessary even to specify them. What must happen, I suppose, is that t

Re: Windows and python execution

2005-12-26 Thread rzed
ronment variable, which contains extensions that signal that the program is executable. Add .PY and .PYW to this list and you will be good to go. -- rzed -- http://mail.python.org/mailman/listinfo/python-list

Re: Parsing text

2005-12-20 Thread rzed
already open, and will write the subsequent lines to it until the separator is found. Be aware that all files remain open unitl the loop at the end closes them all. """ outfs = {} f = open('shouldBeDatabase.txt') for line in f: if line.find('Person:') >= 0: ofkey = line[line.find('Person:')+7:].strip() if not ofkey in outfs: outfs[ofkey] = open('%s.txt' % ofkey, 'w') outf = outfs[ofkey] while line.find('-') < 0: line = f.next() outf.write('%s' % line) f.close() for k,v in outfs.items(): v.close() -- rzed -- http://mail.python.org/mailman/listinfo/python-list

Re: If - Or statements

2005-06-04 Thread rzed
] == "wma": > print "we have a valid extension: " + ext[1] > #here > would go the code for decoding the above > pass Though this may sidetrack the issue, another way of doing multiple checks like that is to make a list and check for inclusion in the list. Something like this: exts = ['mp3','mp4','ogg','aac','wma'] if ext[1] not in exts: # do whatever or if ext[1] in exts: print 'we have a valid extension:',ext[1] It's easier to add to the list than to add another explicit test, particularly if the tests occur in several places. -- rzed -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie question: Allocation vs references

2005-06-02 Thread rzed
#x27;Foo', 'Bar' ] >>> b = [ 'Boo', 'Far' ] >>> q = [a,b] >>> a = ['Splee','Hoongk'] >>> b = ['Blik','Poit'] >>> print q[0][0] Foo >>> print q[1][1] Far You've stuck the 'a' and 'b' labels on new objects this way. The original objects would vanish except that there is still a reference to them through the 'q' list. > > C equivalent of what I want to do: > --- > a = calloc(n, size); > prepare(a) > > q[0] = a; > > a = calloc(n, size); // new list; 'q' is unaffected if I change > 'a' --- -- rzed -- http://mail.python.org/mailman/listinfo/python-list

Re: anygui,anydb, any opinions?

2005-06-01 Thread rzed
"Thomas Bartkus" <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > "rzed" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >> So what do you think? What's wrong with the picture? Why isn't >> there a greater pri

anygui,anydb, any opinions?

2005-05-31 Thread rzed
hat it *will* just happen that way. So what do you think? What's wrong with the picture? Why isn't there a greater priority to work in this direction? -- rzed -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL and line drawing

2005-05-24 Thread rzed
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > "rzed" <[EMAIL PROTECTED]> wrote: > >> > if you have 1.1.5, you can use the width option to control >> > the line width. see: >> >> I'm glad to see tha

Re: PIL and line drawing

2005-05-20 Thread rzed
d rather see it automated in C than manually done in Python. > http://effbot.org/imagingbook/imagedraw.htm > >> Thanks for any replies, > > tip: you may get quicker/better responses if you use the > image-sig mailing list (if you're using a newsreader, point > it to gmane.comp.python.image) > -- rzed -- http://mail.python.org/mailman/listinfo/python-list

Re: Setting the corner color in rotated PIL images

2005-05-10 Thread rzed
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > "rzed" wrote: > >> I'm using PIL to generate some images which may be rotated at >> the user's option. When they are rotated, the original image is >> cropped in

Re: Setting the corner color in rotated PIL images

2005-05-06 Thread rzed
x27;t think it would be terribly hard at that stage to set those bytes to other values instead, and exposing that color through PIL's interface. But I suppose it's more trouble than it's worth for Fredrik, or nobody else has been bothered by it, or by the lack of a flood-fill function. To me, these are uncharacteristically odd omissions from PIL. -- rzed -- http://mail.python.org/mailman/listinfo/python-list

Re: Setting the corner color in rotated PIL images

2005-05-06 Thread rzed
[Following up] > - Original Message - > From: "rzed" <[EMAIL PROTECTED]> > Newsgroups: comp.lang.python > To: > Sent: Sunday, May 01, 2005 1:17 PM > Subject: Setting the corner color in rotated PIL images > > >> I'm using PIL to

Re: Setting the corner color in rotated PIL images

2005-05-03 Thread rzed
aul the rotated images into a paint program and manually touch up the corners, too, but I don't like to have to do that either. It seems strange that there wouldn't be some way to change the black to another color, or (maybe just as good) to transparent. PIL is so useful that it

Setting the corner color in rotated PIL images

2005-05-01 Thread rzed
is case is that they be a solid color, the same color they were before being rotated. -- rzed -- http://mail.python.org/mailman/listinfo/python-list

Re: help please

2005-02-21 Thread rzed
"gargonx" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Even if i put it in exactly the way you did: > > >>> import re > >>> charmatcher = re.compile(r' [A-Z] [\d]?') > >>> > >>> ext = dict(D="V1", O="M1", G="S1") > >>> std = dict(S="H") > >>> > >>> decode_replacements ={} > >>> de

Re: namespaces module (a.k.a. bunch, struct, generic object, etc.) PEP

2005-02-11 Thread rzed
feature the standard doesn't cover (for me, it's update with numerous other types), so the net effect may actually not be all that different from what happens now. Still, I could happily give up some features as long as the functionality is still available and presuming I intended th

Re: Python versus Perl ?

2005-02-11 Thread rzed
of the package API, which implies that parameters must be flexible. Maybe this is a strong use case for bunch/data/namespace arguments and return values. -- rzed -- http://mail.python.org/mailman/listinfo/python-list

Re: Curses on Windows

2005-02-08 Thread rzed
sted I >> look at http://flangy.com/dev/python/curses/ > But this one is still forbidden, at least for me: http://flangy.com/dev/python/curses/files/wcurses-0.1-py2.4.zip -- rzed -- http://mail.python.org/mailman/listinfo/python-list

Re: ConfigParser - add a stop sentinel?

2005-01-12 Thread rzed
ing, that would work for this case just as well, and it seems to me that *that* might be useful in some other applications also ... though that's not what I'm talking about in this instance. -- rzed -- http://mail.python.org/mailman/listinfo/python-list

ConfigParser - add a stop sentinel?

2005-01-12 Thread rzed
ther use that, particularly if I ever have reason to distribute the app elsewhere. -- rzed -- http://mail.python.org/mailman/listinfo/python-list

Re: Lambda going out of fashion

2004-12-23 Thread rzed
Jp Calderone <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > On Thu, 23 Dec 2004 13:36:08 GMT, rzed <[EMAIL PROTECTED]> wrote: >>Stephen Thorne <[EMAIL PROTECTED]> wrote in >> news:[EMAIL PROTECTED]: >> > [snip] >> > >> > {

Re: Switch statement (was: Lambda going out of fashion)

2004-12-23 Thread rzed
ince late 2001: > > http://www.python.org/peps/pep-0275.html > > It would help if interested people were to take a look at it and > identify open issues. If you google for pep 275 you will > probably find relevant python-dev discussions from the 2001/2002 > ti

Re: Lambda going out of fashion

2004-12-23 Thread rzed
quot; "*ix,ix)']), 5:'exec(fd2[3])', 6:"\n".join(['print kws["z"],', 'dofns(3,x=13,y=22)']), } try: exec(fd2[key]) except KeyError: print 'Key',key,'not found' #