Re: Question about smtplib, and mail servers in general.

2005-09-20 Thread Steve Holden
Peter Hansen wrote: > Steve Holden wrote: > >>Peter Hansen wrote: >> >>>In any case, unless the mail server will allow "relaying", which most >>>don't these days (to prevent spamming), then it won't work the way you >>>are hoping unless *all* the 100 addresses are local ones, to be >>>delivered

Re: print there!

2005-09-20 Thread Steven D'Aprano
On Tue, 20 Sep 2005 14:06:23 +0200, Fredrik Lundh wrote: > Godwin Burby wrote: > >> print 'c:\godwin\bl.csv', >> for i,row in enumerate(reader): >># inserts or updates the database >>print i, >> This displays on the screen as : >> c:\godwin\bl.csv 1 2 3 4 5 6 7 8 >> ^ >> B

Re: Question About Logic In Python

2005-09-20 Thread Steven D'Aprano
On Tue, 20 Sep 2005 03:03:15 +, Ron Adam wrote: > Steven D'Aprano wrote: >> Are there actually any usage cases for *needing* a Boolean value? Any >> object can be used for truth testing, eg: [snip] > Of course if any of the default False or True conditions are > inconsistent with the logic

Re: Question About Logic In Python

2005-09-20 Thread Steven D'Aprano
On Mon, 19 Sep 2005 22:31:05 +, Bengt Richter wrote: > On Mon, 19 Sep 2005 23:46:05 +1000, Steven D'Aprano <[EMAIL PROTECTED]> wrote: >>Are there actually any usage cases for *needing* a Boolean value? Any >>object can be used for truth testing, eg: [snip] > making an index (it's an int sub

Re: slicing functionality for strings / Python suitability forbioinformatics

2005-09-20 Thread Steven D'Aprano
On Mon, 19 Sep 2005 19:40:12 -0700, jbperez808 wrote: > Having to do an array.array('c',...): > > >>> x=array.array('c','ATCTGACGTC') > >>> x[1:9:2]=array.array('c','') > >>> x.tostring() > 'AACAGACATC' > > is a bit klunkier than one would want, but I guess > the efficient performanc

webbrowser failing

