>>> Assembler Book - Read or Download Individual Chapters - Volume 5 Chapter One: Thunks <<

2010-07-15 Thread nanothermite911fbibustards
Assembler Book - Read or Download Individual Chapters Table of Contents and Index Short Table of Contents (44KB) PDF File Full Table of Contents (408KB) PDF File Index (724KB) PDF File Volume One - Data Representation (40K) Chapter One: Foreward (60

Re: Worship We Must

2010-07-15 Thread Mithrandir
On Tue, 13 Jul 2010 01:32:42 -0700, geremy condra wrote: > > I'm sure you're aware that the shuffle of so-called 'conflict truffles' > is highly illegal, not to mention unethical. I'm shocked you would > advocate it publicly. > > Geremy Condra Ignore them. It's just Google Groups spam. :( --

Re: Possible to include \n chars in doctest code samples or output?

2010-07-15 Thread Steven D'Aprano
On Fri, 16 Jul 2010 01:26:40 -0400, python wrote: > Thomas, > >> Recall that doctest doesn't parse the code, it extracts the docstrings. >> And docstrings are just strings, and are parsed like strings. > > I understand what you're saying, but I'm struggling with how to > represent the following

Re: Code generator and visitor pattern

2010-07-15 Thread Carl Banks
On Jul 15, 8:33 pm, Stefan Behnel wrote: > Carl Banks, 16.07.2010 01:14: > > > > > > > Around these parts, we consider the main use of most Design Patterns > > to be to work around limitations of other languages.  Visitor Pattern > > is probably the worst example of it. > > > In Python it's comple

Re: Plot problem.. ?? No sign at all

2010-07-15 Thread Johan Grönqvist
Hi Ritchy, This is the first time I am doing this, but it's a standard response given on lists like this. 2010-07-13 18:17, Ritchy lelis skrev: This is how looks like the flash residue transference function that i was talking about... http://www.iadc.ca/Imran_ADC_tutorial_files/image048.gif

Re: Possible to include \n chars in doctest code samples or output?

2010-07-15 Thread python
Thomas, > Recall that doctest doesn't parse the code, it extracts the docstrings. And > docstrings are just strings, and are parsed like strings. I understand what you're saying, but I'm struggling with how to represent the following strings in doctest code and doctest results. No matter what co

Re: IDLE won't start on Mac OSX

2010-07-15 Thread Ned Deily
In article <550552.57286...@web56208.mail.re3.yahoo.com>, Dylan Gleason wrote: > I am trying to fire up Python ver. 2.7 with IDLE (I am using Mac OSX 10.6.3), > but it will not start, citing the following error message: > > >>> IDLE's subprocess didn't make connection. Either IDLE can't start

Re: IDLE won't start on Mac OSX

2010-07-15 Thread Chris Rebert
On Thu, Jul 15, 2010 at 10:00 PM, Chris Rebert wrote: > On Thu, Jul 15, 2010 at 9:49 PM, Dylan Gleason wrote: >> Hello, >> My name is Dylan. I am new to this list and am just getting started with >> Python and programming in general (although I have some experience with >> general UNIX wankery).

Re: IDLE won't start on Mac OSX

2010-07-15 Thread Chris Rebert
On Thu, Jul 15, 2010 at 9:49 PM, Dylan Gleason wrote: > Hello, > My name is Dylan. I am new to this list and am just getting started with > Python and programming in general (although I have some experience with > general UNIX wankery). > I am trying to fire up Python ver. 2.7 with IDLE (I am usin

IDLE won't start on Mac OSX

2010-07-15 Thread Dylan Gleason
Hello, My name is Dylan. I am new to this list and am just getting started with Python and programming in general (although I have some experience with general UNIX wankery). I am trying to fire up Python ver. 2.7 with IDLE (I am using Mac OSX 10.6.3), but it will not start, citing the follow

Re: Newbie: Python 3 and MySQL???

2010-07-15 Thread Rami Chowdhury
On Jul 15, 2010, at 19:53 , fuglyducky wrote: > I am brand new Python and need to connect to a MySQL DB. The books I > have been using are all Python 3 so I'd like to stick with what I > know. Does anyone know if there is a library out there for connecting > to MySQL with Python 3? I believe Our

Re: Code generator and visitor pattern

2010-07-15 Thread Paul Rubin
Karsten Wutzke writes: > Since Python isn't stringly typed, single-dispatch isn't available per > se. So is the "double-dispatch" Visitor pattern, which is usually used > in OO systems to implement code generators. So, what is the de facto > method in Python to handle source code generation? A mi

Re: Code generator and visitor pattern

2010-07-15 Thread Stefan Behnel
Carl Banks, 16.07.2010 01:14: Around these parts, we consider the main use of most Design Patterns to be to work around limitations of other languages. Visitor Pattern is probably the worst example of it. In Python it's completely unnecessary (at least in its boilerplate- heavy incarnation as u

Re: Splitting numeric litterals

2010-07-15 Thread Lawrence D'Oliveiro
In message , MRAB wrote: > Normally it's only string literals that could be so long that you might > want to split them over several lines. It is somewhat unusual to have a > _numeric_ literal that's very very long! Seems a peculiar assumption to make in a language that allows integers of arbitr

Re: Fascinating interview by Richard Stallman on Russia TV

2010-07-15 Thread gavino
On Jul 7, 1:56 pm, bolega wrote: > "Democracy is sick in the US, government monitors your > Internet"http://www.youtube.com/watch?v=2BfCJq_zIdk&feature=fvsr > > Enjoy . AWESOME -- http://mail.python.org/mailman/listinfo/python-list

Newbie: Python 3 and MySQL???

2010-07-15 Thread fuglyducky
I am brand new Python and need to connect to a MySQL DB. The books I have been using are all Python 3 so I'd like to stick with what I know. Does anyone know if there is a library out there for connecting to MySQL with Python 3? If not, does anyone have any info on when MySQLdb may be ported? Than

Re: C interpreter in Lisp/scheme/python

2010-07-15 Thread Seebs
On 2010-07-15, bolega wrote: > This makes some sense. He replied on the newsgroup in a lengthy post > that there are sufficient resources out there giving hint that no one > need help me out. Then I was called "lazy" in one email and tersely > given JUST the last name of an author who has many boo

Re: __getattribute__ hook and len() problem

2010-07-15 Thread ernest
Thanks Chris & Christian. Mistery solved :) Ernest -- http://mail.python.org/mailman/listinfo/python-list

Re: Naming Conventions, Where's the Convention Waldo?

2010-07-15 Thread Aahz
In article <4c3a8087$0$28662$c3e8...@news.astraweb.com>, Steven D'Aprano wrote: > >For some reason, when I answer the phone and say "Hello, Steven >speaking?" I often get called Peter. That's the Peter Principle in action. -- Aahz (a...@pythoncraft.com) <*> http://www.pythonc

Re: __getattribute__ hook and len() problem

2010-07-15 Thread Christian Heimes
> And yet, p.__len__() returns 3. I though len(object) simply > called object.__len__. Not exactly, all __magic__ methods of new style classes are called like getattr(type(obj), "__len__")(obj). As a result magic methods are never looked up on the object, including hooks like __getattr_() and __ge

Re: __getattribute__ hook and len() problem

2010-07-15 Thread Chris Rebert
On Thu, Jul 15, 2010 at 5:42 PM, ernest wrote: > Hi! > > I have this class that overrides the __getattribute__ method, > so that it returns the attributes of str(self) instead of the > attributes of self. > > class Part(object): >    def __init__(self): >        self.content = [] >    def __str__(

Toronto PyCamp 2010

2010-07-15 Thread Chris Calloway
The University of Toronto Department of Physics brings PyCamp to Toronto on Monday, August 30 through Friday, September 3, 2010. Register today at http://trizpug.org/boot-camp/torpy10/ For beginners, this ultra-low-cost Python Boot Camp makes you productive so you can get your work done quickl

__getattribute__ hook and len() problem

2010-07-15 Thread ernest
Hi! I have this class that overrides the __getattribute__ method, so that it returns the attributes of str(self) instead of the attributes of self. class Part(object): def __init__(self): self.content = [] def __str__(self): return str.join('\n', self.content) def __ge

Re: Errno 9] Bad file descriptor

2010-07-15 Thread MRAB
joblack wrote: Where does the error occur? If Cameron is right, it occurs somewhere completely different, when serializer.dump() is already long done, when some unsuspecting fool tries to do something with serializer.outf (such as closing it) I have found it but still I don't get it. Dump looks

Fairy scenes

2010-07-15 Thread nais-saudi
Fairy scenes The sections that cried and asked YouTube viewers translation: http://www.youtube.com/v/IFq9cjtrWlQ&rel=0 http://www.youtube.com/v/y2BN73Q-AJw&rel=0 http://www.youtube.com/v/nNFMvznJ-4c&rel=0 http://www.youtube.com/v/qVB9HNQ-w2I&rel=0 http://www.youtube.com/v/RWfR9z91j8I&rel=0

Re: Errno 9] Bad file descriptor

2010-07-15 Thread joblack
> Where does the error occur? If Cameron is right, it occurs somewhere > completely different, when serializer.dump() is already long done, when > some unsuspecting fool tries to do something with serializer.outf (such > as closing it) I have found it but still I don't get it. Dump looks like this

Re: About problems that I have with learning wxPython in Macintosh

2010-07-15 Thread Benjamin Kaplan
On Thu, Jul 15, 2010 at 3:04 PM, ata.jaf wrote: > Hi, > I'm newbie to wxPython and need it to develop my little app. > But from start I have problems with tutorials. Because all of them are > compatible with Windows but not so much with Mac. > For example in this code: > > > import wx > > class M

[ANNC] pynguin-0.9 (python turtle graphics application)

2010-07-15 Thread Lee Harr
Pynguin is a python-based turtle graphics application.     It combines an editor, interactive interpreter, and     graphics display area. It is meant to be an easy environment for introducing     some programming concepts to beginning programmers. http://pynguin.googlecode.com/ This release h

Re: Code generator and visitor pattern

2010-07-15 Thread Carl Banks
On Jul 15, 11:45 am, Karsten Wutzke wrote: > On 15 Jul., 20:28, Thomas Jollans wrote: > > > On 07/15/2010 07:58 PM, Karsten Wutzke wrote: > > > > Hello, > > > > this is obviously a Python OO question: > > > > Since Python isn't stringly typed, > > > I expect this is an innocent typo, and you mean

Re: File transfer on network

2010-07-15 Thread MRAB
mukesh tiwari wrote: Hello all Currently i am trying to develop a client and server in python. Client takes screenshot in every 20 seconds and send it to server. Server store the received file in folder. Here is code for Client import sys import socket import gtk.gdk import time if __name__ == "

Re: multitask http server (single-process multi-connection HTTP server)

2010-07-15 Thread lkcl
On Jul 13, 12:00 pm, Luke Kenneth Casson Leighton wrote: > but... not being funny or anything, but basically i'm done already > :)multitaskhttpdworks, it doesn't need stackless, i completed a JSONRPC > service last night, i'll add POST of multi-part forms today, and i > have everything that [GNU

Re: File transfer on network

2010-07-15 Thread mukesh tiwari
Kindly see this post as above post contains some garbage code in end. Sorry for that. Hello all Currently i am trying to develop a client and server in python. Client takes screenshot in every 20 seconds and send it to server. Server store the received file in folder. Here is code for Client impor

Re: Best Pythonic Approach to Annotation/Metadata?

2010-07-15 Thread Sparky
On Jul 15, 2:26 pm, John Krukoff wrote: > On Thu, 2010-07-15 at 12:37 -0700, Sparky wrote: > > > > > the above is a good "pythonic" way to solve this problem? I am using > > 2.6. > > Hopefully a helpful correction, but if you're running on google app > engine, you're using python 2.5 on the googl

File transfer on network

2010-07-15 Thread mukesh tiwari
Hello all Currently i am trying to develop a client and server in python. Client takes screenshot in every 20 seconds and send it to server. Server store the received file in folder. Here is code for Client import sys import socket import gtk.gdk import time if __name__ == "__main__": s=so

Re: M2Crypto-0.20.2, SWIG-2.0.0, and OpenSSL-1.0.0a build problem

2010-07-15 Thread geremy condra
On Thu, Jul 15, 2010 at 3:03 PM, Adam Mercer wrote: > On Thu, Jul 15, 2010 at 14:10, John Nagle wrote: >>   I had a similar problem back in 2007.  See >> >> http://bytes.com/topic/python/answers/613336-more-m2crypto-build-problems >> >> Also see >> >> http://bytes.com/topic/python/answers/711381-

How to Learn Lambda Calculus: A Guide

2010-07-15 Thread geremy condra
On Thu, Jul 15, 2010 at 1:53 PM, Peter wrote: > On Jul 16, 6:40 am, Nonpython wrote: >> 1: Try to learn lambda calculus >> 2: Fail to learn lambda calculus >> 3: Sit in corner rocking >> 4: Consider suicide. > > You forgot: > > 5: (quietly) drooling > > But then that might be part of the advanced

About problems that I have with learning wxPython in Macintosh

2010-07-15 Thread ata.jaf
Hi, I'm newbie to wxPython and need it to develop my little app. But from start I have problems with tutorials. Because all of them are compatible with Windows but not so much with Mac. For example in this code: import wx class MainWindow(wx.Frame) : def __init__(self, parent, title) : wx.Fr

Re: M2Crypto-0.20.2, SWIG-2.0.0, and OpenSSL-1.0.0a build problem

2010-07-15 Thread Adam Mercer
On Thu, Jul 15, 2010 at 14:10, John Nagle wrote: >   I had a similar problem back in 2007.  See > > http://bytes.com/topic/python/answers/613336-more-m2crypto-build-problems > > Also see > > http://bytes.com/topic/python/answers/711381-m2crypto-0-18-new-version-same-old-build-bugs > >   There have

Re: Possible to include \n chars in doctest code samples or output?

2010-07-15 Thread Thomas Jollans
On 07/15/2010 11:14 PM, pyt...@bdurham.com wrote: > I'm working with some Python 2.6 code that is using the doctest module > for unittests. > > I tried adding tests whose code and results required newlines (\n). > Apparently newlines in string constants breaks the doctest code. > > Any workarou

Possible to include \n chars in doctest code samples or output?

2010-07-15 Thread python
I'm working with some Python 2.6 code that is using the doctest module for unittests. I tried adding tests whose code and results required newlines (\n). Apparently newlines in string constants breaks the doctest code. Any workarounds other than using another char for newlines and wrapping all my

Re: Code generator and visitor pattern

2010-07-15 Thread Ian Hobson
On 15/07/2010 18:58, Karsten Wutzke wrote: Hello, this is obviously a Python OO question: Since Python isn't stringly typed, single-dispatch isn't available per se. So is the "double-dispatch" Visitor pattern, which is usually used in OO systems to implement code generators. So, what is the de

Re: Code generator and visitor pattern

2010-07-15 Thread Ian Hobson
On 15/07/2010 18:58, Karsten Wutzke wrote: Hello, this is obviously a Python OO question: Since Python isn't stringly typed, single-dispatch isn't available per se. So is the "double-dispatch" Visitor pattern, which is usually used in OO systems to implement code generators. So, what is the de

Re: How to Learn Lambda Calculus: A Guide

2010-07-15 Thread Peter
On Jul 16, 6:40 am, Nonpython wrote: > 1: Try to learn lambda calculus > 2: Fail to learn lambda calculus > 3: Sit in corner rocking > 4: Consider suicide. You forgot: 5: (quietly) drooling But then that might be part of the advanced course? I really can't remember, my PHD in 'lambda calculus'

[OFF TOPIC] How to Learn Lambda Calculus: A Guide

2010-07-15 Thread Nonpython
1: Try to learn lambda calculus 2: Fail to learn lambda calculus 3: Sit in corner rocking 4: Consider suicide. -- http://mail.python.org/mailman/listinfo/python-list

Re: Q for Emacs users: code-folding (hideshow)

2010-07-15 Thread Peter
On Jul 16, 2:45 am, kj wrote: > This is a question _for Emacs users_ (the rest of you, go away :)  ). > > How do you do Python code-folding in Emacs? > > Thanks! > > ~K I don't - when I first looked at folding-mode (I assume this is what you are referring too?) I couldn't be bothered putting the

