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
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
[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
Thanks for the great reply, Steve, et al.
-j
--
http://mail.python.org/mailman/listinfo/python-list
<[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
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
-
[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
[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
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.
--
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
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
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
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
>
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
[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
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
[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
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
[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
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
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
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,
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
"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'.
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
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
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
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
"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,
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
"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
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
[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
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
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
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):
>
>
- xlrd seems to be focused on extracting data.
- pyexcelerator can also generate Excel files.
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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_
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
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
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
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
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.
"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
> >>
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
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,
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
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
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
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
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
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
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
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
<[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
==
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
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
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
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
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
Thanks.
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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/
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
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
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
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
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
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
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
[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
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
[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
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
>> 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
"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
[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
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
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
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)
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
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
[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
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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.
>>
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
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
[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
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
<[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
"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
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 - 100 of 161 matches
Mail list logo