sorting a dictionary?

2005-03-21 Thread Anthony Liu
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

Re: sorting a dictionary?

2005-03-21 Thread Anthony Liu
--- 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

Read from the last line of a file?

2005-03-22 Thread Anthony Liu
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

Re: Trouble with RC2

2005-03-29 Thread Anthony Baxter
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): >

RELEASED Python 2.4.1 (final)

2005-03-30 Thread Anthony Baxter
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

Mac OS X Installer for Python 2.4.1 available

2005-03-30 Thread Anthony Baxter
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

Text & Unicode processing references on the web.

2005-04-08 Thread anthony hornby
; 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

Re: Text & Unicode processing references on the web.

2005-04-13 Thread anthony hornby
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"

Importing some functions from a py file

2005-04-19 Thread Anthony Liu
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

Re: Importing some functions from a py file

2005-04-19 Thread Anthony Liu
--- 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. >

Re: Importing some functions from a py file

2005-04-19 Thread Anthony Liu
; 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

Re: Importing some functions from a py file

2005-04-19 Thread Anthony Liu
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

Re: Importing some functions from a py file

2005-04-19 Thread Anthony Liu
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)

Sorting an Edge List

2005-04-29 Thread Anthony D'Agostino
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'

Re: Sorting an Edge List

2005-04-29 Thread Anthony D'Agostino
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

Getting data out of Mozilla Thunderbird with Python?

2015-12-08 Thread Anthony Papillion
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

There has to be a better way to split this string!

2016-02-09 Thread Anthony Papillion
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

Re: [SOLVED] There has to be a better way to split this string!

2016-02-09 Thread Anthony Papillion
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

Re: [SOLVED] There has to be a better way to split this string!

2016-02-09 Thread Anthony Papillion
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 cannot open IDLE

2016-02-12 Thread anthony averett
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

Re: Everything good about Python except GUI IDE?

2016-02-27 Thread Anthony Papillion
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

Sending an email with a binary attachment

2016-02-29 Thread Anthony Papillion
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

Re: Sending an email with a binary attachment

2016-02-29 Thread Anthony Papillion
#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

Re: Sending an email with a binary attachment

2016-03-01 Thread Anthony Papillion
-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

How do I remove/unlink wildcarded files

2015-01-02 Thread Anthony Papillion
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

Re: What killed Smalltalk could kill Python

2015-01-21 Thread Anthony Papillion
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

How can I parse this correctly?

2014-04-05 Thread Anthony Papillion
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

If statement issue driving me nuts

2014-04-05 Thread Anthony Smith
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

Re: How can I parse this correctly?

2014-04-05 Thread Anthony Papillion
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

Re: How can I parse this correctly?

2014-04-05 Thread Anthony Papillion
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

Learner looking for assistance

2014-04-14 Thread Anthony Smith
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

Re: Learner looking for assistance

2014-04-14 Thread Anthony Smith
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

Re: Learner looking for assistance

2014-04-15 Thread Anthony Smith
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

Re: Learner looking for assistance

2014-04-15 Thread Anthony Smith
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'

Why Python 3?

2014-04-18 Thread Anthony Papillion
from the 'it's the future' argument? Thanks, Anthony -- https://mail.python.org/mailman/listinfo/python-list

Read TLS cert serial number?

2014-04-21 Thread Anthony Papillion
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

Question about function failing with large number