Re: Best Pythonic Approach to Annotation/Metadata?

2010-07-15 Thread John Krukoff
On Thu, 2010-07-15 at 12:37 -0700, Sparky wrote: > the above is a good "pythonic" way to solve this problem? I am using > 2.6. Hopefully a helpful correction, but if you're running on google app engine, you're using python 2.5 on the google side irrespective of what you're running for development

Python script to start, restart and stop the apache server

2010-07-15 Thread Ranjith Kumar
Hi, I planned to write a python script to starts the apache server and when the HTTPD goes down/drop it should auto restart and when user chooses stop it should stop the apache server. Here the start and stop should be user set but the restart when the server goes down. Similar to this program,

Re: Code generator and visitor pattern

2010-07-15 Thread Stefan Behnel
MRAB, 15.07.2010 21:33: Stefan Behnel wrote: Karsten Wutzke, 15.07.2010 20:45: Well, I'm most experienced in OO, so writing OO in Python seems like the way to start with Python. The visitor pattern uses single- dispatch, that is, it determines which method to call be the type of object passed i

Re: Code generator and visitor pattern

2010-07-15 Thread Matt McCredie
Karsten Wutzke web.de> writes: > So, what is the de facto method in Python to handle source code generation? Take a look at the NodeVisitor class in the ast module in python 2.6+. The visitor pattern is implemented in the python standard library. Matt -- http://mail.python.org/mailman/listi

