On 28 Jun., 01:42, Alex Bryan <[EMAIL PROTECTED]> wrote:
> Okay, so I am having issues figuring anything out about this and have
> read the "missing manual" about it so please don't send me that link
> again. To put it simply I want to be able to input a word and get the
> definition from dic
GET + 1000$$$ @ MANY CASH OFFERS & ENJOY!
Open the Site & Click the Banners = Easy forex + Get
Web Hosting-Free Domains-Dating sites etc.
site name: http://earnincomeblogspotcom.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
I'm looking for a framework to support a 2D online real-time
multiplayer game (rugby league football with a lo-fi pixel look). The
GameProgramming page at the Python wiki had some suggestions but so
far nothing looks that promising, does anyone have some
recommendations?
It would be ideal to play
GET + 1000$$$ @ MANY CASH OFFERS & ENJOY!
Open the Site & Click the Banners = Easy forex + Get
Web Hosting-
Free Domains-Ring Tones-Freelance
Jobs-Games-Surveys-Blogs-Dating sites-
Surffing and hyips - E-Mail Marketing with or without
Investment etc.,
http://srinubuisiness.blogspot.com/
--
acteress images and movies
you want download the latest songs and movie pictures!
in the next film nametha play a role of queen!!
want more comments!
click it!
http://trichysathya.blogspot.com
***
--
http://mail
acteress images and movies
you want download the latest songs and movie pictures!
in the next film nametha play a role of queen!!
want more comments!
click it!
http://trichysathya.blogspot.com
***
--
http://mail
Worth Clicking If You Mean Time = Money In Us $
No Investment Except Minimum Time Daily!
You Will Reveal A Great Home Business Opportunity By Opening The Below
Link.
http://www.govindswamy-govindaswamy.blogspot.com
You Will Be Paid 2 US DOLLARS For Each Member Joining Under You
(Provided they
On Jun 28, 8:20 am, John Machin <[EMAIL PROTECTED]> wrote:
> On Jun 28, 3:41 pm, eliben <[EMAIL PROTECTED]> wrote:
>
>
>
> > On Jun 27, 3:10 pm, eliben <[EMAIL PROTECTED]> wrote:
>
> > > Hello,
> > > I'm trying to compile the minimal example
> > > fromhttp://en.wikibooks.org/wiki/Python_Programmin
A small and ultra-lightweight system, with all the power of any fully
featured text-based templating system (such as mako or cheetah) and
then some (no constraints on template file names or formats,
restricted execution, automatic XSS protection, ...) that can be used
in a web context or standalone
You would need a controller of some sort to connect the web request/
response with your template handling. This is the key task of the web
application layer. This is also the area that WSGI atttemps to
standardize in so far as making the basic objects framework
independent. You can thus supply a ge
Kurda Yon <[EMAIL PROTECTED]> wrote:
> I would like to know what are advantages of Python in comparison with C
> ++? In which cases and why Python can be a better tool than C++?
Python is a lot more fun than C++ ;-)
Anyway no need to use one or the other... I've done projects where
we've embedd
Hi,
> I have been warned not to use the show() command in interactive mode.
I can't find the error but had better luck with interactivePython ipython which
shippes with a
pylab-friendly option.
dan
--
http://mail.python.org/mailman/listinfo/python-list
hi
I think complex numbers should respect the "i" or "I" representation,
instead of "j".
No reason being cute and using a different character instead of the
traditional representation? At least have the decency of supporting
the orginal representation?
Programmers use j as frequently as i as index
On Jun 28, 1:48 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> I think complex numbers should respect the "i" or "I" representation,
> instead of "j".
> No reason being cute and using a different character instead of the
> traditional representation? At least have the decency of supporting
>
Le Saturday 28 June 2008 09:49:42 George Oliver, vous avez écrit :
> I'm looking for a framework to support a 2D online real-time
> multiplayer game (rugby league football with a lo-fi pixel look). The
> GameProgramming page at the Python wiki had some suggestions but so
> far nothing looks that pr
Hi,
Can somebody please help me with the issue of ".pyc" creating problems
when we rerun the application, written using PythonQt ? The description of
the problem is given below.
Regards,
Shankar
On Fri, Jun 27, 2008 at 2:41 PM, Shankar Narayana <[EMAIL PROTECTED]>
wrote:
> Hi,
> I am newbie t
On Jun 28, 1:48 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> hi
>
> I think complex numbers should respect the "i" or "I" representation,
> instead of "j".
> No reason being cute and using a different character instead of the
> traditional representation? At least have the decency of suppor
Leo 4.5 beta 1 is now available at:
http://sourceforge.net/project/showfiles.php?group_id=3458&package_id=29106
Leo is a text editor, data organizer, project manager and much more. See:
http://webpages.charter.net/edreamleo/intro.html
The highlights of Leo 4.5:
--
- A majo
[EMAIL PROTECTED] wrote:
... And my problem was that the commands worked on windows but not on
linux.
By the way, shouldn't you be using numpy? I thought numarray was going
away by mid-2008 i.e. now.
I know, but i'm not sure that it's the problem.
It's your job to get certain of some things,
Kurda Yon <[EMAIL PROTECTED]> wrote:
> I would like to know what are advantages of Python in comparison with C
> ++? In which cases and why Python can be a better tool than C++?
I have used both in small projects and I think Python wins by far.
First of all, you don't have the hassle of compilin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I'm doing a project with Pygame, a Snake game, and I've just taken a
look at Tkinter and I really like how easy it is to build a GUI with it.
The thing is that I don't know how I would use Tkinter and Pygame in
conjunction. They seem to have some overl
George Oliver wrote:
I'm looking for a framework to support a 2D online real-time
multiplayer game (rugby league football with a lo-fi pixel look). The
GameProgramming page at the Python wiki had some suggestions but so
far nothing looks that promising, does anyone have some
recommendations?
It
In article <[EMAIL PROTECTED]>,
Damon Getsman <[EMAIL PROTECTED]> wrote:
>
>Okay, maybe I just didn't understand the websites that were given as
>examples as to 'decoration'. I first came across the unusual '@' when
>I was browsing through some extreme beginner's information on os.x
>method descr
On 28 Jun., 08:54, [EMAIL PROTECTED] wrote:
> For one thing, the expression 'os.environ.keys' will yield a method
> object (not a list, as you're probably expecting), but iterating over
> a method as you did should produce an exception. If you want to get
> the list of environment vars, you have to
On Jun 28, 9:04 am, Gary Herron <[EMAIL PROTECTED]> wrote:
>
> Pyglet is my favorite: http://www.pyglet.org/
>
> Twisted might be fine for the "online multiplayer" parts, but really if
> you want a 2D/3D real-time game, start with a game framework.
>
> Gary Herron
Thanks Cédric and Gary for the s
On Fri, 27 Jun 2008 20:19:00 -0400, Nick Dumas <[EMAIL PROTECTED]> wrote:
[snip]
>
> Example:
>
> class Foo():
> self.x = 5
Have you tried what you're posting?
Python 2.4.3 (#2, Oct 6 2006, 07:52:30)
[GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu5)] on linux2
Type "help", "copyright", "credits" or "lic
Hello!
I'm newcomer to Python development and I have some questions (I didn't
found answers for these):
1. Some bugs at bugs.python.org are assigned but it didn't changed
for many months (example: http://bugs.python.org/issue1692335). Is
that bugs closed (maybe somebody forgot to close it on w
On Jun 7, 10:24 am, Sam Denton <[EMAIL PROTECTED]> wrote:
> I've long believed that '=' should be banned from programming languages.
> Use '==' for equality tests, and ':=' for assignments.
That's an interesting suggestion that I don't recall hearing anyone
else ever mention.
On Jun 7, 10:24 am
Kurda Yon wrote:
Hi,
I found one example which defines the addition of two vectors as a
method of a class. It looks like that:
class Vector:
def __add__(self, other):
data = []
for j in range(len(self.data)):
data.append(self.data[j] + other.data[j])
return Vector(data)
In
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Peter Pearson wrote:
> On Fri, 27 Jun 2008 20:19:00 -0400, Nick Dumas <[EMAIL PROTECTED]> wrote:
> [snip]
>> Example:
>>
>> class Foo():
>> self.x = 5
>
>
> Have you tried what you're posting?
>
> Python 2.4.3 (#2, Oct 6 2006, 07:52:30)
> [GCC
From: "Łukasz Dąbek" <[EMAIL PROTECTED]>
>Hello!
>I'm newcomer to Python development and I have some questions (I didn't
>found answers for these):
Hi welcome.
>1. Some bugs at bugs.python.org are assigned but it didn't changed
>for many months (example: http://bugs.python.org/issue1692335). Is
>
In article <[EMAIL PROTECTED]>,
Paul McNett <[EMAIL PROTECTED]> wrote:
>Silas Snider wrote:
>>
>> Full-time academic year position
>> Salary range: $2819 - $4404 per month ( $16.26 - $25.41 per hour)
>>
>> The following knowledge, skills and experience are necessary for this
>> position:
>>
>> Ex
> ie:
> @if os.exists(foo):
> etc
> etc
>
> and
>
> @for blah:
> etc
> etc
>
This sounds more like PHP code, where a @ prefixing a function means
that even if there are errors or warnings, you don't want to see them.
--
http://mail.python.org/mailman/listinfo/python-list
Could anyone help me, I'm a python noob and need some help. im trying
to find some code that will, given a screen co-ordinate, will give me
the colour of that pixel in RGB. i have found a lot about getting the
pixel colour from a picture file with a given co-ordinate, but is it
possible to do it fr
Thanks for reply.
From: "Victor Noagbodji" <[EMAIL PROTECTED]>:
> But it makes no sense to start learning Python 3 at this moment. You can
> code scripts in Python 2.5 that will not break; you just have to avoid things
> that will be deprecated
I have been coding in Python for about 1 year :) (I
Thanks for reply.
From: "Victor Noagbodji" <[EMAIL PROTECTED]>:
> But it makes no sense to start learning Python 3 at this moment. You can
> code scripts in Python 2.5 that will not break; you just have to avoid things
> that will be deprecated
I have been coding in Python for about 1 year :) (I
CentOS5.2 installed python2.4 by default, but google app engine need
2.5+ version. I download the tar package from python.org then run ./
configure,make,make install and some other work. but I can't use it in
gae with exceptions like can't use import time ...
Is there a detailed guide on how to upg
To be completely correct, you should allow for the possibility that
the word found is the last word in the list
for j, word in enumerate(words):
if (word.startswith("b")) and (j+1 < len(words)):
print words[j+1]
break
--
http://mail.python.org/mailman/listinfo/python-list
"""
AUTHOR: Sean McIlroy
LANGUAGE: Python 2.5
OVERVIEW: instances of "tictactoeplayer" play optimal tictactoe
SPECIALIZED TYPES: player={ex,oh}; empty={blank}; cell=player+empty;
board=[cell]
TYPE RELATIONS: bool(c)==True for any c in cell
"""
ex, oh, blank = 'X', '0', ' '
linear = [[0,1,2],[3,4,
Pyogp is the Python-based library being developed by Linden Lab, makers
of Second Life, and the programming community of the users of Second
Life under the auspices of the SL Architecture Working Group, in order
to test and implement open protocols designed to allow anyone to create
their own
On 28 Jun., 04:05, Benjamin <[EMAIL PROTECTED]> wrote:
> On Jun 27, 4:05 pm, "Joe P. Cool" <[EMAIL PROTECTED]> wrote:
> This is because of how os.environ is implement with a UserDict
> subclass. You should report this at bugs.python.org.
issue 3227: os.environ.clear has no effect on child process
On 28 Jun., 23:06, "Joe P. Cool" <[EMAIL PROTECTED]> wrote:
> On 28 Jun., 04:05, Benjamin <[EMAIL PROTECTED]> wrote:
>
> > On Jun 27, 4:05 pm, "Joe P. Cool" <[EMAIL PROTECTED]> wrote:
> > This is because of how os.environ is implement with a UserDict
> > subclass. You should report this at bugs.pyt
I'm looking for a sampling profiler which I can attach to a running
Python process without modifying the source code or affecting
performance. So far I've only seen references to instrumentation-based
profilers. Is any sampling-based tool available?
--
http://mail.python.org/mailman/listinfo/python
This works but after the su command you have to wait like 2 minutes
before each command gets executed ?
What did i do wrong ?
import pxssh
try:
s = pxssh.pxssh()
s.login ('127.0.0.1', 'gert', '123')
s.sendline ('uptime')
s.prompt()
print
On 28 Juni, 08:32, Carl Banks <[EMAIL PROTECTED]> wrote:
> On Jun 27, 10:58 pm, defn noob <[EMAIL PROTECTED]> wrote:
>
> > right. im an idiot anyway. i can just draw the lines before entering
> > the loop, problem solved...
>
> Do not do that; it'll create a busy loop and use 100% of CPU. Use
> py
I am having a problem with a list value that is empty. I have a list of
definitions called mainList. the 5th value in the list doesn't have anything
in it. In this case, the values are definitions; also, in this case just the
word cheese is defined. Here is my output to the console:
5. a sprawl
On Jun 28, 6:49 pm, defn noob <[EMAIL PROTECTED]> wrote:
> On 28 Juni, 08:32, Carl Banks <[EMAIL PROTECTED]> wrote:
>
> > On Jun 27, 10:58 pm, defn noob <[EMAIL PROTECTED]> wrote:
>
> > > right. im an idiot anyway. i can just draw the lines before entering
> > > the loop, problem solved...
>
> > Do
gert:
This works but after the su command you have to wait like 2 minutes
before each command gets executed ?
s.sendline ('su')
s.expect('Password:')
A common idiom seems to be to omit the start of the expected reply
since it may not be grabbed quickly enough. Then t
On Jun 29, 1:19 am, Neil Hodgson <[EMAIL PROTECTED]>
wrote:
> gert:
>
> > This works but after the su command you have to wait like 2 minutes
> > before each command gets executed ?
> > s.sendline ('su')
> > s.expect('Password:')
>
> A common idiom seems to be to omit th
On Jun 29, 1:44 am, gert <[EMAIL PROTECTED]> wrote:
> On Jun 29, 1:19 am, Neil Hodgson <[EMAIL PROTECTED]>
> wrote:
>
> > gert:
>
> > > This works but after the su command you have to wait like 2 minutes
> > > before each command gets executed ?
> > > s.sendline ('su')
> > >
Alex Bryan wrote:
I am having a problem with a list value that is empty. I have a list of
definitions called mainList. the 5th value in the list doesn't have
anything in it. In this case, the values are definitions; also, in this
case just the word cheese is defined. Here is my output to the
On 2008-06-28, Neil Hodgson <[EMAIL PROTECTED]> wrote:
> gert:
>> This works but after the su command you have to wait like 2 minutes
>> before each command gets executed ?
>> s.sendline ('su')
>> s.expect('Password:')
>
> A common idiom seems to be to omit the start of
Try something like this...
list = ['lkdfjsldk', None, '', '0', 'slfkjsdlfj', 'lsdgjdlfg', False, True]
for n, it in enumerate(list):
if not it: print 'Error on this definition'
else: print '%d. %s' % (n+1, it)
Results:
1. lkdfjsldk
Error on this definition
Error on this definition
4. 0
5
Hi everyone
I am trying to build my own web crawler for an experiement and I don't
know how to access HTTP protocol with python.
Also, Are there any Opensource Parsing engine for HTML documents
available in Python too? That would be great.
--
http://mail.python.org/mailman/listinfo/python-list
this does the same except 100 times faster ?
I don't understand the logic about the prompt, its not the same as the
output from the bash shell ?
[EMAIL PROTECTED]:~# cat ssh2.py
import pexpect
import sys
child = pexpect.spawn("ssh [EMAIL PROTECTED]")
#child.logfile = sys.stdout
i = child.expect
Kurda Yon wrote:
>
> I would like to know what are advantages of Python in comparison with C
> ++? In which cases and why Python can be a better tool than C++?
>
Uh, code a trivial program in each language and you'll have a perfectly good
idea.
--
View this message in context:
http://www.na
On Jun 28, 1:23 am, Tim Roberts <[EMAIL PROTECTED]> wrote:
> Benjamin <[EMAIL PROTECTED]> wrote:
>
> >This is because of how os.environ is implement with a UserDict
> >subclass.
>
> Why? I mean, I can see that it happens, but I don't understand why being a
> UserDict causes this.
The contents of
On Sat, 28 Jun 2008 19:03:39 -0700, disappearedng wrote:
> Hi everyone
> I am trying to build my own web crawler for an experiement and I don't
> know how to access HTTP protocol with python.
>
> Also, Are there any Opensource Parsing engine for HTML documents
> available in Python too? That woul
On Jun 28, 9:03 pm, [EMAIL PROTECTED] wrote:
> Hi everyone
> I am trying to build my own web crawler for an experiement and I don't
> know how to access HTTP protocol with python.
Look at the httplib module.
>
> Also, Are there any Opensource Parsing engine for HTML documents
> available in Pytho
On Sat, 28 Jun 2008 19:08:59 -0700, gert wrote:
> this does the same except 100 times faster ?
>
> I don't understand the logic about the prompt, its not the same as the
> output from the bash shell ?
>
> [EMAIL PROTECTED]:~# cat ssh2.py
> import pexpect
> import sys
>
> child = pexpect.spawn("
In article
<[EMAIL PROTECTED]>,
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> hi
>
> I think complex numbers should respect the "i" or "I" representation,
> instead of "j".
> No reason being cute and using a different character instead of the
> traditional representation?
Ask any electrical
Tim Roberts wrote:
"John Salerno" <[EMAIL PROTECTED]> wrote:
Is it correct to say that Mako allows you to embed Python code within HTML,
whereas Cheetah requires a certain amount of "tweaking" of Python code so
that it isn't really code you could just run independently in the
interpreter?
I'
[EMAIL PROTECTED] wrote:
For which definitions of "content" and "logic" ???
The point of mvc is to keep domain logic separated from presentation
logic, not to remove logic from presentation (which just couldn't
work). Templating systems are for presentation logic. Whether they
work by embedding
> Hi everyone
Hello
> I am trying to build my own web crawler for an experiement and I don't
> know how to access HTTP protocol with python.
urllib2: http://docs.python.org/lib/module-urllib2.html
> Also, Are there any Opensource Parsing engine for HTML documents
> available in Python too? That w
On Fri, 27 Jun 2008 15:22:29 -0700, rubbishemail wrote:
> Hello,
>
>
> can anybody recommend a simple USB or PCI framegrabber with video input
> that runs under xp and has a python driver available? I just want to get
> the image into a file, no special requirements.
>
> Thank you
>
> Daniel
On Fri, 27 Jun 2008 15:22:26 -0700, Kurda Yon wrote:
> I would like to know what are advantages of Python in comparison with C
> ++? In which cases and why Python can be a better tool than C++?
>
> Thank you!
Python's automatic tracebacks on errors facilitate debugging very nicely.
Python doesn
I am interested in market simulation with Python, simulating buyers
and sellers arriving with goods at random times. I looked at SimPy,
it's pretty nice, but all the examples are around congestion problems.
Should I a) dig deeper b) write something from scratch c) look at
another library?
thanks,
Recursion is awesome for writing some functions, like searching trees
etc but wow how can it be THAT much slower for computing fibonacci-
numbers?
is the recursive definition counting fib 1 to fib x-1 for every x? is
that what lazy evaluation in functional languages avoids thus making
recursive ve
Ok I'm a Python noob, been doing OK so far, working on a data
conversion program and want to create some character image files from
an 8-bit ROM file.
Creating the image I've got down, I open the file and use TK to draw
the images... but
1) It does not seem to end (running in IDLE), I have to ki
xamdam wrote:
I am interested in market simulation with Python, simulating buyers
and sellers arriving with goods at random times. I looked at SimPy,
it's pretty nice, but all the examples are around congestion problems.
Should I a) dig deeper b) write something from scratch c) look at
another li
Ya, I tried your code, it still did the same thing :[. I mean it worked like
before. Some extra info about it, I am using BeautifulSoup to get
definitions of words and well, the problem is it doesn't get links or
anything in bold or italics. So the think #6 actually was, was italics. So I
am still
Quoting slix <[EMAIL PROTECTED]>:
> Recursion is awesome for writing some functions, like searching trees
> etc but wow how can it be THAT much slower for computing fibonacci-
> numbers?
The problem is not with 'recursion' itself, but with the algorithm:
> def fibr(nbr):
> if nbr > 1:
>
slix wrote:
Recursion is awesome for writing some functions, like searching trees
etc but wow how can it be THAT much slower for computing fibonacci-
numbers?
The comparison below has nothing to do with recursion versus iteration.
(It is a common myth.) You (as have others) are comparing an
[EMAIL PROTECTED] wrote:
> I am trying to build my own web crawler for an experiement and I don't
> know how to access HTTP protocol with python.
>
> Also, Are there any Opensource Parsing engine for HTML documents
> available in Python too? That would be great.
Try lxml.html. It parses broken HTM
Hello,
I spent time today to investigate this.
If you install Python with Tkinter from source, _tkinter is built into
the Python executable and _tkinter.so is not generated *unless*
"shared" option is specified.
I found this by running python with '-v' option:
% python -v
...
>>> from Tkinter imp
On Jun 27, 10:00 pm, Stefan Behnel <[EMAIL PROTECTED]> wrote:
> Ampedesign wrote:
> > I'm trying to extract all the links on a page with lxml. Ideally, I
> > would like it to return me a list of hrefs of each link on the page,
> > in a list.
>
> > How would I go about doing this?
>
> Read the manua
76 matches
Mail list logo