poplib.retr doens't flag message as read

2007-06-19 Thread EuGeNe Van den Bulke
Hi there, I am trying to use the poplib library to get emails using the retr method. The small program bellow works but the message aren't flagged as read which puzzles me. I believe the pop server is qmail 1.0.6 / vpopmail 5.2.1 and I am running the following script on Windows using Pyhton 2.

Re: poplib.retr doens't flag message as read

2007-06-20 Thread EuGeNe Van den Bulke
Gabriel Genellina wrote: > The POP protocol has no concept of "read" or "unread" messages; the LIST > command simply shows all existing messages. My mistake, I guess I was confused by the documentation retr( which) Retrieve whole message number which, and set its seen flag. Result is in form (

Re: ORM layer

2007-06-29 Thread EuGeNe Van den Bulke
David wrote: > I am looking for an ORM for Python that fulfills a few simple needs. * SQLObject * SQLAlchemy (+Elixir) * DejaVu There are probably others but these are the most commonly used AFAIK. EuGeNe -- http://www.3kwa.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Access to file dropped on .exe/.app icon

2007-04-22 Thread EuGeNe Van den Bulke
Martin wrote: > If i create an app using py2exe/py2app is there then a way on windows/ > mac to get access to a file dragged and dropped on to the .exe/.app > icon? > > Martin > I did something like that for a small program I wrote to learn more about Python Programming on Windows ... check it

EuroPython vs PyconUK

2007-04-26 Thread EuGeNe Van den Bulke
I do realize that the UK is not really part of Europe (no polemic :P) but I am nevertheless curious about the logic behind creating another major Python event in Europe. Wasn't EuroPython enough? Like many I am sure, I probably won't be able to attend both (and I really enjoyed the Geneva exper

Re: EuroPython vs PyconUK

2007-04-26 Thread EuGeNe Van den Bulke
Steve Holden wrote: > So by this reasoning there should have been no "Python UK" conference > for the last four years (in case you didn't know it ran as a track of > the C/C++ conference, but ths track has now broadened to include all > scripting languages). And what about the people who can't

Re: EuroPython vs PyconUK

2007-04-26 Thread EuGeNe Van den Bulke
Fuzzyman wrote: > I assume you have the same problem with the Italian one? Not so much because the official language of Pycon Uno Italy is Italian so I don't feel too concerned (unfortunately my Italian is not quite good enough). > Seriously though, it is *great* to see the UK Python scene flou

Re: EuroPython vs PyconUK

2007-04-26 Thread EuGeNe Van den Bulke
Alex Martelli wrote: > I like the kudos, thanks!, but I'm not quite sure what you're saying > about my travel plans... just to clarify, once again I'll have to miss > EuroPython _and_ PythonUK, two events I attended most assiduously when I > was living in Europe (but then, for two years running I'v

Re: EuroPython vs PyconUK

2007-04-26 Thread EuGeNe Van den Bulke
Michele Simionato wrote: > I don't see the problem. In my view EuroPython is the big event in > Europe. If you can > go to only one conference and you have the possibility to travel to > Vilnius, then go to EuroPython. > The national conferences are of interest primarily for people of that > nati

base64 and unicode

2007-05-04 Thread EuGeNe Van den Bulke
Hi, I am trying to convert the file hebrew.b64 attached into hebrew.lang (text file usable by Inline Search for localization purposes. >>> import base64 >>> base64.decode(file("hebrew.b64","r"),file("hebrew.lang","w")) It runs but the result is not corre

Re: base64 and unicode

2007-05-04 Thread EuGeNe Van den Bulke
Duncan Booth wrote: > However, the decoded text looks as though it is utf16 encoded so it should be > written as binary. i.e. > the output mode should be "wb". Thanks for the "wb" tip that works (see bellow). I guess it is experience based but how could you tell that it was utf16 encoded? > S

Re: PChess 0.9

2007-05-07 Thread Brian van den Broek
majeed rana said unto the world upon 05/07/2007 01:13 AM: > I want pchess 0.9 > I want a mansion and a yacht. Unlike you, google can't help me. Brian vdB -- http://mail.python.org/mailman/listinfo/python-list

Re: preferred windows text editor?

2007-05-09 Thread EuGeNe Van den Bulke
T. Crane wrote: > Right now I'm using Notepad++. What are other people using? > > trevis > > VIM here as well ... here we go again :P EuGeNe -- http://www.3kwa.com -- http://mail.python.org/mailman/listinfo/python-list

Re: TIFF to PDF

2007-05-21 Thread Brian van den Broek
Gabriel Genellina said unto the world upon 05/21/2007 07:01 AM: > En Mon, 21 May 2007 07:42:21 -0300, revuesbio <[EMAIL PROTECTED]> > escribió: > >> os.system('"C:\Program Files\GnuWin32\bin\tiff2pdf.exe" -o C:\test.pdf >> C:\test.TIF') > > \ is used as a escape character in strings. > Use eith

Re: TIFF to PDF

2007-05-21 Thread Brian van den Broek
Gabriel Genellina said unto the world upon 05/21/2007 10:12 AM: > En Mon, 21 May 2007 10:53:08 -0300, Brian van den Broek > <[EMAIL PROTECTED]> escribió: > >> Gabriel Genellina said unto the world upon 05/21/2007 07:01 AM: >>> En Mon, 21 May 2007 07:42:21 -030

Re: Inheritance

2007-05-22 Thread Brian van den Broek
HMS Surprise said unto the world upon 05/22/2007 02:40 PM: > I am trying to understand the 'if' statement and the exec statement in > the code below. I would like to add several common routines to this > class and then inherit it into a class in another file. This other > class would need to access

Re: Can I reference 1 instance of an object by more names ?

2007-05-22 Thread Brian van den Broek
Stef Mientki said unto the world upon 05/22/2007 07:44 PM: > hello, > > I'm trying to build a simple functional simulator for JAL (a Pascal-like > language for PICs). > My first action is to translate the JAL code into Python code. > The reason for this approach is that it simplifies the simulato

Re: Properties/Decorators [WAS: Can I reference 1 instance of an object by more names ? rephrase]

2007-05-23 Thread Brian van den Broek
Wildemar Wildenburger said unto the world upon 05/23/2007 08:43 AM: > Bruno Desthuilliers wrote: >> here's an example using a property: >> >> class cpu_ports(object): >> def __init__(self, value=0): >> self._d = value >> @apply >> def value(): >> def fset(self, value): >

Re: Properties/Decorators [WAS: Can I reference 1 instance of an object by more names ? rephrase]

2007-05-23 Thread Brian van den Broek
Peter Otten said unto the world upon 05/23/2007 01:32 PM: > Brian van den Broek wrote: >> Help on built-in function apply in module __builtin__: >> >> But: >> >> >>> [x for x in dir('__builtin__') if 'apply' in x] >> [

Re: webbrowser module bug?

2007-05-25 Thread Brian van den Broek
Ron Adam said unto the world upon 05/25/2007 12:28 PM: > [EMAIL PROTECTED] wrote: >> On May 24, 5:03 pm, Ron Adam <[EMAIL PROTECTED]> wrote: >>> Is anyone else having problems with the webbrowser module? >>> >>> Python 2.5.1c1 (release25-maint, Apr 12 2007, 21:00:25) >>> [GCC 4.1.2 (Ubuntu 4.1.2-0u

file / module / package - import problem

2007-05-30 Thread EuGeNe Van den Bulke
Hi there, I have a "problem" which could be a bad design on my behalf but I am not sure so ... I have a package WMI which contains a module hauteur.py which, when imported, load data from a file located in WMI/data/. In hauteur.py I call open('data/hauteur.yaml'). test.py WMI/ hauteur.py

Re: c[:]()

2007-05-30 Thread Brian van den Broek
Warren Stringer said unto the world upon 05/30/2007 05:31 PM: > Hmmm, this is for neither programmer nor computer; this is for a user. If I > wanted to write code for the benefit for the computer, I'd still be flipping > switches on a PDP-8. ;-) > > This is inconsistent: > > why does c[:][0]() w

Re: file / module / package - import problem

2007-05-31 Thread EuGeNe Van den Bulke
aspineux wrote: > import os.path > > file=open(os.path.join(os.path.dirname(__file__), 'hauteur.yaml')) Thanks that worked ;) -- http://mail.python.org/mailman/listinfo/python-list

Re: ActiveRecord for Python/MySQL

2007-08-26 Thread EuGeNe Van den Bulke
Devraj wrote: > My application uses MySQL as a backend and am using the MySQL/Python > bindings. Are there any libraries that provide a database abstraction > layer like Activerecords for Python?' SQLObject SQLAclhemy DejaVu Storm Google for Python ORM you may find more! EuGeNe -- http://www.3kw

python sqlite THREADSAFE?

2007-09-08 Thread EuGeNe Van den Bulke
Hi, Is the sqlite distributed with Python 2.5 compiled with the -DTHREADSAFE=1 flag? My gutt feeling is Windows (yes) MacOS/Linux (no) but ... If it is not on MacOS/Linux, how do I go about replacing the sqlite so file with a threadsafe sqlite? Thanks, EuGeNe -- http://www.3kwa.com -- http:

Re: tuples, index method, Python's design

2007-04-13 Thread Brian van den Broek
Antoon Pardon said unto the world upon 04/13/2007 02:46 AM: > On 2007-04-12, Steven D'Aprano <[EMAIL PROTECTED]> wrote: >> So much fuss over such a little thing... yes it would be nice if tuples >> grew an index method, but it isn't hard to work around the lack. > > Yes it is a little thing. Bu

doctests for interactive functions

2007-02-08 Thread Brian van den Broek
Hi all, I have a module of classes for getting input from the user that satisfies various constraints. For instance, one class is created with a menu of option, presents them to the user, and rejects any input other than a menu option; another ensures that the user's input is interpretable as

Re: doctests for interactive functions

2007-02-08 Thread Brian van den Broek
Ben Finney said unto the world upon 02/08/2007 03:03 PM: > Brian van den Broek <[EMAIL PROTECTED]> writes: > >> Since the classes are for getting input interactively, a >> straightforward use of doctest is not going to work. (The tests >> won't run automaticall

Re: doctests for interactive functions

2007-02-08 Thread Brian van den Broek
Neil Cerutti said unto the world upon 02/08/2007 02:25 PM: > On 2007-02-08, Brian van den Broek <[EMAIL PROTECTED]> wrote: >> All classes take an optional argument input_function that >> determines how the class instance gets its input. If this is >> not provided, it def

Re: Python Newbie

2007-02-08 Thread Brian van den Broek
spazziam said unto the world upon 02/08/2007 04:18 PM: > SyntaxError: invalid syntax > File "C:\Python23\vdrop2\final py\vdrop2.py", line 123 > def INIT_HIGHS(): > ^ > SyntaxError: invalid syntax > > Why would this come up? > Hi, Most likely, a previous line contains an unfinished s

Re: doctests for interactive functions

2007-02-09 Thread Brian van den Broek
Neil Cerutti said unto the world upon 02/09/2007 08:52 AM: > On 2007-02-08, Brian van den Broek <[EMAIL PROTECTED]> wrote: >> Can I run the rough structure of my code past you to see if it >> is in the vicinity of what you mean? (I have removed some >> details for s

Re: PYTHONPATH

2006-04-23 Thread Brian van den Broek
bruno at modulix said unto the world upon 20/04/06 08:38 AM: >>Can anyone help me to make my path persistant? > > > Just like any other environnement variable on your system. With most > distros, it will be something like adding the line: > > export PYTHONPATH="/a/possible/path;/another/one;/

Re: PYTHONPATH

2006-04-23 Thread Brian van den Broek
Edward Elliott said unto the world upon 23/04/06 04:28 PM: > Brian van den Broek wrote: > >>The suggestions above appear not to work for me: >> >>[EMAIL PROTECTED]:~$ cat /etc/profile | grep 'export PYTHONPATH' >>export PYTHONPATH="~/PythonFiles&quo

Re: PYTHONPATH

2006-04-24 Thread Brian van den Broek
Edward Elliott said unto the world upon 23/04/06 07:56 PM: > Brian van den Broek wrote: >>Only somewhat, as if I open a brand new shell: >> >>[EMAIL PROTECTED]:~$ python >> >>> from sys import path >> >>> path[0:3] >>['', 

RESOLVED Re: PYTHONPATH

2006-04-24 Thread Brian van den Broek
> either in /etc/profile (will be system-wide default) or ~/.bash_profile > (will be user-specific). and Edward Elliott said unto the world upon 23/04/06 07:56 PM: > Brian van den Broek wrote: >>So, it seems that I currently have to invoke '. .bash_profile' >>ma

Re: OOP / language design question

2006-04-26 Thread Brian van den Broek
Bruno Desthuilliers said unto the world upon 25/04/06 06:52 PM: > Duncan Booth a écrit : > >>bruno at modulix wrote: >> >> >> >>>class Base(object): >>> def __init__(self, arg1): >>> self.attr1 = arg1 >>> self.dothis() >>> >>> def dothis(self): >>> return self.attr1 >>> >>>class Derived(Base

Unusual reactions (Was: .Re: Using Loops to track user input)

2017-04-20 Thread Jan van den Broek
On 2017-04-20, Robert L. wrote: Two things: - There's a '.' in front of "Re". - There's no "References"-header in your messages, this may confuse some newsreaders. -- Jan v/d Broek balgl...@dds.nl -- https://mail.python.org/mailman/listinfo/python-list

Re: Rosetta: Zebra puzzle (2.)

2017-05-13 Thread Jan van den Broek
On 2017-05-13, Robert L. wrote: [Schnipp] > def build_permutations things > if block_given? > things.permutation.select{|x| yield x} > else > things.permutation.to_a > end > end I fail to recognize the Python-version. -- Jan v/d Broek balgl...@dds.nl -- https://mail.python.org/

Re: Rosetta: Zebra puzzle (2.)

2017-05-15 Thread Jan van den Broek
On 2017-05-15, jlada...@itu.edu wrote: > On Sunday, May 14, 2017 at 12:53:41 PM UTC-7, bream...@gmail.com wrote: > >> I report all of his posts on gg as hateful or violent content. > > I have been doing the same. Google, are you listening? Google hates Usenet. -- Jan v/d Broek balgl...@dds.nl -

Verace Hospitality Late Night Dinner

2010-03-02 Thread Sugar Dining Den and Social Club
Title: NYCLUBINFO INC Unsubscribe | Complain | Edit Profile | Confirm   31 Kimberly Drive East Northport NY 11731 -- http://mail.python.org/mailman/listinfo/python-list

<    1   2   3