Re: q: how to output a unicode string?

2007-04-25 Thread Richard Brodie
"Frank Stajano" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I find the encode/decode terminology somewhat confusing, because arguably > both sides are > "encoded". For example, a unicode-encoded string (I mean a sequence of > unicode code > points) should count as "decoded"

Re: Another Python Game Programming Challenge concludes

2007-04-25 Thread Richard Jones
to a new host right at the moment. I hope to have it back up and running ASAP. Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: Another Python Game Programming Challenge concludes

2007-04-25 Thread Richard Jones
Richard Jones wrote: > Terry Reedy wrote: >> " ???" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >> | The fourth Python Game Programming Challenge (PyWeek) has now concluded >> | with >> | judges (PyWeek being peer-judged) de

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-17 Thread Richard Hanson
allows for a few specific "non-ASCII" glyphs as the start of a name. I have solved my problem with my Python "appliance computer" project by having up to three representations for my names: Python 2.x acceptable names as the actual Python identifier, a Unicode text display exposed to the end user, and also if needed, a bitmap display exposed to the end user. So -- IAGNI. :-) -- Richard Hanson -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-19 Thread Richard Hanson
x27;ve been exploring with them and am slowly coming to some understanding. -- Richard Hanson "To many native-English-speaking developers well versed in other programming environments, Python is *already* a foreign language -- judging by the posts here in c.l.p

Re: CP4E revival

2007-05-24 Thread Richard Jones
load on the server). Thanks for abusing the free service being provided to the Python Papers journal. Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: just a bug (was: xml.dom.minidom: how to preserve CRLF's inside CDATA?)

2007-05-25 Thread Richard Brodie
"Neil Cerutti" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Web browsers are in the very business of reasonably rendering > ill-formed mark-up. It's one of the things that makes > implementing a browser take forever. ;) For HTML, yes. it accepts all sorts of garbage, like most

Re: just a bug (was: xml.dom.minidom: how to preserve CRLF's inside CDATA?)

2007-05-25 Thread Richard Brodie
"Marc 'BlackJack' Rintsch" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > How did you verified that it is well formed? It appears to have a more fundamental problem, which is that it isn't correctly encoded (presumably because the CDATA is truncated in mid-character). I'm surpris

Re: Unicode to HTML entities

2007-05-29 Thread Richard Brodie
"Clodoaldo" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I was looking for a function to transform a unicode string into >htmlentities. >>> u'São Paulo'.encode('ascii', 'xmlcharrefreplace') 'São Paulo' -- http://mail.python.org/mailman/listinfo/python-list

Open Source Developers' Conference 2007 - Brisbane - Call for Papers

2007-05-29 Thread Richard Jones
Call for Papers --- Open Source Developers' Conference 2007 - Brisbane, Australia "Success in Development & Business" OSDC is a grass-roots conference providing Open Source developers with an opportunity to meet, share, learn, and of course show-off. OSDC focuses on Open Source develo

Re: Parsing XML with ElementTree (unicode problem?)

2007-07-23 Thread Richard Brodie
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > so what's the difference? how comes parsing is fine > in the first case but erroneous in the second case? You may have guessed the encoding wrong. It probably wasn't utf-8 to start with but iso8859-1 or similar. What actual byte valu

Re: File handle not being released by close

2007-07-30 Thread Richard Brodie
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm guessing the garbage collector is causing the file to be written, > but shouldn't close do this? Only if you call it ;) -- http://mail.python.org/mailman/listinfo/python-list

Registration is open for the 5th Python game challenge!

2007-08-04 Thread Richard Jones
k.org/static/rules.html Richard -- Visit the PyWeek website: http://pyweek.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Querying Graphics Card Name

2007-08-09 Thread Richard Jones
Also, have a look at tools/info.py in the pyglet project <http://www.pyglet.org/> Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: Extending logging module

2007-08-10 Thread Richard Levasseur
python? My > changes get overwritten. > > Can anyone offer some help or suggestions? Thanks > > Jay Try looking at module new, i did the same to add a 'profile' level. If push comes to shove, you can always wrap your logger object up or access the __dict__ directly. http://docs.python.org/lib/module-new.html hope this helps, richard -- http://mail.python.org/mailman/listinfo/python-list

Re: Adventure-Engines in Python

2007-08-13 Thread Richard Jones
Wildemar Wildenburger wrote: > Are there any? An adventure game was written for one of the PyWeek challenges: http://www.pyweek.org/e/aerunthar/ You might be able to use that as a starting point. Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: How to setup pyOpenGL3.0.a6 for window xp?

2007-08-19 Thread Richard Jones
dependencies and works on Linux, OS X and Windows. You can use PyOpenGL with it just fine, or use its own gl layer (which is intentionally less pythonic) Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: Call for advice on how to start PyOpenGL!

2007-08-20 Thread Richard Jones
u find > pygame & OpenGL-based games, of a comprehensible size. Also, there's plenty of good opengl tutorials on the web. They all translate pretty easily into Python if they're not in Python already. For example: http://nehe.gamedev.net I highly recommend pyweek as a way of focus

Re: New UI Toolkit

2007-08-26 Thread Richard Jones
known. Is there a need for a new > GUI library for python? Clearly you felt there was :) Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: include myVar

2007-09-08 Thread Richard Jones
Ricardo Aráoz wrote: > Is there a way to import a module whose name is in a variable (read from > a configuration file for example)? pydoc __import__ Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: Strange method signature via COM

2007-03-02 Thread Richard Jebb
l. "Bruno Desthuilliers" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Richard Jebb a écrit : > > We are trying to use the API of a Win32 app which presents the API as a COM > > interface. The sample VB code for getting and setting the values of

Re: cheese shop: tagging and dating

2007-03-18 Thread Richard Jones
"db"), use the search box. It'll search names and descriptions. And then when you don't find a match, you can try "database" and then "relational" and then ... or you could use the browse interface to search using the one valid term, "Topic :: Database&quo

