Re: 有中国人乎?

2008-04-23 Thread Jack
Jeroen Ruigrok van der Werven 写道: (My Mandarin is not very good.) -On [20080413 09:24], [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: Python这种语言有前途吗?在下想学他一学. Python indeed does have a good future. I am not quite sure with 在下想学他一学 if you are asking for someone to teach to you or if you want to

Script to convert Tcl scripts to Python?

2008-04-23 Thread Achillez
Hi, I have a 10k+ line Tcl program that I would like to auto convert over to Python. Do any scripts exist that can convert ~90% of the standard Tcl syntax over to Python? I know Python doesn't handle strings, but just for general syntax e.g., puts print, expr math operations thanks --

Re: overriding = operator

2008-04-23 Thread Anton Mellit
On Apr 22, 3:54 pm, Paul McGuire [EMAIL PROTECTED] wrote: On Apr 22, 8:47 am, Anton Mellit [EMAIL PROTECTED] wrote: I need something like 'overriding' =, which is impossible, but I look for a systematic approach to do something instead. It seems there are two ways to do what I need:

Re: Dreaming in Code

2008-04-23 Thread alexelder
On Apr 23, 6:12 am, Paul McGuire [EMAIL PROTECTED] wrote: Haven't seen anyone mention this book, it is a Soul of a New Machine- style record of the Chandler project. Since Chandler uses Python and Twisted, and employed a few Python celebs, I thought folks on this list might have already read

help needed with classes/inheritance

2008-04-23 Thread barbaros
Hello everybody, I am building a code for surface meshes (triangulations for instance). I need to implement Body objects (bodies can be points, segments, triangles and so on), then a Mesh will be a collection of bodies, together with their neighbourhood relations. I also need OrientedBody

Re: Dreaming in Code

2008-04-23 Thread alexelder
On Apr 23, 6:12 am, Paul McGuire [EMAIL PROTECTED] wrote: Haven't seen anyone mention this book, it is a Soul of a New Machine- style record of the Chandler project. Since Chandler uses Python and Twisted, and employed a few Python celebs, I thought folks on this list might have already read

Re: [Python 2.4/2.5] subprocess module is sorely deficient?

2008-04-23 Thread Christian Heimes
Harishankar schrieb: Is there any platform independent way to launch a terminal window from a desktop (Windows, Linux, etc.)? No, there isn't. It usually not possible to create a graphical terminal window on a remote server. Christian -- http://mail.python.org/mailman/listinfo/python-list

Re: [Python 2.4/2.5] subprocess module is sorely deficient?

2008-04-23 Thread Harishankar
On Wednesday 23 Apr 2008 14:46:20 Christian Heimes wrote: Harishankar schrieb: Is there any platform independent way to launch a terminal window from a desktop (Windows, Linux, etc.)? No, there isn't. It usually not possible to create a graphical terminal window on a remote server.

Re: subprocess module is sorely deficient?

2008-04-23 Thread Nick Craig-Wood
Mike Hansen [EMAIL PROTECTED] wrote: I think the best solution would be to port Pexpect to windows which wouldn't be that difficult according to my reading of the code. If only I had more free time! Sage ( http://www.sagemath.org ) uses pexpect fairly extensively to interface with all

Re: Python Success stories

2008-04-23 Thread Mark Wooding
Gabriel Genellina [EMAIL PROTECTED] wrote: Because Python doesn't follow the boxed variables model. Be careful here. `Boxed types' or `boxed objects' is a technical term essentially meaning `heap-allocated objects, probably with reference semantics', which Python most definitely does use --

Re: Error in Extending/Embedding FAQ, point 16: How do I tell incomplete input from invalid input?

2008-04-23 Thread Dietrich Bollmann
Hi, I found a solution thanks to another posting on c++-sig and an answer by Andreas Klöckner :) Thank you, Andreas! The thread is here: http://mail.python.org/pipermail/c++-sig/2008-April/thread.html#13470 I would like to inform the responsible of the Python Extending/Embedding FAQ,

Re: help needed with classes/inheritance

