Avoiding defunct processes

2012-11-01 Thread Richard
complete. For now I detect which processes are defunct by parsing the output of "ps". What would you recommend? I am hoping there is a cleaner way. Richard -- http://mail.python.org/mailman/listinfo/python-list

Generate unique ID for URL

2012-11-13 Thread Richard
ncise ID's. What do you recommend? - Compression? Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: Generate unique ID for URL

2012-11-13 Thread Richard
Good point - one way encoding would be fine. Also this is performed millions of times so ideally efficient. On Wednesday, November 14, 2012 10:34:03 AM UTC+11, John Gordon wrote: > In <0692e6a2-343c-4eb0-be57-fe5c815ef...@googlegroups.com> Richard > writes: > > > >

Re: Generate unique ID for URL

2012-11-13 Thread Richard
These URL ID's would just be used internally for quick lookups, not exposed publicly in a web application. Ideally I would want to avoid collisions altogether. But if that means significant extra CPU time then 1 collision in 10 million hashes would be tolerable. -- http://mail.python.org/mailm

Re: Generate unique ID for URL

2012-11-13 Thread Richard
I found md5 / sha 4-5 times slower than hash. And base64 a lot slower. No database or else I would just use their ID. On Wednesday, November 14, 2012 11:59:55 AM UTC+11, Christian Heimes wrote: > Am 14.11.2012 01:41, schrieb Richard Baron Penman: > > > I found the MD5 and SHA ha

Re: Generate unique ID for URL

2012-11-13 Thread Richard
I am dealing with URL's rather than integers -- http://mail.python.org/mailman/listinfo/python-list

Re: Generate unique ID for URL

2012-11-13 Thread Richard
So the use case - I'm storing webpages on disk and want a quick retrieval system based on URL. I can't store the files in a single directory because of OS limitations so have been using a sub folder structure. For example to store data at URL "abc": a/b/c/index.html This data is also viewed loca

Re: Generate unique ID for URL

2012-11-13 Thread Richard
> The next step is to reduce the number of bits you are encoding. You > > said in another post that "1 collision in 10 million hashes would be > > tolerable". So you need: > > > > >>> math.log(10*1000*1000, 2) > > 23.25349666421154 I think a difficulty would be finding a hash algorithm

Re: Generate unique ID for URL

2012-11-13 Thread Richard
thanks for pointer to Varnish. I found MongoDB had a lot of size overhead so that it ended up using 4x the data stored. -- http://mail.python.org/mailman/listinfo/python-list

Re: Generate unique ID for URL

2012-11-13 Thread Richard
yeah good point - I have gone with md5 for now. On Wednesday, November 14, 2012 3:06:18 PM UTC+11, Chris Angelico wrote: > On Wed, Nov 14, 2012 at 2:25 PM, Richard wrote: > > > So the use case - I'm storing webpages on disk and want a quick retrieval > > system based

Re: Generate unique ID for URL

2012-11-14 Thread Richard
thanks for perspective! -- http://mail.python.org/mailman/listinfo/python-list

Help needed with nested parsing of file into objects

2012-06-04 Thread richard
Hi guys i am having a bit of dificulty finding the best approach / solution to parsing a file into a list of objects / nested objects any help would be greatly appreciated. #file format to parse .txt [code] An instance of TestArray a=a b=b c=c List of 2 A elements: Instance of A element a

Re: Help needed with nested parsing of file into objects

2012-06-04 Thread richard
On Jun 4, 3:14 pm, Alain Ketterlin wrote: > richard writes: > > Hi guys i am having a bit of dificulty finding the best approach / > > solution to parsing a file into a list of objects / nested objects any > > help would be greatly appreciated. > > > #file format t

Re: Help needed with nested parsing of file into objects

2012-06-05 Thread richard
On Jun 4, 3:20 pm, richard wrote: > On Jun 4, 3:14 pm, Alain Ketterlin > wrote: > > > > > > > > > > > richard writes: > > > Hi guys i am having a bit of dificulty finding the best approach / > > > solution to parsing a file into a list of

Re: Help needed with nested parsing of file into objects

2012-06-05 Thread richard
On Jun 5, 8:50 pm, Eelco wrote: > > thank you both for your replies. Unfortunately it is a pre-existing > > file format imposed by an external system that I can't > > change. Thank you for the code snippet. > > Hi Richard, > > Despite the fact that it is a p