Best Pythonic Approach to Annotation/Metadata?

2010-07-15 Thread Sparky
Hello Python community! I am building a JSON-RPC web application that uses quite a few models. I would like to return JSON encoded object information and I need a system to indicate which properties should be returned when the object is translated to a JSON encoded string. Unfortunately, this appl

Re: Code generator and visitor pattern

2010-07-15 Thread MRAB
Stefan Behnel wrote: Karsten Wutzke, 15.07.2010 20:45: Well, I'm most experienced in OO, so writing OO in Python seems like the way to start with Python. The visitor pattern uses single- dispatch, that is, it determines which method to call be the type of object passed in. Well, then do that.

Re: Code generator and visitor pattern

2010-07-15 Thread Stefan Behnel
Karsten Wutzke, 15.07.2010 21:00: Yes, typo, I meant strictly. Damn, I mean strongly. At least not for identifying which methods to call depending on the type/s. I think you meant "statically typed". http://c2.com/cgi-bin/wiki?StronglyTyped http://www.c2.com/cgi/wiki?StaticTyping Stefan --

Re: M2Crypto-0.20.2, SWIG-2.0.0, and OpenSSL-1.0.0a build problem

2010-07-15 Thread John Nagle
I had a similar problem back in 2007. See http://bytes.com/topic/python/answers/613336-more-m2crypto-build-problems Also see http://bytes.com/topic/python/answers/711381-m2crypto-0-18-new-version-same-old-build-bugs There have been problems with SWIG. There have been problems with how O