2008-04-23 Thread Bruno Desthuilliers
barbaros a écrit : Hello everybody, I am building a code for surface meshes (triangulations for instance). I need to implement Body objects (bodies can be points, segments, triangles and so on), then a Mesh will be a collection of bodies, together with their neighbourhood relations. I also need

Re: Explicit variable declaration

2008-04-23 Thread Filip Gruszczyński
You mean the type? Not in 2.x, but in 3.x, there are function annotations: def a_function(arg1: int, arg2: str) - None: pass Nope, I don't like types ;-) 3.x seems pretty revolutionary, and this typing can be appreciated by some people. Declaring what about them? If you mean declaring

Re: [Python 2.4/2.5] subprocess module is sorely deficient?

2008-04-23 Thread Ben Kaplan
I don't know about all Linux distros, but my Ubuntu machine (8.04 Beta), has the 'TERM' (xterm) and 'COLORTERM' (gnome-terminal) keys in os.environ. You might be able to use that to ensure that the terminal is installed, but you should probably look at a couple of other popular distros first to

vala's pumpkin patch

2008-04-23 Thread balta96428
vala's pumpkin patch http://cracks.12w.net F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

serials and keygens

2008-04-23 Thread balta96428
serials and keygens http://cracks.12w.net F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

firecad crack

2008-04-23 Thread balta96428
firecad crack http://cracks.12w.net F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

cat6 patch cables

2008-04-23 Thread balta96428
cat6 patch cables http://cracks.12w.net F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

keygen dreamfeeder 2.0.12

2008-04-23 Thread balta96428
keygen dreamfeeder 2.0.12 http://cracks.12w.net F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

topical analgesic salonpas-hot capsicum patch

2008-04-23 Thread balta96428
topical analgesic salonpas-hot capsicum patch http://cracks.12w.net F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

pinnacle studio keygen

2008-04-23 Thread balta96428
pinnacle studio keygen http://cracks.12w.net F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

the sims2 nude patch

2008-04-23 Thread balta96428
the sims2 nude patch http://cracks.12w.net F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

crack how to make

2008-04-23 Thread balta96428
crack how to make http://cracks.12w.net F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

soundtap keygen

2008-04-23 Thread fredri8758lupo
soundtap keygen http://cracks.12w.net F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

7 sins nude patch

2008-04-23 Thread fredri8758lupo
7 sins nude patch http://cracks.12w.net F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

falcon 4.0 patch

2008-04-23 Thread fredri8758lupo
falcon 4.0 patch http://cracks.12w.net F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

automotive expert program key crack

2008-04-23 Thread fredri8758lupo
automotive expert program key crack http://cracks.12w.net F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

keygen download

2008-04-23 Thread fredri8758lupo
keygen download http://cracks.12w.net F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

Re: python-ldap: searching without specifying an OU?

