Please help me out:(.. I've been trying to figure this out for 2 days now..
I don't know what to use to print all the list of numbers. I hve know idea
how should I do this. I tried a lot of trial & error for the the def, dict,
.list( ). have no luck.
I just need to find this out
t the list of input numbers.
Abe Mathews
On Mon, 6 Dec 2004 12:07:58 +1000, Alfred Canoy <[EMAIL PROTECTED]> wrote:
> Please help me out:(.. I've been trying to figure this out for 2 days now..
> I don't know what to use to print all the list of numbers. I hve know idea
On Mon, 6 Dec 2004, Alfred Canoy wrote:
> Please help me out:(.. I've been trying to figure this out for 2 days
> now.. I don't know what to use to print all the list of numbers. I hve
> know idea how should I do this. I tried a lot of trial & error for the
> the de
At 07:07 PM 12/5/2004, Alfred Canoy wrote:
Please help me out:(.. I've been trying to figure this out for 2 days now..
I don't know what to use to print all the list of numbers. I hve know
idea how should I do this. I tried a lot of trial & error for the the def,
dict, .list( ). h
Title: help!
In your documentation, it is written :
"
os.path.getatime(path)
Return the time of last access of path. The return value is a number giving the number of seconds since the epoch (see the time module). Raise os.error if the file does not exist or is inacces
Title: help!
In your documentation, it is written :
"
os.path.getatime(path)
Return the time of last access of path. The return value is a number giving the number of seconds since the epoch (see the time module). Raise os.error if the file does not exist or is inacces
Please help me i down loaded python nd itplays on MS-DOS mode and not on normal
please help
[EMAIL PROTECTED]
--
___
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm
--
http://mail.python.org
When ever i try to open python it opens as a MS-DOS Prompt I do not know what else to do i need your help so if you could please help. Oh and this is the second time i emailed you so please do not send me back an automated message thank you
Hi!
I am a new user to python. I want to draw a 2D graph with
coordinates data as input. In the graph i want to fill some area and
also include image maps.
Can any one suggest which is the best library to use and some links for
examples.
Thanks in advance. Your help will be most appreciated
When i try to open IDLE(python GUI) it says that i have a socket error: conection refused what do i do to fix this
--
http://mail.python.org/mailman/listinfo/python-list
al]...
My code (simplyfied) :
prg.ev_ind_update(wf_pk_ev_ind=wf_pk_ev_ind,wf_fonction=wf_fonction,wf_nom=wf_nom)
and so, when I put nothing in wf_nom, it put me that error :"the parameter
wf_nom...was omitted from the request...". But sometimes, wf_nom is not
required !
Thanks
Hi there, I am new in this subject so could you please tell me from
where I can get help (or good e-book) of python?
--
http://mail.python.org/mailman/listinfo/python-list
how to use Python/C API
--
http://mail.python.org/mailman/listinfo/python-list
Hi all.
I am somewhat new to the python programming language but I'm working on
a python script that will call several csh scripts. What commands will
I need to do this, if possible?
-Emily
--
http://mail.python.org/mailman/listinfo/python-list
Hi, my name’s felipe
I have a problem with python. When I try
to connect to postgresql. It appears a message.
]$ python
>>> from pg import DB
Traceback (most recent call last):
File "", line 1, sn?
Forwarding full message to the Python list:
Hello, I am trying to create a script. I have most of it wrote, but it
isn't working like it should. Could you please take a look and let me
know whats wrong with it? What happens is that there is an array that is
created and I verified the information
HELP ME PLEASE!!
I can't get the ball to go up right side and then I need it to turn
around and keep turning until velocity=0 I have been at it for the
past 2 weeks now i give up and call for help. Please if anyone can
gide me through i will be so grateful!! I have pasted my code
Dear Sir/Madam,
Hello! I'm just new to programming and
would like to ask for help..
Can you please give me clue how I
should start solving the following problem below?
-Build a module that contains three functions that do the
following:
Compute the average of a li
Hello,
I'm stuck in the end of my source code. I'm trying
to print all the numbers. How can I print all the list of numbers that I
selected?
Source
code:# compute the Mean, Median & Mode of a list of
numbers:sum = 0.0print 'This program will take several numbers
then average them'cou
HELP ME PLEASE!! my email is [EMAIL PROTECTED]
I can't get the ball to go up right side and then I need it to turn
around and keep turning until velocity=0 I have been at it for the
past 2 weeks now i give up and call for help. Please if anyone can
gide me through i will be so gratefu
Hi all,
i am trying out some of the demo programs in wxPython.
but i am getting an error:
no module 'run'
how do i circumvent this module and run the program with main.Loop() ?
tia,
KM
--
http://mail.python.org/mailman/listinfo/python-list
o documentation
showing supported commands for win32net? Any help is greatly appreciated.
-Shin
--
http://mail.python.org/mailman/listinfo/python-list
would anyone like to help to fugure out this problem i'm having here's
a portion of my code:
"""
I have three dictionaries along with this(you can probally spot what
they are), but just in case here are some testers:
"""
std = {
"b&
Hey guys,
Hope you can help me again with another problem. I am trying to learn
Python on my own and need some help with the following.
I am writing a program that lets has the pc pick a number and the user
has five guess to get the number.
1. BUG: If the number is say 35 and I guess 41 the
I'm also hoping to use something a little less
daunting than Apache if possible.
Thanks for your help, and sorry for such a long post!
Kevin T. Ryan
--
http://mail.python.org/mailman/listinfo/python-list
I am working with a 3rd party credit card company that is using Python
version 2.2.2. They are using the httplib module to post data to my
server which is a dedicated server with no firewall or any
rate-limiting or DDoS prevention.
Every time they try, the first 2 posts are successful and it alway
[x-posted to PyGTk mailing list as well]
Hello!
I'm trying to figure out how to use PYGTK to implement a rudimentary UI:
I want to have an Image as the background, and then be able to put buttons
(eventually icons, but buttons for now)
The PyGTK FAQ (pygtk.org) has some suggestions, but they h
line is 2, then buffer 2 is passed to
'testme'
I went through the Python tutorial and could not find much information.
Any help with python examples is appreciated.
--
http://mail.python.org/mailman/listinfo/python-list
I want to apply TDD (test driven development) on my project. I am
working on a class like this (in plan):
# file: myclass.py
import _extmod
class MyClass(object):
def __init__(self):
self.handle = _extmod.open()
def __del__(self):
_extmod.close(self.handle)
def some
n: is here anyone who is willing to help me by PM on this projekt?
The teacher told us it will be approx. 50 Lines of Code.
I have to make a Webapplication wich will take Number and Title and number
of minutes of CD's. It should be done with strings, no saving into an
SQL-Database or so. I hav
Hey there,
i am trying to write an online application using the cgi module.
what i want to do is have an html form display a drop-down list and
have the values of that list be the lines of text written in a file.
this would be updated almost every time the site is visited.
i have been sucessful in
I'm 4 months new to python and 4 hours new to XML. I've been trying to
understand and use the DOM tree walk sample shown at this site:
http://www.rexx.com/~dkuhlman/pyxmlfaq.html to walk through an xml file from
which I need to extract data for subsequent plotting.
I've repeated the functions from
To continue with my previous problems, now I'm trying out classes. But I
have a problem (which I bet is easily solveable) that I really don't get.
The numerous tutorials I've looked at just confsed me.For intance:
>>>class Xyz:
... def y(self):
... q = 2
...
>>>Xyz.y()
Tracebac
can anybody write a code for a program that reads from a
/location/file & according to file contents, it execute script. e.g. if
file contains "mp" it runs media player.
I hope the code is small .. plz help me out!
--
http://mail.python.org/mailman/listinfo/python-list
nter += 1
guess = int(raw_input("Take a guess:
")) else: print "You
guessed it! The number was", the_number
if counter
>=2: print "And it only took
you", counter, "tries!\n"
else: print "and it only took yo
Hello. I am using Python 2.3.5 with IDLE 1.0.5 on a Windows98 PC.
I have some programming experience but mostly I am still learning.
I am having some trouble understanding the behaviour of a piece of
code I have written. It plots points using PIL.
Here is my loop:
triangle = [(320,27),(172,323),(4
using the following program:
prefixes = "JKLMNOPQ"
suffix = "ack"
for letter in prefixes:
print letter + suffix
if prefixes == "O" or "Q"
print letter + "u" + suffix
For this program I am trying to combine the individual letters with the suffix to form names...but for O and Q I n
j = ord(t[offset]) + 256*ord(t[offset+1])# + 65536*ord(t
[offset+2]) + 16777216*ord(t[offset+3])
^
IndentationError: expected an indented block
make[2]: *** [swapped.out] Error 1
make[1]: *** [ant_final_target] Error 2
make: *** [rest] Error 2
Any Help?
With Best Regards,
Soumya
--
-Ivan
>From: [EMAIL PROTECTED]
>To: python-list@python.org
>Subject: help
>Date: Thu, 2 Jun 2005 11:11:41 EDT
>
>When i try to open IDLE(python GUI) it says that i have a socket error:
>conection refused what do i do to fix this
>--
Reinstall my friend. . .Rein
> When i try to open IDLE(python GUI) it says that i have a socket error:
> conection refused what do i do to fix this
if you're on linux, try making sure that localhost (the lo interface)
is up and running
if you do an ifconfig you should see one paragraph for the lo interface, and
if you do an
Just out of curiosity, does the filesystem support seperate a/m/c times?
Andreas
On Fri, Jun 24, 2005 at 02:49:01PM +0300, Eser Çetinkaya wrote:
>
>
> In your documentation, it is written :
> "
> os.path.getatime(path)
> Return the time of last access of path. The return value
Eser Çetinkaya wrote:
> What can change an acess time of a path different from modification?
> Is there any mistakes in the implementation or am i missing some points?
When a file is read it is accessed but not modified:
>>> import os.path
>>> os.path.getmtime('a_file')
1119615705
>>> os.path.
On Fri, 2005-06-24 at 14:14 +0200, Andreas Kostyrka wrote:
> On Fri, Jun 24, 2005 at 02:49:01PM +0300, Eser Çetinkaya wrote:
> >
> >
> > In your documentation, it is written :
> > "
> > os.path.getatime(path)
> > Return the time of last access of path. The return value is a number
Johannes Findeisen ha scritto:
> some filesystems do support that. From the ext2 specification
> ( http://e2fsprogs.sourceforge.net/ext2intro.html ):
>
> "As a response to these problems, two new filesytems were released in
> Alpha version in January 1993: the Xia filesystem and the Second
> Exten
Ert Ert wrote:
> Please help me i down loaded python nd itplays on MS-DOS mode and not on
> normal please help
So what's your problem? Please read
http://www.catb.org/~esr/faqs/smart-questions.html
Then reformulate your question so that we can answer it.
--
Robert Kern
[EMAI
Ahah, I've to save this page.
p.s. @ Ert Ert: download this:
http://starship.python.net/crew/mhammond/win32/ and use 'Pythonwin'
(or, use Unix!)
--
http://mail.python.org/mailman/listinfo/python-list
Ert Ert wrote:
> Please help me i down loaded python nd itplays on MS-DOS mode and not on
> normal please help
Python itself is a command line program. "MS-DOS mode" *is* it's normal
mode.
As other's have mentioned, there are graphical front ends to Python
which y
hello all,
how to parse the arguments of a c function with PyArg_ParseTuple?
The prototype of the c function is :
int func(unsigned char * in , int inlen, unsigned char * v, unsigned
char * out, int * outlen);
The problem is , when the func returns, there will be results in out
and outlen. Is
exists it
doesn't get back a result. Yet if I mannually enter it into the mysql
console I get a result. This only happens when my if statement to
determine if there was a result returned is not commented out. If it
is commented out it returns that the row exists. Any help would be
great.
Tha
How do I make a help dialogue, like the one seen in IDLE when you go to
Help-IDLE Help?
--
http://mail.python.org/mailman/listinfo/python-list
I must be missing something basic.
Can anyone explain why 'A' does not show on the entry widget?
import Tkinter
root = Tkinter.Tk()
class Col:
Rows = [0]
def __init__(self):
Frame = Tkinter.Frame(root);
Frame.pack (side='left')
self.Rows[0] = Tkinter.StringVar();
Hi All,
im new to python i just have a few questions and was wondering if
you could help me??
1. what programming langaugue does python use? or which is most popular?
2. Does anyone know where i could get hold of practice code
3. Any good ebooks or links to start with. (according to
n
mutexes based on 20 max processes and 0 max threads.
[Wed Feb 15 16:05:53 2006] [notice] Apache/2.0.54 (Debian GNU/Linux)
mod_python/3.1.3 Python/2.3.5 mod_ssl/2.0.54 OpenSSL/0.9.7e configured
-- resuming normal operations
[Wed Feb 15 16:25:42 2006] [notice] Graceful restart requested, doing
Regex questions seem to be rather resistant to googling.
My regex currently looks like - 'FOO:.*\n\n'
The chunk of text I am attempting to locate is a line beginning with
"FOO:", followed by an unknown number of lines, terminating with a
blank line. Clearly the ".*" phrase does not match the sing
Hi man! I found a post of yours in wich you tell
that you use pcapy python module to capture packets.
I need to do something similar but unfortunately I
can't find too much domentation (and example codes) about this library.
Can you paste me a simple code in wich you use
this module for
t; wrote:
When ever i try to open python it opens as a MS-DOS Prompt I
do not know what else to do i need your help so if you could please
help. Oh and this is the second time i emailed you so please do not
send me back an automated message thank you.
--
__
Hi
I am going through some tutorials, how do I find out about running a
script from the python prompt?
is there a online ref and how to access it?
thank you
--
http://mail.python.org/mailman/listinfo/python-list
For such a simple task, I would use MATLAB.
http://www.mathworks.com/products/matlab/
However, if you have to do generic programming in addition to this, I
would use Python with the libraries ImageMagick or Python Image Library
(PIL). Just search for them and you'll have all the examples you need
In article <[EMAIL PROTECTED]>,
NavyJay <[EMAIL PROTECTED]> wrote:
>For such a simple task, I would use MATLAB.
>http://www.mathworks.com/products/matlab/
.
[pertinent Python comments]
.
.
... and some people wo
I have the following table and I am trying to match percentage the 2nd column
on the 2nd Tiger line (9.0).
I have tried both of the following. I expected both to match but neither did?
Is there a modifier
I am missing? What changes do I need to make these match? I need to keep the
structure
Alexander wrote:
> hi, my name is alexander. i'm from indonesia
> i wanna ask, is there Pygoogle with GUI? because i've got assignment
> from my teacher to make an user interface for Pygoogle. if there's a
> Pygoogle with GUI, can u tell me where to find it.
>
So "make" now means "pull from the In
I see no problem with finding existing code on the Internet and used to
learn a subject, so long as it isn't just stolen and handed in as is.
I guess I still believe people are good, no matter how hard Usenet and
IRC tries to convince me otherwise.
--
http://mail.python.org/mailman/listinfo/pyth
Steve Holden wrote:
> Alexander wrote:
>
>> hi, my name is alexander. i'm from indonesia
>> i wanna ask, is there Pygoogle with GUI? because i've got assignment
>> from my teacher to make an user interface for Pygoogle. if there's a
>> Pygoogle with GUI, can u tell me where to find it.
>>
> So "m
Hi all,
I have the following class code for a Node for a Linked List, (saved in
node.py)
class Node :
def __init__(self,element):
self.element = element
self.next = None
then i have another module called LinkedList.py, with following code
import sys
import node
def main():
> From: "Rrajal" <[EMAIL PROTECTED]>
> Date: Mon, Sep 18 2006 9:50 am
> Subject: Re: Help
> Groups: comp.lang.python
>
> Hi there, I am new in this subject so could you please tell
> me from where I can get help (or good e-book) of python?
do you have some
wesley chun wrote:
> > From: "Rrajal" <[EMAIL PROTECTED]>
> > Date: Mon, Sep 18 2006 9:50 am
> > Subject: Re: Help
> > Groups: comp.lang.python
> >
> > Hi there, I am new in this subject so could you please tell
> > me from where I ca
r: 'module' object has no attribute 's60_version_info'
SECOND ERROR:
>>> import telephone
Traceback (most recent call last):
File "", line 1, in -toplevel-
import _telephone
ImportError: No module named _telephone
...I was search everywhere for that mo
Howdy,
I'm a college student and for one of we are writing programs to
numerically compute the parameters of antenna arrays. I decided to use
Python to code up my programs. Up to now I haven't had a problem,
however we have a problem set where we are creating a large matrix and
finding it's inver
Hai friends,
I wrote a programme to display a window (ui) using Python. I renamed it
as .pyw to avoid popping-up the dos window while running it. It worked
fine. But when i converted it to executable file using py2exe; the dos
window appears. Can anybody tell me what the solution is.
Thanks and R
error msg:
Mod_python error: "PythonHandler mod_python.publisher"
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line
299, in HandlerDispatch
result = object(req)
File "/usr/lib/python2.3/site-packages/mod_python/publisher.py",
line 136,
i have installed wxpython v2.6 for python 2.4
my python installation is at d:\python24
the statement "import wx" works perfectly
but when i use "import images", it says that there is no module, but
i know for a fact that there
Hi to all!
I want to do a calendar with pictures near months.
I have designed the form's view.But unfortunately, I am not be able to
save this view as an image file.And so I am not be able to print this
image file too.
Question:
How can I determine the coordinates of a button?Namely How can I use
t
; wf_nom is not required !
Then make it an optional parameter. How to do so depends on context not
given here, so we can't help much unless you post enough informations.
--
http://mail.python.org/mailman/listinfo/python-list
Bruno Desthuilliers a écrit :
> pierre-yves guido a écrit :
>
>> hello (I hope my english is not so bad),
>
>
> De ce point de vue là, ça peut aller...
>
Oh, yes, while we're at it, I forgot to mention: there's also a french
Python newsgroup, fr.comp.lang.python. It's far from being as active
how to get the file from NFS share in python..
--
http://mail.python.org/mailman/listinfo/python-list
Hello guys,
Not got much experience with working with minidom, but I'm looking to parse
this XML and retrieve the 'name' value from the xml.
Think Blue
0x1002
1
I've got as far as parsing the XML using self.doc =
xml.dom.minidom.parse(self.filepath) but that's as far as I've
faces-0.8.so is needed by wxPython2.8-gtk2-unicode-2.8.3.0
libgstreamer-0.8.so is needed by wxPython2.8-gtk2-unicode-2.8.3.0
'
I don't understand about the error. Maybe you can help e solve the problem.
Thank you.
Send instant messages to your online friends http://uk.messenger.yahoo.com
Get Python help at TheScripts [dot] com
--
http://mail.python.org/mailman/listinfo/python-list
Hi guys,
I would make 3 threads for a client application.
Tnx
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I am trying to make a game using either livewires or pygame. The game
is tetris. Right now I have gotten the program to a point where
everything works (as in user input, score, lines, etc), except I can't
get more than one block to work. Right now I have the user playing a
game where a single
Hi all,
How do i import a module that has an hypen/dash (-) in its name ? I get
a SytaxError exception
Cheers
--
http://mail.python.org/mailman/listinfo/python-list
Hi All
Hope u all might have come across the string deprecation thought of in
Python 3.0.
For example : string.lower(str) needs to be some thing like
str.lower().
Can some one help me out whether such a change in the common python
would require
"string.digits" to be changed. If yes wa
Below is my code, which is kind of virtual and with its help ill use it
in my main project.
Now what i am looking for is can anybody write all the code inside a
class...so that I can reuse it. I am kind of novice...n kind of stuc
with that.
from Tkinter import *
root = Tk()
w = Label(root, text
Rrajal wrote:
> Hi there, I am new in this subject so could you please tell me from
> where I can get help (or good e-book) of python?
>
Some books that helped me:
Python Bible by Dave Brueck and Stephen Tanner
Python Cookbook by Alex Martelli, Anna Martelli Revenscroft &
David
_best_ reference.
Rrajal wrote:
> Hi there, I am new in this subject so could you please tell me from
> where I can get help (or good e-book) of python?
--
http://mail.python.org/mailman/listinfo/python-list
Rrajal wrote:
> Hi there, I am new in this subject so could you please tell me from
> where I can get help (or good e-book) of python?
You don't provide much info about where you are in your learning cycle.
New to programming? New to Python? Both?
If you do use the Tutorial, use
Matimus wrote:
>> Hi there, I am new in this subject so could you please tell me from
>> where I can get help (or good e-book) of python?
>
http://www.diveintopython.org/
That did the trick for me. It is, however, "a Python book for
experienced programmers" (quoted fro
"Rrajal" <[EMAIL PROTECTED]> writes:
> Hi there, I am new in this subject so could you please tell me from
> where I can get help (or good e-book) of python?
You need look no further than Python's own web site.
http://www.python.org/doc/>
Of course, you *ca
Hi Im new to python and I desperately need help with this task
This is everything of what I need to do...
The program to be written in Python obviously..
The program should support brute-forcing of the authentication process
for a Telnet server via a dictionary attack.
The python
Is anyone out there knowledgeable about using the Snack tool under Windows?
Once I try to get beyond the simple provided examples I run out of reference
material.
Thanks, Vic
--
http://mail.python.org/mailman/listinfo/python-list
Clement wrote:
> how to use Python/C API
http://www.catb.org/~esr/faqs/smart-questions.html#intro
HTH
Björn
--
BOFH excuse #235:
The new frame relay network hasn't bedded down the software loop
transmitter yet.
--
http://mail.python.org/mailman/listinfo/python-l
I am working on the networking code for a small Multiplayer RPG I'm
working on. I currently have some basic code using threads, but it
seems like asyncore would be far better suited for my needs. However,
I have trouble finding a solid example for what I need. Python.org and
other sites provide sim
To Whom it May Concern: I have recently downloaded Python 2.4.3 on Windows XP. The program does not recongnize when I type in python:" name 'python' is not defined". Please tell me how to correct this.
Express yourself instantly with MSN Messenger! MSN Messenger Download today it's FREE!
--
htt
the sum of the
values
count += 1 # count the occurrences
tmp_array[0,index] = round(mbias/count,1) # store the mean
tmp_array[1,index] = z
index += 1
Any help would be greatly appreciated!
Sincerely,
Sheldon
--
http://mail.python.org
os.popen*
os.system
subprocess.Popen
Emily Ecoff wrote:
> Hi all.
>
> I am somewhat new to the python programming language but I'm working on
> a python script that will call several csh scripts. What commands will
> I need to do this, if possible?
>
> -Emily
--
http://mail.python.org/mailman
uot;, line 489,
in __getattr__
raise AttributeError, "%s.%s" % (self._username_, attr)
AttributeError:
winmgmts:{impersonationLevel=impersonate,authenticationLevel=default}//./roo
t/cimv2.win32_PhysicalMedia
Any help is appreciated.
Louis
--
http://mail.python.org/mailman/listinfo/python-list
> I have a problem with python. When I try to connect to
> postgresql. It appears a message.
>
> ]$ python
>
> >>> from pg import DB
> Traceback (most recent call last):
>
>File "", line 1, sn?
>
> ImportError:
Simple though but how do you check your internet connection by Python ?
--
http://mail.python.org/mailman/listinfo/python-list
available menu, if I select an option it should give me another
menu associated with that option. Its like digging up that option to do
advance search.
Please I need help as I am making my project
Thanks to eveyrbody who will take time to read this and solve it .
--
http://mail.python.org/mailman
Hi,
I recently read David Mertz (IBM DeveloperWorks) about generators and got
excited about using lazy constructs in my Python programming.
But besides the fact that generators are either produced with the new "yield"
reserved word or by defining the __new__ method in a class definition, I
don
1 - 100 of 1973 matches
Mail list logo