Hello,
Sorry guys for this newbie questions. But I wonder if there is a
standard or build-in method to know the methods of a class?
I'm not originally a progrommer and I have worked with python/qt in a
basic level. Now I work a package which has many predefined classes
which I'm going to resue by
On Feb 22, 5:37 pm, "Jason" <[EMAIL PROTECTED]> wrote:
> On Feb 22, 8:27 am, [EMAIL PROTECTED] wrote:
>
> > Hello,
> > Sorry guys for this newbie questions. But I wonder if there is a
> > standard or build-in method to know the methods of a class?
>
> > I'm not originally a progrommer and I have wo
Great guys:
As a newbie, I'm trying to simply parse a xml file using minidom, but
I don't know why I get some extra children(?). I don't know what is
wrong in xml file, but I've tried different xml files, still same
problem.
Hi Python gurus!
Please help me how I can login to this page:
https://www.boplats.se/user/login_hs.aspx?ReturnUrl=/HSS/Default.aspx
I tried these two codes, but I don't seem to be successfull at all.
(Both gave same result.)
Many many thanks,
/Ben
---
import urllib2,urllib,cookielib
url
Hi,
This is a basic problem, but I want to print help content in a Command
Prompt in WinXP and scrolling back to see the first lines. If I start
a command prompt and run python, and then for example,
>>> help(list)
it starts showing the help, which can be controlled by page or raw
using Spacebar
On Feb 25, 12:59 pm, Necmettin Begiter <[EMAIL PROTECTED]>
wrote:
> 25 February 2008 Monday 11:15:14 tarihinde [EMAIL PROTECTED] şunları yazmıştı:
>
> > Hi,
> > This is a basic problem, but I want to print help content in a Command
> > Prompt in WinXP and scrolling back to see the first lines. If I
Hi Python gurus!
I'm going to read in an Ascii file containing float numbers in rows
and columns (say 10 columns 50 rows) for further numerical
process. Which format is best to save them in, eg, dictionary, list,
or numpy array when it comes to performance?
Will it be beneficial to convert all
I forgot to mention that I did a simple timeit test which doesn't
show
significant runtime difference 3.5 sec for dictionary case and 3.48
for
list case.
def read_as_dictionary():
fil = open('myDataFile', 'r')
forces = {}
for region in range(25):
forces[region] = {}
for s
Thanks for your questions. Here come some answer below.
On Dec 2, 2:50 pm, Steven D'Aprano <[EMAIL PROTECTED]
cybersource.com.au> wrote:
> On Tue, 02 Dec 2008 03:41:29 -0800,bkamraniwrote:
> > Hi Python gurus!
> > I'm going to read in an Ascii file containing float numbers in rows and
> > columns
Matt, really thanks for your comments!
Even thogh it was not a direct answer to my questions,
I like your coding style very much and I think you have a good point.
About the number of line in the file, because I get that info from
another
in advance. Therefore I thought it could be hard coded.
BT
About the piece of code you posted, there is something I don't
understand.
for i, line in data:
where data is a file object. Is it legal to write that?
I believe it results in "too many values to unpack" or do I miss
something?
/Ben
On Dec 4, 10:26 am, [EMAIL PROTECTED] wrote:
> Matt, r
On Dec 4, 1:28 pm, alex23 <[EMAIL PROTECTED]> wrote:
> On Dec 4, 8:12 pm, [EMAIL PROTECTED] wrote:
>
> > About the piece of code you posted, there is something I don't
> > understand.
>
> > for i, line in data:
>
> > where data is a file object. Is it legal to write that?
> > I believe it r
Hi Python gurus,
I have installed numpy and interested in testing f2py module using the
first example in the documentation.
First I tried:
C:\test>python "C:\Program Files\Python25\Scripts\f2py.py" -c fib1.f
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build c
13 matches
Mail list logo