Re: Code generator and visitor pattern

2010-07-15 Thread Stefan Behnel
Karsten Wutzke, 15.07.2010 20:45: Well, I'm most experienced in OO, so writing OO in Python seems like the way to start with Python. The visitor pattern uses single- dispatch, that is, it determines which method to call be the type of object passed in. Well, then do that. Put the types into a d

Re: Code generator and visitor pattern

2010-07-15 Thread Thomas Jollans
On 07/15/2010 08:45 PM, Karsten Wutzke wrote: > On 15 Jul., 20:28, Thomas Jollans wrote: >> On 07/15/2010 07:58 PM, Karsten Wutzke wrote: >> >>> Hello, >> >>> this is obviously a Python OO question: >> >>> Since Python isn't stringly typed, >> >> I expect this is an innocent typo, and you mean str

Re: Code generator and visitor pattern

2010-07-15 Thread Karsten Wutzke
> > Yes, typo, I meant strictly. > Damn, I mean strongly. At least not for identifying which methods to call depending on the type/s. Karsten -- http://mail.python.org/mailman/listinfo/python-list

Re: how to install all python plugins

2010-07-15 Thread Johan Grönqvist
2010-07-15 18:18, Daniel Fetchinson skrev: If you mean all python packages that are available through the package manager of ubuntu, then you'll need to search the entire list of available packages using ubuntu's package manager, pick out the ones that have 'python' in their names (presumably, t

Re: Code generator and visitor pattern

2010-07-15 Thread Karsten Wutzke
On 15 Jul., 20:28, Thomas Jollans wrote: > On 07/15/2010 07:58 PM, Karsten Wutzke wrote: > > > Hello, > > > this is obviously a Python OO question: > > > Since Python isn't stringly typed, > > I expect this is an innocent typo, and you mean strictly. > > > single-dispatch isn't available per se. S

Re: Code generator and visitor pattern

2010-07-15 Thread Christian Heimes
> Since Python isn't stringly typed, single-dispatch isn't available per > se. So is the "double-dispatch" Visitor pattern, which is usually used > in OO systems to implement code generators. So, what is the de facto > method in Python to handle source code generation? Do you mean strongly typed l

Re: Code generator and visitor pattern

2010-07-15 Thread Thomas Jollans
On 07/15/2010 07:58 PM, Karsten Wutzke wrote: > Hello, > > this is obviously a Python OO question: > > Since Python isn't stringly typed, I expect this is an innocent typo, and you mean strictly. > single-dispatch isn't available per se. So is the "double-dispatch" Visitor > pattern, Wait, wh

Re: Question about Python upgrade on linux

2010-07-15 Thread Jeff McNeil
On Jul 15, 11:54 am, guandalino wrote: > Hi, suppose I have python 2.6.4 installed from source and I want to > upgrade to 2.6.5. Python standard library is automatically upgraded at > 2.6.5 as well, while 3rd party pure Python and extension modules in > site-packages don't. Is it safe to keep the

Code generator and visitor pattern

2010-07-15 Thread Karsten Wutzke
Hello, this is obviously a Python OO question: Since Python isn't stringly typed, single-dispatch isn't available per se. So is the "double-dispatch" Visitor pattern, which is usually used in OO systems to implement code generators. So, what is the de facto method in Python to handle source code

Re: Cannot send email

2010-07-15 Thread D'Arcy J.M. Cain
On Thu, 15 Jul 2010 09:50:57 -0700 (PDT) G F wrote: > Does anyone have any ideas where the trouble is and what can be done > about it? The little bit about: > "reply: retcode (557); Msg: This mail server does not accept mail > addressed to aninterestedper...@yahoo.com" > seems to be telling but I

Re: ctypes' c_longdouble: underflow error (bug?)

2010-07-15 Thread Thomas Jollans
On 07/15/2010 06:41 PM, kj wrote: > In Thomas Jollans > writes: > >> http://docs.python.org/library/ctypes.html#fundamental-data-types > >> c_longdouble maps to float > > Thanks for pointing this out! > ~K > (Does it make *any difference at all* to use c_longdouble instead > of c_double? If

Re: [ANN] inflect.py: generate plurals, ordinals, numbers to words...

2010-07-15 Thread Stefan Behnel
Thomas Jollans, 15.07.2010 18:41: On 07/15/2010 01:00 PM, Paul wrote: I'm pleased to announce the release of inflect.py v0.1.8, a module that correctly generates: * the plural of singular nouns and verbs * the singular of plural nouns * ordinals * indefinite articles * present participles * and

Cannot send email

2010-07-15 Thread G F
A while back I was working for a company and set up a little python script to send out maintenance emails for some equipment we had set up in the field. The script collected information about the equipment composed an email and sent it out to interested persons. Then I left the company and they

Q for Emacs users: code-folding (hideshow)

2010-07-15 Thread kj
This is a question _for Emacs users_ (the rest of you, go away :) ). How do you do Python code-folding in Emacs? Thanks! ~K -- http://mail.python.org/mailman/listinfo/python-list

