python library for web discussions

2006-03-18 Thread Amir Michail
Hi, I'm building something like digg/reddit and would like to allow people to have discussions on various items. Is there a simple lightweight python library that I can use (as opposed to a heavyweight web framework)? Although not necessary, some sort of scoring/moderation mechanism would be goo

Re: Have you ever considered of mousing ambidextrously?

2006-03-18 Thread John Salerno
Roy Smith wrote: > In article <[EMAIL PROTECTED]>, > Scott David Daniels <[EMAIL PROTECTED]> wrote: > >> Roy Smith wrote: >>> I never understood why people switch mouse buttons. I'm left handed, so I >>> put the mouse on the left side of my keyboard. It never occurred to me to >>> flip the bu

Re: strange math?

2006-03-18 Thread Ron Adam
[EMAIL PROTECTED] wrote: f(01) > 43 f(02) > 44 f(010) > 50 42+010 > 50 > > The first f(01) was a mistake. I accidentally forgot to delete the > zero, but to my suprise, it yielded the result I expected. So, I tried > it again, and viola, the right answer. So, I decided to r

Re: strange math?

2006-03-18 Thread joe . hrbek
Thanks for the great reply, Steve, et al. -j -- http://mail.python.org/mailman/listinfo/python-list

Re: strange math?

2006-03-18 Thread Christian Stapfer
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello everyone, I'm experimenting with python and i'm following this > tutorial: > http://docs.python.org/tut/node6.html#SECTION00640 I'm > in section 4.7.5 Lambda Forms. In this section I was working along and > I no

Re: strange math?

2006-03-18 Thread Terry Reedy
f(01) > 43 f(02) > 44 f(010) > 50 42+010 > 50 Literal ints with lead 0 are interpreted as octal numbers (base 8) instead of decimal numbers (base 10). 01==1 either way, but 010 == 8. >>> 010 8 0x (zero eks) prefix indicate hexadecimal numbers: >>> 0xff 255 Terry Jan Reedy -

Re: strange math?

2006-03-18 Thread Steven Bethard
[EMAIL PROTECTED] wrote: f(01) > 43 f(02) > 44 f(010) > 50 42+010 > 50 > > The first f(01) was a mistake. I accidentally forgot to delete the > zero, but to my suprise, it yielded the result I expected. So, I tried > it again, and viola, the right answer. So, I decided to re

Re: Can I use a conditional in a variable declaration?

2006-03-18 Thread Jeffrey Schwab
[EMAIL PROTECTED] wrote: > I want the equivalent of this: > > if a == "yes": >answer = "go ahead" > else: >answer = "stop" > > in this more compact form: > > a = (if a == "yes": "go ahead": "stop") > > is there such a form in Python? I tried playing around with lambda > expressions, bu

Re: Programming challenge: wildcard exclusion in cartesian products

2006-03-18 Thread [EMAIL PROTECTED]
OK, a bad case of RTFM. I saved your file as WildCartesian.hs and then 1) command line: ghci WildCartesian.hs 2) Get some loading messages 3) command line: test and it works! But how do I compile it to get a program with command line arguments? I'm looking through Daume's tutorial right now. --

strange math?

2006-03-18 Thread joe . hrbek
Hello everyone, I'm experimenting with python and i'm following this tutorial: http://docs.python.org/tut/node6.html#SECTION00640 I'm in section 4.7.5 Lambda Forms. In this section I was working along and I noticed something strange. It happened because of a typo. Below is a co

Re: Have you ever considered of mousing ambidextrously?

2006-03-18 Thread Aahz
In article <[EMAIL PROTECTED]>, Roy Smith <[EMAIL PROTECTED]> wrote: > >I never understood why people switch mouse buttons. I'm left handed, >so I put the mouse on the left side of my keyboard. It never occurred >to me to flip the buttons around. Heh. When possible, my work situation includes

Re: Can I use a conditional in a variable declaration?

2006-03-18 Thread Grant Edwards
On 2006-03-19, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I want the equivalent of this: > > if a == "yes": >answer = "go ahead" > else: >answer = "stop" If that's what you want, then write that. ;) -- [EMAIL PROTECTED] Grant Edwards -- http://mail.python.org/mailman/listinfo/pytho

Re: Need design advice. What's my best approach for storing this data?

2006-03-18 Thread Robert Kern
Mudcat wrote: > In doing a little research I ran across PyTables, which according to > the documentation does this: "PyTables is a hierarchical database > package designed to efficiently manage very large amounts of data." It > also deals with compression and various other handy things. Zope also >

