I have a dictionary which contains some words and
their frequency in a short novel.
It looks like this:
mydict = {'the':358, 'they':29, 'went':7, 'said':65}
Is there an easy to sort this dictionary and get a
list like the following (in decreasing order)?
the 358
said 65
they 29
went 7
Tha
--- Scott David Daniels <[EMAIL PROTECTED]> wrote:
> Anthony Liu wrote:
> > mydict = {'the':358, 'they':29, 'went':7,
> 'said':65}
> > Is there an easy to sort this dictionary and get a
> > list like the followin
Normally when we do
line = in_file_obj.readline()
we read from the first line of a file.
I am wondering if it is possible to start reading from
the last line of file, and then the last but one up to
the first line.
__
Do You Yahoo!?
Tired of spa
On Mon, 28 Mar 2005 21:32:07 +0200, Do Re Mi chel La Si Do
<[EMAIL PROTECTED]> wrote:
> Hi !
>
> I have sevral problems with P4-RC2.
>
> Typical case, I have a script who run OK with P4 "standard" ; but, on a new
> install, with P4-RC2, I obtain :
>
> Traceback (most recent call last):
>
e, at
http://www.python.org/2.4/highlights.html
Enjoy the new release,
Anthony
Anthony Baxter
[EMAIL PROTECTED]
Python Release Manager
(on behalf of the entire python-dev team)
pgpFIWVzNjUPQ.pgp
Description: PGP signature
--
http://mail.python.org/ma
Thanks to Bob Ippolito, there's now an installer for Python 2.4.1
available for Mac OS X 10.3 and later.
Grab it from the Python 2.4.1 page - http://www.python.org/2.4.1/
Anthony
--
http://mail.python.org/mailman/listinfo/python-list
; Unicode" and "Python & Text
processing" resources on the net to get me started? Any good book
recommendations?
Thanks a lot for your help.
--
Mr Anthony Hornby RHCE BIT ALIATEC
Library Systems & Technology Coordinator
Charles Darwin University | CRICOS 300K
Hi Martin,
Thanks for the useful links :-)
Anthony.
On Sat, 2005-04-09 at 13:46 +0200, "Martin v. LÃwis" wrote:
> anthony hornby wrote:
> > Can anyone point out some good "Python & Unicode" and "Python & Text
> > processing"
Hi,
I think I got confused by the python import facility.
Say, in code1.py I have func1, func2, func3 and main.
In code2.py, I *only* want to use func2 from code1.py.
So, I did
from code1 import func2
But every time, I run code2.py, the main() of code1.py
is run.
I don't know why. Any hint
--- Michael Soulier <[EMAIL PROTECTED]> wrote:
> On 4/19/05, Anthony Liu <[EMAIL PROTECTED]>
> wrote:
> > But every time, I run code2.py, the main() of
> code1.py
> > is run.
>
> You probably did not protect your main function in
> both modules.
>
; wrote:
> On 4/19/05, Anthony Liu <[EMAIL PROTECTED]>
> wrote:
> >
> > You are certainly right, because I don't know how
> to
> > protect the main functions. Where do I put
> >
> > if __name__ == '__main__': main()
>
> I just
I add to the end of code1.py
module the following,
if __name__ == "__main__":
main()
I should be OK, right?
--- John Machin <[EMAIL PROTECTED]> wrote:
> On Tue, 19 Apr 2005 19:13:13 -0700 (PDT), Anthony
> Liu
> <[EMAIL PROTECTED]> wrote:
> >I think I
O, sorry, I did have
main()
at the very end of code1.py.
Sorry for this confusion.
--- John Machin <[EMAIL PROTECTED]> wrote:
> On Tue, 19 Apr 2005 20:17:06 -0700 (PDT), Anthony
> Liu
> <[EMAIL PROTECTED]> wrote:
>
> >The choice is (b):
> >
> >(b)
I need to sort this list:
[('A','Y'), ('J','A'), ('Y','J')] like this:
[('A','Y'), ('Y','J'), ('J','A')].
Note how the Ys and Js are together. All I need is for the second element of
one tuple to equal the first element of the next tuple. Another valid
solution is [('J','A'), ('A','Y'), ('Y','J'
I found my old bubble sort solution:
def esort(edges):
while 1:
swaps = 0
for j in range(len(edges)-2):
if edges[j][1] != edges[j+1][0]:
edges[j+1],edges[j+2] = edges[j+2],edges[j+1] # swap
vely.
I'm looking for a way to get at the mail stored in Thunderbird using
Python and, so far, I can't find anything. I did find the mozmail
package but it seems to be geared more towards testing and not really
the kind of use I need.
Can anyone suggest anything?
Many Thanks,
Anthony Pa
emoved_colons = intermediate_string.split(":")
intermediate_string = removed_colons[0] + "-" + removed_colons[1]
+ "-" + removed_colons[2]
removed_dots = intermediate_string.split(".")
final_string = removed.dots[0] + "-" + removed_dot
On 02/09/2016 07:26 PM, Anthony Papillion wrote:
> Hello Everyone,
>
> I am using datetime.now() to create a unique version of a filename.
> When the final file is named, it will look something like:
>
> myfile-2015-02-09-19-08-45-4223
>
> Notice I'm replacing all o
On 02/09/2016 07:47 PM, Ben Finney wrote:
> Anthony Papillion writes:
>
>> On 02/09/2016 07:26 PM, Anthony Papillion wrote:
>>> I am using datetime.now() to create a unique version of a filename.
>>> […]
>>
>> Found the solution in strftime(). Exactly wh
I have downloaded python but I cannot open up idle. I really need this
issue resolved for I have work do for one of my computer science class.
--
https://mail.python.org/mailman/listinfo/python-list
I would absolutely recommend you take a look at the Qt stuff. Very modern,
easy to use, and free for non-commercial products.
Anthony
On February 27, 2016 5:18:57 AM CST, wrong.addres...@gmail.com wrote:
>I have some VB forms with more than a hundred objects. If I cannot drag
>an
stebin.com/sryj98wW
For some reason though, sending mail is failing every time. I've made
sure that the password is correct (which seems to be the most usual
error).
Still, I just can't get it to work. Can someone take a look at this
code and give me some advice?
Thanks!
Anthony
#x27;m a bit confused. Are you saying that the problem is that I'm
enclosing the code in a Try/Except block? Besides that, I don't see
anything different. If it's the Try/Except block, how do I catch the
exception it might generate if I'm not using the exce
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512
On 03/01/2016 02:03 AM, Chris Angelico wrote:
> On Tue, Mar 1, 2016 at 6:58 PM, Anthony Papillion
> wrote:
>> -BEGIN PGP SIGNED MESSAGE- Hash: SHA512
>>
>> On 02/29/2016 11:13 AM, Chris Angelico wrote:
>>&g
Hi Everyone,
I have a function I'm writing to delete wildcarded files in a directory.
I tried this:
def unlinkFiles():
os.remove("/home/anthony/backup/unix*")
This doesn't seem to work because it's a wildcard filename. What is the
proper way to delete files using wi
he community to make it better. Namespaces
were a bit deal as were a few other things. Personally, while I am
LOVING Python, I'd be sad to see PHP die. It's got a lot of potential if
the community can get its crap together and take off the ruby coloured
glasses.
Anthony
--
https://mail.python.org/mailman/listinfo/python-list
ld by the interpreter:
Traceback (most recent call last):
File "analyze.py", line 14, in
print int(row['MONTH'])
ValueError: invalid literal for int() with base 10: ''
What am I doing wrong? Am I not understanding HOW to cast?
Thanks,
Anthony
--
https://mail.python.org/mailman/listinfo/python-list
Hi
I have a small project and I have been unable to get the following statement to
work. Any help would great.
User inputs can either self_sale_head which is a $ value,if a $ value is not
add a self.estimated_weight_hd is used to get the total weight,
the code below should return a estimated_we
On Apr 5, 2014, at 23:03, Chris Angelico wrote:
On Sun, Apr 6, 2014 at 1:52 PM, Anthony Papillion
wrote:
When I try to
cast them like this:
print int(row['YEAR'])
I am told by the interpreter:
Traceback (most recent call last):
File "analyze.py", line 14, in
On Apr 5, 2014, at 23:21, Ben Finney wrote:
Anthony Papillion writes:
for row in r:
print row['YEAR']
This works fine. But, I am needing to do date addition/subtraction
using datetime and so I need these dates as integers.
I assume you mean you will be creating ‘datetime.dat
d_total_weight * self.sale_kg
return amount_price
def save(self):
self.total_price = self.calc_total_price()
super(SaleNote, self).save()
thanks
anthony
--
https://mail.python.org/mailman/listinfo/python-list
On Monday, 14 April 2014 17:43:41 UTC+10, Anthony Smith wrote:
> Hi All
>
>
>
> I am probably doing something wrong but don't know what
>
> Any help would great
>
>
>
> Code below
>
>
>
> the calc_total does not ret
On Monday, 14 April 2014 17:43:41 UTC+10, Anthony Smith wrote:
> Hi All
>
>
>
> I am probably doing something wrong but don't know what
>
> Any help would great
>
>
>
> Code below
>
>
>
> the calc_total does not ret
On Tuesday, 15 April 2014 18:29:27 UTC+10, Steven D'Aprano wrote:
> On Mon, 14 Apr 2014 00:43:41 -0700, Anthony Smith wrote:
>
>
>
>
>
> > the calc_total does not return a estimated_total_weight
>
>
>
> That's because you don'
from the 'it's the future' argument?
Thanks,
Anthony
--
https://mail.python.org/mailman/listinfo/python-list
Is there a way to read the serial number of a TLS cert my app receives?
Anthony
Sent from my mobile device
--
https://mail.python.org/mailman/listinfo/python-list
(bits)
print "\nGenerated Number: ", a, "\n"
print "Number of digits: ", len(str(a))
isNumberPrime = isprime(a)
if isNumberPrime == True:
print "\nThis number is a prime.\n"
else:
print "\nThis number is not a prime.\n"
Thanks!
ialization Vector") is
either the key OR something else I can set. But I don't know how or what
to do.
Does anyone see what is wrong with the code above and could suggest ways
to make it work? I've spent the last 45 minutes googling around and
nothing comes up specific to my prob
w how or what
>> to do.
>
> Does this Stack Overflow thread help? It looks to me like you aren't
> defining an initialization vector at all.
>
> http://stackoverflow.com/questions/14716338/pycrypto-how-does-the-initialization-vector-work
Completely missed that S
On 08/18/2013 05:52 PM, Roy Smith wrote:
> In article ,
> Anthony Papillion wrote:
>
>> I've just started working with the Crypto library and I've already run
>> into a wall even though I'm following a tutorial. Basically, I'm trying
>> to encr
x27;1377986599', u'message':
u'VGhpcyBpcyB0aGUgM3JkIHRlc3QNCg0hjj0NCkpvaG4gUGVycnkNCg0K\n',
u'encodingType': 2, u'subject': u'dGhpcyBpcyB0aGUgM3Jk\n'}]}
I tried using the following code:
data = json.loads(api.getAllInboxMessages) # This is the API call
for messageSender in data['inboxMessages']['fromAddress']
print messageSender
For some reason (probably obvious reasons) isn't working. I'm trying to
loop through the JSON and return all of the fromAddress fields.
Can anyone offer suggestions?
Thanks,
Anthony
--
http://mail.python.org/mailman/listinfo/python-list
On 08/31/2013 06:48 PM, Chris Angelico wrote:
> On Sun, Sep 1, 2013 at 9:44 AM, Anthony Papillion wrote:
>> I'm writing a processor for Bitmessage messages and I am needing to
>> parse the following returned JSON string:
>>
>> {u'inboxMessages':
>
On 08/31/2013 07:32 PM, Cameron Simpson wrote:
> On 31Aug2013 19:19, Anthony Papillion wrote:
> | On 08/31/2013 06:48 PM, Chris Angelico wrote:
> | > On Sun, Sep 1, 2013 at 9:44 AM, Anthony Papillion
> wrote:
> | >> I'm writing a processor for Bitmessage
On 08/31/2013 07:32 PM, Chris Angelico wrote:
> On Sun, Sep 1, 2013 at 10:19 AM, Anthony Papillion
> wrote:
>> On 08/31/2013 06:48 PM, Chris Angelico wrote:
>>> On Sun, Sep 1, 2013 at 9:44 AM, Anthony Papillion
>>> wrote:
>>>> I'm writing a proces
e put me on
the right path? I know it is probably easy but I'm still learning Python
and don't have all the string functions down yet.
Thanks,
Anthony
--
http://mail.python.org/mailman/listinfo/python-list
On 09/02/2013 11:12 AM, Chris “Kwpolska” Warrick wrote:
> On Mon, Sep 2, 2013 at 6:06 PM, Anthony Papillion wrote:
>> Hello Everyone,
>>
>> I have a multi-line string and I need to remove the very first line from
>> it. How can I do that? I looked at StringIO but I can&
On 09/09/2013 04:41 AM, Steven D'Aprano wrote:
> On Mon, 09 Sep 2013 02:39:09 +1000, Chris Angelico wrote:
>
>> On Mon, Sep 9, 2013 at 2:08 AM, Charles Hottel
>> wrote:
>>> I think this article is relevant althought the code examples are not
>>> Python but C:
>>>
>>> http://cm.bell-labs.com/who/k
usr/lib/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object
On 09/13/2013 08:24 AM, Peter Otten wrote:
> Anthony Papillion wrote:
>
>> And I get a traceback that says: No JSON object could be decoded. The
>> specific traceback is:
>>
>> Traceback (most recent call last):
>> File "coinbase_bot.py", line 31,
;m doing wrong? Basically, I want to eventually
get the value of url into a string.
Thanks!
anthony
--
https://mail.python.org/mailman/listinfo/python-list
in
the general direction of how to do it?
Thanks,
Anthony Papillion
- --
Phone:1-(845) 666-1114
VoIP: 17772471...@in.callcentric.com
Skype:CajunTechie
-BEGIN PGP SIGNATURE-
Version: APG v1.1.1
iQJJBAEBCgAzBQJV6FtfLBxBbnRob255IFBhcGlsbGlvbiA8Y
s a Windows SIG? I went to the Python website where
I thought I'd seen one but it doesn't seem to be there now. Any thoughts?
Anthony
- --
Phone: +1.845.666.3312
Skype: CajunTechie
SIP/VoIP: 17772471...@in.callcentric.com
PGP Key: 0x53B04B15
Fingerprint:
out to the filesystem.
Can anyone point me in the right direction?
Thanks!
Anthony
- --
Phone: +1.845.666.3312
Skype: CajunTechie
SIP/VoIP: 17772471...@in.callcentric.com
PGP Key: 0x53B04B15
Fingerprint: C5CE E687 DDC2 D12B 9063 56EA 028A DF74 53B0 4B15
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512
On 10/12/2015 3:58 AM, Chris Angelico wrote:
> On Mon, Oct 12, 2015 at 6:17 PM, Anthony Papillion
> wrote:
>> I'm writing a script that will have email with attachments passed
>> to it via Postfix. Postfix is properly p
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512
On October 13, 2015 2:04:09 AM CDT, Burak Arslan
wrote:
>
>
>On 10/13/15 00:52, Anthony Papillion wrote:
>>> Check out the email.parser module, or the convenience function
>>> > email.message_from_string - yo
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512
Does anyone know of a module that allows the wiring of Outlook PST files using
Python? I'm working on a project that will require me to migrate 60gb of
maildir mail (multiple accounts) to Outlook.
Thanks
Anthony
- --
Sent from my Android d
target machine.
Does anyone know how to create a folder using IMAPlib?
Thanks,
Anthony
- --
Phone: 1.845.666.1114
Skype: cajuntechie
PGP Key:0x028ADF7453B04B15
Fingerprint:C5CE E687 DDC2 D12B 9063 56EA 028A DF74 53B0 4B15
-BEGI
Sorry to resurrect this topic. By google search the last discussion was in 2003.
I would like to find out what is the current prevailing view or consensus (if
any) on the use of Design Pattern in python?
I am doing some 'fact-finding' in this area on request of my colleagues. Some
of them want
I need to pick up a language that would cover the Linux platform. I use
Powershell for a scripting language on the Windows side of things. Very simple
copy files script. Is this the best way to do it?
import os
objdir = ("C:\\temp2")
colDir = os.listdir(objdir)
for f in colDir:
Just started learning Python. I just wrote a simple copy files script. I use
Powershell now as my main scripting language but I wanted to extend into the
linux platform as well. Is this the best way to do it?
import os
objdir = ("C:\\temp2")
colDir = os.listdir(objdir)
for f in
On Tuesday, February 5, 2013 10:17:54 AM UTC-5, pytho...@tim.thechases.com
wrote:
> On Tue, 5 Feb 2013 15:32:32 +0100 (CET), Jean-Michel Pichavant wrote:
>
> > By the way, did someone ever notice that r'\' fails ? I'm sure
>
> > there's a reason for that... (python 2.5) Anyone knows ?
>
> >
>
On 7/17/06, Py PY <[EMAIL PROTECTED]> wrote:
Sorry to be a pest but is there anybody that could help me understanda) if any of this is a problem; and b) where I can learn how to fix it. sudo apt-get build-dep python2.3
then rebuild.
--
http://mail.python.org/mailman/listinfo/python-list
nts to
generators to produce a coroutine kind of functionality, and
a brand new AST-based compiler implementation.
New modules added include hashlib, ElementTree, sqlite3,
wsgiref and ctypes. In addition, a new profiling module
"cProfile" was added.
Enjoy this new release,
Anthony
Anthony
qlite3,
wsgiref, uuid and ctypes. In addition, a new profiling
module cProfile was added.
Enjoy this new release,
Anthony
Anthony Baxter
[EMAIL PROTECTED]
Python Release Manager
(on behalf of the entire python-dev team)
pgpZ7qMXJFH5H.pgp
Description: PGP signature
--
http://mail.python.org/mailman/listinfo/python-list
SECURITY ADVISORY [PSF-2006-001]
Buffer overrun in repr() for UCS-4 encoded unicode strings
http://www.python.org/news/security/PSF-2006-001/
Advisory ID: PSF-2006-001
Issue Date: October 12, 2006
Product: Python
Versions: 2.2, 2.3, 2.4 prior to 2.4.4, wide unicode (
ghts of the previous major Python release (2.4) are available
from the Python 2.4 page, at
http://www.python.org/2.4/highlights.html
Enjoy this release,
Anthony
Anthony Baxter
[EMAIL PROTECTED]
Python Release Manager
(on behalf of the entire python-dev team)
pgpY6GGofDny5.pgp
Description: PG
On Thursday 12 October 2006 17:31, Anthony Baxter wrote:
>SECURITY ADVISORY [PSF-2006-001]
> Buffer overrun in repr() for UCS-4 encoded unicode strings
>
> http://www.python.org/news/security/PSF-2006-001/
As a few people noted in email to me - the patch direc
Title: Email Template
The Grant Institute: Certificate in Professional Program Development and Grant Communication will be held at the University of Washington, Seattle, December 4 - 8, 2006. Interested development professionals, researchers, faculty, and graduate students should register as soo
strings on UCS-4 (wide unicode) builds.
Enjoy this release,
Anthony
Anthony Baxter
[EMAIL PROTECTED]
Python Release Manager
(on behalf of the entire python-dev team)
pgpO2AaqS8RU5.pgp
Description: PGP signature
--
http://mail.python.org/mailman/listinfo/python-list
On 21 Oct 2006 21:39:51 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> mingw32 is supported and can compile many extensions. See the following
> post:
>
> http://groups.google.com/group/comp.lang.python/msg/8e2260fe4d4b7de9
>
> If you meant something else with your comment, please explain.
ease notes, and known issues, please see:
http://www.python.org/2.3.6
Highlights of this new release include:
- A fix for PSF-2006-001, a bug in repr() for unicode strings
on UCS-4 (wide unicode) builds.
- Two other, less critical, security fixes.
Enjoy this release,
Anthony
Anthony Baxter
known issues, please see:
http://www.python.org/2.3.6
Highlights of this new release include:
- A fix for PSF-2006-001, a bug in repr() for unicode strings
on UCS-4 (wide unicode) builds.
- Two other, less critical, security fixes.
Enjoy this release,
Anthony
Anthony Baxter
[EMAIL PROTECTED]
P
Howdy, I had the impression that pychecker caught and reported such
dynamic syntactical errors.
#!/usr/bin/env python
def add(i):
i += 10
status = 3
if 1 == 1:
statuss = 15
add(status)
===
exalted sysfault$ pychecker foo.py
Processing foo...
Warnings...
No
On Fri, 09 Jun 2006 11:46:59 -0700, Matt Good wrote:
> Anthony Greene wrote:
>> Howdy, I had the impression that pychecker caught and reported such
>> dynamic syntactical errors.
>>
>> #!/usr/bin/env python
>>
>>
>> def add(i):
>> i += 10
&g
ors to produce a coroutine
kind of functionality, and a brand new AST-based compiler
implementation.
New modules added include hashlib, ElementTree, sqlite3, wsgiref and
ctypes. We also have a new profiling module "cProfile".
Enjoy this new release (another step on the path to Python
End of July is our aggressive but still-achievable target: everythingwas scheduled from the start to hit OSCON '06 (and the release of Python
2.5 -- whether 2.5 final will be out at OSCON is still uncertain,though).Currently the schedule has Python 2.5 final due August 8th, and RC1 August 1st. That
e, sqlite3,
wsgiref and ctypes. In addition, a new profiling module
"cProfile" was added.
Enjoy this new release,
Anthony
Anthony Baxter
[EMAIL PROTECTED]
Python Release Manager
(on behalf of the entire python-dev team)
pgpefHF3jJ6yF.pgp
Description: PGP signature
--
http://mail.python.org/mailman/listinfo/python-list
giref, uuid and ctypes. In addition, a new profiling
module "cProfile" was added.
Enjoy this new release,
Anthony
Anthony Baxter
[EMAIL PROTECTED]
Python Release Manager
(on behalf of the entire python-dev team)
--
http://mail.python.org/mailman/listinfo/python-list
ref, uuid and ctypes. As well, a new
higher-performance profiling module (cProfile) was
added.
Extra-special thanks on behalf of the entire Python
community should go out to Neal Norwitz, who's done
absolutely sterling work in shepherding Python 2.5
through to it's final release.
Enjoy th
> More recent versions of Python have incorporated much more support for
> 64-bit architectures. 2.5 is about to be released (I believe it should
> be out in the next 24 hours), and I'd recommend that over the older
> version you are considering.
If by "24 hours" you mean "20 minutes ago", this is
This seems to be a very, very silly original post. I know of plenty of
people who make a living programming Python. It's been the vast
majority of the programming (for money) I've done in the last ten
years, and there's countless other people I know here in Melbourne in
the same position.
--
http:
> I would really rather this were a discussion than an argument. You will
> now no doubt reply telling me I wouldn't.
>
> My posting was issued as a response to the irritation engendered by your
> argumentative style of debate. Your latest response simply proves that
> there is indeed no remark, ho
On 12/13/06, Holger Joukl <[EMAIL PROTECTED]> wrote:
> I did read this but didn't think it applied to my situation. I'm quite
> sure that the refcount of the local variable is 1 before the local scope
> is left.
> So let me rephrase the question: Even if I can make sure that non of the
> problemati
> I am using python to write a testing tools, currently this tool only
> supports skinny protocol. I am planning to add SIP and MGCP support as well,
> wondering if you have written these protocol stacks before which can be
> leveraged from.
There's two I know of - shtoom and Divmod Sine. The latt
ffectively stopped in favour of working on the
2.4 series. There's been a lot of bugs fixed since then that weren't
applied back to 2.3. See the 2.4.4 release notes, available at the
2.4.4 webpage, for more.
Anthony
--
http://mail.python.org/mailman/listinfo/python-list
On 1/3/07, Jenny Zhao (zhzhao) <[EMAIL PROTECTED]> wrote:
> Thanks Anthony.
>
> I am wondering where I can get Divmod Sine and Shtoom. Are they open
> source ?
>
> Thanks again
> Jenny
http://www.google.com/search?q=divmod+sine
http://www.google.com/search?q=shtoom
On Wed, 01 Feb 2006 23:40:37 +0100, Daniel Nogradi wrote:
> I'm relatively new to object oriented programming, so get confused
> about its usage once in a while. Suppose there is a class Image that
> has a number of methods, rotate, open, verify, read, close, etc. Then
> to use this class my natur
On Wed, 01 Feb 2006 23:40:37 +0100, Daniel Nogradi wrote:
> I'm relatively new to object oriented programming, so get confused
> about its usage once in a while. Suppose there is a class Image that
> has a number of methods, rotate, open, verify, read, close, etc. Then
> to use this class my natur
I am talking about the 'take' method of numarray.
See here for more info:
http://stsdas.stsci.edu/numarray/Doc/node33.html
If I initialize a matrix 'mymatrix' by zeros((3,3),
type="Float64"), I get a 3*3 matrix of all zeros.
Look:
>>> from numarray import *
>>> mymatrix = zeros((3,3), type="Fl
Thanks, Tim, that is really cool. I know there must
be some convenient way of doing this.
--- Tim Hochberg <[EMAIL PROTECTED]> wrote:
> Anthony Liu wrote:
> > I am talking about the 'take' method of numarray.
> >
> > See here for more info:
> >
The Grant Institute's Grants 101: Professional Grant Proposal Writing Workshop will be held at Simon Fraser University at Harbour Centre, September 12 - 14
, 2007. Interested development professionals, researchers, faculty, and graduate students should register as soon as possible, as demand mean
file is the standard format used by ConfigParser module.
The permission for the ast-linux.conf file is the same as the user/group
defined in httpd.conf.
[EMAIL PROTECTED] ast-sandbox]# ls -l /home/ast/ast-linux.conf
-rw-rw-rw- 1 777 ast 7936 Jun 21 11:11 /home/ast/ast-linux.conf
Any pointer
The Grant Institute's Grants 101: Professional Grant Proposal Writing Workshop will be held at Simon Fraser University at Harbour Centre, September 12 - 14
, 2007. Interested development professionals, researchers, faculty, and graduate students should register as soon as possible, as demand mean
The Grant Institute's Grants 101: Professional Grant Proposal Writing Workshop will be held at Simon Fraser University at Harbour Centre, September 12 - 14
, 2007. Interested development professionals, researchers, faculty, and graduate students should register as soon as possible, as demand mean
The Grant Institute's Grants 101: Professional Grant Proposal Writing Workshop will be held at Simon Fraser University at Harbour Centre, September 12 - 14
, 2007. Interested development professionals, researchers, faculty, and graduate students should register as soon as possible, as demand mean
clude:
Bug fixes. According to the release notes, at least 150
have been fixed.
Highlights of the previous major Python release (2.5) are
available from the Python 2.5 page, at
http://www.python.org/2.5/highlights.html
Enjoy this release,
Anthony
Anthony Baxter
[EMAIL PROTECTED]
Python Re
else have any useful comments about python vs java
without starting a flame war.
--
Kind Regards,
Anthony Irwin
http://www.irwinresources.com
http://www.makehomebusiness.com
email: anthony at above domains, - www.
--
http://mail.python.org/mailman/listinfo/python-list
me kind of file extension association for people running
windows instead of the shebang?
I saw on the python site a slide from 1999 that said that python was
slower then java but faster to develop with is python still slower
then java?
--
Kind Regards,
Anthony Irwin
http://www.irwinresource
#!/usr/bin/env python
def main():
s = " abc def ghi"
count = 0
for i in s:
if i == ' ':
count += 1
else:
break
print count
if __name__ == '__main__':
main()
--
Kind Regard
Anthony Irwin wrote:
> walterbyrd wrote:
>> The strings start with whitespace, and have a '*' or an alphanumeric
>> character. I need to know how many whitespace characters exist at the
>> beginning of the string.
>>
>
> Hi,
>
> I am new to python
101 - 200 of 315 matches
Mail list logo