Re: ctypes' c_longdouble: underflow error (bug?)

2010-07-15 Thread kj
In Thomas Jollans writes: >http://docs.python.org/library/ctypes.html#fundamental-data-types >c_longdouble maps to float Thanks for pointing this out! ~K (Does it make *any difference at all* to use c_longdouble instead of c_double? If not, I wonder what's the point of having c_longdouble at

Re: [ANN] inflect.py: generate plurals, ordinals, numbers to words...

2010-07-15 Thread Thomas Jollans
On 07/15/2010 01:00 PM, Paul wrote: > > > I'm pleased to announce the release of inflect.py v0.1.8, a module that > correctly generates: > > * the plural of singular nouns and verbs > * the singular of plural nouns > * ordinals > * indefinite articles > * present participles > * and converts num

Re: [ANN] inflect.py: generate plurals, ordinals, numbers to words...

2010-07-15 Thread Daniel Fetchinson
> I'm pleased to announce the release of inflect.py v0.1.8, a module that > correctly generates: > > * the plural of singular nouns and verbs > * the singular of plural nouns > * ordinals > * indefinite articles > * present participles > * and converts numbers to words Wow! Tons of kudos, this mu

Re: how to install all python plugins

2010-07-15 Thread Daniel Fetchinson
> I`m using ubuntu 10.04 I want to install all the python plugins at once > or the python plugins list. > thank you in advance What is a python plugin? If you mean all published packages on the python website, then you probably don't really want to install all of them, only those that you need.

Re: Python source checkout problem

2010-07-15 Thread Mike Nerone
On 07/15/2010 10:23 AM, Andrew Lucas wrote: > "svn co http://svn.python.org/projects/python/trunk"; > > ... > > "svn: Server sent unexpected return value (307 Proxy Redirect) in > response to OPTIONS request for 'http://svn.python.org/projects/python/ > trunk' " > Assuming trunk is what you actu

Re: Python source checkout problem

2010-07-15 Thread Terry Reedy
On 7/15/2010 11:23 AM, Andrew Lucas wrote: I am trying to check-out the python source using subversion. The documentation says that Which doc? It probably needs to be changed. "svn co http://svn.python.org/projects/python/trunk"; I believe 'trunk' is frozen as of the 2.7 release. I suspect

Question about Python upgrade on linux

2010-07-15 Thread guandalino
Hi, suppose I have python 2.6.4 installed from source and I want to upgrade to 2.6.5. Python standard library is automatically upgraded at 2.6.5 as well, while 3rd party pure Python and extension modules in site-packages don't. Is it safe to keep the old site-packages or is it suggested to reinstal

Python source checkout problem

2010-07-15 Thread Andrew Lucas
I am trying to check-out the python source using subversion. The documentation says that "svn co http://svn.python.org/projects/python/trunk"; should do the trick. When I do this I get the following response: "svn: REPORT of '/projects/!svn/vcc/default': 200 OK (http:// svn.python.org)" There

Re: Is python suitable for my needs?

2010-07-15 Thread Simon SSt
Le 15/07/2010 14:26, Steven D'Aprano a écrit : On Thu, 15 Jul 2010 09:36:25 +0200, Simon SSt wrote: Hi, Never too late to discover a new language :-) I hope anybody could help me answering my questions. I'm a technical consultant for a software editor. Our software is running on the UNIX (sol

Re: whitespace in a word doc

2010-07-15 Thread Grant Edwards
On 2010-07-15, Bruce wrote: > I'm trying to create a word doc using win32com. Unfortunately the phrase "word doc" is meaningless. Exactly what format file are you trying to generate? For example: Word97 "doc" or the new "docx" format? > I don't get the same whitespace as when printing the sa

Re: Extending objects by a method?

2010-07-15 Thread Tim Chase
On 07/15/2010 06:45 AM, Karsten Wutzke wrote: Small correction: I probably have to add a method to a class, so that every object instantiated not by me has the desired functionality. You mean like: >>> class Foo: ... def __init__(self, greeting): ... self.greeting = greeting ..

python3: signal.signal/singal.alarm

2010-07-15 Thread Alan
Hi there, I have this, say timeTol = 5 (5 seconds) and 'cmd' takes minutes to execute : import subprocess as sub ... p = sub.Popen(cmd, shell=True, stderr = sub.STDOUT, stdout = sub.PIPE) pid = p.pid signal.signal(signal.SIGALRM, sig

Simple Hack To Get $2000 To Your PayPal Account

2010-07-15 Thread free money
Simple Hack To Get $2000 To Your PayPal Account At http://easyhappydays.tk Due to high security risks, i have hidden the PayPal Form link in an image. in that website On Top Side Above search box , click on image and enter your PayPal id And Your name. please don,t tell to any One. -- http:

Simple Hack To Get $2000 To Your PayPal Account

2010-07-15 Thread free money
Simple Hack To Get $2000 To Your PayPal Account At http://easyhappydays.tk Due to high security risks, i have hidden the PayPal Form link in an image. in that website On Top Side Above search box , click on image and enter your PayPal id And Your name. please don,t tell to any One. -- http:

how to install all python plugins

2010-07-15 Thread Ranjith Kumar
Hi! I`m using ubuntu 10.04 I want to install all the python plugins at once or the python plugins list. thank you in advance -- Cheers Ranjith, http://ranjith10z.wordpress.com -- http://mail.python.org/mailman/listinfo/python-list