Re: Xah's Edu Corner: The Concepts and Confusions of Pre-fix, In-fix, Post-fix and Fully Functional Notations

2006-03-18 Thread Roedy Green
On Sun, 19 Mar 2006 02:08:11 GMT, Tim Roberts <[EMAIL PROTECTED]> wrote, quoted or indirectly quoted someone who said : >Try pressing Ctrl-R when his message is visible. I'm also using Agent, and >that toggles his extended characters from quoted-printable to visible for >me. that swaps fixed and

Re: Can I use a conditional in a variable declaration?

2006-03-18 Thread Paul Rubin
[EMAIL PROTECTED] writes: > a = (if a == "yes": "go ahead": "stop") > > is there such a form in Python? I tried playing around with lambda > expressions, but I couldn't quite get it to work right. This has been the subject of huge debate over the years. The answer is Python doesn't currently hav

Re: Can I use a conditional in a variable declaration?

2006-03-18 Thread volcs0
Kent - Thanks for the quick reply. I tried the and/or trick - it does work. But you're right - more trouble than its worth So for now, I did it "the long way". It looks like (see below), this functionality will be added in soon. Thanks for the quick help. -sam -- http://mail.python.org/mail

Re: Can I use a conditional in a variable declaration?

2006-03-18 Thread Ben Cartwright
[EMAIL PROTECTED] wrote: > I've done this in Scheme, but I'm not sure I can in Python. > > I want the equivalent of this: > > if a == "yes": >answer = "go ahead" > else: >answer = "stop" > > in this more compact form: > > > a = (if a == "yes": "go ahead": "stop") > > > is there such a form

Re: Need design advice. What's my best approach for storing this data?

2006-03-18 Thread Mudcat
In doing a little research I ran across PyTables, which according to the documentation does this: "PyTables is a hierarchical database package designed to efficiently manage very large amounts of data." It also deals with compression and various other handy things. Zope also seems to be designed to

Re: Can I use a conditional in a variable declaration?

2006-03-18 Thread Kent Johnson
[EMAIL PROTECTED] wrote: > I want the equivalent of this: > > if a == "yes": >answer = "go ahead" > else: >answer = "stop" > > in this more compact form: > > > a = (if a == "yes": "go ahead": "stop") If the value for the 'true' case can never have a boolean value of False, you can use

Can I use a conditional in a variable declaration?

2006-03-18 Thread volcs0
I've done this in Scheme, but I'm not sure I can in Python. I want the equivalent of this: if a == "yes": answer = "go ahead" else: answer = "stop" in this more compact form: a = (if a == "yes": "go ahead": "stop") is there such a form in Python? I tried playing around with lambda expr

Re: POP3 Mail Download