Python Game Programming Challenge #4 -- theme voting has started!

2007-03-24 Thread Richard Jones
for theme. The themes to choose from are: The only way is up Underneath the radar One way or another Don't stop till you get enough The final countdown Come along and join in the fun :) Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: Cheeseshop needs mirrors

2007-03-30 Thread Richard Jones
by a volunteer, enhanced by some other volunteers and exactly nothing more will get done unless more volunteers offer their time. Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: Cheeseshop needs mirrors

2007-03-30 Thread Richard Jones
Paul Boddie wrote: > Richard Jones wrote: >> And of course I'll reiterate the same line I always do: the Cheese Shop >> was set up by a volunteer, enhanced by some other volunteers and exactly >> nothing more will get done unless more volunteers offer their time. >

Re: Stack experiment

2007-04-03 Thread Richard Brodie
<[EMAIL PROTECTED]> wrote in message >There may be something wrong with the "re" code in your example, >but I don't know enough about that to help in that area. There is a stray leading space in it. -- http://mail.python.org/mailman/listinfo/python-list

Re: Stack experiment

2007-04-03 Thread Richard Brodie
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >> There is a stray leading space in it. > > Nah, I'd say there's a stray ([^0-9]) after the space. If you regard the spaces as being a required part of the postfix grammar, it would be simpler. But who would design a language where wh

Re: Arrays, Got Me Confused

2007-04-13 Thread Richard Brodie
"Robert Rawlins - Think Blue" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Wider fragments of code don't really exists at this moment in time No but specifying the problem too narrowly tends to get you an unidiomatic solution. > Basically I'm trying to create a class that conta

Re: File DB instead of real database?

2007-04-13 Thread Richard Jones
Jia Lu wrote: > I donot want to use a real DB like MySQL ... But I need something to > save about more than 1000 articles. > Is there any good ways? import anydbm Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: Future Python Gui?

2007-04-17 Thread Richard Jones
kirkjobsluder wrote: > I'd say that the best bet is to learn swig and similar > bridging, expanding, and embedding mechanisms. For GUI programming this would seem overkill. Pick a GUI toolkit and it's almost guaranteed to be wrapped for use in Python already. R

Re: Python Unicode to String conversion

2007-09-16 Thread Richard Levasseur
> On 1 sep, 09:17, iapain <[EMAIL PROTECTED]> wrote: > > > First make sure your DB encoding is UTF-8 not the latin1 > It took me days to figure out what was going on when dealing with unicode, ascii, latin1, utf8, decodeerrors, etc, so I'm just chiming in to echo something similar iapain's comment

Re: Tutorial or Example (or Tutorial) of Using Canvas to Produce a Plot