2008-04-23 Thread Michael Ströder
hotani wrote: Thanks for the response. The user I'm connecting as should have full access but I'll double check tomorrow. This is the LDAP error that is returned when I leave out the OU: {'info': ': LdapErr: DSID-0C090627, comment: In order to perform this operation a successful bind

Re: Python Success stories

2008-04-23 Thread Philipp Pagel
azrael [EMAIL PROTECTED] wrote: A friend of mine i a proud PERL developer which always keeps making jokes on python's cost. There is only one sane way to deal with this situation: You need a common enemy. Java comes to mind ;-) cu Philipp -- Dr. Philipp Pagel Lehrstuhl f.

Re: help needed with classes/inheritance

2008-04-23 Thread Andrew Lee
barbaros wrote: Hello everybody, I am building a code for surface meshes (triangulations for instance). I need to implement Body objects (bodies can be points, segments, triangles and so on), then a Mesh will be a collection of bodies, together with their neighbourhood relations. I also need

Re: Script to convert Tcl scripts to Python?

2008-04-23 Thread Gerard Flanagan
On Apr 23, 9:17 am, Achillez [EMAIL PROTECTED] wrote: Hi, I have a 10k+ line Tcl program that I would like to auto convert over to Python. Do any scripts exist that can convert ~90% of the standard Tcl syntax over to Python? I know Python doesn't handle strings, but just for general syntax

пульсомер Beurer PM60

2008-04-23 Thread Золотой Клон
Спортивные часы в превосходном дизайне: современнейшая технология объединена со стильным дизайном. Пульсотахографы Prostyle PM 65 и PM 60 - идеальные спутники спортсменов, уделяющих внимание особенному Превосходный дизайн соединяет стиль и элегантность со спортивными атрибутами. Пульсотахограф,

Re: [Python 2.4/2.5] subprocess module is sorely deficient?

2008-04-23 Thread Harishankar
On Wednesday 23 Apr 2008 15:11:21 Ben Kaplan wrote: I don't know about all Linux distros, but my Ubuntu machine (8.04 Beta), has the 'TERM' (xterm) and 'COLORTERM' (gnome-terminal) keys in os.environ. You might be able to use that to ensure that the terminal is installed, but you should

problem with dictionaries

2008-04-23 Thread Simon Strobl
Hello, the idea of the following program is to parse a frequency list of the form FREQUENCY|WORD, to store the frequency of a word in a dictionary (and to do some things with this information later). I have done this many many times. Suddenly, it does not work any more: The value frq[key] is

Re: Python Success stories

2008-04-23 Thread Paul Boddie
On 23 Apr, 11:12, Mark Wooding [EMAIL PROTECTED] wrote: Gabriel Genellina [EMAIL PROTECTED] wrote: Because Python doesn't follow the boxed variables model. Be careful here. `Boxed types' or `boxed objects' is a technical term essentially meaning `heap-allocated objects, probably with

Re: subprocess module is sorely deficient?

2008-04-23 Thread Paul Boddie
On 23 Apr, 13:17, Harishankar [EMAIL PROTECTED] wrote: On Wednesday 23 Apr 2008 15:11:21 Ben Kaplan wrote: I don't know about all Linux distros, but my Ubuntu machine (8.04 Beta), has the 'TERM' (xterm) and 'COLORTERM' (gnome-terminal) keys in os.environ. You might be able to use that to

Re: Error in Extending/Embedding FAQ, point 16: How do I tell incomplete input from invalid input?

2008-04-23 Thread Steve Holden
Dietrich: The web maintainers list is [EMAIL PROTECTED] Your message will be held for moderation, but will be seen by the team who maintain the web site. regards Steve PS: Anyone who wants to *help* maintain the web site should also email that list. It helps if you are already known to

Re: problem with dictionaries

2008-04-23 Thread Peter Otten
Simon Strobl wrote: the idea of the following program is to parse a frequency list of the form FREQUENCY|WORD, to store the frequency of a word in a dictionary (and to do some things with this information later). I have done this many many times. Suddenly, it does not work any more: The

Re: problem with dictionaries

2008-04-23 Thread Chris
On Apr 23, 1:16 pm, Simon Strobl [EMAIL PROTECTED] wrote: Hello, the idea of the following program is to parse a frequency list of the form FREQUENCY|WORD, to store the frequency of a word in a dictionary (and to do some things with this information later). I have done this many many times.

Re: problem with dictionaries

2008-04-23 Thread kdwyer
On Apr 23, 12:16 pm, Simon Strobl [EMAIL PROTECTED] wrote: Hello, the idea of the following program is to parse a frequency list of the form FREQUENCY|WORD, to store the frequency of a word in a dictionary (and to do some things with this information later). I have done this many many

Re: Explicit variable declaration

2008-04-23 Thread Steve Holden
Filip Gruszczyński wrote: You mean the type? Not in 2.x, but in 3.x, there are function annotations: def a_function(arg1: int, arg2: str) - None: pass Nope, I don't like types ;-) 3.x seems pretty revolutionary, and this typing can be appreciated by some people. Declaring what about

Re: problem with dictionaries

2008-04-23 Thread Steve Holden
Simon Strobl wrote: Hello, the idea of the following program is to parse a frequency list of the form FREQUENCY|WORD, to store the frequency of a word in a dictionary (and to do some things with this information later). I have done this many many times. Suddenly, it does not work any more: The

Subprocess module

2008-04-23 Thread Dominique.Holzwarth
Hello all I want to convert a tex file into a pdf by using pdflatex. For that, I thought the 'subprocess' module might be a good option. My code doesn't work at all tho: Import os, subprocess def main(): scriptpath = os.path.dirname(__file__) p = subprocess.Popen(pdflatex

Re: problem with dictionaries

2008-04-23 Thread Bruno Desthuilliers
kdwyer a écrit : On Apr 23, 12:16 pm, Simon Strobl [EMAIL PROTECTED] wrote: (snip) #!/usr/bin/python import sys frqlist = open('my_frqlist.txt', 'r') (snip) frq = {} for line in frqlist: line = line.rstrip() frequency, word = line.split('|') frq[word] = int(frequency) (snip)

Re: Subprocess module

2008-04-23 Thread Diez B. Roggisch
[EMAIL PROTECTED] schrieb: Hello all I want to convert a tex file into a pdf by using pdflatex. For that, I thought the 'subprocess' module might be a good option. My code doesn't work at all tho: Import os, subprocess def main(): scriptpath = os.path.dirname(__file__) p =

Re: problem with dictionaries

2008-04-23 Thread kdwyer
On Apr 23, 1:22 pm, Bruno Desthuilliers bruno. [EMAIL PROTECTED] wrote: kdwyer a écrit : On Apr 23, 12:16 pm, Simon Strobl [EMAIL PROTECTED] wrote: (snip) #!/usr/bin/python import sys frqlist = open('my_frqlist.txt', 'r') (snip) frq = {} for line in frqlist: line =

Re: problem with dictionaries

2008-04-23 Thread Simon Strobl
flippancyYou musts have missed the memo. The rules of the universe changed at 0834 UST yesterday, and all functioning Python programs stopped working./flippancy As always, the rules of the universe have not changed. (Or, at least, I do hope so.) It seems that the cause of my problem was my

Re: help needed with classes/inheritance

2008-04-23 Thread Bruno Desthuilliers
Andrew Lee a écrit : (snip) as a rule of thumb .. if you are using isinstance in a class to determine what class a parameter is ... you have broken the OO contract. Nope. Remember, every class ought to have a well defined internal state and a well defined interface to its state. I don't

Re: Subprocess module

2008-04-23 Thread Christian Heimes
[EMAIL PROTECTED] schrieb: Hello all I want to convert a tex file into a pdf by using pdflatex. For that, I thought the 'subprocess' module might be a good option. My code doesn't work at all tho: Import os, subprocess def main(): scriptpath = os.path.dirname(__file__)

RE: Python Success stories

2008-04-23 Thread Reedick, Andrew
-Original Message- From: [EMAIL PROTECTED] [mailto:python- [EMAIL PROTECTED] On Behalf Of azrael Sent: Tuesday, April 22, 2008 6:26 AM To: python-list@python.org Subject: Python Success stories Hy guys, A friend of mine i a proud PERL developer which always keeps making jokes on

example python telnet/shell server

2008-04-23 Thread chumly96
Hi All, I have a program with a Dbus interface, and would like to allow remote users to use telnet ( or something ) to log in, and run predefined commands against the Dbus interface, return the results, and allow the user to log off. Any examples / help would be great. Thanks Chumly --

python-doc

2008-04-23 Thread korean_dave
Hi all. I am using this to try to document my python-coded apps. http://effbot [DOT] org/zone/pythondoc [DOT] htm i am using windows XP professional. I have put the install directory of pythondoc.py in my path file. So i cd to the directory containing the python scripts I wish to python-doc,

MESSAGE RESPONSE

2008-04-23 Thread Blubaugh, David A.
Is there a way to block these messages. I do not want to be caught with filth such as this material. I could lose my job with Belcan with evil messages such as these messages. David Blubaugh -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent:

RE: Lucky gay sucking cock while butt fucked deep

2008-04-23 Thread Blubaugh, David A.
Is there a way to block these messages. I do not want to be caught with filth such as this material. I could lose my job with Belcan with evil messages such as these messages. David Blubaugh -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent:

Code question

2008-04-23 Thread jyoung79
Wow!! Thank you all for these incredible examples! I really appreciate you all taking the time to share your thoughts. I'm really wanting to learn efficient ways of programming in Python and this is really going to help! Thanks again! Jay --

Python generators (coroutines)

2008-04-23 Thread rocco . rossi
I would really like to know more about python 2.5's new generator characteristics that make them more powerful and analogous to coroutines. Is it possible for instance to employ them in situations where I would normally use a thread with a blocking I/O (or socket) operation? If it is, could

Re: MESSAGE RESPONSE

2008-04-23 Thread Diez B. Roggisch
Blubaugh, David A. schrieb: Is there a way to block these messages. I do not want to be caught with filth such as this material. I could lose my job with Belcan with evil messages such as these messages. If I (or *anybody*) knew how to block these messages, he or she would sell the

Re: Python Success stories

2008-04-23 Thread Cristina Yenyxe González García
2008/4/23, Reedick, Andrew [EMAIL PROTECTED]: IIRC, Python is used in games like Eve Online (SciFi MMO) and Vampire: Bloodlines (RPG.) Years later, a dedicated fan is still fixing/updating the Bloodlines python scripts that control the dialogue and scripted events. Now that you mention

Re: MESSAGE RESPONSE

2008-04-23 Thread Steve Holden
Blubaugh, David A. wrote: Is there a way to block these messages. I do not want to be caught with filth such as this material. I could lose my job with Belcan with evil messages such as these messages. David Blubaugh In future please ensure you do not quote the offending URLs when

Re: Python generators (coroutines)

2008-04-23 Thread Diez B. Roggisch
[EMAIL PROTECTED] schrieb: I would really like to know more about python 2.5's new generator characteristics that make them more powerful and analogous to coroutines. Is it possible for instance to employ them in situations where I would normally use a thread with a blocking I/O (or socket)

Re: python has memory leak?

2008-04-23 Thread yzghan
Thanks to Christian and Jean-Paul for your reply. I moved away from the stackless version (which I don't understand what uniqueness it comes with) and downloaded a fresh copy of Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)] on win32. Following J-P's suggestion, I

Re: [Python 2.4/2.5] subprocess module is sorely deficient?

2008-04-23 Thread Mark Wooding
Harishankar [EMAIL PROTECTED] wrote: On Wednesday 23 Apr 2008 15:11:21 Ben Kaplan wrote: I don't know about all Linux distros, but my Ubuntu machine (8.04 Beta), has the 'TERM' (xterm) and 'COLORTERM' (gnome-terminal) keys in os.environ. This is set on Debian too. Thanks. I should be able to

Re: Python generators (coroutines)

2008-04-23 Thread Jean-Paul Calderone
On Wed, 23 Apr 2008 07:17:46 -0700 (PDT), [EMAIL PROTECTED] wrote: I would really like to know more about python 2.5's new generator characteristics that make them more powerful and analogous to coroutines. Is it possible for instance to employ them in situations where I would normally use a

Re: MESSAGE RESPONSE

2008-04-23 Thread D'Arcy J.M. Cain
On Wed, 23 Apr 2008 10:31:23 -0400 Steve Holden [EMAIL PROTECTED] wrote: Blubaugh, David A. wrote: Is there a way to block these messages. I do not want to be caught with filth such as this material. I could lose my job with Belcan with evil messages such as these messages. In

Unix Device File Emulation

2008-04-23 Thread blaine
Hey everyone, So I've got a quick query for advice. We have an embedded device in which we are displaying to an LCD device that sits at /dev/screen. This device is not readily available all the time, so I am needing to write an emulator. This will basically just monitor a file, /dev/screen

Re: Python make like tools (was Re: [ANN] DoIt 0.1.0 Released (build tool))

2008-04-23 Thread Ville M. Vainio
Eduardo Schettino wrote: I find the doit syntax a bit cumbersome, especially as you can avoid 'args' by just returning a lamda in 'action'. My idea was to: do *not* add any new syntax (to avoid being cumbersome). It is just python, you dont have to import or subclass Yeah, decorators get

Re: Explicit variable declaration

2008-04-23 Thread Duncan Booth
Steve Holden [EMAIL PROTECTED] wrote: Filip Gruszczyski wrote: Just declaring, that they exist. Saying, that in certain function there would appear only specified variables. Like in smalltalk, if I remember correctly. Icon has (had?) the same feature: if the local statement appeared then

Error Message

2008-04-23 Thread Ahmed, Shakir
I am getting application error message The instruction at 0x7c910f29 referenced memory at 0x. The memory could not be read. I am running one python script and it is running good without any exception or error message but getting this message when I am closing python 2.4.1 application.

DTD validation and xmlproc

2008-04-23 Thread mmm
I found Python code to validate a XML document basd on DTD file layout. The code uses the 'xmlproc' package and these module loading steps from xml.parsers.xmlproc import xmlproc from xml.parsers.xmlproc import xmlval from xml.parsers.xmlproc import xmldtd Unfortunately, the xml package no

Re: Python Success stories

2008-04-23 Thread cokofreedom
Civilisation 4 uses Python everywhere and is the main tool used by Modders of the game. -- http://mail.python.org/mailman/listinfo/python-list

Re: Unix Device File Emulation

2008-04-23 Thread Helmut Jarausch
blaine wrote: Hey everyone, So I've got a quick query for advice. We have an embedded device in which we are displaying to an LCD device that sits at /dev/screen. This device is not readily available all the time, so I am needing to write an emulator. This will basically just monitor a

Re: Unix Device File Emulation

2008-04-23 Thread Ville M. Vainio
blaine wrote: example usage: echo 'line 0 0 10 10' /dev/screen On the actual embedded device this is handled by a kernel module. We can spit commands into it as fast as we can and the kernel module can keep up. This is typical unix device file behavior. Any suggestions or advice would be

Re: Unix Device File Emulation

2008-04-23 Thread Dan Upton
(let's try this again, and actually send it to the list this time) On Wed, Apr 23, 2008 at 11:02 AM, blaine [EMAIL PROTECTED] wrote: Hey everyone, So I've got a quick query for advice. We have an embedded device in which we are displaying to an LCD device that sits at /dev/screen. This

Re: Error Message

2008-04-23 Thread Steve Holden
Ahmed, Shakir wrote: I am getting application error message “ The instruction at “0x7c910f29” referenced memory at “0x”. The memory could not be “read”. I am running one python script and it is running good without any exception or error message but getting this message when I am

Re: Script to convert Tcl scripts to Python?

2008-04-23 Thread Helmut Jarausch
Achillez wrote: Hi, I have a 10k+ line Tcl program that I would like to auto convert over to Python. Do any scripts exist that can convert ~90% of the standard Tcl syntax over to Python? I know Python doesn't handle strings, but just for general syntax e.g., puts print, expr math

Re: help needed with classes/inheritance

2008-04-23 Thread barbaros
On Apr 23, 10:48 am, Bruno Desthuilliers bruno. [EMAIL PROTECTED] wrote: My question is: can it be done using inheritance ? Technically, yes: class OrientedBody(Body): def __init__(self, orient=1): Body.__init__(self) self.orient = 1 Now if it's the right thing to do is

Re: Unix Device File Emulation

2008-04-23 Thread blaine
On Apr 23, 11:17 am, Ville M. Vainio [EMAIL PROTECTED] wrote: blaine wrote: example usage: echo 'line 0 0 10 10' /dev/screen On the actual embedded device this is handled by a kernel module. We can spit commands into it as fast as we can and the kernel module can keep up. This is

Re: Explicit variable declaration

2008-04-23 Thread Filip Gruszczyński
Wow! This is extremely easy and seems to do exactly what I need. Those decorators are pretty powerful then. Thanks for your help, I'll try to use this. def uses(names): def decorator(f): used = set(f.func_code.co_varnames) declared = set(names.split()) undeclared

Re: MESSAGE RESPONSE

2008-04-23 Thread Dan Upton
On Wed, Apr 23, 2008 at 10:24 AM, Diez B. Roggisch [EMAIL PROTECTED] wrote: Blubaugh, David A. schrieb: Is there a way to block these messages. I do not want to be caught with filth such as this material. I could lose my job with Belcan with evil messages such as these messages. If

Re: Unix Device File Emulation

2008-04-23 Thread Martin Blume
blaine schrieb # Fake Nokia Screen Emulator import sys, os class nokia_fkscrn: def __init__(self, file): if not os.path.exists(file): os.mkfifo(file) self.fifodev = open(file, 'r') def read(self): while 1: r = self.fifodev.readline() print r

Re: MESSAGE RESPONSE

2008-04-23 Thread Grant Edwards
On 2008-04-22, Blubaugh, David A. [EMAIL PROTECTED] wrote: Is there a way to block these messages. I do not want to be caught with filth such as this material. I could lose my job with Belcan with evil messages such as these messages. No, not really. That's one reason I never use my work

Re: Where to get BeautifulSoup--www.crummy.com appears to be down.

2008-04-23 Thread John Nagle
Mike Driscoll wrote: Ken, On Tue, Apr 22, 2008 at 1:36 PM, Kenneth McDonald [EMAIL PROTECTED] wrote: Sadly. Thanks, Ken -- http://mail.python.org/mailman/listinfo/python-list I've attached the 2.4 version. I also have some Windows binaries for Beautiful Soup uploaded to my website:

Re: Unix Device File Emulation

2008-04-23 Thread blaine
On Apr 23, 12:27 pm, Martin Blume [EMAIL PROTECTED] wrote: blaine schrieb # Fake Nokia Screen Emulator import sys, os class nokia_fkscrn: def __init__(self, file): if not os.path.exists(file): os.mkfifo(file) self.fifodev = open(file, 'r') def read(self):

Re: help needed with classes/inheritance

2008-04-23 Thread Paul McGuire
On Apr 23, 10:44 am, barbaros [EMAIL PROTECTED] wrote: If I understand correctly, in the above implementation I cannot define firstly a (non-oriented) body, and then build, on top of it, two bodies with opposite orientations. The point is, I want both oriented bodies to share the same base

Re: Explicit variable declaration

2008-04-23 Thread Lie
On Apr 23, 4:52 pm, Filip Gruszczyński [EMAIL PROTECTED] wrote: You mean the type? Not in 2.x, but in 3.x, there are function annotations: def a_function(arg1: int, arg2: str) - None: pass Nope, I don't like types ;-) 3.x seems pretty revolutionary, and this typing can be appreciated

Re: Choosing log file destination in logging configuration file

2008-04-23 Thread Vinay Sajip
On Apr 22, 9:48 pm, [EMAIL PROTECTED] wrote: On Apr 22, 12:57 pm, Miki [EMAIL PROTECTED] wrote: Hello, So far so good. In the relevant applications, the code looks something like this: logging.config.fileConfig('log.ini') logger =logging.getLogger('log.regular') or logger =

Partition list with predicate

2008-04-23 Thread Jared Grubb
I want a function that removes values from a list if a predicate evaluates to True. The best I could come up with is: def extract(lst, pred): idx = 0 ret = [] for obj in lst[:]: if pred(obj): ret.append(obj) lst.pop(idx) else: idx +=

Re: Where to get BeautifulSoup--www.crummy.com appears to be down.

2008-04-23 Thread Steve Holden
John Nagle wrote: Mike Driscoll wrote: Ken, On Tue, Apr 22, 2008 at 1:36 PM, Kenneth McDonald [EMAIL PROTECTED] wrote: Sadly. Thanks, Ken -- http://mail.python.org/mailman/listinfo/python-list I've attached the 2.4 version. I also have some Windows binaries for Beautiful Soup uploaded

Re: Where to get BeautifulSoup--www.crummy.com appears to be down.

2008-04-23 Thread Tim Golden
John Nagle wrote: Mike Driscoll wrote: Ken, On Tue, Apr 22, 2008 at 1:36 PM, Kenneth McDonald [EMAIL PROTECTED] wrote: Sadly. Thanks, Ken -- http://mail.python.org/mailman/listinfo/python-list I've attached the 2.4 version. I also have some Windows binaries for Beautiful Soup uploaded

Re: Where to get BeautifulSoup--www.crummy.com appears to be down.

2008-04-23 Thread Mike Driscoll
On Apr 23, 11:47 am, John Nagle [EMAIL PROTECTED] wrote: Mike Driscoll wrote: Ken, On Tue, Apr 22, 2008 at 1:36 PM, Kenneth McDonald [EMAIL PROTECTED] wrote: Sadly.  Thanks,  Ken  --  http://mail.python.org/mailman/listinfo/python-list I've attached the 2.4 version. I also

Re: Partition list with predicate

2008-04-23 Thread Tim Golden
Jared Grubb wrote: I want a function that removes values from a list if a predicate evaluates to True. The best I could come up with is: Have a look at the itertools module, and the ifilter function in particular. TJG -- http://mail.python.org/mailman/listinfo/python-list

China Wireless Mics - Wholesale Wireless Mics Manufacturer

2008-04-23 Thread blog630
China Wireless Mics - Wholesale Wireless Mics Manufacturer Wireless Microphone WebSite Link: http://www.chinese-microphone.com/Wireless-Microphones.html China GuangZhou TianTuo Microphone Manufacturing Co., Ltd WebSite: http://www.chinese-microphone.com/ Microphone Products are: Wireless

OEM Handheld Mics - Chinese Handheld Mics Manufacturer

2008-04-23 Thread blog630
OEM Handheld Mics - Chinese Handheld Mics Manufacturer Handheld Microphone WebSite Link: http://www.chinese-microphone.com/Handheld-Microphones.html China GuangZhou TianTuo Microphone Manufacturing Co., Ltd WebSite: http://www.chinese-microphone.com/ Microphone Products are: Wireless

Python development tools

2008-04-23 Thread [EMAIL PROTECTED]
Are there any completely free developent tools for python scripts like IDLE. I have used IDLE , but I want to try out others also. I saw stuff like PyCrust, but I don't see that it can run the script as well. Thanks, RR -- http://mail.python.org/mailman/listinfo/python-list

Re: Python generators (coroutines)

2008-04-23 Thread Michele Simionato
On Apr 23, 4:17 pm, [EMAIL PROTECTED] wrote: I would really like to know more about python 2.5's new generator characteristics that make them more powerful and analogous to coroutines. Is it possible for instance to employ them in situations where I would normally use a thread with a blocking

Re: python-ldap: searching without specifying an OU?

2008-04-23 Thread hotani
It seems the only way I can bind is by using this format: simple_bind_s('[EMAIL PROTECTED]','password') If I try using a DN, it fails every time. This will not work: simple_bind_s('cn=user,dc=server,dc=local', 'password') Errors out with invalid credentials: ldap.INVALID_CREDENTIALS: {'info':

Re: Python development tools

2008-04-23 Thread Mike Driscoll
On Apr 23, 12:39 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Are there any completely free developent tools for python scripts like IDLE. I have used IDLE , but I want to try out others also. I saw stuff like PyCrust, but I don't see that it can run the script as well. Thanks, RR Check

Re: Unix Device File Emulation

2008-04-23 Thread Martin Blume
blaine schrieb while 1: r = self.fifodev.readline() if r: print r According to my docs, readline() returns an empty string at the end of the file. Also, you might want to sleep() between reads a little bit. Oh ok, that makes sense. Hmm. So do I not want to use

Re: Python Success stories

2008-04-23 Thread Bob Woodham
On 2008-04-22, Paul Hankin [EMAIL PROTECTED] wrote: On Apr 22, 5:50 pm, Jérémy Wagner [EMAIL PROTECTED] wrote: Sure. Python is more readable than Perl, though I have found Python to have a weird behavior regarding this little issue : How can you explain that Python doesn't support the ++

  1   2   >