2013-08-13 Thread Anthony Papillion
(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!

Question about crypto

2013-08-18 Thread Anthony Papillion
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

Re: Question about crypto

2013-08-19 Thread Anthony Papillion
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

Re: Question about crypto

2013-08-19 Thread Anthony Papillion
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

How do I process this using Python?

2013-08-31 Thread Anthony Papillion
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

Re: How do I process this using Python?

2013-08-31 Thread Anthony Papillion
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': >

Re: How do I process this using Python?

2013-08-31 Thread Anthony Papillion
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

Re: How do I process this using Python? (SOLVED)

2013-08-31 Thread Anthony Papillion
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

How can I remove the first line of a multi-line string?

2013-09-02 Thread Anthony Papillion
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

Re: How can I remove the first line of a multi-line string? (SOLVED)

2013-09-02 Thread Anthony Papillion
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&

Re: Can I trust downloading Python?

2013-09-09 Thread Anthony Papillion
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

Another question about JSON

2013-09-13 Thread Anthony Papillion
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

Re: Another question about JSON

2013-09-13 Thread Anthony Papillion
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,

How to parse JSON passed on the command line?

2013-11-06 Thread Anthony Papillion
;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

How do I real a SSL certs serial number using Python?

2015-09-03 Thread Anthony Papillion
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

Is there a Windows Python SIG?

2015-10-07 Thread Anthony Papillion
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:

How to handle attachments passed via Postfix

2015-10-12 Thread Anthony Papillion
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

Re: How to handle attachments passed via Postfix

2015-10-12 Thread Anthony Papillion
-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

Re: How to handle attachments passed via Postfix

2015-10-13 Thread Anthony Papillion
-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

Creating PST files using Python

2015-11-03 Thread Anthony Papillion
-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

How to create a folder using IMAPLib?

2015-11-18 Thread Anthony Papillion
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

Design Pattern and Python: Any book recommendation? Your view?

2011-11-03 Thread Anthony Kong
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

Opinion on best practice...

2013-02-04 Thread Anthony Correia
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:

Best Practice Question

2013-02-04 Thread Anthony Correia
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

Re: Best Practice Question

2013-02-05 Thread Anthony Correia
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 ? > > > >

Re: compiling 2.3.5 on ubuntu

2006-07-20 Thread Anthony Baxter
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

RELEASED Python 2.5 (beta 3)

2006-08-03 Thread Anthony Baxter
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

RELEASED Python 2.5 (release candidate 1)

2006-08-17 Thread Anthony Baxter
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

2006-10-12 Thread Anthony Baxter
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 (

RELEASED Python 2.4.4, release candidate 1

2006-10-12 Thread Anthony Baxter
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

Re: SECURITY ADVISORY [PSF-2006-001] Buffer overrun in repr() for UCS-4 encoded unicode strings

2006-10-12 Thread Anthony Baxter
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

Professional Grant Proposal Writing Workshop (University of Washington, Seattle - December 2006)

2006-10-12 Thread Anthony Jones
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

RELEASED Python 2.4.4, Final.

2006-10-19 Thread Anthony Baxter
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

Re: Fwd: Re: How to upgrade python from 2.4.3 to 2.4.4 ?

2006-10-21 Thread Anthony Baxter
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.

RELEASED Python 2.3.6, release candidate 1

2006-10-23 Thread Anthony Baxter
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

RELEASED Python 2.3.6, FINAL

2006-11-01 Thread 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

Pychecker

2006-06-09 Thread Anthony Greene
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

Re: Pychecker

2006-06-09 Thread Anthony Greene
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

RELEASED Python 2.5 (beta 1)

2006-06-21 Thread Anthony Baxter
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

Re: Python in a nutshell - new edition ?

2006-07-11 Thread Anthony Baxter
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

Subject: RELEASED Python 2.5 (beta 2)

2006-07-11 Thread Anthony Baxter
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

RELEASED Python 2.5 (release candidate 2)

2006-09-13 Thread Anthony Baxter
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

RELEASED Python 2.5 (FINAL)

2006-09-19 Thread Anthony Baxter
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

Re: Installing Python on a 64-Bit OS

2006-09-19 Thread Anthony Baxter
> 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

Re: does anybody earn a living programming in python?

2006-09-26 Thread Anthony Baxter
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:

Re: A critique of cgi.escape

2006-09-26 Thread Anthony Baxter
> 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

Re: Re: call of __del__ non-deterministic in python 2.4 (cpython)?

2006-12-13 Thread Anthony Baxter
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

Re: Looking for python SIP/MGCP stacks

2006-12-30 Thread Anthony Baxter
> 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

Re: Python 2.4.4 vs. 2.3.6

2006-12-30 Thread Anthony Baxter
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

Re: Looking for python SIP/MGCP stacks

2007-01-02 Thread Anthony Baxter
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

Re: OO conventions

2006-02-01 Thread Anthony Greene
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

Re: OO conventions

2006-02-01 Thread Anthony Greene
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

Changing values of 1st column of a matrix using take(mymatrix, (0, ), axis=1)

2006-02-20 Thread Anthony Liu
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

Re: Changing values of 1st column of a matrix using take(mymatrix, (0, ), axis=1)

2006-02-20 Thread Anthony Liu
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: > >

Professional Grant Proposal Writing Workshop (September 2007: Simon Fraser University)

2007-06-14 Thread Anthony Jones
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

Problem with using ConfigParser.py

2007-06-21 Thread Anthony Raj
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

Professional Grant Proposal Writing Workshop (September 2007: Simon Fraser University)

2007-06-25 Thread Anthony Jones
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

Professional Grant Proposal Writing Workshop (September 2007: Simon Fraser University)

2007-07-10 Thread Anthony Jones
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

Professional Grant Proposal Writing Workshop (September 2007: Simon Fraser University)

2007-07-21 Thread Anthony Jones
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

RELEASED Python 2.5.1, FINAL

2007-04-19 Thread Anthony Baxter
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

Trying to choose between python and java

2007-05-14 Thread Anthony Irwin
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

Re: Trying to choose between python and java

2007-05-15 Thread Anthony Irwin
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

Re: how do I count spaces at the beginning of a string?

2007-05-16 Thread Anthony Irwin
#!/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

Re: how do I count spaces at the beginning of a string?

2007-05-16 Thread Anthony Irwin
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

<    1   2   3   4   >