2007-09-18 Thread Richard Townsend
On Tue, 18 Sep 2007 13:18:36 -0700, "W. Watson" <[EMAIL PROTECTED]> wrote: >Tk is it. I'm really not interested in the others at this point. > John Grayson's book 'Python and Tkinter Programming' has a chapter on plotting Graphs and Charts. You can even download that chapter as a PDF file: http:

Resolving windows shortcut to url

2007-09-21 Thread Richard Townsend
If I have a windows shortcut to a URL, is there a way to get the URL in a Python app? I found some code that uses pythoncom to resolve shortcuts to local files, but I haven't found any examples for URLs. The PyWin32 help mentions the PyIUniformResourceLocator Object, but I couldn't find an exampl

Re: Resolving windows shortcut to url

2007-09-21 Thread Richard Townsend
On Fri, 21 Sep 2007 22:29:37 +0200, Ivo <[EMAIL PROTECTED]> wrote: >Ivo wrote: >> Richard Townsend wrote: >>> If I have a windows shortcut to a URL, is there a way to get the URL >>> in a Python app? >>> >>> I found some code that uses pytho

Registration for OSDC 2007 is open

2007-09-24 Thread Richard Jones
should note the OS7x invoice number that the registration process allocates you and re-enter that when you pay.) Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: True of False

2007-09-27 Thread Richard Thomas
x27;b','c','d','e','f','g'] > >>> "c" in a > True > >>> "c" in a == True > False > >>> ("c" in a) == True > True > > The reason your conditional failed is that it was i

Re: Python 3.0 migration plans?

2007-09-27 Thread Richard Jones
blogspot.com/ > > and register your vote on your intended migration timescale. I'll use the "no plans" response for my actual "no simple answer" real response. Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3.0 migration plans?

2007-09-28 Thread Richard Jones
like CPAN, Cheese Shop is just a directory > of URLs. Ah, it's not usenet without someone speaking from ignorance! :) Richard -- http://mail.python.org/mailman/listinfo/python-list

OSDC 2007 earlybird registration now open!

2007-09-30 Thread Richard Jones
[and now with more information] The Open Source Developers' Conference is designed by open source developers, for developers and business people. It covers numerous programming languages across a range of operating systems, and related topics such as business processes, licensing, and strategy.

Re: Dictionary invalid token error

2007-10-02 Thread Richard Brodie
"brad" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Why does 09 cause an invalid token while 9 does not? 9 isn't a valid octal digit. You probably want to use strings for storing telephone number like codes, if leading zeroes are significant. -- http://mail.python.org/mailma

Re: Convert string to command..

2007-10-18 Thread Richard Brodie
"Matimus" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I think several people have given you the correct answer, but for some > reason you aren't getting it. Instead of saving the string > representation of a dictionary to the database... Mind you, if this were Jeopardy, "Store

Re: serving html from a python script in IE

2007-11-01 Thread Richard Brodie
"bluegray" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > print "Content-Type: application/xhtml+xml That's your problem. You can't use that Mime type because IE doesn't support XHMTL. No "appendix C" hair splitting comments, please. -- http://mail.python.org/mailman/listinfo

Re: Inconsistent list/pointer problem

2007-02-01 Thread Richard Brodie
"Doug Stell" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I call the function, passing in a list as the input data. The function > must manipulate and operate on a copy of that list's data, without > altering the list in the calling routine. Then you will want to make a copy: l

Re: Germany issues warrants for 13 American CIA agents

2007-02-01 Thread Richard Charts
On Jan 31, 10:52 pm, "Overlord" <[EMAIL PROTECTED]> wrote: > Fuck the Germans. Didn't we kick their ass a couple times already? > > OL Thank god, I can just get my world news from c.l.p instead of having to find another "news" site. I salute you [EMAIL PROTECTED] -- http://mail.python.org/mailma

Re: electronics and python

2007-02-06 Thread Richard Charts
On Feb 6, 1:38 pm, "lee" <[EMAIL PROTECTED]> wrote: > Hi guys.Is there any software written using python for > electronics.i mean any simulation software or something?? There's MyHDL. http://myhdl.jandecaluwe.com/doku.php I found it originally in a Linux Journal article some years ago. ht

Re: distutils: different names in src and dist/build

2007-02-08 Thread Richard Jones
, hum). > > Any suggestion or link how I can achieve this? Two setup files? Richard -- http://mail.python.org/mailman/listinfo/python-list

