Paddy wrote:
> [EMAIL PROTECTED] wrote:
> > Paddy:
> > > Or do you mean the ability to choose between hardware supported float
> > > s? e.g. float and double precision?
> >
> > No, I mean just having the ability to ask the float (his attribute)
> > what are the max and min values it can represent,
[EMAIL PROTECTED] wrote:
> Paddy:
> > Or do you mean the ability to choose between hardware supported float
> > s? e.g. float and double precision?
>
> No, I mean just having the ability to ask the float (his attribute)
> what are the max and min values it can represent, etc.
>
> stop = float.max
Hi,
> I also recommend psycopg.
Any specific reasons to go for psycopg instead of PyGreSQL?
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
>
>sys.maxint gives the largest positive integer supported by Python's
>regular integer type. But maybe such attribute, with few others (they
>can be called min and max) can be given to int type itself.
>D is a very nice language, that I hope to see more used. It is copying
Gabriel Genellina <[EMAIL PROTECTED]> wrote:
> Hello
>
> Most authors talk about Java/C++, and describe patterns used as a
> workaround to their static class model; the dynamic nature of Python
> allows for trivial implementations in some cases.
> I've seen some design patterns examples on the
On 8/5/06, Neil Hodgson <[EMAIL PROTECTED]> wrote:
> While you can write a script, its quite easy to turn on POP and run
> a client side mail client like Thunderbird.
Good point, Neil. This is a very tempting option, I just wanted to
include it in a backup script rather than having to open up
Good stuff!
Since I'm only interested in spaces being my only whitespace it makes
sense for me to use "line.lstrip(whitespace)" in my script, thus
eliminating the "elif char == '\n':" statement.
Thanks,
Jim
Tim Chase wrote:
> > Hard to believe that lstrip() produces an empty string on lines with
>
Hi
I am trying to create a subclass of a python class, defined in python,
in C++, but I am having some problems. It all boils down to a problem
of finding the base class' type object and according to the PEP (253) I
would also need to figure out the size of the base class instance
structure, but I
"alex23" <[EMAIL PROTECTED]> wrote:
>Tim Roberts wrote:
>> What is your signature supposed to be? It looks like you are trying to
>> inject ANSI terminal escape sequences. The vast majority of Usenet
>> participants are now reading these articles through GUI newsreaders or
>> web-based readers w
Ritesh Raj Sarraf wrote:
> Bryan Olson on Saturday 05 Aug 2006 23:56 wrote:
>
> > You don't want "ziplock = threading.Lock()" in the body of
> > the function. It creates a new and different lock on every
> > execution. Your threads are all acquiring different locks.
> > To coordinate your threads,
Gregory Piñero:
> I was wondering what methods you experts
> would reccomend for this task?
While you can write a script, its quite easy to turn on POP and run
a client side mail client like Thunderbird.
Neil
--
http://mail.python.org/mailman/listinfo/python-list
Fredrik Lundh wrote:
> Chaos wrote:
>
> > I have tried PIL. Not only that, but the Image.eval function had no
> > success either. I did some tests and I found out that Image.eval only
> > called the function a certain number of times either 250, or 255.
> > Unless I can find a working example for
Janto Dreijer wrote:
> Janto Dreijer wrote:
> > John Henry wrote:
> > > Simon Forman wrote:
> > > > >
> > > > > False not in logflags
> > > > >
> > > >
> > > > Or, if your values aren't already bools
> > > >
> > > > False not in (bool(n) for n in logflags)
> > >
> > > Very intriguing use of "not in
On 5 Aug 2006 15:27:03 -0700, Simon Forman <[EMAIL PROTECTED]> wrote:
> Out of curiosity, why do you want to _backup_ a gmail account? (I use
> my gmail account to backup files and documents I never want to lose.)
> I could think of some reasons, but I'm wondering what yours are. : )
Here are a f
Gregory Piñero wrote:
> I was wondering what methods you experts would reccomend for this task?
>
> Here are the options I have come up with so far:
>
> 1. Build something with the poblib library
> (http://docs.python.org/lib/module-poplib.html)
> --Any pointers on doing this? How to I get poplib
On 2006-08-05 09:30:59, Antoon Pardon wrote:
>> But this means that C variables are not analog to Python variables,
>> [...]
>
> Yes they are.
Nobody so far has been able to create a simple table with analog operations
Python vs C that operates on C /variables/ (not dereferenced pointers) and
m
> Hard to believe that lstrip() produces an empty string on lines with
> just spaces and doesn't remove the '\n' with lines that have
> characters.
It's easy to understand that lstrip() is doing exactly what it's
supposed to. It evaluates from the left of your string,
discarding whitespace (sp
Tim Chase wrote:
> > Could somebody tell me why I need the "elif char == '\n'" in
> > the following code?
> >
> > This is required in order the pick up lines with just spaces
> > in them.
> > Why doesn't the "else:" statement pick this up?
>
> Following through with the below code:
>
> if the line
On Fri, 04 Aug 2006 14:36:28 GMT, John Salerno
<[EMAIL PROTECTED]> wrote:
>placid wrote:
>> [EMAIL PROTECTED] wrote:
>>> placid wrote:
Alas, all good arguments.
I rest my case.
>>> After you've just been proven wrong?
>>>
>>> I wouldn't want you for my lawyer.
>>
>> Aha, lucky i wo
Paddy:
> Or do you mean the ability to choose between hardware supported float
> s? e.g. float and double precision?
No, I mean just having the ability to ask the float (his attribute)
what are the max and min values it can represent, etc.
stop = float.max
...
I don't know any simple way to know
I just found this:
http://www.cs.princeton.edu/~dpw/popl/06/Tim-POPL.ppt
And thought of you... :-)
called "The Next Mainstream Programming Languages", Tim Sweeney of Epic
Games presents on problems that game writers see and muses on possible
solutions.
- Pad.
--
http://mail.python.org/mailman
[EMAIL PROTECTED] wrote:
> sys.maxint gives the largest positive integer supported by Python's
> regular integer type. But maybe such attribute, with few others (they
> can be called min and max) can be given to int type itself.
> D is a very nice language, that I hope to see more used. It is copy
On 2006-08-05, Fabian Braennstroem <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I want to get access to my abook address file with python.
> Does anyone have some python lines to achive this using
> curses? If not, maybe anybody has small python program doing
> it with a gui!?
You can just parse the abook
I was wondering what methods you experts would reccomend for this task?
Here are the options I have come up with so far:
1. Build something with the poblib library
(http://docs.python.org/lib/module-poplib.html)
--Any pointers on doing this? How to I get poplib to save messages in
a standard for
Bryan Olson on Saturday 05 Aug 2006 23:56 wrote:
> You don't want "ziplock = threading.Lock()" in the body of
> the function. It creates a new and different lock on every
> execution. Your threads are all acquiring different locks.
> To coordinate your threads, they need to be using the same
> loc
Ritesh Raj Sarraf wrote:
[...]
> I noticed that even though while one thread acquires the lock, the other
> threads
> don't respect the lock. In fact they just go ahead and execute the statements
> within the lock acquire statement. With this behavior, I'm ending up having a
> partially corrupted
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Alex Martelli) wrote:
> LaGuna <[EMAIL PROTECTED]> wrote:
>
> > Se si come?
> >
> > Ciao by Enzo
>
> Questo newsgroup preferisce l'inglese -- per favore, chiedi su
> it.comp.lang.python invece che qui.
>
> This newsgroup prefers English -- pl
Somebody on the Pywin32 list helped. The problem is that:
xlSel=xlSheet.Range("1:1,2:2,3:3").Select()
is wrong.
It should be:
xlSel=xlSheet.Range("1:1,2:2,3:3")
xlSel.Select()
Then I can do the rest.
And no, you don't want to do the xlSheet.Copy(). That copies the
entire workbook and you en
Hi,
I want to get access to my abook address file with python.
Does anyone have some python lines to achive this using
curses? If not, maybe anybody has small python program doing
it with a gui!?
Greetings!
Fabian
--
http://mail.python.org/mailman/listinfo/python-list
In article <[EMAIL PROTECTED]>,
"Simon Forman" <[EMAIL PROTECTED]> wrote:
...
> Python also concatenates adjacent strings, but the "real" newlines
> between your strings will need to be escaped (otherwise, because the
> newlines are statement separators, you will have one print statement
> follow
Bryan Olson on Saturday 05 Aug 2006 13:31 wrote:
>> Exactly. Only one thread can hold a lock at a time.
>
> In the code above, a form called a "critical section", we might
> think of a thread as holding the lock when it is between the
> acquire() and release(). But that's not really how Python's
Hi,
I am looking for a python email client for the terminal... something like
mutt; maybe, so powerfull ;-)
Would be nice, if anybody has an idea!
Greetings!
Fabian
--
http://mail.python.org/mailman/listinfo/python-list
Carsten Haese wrote:
> I'd suggest upgrading to the newest version of CSDK. Please let me know
> what happens after the upgrade.
That did the trick thanks very much.
--
http://mail.python.org/mailman/listinfo/python-list
<[EMAIL PROTECTED]> wrote in message
I presume you accidentally misdirected this to the wrong newsgroup.
Otherwise, it would be off-topic spam. In any case, you should learn how
to spell or use a spell-checker.
--
http://mail.python.org/mailman/listinfo/python-list
> I also recommend psycopg.
But make sure you use psycopg2
--
damjan
--
http://mail.python.org/mailman/listinfo/python-list
>> I didn't realize you could do shared hosting with mod_python, because
>> of the lack of security barriers between Python objects (i.e. someone
>> else's application could reach into yours). You really need a
>> separate interpreter per user.
>
> mod_python uses sub-interpreters - can be per vi
It seems as though just about all of those would be rarely, if ever,
used by the vast majority of programmers.
Plus, python already handles the two most important (NaN and complex)
well.
--
http://mail.python.org/mailman/listinfo/python-list
On 2006-08-04, Gerhard Fiedler <[EMAIL PROTECTED]> wrote:
> On 2006-08-04 15:21:52, Dennis Lee Bieber wrote:
>
>> On Fri, 4 Aug 2006 14:09:15 -0300, Gerhard Fiedler <[EMAIL PROTECTED]>
>> declaimed the following in comp.lang.python:
>>
>>> Python === C
>>> Textual representation a === Address oper
Hi Fabio,Thanks for your quick response! I was able to solve this. It seems I
still wasn't using the right file; however, I didn't expect that Ineeded a 12 KB Unix executable. It didn't seem like the right file tome before.I've had one other report like that, so, I'm making that error more explicit
Janto Dreijer wrote:
> John Henry wrote:
> > Simon Forman wrote:
> > > >
> > > > False not in logflags
> > > >
> > >
> > > Or, if your values aren't already bools
> > >
> > > False not in (bool(n) for n in logflags)
> >
> > Very intriguing use of "not in"...
>
> Is there a reason why you didn't wr
sys.maxint gives the largest positive integer supported by Python's
regular integer type. But maybe such attribute, with few others (they
can be called min and max) can be given to int type itself.
D is a very nice language, that I hope to see more used. It is copying
lot of things from Python. D F
John Henry wrote:
> Simon Forman wrote:
> > >
> > > False not in logflags
> > >
> >
> > Or, if your values aren't already bools
> >
> > False not in (bool(n) for n in logflags)
>
> Very intriguing use of "not in"...
Is there a reason why you didn't write
True in (bool(n) for n in logflags)
--
h
On 2006-08-05 02:02:03, Dennis Lee Bieber wrote:
> I've not disagreed with you, but wanted to correct the
> associations... It is others who may disagree...
I know. It's just that your explicit analogy made this better visible, so I
wanted to add that to it. But I guess this thing is gettin
"drodrig" <[EMAIL PROTECTED]> wrote:
(top posting fixed)
| H J van Rooyen wrote:
| > "drodrig" <[EMAIL PROTECTED]>
| >
| >
| > | My apologies if this question has been asked an answered.
| > |
| > | I am looking for a tkinter grid control or enhanced listbox that can
| > | act as a "receipt" f
"Dennis Lee Bieber" <[EMAIL PROTECTED]> wrote:
8<--
| There may be something in-between. IFF this is to be used strictly
| on an internal LAN with uniform architecture (all Linux or all WinXP)
| for the client machines. You'd have to set up something so a reboot
no s
Gerhard Fiedler wrote:
>There's no Python equivalent to "int*p=345; *p++;".
Sure there is:
os.kill(os.getpid(), signal.SIGSEGV)
:)
--
http://mail.python.org/mailman/listinfo/python-list
On 27 July 2006, Tim Chase wrote:
> A couple of hopefully short (interrelated) questions:
>
> 1) is there a way to suppress the banner when starting Python
> interactively? [...]
>
> 2) is there a way to change the two prompts from ">>>" and "..."
> to other options? [...]
I noticed that the f
thanks to Simon Forman,
his solution worked, the key value pairs were entered the wrong way
round in the dictionary...Doh!
--
Dr. Alistair King
Research Chemist,
Laboratory of Organic Chemistry,
Department of Chemistry,
Faculty of Science
P.O. Box 55 (A.I. Virtasen aukio 1)
FIN-00014 University
HJi all,
In the short period of time since I introduced SE. the feedback has been
overwhelmingly postive. Thank you all! I am still cleaning
up minor functional imperfections as I encounter them working out solutions to
posted problems. So the other day I discovered that
version 2.1 failed to pr
Can it be done? I hate tcl.
Is there someway I could parse all irc events so they can be handled by
python's irclib?
--
http://mail.python.org/mailman/listinfo/python-list
Carl Banks wrote:
> Ritesh Raj Sarraf wrote:
>> Carl Banks wrote:
>>> Then change the zipping part of download_from_web to acquire and
>>> release this lock; do zipfile operations only between them.
>>>
>>> ziplock.acquire()
>>> try:
>>> do_all_zipfile_stuff_here()
>>> finally:
>>> ziplock.
51 matches
Mail list logo