2006-03-18 Thread Scott David Daniels
Bob Piton wrote: > I think what he is hinting at is that you are missing a right parentheses. > > msgNum = int(split(msg, " ")[0] > should be: > msgNum = int(split(msg, " "))[0] Or more likely: msgNum = int(split(msg, " ")[0]) > msgSize = int(split(msg, " ")[1] > should be: > msgSize = int(s

Re: POP3 Mail Download

2006-03-18 Thread Kent Johnson
Bob Piton wrote: > On Sat, 18 Mar 2006 18:34:56 -0500, Kevin F wrote: >>i have no idea what you are hinting at, can you please just tell me what i >>need to change? > > > I know how you feel; it's brutal trying to get elementary information from > this group. You could try the python-tutor list,

Re: ANNOUNCE: xlrd 0.5.2 -- extract data from Excel spreadsheets

2006-03-18 Thread Kent Johnson
John Machin wrote: > On 19/03/2006 8:31 AM, Kent Johnson wrote: >>How does xlrd compare with pyexcelerator? At a glance they look pretty >>similar. >> > > I have an obvious bias, so I'll just leave you with a not-very-PC > analogy to think about: > > Depending on the ambient light and the quant

Re: Python compiler

2006-03-18 Thread Terry Reedy
"Rc" wrote in message news:[EMAIL PROTECTED] > it is a Dos Window > that opened.I think it is not possible on a XP computer? In XP, it is called a Command Prompt (window). You can get one without Python by looking under All Programs / Accessories. It is similar to the Win 9X 'Dos Window'.

Re: Have you ever considered of mousing ambidextrously?

2006-03-18 Thread Scott David Daniels
Roy Smith wrote: > In article <[EMAIL PROTECTED]>, > Scott David Daniels <[EMAIL PROTECTED]> wrote: > >> Roy Smith wrote: >>> I never understood why people switch mouse buttons. I'm left handed, so I >>> put the mouse on the left side of my keyboard. It never occurred to me to >>> flip the bu

Adding instance attributes to types

2006-03-18 Thread [EMAIL PROTECTED]
I have written a C module which implements a new Python type, and implemented data attributes for the type using PyGetSetDef/tp_getset. However, I want to allow instances of this type to have additional data attributes which also have get() and set() functions. (This might be better suited to use

ANN: consensus 0.1.1 - Collaborative filtering library for Python

2006-03-18 Thread Brian Beck
Last night was the first release of a new (maybe the only?) collaborative filtering library in Python. www: http://exogen.case.edu/projects/consensus/ pypi: http://python.org/pypi/consensus/0.1.1 svn: svn://exogen.case.edu/consensus/tags/0.1.1 consensus currently includes three collaborative filt

Re: Where can we find top-notch python developers?

2006-03-18 Thread Roy Smith
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Alex Martelli) wrote: > Unfortunately, I entirely understand _why_ most software development > firms prefer face-to-face employees: when I found myself, back when I > was a freelance consultant, alternatively working remotely for some > time, and

Re: Is there no end to Python?

2006-03-18 Thread Terry Reedy
"Jeffrey Schwab" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Sorry, that came out a lot ruder than I meant it. There has been much worse here, and even more in other groups... > I've always heard that Python was extremely easy to learn. I'm still > fairly new to the language,

Re: How to run SimpleHTTPServer on IronPython on Mono

2006-03-18 Thread sanxiyn
Paul Boddie wrote: > Sanghyeon Seo wrote: > > The purpose of this document is twofold: to show how to run > > SimpleHTTPServer on IronPython on Mono, and to debunk some myths like: > > > > * IronPython doesn't run on Mono > > But it does require recent versions, according to the document. > Requiri

Re: Is there no end to Python?

2006-03-18 Thread Terry Reedy
"Kamilche" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > arcane code' crowd. Sets - when I played with them, they were slower > than doing the equivalent code with dicts. It's got to be a reliable, > compelling feature, before I'll add it to my arsenal. In 2.3, sets was, I believ

Re: Getting .NET SDK to work with Python 2.4.2

2006-03-18 Thread Dave
yea i have .net 1.1, but not the sdk. do i need the 1.1 SDK too? -- http://mail.python.org/mailman/listinfo/python-list

Re: Converting to ARGB and writing to a bitmap

2006-03-18 Thread Tim Roberts
[EMAIL PROTECTED] wrote: > >I don't know what type of files they are, but the script allows me to >save to a bitmap just fine. But I do know they need to be in RGBA >format, so I've followed what most of the tutorials for RGBA >conversions said to do...shifting the bytes. It wasn't until I lo

Re: Xah's Edu Corner: The Concepts and Confusions of Pre-fix, In-fix, Post-fix and Fully Functional Notations

2006-03-18 Thread Tim Roberts
Roedy Green <[EMAIL PROTECTED]> wrote: >On 17 Mar 2006 00:58:55 -0800, "Fuzzyman" <[EMAIL PROTECTED]> wrote, >quoted or indirectly quoted someone who said : > >>Hmmm... it displays fine via google groups. Maybe it's the reader which >>is 'non-compliant' ? > >I am using Agent. You configure your d

Re: POP3 Mail Download

2006-03-18 Thread Alex Martelli
Kevin F <[EMAIL PROTECTED]> wrote: ... > > msgSize = int(split(msg, " ")[1] # line is missing closing paren, ... > thanks, that helped fix the syntax error, however, now when i run it, it > gives me an error for 'split', saying "name 'split' is not defined" > > i'm new to python so

Re: can't rebind magic methods

2006-03-18 Thread Alex Martelli
Michael Tobis <[EMAIL PROTECTED]> wrote: > I'd appreciate an explanation of why this doesn't work and any > workarounds. Special methods are looked up (for their automatic use) on the type, not the instance. The workaround is therefore to set them on the type, too: > class myint(object): > >

Re: ANNOUNCE: xlrd 0.5.2 -- extract data from Excel spreadsheets

2006-03-18 Thread Waldemar Osuch
- xlrd seems to be focused on extracting data. - pyexcelerator can also generate Excel files. -- http://mail.python.org/mailman/listinfo/python-list

Re: pop3 mail download - using python.org example

2006-03-18 Thread Alex Martelli
Kevin F <[EMAIL PROTECTED]> wrote: > i'm trying to this this code to access my pop server but it only prompts > for a password and not a username, how do i get it to ask for my > username as well? getpass.getuser() doesn't prompt, it gets your username from the environment or the OS. If you wan

Re: Where can we find top-notch python developers?

2006-03-18 Thread Alex Martelli
Nicholas Reville <[EMAIL PROTECTED]> wrote: > Hi, I hope this is an OK spot for this question: ... > We're looking to expand our development team, but we haven't been > getting enough top-quality applicants. I was wondering if anyone > here has suggestions for where we can post or list the

Re: POP3 Mail Download

2006-03-18 Thread Bob Piton
On Sat, 18 Mar 2006 18:34:56 -0500, Kevin F wrote: > Dennis Lee Bieber wrote: >> On Sat, 18 Mar 2006 17:24:05 -0500, Kevin F <[EMAIL PROTECTED]> >> declaimed the following in comp.lang.python: >> >>> I fixed the indentation to: >>> >>> emails = [] >>> for msg in messagesInfo: >>> msgNum

Re: Where can we find top-notch python developers?

2006-03-18 Thread Roy Smith
In article <[EMAIL PROTECTED]>, Nicholas Reville <[EMAIL PROTECTED]> wrote: > Hi, I hope this is an OK spot for this question: An even better place would be to post your position on the Python Jobs Board, http://www.python.org/community/jobs/ -- http://mail.python.org/mailman/listinfo/python-l

pop3 mail download - using python.org example

2006-03-18 Thread Kevin F
i'm trying to this this code to access my pop server but it only prompts for a password and not a username, how do i get it to ask for my username as well? ##from http://docs.python.org/lib/pop3-example.html import getpass, poplib M = poplib.POP3('localhost') M.user(getpass.getuser()) M.pass_

Where can we find top-notch python developers?

2006-03-18 Thread Nicholas Reville
Hi, I hope this is an OK spot for this question: I'm a co-founder of the Participatory Culture Foundation (pculture.org), we're a non-profit that develops Democracy Player and some related internet TV tools (see getdemocracy.com). Democracy Player has a Python backend with native front-ends

epydoc: links to other methods/classes with reStructuredText

2006-03-18 Thread Max Kubierschky
Hi, I try to use epydoc with reStructuredText. It works fine, my only problem is that I couldn't figure out the syntax for links to other methods or classes. Any hints? Max P.S: Where is the correct platform for discussing epydoc? -- http://mail.python.org/mailman/listinfo/python-list

can't rebind magic methods

2006-03-18 Thread Michael Tobis
I'd appreciate an explanation of why this doesn't work and any workarounds. It's not a showstopper, but I'd like to pseudo-inherit a bunch of magic methods from an attribute, and would prefer to abstract the definitions into a loop rather than write them all out. thanks mt ### import ne

Re: POP3 Mail Download

2006-03-18 Thread Kevin F
Paul McGuire wrote: > "Kevin F" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> Dennis Lee Bieber wrote: >>> On Sat, 18 Mar 2006 16:44:44 -0500, Kevin F <[EMAIL PROTECTED]> >>> declaimed the following in comp.lang.python: >>> >>> However, if I try to actually download the mess

Re: ANNOUNCE: xlrd 0.5.2 -- extract data from Excel spreadsheets

2006-03-18 Thread John Machin
On 19/03/2006 8:31 AM, Kent Johnson wrote: > John Machin wrote: > >> I am pleased to announce a new general release (0.5.2) of xlrd, a Python >> package for extracting data from Microsoft Excel spreadsheets. > > > How does xlrd compare with pyexcelerator? At a glance they look pretty > similar.

Re: POP3 Mail Download

2006-03-18 Thread Paul McGuire
"Kevin F" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Dennis Lee Bieber wrote: > > On Sat, 18 Mar 2006 16:44:44 -0500, Kevin F <[EMAIL PROTECTED]> > > declaimed the following in comp.lang.python: > > > > > >> However, if I try to actually download the messages themselves, my > >>

interrupting pythonD with ^C

2006-03-18 Thread John Savage
I'm finding that many times when I inadvertently code an endless loop in pythonD code, on MSDOS, execution cannot be interrupted by ctrl-C and I am forced to reboot and this is rapidly loses its novelty. Do users of pythonD have a coding technique, or a library file to include, to endow a program

Re: POP3 Mail Download

2006-03-18 Thread Kevin F
Dennis Lee Bieber wrote: > On Sat, 18 Mar 2006 17:24:05 -0500, Kevin F <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > >> I fixed the indentation to: >> >> emails = [] >> for msg in messagesInfo: >> msgNum = int(split(msg, " ")[0] >> msgSize = int(split(msg,

Re: How to change echo in python prompt

2006-03-18 Thread Fabio Zadrozny
Hi... Found out (sys.ps1 and sys.ps2 control that).Cheers,FabioOn 3/18/06, Fabio Zadrozny <[EMAIL PROTECTED] > wrote:Hi All,Does someone know if there is some way to supress the '>>>' and '...' in the python prompt (while actually forcing prompts with -i)? -- and all that in a non-platform dependen

Re: Getting .NET SDK to work with Python 2.4.2

2006-03-18 Thread Kevin F
okay, i am new to python and realize that indentation is important. i have tried to put everything in their respective indentations but it still doesn't work, can someone try to fix this? from poplib import * server = POP3("mail.bluebottle.com") print server.getwelcome() print server.user("[EMA

Re: Getting .NET SDK to work with Python 2.4.2

2006-03-18 Thread Kevin F
Dave wrote: > I searched the usenet and some mail archives and tried various > techniques, but I can't seem to get the .NET 2.0 SDK to work with > python. I'm a total newbie when it comes to python installs. I > downloaded the .NET 2.0 SDK and I have python 2.4.2 and im trying to > install zope. So

Re: Have you ever considered of mousing ambidextrously?

2006-03-18 Thread Felipe Almeida Lessa
Em Sáb, 2006-03-18 às 14:26 -0500, Roy Smith escreveu: > "WangQiang" <[EMAIL PROTECTED]> wrote: > > I'm also a programmer, as working in front of computer day and day, my > > right hand is so tired and ached. So I tried to mouse in both hands. I > > find that it is really an efficient way to releas

Re: POP3 Python Mail Download

2006-03-18 Thread Kent Johnson
Kevin F wrote: > However, if I try to actually download the messages themselves, my > python editor highlights 'msgSize' and says "invalid syntax" when I run > the following subsequent lines of code: > > > > emails = [] > for msg in messagesInfo: > msgNum = in

How to change echo in python prompt

2006-03-18 Thread Fabio Zadrozny
Hi All,Does someone know if there is some way to supress the '>>>' and '...' in the python prompt (while actually forcing prompts with -i)?-- and all that in a non-platform dependent way ;-) Thanks,Fabio -- http://mail.python.org/mailman/listinfo/python-list

Getting .NET SDK to work with Python 2.4.2

2006-03-18 Thread Dave
I searched the usenet and some mail archives and tried various techniques, but I can't seem to get the .NET 2.0 SDK to work with python. I'm a total newbie when it comes to python installs. I downloaded the .NET 2.0 SDK and I have python 2.4.2 and im trying to install zope. So i go to the cmd and g

Re: remove a directory with special chars

2006-03-18 Thread andy
Is there a special reason you want to use Python to do this? The Linux command shell would probably do exactly the same job (you can specify backslash-escaped characters at the command-line)... anyway to do it in python: import os os.remove("/path/to/the/file/.\177\177") Note that under Lin

Re: Python equivalent of Perl-ISAPI?

2006-03-18 Thread Roger Upole
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Is there an effcient way (more so than cgi) of using Python > with Microsoft IIS? Something equivalent to Perl-ISAPI? > Pywin32 comes with an ISAPI package. See \lib\site-packages\isapi\samples\ for some demos. Roger ==

Re: __dict__ strangeness

2006-03-18 Thread Ziga Seilnacht
Georg Brandl wrote: > Hi, > > can someone please tell me that this is correct and why: > > >>> class C(object): > ... pass > ... > >>> c = C() > >>> c.a = 1 > >>> c.__dict__ > {'a': 1} > >>> c.__dict__ = {} > >>> c.a > Traceback (most recent call last): > File "", line 1, in ? > AttributeErr

Re: POP3 Mail Download

2006-03-18 Thread Kevin F
Dennis Lee Bieber wrote: > On Sat, 18 Mar 2006 16:44:44 -0500, Kevin F <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > > >> However, if I try to actually download the messages themselves, my >> python editor highlights 'msgSize' and says "invalid syntax" when I run >> the f

Re: Have you ever considered of mousing ambidextrously?

2006-03-18 Thread Roy Smith
In article <[EMAIL PROTECTED]>, Scott David Daniels <[EMAIL PROTECTED]> wrote: > Roy Smith wrote: > > I never understood why people switch mouse buttons. I'm left handed, so I > > put the mouse on the left side of my keyboard. It never occurred to me to > > flip the buttons around. > Well, I

Re: Have you ever considered of mousing ambidextrously?

2006-03-18 Thread Paddy
I can't quite understand why right handed people put the mouse in their right hand. I'm not a touch typist, like most of the English engineers I know, and I am left handed but prefer to have the mouse in my right hand. this allows my to mouse and then peck at the keyboard with my left hand for th

Re: A Frame-space syntax ? - Re: global, globals(), _global ?

2006-03-18 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, robert wrote: > The fact is: > * Python has that big problem with unnecessary barriers for nested frame > access - especially painfull with callback functions where you want to > put back data into the calling frame. You mean accessing the locals in the function that inv

Re: filter list fast

2006-03-18 Thread Paddy
Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to convert

2006-03-18 Thread Steve Holden
JuHui wrote: 10/3.0 > > 3.3335 > The above value is a float, not a long ... int(10/3.0) > > 3 > >>> int(1l) 1 >>> 1 1L >>> 1/100 100L >>> int(1/100) 100

Re: filter list fast

2006-03-18 Thread lars_woetmann
comparing [x for x in list1 if x not in list2] with set1, set2 = set(list1), set(list2) list(set1-set2) gives something like len(list2) speedup -- 10010 1000 100 11000 the speedup is constant for different len(list1) -- http://mai

POP3 Mail Download

2006-03-18 Thread Kevin F
Having some troubles downloading messages with POP3... I can connect to the server just fine and list messages without any problem with the following code: from poplib import * server = POP3("mail.bluebottle.com") print server.getwelcome() print server.user("[EMAIL PROT

Re: ANNOUNCE: xlrd 0.5.2 -- extract data from Excel spreadsheets

2006-03-18 Thread Kent Johnson
John Machin wrote: > I am pleased to announce a new general release (0.5.2) of xlrd, a Python > package for extracting data from Microsoft Excel spreadsheets. How does xlrd compare with pyexcelerator? At a glance they look pretty similar. Thanks, Kent -- http://mail.python.org/mailman/listinfo/

Re: Python 2.5 Schedule

2006-03-18 Thread Scott David Daniels
Don Taylor wrote: > [EMAIL PROTECTED] wrote: >> For more details about the plan for Python 2.5, see: >> http://www.python.org/doc/peps/pep-0356/ > I hope that this is not considered too off topic, but what compiler is > going to be used for the MSW version of 2.5? > > If it is going to the MS

Re: Why won't the sprites in my group show up? (PyGame)

2006-03-18 Thread Peter Hansen
Isis wrote: > Hi all, > I am writing a snake game, but all is not going well... Chances are good that you'll get access to many more potential respondents by posting the question to the Pygame mailing list. -- http://mail.python.org/mailman/listinfo/python-list

Re: Have you ever considered of mousing ambidextrously?

2006-03-18 Thread Scott David Daniels
Roy Smith wrote: > I never understood why people switch mouse buttons. I'm left handed, so I > put the mouse on the left side of my keyboard. It never occurred to me to > flip the buttons around. Well, I switch 'em because the "forefinger is primary" is ingrained. > When somebody right handed

Re: Have you ever considered of mousing ambidextrously?

2006-03-18 Thread Peter Hansen
Roy Smith wrote: > "WangQiang" <[EMAIL PROTECTED]> wrote: >>I'm also a programmer, as working in front of computer day and day, my >>right hand is so tired and ached. So I tried to mouse in both hands. I >>find that it is really an efficient way to release pains. At first I >>switched the mouse but

Re: Is there no end to Python?

2006-03-18 Thread Peter Hansen
Scott David Daniels wrote: > Kind of like the core developers saying, rather than getting more > users of this language, I'd prefer they submit careful bug reports > with money attached to fix the bugs -- ain't gonna happen. Actually, it does happen: http://www.python.org/psf/donations/ (The actu

Re: Threads modify "global" variable -- asking for trouble?

2006-03-18 Thread J Rice
Thank you. Implementing a results queue was much simpler than I expected, and I think as I add this into the rest of the program it will avoid a lot of potential problems later too. -- http://mail.python.org/mailman/listinfo/python-list

Re: Importing an output from another function

2006-03-18 Thread John Salerno
Byte wrote: > "Try this (I think its called "argument expansion", but I really don't > know what its called, so I can't point you to docs):" > > This works, thanks. But how acn I get rid of the ugly surrounding > brackets and commas? > > e.g. If the scripts overall output was (('B', 'C'),), how

Re: Is there no end to Python?

2006-03-18 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : > John Salerno wrote: > >>But isn't Python sort of known for the opposite, i.e. 'one simple way', >>or something to that effect? > > > The Python language is clear and concise and so I don't think takes > long to learn. To learn the "basics", no. To really grasp all

Why are so many built-in types inheritable?

2006-03-18 Thread Fabiano Sidler
Hi folks! For debugging purposes I tried this: --- snip --- def foo(): pass function = type(foo) class PrintingFunction(function): def __init__(self, func): self.func = func def __call__(self, *args, **kwargs): print args, kwargs return function.__call__(self, args, kwargs) clas

Re: Python 2.5 Schedule

2006-03-18 Thread Don Taylor
[EMAIL PROTECTED] wrote: > For more details about the plan for Python 2.5, see: > > http://www.python.org/doc/peps/pep-0356/ > I hope that this is not considered too off topic, but what compiler is going to be used for the MSW version of 2.5? If it is going to the MS Visual Studio 2005 com

Re: ipv6 validation

2006-03-18 Thread Roy Smith
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > Hello, > is there any common function for validation if string contains valid ip > address(both ipv4 and ipv6)? Or does sb wrote some regular expression > for this? > thanks > J Look at socket.inet_pton(). First check to make sure ipv6

Re: Is there no end to Python?

2006-03-18 Thread kpp9c
>> This is a common (and silly) whine. 1. not a whine 2. if it is really common is it all that silly? >> effort in a free system is not fungible. The odds of your affecting how the people doing the work by complaining about how they do it and their priorities are about zero to one. That is tru

Re: Have you ever considered of mousing ambidextrously?

2006-03-18 Thread Roy Smith
"WangQiang" <[EMAIL PROTECTED]> wrote: > I'm also a programmer, as working in front of computer day and day, my > right hand is so tired and ached. So I tried to mouse in both hands. I > find that it is really an efficient way to release pains. At first I > switched the mouse buttons in windows con

Re: Programming challenge: wildcard exclusion in cartesian products

2006-03-18 Thread Joachim Durchholz
[EMAIL PROTECTED] schrieb: > "This is where K starts to set itself from apart from most of the > common programming languages in use today. You rarely write loops in K > (KDB is 100% loop-free), instead you use adverbs. An adverb modifies a > function, returning another function, changing the way

Re: Linear regression in NumPy

2006-03-18 Thread Robert Kern
Matt Crema wrote: > To sum up a wordy post, "What do experienced users find is the most > efficient way to navigate the numpy docs? (assuming one has already > read the FAQs and tutorials)" You're not likely to get much of an answer here, but if you ask on [EMAIL PROTECTED], you'll get plenty

ANNOUNCE: xlrd 0.5.2 -- extract data from Excel spreadsheets

2006-03-18 Thread John Machin
I am pleased to announce a new general release (0.5.2) of xlrd, a Python package for extracting data from Microsoft Excel spreadsheets. CHANGES: * Book and sheet objects can now be pickled and unpickled. Instead of reading a large spreadsheet multiple times, consider pickling it once and loading

Re: __dict__ strangeness

2006-03-18 Thread Alex Martelli
Georg Brandl <[EMAIL PROTECTED]> wrote: > [moving to python-dev] > > Alex Martelli wrote: > > Georg Brandl <[EMAIL PROTECTED]> wrote: > > > >> can someone please tell me that this is correct and why: > > > > IMHO, it is not correct: it is a Python bug (and it would be nice to fix > > it in 2.5)

Why won't the sprites in my group show up? (PyGame)

2006-03-18 Thread Isis
Hi all, I am writing a snake game, but all is not going well... Two problems here. First of all, the little circles I use for my sprite images only show up as quadrants. Second of all, only the Head sprite for my snake shows up at all. Why? Here are the class definitions: ! /usr/bin/python impo

Dr. Dobb's Python-URL! - weekly Python news and links (Mar 17)

2006-03-18 Thread Cameron Laird
QOTW: "Generally, you should always go for whatever is clearest/most easily read (not just in Python, but in all languages)." - Timothy Delaney "You will find as your programming experience increases that the different languages you learn are appropriate for different purposes, and have differen

Re: insert chars into string

2006-03-18 Thread Diez B. Roggisch
[EMAIL PROTECTED] schrieb: > hi > is there a string method to insert characters into a string? > eg > str = "abcdef" > i want to insert "#" into str so that it appears "abc#def" > > currently what i did is convert it to a list, insert the character > using insert() and then join them back as strin

Socket error: 10053 software caused connection abort

2006-03-18 Thread endcompany
  -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there no end to Python?

2006-03-18 Thread Kamilche
Heheh, that sounds about right. :-D I personally haven't used the new stuff yet. Maybe I'm not experienced enough in Python yet to have encountered the need for them. I've played with them some, but every time I consider using them, something stops me. What stops me from using 'setattr' (an old f

Re: Programming challenge: wildcard exclusion in cartesian products

2006-03-18 Thread [EMAIL PROTECTED]
Nice! How to put it in a loop? I'm totally a newbie to Lisp myself, just gettng into Graham and Touretzky. Let's create a problem. Suppose after excluding I want to know if the digits sum to 12, say, like maybe they're part of a partition. S={0,..6}, S^5, excluding "*1*5*" and "1*2*3*", say. How w

Re: Python compiler

2006-03-18 Thread robert
Rc wrote: > "DaveM" <[EMAIL PROTECTED]> schreef in bericht > news:[EMAIL PROTECTED] > >>On Thu, 16 Mar 2006 13:34:14 +0100, "Méta-MCI" >><[EMAIL PROTECTED]> wrote: >> >> >>>Après, vous pourrez aussi fréquenter le newsgroup : >>> fr.comp.lang.python >>>qui a l'avantage d'être en français. >>

ipv6 validation

2006-03-18 Thread jiri . juranek
Hello, is there any common function for validation if string contains valid ip address(both ipv4 and ipv6)? Or does sb wrote some regular expression for this? thanks J -- http://mail.python.org/mailman/listinfo/python-list

Re: How to run SimpleHTTPServer on IronPython on Mono

2006-03-18 Thread Paul Boddie
Sanghyeon Seo wrote: > I took some time to write this HOWTO: > http://sparcs.kaist.ac.kr/~tinuviel/fepy/howto/simplehttpserver-ironpython-mono-howto.html Thanks for spending the time writing this. Whilst I don't run Mono or anything similar, new Python documentation is surely a welcome thing. > I

Re: __dict__ strangeness

2006-03-18 Thread Georg Brandl
[moving to python-dev] Alex Martelli wrote: > Georg Brandl <[EMAIL PROTECTED]> wrote: > >> can someone please tell me that this is correct and why: > > IMHO, it is not correct: it is a Python bug (and it would be nice to fix > it in 2.5). Fine. Credits go to Michal Kwiatkowski for discovering t

Re: Programming challenge: wildcard exclusion in cartesian products

2006-03-18 Thread [EMAIL PROTECTED]
The cardinality of excluding '*a*b*' from S^n should be (m-1)^(n-1)*(m+n-1), where m=|S|. For m=5 this becomes 4^(n-1)*(n+4), and your table fits this formula. As far as generating and testing, an 'ideal' solution would be to 'start from the ground up', as in excluding length 2 wc, and then length

Re: Writing web bots in python

2006-03-18 Thread Paul McGuire
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > I hav a question..How do I write a webbot that logs onto some website, > fills text into a textbox and submit that form, Sorry I am a novice in > python, apparently I have to use urllib, but I hav a few queries on > this, What h

Re: Python compiler

2006-03-18 Thread Rc
"DaveM" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > On Thu, 16 Mar 2006 13:34:14 +0100, "Méta-MCI" > <[EMAIL PROTECTED]> wrote: > >>Après, vous pourrez aussi fréquenter le newsgroup : >>fr.comp.lang.python >>qui a l'avantage d'être en français. > > But perhaps he's a Fl

Re: Linear regression in NumPy

2006-03-18 Thread Matt Crema
nikie wrote: > > Hello, I'm glad that helped, but let's not terminate this discussion just yet. I am also interested in answers to your second question: nikie wrote: > "More generally: Is there any kind of documentation that tells me what > the functions in NumPy do, and what parameters

  1   2   >