Roundup Issue Tracker release 1.3.3

2007-02-14 Thread Richard Jones
I'm proud to release version 1.3.3 of Roundup. Fixed in 1.3.3: - If-Modified-Since handling was broken - Updated documentation for customising hard-coded searches in page.html - Updated Windows installation docs (thanks Bo Berglund) - Handle rounding of seconds generating invalid date values - Ha

Re: basic jython question

2007-02-15 Thread Richard Brodie
"Gerard Flanagan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have a 'logger' module which is essentially just a facade over the > 'logging' standard module. Can this be called from jython, and how is > this acheived? This is a colleague's question but I have no knowledge > o

Re: Python / Socket speed

2007-02-26 Thread Richard Brodie
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Seems like sockets are about 6 times faster on OpenSUSE than on > Windows XP in Python. > > http://pyfanatic.blogspot.com/2007/02/socket-performance.html > > Is this related to Python or the OS? It's 6 times faster even when not using

Strange method signature via COM

2007-03-02 Thread Richard Jebb
We are trying to use the API of a Win32 app which presents the API as a COM interface. The sample VB code for getting and setting the values of custom data fields on an object shows a method named Value(): getterobj.Value("myfield") setterobj.Value("myfield") = newvalue Using Pyth

Re: Why did no one tell me about import antigravity?

2007-12-05 Thread Richard Jones
Ant wrote: > http://xkcd.com/353/ I laughed :) Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: a Python person's experience with Ruby

2007-12-08 Thread Richard Jones
at this differs from a regular attribute because "a" is not deletable from instances (the property defines no deleter). Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: How protect proprietary Python code? (bytecode obfuscation?, what better?)

2006-04-18 Thread Richard Brodie
"bruno at modulix" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Do they ask the same thing for Java or .NET apps ?-) If you Google for "bytecode obfuscation", you'll find a large number of products already exist for Java and .Net -- http://mail.python.org/mailman/listinfo/p

Re: Python on Nintendo DS

2006-04-25 Thread Richard Tew
that tasklets run and switch in the limited scenarios I have tried, fixing the scheduler should be a matter of time. Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: Python on Nintendo DS

2006-04-26 Thread Richard Tew
You can find the new port of Python 2.4.3 (Stackless) here: http://www.disinterest.org/NDS/Python24.html Even if you do not have a Nintendo DS with the appropriate homebrewing device to make the rom available to it, you should still be able to run it within an emulator like Dualis (which is where

Re: not quite 1252

2006-04-28 Thread Richard Brodie
"Anton Vredegoor" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Yes my header also says UTF-8. However some kind person send me an e-mail > stating that > since I am getting \x94 and such output when using repr (even if str is > giving correct > output) there could be some pr

Re: How to get computer name

2006-04-29 Thread Richard Townsend
ket.gethostbyname('blade') # will print IP address -- Richard -- http://mail.python.org/mailman/listinfo/python-list

Python Game Challenge results (and new hosting) UP!

2006-05-09 Thread Richard Jones
After some problems with hosting which were solved thanks to the PSF the PyWeek site is back. http://www.pyweek.org/ Go see the results of the challenge, in particular the outstanding Nelly's Rooftop Garden and Trip on the Funny Boat. PyWeek challenges entrants to develop a complete game in P

advice modifying re library to support more than 100 named captures.

2006-05-16 Thread Richard Meraz
ed us to compile a regular _expression_ with more than 100 groups, but subsequent attempts to match or search with that regular _expression_ resulted in segfaults. Thanks,Richard MerazI realize this has been discussed before here: http://groups.google.com/group/comp.lang.python/browse_thread/threa

Re: How to customize getattr(obj, prop) function ?

2006-05-17 Thread Richard Copeland
Try this: class Class: a='aa' b='bb' def __getattr__(self, ppt): return 'custom computed result' __getattr__ is only called when "normal" attribute lookup fails, so there's no need for the "hasattr" test. Also, I believe that __getattribute__ only applies to new-style c

Re: How to customize getattr(obj, prop) function ?

2006-05-17 Thread Richard Copeland
Try this: class Class: a='aa' b='bb' def __getattr__(self, ppt): return 'custom computed result' __getattr__ is only called when "normal" attribute lookup fails, so there's no need for the "hasattr" test. Also, I believe that __getattribute__ only applies to new-style cla

