Re: Versioning Libraries

2004-12-03 Thread Richard Brodie
"Peter Hansen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Python is exceptionally backwards compatible, so generally > code from an older version will run unchanged on newer > Pythons. I'm just curious: why exceptionally? I like Python for a lot of reasons but I wouldn't put A

Re: Versioning Libraries

2004-12-03 Thread Richard Brodie
"Peter Hansen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Anyway, you're confusing "instability" (I hate that word, > it has connotations of unreliability, which aren't intended) > with "enhancement". The API gets changed, yes, but by > adding new things, almost never by remov

Re: Unknown locale nb_NO ?

2004-12-07 Thread Richard Brodie
"Stas Z" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > However it strikes me as odd, that Python2.3.4 raises an exception when > querying for a valid locale. I tend to call it a bug :-( File one in the bug tracker, then, and it might get fixed. -- http://mail.python.org/mailma

Re: How can i send 8-bit data or binary data with pyserial?

2004-12-13 Thread Richard Brodie
"ouz as" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I want to transfer 0 bit and 1 bit in order with pyserial.But pyserial only > send string data. string _is_ the type one would normally use in Python for 8-bit encoded data. If you are a Unicode purist, that's perhaps all yo

Re: Suggestion for "syntax error": ++i, --i

2004-12-13 Thread Richard Brodie
"Terry Reedy" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > You could propose to the author of Pychecker that he include, if possible, > an option to check for and warn about '++', '--'. It does already. -- http://mail.python.org/mailman/listinfo/python-list

Re: Help need with converting Hex string to IEEE format float

2004-12-16 Thread Richard Brodie
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > One example I tried was: > > wibble = struct.unpack("f", struct.pack("l", long(conv_str, 16))) > OverflowError: long int too large to convert to int You can't fit 0x8000L into a signed 32-bit integer, use 'L' for an unsigned one.

Re: Unpacking Binary Data - not using struct module

2004-12-16 Thread Richard Brodie
"Geoffrey" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 1) Does anyone recognize this numeric format ? Google :) http://www.room42.com/store/computer_center/packed_decimal.shtml -- http://mail.python.org/mailman/listinfo/python-list

setup.py - just what is it for ?