2005-09-20 Thread Thomas Thomas
Hi All,   import webbrowserurl=''webbrowser.open(url)   giving the error   Python 2.3.5 (#62, Feb  8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)] on win32Type "help", "copyright", "credits" or "license" for more information.>>> ## working on region in file c:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/p

Re: What am i doing Wrong?

2005-09-20 Thread Aldo Cortesi
Thus spake keithlackey ([EMAIL PROTECTED]): > class structure: > def __init__(self, folders = []): ^ Here's your problem. To understand what's going on, you need to know two things: - Default arguments are only evaluated ONCE

Re: Newbie Question on ctypes

2005-09-20 Thread Sybren Stuvel
Efrat Regev enlightened us with: >My question is, therefore, if I can build ctypes locally. I tried > > rpm -i python-ctypes-0.9.1-1.rf.src.rpm That _installs_ the source package, not build it as you intended. Read the RPM manual: rpm --rebuild python-ctypes-0.9.1-1.rf.src.rpm Sybren -- The

Re: What am I doing wrong?

2005-09-20 Thread Sybren Stuvel
keithlackey enlightened us with: > def __init__(self, folders = []): > self.folders = folders Read all about this very common mistake at http://docs.python.org/tut/node6.html#SECTION00671 > def add_folder(self, folder): > self.folders.append

Newbie Question on ctypes

2005-09-20 Thread Efrat Regev
Hello, (I apologize in advance if I'm posting to the wrong group. If so, could you please instruct me which is appropriate?) I'm trying to use uTidyLib, HTML-tidy's python binding. When I import tidy Python says it can't import ctypes. Since I'm using FC4, I looked for a FC4 ctype

What am i doing Wrong?

2005-09-20 Thread keithlackey
I'm relatively new to python and I've run into this problem.     DECLARING CLASS     class structure:         def __init__(self, folders = []):          self.folders = folders           def add_folder(self, folder):    self.folders.append(tup

What am I doing wrong?

2005-09-20 Thread keithlackey
I'm relatively new to python and I've run into this problem. DECLARING CLASS class structure: def __init__(self, folders = []): self.folders = folders def add_folder(self, folder): self.folders.append(tuple(folder)) Now

Re: Free seminar on domain-specific modeling

2005-09-20 Thread Martijn Iseger
> Martijn Iseger wrote: > >> Domain-specific modeling makes software development 5-10 times faster >> than approaches based on UML or MDA. It accelerates development and >> reduces complexity by automatically generating full code from >> higher-abstraction design models. >> > Wow, look everyone!

Re: print there!

2005-09-20 Thread Godwin Burby
thanks :) It works beautifully. -- http://mail.python.org/mailman/listinfo/python-list

Re: print there!

2005-09-20 Thread Godwin Burby
i think u've misunderstood my question. Your solution will print on a new line as below: c:\godwin\bl.csv 1 c:\godwin\bl.csv 2 c:\godwin\bl.csv 3 But i want this number to diplay their value increase on the same line on the same sport itself without printing the filename multiple times on multiple

Re: [python-win32] Getting tired with py2exe

2005-09-20 Thread Garth Johnson
Steve Holden wrote: >Ignoring all the philosophical questions I'd like to thank you for all >your hard work on py2exe over the years, which has benefited the Windows >Python community immeasurably. > >regards > Steve > > here here! I have just begun my trek into Python and am already relying

PyWeek 1 has completed, winners announced

2005-09-20 Thread richard
The first PyWeek Game Programming Challenge is now finished, and the results are in: I consider it a success, and I'll be running it again. I'll be making some small changes to the challenge format (mostly to do with the theme selection) and I'll defini

Re: re.search experts needed on fqdn stripping..

2005-09-20 Thread Mike Meyer
"rh0dium" <[EMAIL PROTECTED]> writes: > After thinking about it for a bit longer i simplified it but still have > the same problem.. > > e =[] > hosts = [ "poundcake.fpdn.com", "scorpion.fpdn.com", "loghost", > "scorpian", "localhost", "lan" ] > > ignore = [ "localhost", "loghost", "timehost", "mai

Re: testing a website from python

2005-09-20 Thread matt
Here's something I did recently at work. (Thought it's testing http digest authentication, the idea would the same (testNoAuth() is probably doing what you want)). It contains unittest code and is using urllib2. http://blog.spikesource.com/pyhton_testcases.htm matt -- http://mail.python.org/ma

Re: Finding where to store application data portably

2005-09-20 Thread Peter Hansen
Tony Houghton wrote: > > I'm using pygame to write a game called Bombz which needs to save some > data in a directory associated with it. In Unix/Linux I'd probably use > "~/.bombz", in Windows something like > "C:\Documents And Settings\\Applicacation Data\Bombz". > > There are plenty of message

Re: python script under windows

2005-09-20 Thread chanchal
typo, the correct command is: c:\>python MyService.py -startup=auto install -- http://mail.python.org/mailman/listinfo/python-list

Re: Question about smtplib, and mail servers in general.

2005-09-20 Thread Peter Hansen
Steve Holden wrote: > Peter Hansen wrote: >> In any case, unless the mail server will allow "relaying", which most >> don't these days (to prevent spamming), then it won't work the way you >> are hoping unless *all* the 100 addresses are local ones, to be >> delivered to users on the server you

Re: re.search experts needed on fqdn stripping..

2005-09-20 Thread rh0dium
OK Duh.. After thinking about it for a bit longer i simplified it but still have the same problem.. e =[] hosts = [ "poundcake.fpdn.com", "scorpion.fpdn.com", "loghost", "scorpian", "localhost", "lan" ] ignore = [ "localhost", "loghost", "timehost", "mailhost" ] for host in hosts: sn = re.s

Re: PyInstaller 1.0 - build single-file distributions for your Python programs

2005-09-20 Thread Giovanni Bajo
Giovanni Bajo wrote: > PyInstaller 1.0 is out: > http://pyinstaller.hpcf.upr.edu/pyinstaller For the logs, the correct URL is: http://pyinstaller.hpcf.upr.edu The other was a redirector which is no longer valid after a site maintenance session. I apologize for the inconvenience. -- Giovanni Ba

Re: Getting tired with py2exe

2005-09-20 Thread Giovanni Bajo
Bugs wrote: > Whereas py2exe can create an executable that NEVER writes any files > out to the filesystem, they are loaded instead directly from the > executable? > If so then that's a major difference and IMHO the py2exe method is > superior. To do this, py2exe uses a manually rewritten version

re.search experts needed on fqdn stripping..

2005-09-20 Thread rh0dium
Hi all, Ok I have a list hosts = [ "poundcake.fqdn.com", "scorpion.fqdn.com", "loghost", "scorpian", "localhost", "lan", "lan.fpdn.com" ] Assumptions: scorpian.fqdn.com == scorpian lan == lan.fqdn.com I want pear this list down based on the following: 1. ignore loghost, localhost, timehost, ma

Re: Getting tired with py2exe

2005-09-20 Thread Giovanni Bajo
Simon John wrote: > And if they want to use UPX, well that's up to them, but I've had some > problems with it and don't particularly like the thought of runtime > decompression and the two process thing. UPX compression is totally optional, and it is even disabled by default. For the log, I have

Re: Getting tired with py2exe

2005-09-20 Thread Giovanni Bajo
James Stroud wrote: >> What about PyInstaller that was announced the other day? The feature >> list looks great, and it appears the developers intend to maintain >> and enhance the program indefinitely. > ... >> >> http://pyinstaller.hpcf.upr.edu/pyinstaller > > That's one short "indefinitely": >

Re: are variables local only to try/except blocks?

2005-09-20 Thread Barry Searle
in the case of nested try/except code generation, your suggestion could cause a problem: # 1) this is fine: doInitialStuff  # With no exceptions excp = 0 try:     doLotsHere() except aParticularSetOfExceptions:     excp = 1 if excp:     handleException() doLotsMoreStuff() # 2) nested code gen

Re: Getting tired with py2exe

2005-09-20 Thread Scott David Daniels
Steve Holden wrote: > Thomas Heller wrote: > >> I'm slowly getting tired maintaining py2exe. It is far from perfect, >> although it has interesting features (I would say). > Ignoring all the philosophical questions I'd like to thank you for all > your hard work on py2exe over the years, which h

Re: Finding where to store application data portably

2005-09-20 Thread Robert Kern
Tony Houghton wrote: > I'm using pygame to write a game called Bombz which needs to save some > data in a directory associated with it. In Unix/Linux I'd probably use > "~/.bombz", in Windows something like > "C:\Documents And Settings\\Applicacation Data\Bombz". > > There are plenty of messages i

Re: [Py2exe-users] Re: Getting tired with py2exe

2005-09-20 Thread Bob Ippolito
On Sep 20, 2005, at 5:44 PM, Steve Holden wrote: > Thomas Heller wrote: > >> I'm slowly getting tired maintaining py2exe. It is far from perfect, >> although it has interesting features (I would say). >> The problem, apart from the work, is that it is good enough for me >> - I >> can do everyt

Re: Crypto.Cipher.ARC4, bust or me doing something wrong?

2005-09-20 Thread Michael J. Fromberger
In article <[EMAIL PROTECTED]>, Michael Sparks <[EMAIL PROTECTED]> wrote: > Hi, > > > I suspect this is a bug with AMK's Crypto package from > http://www.amk.ca/python/code/crypto , but want to > check to see if I'm being dumb before posting a bug > report. > > I'm looking at using this librar

Re: ddd or eclipse with mod_python

2005-09-20 Thread Steve Holden
Trent Mick wrote: > [Sakcee wrote] > >>Hi >> >>I am using mod_python for web development, I am in need of some ide , >>can i use ddd or eclipse with pydev with mod_python. >> >>can these ide's handle requests from mod_python and run server side >>scripts > > > You should be able to debug with K

Finding where to store application data portably

2005-09-20 Thread Tony Houghton
I'm using pygame to write a game called Bombz which needs to save some data in a directory associated with it. In Unix/Linux I'd probably use "~/.bombz", in Windows something like "C:\Documents And Settings\\Applicacation Data\Bombz". There are plenty of messages in the archives for this group ab

Re: MySQL & Python

2005-09-20 Thread Steve Holden
Ed Hotchkiss wrote: > Just migrating now from ASP/to MySQL and Python. > > I am trying to create a simple script to access a MySQL DB. > The Module for MySQL looks very easy, however I do not understand one > thing ... > > In ASP, you can just create a new DB with Access. In MySQL, how do I >

Re: Getting tired with py2exe

2005-09-20 Thread Steve Holden
Thomas Heller wrote: > I'm slowly getting tired maintaining py2exe. It is far from perfect, > although it has interesting features (I would say). > > The problem, apart from the work, is that it is good enough for me - I > can do everything that I need with it. But I assume I use far less > liba

Re: functional or object-oriented?

2005-09-20 Thread beza1e1
I really should take a look at this CLOS, i think ... thanks for the background information. Do you think FP Python is appropriate or just syntactic sugar of a very sophisticated kind? Now i switching back to OO a bit, but the difference between data.value and date['value'] is not really in Python

Re: Object default value

2005-09-20 Thread Scott David Daniels
James Stroud wrote: > I think you want to overload the assignment operator here. I'm not sure that > is allowed in python (I've never seen it done) > But I don't think assignment overloading is allowed in python: Exactly correct. Assignment is an operation on a namespace using a new value, a

Re: Object default value

2005-09-20 Thread ago
In fact even IF I could get a default value to work as mentioned, then I would be creating potential name conflicts between the DataAttribute.DefaultValue and the other metadata. I.e. when calling obj.attr.x I could refer to DataAttribute.x or DataAttribute.value.x. It's a no go. -- http://mail.p

Re: Best Encryption for Python Client/Server

2005-09-20 Thread Ed Hotchkiss
hah :P awesome, I will be busy this week! -edward  On 20 Sep 2005 14:23:10 -0700, Paul Rubin <"http://phr.cx"@nospam.invalid> wrote: Steve Holden <[EMAIL PROTECTED]> writes:> > Here's my mission: simple P2P class with encryption of whatever type > > of file is being sent, and authentication via enc

Re: are variables local only to try/except blocks?

2005-09-20 Thread Steve Holden
Barry Searle wrote: > > in the case of nested try/except code generation, > your suggestion could cause a problem: > # 1) this is fine: > doInitialStuff # With no exceptions > excp = 0 > try: > doLotsHere() > except aParticularSetOfExceptions: > excp = 1 > if excp: > handleException()

Re: Best Encryption for Python Client/Server

2005-09-20 Thread Paul Rubin
Steve Holden <[EMAIL PROTECTED]> writes: > > Here's my mission: simple P2P class with encryption of whatever type > > of file is being sent, and authentication via encrypted user > > name/password. So any type of file or login being sent over the net, > > any communication between the scripts shoul

Re: Getting tired with py2exe

2005-09-20 Thread Bugs
Thomas Heller wrote: [snip] > > Is anyone interested in taking over the maintainance, documentation, and > further development? > > Should py2exe be integrated into another, larger, package? Pywin32 > comes to mind, but also Philip Eby's setuptools (that's why I post to > distutils-sig as well).