Re: How to customize getattr(obj, prop) function ?

2006-05-17 Thread Richard Copeland
Try this: class Class: a='aa' b='bb' def __getattr__(self, ppt): return 'custom computed result' __getattr__ is only called when "normal" attribute lookup fails, so there's no need for the "hasattr" test. Also, I believe that __getattribute__ only applies to new-style cl

Re: How to customize getattr(obj, prop) function ?

2006-05-17 Thread Richard Copeland
I tested the exact code I sent you on python 2.4.1. What version of Python are you using? Thanks, Rick Pierre wrote: > Nop I get the same AttributeError when I try to access to the property > "c"... > -- http://mail.python.org/mailman/listinfo/python-list

Re: How to customize getattr(obj, prop) function ?

2006-05-17 Thread Richard Copeland
I tested the exact code I sent you on python 2.4.1. What version of Python are you using? Thanks, Rick Pierre wrote: > Nop I get the same AttributeError when I try to access to the property > "c"... > -- http://mail.python.org/mailman/listinfo/python-list

Re: altering an object as you iterate over it?

2006-05-19 Thread Richard Townsend
about file() vs. open(). Here's a suggestion for better words: "The file class is new in Python 2.2. It represents the type (class) of objects returned by the built-in open() function. Its constructor is an alias for open(), but for future and backwards compatibility, open() remains preferred." See: http://mail.python.org/pipermail/python-dev/2004-July/045931.html -- Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: TIOBE declares Python as programming language of 2007!

2008-01-07 Thread Richard Jones
age in the FAQ. Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: *** AMERICAN BASTARDS DESERVE TO BE RAPED ***

2008-01-12 Thread Richard Henry
"radiosrfun" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "default" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > On Sat, 12 Jan 2008 02:01:09 -0500, "radiosrfun" > > <[EMAIL PROTECTED]> wrote: > > > >>I WISH - that the President and Congress of this country wo

super, decorators and gettattribute

2008-01-12 Thread Richard Szopa
return decorated class parent(object): def foo(self): print 'I am parent\'s foo' class child(parent): @endmethod def foo(self): print "I am foo\'s foo." if __name__=='__main__': x = child() x.foo() Can anybody tel

Re: super, decorators and gettattribute

2008-01-12 Thread Richard Szopa
On Jan 12, 7:45 pm, Richard Szopa <[EMAIL PROTECTED]> wrote: > doing anything (initially I wanted to do something like CLOS > [1] :before and :end methods, but that turned out to be too > difficult). Erm, I meant :before and :after methods. -- Richard -- http://mail.pyt

Re: super, decorators and gettattribute

2008-01-12 Thread Richard Szopa
object.__getattr__(name)(*args, **kwargs) getattr(super_object, name)(*args, **kwargs) are not equivalent. This is quite odd, at least when with len() and .__len__, str() and .__str__. Do you maybe know what's the rationale behind not following that convention by getattr? Best regards, --

Re: super, decorators and gettattribute

2008-01-13 Thread Richard Szopa
On Jan 13, 8:59 am, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > On Sat, 12 Jan 2008 14:23:52 -0800, Richard Szopa wrote: > > However, I am very surprised to learn that > > > super_object.__getattr__(name)(*args, **kwargs) > > > getattr(super_o

Re: super, decorators and gettattribute

2008-01-14 Thread Richard Szopa
ribute doesn't exist; without it, an exception is raised in that case. Does it work on the basis that "getattr(x, 'y') is equivalent to x.y"? What is then a "named attribute for an object" in Python? It seems not to be equivalent to the value of the item whose name is 'y' in the object's class __dict__... Cheers, -- Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: super, decorators and gettattribute

2008-01-14 Thread Richard Szopa
he same name. Could you tell me what are the pros and cons of the two approaches (i.e. writing a decorator function and a decorator descriptor class)? The former gives slightly shorter code, while the second gives access to the original function and I somehow feel it is more... classy :) [code follo

Re: super, decorators and gettattribute

2008-01-14 Thread Richard Szopa
other special cases too, although > not as exciting ;-) Yeah, I also feel the excitement, so probably I am a language geek too ;-). However, this is still quite far away from full fledged multimethods. (OTOH trying to get something more from these primitive multimethods by abusing __get__ looks k

Re: super, decorators and gettattribute

2008-01-15 Thread Richard Szopa
ary/l-pymeta3.html?S_TACT=105AGX03&S_CMP=ART Of course, it would be very nice if the article was updated to include the links. HTH, -- Richard -- http://mail.python.org/mailman/listinfo/python-list

writing Python in Emacs

2008-01-19 Thread Richard Szopa
s for other editors, I have tried Eclipse and Komodo... But I cannot get used to them. As for non-emacs stuff, the most comfortable for me has been IDLE. Cheers and thanks in advance, -- Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: python for game programming

2008-02-03 Thread Richard Jones
t3chn0n3rd wrote: > Is Python program language popular for game programming? http://www.pyweek.org/ Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: keyword 'in' not returning a bool?

2008-02-08 Thread Richard Brodie
"c james" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] 't' in sample == True > False It's comparison operator chaining: 't' in sample == True is like 't' == sample == True and is equivalent to 't' in sample and sample == True -- http://mail.python.org/mailman/listinfo

