subhendu.pand...@gmail.com wrote:
Hi,
Could you please help me with the below if possible:
Possible and reasonable are two different things. Why don't you try
some web searches and try to answer some of your own questions. I offer
this advice as a Python newbe myself.
Bill
1. Best si
On Sunday, August 5, 2012 7:46:54 PM UTC-4, PeterSo wrote:
> I am just starting to learn Python, and I like to use the editor
>
> instead of the interactive shell. So I wrote the following little
>
> program in IDLE
>
>
>
> # calculating the mean
>
>
>
> data1=[49, 66, 24, 98, 37, 64, 98, 2
On Aug 5, 7:09 pm, Rotwang wrote:
> On 06/08/2012 00:46, PeterSo wrote:
>
>
>
>
>
>
>
>
>
> > I am just starting to learn Python, and I like to use the editor
> > instead of the interactive shell. So I wrote the following little
> > program in IDLE
>
> > # calculating the mean
>
> > data1=[49, 66,
On 8/5/2012 7:46 PM, PeterSo wrote:
I am just starting to learn Python, and I like to use the editor
instead of the interactive shell. So I wrote the following little
program in IDLE
# calculating the mean
data1=[49, 66, 24, 98, 37, 64, 98, 27, 56, 93, 68, 78, 22, 25, 11]
def mean(data):
On 06/08/2012 02:01, Matthew Barnett wrote:
On 06/08/2012 01:58, MRAB wrote:
On 06/08/2012 01:09, Rotwang wrote:
On 06/08/2012 00:46, PeterSo wrote:
I am just starting to learn Python, and I like to use the editor
instead of the interactive shell. So I wrote the following little
program in IDL
On 06/08/2012 01:58, MRAB wrote:
On 06/08/2012 01:09, Rotwang wrote:
On 06/08/2012 00:46, PeterSo wrote:
I am just starting to learn Python, and I like to use the editor
instead of the interactive shell. So I wrote the following little
program in IDLE
# calculating the mean
data1=[49, 66, 24,
On 06/08/2012 01:09, Rotwang wrote:
On 06/08/2012 00:46, PeterSo wrote:
I am just starting to learn Python, and I like to use the editor
instead of the interactive shell. So I wrote the following little
program in IDLE
# calculating the mean
data1=[49, 66, 24, 98, 37, 64, 98, 27, 56, 93, 68, 7
On 06/08/2012 00:46, PeterSo wrote:
I am just starting to learn Python, and I like to use the editor
instead of the interactive shell. So I wrote the following little
program in IDLE
[snip]
I can't comment on IDLE as I've never used it, but you're doing yourself
a big disservice if you don't
On 06/08/2012 00:46, PeterSo wrote:
I am just starting to learn Python, and I like to use the editor
instead of the interactive shell. So I wrote the following little
program in IDLE
# calculating the mean
data1=[49, 66, 24, 98, 37, 64, 98, 27, 56, 93, 68, 78, 22, 25, 11]
def mean(data):
On 25May2012 09:37, Dave Angel wrote:
| On 05/25/2012 09:12 AM, Harvey Greenberg wrote:
| > elementary ques...I set
| > s.name = ["a","b"]
| > s.value = [3,5]
| >
| > I get error that s is not defined. How do I define s and proceed to
| > give its attributes?
[...]
| Of course if you told why you
On 05/25/2012 09:12 AM, Harvey Greenberg wrote:
> elementary ques...I set
> s.name = ["a","b"]
> s.value = [3,5]
>
> I get error that s is not defined. How do I define s and proceed to
> give its attributes?
You just have to initialize s as an object that's willing to take those
attributes. The
> s.name = ["a","b"]
> s.value = [3,5]
>
> I get error that s is not defined. How do I define s and proceed to
> give its attributes?
Either you create a class and use __init__:
class S:
def __init__(self, name, value):
self.name = name
self.value = value
or create a generic
Le 29/04/12 00:52, Santosh Kumar a écrit :
> System Information
>
> Ubuntu 11.10
> Python 2.7.2
>
> Problem
>
>
> I think my Ubuntu has PyGTK and GTK both already installed. But
> however when I am importing "gtk" in Python interactive mode then I am
> gett
In article
,
Benjamin Kaplan wrote:
> On Sun, Jul 11, 2010 at 1:18 PM, dk wrote:
[...]
> > when i try to compile mysql-python-1.2.3 i get the following error
> > returned from python setup.py build -
> >
> > building '_mysql' extension
> > gcc-4.0 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
On Sun, Jul 11, 2010 at 1:18 PM, dk wrote:
> I have been going round and round trying to configure python 2.6
> running on osx 10.6.x to work with mySQL 5.1.44.
> Python seems to work ... i have an installation of mysql 5.1.44
> running and have used it in conjunction for other php/apache projects
On Fri, 02 May 2008 17:40:02 +0200, Paul Melis wrote:
>
> I'm not sure you've been helped so far as you seem to already understand
> about pyvtk not being the official VTK bindings :)
>
> So, what would you like to know?
Thanks, I think I'm set. For the benefit of the next instance of
me googlin
Peter Pearson wrote:
On Thu, 01 May 2008 16:45:51 -0500, Robert Kern <[EMAIL PROTECTED]> wrote:
pyvtk is not the Python interface to VTK. It is for the
creation of VTK files. The vtk(1) command is a Tcl shell
with the VTK libraries loaded (I believe). Read the VTK
documentation for information
On Thu, 01 May 2008 16:45:51 -0500, Robert Kern <[EMAIL PROTECTED]> wrote:
>
> pyvtk is not the Python interface to VTK. It is for the
> creation of VTK files. The vtk(1) command is a Tcl shell
> with the VTK libraries loaded (I believe). Read the VTK
> documentation for information on the Tcl in
Peter Pearson wrote:
I'm trying to get started with pyvtk, the Python interface
to the Visualization Toolkit, but there's obviously
something important that I haven't figured out after an
embarrassingly long morning of googling around. When I run
sample pyvtk code (example1.py, from
http://cens.
On 1 mei, 22:54, Peter Pearson <[EMAIL PROTECTED]> wrote:
> I'm trying to get started with pyvtk, the Python interface
> to the Visualization Toolkit,
It looks like you're using this package:
http://cens.ioc.ee/projects/pyvtk/
These are not the official Python bindings to VTK, but seem to be an
a
[EMAIL PROTECTED] wrote:
> if you are not satisfied with the native version, why not install the
> official version directly from python site
> http://www.python.org/download/ (macpython) instead of using that of
> macports. It moreover is provided with many utilities
>
> There is a macpython list
if you are not satisfied with the native version, why not install the
official version directly from python site
http://www.python.org/download/ (macpython) instead of using that of
macports. It moreover is provided with many utilities
There is a macpython list that you can consult at
http://www.
Mark Carter wrote:
> Arnaud Delobelle wrote:
>
>> Is there a particular reason you want python from MacPorts? OSX
>> Leopard comes with python 2.5, that's what I use on my mac.
>
> I heard from somewhere that Apple's version was a bit wonky, and that I
> would be better off with a "proper" build
Arnaud Delobelle wrote:
> Is there a particular reason you want python from MacPorts? OSX
> Leopard comes with python 2.5, that's what I use on my mac.
I heard from somewhere that Apple's version was a bit wonky, and that I
would be better off with a "proper" build.
--
http://mail.python.org/ma
On Mar 15, 7:31 pm, Mark Carter <[EMAIL PROTECTED]> wrote:
> has wrote:
> > On 15 Mar, 18:05, Mark Carter <[EMAIL PROTECTED]> wrote:
> >> The sorts of things I want to do are:
> >> * copy the directory of Finder to the clipboard
> >> * add a new file to Finder's directory.
> >> * find out the size
has wrote:
> On 15 Mar, 18:05, Mark Carter <[EMAIL PROTECTED]> wrote:
>> The sorts of things I want to do are:
>> * copy the directory of Finder to the clipboard
>> * add a new file to Finder's directory.
>> * find out the size of a directory
>> * open a file with Aquamacs, regardless of file type,
On 15 Mar, 18:05, Mark Carter <[EMAIL PROTECTED]> wrote:
> The sorts of things I want to do are:
> * copy the directory of Finder to the clipboard
> * add a new file to Finder's directory.
> * find out the size of a directory
> * open a file with Aquamacs, regardless of file type,
If you want to c
Disclaimer: I have never used (or even heard of) JPype before...
porter wrote:
(snip)
>
> "Package myclass.HelloWorld is not Callable"
>
(snip)
>
> from jpype import *
>
> startJVM(getDefaultJVMPath(), "-ea", "-Djava.class.path=D:/tmp/jpype-
> reli/test/dist/test.jar'' )
>
> package = JPackag
Gah - I hate it when that happens: Just after posting I figured out my
silly mistake: my package is called myclasses and I was referencing
'myclass'
apologies for wasting your time
> Hi,
>
> For nefarious javaesque reasons I've been trying to get started with
> jpype (http://jpype.sourceforge.
On Apr 17, 11:00 pm, Basilisk96 <[EMAIL PROTECTED]> wrote:
> On Apr 14, 8:46 pm, "Eric" <[EMAIL PROTECTED]> wrote:
>
> > Hello, after reading some of the book Programming Python it seems that
> > python is something I would like to delve deeper into. The only thing
> > is, I have no idea what I sho
On Apr 14, 8:46 pm, "Eric" <[EMAIL PROTECTED]> wrote:
> Hello, after reading some of the book Programming Python it seems that
> python is something I would like to delve deeper into. The only thing
> is, I have no idea what I should try and write. So I was hoping that
> someone here could help poi
James Stroud <[EMAIL PROTECTED]> wrote:
>py> t = timeit.Timer(stmt=s)
>py> print "%.2f usec/pass" % (100 * t.timeit(number=10)/10)
>40.88 usec/pass
7stud <[EMAIL PROTECTED]> wrote:
>What does this accomplish:
>
>100 * t.timeit(number=10)/10
>
>that the following doesn't acc
Steve Holden wrote:
> James Stroud wrote:
>> Steve Holden wrote:
>>> You'd be worth more if you'd used elif and omitted the continue
>>> statements, but for a first solution it's acceptable.
>>
>> Depends on what you are after.
>>
>> py> s = """
>> ... for i in xrange(1,101):
>> ... if not i % 1
7stud wrote:
> On Apr 15, 9:49 pm, James Stroud <[EMAIL PROTECTED]> wrote:
>> py> t = timeit.Timer(stmt=s)
>> py> print "%.2f usec/pass" % (100 * t.timeit(number=10)/10)
>> 40.88 usec/pass
>>
>
> What does this accomplish:
>
> 100 * t.timeit(number=10)/10
>
> that the fol
James Stroud wrote:
> Steve Holden wrote:
>> You'd be worth more if you'd used elif and omitted the continue
>> statements, but for a first solution it's acceptable.
>
> Depends on what you are after.
>
> py> s = """
> ... for i in xrange(1,101):
> ... if not i % 15:
> ... continue
> ...
On Apr 15, 9:49 pm, James Stroud <[EMAIL PROTECTED]> wrote:
> py> t = timeit.Timer(stmt=s)
> py> print "%.2f usec/pass" % (100 * t.timeit(number=10)/10)
> 40.88 usec/pass
>
What does this accomplish:
100 * t.timeit(number=10)/10
that the following doesn't accomplish:
10
The Python Papers (http://pythonpapers.org) is another resource for
Python developers, especially those interested in keeping tabs on the
various projects and articles out there in the community.
Cheers,
-T (Editor-In-Chief, The Python Papers)
--
http://mail.python.org/mailman/listinfo/python-li
On Apr 15, 8:05 pm, [EMAIL PROTECTED] wrote:
> On Apr 15, 9:53 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > On Apr 14, 7:46 pm, "Eric" <[EMAIL PROTECTED]> wrote:
>
> > > Hello, after reading some of the book Programming Python it seems that
> > > python is something I would like
Steve Holden wrote:
> You'd be worth more if you'd used elif and omitted the continue
> statements, but for a first solution it's acceptable.
Depends on what you are after.
py> s = """
... for i in xrange(1,101):
... if not i % 15:
... continue
... if not i % 5:
... continue
... if
James Stroud <[EMAIL PROTECTED]> writes:
> 1. This doesn't act according to the specification if you add, for
> example, (2, 'Zonk'). Now 30 gives 'ZonkFizzBuzz' and not 'FizzBuzz'
> according to the specification.
Correct, the original specification only had 3 and 5. I gave a longer
example to i
Paul Rubin wrote:
> Steve Holden <[EMAIL PROTECTED]> writes:
>> You'd be worth more if you'd used elif and omitted the continue
>> statements, but for a first solution it's acceptable.
>>
>> For better readability I'd have used
>> if i % 5 == 0
>
> I think I'd be more concerned about getting
Steve Holden <[EMAIL PROTECTED]> writes:
> You'd be worth more if you'd used elif and omitted the continue
> statements, but for a first solution it's acceptable.
>
> For better readability I'd have used
> if i % 5 == 0
I think I'd be more concerned about getting rid of the i%15 test.
What i
On Apr 15, 9:53 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> On Apr 14, 7:46 pm, "Eric" <[EMAIL PROTECTED]> wrote:
>
> > Hello, after reading some of the book Programming Python it seems that
> > python is something I would like to delve deeper into. The only thing
> > is, I have no idea wh
James Stroud wrote:
> Gabriel Genellina wrote:
>> En Sun, 15 Apr 2007 10:46:54 -0300, Army1987 <[EMAIL PROTECTED]> escribió:
>>
>>> "Paddy" <[EMAIL PROTECTED]> ha scritto nel messaggio
>>> news:[EMAIL PROTECTED]
>>>
On a different tack, from:
http://tickletux.wordpress.com/2007/01/24/usin
Gabriel Genellina wrote:
> En Sun, 15 Apr 2007 10:46:54 -0300, Army1987 <[EMAIL PROTECTED]> escribió:
>
>> "Paddy" <[EMAIL PROTECTED]> ha scritto nel messaggio
>> news:[EMAIL PROTECTED]
>>
>>> On a different tack, from:
>>> http://tickletux.wordpress.com/2007/01/24/using-fizzbuzz-to-find-developer
En Sun, 15 Apr 2007 10:46:54 -0300, Army1987 <[EMAIL PROTECTED]> escribió:
> "Paddy" <[EMAIL PROTECTED]> ha scritto nel messaggio
> news:[EMAIL PROTECTED]
>
>> On a different tack, from:
>> http://tickletux.wordpress.com/2007/01/24/using-fizzbuzz-to-find-developers-who-grok-coding/
>> It seems you
On Apr 15, 3:35 am, James Stroud <[EMAIL PROTECTED]> wrote:
> Eric wrote:
> > Hello, after reading some of the book Programming Python it seems that
> > python is something I would like to delve deeper into. The only thing
> > is, I have no idea what I should try and write. So I was hoping that
> >
On Apr 14, 7:46 pm, "Eric" <[EMAIL PROTECTED]> wrote:
> Hello, after reading some of the book Programming Python it seems that
> python is something I would like to delve deeper into. The only thing
> is, I have no idea what I should try and write. So I was hoping that
> someone here could help poi
On Apr 14, 7:46 pm, "Eric" <[EMAIL PROTECTED]> wrote:
> Hello, after reading some of the book Programming Python it seems that
> python is something I would like to delve deeper into. The only thing
> is, I have no idea what I should try and write. So I was hoping that
> someone here could help poi
"Paddy" <[EMAIL PROTECTED]> ha scritto nel messaggio
news:[EMAIL PROTECTED]
> On a different tack, from:
> http://tickletux.wordpress.com/2007/01/24/using-fizzbuzz-to-find-developers-who-grok-coding/
> It seems you need to learn how to write a Fizz-Buzz
> program to get a job now-a-days :-)
Some
Eric wrote:
> Hello, after reading some of the book Programming Python it seems that
> python is something I would like to delve deeper into. The only thing
> is, I have no idea what I should try and write. So I was hoping that
> someone here could help point me to a group/project that would be a
>
On Apr 15, 1:46 am, "Eric" <[EMAIL PROTECTED]> wrote:
> Hello, after reading some of the book Programming Python it seems that
> python is something I would like to delve deeper into. The only thing
> is, I have no idea what I should try and write. So I was hoping that
> someone here could help poi
I'd like to second this request or at least find out if there are any
type of Python mentorship programs I could join.
--
http://mail.python.org/mailman/listinfo/python-list
Marc,
I've been able to get some Business Objects COM functionality in
Business Objects 6.5 (the logging in functionality I have to do through a
call to an Excel VBA macro; otherwise things appear to work for what I'm
doing).
Unfortunately, I don't have experience with Python in Business
Mudcat wrote:
> I am not that familiar with Crystal Reports, but having read some other
> posts I know that the way to integrate the API with Python is through
> the COM interface provide by win32all.
> Any pointers in the right direction would be helpful.
Like Armury, I worked on Crystal stu
Good evening,
Mudcat a écrit :
> I am not that familiar with Crystal Reports, but having read some other
> posts I know that the way to integrate the API with Python is through
> the COM interface provide by win32all.
>
> However, I have been unable to find any other information on how to get
> s
renguy wrote:
> Thank you for your response. I guess I was looking for a more specific
> answer. I have the source and I have been looking around at the various
> code. I think my question is, what is the name of the toplevel source
> code file of C code for the Python interpreter, and what is the
Right, I am pretty sure that the "toplevel" source of idle is in
dir-to-pylibs/idlelib/idle.py
(or maybe .pyw) that is were all the glue code is for idle, as for the
python source, I haven't messed around with it too much so I couldn'
tell you, well just have to wait for somone else to post that
in
Thank you for your response. I guess I was looking for a more specific
answer. I have the source and I have been looking around at the various
code. I think my question is, what is the name of the toplevel source
code file of C code for the Python interpreter, and what is the name of
the toplevel s
Actually IDLE was written purley in python, you can find the sources to
it in...
UNIX: /usr/lib/python/idlelib
Windows: C:\Python\Lib\idlelib
If you are looking to modifly mostly just the IDE I would start there,
however if you are more interesting in modifying python Itself just
look around in t
[EMAIL PROTECTED] wrote:
> I installed SciPy and NumPy (0.9.5, because 0.9.6 does not work with
> the current version of SciPy), and had some teething troubles. I looked
> around for help and observed that the tutorial is dated October 2004,
> and is not as thorough as Python's documentation. Is th
Ingrid wrote:
> Thanks everyone. That's exactly what I was looking for, but I still
> can't seem to make it work. I've got the interpreter starting in
> "C:\Program Files\Python2.4", and my code is in "C:\Documents and
> Settings\Ingrid\My Documents". So, I did:
> import os
> os.chdir("C:\\Doc
I found it! I needed to set sys.path ("sys.path.append("c:\\documents
and settings\\my documents\\ingrid")")
Ingrid
--
http://mail.python.org/mailman/listinfo/python-list
Thanks everyone. That's exactly what I was looking for, but I still
can't seem to make it work. I've got the interpreter starting in
"C:\Program Files\Python2.4", and my code is in "C:\Documents and
Settings\Ingrid\My Documents". So, I did:
import os
os.chdir("C:\\Documents and Settings\\Ingrid
[EMAIL PROTECTED] wrote:
> I am just getting started with Python, and I think I may be thinking
> about it wrong. I'd like to be able to work interactively with some
> code that I've got in a file. The only interpreted language I have much
> experience with is Tcl/Tk, and in that I would use "sourc
python -i source_file.py
will do what you want.
-Sam
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> I am just getting started with Python, and I think I may be thinking
> about it wrong. I'd like to be able to work interactively with some
> code that I've got in a file. The only interpreted language I have much
> experience with is Tcl/Tk, and in that I would use "sourc
67 matches
Mail list logo