Re: Getting tired with py2exe

2005-09-20 Thread Bugs
Steve M wrote: [snip] > * Dual packaging mode: >* Single directory: build a directory containing an executable plus > all > the external binary modules (.dll, .pyd, .so) used by the program. >* Single file: build a single executable file, totally > self-contained, > which runs without any

Re: Object default value

2005-09-20 Thread ago
> Is it safe to assume that the OP's next question will be how to invoke functions without the ()'s? To save you the trouble, then answer is 'no'. You probably nailed it, thanks for the answer. I suspected that was the case. I think I'll use __call__ + __set__ -- http://mail.python.org/mailman/

Re: Best Encryption for Python Client/Server

2005-09-20 Thread Steve Holden
Ed Hotchkiss wrote: > No worries, I apologize for my outburst. I will check out the viability > of using an SSH module, or using pyCrypto or something to encrypt the data. > Please don't apologise. It's one of c.l.py's charms that an exchange such as the one you had with Robert Kern results in

Re: Object default value

2005-09-20 Thread ago
I am trying to write a generic DataAttribute class in order to simplify access to object attributes and attached attribute-metadata for end users with little programming experience. Requirement 1: accessing the "default" value should be easy (using assignment operator, via descriptors like __get__

Re: Classes derived from dict and eval

2005-09-20 Thread Robert Kern
Jeremy Sanders wrote: > Hi - > > I'm trying to subclass a dict which is used as the globals environment of > an eval expression. For instance: > > class Foo(dict): > def __init__(self): > self.update(globals()) > self['val'] = 42 > > def __getitem__(self,

Re: are variables local only to try/except blocks?

2005-09-20 Thread Barry Searle
in the case of nested try/except code generation, your suggestion could cause a problem: # 1) this is fine: doInitialStuff  # With no exceptions excp = 0 try:     doLotsHere() except aParticularSetOfExceptions:     excp = 1 if excp:     handleException() doLotsMoreStuff() # 2) nested code gen

Re: Object default value

2005-09-20 Thread Diez B. Roggisch
ago wrote: > Is it possible to have a default value associated python objects? I.e. > to flag an attribute in such a way that the assignment operator for the > object returns the default attribute instead of the object itself, but > calls to other object attributes are properly resolved? (I don't t

Re: Line Scan and Removal

2005-09-20 Thread D.Hering
Take a look at ADaM (& ESML for unifying format) and see if some of their image processing tools can help you. http://datamining.itsc.uah.edu/adam/documentation.html Dieter -- http://mail.python.org/mailman/listinfo/python-list

Re: Line Scan and Removal

2005-09-20 Thread Paul McGuire
"PyPK" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > i I need some help on some problem I am trying to think of. > > are there any algorithms available to do the following If not, any > ideas?: > > I would like to Identify any lines of any orientation and width in an > Image and > r

Re: Object default value

2005-09-20 Thread Paul McGuire
> I think you want to overload the assignment operator here. I'm not sure that > is allowed in python (I've never seen it done). You can't because assignment is not an operator in Python. Is it safe to assume that the OP's next question will be how to invoke functions without the ()'s? To save y

Classes derived from dict and eval

2005-09-20 Thread Jeremy Sanders
Hi - I'm trying to subclass a dict which is used as the globals environment of an eval expression. For instance: class Foo(dict): def __init__(self): self.update(globals()) self['val'] = 42 def __getitem__(self, item): # this doesn't get called fr

Re: Object default value

2005-09-20 Thread James Stroud
See this recent clpy thread: http://www.thescripts.com/forum/thread19253.html On Tuesday 20 September 2005 13:05, ago wrote: > The print statement was only for illustrative purposes, when calling > varx=myobj I need to receive obj.x as opposed to the instance of obj, > but I also need to call var

Re: Getting tired with py2exe

2005-09-20 Thread Simon John
James Stroud wrote: [snip] > > http://pyinstaller.hpcf.upr.edu/pyinstaller > That's one short "indefinitely": > > Not Found > The requested URL /pyinstaller was not found on this server. > Apache/2.0.53 (Fedora) Server at pyinstaller.hpcf.upr.edu Port 80 It seems that the URL is http://pyinstall

Re: Object default value

2005-09-20 Thread James Stroud
I think you want to overload the assignment operator here. I'm not sure that is allowed in python (I've never seen it done). You can overload the equality, lt, gt, le, ge operators (==, <, ...) such that class Thing: x = 5 def __str__(self): return str(self.x) def __eq__(self, other):