Re: Question about PyPI and 'easy_install'

2008-02-25 Thread Richard Jones
makoto kuwata wrote: > Is it required to set registered name (Tenjin) and > package name (pyTenjin) into same name? Yes. How did you upload those files with a different name to that pypi package? Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: XML expat error

2008-02-27 Thread Richard Brodie
"dirkheld" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > xml.parsers.expat.ExpatError: not well-formed (invalid token): line > 554, column 20 > > I guess that the element I try to read or the XML(which would be > strange since they have been created with the same code) can't ben

Re: Question about PyPI and 'easy_install'

2008-02-28 Thread Richard Jones
> without setuptools. You should be able to just change the name and not need to use setuptools in the setup.py Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: Eurosymbol in xml document

2008-03-04 Thread Richard Brodie
"Robert Bossy" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > If the file is declared as latin-1 and contains an euro symbol, then the file > is > actually invalid since euro is not defined of in iso-8859-1. Paradoxical would be a better description than invalid, if it contains

Re: Regarding coding style

2008-03-07 Thread Richard Brodie
"K Viltersten" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 1. When writing English, Strunk and White apply. Do they? I've never seen them ;) > 2. You should use two spaces after a sentence-ending period. > > For heavens sake, why? Most people find it easier to type two space

Re: %x unsigned?

2008-03-14 Thread Richard Brodie
"Hrvoje Niksic" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > The %x conversion specifier is documented in > http://docs.python.org/lib/typesseq-strings.html as "Unsigned > hexadecimal (lowercase)." What does "unsigned" refer to? It's obsolete, a fallout of int/long int unificat

Re: Problem with PARAGRAPH SEPARATOR

2008-03-20 Thread Richard Brodie
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Would that mean that the string "myString" is an ascii-string or what? It would mean it was a byte encoded string already, yes. When you try to encode it, Python tries to coerce it to Unicode and it's equivalent to: myString.decode(

Re: Building a "safe" python?

2008-03-28 Thread Richard Jones
[EMAIL PROTECTED] wrote: > I'm making a game where you'll be able to make your own mods and I > want to be able to write these mods in python. Check out tinypy: http://www.philhassey.com/blog/category/tinypy/ Richard -- http://mail.python.org/mailman/listinfo/python-list

Jerry Pournelle gives award to Python and Guido for 2008