2004-12-17 Thread Richard Shea
application framework", long_description = """framework for building MVC CGI and mod_python applications. based on the perl CGI::Application module but more pythonic.""", classifiers = filter(None, classifiers.split("\n"))) ... I would appreciate any information about this (or any tips on how to deal with no shell access). thanks richard -- http://mail.python.org/mailman/listinfo/python-list

BLACK NIGGER JUNGLE BUNNIES IN ALASKA ..........

2005-03-25 Thread Richard Keebler
My name is Richard Keebler. I live in Pennsylvania. I recently visited my friend Gerald Newton in Alaska. I never expected to see so many watermelon eating black african jungle bunny niggers in the state. What a fucken surprise. Sigh... Richard Keebler -- http://mail.python.org

Newbie Printing Question

2005-03-27 Thread Richard Lyons
I'm just starting to work with Python. Have had a little experience with basic. I am using Python on a Windows XP system. How to I print a line of output generated in a python script to a printer attached to the windows computer? -- http://mail.python.org/mailman/listinfo/python-list

Re: playing with pyGoogle - strange codec error

2005-04-05 Thread Richard Brodie
"Brian Blazer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Everything works fine until I get to r.snippet. Here is the error: > > UnicodeEncodeError: 'ascii' codec can't encode character '\ua9' in > position 119: ordinal not in range(128) You have a character there (the copyri

Re: variables exist

2005-04-12 Thread Richard Brodie
"Brian van den Broek" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm a hobbyist and still learning, but the claim the try/except is > "lousy Python" surprise me a bit. I think it wasn't the use of try/except as such. It's more that if you're the developer you ought to know whe

Re: [perl-python] Python documentation moronicities (continued)

2005-04-12 Thread Richard Gration
On Tue, 12 Apr 2005 04:02:20 -0700, Joe Smith wrote: > Xah Lee wrote: > >> of motherf***ing irrevalent drivel? > > I am greatly amused. > A troll impersonating Xah Lee has made xah look like a total moron. LOL "The fucking doc cannot be possibly fucking worsely written." This is very Xahish th

http status response

2005-04-15 Thread Richard Eibrand
as an exception. Any ideas? I've gone google blind at this stage - as I'm not able to find anything useful. tia, R -- Richard Eibrand Phone: +353 1 492 7444 Mobile: +353 86 388 8887 www.propylon.com -- http://mail.python.org/mailman/listinfo/python-list

Glade for Windows and Python

2005-04-15 Thread Richard Lyons
Has anyone been successful in using Glade for Windows with Python? -- http://mail.python.org/mailman/listinfo/python-list

Re: xmlrpclib and binary data as normal parameter strings

2005-04-19 Thread Richard Brodie
"Rune Froysa" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > From http://www.xmlrpc.com/spec :: > Any characters are allowed in a string except < and &, which are > encoded as < and &. A string can be used to encode binary > data. the XMLRPC specification is worded pretty lo

Re: Python Debugger with source code tracking ability

2005-04-20 Thread Richard Eibrand
On 4/20/05, Jaime Wyant <[EMAIL PROTECTED]> wrote: > I haven't tried the customizations listed at the site below. If it > works, let me know. > > http://page.sourceforge.net/tricks.html > > jw > > On 19 Apr 2005 19:45:05 -0700, Tran Tuan Anh <[EMAIL PROTECTED]> wrote: > > Hi all, > > > > I am n

Variables

2005-04-23 Thread Richard Blackwood
variable. Thanks all! Richard B. -- http://mail.python.org/mailman/listinfo/python-list

Re: Variables

2005-04-23 Thread Richard Blackwood
call last): File "", line 1, in ? NameError: name 'foo' is not defined On Saturday 23 April 2005 07:20 pm, so sayeth Richard Blackwood: To All: Folks, I need your help. I have a friend who claims that if I write: foo = 5 then foo is NOT a variable, necessarily. If you guys can

Re: Variables

2005-04-23 Thread Richard Blackwood
Robert Kern wrote: Richard Blackwood wrote: To All: Folks, I need your help. I have a friend who claims that if I write: foo = 5 then foo is NOT a variable, necessarily. If you guys can define for me what a variable is and what qualifications you have to back you, I can pass this along to

Re: Variables

2005-04-23 Thread Richard Blackwood
Steven Bethard wrote: Richard Blackwood wrote: Indeed, this language is math. My friend says that foo is a constant and necessarily not a variable. If I had written foo = raw_input(), he would say that foo is a variable. Then what does he say if you write: foo = 5 foo = 6 ? STeVe He says that

Re: Variables

2005-04-23 Thread Richard Blackwood
Kent Johnson wrote: Richard Blackwood wrote: To All: Folks, I need your help. I have a friend who claims that if I write: foo = 5 then foo is NOT a variable, necessarily. Indeed, this language is math. My friend says that foo is a constant and necessarily not a variable. Well, we mostly

Re: Variables

2005-04-23 Thread Richard Blackwood
Robert Kern wrote: Richard Blackwood wrote: Kent Johnson wrote: Richard Blackwood wrote: To All: Folks, I need your help. I have a friend who claims that if I write: foo = 5 then foo is NOT a variable, necessarily. Indeed, this language is math. My friend says that foo is a constant and

Re: Variables

2005-04-23 Thread Richard Blackwood
Mike Meyer wrote: Richard Blackwood <[EMAIL PROTECTED]> writes: Robert Kern wrote: Richard Blackwood wrote: To All: Folks, I need your help. I have a friend who claims that if I write: foo = 5 then foo is NOT a variable, necessarily. If you guys can define for me what a va

Re: Variables

2005-04-23 Thread Richard Blackwood
Dan Bishop wrote: Richard Blackwood wrote: Steven Bethard wrote: Richard Blackwood wrote: Indeed, this language is math. My friend says that foo is a constant and necessarily not a variable. If I had written foo = raw_input(), he would say that foo is a

Re: Variables

2005-04-23 Thread Richard Blackwood
Terry Reedy wrote: "Richard Blackwood" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Indeed, this language is math. In mathematics, the word 'variable' is generally an undefined meta-term that is *notorious* for having multiple possible meanings an

Re: Variables

2005-04-23 Thread Richard Blackwood
Bengt Richter wrote: On Sat, 23 Apr 2005 22:45:14 -0400, Richard Blackwood <[EMAIL PROTECTED]> wrote: Robert Kern wrote: Richard Blackwood wrote: To All: Folks, I need your help. I have a friend who claims that if I write: foo = 5 then foo is NOT a variable, necessarily.

Re: Variables

2005-04-23 Thread Richard Blackwood
Robert Kern wrote: Richard Blackwood wrote: Robert Kern wrote: If you must, http://en.wikipedia.org/wiki/Variable Fantastic, wikipedia deals precisely with the difference between variables in mathematics versus programming. However, he would never trust a definition from such an "unrepu

Re: Variables

2005-04-24 Thread Richard Blackwood
James Stroud wrote: On Saturday 23 April 2005 10:25 pm, so sayeth Richard Blackwood: Unfortunately that's not much of an option for me. We are working on a project together so I am forced to either prove his notion incorrect or I give in to his conception. *throws hands in air* This

Re: Variables

2005-04-24 Thread Richard Blackwood
I thought I'd share a piece of the discussion a friend of mine is having with a mathematician/programmer on this issue of variables: int foo = 5; Is foo not a variable? Within the scope of that statement, foo can be no other value but 5. Is foo not a constant? Are constants and variables not mu

Re: regex over files

2005-04-26 Thread Richard Brodie
"Robin Becker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Gerald Klix wrote: > > Map the file into RAM by using the mmap module. > > The file's contents than is availabel as a seachable string. > > > > that's a good idea, but I wonder if it actually saves on memory? I just tried

Re: When I send email as HTML, why do erroneous whitespaces get introduced to the HTML source and a few < > chars get converted to < and > ???

2013-11-11 Thread Richard Balbat
On Saturday, November 9, 2013 2:29:00 AM UTC-5, dieter wrote: > rich writes: > Dieter, you were right!!! I broke up the string by inserting CRLF before I > reached 72 chars / line. Problem solved! > > > > I have the following script that reads in an HTML file containing a table > > then sends i

Re: Program Translation - Nov. 14, 2013

2013-11-17 Thread Richard Maine
anybody still use ratfor? No. Well, I suppose it is possible you might find a soul or two somewhere, but you'd have to look prety hard. Ratfor became essentially obsolete with Fortran 77. -- Richard Maine email: last name at domain . net domain: summer-triangle -- https://mail.python.org/mailman/listinfo/python-list

Re: Is Microsoft Windows secretly downloading childporn to your computer ?!

2015-12-02 Thread Richard Heathfield
d *down*load data to your phone or tablet. If the devices are of comparable size and power, you aren't upping or downing anything - you're just transferring data from one computer to another. I suppose we could say "crossloading"? -- Richard Heathfield Email: rjh at cpax d

List of Functions

2016-03-27 Thread Richard Riehle
Several months ago, I posted a question regarding how to create a list of functions. I quickly solved the problem on my own, but I am just now getting around to sharing my solution. It was actually quite simple, and also quite useful for the problem I had at hand. Below is an example of one w

Re: I love assert

2014-11-14 Thread Richard Riehle
I find that not a lot of Python user really appreciate the power of decorators. Richard Riehle, PhD, International Technological University, San Jose, CA. -- https://mail.python.org/mailman/listinfo/python-list

Array of Functions

2014-11-14 Thread Richard Riehle
. However, I am sure some clever Pythonista has found a way to do this. Thanks in advance for any suggestions, Richard Riehle, PhD, International Technological University, San Jose, CA -- https://mail.python.org/mailman/listinfo/python-list

Re: Decorators (was: Re: I love assert)

2014-11-14 Thread Richard Riehle
On Friday, November 14, 2014 2:18:48 PM UTC-8, Marko Rauhamaa wrote: > Richard Riehle : > > > I find that not a lot of Python user really appreciate the power of > > decorators. > > Well, I don't. > > All it means is that I've never seen a use of decorat

Re: Decorators (was: Re: I love assert)

2014-11-14 Thread Richard Riehle
. Richard Riehle, PhD Core Faculty, ITU On Fri, Nov 14, 2014 at 6:36 PM, Mayank Tripathi wrote: > Decorators were there in Python 2.4, released in 2005. Not exactly new. > > On Sat Nov 15 2014 at 7:51:11 AM Richard Riehle wrote: > >> On Friday, November 14, 2014 2:18:48 PM UTC

Re: Array of Functions

2014-11-16 Thread Richard Riehle
On Friday, November 14, 2014 4:13:28 PM UTC-8, Dennis Lee Bieber wrote: > On Fri, 14 Nov 2014 14:17:23 -0800 (PST), Richard Riehle > declaimed the following: > > >In C, C++, Ada, and functional languages, I can create an array of > >functions, albeit with the nastiness

[ANN] PyWeek 18 will run in May (11th to 18th)

2014-03-13 Thread Richard Jones
ek.org/s/help/ http://pyweek.org/d/4008/ Richard -- https://mail.python.org/mailman/listinfo/python-list

Re: Python, Linux, and the setuid bit

2014-04-15 Thread Richard Kettlewell
Ethan Furman writes: > memset(envp_write, 0, ((unsigned int) envp_read - >(unsigned int) envp_write)); That is a remarkable blunder for a security-critical program. On a 64-bit platform, the best case outcome is that it will throw away the top 32 bits of e

Re: Python, Linux, and the setuid bit

2014-04-15 Thread Richard Kettlewell
Chris Angelico writes: > Richard Kettlewell wrote: >> Ethan Furman writes: >>> memset(envp_write, 0, ((unsigned int) envp_read - >>>(unsigned int) envp_write)); >> >> That is a remarkable blunder for a security-criti

Re: Why Python 3?

2014-04-20 Thread Richard Damon
On 4/20/14, 5:40 PM, Roy Smith wrote: > In article , > Chris Angelico wrote: > >> On Mon, Apr 21, 2014 at 2:22 AM, Ian Kelly wrote: >>> When I'm writing a generic average function, I probably don't know whether >>> it will ever be used to average complex numbers. >> >> This keeps coming up in t

When I send email as HTML, why do erroneous whitespaces get introduced to the HTML source and a few < > chars get converted to < and > ???

2013-11-08 Thread richard . balbat
I have the following script that reads in an HTML file containing a table then sends it out via email with a content type of text/html. For some reason a few erroneous whitespaces get introduced to the HTML source and a few < > chars get converted to < and > ??? # Import libraries import smtpl

Re: cx_freeze and temporary files - security related question

2014-07-06 Thread Richard Damon
On 5/21/14, 12:42 PM, Nagy László Zsolt wrote: I need to create an application for Windows 7 that runs from a flash drive. This program would be used to create remote backups of the pendrive. The pendrive contains sensitive data, so when I plug in the pendrive and run the program to make a backup

Re: cx_freeze and temporary files - security related question

2014-07-06 Thread Richard Damon
like you probably do all the backups. Then you can know that there aren't any traces left behind that you didn't think of. -- Richard Damon -- https://mail.python.org/mailman/listinfo/python-list

Which OAuth library?

2014-08-14 Thread Richard Prosser
e various packages on offer. Any advice from experienced/informed users would be very welcome. Thanks ... Richard -- https://mail.python.org/mailman/listinfo/python-list

Interpreting Surface Weather Stations reports (FM 12–XIV SYNOP)

2012-01-13 Thread Richard Shea
Does anyone have some code which interprets Surface Weather Stations reports (formally termed 'FM 12–XIV SYNOP' reports) ? I've tried the cheese shop but no joy. I've seen PyMetar (http://schwarzvogel.de/software-pymetar.shtml) but I don't believe it covers this format. I can't believe I'm the fi

Re: understanding a program project

2012-01-14 Thread Richard Shea
such as : * Sphinx * EpyDoc * pycco all of which will produce friendly documentation automatically but the quality of the doco is dependent somewhat upon the amount and nature of comments originally put into the code. I don't think that's much help but I hope it may be some. regards Richard. -- http://mail.python.org/mailman/listinfo/python-list

Extending PyGTK widgets with Glade

2012-01-20 Thread Richard Carlson
I extended the Dialog class, but I can't figure out how to do it. I'd like to do something like this: class MyDialog(gtk.Dialog): def __init__(self): self = gtk.glade.XML(self.GLADEFILE).get_widget("example_dialog") Can someone point me in the right di

Re: Python on Nintendo DS

2006-01-08 Thread Richard Tew
Updated: http://www.disinterest.org/NDS/Python24.html - Worked out why it was working sporadically (Supercard requires the NDS loader to be prepended to ROMs). I assumed I was getting a ROM created with the loader/forgot that it was required, since it even ran. - Hooked it up to FAT file system c

Re: OT: Degrees as barriers to entry [was Re: - E04 - Leadership!Google, Guido van Rossum, PSF]

2006-01-11 Thread Richard Brodie
"Steve Holden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Wrong [see above]. I don't remember many mediaeval cathedrals falling down. Your memory of medieval times has gone a bit hazy I expect; in truth, some would fall down from time to time, particularly if the builders tri

Re: New Python.org website?

2006-01-19 Thread Richard Brodie
"Terry Hancock" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > There is no "Red Yin Yang", "Red Eightfold Path", "Red Star > of David" or "Red Serpent and Rainbow" to my knowledge, and > it would be incredibly stupid for there to be any such. Not only is there a Red Star of David

RE: hash() yields different results for different platforms

2006-07-12 Thread Kerry, Richard
The hash is not expected to be unique, it just provides a starting point for another search (usually linear ?). See http://en.wikipedia.org/wiki/Hash_function Helpfully, Maybe, Richard. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Piet van

Re: Python strings outside the 128 range

2006-07-13 Thread Richard Brodie
"Gerhard Fiedler" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > If I understand you correctly, you are saying that if I distribute a file > with the following lines: > > s = "é" > print s > > I basically need to distribute also the information how the file is encoded > and ever

Re: Python proficiency test

2006-07-22 Thread Richard Jones
king a popup on every page and the registration asking far more details that I felt necessary, I stopped before looking at the actual test. Richard -- http://mail.python.org/mailman/listinfo/python-list

Questions

2006-07-31 Thread Paré , Richard
build it. I will do the rest. I found something on the regression (test. (x)) on the existing module, but that wasn't appropriate. If you need an example of the formula for the mathematical regression, let me know. Many thanks in advance,   Richard -- http://mail.python.org/m

Re: Windows vs. Linux

2006-08-02 Thread Richard Brodie
"Gerhard Fiedler" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >With the same reasoning one could say that the Unix creators should have > used the VMS (or any other existing) form. Only if they used Guido's time machine. -- http://mail.python.org/mailman/listinfo/python-list

Re: ElementTree and Unicode

2006-08-02 Thread Richard Brodie
"Sébastien Boisgérault" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] element = Element("string", value=u"\x00") I'm not as familiar with elementtree.ElementTree as I perhaps should be. However, you appear to be trying to insert a null character into an XML document. Should y

PyWeek #3 in September!

2006-08-04 Thread Richard Jones
jects (with ready made teams!) Entries must be developed during the challenge, and must incorporate some theme decided at the start of the challenge. The rules for the challenge are at: http://media.pyweek.org/static/rules.html Richard -- Visit the PyWeek website: http://www.pywee

Re: Newbie - How to iterate list or scalar ?

2006-08-08 Thread Richard Brodie
"Andy Dingley" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > pluginVersionNeeded is a parameter passed into a method and it can > either be a simple scalar variable, or it can be a list of the same > variables. The obvious question would be, "is there a good reason why you don't

Re: help parsing this

2006-08-14 Thread Richard Brodie
"a" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > mx.DateTime.RangeError at /podcasts > Failed to parse "31 Apr 2006 20:19:00 -0400": day out of range: 31 > Python /usr/lib/python2.4/site-packages/mx/DateTime/Parser.py in > DateTimeFromString, line 608 > > how to parse this date >

Re: List match

2006-08-17 Thread Richard Brodie
"OriginalBrownster" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I know this probably is a very easy thing to do in python, but i wanted > to compare 2 lists and generate a new list that does not copy similar > entries. An example below > > list= ["apple", "banana", "grape"] > l

Re: Which field is Python suitable to do some tasks?

2006-08-18 Thread Richard Jones
deas? http://www.pyweek.org/ Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: What are decorated functions?

2006-08-22 Thread Richard Jones
2]). You *can* decorate a class' __init__ method, but that's not quite the same as eg. implementing @singleton (mind you, we already have a bazillion ways to implement the singleton pattern, so I don't think we're poorer for this limitation ) Richard [1] of course, you can "anything = decorate(anything)" [2] http://mail.python.org/pipermail/python-dev/2005-March/052369.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Hands on Documentation for Python methods and Library

2006-10-05 Thread Richard Jones
Wijaya Edward wrote: > One can do the following with Perl > > $ perldoc -f chomp > $ perldoc -f function_name $ pydoc dir $ pydoc function_name or $ pydoc math $ pydoc module_name Richard -- http://mail.python.org/mailman/listinfo/python-list

ctypes and setjmp

2006-10-05 Thread Richard Jones
Currently ctypes can't play well with any C code that requires use of setjmp as part of its API. libpng is one of those libraries. Can anyone think of a reasonable solution to this? Perhaps ctypes might be patched to offer setjmp support in foreign function definitions? Richard --

Re: HOST - Assembla Inc. Breakout - Copyright Violation by Mr. Andy Singleton

2006-10-06 Thread Richard Brodie
"Diez B. Roggisch" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > This is on the same level of interest to the communities of python, ruby & > java as the > color of my socks this morning - a deep black with cute little skulls > imprinted. I did find Andy's claim that he expec

Re: ctypes, arrays and pointers

2006-10-06 Thread Richard Jones
Thomas Heller wrote: > Richard Jones schrieb: >> row = image_data + width * components * y >> >> but you can't add an int to a c_char_Array_2415600. > > This feature request has now come up the second time, so I guess I will > have to find a solution for it

Re: ctypes and setjmp

2006-10-06 Thread Richard Jones
Thomas Heller wrote: > Richard Jones schrieb: >> Currently ctypes can't play well with any C code that requires use of >> setjmp as part of its API. >> >> libpng is one of those libraries. >> >> Can anyone think of a reasonable solution to this?

Re: ctypes and setjmp

2006-10-06 Thread Richard Jones
dler function if setjmp returns non-zero. This page: http://www.massey.ac.nz/~mgwalker/misc/create-images.html has some example programs that show setjmp/longjmp in action. Read the whole thing as his first examples aren't correct :) Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: New-style classes slower than old-style classes? (Was: n-body problem at shootout.alioth.debian.org)

2006-10-07 Thread Richard Jones
Ah yes. Years ago when I first saw this test it was still using new-style > classes. > > Anyway, this is a bug on its own I believe. I don't think new-style > classes are meant to be 25% slower than old-style classes. Can any guru > clarify this? Please try 2.5 - there'

Re: Python component model

2006-10-10 Thread Richard Brodie
"Edward Diener No Spam" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Thinking in Java or C++" as opposed to Python does not mean anything to me > as a general > statement. I am well aware of the difference between statically and > dynamically typed > languages but why this

Format a number as currency! I can't find any help on this simple problem.

2006-10-10 Thread Richard Kessler
3. Thanks much in advance, Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: Starting out.

2006-10-12 Thread Richard Jones
Andrew Poelstra wrote: > (OT: Try to type 'proficient' with one hand on a US keyboard. :-)) On the Internet, nobody wants to know when you're typing one-handed. Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: Starting out.

2006-10-12 Thread Richard Jones
Tim Chase wrote: > typed with just the top-row of keys > '^[qwertyuiop]*$' The longest being "typewriter" :) hey, look, it's Friday -- http://mail.python.org/mailman/listinfo/python-list

Re: Tertiary Operation

2006-10-17 Thread Richard Brodie
"abcd" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >x = None > result = (x is None and "" or str(x)) > > ...what's wrong with the first operation I did with x? I was expecting > "result" to be an empty string, not the str value of None. Your evil tertiary hack has failed you be

Re: Python Web Site?

2006-10-17 Thread Richard Jones
*% <"mike$#at^&nospam!%trausch(*%)us"> wrote: > Is there a problem with the Python and wxPython web sites? I cannot > seem to get them up, and I am trying to find some documentation... The machine hosting www.python.org rebooted in response to a power failur

OSDC 2006's fabulous keynotes

2006-10-17 Thread Richard Jones
spective of how to contribute (in many ways!) and how to make money as well. Richard Farnsworth: "Open Source Synchrotron" What is a Synchrotron anyway? What software needs does it has? How can Open Source help solve these? The Australian Synchrotron achieved first light in July 2005 almos

Re: 3d programming without opengl

2006-10-31 Thread Richard Jones
2D > library for simple 3D rendering. Someone wrote a 3D demo for the pygame.draw challenge*. It worked but unfortunately he didn't end up finishing and submitting it. It had severe performance limitations :) Richard *: http://media.pyweek.org/static/pygame.draw-0606.html -- http://mail.python.org/mailman/listinfo/python-list

Re: 3d programming without opengl

2006-11-01 Thread Richard Jones
Fredrik Lundh wrote: > Richard Jones wrote: >>> Pure Python doesn't necessarily imply "no graphics drawing code written >>> in some other language", though. You can get pretty far by using a 2D >>> library for simple 3D rendering. >> >> S

Re: RAW network programming under Windows

2006-11-06 Thread Richard Charts
sturlamolden wrote: > billie wrote: > > > RAW network programming under Windows it's not always possible because > > of the security limitations that microsoft introduced in the latest > > Windows versions and that affects WinSocket API. > > On UNIX systems I'm able to freely send raw packets (for

Re: Python deployment options.

2006-11-08 Thread Richard Charts
king kikapu wrote: > I see...So, if these are the only options, the only "safe" bet is to > install the language on the machine (beeing Win, Linux or Mac) > and execute the .py files, right ?? > > Well on a Win machine, probably. Almost every Linux machine you come across will have (most likely a

Registrations are open for tutorials at OSDC 2006

2006-11-09 Thread Richard Jones
ase visit: http://www.osdc.com.au/sponsors/index.html Richard Jones OSDC Program Chair -- http://mail.python.org/mailman/listinfo/python-list

Re: Yield

2006-11-16 Thread Richard Brodie
"Danny Colligan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Now that we're on the subject, what are the advantages of using > generators over, say, list comprehensions or for loops? It seems to me > that virtually all (I won't say everything) the examples I've seen can > be do

Re: Yield

2006-11-16 Thread Richard Brodie
"Danny Colligan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I absoultely agree. Thanks for pointing me out to some real-world > code. However, the function you pointed me to is not a generator > (there is no yield statement... it just returns the entire list of > primes). O

Re: The Nature of the “Unix Philosophy”

2006-06-08 Thread Richard Bos
hy, unlike the "modern" unix > > clones. > Is there an actual Plan 9? I'm only aware of the one from Outer Space. <http://cm.bell-labs.com/plan9/>. But directing the OP there would be futile, as is discussing such off-topic matter on comp.lang.c. Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: USB support

2006-06-13 Thread Richard Townsend
On 13 Jun 2006 11:08:59 -0700, rodmc wrote: > Hi, > > I need to write a program which can access the USB ports on Mac and > Linux, is there a library available for Python? > > Thanks in advance. > > Best, > > rod Not tried it, but: http://pyusb.berl

5 DAYS TO GO: pygame.draw challenge

2006-06-20 Thread Richard Jones
THE CHALLENGE: Create a game in up to 64kbytes of source code using only pygame (and python stdlib). No additional libraries, no external files (even ones loaded from a network). That means no PyOpenGL, no PNGs, no OGGs, etc. Feel free to ju

Re: serial port servo control

2006-06-22 Thread Richard Brodie
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 1) How should I write to the serial port with python? I found the > module "pyserial": I don't think there is any need to hunt for anything better. > In C I'd do this by sending 3 char's, as they're only 1 byte, > but i'm not exactl

Re: Pygame.draw challenge is over!

2006-06-25 Thread Richard Jones
t that comes with the files: """ These entries generally require: Python 2.4+ PyGame 1.7+ and NOTHING ELSE. """ Richard -- http://mail.python.org/mailman/listinfo/python-list

OSDC 2006 -- CFP closes in 2.5 weeks!

2006-06-26 Thread Richard Jones
http://osdc2005.cgpublisher.com/proposals/ If you have any questions, or have never submitted a paper proposal before, please read our FAQ page at http://www.osdc.com.au/faq/ index.html If you don't find an answer there, please contact richard osdc.com.au To submit a proposal, follow the

Re: Having problems with strings in HTML

2006-06-27 Thread Richard Brodie
"Sion Arrowsmith" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >>By the way, you _do_ realize that your "&" characters should be escaped >>as "&", don't you? > > No they shouldn't. They part of the url, which is (IIRC) a CDATA > attribute of the A element, not PCDATA. It is CDATA

Re: Illegal instruction or undefined symbol from import

2006-07-05 Thread Richard Brodie
"Mathias Waack" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > BTW, does anybody know why the c-lib offers both log and log1p? So you can get a sensible answer computing log(1 + 10 ^ -30). There's a lot of somewhat obscure mathematical stuff that got into the standard C lib. How

RE: Illegal instruction or undefined symbol from import

2006-07-05 Thread Kerry, Richard
The only use I now for them is when you need to plot the sine of a sine. Or possibly to calculate the frequency spectrum of this. Ie x = a.sin( b.sin( y ) ) This is fundamental to Frequency Modulation. I don't know if they apply anywhere else ? Unhelpfully, Richard. -Original Me

RE: Full splitting of a file's pathname

2006-07-10 Thread Kerry, Richard
Unless it's the sort of operating system that uses something like : Sys$disk:[foo.bar.moo.lar]myfile.txt (VaxVMS, from quite a few years ago) And if I recall, the parsing function provided would also separate the extension from the main part of the file's name. Unhelpfull

Re: Best Practices for Python Script Development?

2006-08-24 Thread Richard Jones
metaperl wrote: > Searching cheeseshop.python.org/pypi for getopt modules does not work > very well by the way. http://docs.python.org/lib/module-getopt.html Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: windows pagfile utilization

2006-08-30 Thread Richard Brodie
"djoefish" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > My program still crashes at 2g (according to the task manager). Do I > need to inform python that the pagefile has a new size? How do I check > that python is utilizing the full pagefile? It won't. You'll hit the 2Gb user

Re: windows pagfile utilization

2006-08-30 Thread Richard Brodie
"Tim Chase" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Thanks for putting 4 gigs of ram in your machine. How about I let you use 2 > of 'em > while I underutilize the other 2 gigs?" > > Sounds silly, IMHO. Well, for a lot of scenarios, it's going to be the 2GB limit on sy

<    1   2   3   4   5   6   7   8   9   10   >