Re: Help needed with nested parsing of file into objects

2012-06-05 Thread richard
On Jun 5, 9:40 pm, Alain Ketterlin wrote: > richard writes: > > [I'm leaving the data in the message in case anybody has troubles going > up-thread.] > > > > > > > > > > > Hi guys still struggling to get the code that was posted to me on this &g

Re: Help needed with nested parsing of file into objects

2012-06-05 Thread richard
On Jun 5, 9:40 pm, Alain Ketterlin wrote: > richard writes: > > [I'm leaving the data in the message in case anybody has troubles going > up-thread.] > > > > > > > > > > > Hi guys still struggling to get the code that was posted to me on this &g

Re: Help needed with nested parsing of file into objects

2012-06-05 Thread richard
On Jun 5, 10:21 pm, richard wrote: > On Jun 5, 9:40 pm, Alain Ketterlin > wrote: > > > > > > > > > > > richard writes: > > > [I'm leaving the data in the message in case anybody has troubles going > > up-thread.] > > > >

Re: Help needed with nested parsing of file into objects

2012-06-05 Thread richard
On Jun 5, 10:33 pm, Alain Ketterlin wrote: > richard writes: > >> > An instance of TestArray > >> >  a=a > >> >  b=b > >> >  c=c > >> >  List of 2 A elements: > >> >   Instance of A element > >> >    a=1

C++ object in PyObject*?

2011-03-15 Thread Richard
I am wondering, what is the best way to write a Python module as an interface to a C++ class? I don't want the C++ object representing the class to be declared as a global, because then if multiple instances in Python would be created, they would be using the same C++ object instance, correct? So

Re: cheese shop registration error

2005-11-30 Thread richard
he error displayed here is complaining about the email address you supplied, 'tgreenwoodgeer.yahoo.com'. This is different from the session details you have supplied. I can't reconcile these. I suggest you try again, and be careful when typing your email address. Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: Zope newsgroups? Need help with POSKeyError

2004-12-31 Thread richard
Bob Horvath wrote: > I have a Zope/Plone combination that I have been having POSKeyErrors > with for a while now. Are there any newsgroups that deal with Zope? No, but there is a mailing list - see zope.org Also, try google searching for POSKeyError. Richard -- http://mail.pyth

Re: python without OO

2005-01-25 Thread richard
++. Those languages make OO a burden, with on the one hand excessive requirements to subclass, and on the othe hand ... well, C++ is just a burden all round really :) Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: move bugs from Zope BITS into Bugzilla?

2005-01-28 Thread richard
I'd hand-enter the open issues, but they also want the closed > ones for tracking & posterity. I'm not helping you with your problem, just plugging my own tracker ;) Use Roundup! It's Pure Python :) http://roundup.sf.net/ Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: Marketing reST (was Re: What YAML engine do you use?)

2005-01-29 Thread richard
g them is a pain, as opposed to any sort of Markup Language format, and 2. the first contributor of docs suggested it, and I've had several contributors since. It's easier for contributors to write for Roundup's documentation - even if they don't get the reST markup correc

Re: Ann: The first PyWeek Python Game Programming Competition

2005-07-08 Thread richard
Lee Harr wrote: >> Clip Art >> note: >> more links welcome > > How about: > http://www.openclipart.org/ Thanks! Richard (aka PyWeek organiser bunny) -- http://mail.python.org/mailman/listinfo/python-list

Efficiently Split A List of Tuples

2005-07-13 Thread Richard
I have a large list of two element tuples. I want two separate lists: One list with the first element of every tuple, and the second list with the second element of every tuple. Each tuple contains a datetime object followed by an integer. Here is a small sample of the original list: ((dateti

Re: Efficiently Split A List of Tuples

2005-07-14 Thread Richard
On Wed, 13 Jul 2005 20:53:58 -0400, Peter Hansen wrote: > a = ((1,2), (3, 4), (5, 6), (7, 8), (9, 10)) > zip(*a) > This seems to work. Thanks. Where do I find documentation on "*args"? -- http://mail.python.org/mailman/listinfo/python-list

Re: Oreilly CodeZoo

2005-08-07 Thread richard
ce... I hope no-one has that patented 5. DOAP (being added to PyPI) 6. Ads in the top bar and a sidebar (hehe) Getting links from PyPI over to the CodeZoo information would be pretty easy. Getting links from the CodeZoo pages to PyPI information / packages would be pretty easy. Richard -- ht

Re: Oreilly CodeZoo

2005-08-09 Thread richard
not one per-package. > I hope you see this as a constructive feedback from someone that has just > screened the pages, getting to know it. Thanks! Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: Oreilly CodeZoo

2005-08-10 Thread richard
Jorge Godoy wrote: > richard wrote: >> That's a good idea. Unfortunately, changing the sorting of the >> classifiers will be fun. Could I ask you to submit an RFE "bug" via the >> link on the pypi page? > > I'll do that tomorrow morning. Thanks!

Update: Python Game Programming Challenge

2005-08-20 Thread richard
The Python Game Programming Challenge (otherwise known as PyWeek) is only a week away from starting! Theme voting has started! http://www.mechanicalcat.net/tech/PyWeek/1 Richard -- http://mail.python.org/mailman/listinfo/python-list

Embedding threaded Python in C

2005-08-21 Thread Richard
I've tried embedding Python in a C app so that Threading is done in the Python side. In the simple example below, unless I uncomment the ALLOW_THREADS macros, the Python thread does nothing until the C for-loop finishes. My real-world example is a large C/Motif application - apart from scatterin

complex data types?

2005-09-17 Thread richard
I'd like to have an array in which the elements are various data types. How do I do this in Python? For example: array[0].artist = 'genesis' array[0].album = 'foxtrot' array[0].songs = ['watcher', 'time table', 'friday'] array[1].artist = 'beatles' array[1].album = 'abbey road' array[1].songs

Re: complex data types?

2005-09-18 Thread richard
Gustavo Picon <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > On Sat, 2005-09-17 at 23:34 -0500, Gustavo Picon wrote: >> Maybe something like this? >> >> class music(object): >> def __init__(self): >> self.lst = {} >> def __setattr__(self, name, value): >> self.__d

Re: complex data types?

2005-09-18 Thread richard
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > At the same time, if array[0].songs equals array[1] songs, you are > probably initializing both array[0] and array[1] with the same object. > Since array[0] and array[1] both refer to the same object, a change to > one wil

PyWeek 1 has completed, winners announced

2005-09-20 Thread richard
ection) and I'll definitely be providing more information to competitors next time about how to compete (how to plan, etc). Phew. And there's some cool games in there too :) It was interesting to see that the individual entries tended to be more innovative than the team entrie

Re: Testing web applications

2005-02-12 Thread richard
John J. Lee wrote: >> > I'm looking for frameworks to make testing web applications - > > Did you read the question? To answer the original question, which I did not see when first posted: http://www.mechanicalcat.net/tech/webunit/ Richard -- http://mail.python.

Re: Unittesting for web applications

2005-02-12 Thread richard
Sandip Bhattacharya wrote: > Can someone suggest me some good resources for learning how to use > unittests for web applications? Do we always have to cook up our own > webpage scrapers to test the code? http://www.mechanicalcat.net/tech/webunit/ Richard -- http://mail.python.or

Re: Python mascot proposal

2004-12-12 Thread richard
ing to do with snakes*. Please consider sticking to the original roots of the language's name: Monty Python's Flying Circus. IIRC, Guido has said a number of times that he's not fond of using a snake for logos. Hence the MacPython stuff uses a 16 ton weight in its icons. Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 338: Executing modules inside packages with '-m'

2004-12-12 Thread richard
> Sounds Good to me. (-; /me too :) Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: why no python setup.py uninstall?

2004-12-12 Thread richard
up.py metadata in: http://python.org/peps/pep-0314.html Most of the design / planning has been done. All we need is some developer time to make it happen. Go visit the Catalog SIG if you're interested. http://www.python.org/sigs/catalog-sig/ Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: what module can do html encoder??

2004-12-12 Thread richard
fe sequences. Use this if you need to display text that might contain such characters in HTML. If the optional flag quote is true, the double-quote character (""") is also translated; this helps for inclusion in an HTML attribute value, as in . Richard -- http://mail.python.org/mailman/listinfo/python-list

48-hour game programming competition only 14 days away

2005-03-31 Thread richard
n the past using Python and PyGame or PyOpenGL. Personally, I'll be using it again. Come along, it's a hella lot of fun :) Richard -- http://mail.python.org/mailman/listinfo/python-list

pyside dynamic buttons

2011-12-13 Thread Richard
MainWindow", self.S1.name, None, QtGui.QApplication.UnicodeUTF8)) n=n+1 How can I delete buttons? Thanks, Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: SVG rendering with Python

2005-12-14 Thread richard
Dennis Benzinger wrote: > Does anybody know of a SVG rendering library for Python? Google "python svg" Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: SVG rendering with Python

2005-12-15 Thread richard
Andreas Lobinger wrote: > richard wrote: >> Dennis Benzinger wrote: >>>Does anybody know of a SVG rendering library for Python? >> Google "python svg" > > ... to find what? The answer to the OP's question. Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: time.strftime() NOT producing RFC2822-compliant Date strings?

2006-01-12 Thread richard
Peter Hansen wrote: > richard wrote: >> I'm just dealing with a Roundup bug report in which it's pointed out that >> time.strftime() doesn't produce RFC2822-compliant date strings when in a >> locale other than "C". > > While it doesn't fi

time.strftime() NOT producing RFC2822-compliant Date strings?

2006-01-12 Thread richard
ompatible with that specified in the RFC 2822 Internet email standard. 6.1 >>> from time import gmtime, strftime >>> strftime("%a, %d %b %Y %H:%M:%S +", gmtime()) 'Thu, 28 Jun 2001 14:17:15 +' which would appear to be true for the "C" locale but not for "pl_PL", for example. Richard -- http://mail.python.org/mailman/listinfo/python-list

Pygame.draw challenge

2006-06-13 Thread richard
THE CHALLENGE: Create a game in 64kbytes of source code using only pygame. No additional libraries, no external files (even ones loaded from a network). That means no PyOpenGL, no PNGs, no OGGs. THE DEADLINE: Start as soon as you read th

pygame.draw deadline extended to Sunday midnight UTC

2006-06-24 Thread richard
I'm not going to be awake at midnight, so that means that entrants in the pygame.draw challenge have a few extra hours to get their entries in. http://media.pyweek.org/static/pygame.draw-0606.html Get entries to me by email before UTC (GMT) 23:59 Sunday 25th June. Richard --

Pygame.draw challenge is over!

2006-06-25 Thread richard
It was quite successful too! Download the submissions from the pyweek.org site: http://media.pyweek.org/static/pgd-200606.zip Congratulations to all who participated! Richard -- Visit the PyWeek website: http://www.pyweek.org/ -- http://mail.python.org/mailman/listinfo/python-list

PyWeek Python Game Programming Challenge, The Second!

2006-02-24 Thread richard
The date for the second PyWeek challenge has been set: Sunday 26th March to Sunday 2nd April (00:00UTC to 00:00UTC). The PyWeek challenge invites entrants to write a game in one week from scratch either as an individual or in a team. Entries must be developed in Python, during the challenge, and

Re: problem uploading ZIP file tp PyPI

2005-05-15 Thread richard
Windows installer, and downloaded it again > [but the download count is still stuck on zero]. The download counts are updated daily (IIRC). Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: problem uploading ZIP file tp PyPI

2005-05-16 Thread richard
John Machin wrote: > richard wrote: >> John Machin wrote: >> > Sorry in advance if this is not the correct forum ... >> >> Quite. The support link for PyPI is in the sidebar of the site. >> > > Tried that, when I was trying to register and getting st

Re: problem uploading ZIP file tp PyPI

2005-05-19 Thread richard
John Machin wrote: > On Mon, 16 May 2005 22:11:49 +1000, richard >>John Machin wrote: >>> setup.py sdist --format=zip >> >>Try without the --format arg. The code is being too paranoid. > > Result: (A) produces a zip file with only minor differences > (presum

Re: problem uploading ZIP file tp PyPI

2005-05-22 Thread richard
The PyPI server code, which attempts to make sure people aren't uploading >> pr0n. > So zip implies pr0n but exe doesn't ??? Not sure what your point is here. Are you implying that PyPI is doing something wrong W.R.T. exe files? If you are, what are you basing that statement on? An

RE: problem uploading ZIP file tp PyPI

2005-05-22 Thread richard
or some reason, then the > documentation should say so (and, IMO, it would be a mistake for that to > be the case). "bug against PyPI". Where did I say bug against distutils? Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: problem uploading ZIP file tp PyPI

2005-05-22 Thread richard
ts attempts to discover whether an uploaded ZIP file was generated by distutils. It's a bug. It will get fixed. Get over your damn platform paranoia. Richard -- http://mail.python.org/mailman/listinfo/python-list

RE: problem uploading ZIP file tp PyPI

2005-05-22 Thread richard
richard wrote: > "bug against PyPI". Where did I say bug against distutils? Apologies for the dupe response. The bug has now been fixed. Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: SMTP Test Rig ( SMTPRIG.PY v1.0 )

2005-06-11 Thread richard
or general public use? http://www.python.org/pypi Richard -- http://mail.python.org/mailman/listinfo/python-list

PyWeek 6 is coming!

2008-01-31 Thread richard
PyWeek 6 will run from 00:00 UTC on March 30th through to 00:00 UTC on April 6th. Registration is NOT OPEN YET. It will open on Friday 2008/02/29. If you're new (or even coming back again) please have a look at the rules and help pages at http://www.pyweek.org/ The PyWeek challenge: 1. Inv

Python game programming challenge, NUMBER 7, in September!

2008-07-21 Thread richard
The date for the SEVENTH bi-annual PyWeek challenge has been set: Sunday 7th September to Sunday 14th September (00:00UTC to 00:00UTC). http://pyweek.org/ The PyWeek challenge invites entrants to write a game in one week from scratch either as an individual or in a team. Entries must be develo

Cheese Shop: some history for the new-comers

2006-03-10 Thread richard
ve last year, so too did the name cheeseshop.python.org Rejoice! No more confusing conversations with PyPy developers! Richard -- http://mail.python.org/mailman/listinfo/python-list

PyWeek #2 one week before the fun starts!

2006-03-19 Thread richard
The PyWeek challenge invites entrants to write a game in one week from scratch either as an individual or in a team. Entries must be developed in Python, during the challenge, and must incorporate some theme chosen at the start of the challenge. PyWeek #2 runs from Sunday 26th March to Sunday 2nd

Efficiently determine where documents differ

2010-01-04 Thread Richard
positions rather the actual text, which is what SequenceMatcher().get_opcodes() returns.) Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: Efficiently determine where documents differ

2010-01-05 Thread Richard
On Jan 5, 9:46 am, "Gabriel Genellina" wrote: > En Mon, 04 Jan 2010 19:04:12 -0300, Richard escribió: > > > I have been using the difflib library to find where 2 large HTML > > documents differ. The Differ().compare() method does this, but it is > > very slow -

os.rename [Errno 31] Too many links

2010-03-10 Thread Richard
links I can still create files in this directory so I doubt it is a platform limitation. Can you tell what is wrong? Am I not freeing the temporary file resources properly? thanks, Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: os.rename [Errno 31] Too many links

2010-03-10 Thread Richard
On Mar 11, 3:08 am, Thomas Guettler wrote: > Richard wrote: > > I want to atomically write to a file so have been using temporary > > files and renaming: > > > temp = tempfile.NamedTemporaryFile(delete=False) > > temp.file.write(data) > > temp.file.close()

Re: "Strong typing vs. strong testing"

2010-09-28 Thread Richard
Malcolm McLean writes: > On Sep 27, 9:29 pm, p...@informatimago.com (Pascal J. Bourguignon) > wrote: >> >> On the other hand, with the dynamic typing mindset, you might even wrap >> your values (of whatever numerical type) in a symbolic expression >> mentionning the unit and perhaps other meta da

library for Amazon MWS

2010-10-04 Thread Richard
/mws/doc/en_US/bde/feeds/v20090901/php.html https://sellercentral.amazon.com/gp/mws/doc/en_US/bde/feeds/v20090901/cSharp.html https://sellercentral.amazon.com/gp/mws/doc/en_US/bde/feeds/v20090901/java.html Richard -- http://mail.python.org/mailman/listinfo/python-list

tkMessageBox

2010-10-18 Thread richard
When I do import tkMessageBox the Python Shell tells me that this does not exist. Where do I find it? You may reply to my academic email: rdrie...@nps.edu -- http://mail.python.org/mailman/listinfo/python-list

Useful Python books and Web sites for system administrators

2013-06-13 Thread Richard Zinar
ites which discuss Python scripting in the context of Windows system administration would also be helpful. Thanks, Richard -- http://mail.python.org/mailman/listinfo/python-list

[ANN] PyWeek 17 will run in the first week of September (1st to 8th) - write a game in Python in a week

2013-07-24 Thread Richard Jones
Hi all, The Python Game Programming Challenge will run its 17th challenge during the first week of September, from the 1st to the 8th. The PyWeek challenge: 1. Invites entrants to write a game in one week from scratch either as an individual or in a team, 2. Is intended to b

Incorrect detection of futimesns/futimes in 3.3.0b1

2012-07-19 Thread RICHARD MOSELEY
I upgrade the source code to the latest version? Richard Moseley -- http://mail.python.org/mailman/listinfo/python-list

Python Game Programming Challenge (PyWeek) #15 is coming!

2012-08-12 Thread Richard Jones
/help/ http://pyweek.org/d/4008/ Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: Dynamically determine base classes on instantiation

2012-08-16 Thread Richard Thomas
class Foo(object): def __new__(cls, arg): if isinstance(arg, list): cls = FooList elif isinstance(arg, dict): cls = FooDict return object.__new__(cls, arg) class FooList(Foo, list): pass class FooDict(Foo, dict): pass You could even hav

Re: Dynamically determine base classes on instantiation

2012-08-16 Thread Richard Thomas
> a is a Foo > b is a Foo > therefore a and b are the same type What you mean here is "a and b share a common base class". -- http://mail.python.org/mailman/listinfo/python-list

Re: Dynamically determine base classes on instantiation

2012-08-17 Thread Richard Thomas
On Thursday, 16 August 2012 19:49:43 UTC+2, Steven D'Aprano wrote: > On Thu, 16 Aug 2012 10:03:51 -0700, Richard Thomas wrote: > > > > > class Foo(object): > > > def __new__(cls, arg): > > > if isinstance(arg, list): > > >

Re: building a dictionary dynamically

2012-02-06 Thread Richard Thomas
On Feb 4, 6:13 pm, noydb wrote: > How do you build a dictionary dynamically?  Doesn't seem to be an > insert object or anything.  So I need an empty dictionary that I then > want to populate with values I get from looping through a list and > grabbing some properties.  So simply, I have (fyi, arcp

Python Game Programming Challenge (PyWeek) #14 is coming!

2012-02-20 Thread Richard Jones
The 14th Python Game Programming Challenge (PyWeek) is coming. It'll run from the 22nd to the 29th of April. http://pyweek.org/14/ New user registration is NOT YET OPEN. It will open one month before the challenge starts. The PyWeek challenge: - Invites entrants to write a game in one week fr

Python Game Programming Challenge (PyWeek) #14 is coming! [corrected dates]

2012-02-22 Thread Richard Jones
Note: this email corrects the dates given in the previous announcement. The 14th Python Game Programming Challenge (PyWeek) is coming. It'll run from the 6th to the 13th of May. Not April as previously announced. http://pyweek.org/14/ New user registration is NOT YET OPEN. It will open one mont

converting from tcl/tkl to python

2012-03-09 Thread Richard Boothroyd
info you may require. Also, if there is anyone out there that has specific expertise in performing this conversion please contact me. Thanks Richard Boothroyd General Manager Audioscan -- http://mail.python.org/mailman/listinfo/python-list

Re: How to get a reference of the 'owner' class to which a method belongs in Python 3.X?

2012-03-17 Thread Richard Thomas
On Saturday, 17 March 2012 05:30:34 UTC, Cosmia Luna wrote: > I'm porting my existing work to Python 3.X, but... > > class Foo: > def bar(self): > pass > > mthd = Foo.bar > > assert mthd.im_class is Foo # this does not work in py3k mthd.im_class is the class of mthd.im_self not the

Re: setup.py for an extension

2012-03-21 Thread Richard Thomas
Assuming you have: lib/__init__.py lib/foo.py lib/foo.c Then: from distutils.core import setup, Extension setup(name="lib", packages=["lib"], ext_modules=[Extension("lib._foo", ["lib/foo.c"])]) -- http://mail.python.org/mailman/listinfo/python-list

Suggest design to accomodate non-unix platforms ?

2012-04-18 Thread Richard Shea
unctionality to be supplied. I'm thinking of something in a config file like this ... ssh_dropin = {exec: 'putty.exe -ssh %s@%s', args:['auser','somehost']} ... which I think would work and be sufficiently flexible to deal with alternatives to putty.

Re: Suggest design to accomodate non-unix platforms ?

2012-04-18 Thread Richard Shea
On Apr 19, 1:56 am, Irmen de Jong wrote: > On 18-4-2012 15:35, Richard Shea wrote: > > > ... which I think would work and be sufficiently flexible to deal with > > alternatives to putty.exe but is there a more established (... > > better !) way of doing this stuff ? > &

Re: Suggest design to accomodate non-unix platforms ?

2012-04-18 Thread Richard Shea
On Apr 19, 2:28 am, tinn...@isbd.co.uk wrote: > Richard Shea wrote: > > On a *nix box this is a reasonable bit of Python : > > > cmd = "ssh -o StrictHostKeyChecking=no -i %s %s@%s '%s' > %s" % (key, > > user, dns, "echo CONNECTION READY&qu

Re: Whither paramiko?

2012-04-19 Thread Richard Shea
as I'm just about to start using the library and I'd like to know a little more about where it might be going in future. regards Richard. -- http://mail.python.org/mailman/listinfo/python-list

Re: Whither paramiko?

2012-04-19 Thread Richard Shea
On Apr 19, 8:28 pm, Richard Shea wrote: > On Apr 16, 1:42 am, Bryan wrote:> > Paramiko is a Python library for SSH (Secure Shell). Over about the > > last year, I've grown dependent upon it. Its home page is still easy > > to search up, but the links to its mailing

Use of internal ctypes objects

2012-06-15 Thread RICHARD MOSELEY
f isinstance(func_info, tuple): real_func.argtypes = func_info else: real_func.restype = func_info self._func[name] = func_info = real_func return func_info Thank you in advance, Richard Moseley -- http://mail.python.org/mailman/listinfo/python-list

Re: Determine attributes of calling method

2011-06-04 Thread Richard Thomas
On Jun 3, 9:35 pm, Joe wrote: > Hello, > > I'm trying to implement a way to restrict method usage based on the > caller's attributes.  In the following example I'd like to execute the > server method "bar" only if the caller's method has a "blue" value for > it's color attribute. > > The current o

Documenting Regex (and code)

2011-06-06 Thread Richard Parker
- Dense and complex REs are quite powerful, but may also contain and hide programming mistakes. The ability to describe what is intended -- which may differ from what is written -- is useful. --

Re: Function docstring as a local variable

2011-07-10 Thread Richard Thomas
me objects don't need to know about functions. Functions are just one way of wrapping code objects but sometimes code objects come in modules. You can use sys._getframe() to get the current frame instead of the traceback. Richard -- http://mail.python.org/mailman/listinfo/python-list

Python Game Programming Challenge 13 (September 2011) is coming!

2011-07-21 Thread Richard Jones
fully increase the public body of game tools, code and expertise, - Will let a lot of people actually finish a game, and - May inspire new projects (with ready made teams!) Richard http://pyweek.org/13/ -- http://mail.python.org/mailman/listinfo/python-list

Re: OT: Code Examples

2011-03-01 Thread Richard Dobson
ge complete with GUI design options - great for "knocking up stuff quickly". But - I am ~still~ caught out by the semantic significance of indenting. Looks OK enough on paper, but doing it interactively is another matter. Richard Dobson -- http://mail.python.org/mailman/listinfo/python-list

PyWeek 12 (April 2011) is registration is open!

2011-03-06 Thread Richard Jones
python.com/ Richard Jones http://pyweek.org -- http://mail.python.org/mailman/listinfo/python-list

Tk MouseWheel Support

2011-03-10 Thread Richard Holmes
I am trying to use the mouse wheel to scroll a list box, but I'm not getting the event. When I bind "" to the listbox I get the event and I'm able to scroll using yview_scroll. I've tried binding "MouseWheel" and "", and I've also tried "" and "" even though I'm using Windows (XP, if that makes a d

Next Melbourne PUG meeting 6pm Monday 4th of April @ RMIT

2011-03-30 Thread Richard Jones
that he's been working on. If you have some experience with benchmarking or profiling Python code, perhaps you have something you can share? I'm going to talk about PyWeek number 12, which starts this coming Sunday morning :-) Full meeting info at http://j.mp/mpug Richard -- ht

Re: Namespaces in functions vs classes

2011-04-17 Thread Richard Thomas
On Apr 17, 8:56 pm, Chris Rebert wrote: > On Sun, Apr 17, 2011 at 12:30 PM, Gerald Britton > > > > > > > > > > wrote: > > I apologize if this has been answered before or if it is easy to find > > in the docs. (I couldn't find it but might have missed it) > > > I'm trying to understand the differe

  1   2   3   4   5   6   7   8   9   10   >