2009-01-17 Thread Richard Hanson
serves a large Orchid. It's useful, well structured, easy to learn, and powerful. I use it to write quick filter functions among other things. I'm pleased to hand Guido a big Orchid. [...] ''' I add: Great job, Guido and all! -- Richard Hanson -- http://mail.python.org/mailman/listinfo/python-list

Re: v = json.loads("{'test':'test'}")

2009-01-27 Thread Richard Brodie
"Steven D'Aprano" wrote in message news:018d0300$0$20629$c3e8...@news.astraweb.com... > Supposedly "every browser" (what, all of them?) already support a de > facto extension to the JSON standard, allowing more flexible quoting. That's a consequence of JSON being a subset of Javascript syntax,

Re: Is c.l.py becoming less friendly?

2009-02-06 Thread Richard Levasseur
On Feb 5, 8:02 am, Dan Upton wrote: > On Thu, Feb 5, 2009 at 11:00 AM, mk wrote: > > > (duck) > > > 542 comp.lang.python rtfm > > > 467 comp.lang.python shut+up > > > 263 comp.lang.perl rtfm > > > 45 comp.lang.perl shut+up > > But over how many messages for each group?  Wouldn't the percentage of

ANN: Python 2.6 Quick Reference available

2009-02-10 Thread Richard Gruet
The Python 2.6 Quick Reference is available in HTML and PDF formats at http://rgruet.free.fr/#QuickRef. This time I was helped by Josh Stone for the update. As usual, your feedback is welcome (pqr at rgruet.net). Cheers, Richard Gruet -- http://mail.python.org/mailman/listinfo/python-list

Re: Will multithreading make python less popular?

2009-02-19 Thread Richard Brodie
"sturlamolden" wrote in message news:d544d846-15ac-446e-a77f-cede8fcf9...@m40g2000yqh.googlegroups.com... > The GIL does not matter before crunching numbers on the CPU > becomes the bottleneck. And when you finally get there, perhaps it is > time to look into some C programming? Or numpy on a

Re: Python surpasses Perl in popularity?

2008-11-24 Thread Richard Riley
alex23 <[EMAIL PROTECTED]> writes: > On Nov 25, 11:25 am, [EMAIL PROTECTED] wrote: >> Perl is todays language of technical complexity. It is obscure,   >> complex, and is oriented towards the supremely intelligent [...] > > I think you misspelled "insular". Sounds like eLisp :-; -- http://mail.py

Re: Emacs vs. Eclipse vs. Vim

2008-12-01 Thread Richard Riley
Roy Smith <[EMAIL PROTECTED]> writes: > Clay Hobbs <[EMAIL PROTECTED]> wrote: >> The first real text editor I used was Vim, which I actually started >> using about a year ago. I've looked at Emacs and it just looks >> confusing. > > I've been using emacs for so many years (um let's see, it's got

Re: Emacs vs. Eclipse vs. Vim

2008-12-01 Thread Richard Riley
Roy Smith <[EMAIL PROTECTED]> writes: > In article <[EMAIL PROTECTED]>, > Richard Riley <[EMAIL PROTECTED]> wrote: > >> Roy Smith <[EMAIL PROTECTED]> writes: >> >> > Clay Hobbs <[EMAIL PROTECTED]> wrote: >> >> The first rea

Re: pydoc enforcement.

2008-12-01 Thread Richard Riley
Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> writes: > On Sun, 30 Nov 2008 16:27:07 -0800, [EMAIL PROTECTED] wrote: > >> Basically I'm interested adding a check to see if: >> 1) pydoc's are written for every function/method. > > Pylint warns for missing docstrings. > >> 2) There are entries fo

Re: HELP!...Google SketchUp needs a Python API

2008-12-01 Thread Richard Riley
[EMAIL PROTECTED] writes: > Don't feed the troll. > Yet you did and made the previous post visible to me. If you don't want people to feed the troll, do not do it yourself. -- http://mail.python.org/mailman/listinfo/python-list

Re: Mathematica 7 compares to other languages

2008-12-02 Thread Richard Riley
Petite Abeille <[EMAIL PROTECTED]> writes: > On Dec 2, 2008, at 9:21 PM, Lew wrote: > >> These are professional software development forums, not some script- >> kiddie cellphone-based chat room. "r" is spelled "are" and "u" should >> be "you". > > While Xah Lee arguably represents a cross between

Re: Python 3.0 automatic decoding of UTF16

2008-12-05 Thread Richard Brodie
"J Kenneth King" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > It probably means what it says: that the input file contains characters > it cannot read using the specified encoding. That was my first thought. However it appears that there is an off by one error somewhere in the

Re: Why no lexical scoping for a method within a class?

2008-12-17 Thread Richard Brodie
"walterbyrd" wrote in message news:518b9dd9-69c5-4d5b-bd5f-ad567be62...@b38g2000prf.googlegroups.com... > However in the methods are within a class, the scoping seems to work > differently. Not really, self is a formal parameter to the function. It would be a strange language where a function'

Re: Python's popularity

2008-12-22 Thread Richard Riley
Marco Mariani writes: > walterbyrd wrote: > >> I have read that python is the world's 3rd most popular language, and >> that python has surpassed perl in popularity, but I am not seeing it. > > > In 20 days, you've gone from trying to import a module by using: > >> load "test.py" > > > to questio

<    3   4   5   6   7   8   9   10   11   >