Re: empty set and empty dict for Python 3

2010-07-15 Thread Peter Otten
Yingjie Lan wrote: > Maybe somebody already suggested this: > > How about "{:}" for the empty dict, > so that "{}" can denote the empty set? http://mail.python.org/pipermail/python-3000/2007-April/006620.html -- http://mail.python.org/mailman/listinfo/python-list

Re: empty set and empty dict for Python 3

2010-07-15 Thread Tim Golden
On 15/07/2010 13:30, Yingjie Lan wrote: Hi there, Maybe somebody already suggested this: How about "{:}" for the empty dict, so that "{}" can denote the empty set? Well one thing is that {} has denoted the empty dict for many many releases of Python so a *lot* of code would break if you sudde

empty set and empty dict for Python 3

2010-07-15 Thread Yingjie Lan
Hi there, Maybe somebody already suggested this: How about "{:}" for the empty dict, so that "{}" can denote the empty set? Yingjie -- http://mail.python.org/mailman/listinfo/python-list

Re: Is python suitable for my needs?

2010-07-15 Thread Steven D'Aprano
On Thu, 15 Jul 2010 09:36:25 +0200, Simon SSt wrote: > Hi, > > Never too late to discover a new language :-) > > I hope anybody could help me answering my questions. I'm a technical > consultant for a software editor. Our software is running on the UNIX > (solaris 10 / AIX 5L), Sybase 15.x / Ora