Re: are variables local only to try/except blocks?

2005-09-20 Thread Steve Holden
I am taking the liberty of copying my response to your off-list reply back to the c.l.py community. (and I don't normally top-post except in politeness to other top-posters :-) Seems to me you could avoid many of your problems by simply re-jigging your template to read doInitialStuff # With p

Re: Object default value

2005-09-20 Thread ago
The print statement was only for illustrative purposes, when calling varx=myobj I need to receive obj.x as opposed to the instance of obj, but I also need to call vary=myobj.y. Something like that exists for com objects/VB, for instance an excel range object uses value as the default attribute, so

Re: Object default value

2005-09-20 Thread Larry Bates
The prints can be done by defining an __str__ method on the class, but I don't think you will get the type(obj) to work the way you want. class obj(object): __default=1 y=2 def __str__(self): return str(self.__default) myobj=obj() print "myobj=", myobj print "myobj.y=", myobj

Line Scan and Removal

2005-09-20 Thread PyPK
i I need some help on some problem I am trying to think of. are there any algorithms available to do the following If not, any ideas?: I would like to Identify any lines of any orientation and width in an Image and remove them from the Image. Basically I would like to scan the entire Image for li

Re: Question about smtplib, and mail servers in general.

2005-09-20 Thread Mike Meyer
Peter Hansen <[EMAIL PROTECTED]> writes: > Daniel Dittmar wrote: >> Chris Dewin wrote: >>> Hi. I've been thinking about using smtplib to run a mailing list >>> from my website. >>> >>> s = smtplib.SMTP("server") >>> s.sendmail(fromaddress, toaddresess, msg) >>> >>> I know that in this instance, the

Re: Monitoring a directory for changes

2005-09-20 Thread Martin v. Löwis
Florian Lindner wrote: > is there a python lib (preferably in the std lib) to monitor a directory for > changes (adding / deleting files) for Linux 2.6? I recommend to use the python-fam library: sf.net/projects/python-fam. On Debian, just install the python-fam package. Regards, Martin -- http:

Object default value

2005-09-20 Thread ago
Is it possible to have a default value associated python objects? I.e. to flag an attribute in such a way that the assignment operator for the object returns the default attribute instead of the object itself, but calls to other object attributes are properly resolved? (I don't think so, but I am n

Re: Simpler transition to PEP 3000 "Unicode only strings"?

2005-09-20 Thread Martin v. Löwis
Petr Prikryl wrote: > Would this break any existing code? Yes, it would break code which currently contains # -*- coding: utf-8 -*- and also contains byte string literals. Notice that there is an alternative form of the UTF-8 declaration: if the Python file starts with an UTF-8 signature (BOM),

Re: Release of Shed Skin 0.0.2: Easy Windows/OSX Installation

2005-09-20 Thread Michael Sparks
Mark Dufour wrote: > Shed Skin is an experimental Python-to-C++ compiler. Along with > GNU/Linux, version 0.0.2 should now also install easily under Windows > 2000/XP and OSX. Please give it a try and let me know if there are > still some problems. ss.py writes a make file, but unfortunately doesn

Re: Getting tired with py2exe

2005-09-20 Thread James Stroud
On Tuesday 20 September 2005 11:43, Steve M wrote: > What about PyInstaller that was announced the other day? The feature > list looks great, and it appears the developers intend to maintain and > enhance the program indefinitely. ... > > http://pyinstaller.hpcf.upr.edu/pyinstaller That's one shor

Re: Getting tired with py2exe

2005-09-20 Thread Steve M
What about PyInstaller that was announced the other day? The feature list looks great, and it appears the developers intend to maintain and enhance the program indefinitely. http://groups.google.com/group/comp.lang.python/browse_thread/thread/b487056b7b1f99bc/583da383c1749d9f?q=ANN&rnum=1&hl=en#58

Re: Would you pls tell me a tool to step debug python program?

2005-09-20 Thread SPE - Stani's Python Editor
SPE ships with a debugger as well: http://pythonide.stani.be It's free & open source. Johnny Lee wrote: > Hi, >I've met a problem to understand the code at hand. And I wonder > whether there is any useful tools to provide me a way of step debug? > Just like the F10 in VC... > > Thanks for you

Re: Monitoring a directory for changes

2005-09-20 Thread Reinhold Birkenfeld
Florian Lindner wrote: > Hello, > is there a python lib (preferably in the std lib) to monitor a directory for > changes (adding / deleting files) for Linux 2.6? There isn't, but if you don't want to use dnotify/inotify, it is trivial to implement: use a timer and check the listdir() return value.

Re: Organising a python project

2005-09-20 Thread Ron Adam
[EMAIL PROTECTED] wrote: > Dear all, > > Can anyone point me to a resource that describes the best way of > organising a python project? My project (gausssum.sf.net) is based > around a class, and has a GUI that allows 'easy-access' to the methods > of the class. What is the best or typical direc

Re: vendor-packages directory

2005-09-20 Thread Terry Reedy
"Rich Burridge" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I work in the Accessibility Program Office at Sun Microsystems. I'm > part of a team that is using Python to create a screen reader called > Orca, that'll help blind people (and people with low vision) have > access to

Monitoring a directory for changes

2005-09-20 Thread Florian Lindner
Hello, is there a python lib (preferably in the std lib) to monitor a directory for changes (adding / deleting files) for Linux 2.6? Thanks, Florian -- http://mail.python.org/mailman/listinfo/python-list

Re: mailing from with python

2005-09-20 Thread Tim Williams (gmail)
On 20/09/05, M.N.A.Smadi <[EMAIL PROTECTED]> wrote: > hi; > if i want to send a mail message using the "mail" client on a machine > that has smtp protocol is there an easy way (i.e. like bash where you > would just type mail -s SUBJECT message RECIPIENT) to do it from a > python script? Any mail c

Re: Crypto.Cipher.ARC4, bust or me doing something wrong?

2005-09-20 Thread Michael Sparks
Jp Calderone wrote: > On Tue, 20 Sep 2005 16:08:19 +0100, Michael Sparks <[EMAIL PROTECTED]> > wrote: >>Hi, >> >> >>I suspect this is a bug with AMK's Crypto package from >>http://www.amk.ca/python/code/crypto , but want to >>check to see if I'm being dumb before posting a bug >>report. >> >>I'm l

Re: Two questions on PyDev for Eclipse

2005-09-20 Thread Fabio Zadrozny
Fabio Zadrozny wrote: >Hi, > >for 2: as far as I know, eclipse must have 'local', or at least >'emulated' local access, so, if you have samba access, it should do what >you want. > >for 1... I use it a LOT without any problems for some really big >projects ( with about 2.000 python modules -- n

mailing from with python

2005-09-20 Thread M.N.A.Smadi
hi; if i want to send a mail message using the "mail" client on a machine that has smtp protocol is there an easy way (i.e. like bash where you would just type mail -s SUBJECT message RECIPIENT) to do it from a python script? thanks moe smadi -- http://mail.python.org/mailman/listinfo/python-l

How to Handle exceptions using OpenerDirector

2005-09-20 Thread swarna pulavarty
Hi all,    I am trying to figure out a way to handle exceptions for error code 4xx , and 5xx 's . I came to know that these can be handled using OpenerDirector class and urllib2 module in Python. I could'nt find the right syntax or examples of how to use these Handlers.   Any help is greatly a

Re: vendor-packages directory

2005-09-20 Thread Steve Holden
Rich: You made it to the States, then? How ironic, I've just been working in VA for nine years, but recently returned to Scotland and ended up living in Linlithgow, known to most Sun long-timers. Hope mp is still providing good service. Rich Burridge wrote: > Hi, > > I work in the Accessibili

Using PyGILState_Ensure

2005-09-20 Thread Ralf Riemer
Hi, I have some questions concerning the global interpreter lock: I am working with Windows XP Professional Version 5.1, Python version 2.4.1 and Microsoft Visual C++.Net Version 7.1. >From Python I call a function from a C++ dll using calldll.call_foreign_function. This C++ function does a callb

Re: Alternatives to Stackless Python?

2005-09-20 Thread Stephan Diehl
On Tue, 20 Sep 2005 08:50:44 -0700, [EMAIL PROTECTED] wrote: > After recently getting excited about the possibilities that stackless > python has to offer > (http://harkal.sylphis3d.com/2005/08/10/multithreaded-game-scripting-with-stackless-python/) > and then discovering that the most recent vers

Re: Best Encryption for Python Client/Server

2005-09-20 Thread Robert Kern
Ed Hotchkiss wrote: > No worries, I apologize for my outburst. I will check out the viability > of using an SSH module, or using pyCrypto or something to encrypt the data. > > Here's my mission: simple P2P class with encryption of whatever type of > file is being sent, and authentication via encr

Re: vendor-packages directory

2005-09-20 Thread Michael Ekstrand
On Tuesday 20 September 2005 10:22, Rich Burridge wrote: > [lots of well-written and logical information about a proposed > vendor-packages directory snipped] > Is this something that would be considered for a future Python > release? +1 to that from me... it looks like good idea - have you submi

Getting tired with py2exe

2005-09-20 Thread Thomas Heller
I'm slowly getting tired maintaining py2exe. It is far from perfect, although it has interesting features (I would say). The problem, apart from the work, is that it is good enough for me - I can do everything that I need with it. But I assume I use far less libaries than other Python programmer

Re: How to write this iterator?

2005-09-20 Thread George Sakkis
"Jordan Rastrick" <[EMAIL PROTECTED]> wrote: > I've written this kind of iterator before, using collections.deque, > which personally I find a little more elegant than the list based > approach: Nice, that's *much* more elegant and simple ! Here's the class-based version with append; note that i

Re: Where is my exception

2005-09-20 Thread Laszlo Zsolt Nagy
>The program prints out "point 1" but it does not print "point 2". What >am I missing? > > Sorry from all. I should have been looked at the processor before I posted. There is no exception. It was an infinite loop inside the try block, but it was called from an event handler. I did not notice

Re: Crypto.Cipher.ARC4, bust or me doing something wrong?

2005-09-20 Thread Jp Calderone
On Tue, 20 Sep 2005 16:08:19 +0100, Michael Sparks <[EMAIL PROTECTED]> wrote: >Hi, > > >I suspect this is a bug with AMK's Crypto package from >http://www.amk.ca/python/code/crypto , but want to >check to see if I'm being dumb before posting a bug >report. > >I'm looking at using this library and t

Crypto.Cipher.ARC4, bust or me doing something wrong?

2005-09-20 Thread Michael Sparks
Hi, I suspect this is a bug with AMK's Crypto package from http://www.amk.ca/python/code/crypto , but want to check to see if I'm being dumb before posting a bug report. I'm looking at using this library and to familiarise myself writing small tests with each of the ciphers. When I hit Crypto.Ci

Re: testing a website from python

2005-09-20 Thread Laszlo Zsolt Nagy
M.N.A.Smadi wrote: >hi; > >I just want to test that a given website is up or not from a python >script. I thought of using wget as an os command. Any better ideas? > > urllib http://www.python.org/doc/current/lib/module-urllib.html If you only want to test if the HTTP port is open or not:

testing a website from python

2005-09-20 Thread M.N.A.Smadi
hi; I just want to test that a given website is up or not from a python script. I thought of using wget as an os command. Any better ideas? thanks moe smadi -- http://mail.python.org/mailman/listinfo/python-list

Re: QCheckListItem signal question

2005-09-20 Thread Artur M. Piwko
In the darkest hour on 20 Sep 2005 08:07:47 -0700, David Boddie <[EMAIL PROTECTED]> screamed: > You could connect the currentChanged() or clicked() signals in your > QListView to a slot in some other object (perhaps the parent of the > QListView). When the signal is emitted, you can examine the sta

Re: win32 service and time.sleep()

2005-09-20 Thread Steve Holden
rbt wrote: > I have a win32 service written in Python. It works well. It sends a > report of the status of the machine via email periodically. The one > problem I have is this... while trying to send an email, the script > loops until a send happens and then it breaks. Should it be unable to > send

Where is my exception

2005-09-20 Thread Laszlo Zsolt Nagy
I have this code in a wxWidgets program: class HtmlHintWindow(wx.Frame): def __init__(self,pos,hint,config): global _current_hint_window # Determine the size of the screen self.screensize = wx.ClientDisplayRect()[2:] # Calculate the size of the hint ;-)

Re: are variables local only to try/except blocks?

2005-09-20 Thread Steve Holden
BarrySearle wrote: > # Is this valid (or is excp local to try/except)? > try: > try: >doSomething1 >excp = 0 This block is problematic because excp won;t be set if doSomething1 raises an exception. > except: >excp = 1 > #endTry > if (_excp_): doSomething

Re: win32 service and time.sleep()

2005-09-20 Thread Laszlo Zsolt Nagy
rbt wrote: >I have a win32 service written in Python. It works well. It sends a >report of the status of the machine via email periodically. The one >problem I have is this... while trying to send an email, the script >loops until a send happens and then it breaks. Should it be unable to >send, it

Dr. Dobb's Python-URL! - weekly Python news and links (Sep 19)

2005-09-20 Thread Diez B. Roggisch
QOTW: "Python makes data-driven programming easy :-)" -- Kent "Python rewards abstraction." -- Alex Martelli As unicode becomes more and more prevalent, the issue of regular expressions matching unicode character sets occurs more often. A current thread has advice: http:

Alternatives to Stackless Python?

2005-09-20 Thread [EMAIL PROTECTED]
After recently getting excited about the possibilities that stackless python has to offer (http://harkal.sylphis3d.com/2005/08/10/multithreaded-game-scripting-with-stackless-python/) and then discovering that the most recent version of stackless available on stackless.com was for python 2.2 I am wo

Re: Two questions on PyDev for Eclipse

2005-09-20 Thread Fabio Zadrozny
Hi, for 2: as far as I know, eclipse must have 'local', or at least 'emulated' local access, so, if you have samba access, it should do what you want. for 1... I use it a LOT without any problems for some really big projects ( with about 2.000 python modules -- not counting the python install

Re: Python Doc Problem Example: os.path.split

2005-09-20 Thread Steve Holden
Peter Hansen wrote: > Diez B. Roggisch wrote: [...] >>But I stand by the nano-tube-narrow mind-set of Xah Lee. Besides his >>tourette syndrome he also is simply unwilling to read documentation if >>it is not what _he_ expects it to be. > > > It's interesting to note that c.l.p still manages to gi

  1   2   >