Re: insufficient memory problem in running .exe file in ipython

2010-07-15 Thread Steven D'Aprano
On Thu, 15 Jul 2010 00:54:19 -0700, youngung wrote: > Hello! > > I came across a problem in running a .exe file through ipython. """ > os.system(' ~.exe')""" was used. The error message popped up says > > Memory error: insufficient physical memory available > > What should I try further?

Re: Extending objects by a method?

2010-07-15 Thread Karsten Wutzke
Small correction: I probably have to add a method to a class, so that every object instantiated not by me has the desired functionality. Karsten -- http://mail.python.org/mailman/listinfo/python-list

Extending objects by a method?

2010-07-15 Thread Karsten Wutzke
Hello, I'm new to Python so beware. I have a hierarchical object structure which I iterate over (the elements/classes of interest). I would like to apply the Visitor pattern onto this object structure, so I must add an "accept" method to every object (I'm interesting in) for the Visitor pattern t

Re: python3: help with pickle

2010-07-15 Thread Chris Rebert
On Thu, Jul 15, 2010 at 3:34 AM, Alan wrote: > Hi there, > This is more an exercise to myself to understand python3. I took a code I > wrote (acpype) and I am trying to make it compatible with either python 3 or > 2. > I am trying to make a pickle file compatible with either python 3 and 2 as I >

[ANN] inflect.py: generate plurals, ordinals, numbers to words...

2010-07-15 Thread Paul
I'm pleased to announce the release of inflect.py v0.1.8, a module that correctly generates: * the plural of singular nouns and verbs * the singular of plural nouns * ordinals * indefinite articles * present participles * and converts numbers to words Examples: >>> import inflect >>> p = infl

Re: need help: Is there is a way to get someone's calendar from mail exchange server with python

2010-07-15 Thread Ulrich Eckhardt
aimeixu wrote: > I really need help to figure out a way to get someone's calendar from > mail exchange server with python. You can implement any network protocol with Python, see e.g. the struct library. However, it would be easier to use an existing protocol implementation. When you say "mail exc

python3: help with pickle

2010-07-15 Thread Alan
Hi there, This is more an exercise to myself to understand python3. I took a code I wrote (acpype) and I am trying to make it compatible with either python 3 or 2. I am trying to make a pickle file compatible with either python 3 and 2 as I believe it should be possible. I've looked at http://do

Re: need help: Is there is a way to get someone's calendar from mail exchange server with python

2010-07-15 Thread Tim Golden
On 15/07/2010 10:38, aimeixu wrote: Hi guys, I really need help to figure out a way to get someone's calendar from mail exchange server with python. I have no idea about how to make it .Or could some nice guys give me some hint?Thank a lot . There's an IMAP-based recipe here: http://sites.go

Re: floatref

2010-07-15 Thread Tino Wildenhain
Hi John, Am 15.07.2010 09:14, schrieb John Nagle: On 7/14/2010 12:56 AM, Roald de Vries wrote: I know, I just wondered if there is a *standard* solution. Yes, there is. class floatref(object) : def __init__(self, initialval) : self.__dict__["_val"] = initialval def __getattr__(self, attrname

need help: Is there is a way to get someone's calendar from mail exchange server with python

2010-07-15 Thread aimeixu
Hi guys, I really need help to figure out a way to get someone's calendar from mail exchange server with python. I have no idea about how to make it .Or could some nice guys give me some hint?Thank a lot . -- http://mail.python.org/mailman/listinfo/python-list

Re: Is Python portable/Can I install it on an USB Stick?

2010-07-15 Thread Marek Kubica
On 14 Jul 2010 19:28:58 GMT tommyb...@hotmail.com (Thomas Tundor) wrote: > Is Python portable? Yes. > Can I install it on an USB Stick? Yes. > Or is Python installing (at least on WinXP) services or register some > DLLs or write something into Registry? Well, the installer is writing somethin

Re: python ldap recursive

2010-07-15 Thread Michael Ströder
tekion wrote: > I know perl Net::LDAP could do a recursive search call to LDAP. I don't know perl's Net::LDAP and therefore I'm not sure what you mean with "recursive search call". Personally I'd associate that with recursively processing LDAP tree structure. > What I am running into with Python

VoIP

2010-07-15 Thread M Eid
Dears, My blog about Voice over Internet protocol networks..Let's improve our general knowledg http://voib-net.blogspot.com/ Thanks&BR -- http://mail.python.org/mailman/listinfo/python-list

Balenciaga Envelop Clutch 084357L_CF

2010-07-15 Thread swiss luxury watches
Balenciaga Envelop Clutch 084357L_CF http://www.bagstag.com/Balenciaga-Envelop-Clutch-084357L_CF.html Balenciaga Envelop Clutch Information : Brand : Balenciaga ( http://www.bagstag.com/Balenciaga.html ) Code : 084357L_CF Balenciaga Envelop ClutchPure chevre (goatskin) wit

  1   2   >