On Tue, 11 May 2010 23:13:10 +1200, Lawrence D'Oliveiro wrote:
>> But the beauty is that Python is multi-paradigm ...
>
> The trouble with “multi-paradigm” is that it offends the zealots on
> all sides.
Is that how you view people who like languages to exhibit a degree of
consistency? Some peopl
On 5/11/2010 3:19 PM, MRAB wrote:
You usually want numbers to be right-aligned so that the decimal points
line up when writing a columns of them.
Yes. I'm not questioning the wisdom of the implementation,
just the documentation of it.
Thanks,
Alan
--
http://mail.python.org/mailman/listinfo/
On May 11, 5:24 am, Paul Boddie wrote:
> On 10 Mai, 17:01, Patrick Maupin wrote:
>
> > I'll be charitable and assume the fact that you can make that
> > statement without apparent guile merely means that you haven't read
> > the post I was referring to:
>
> >http://www.gnu.org/philosophy/why-not-
Back9 wrote:
On May 11, 3:20 pm, Chris Rebert wrote:
On Tue, May 11, 2010 at 12:08 PM, Back9 wrote:
On May 11, 3:06 pm, Back9 wrote:
When i try it, it complains about undefined self.
i don't know why.
TIA
Sorry
here is the what i meant
cla
On May 11, 5:34 am, Paul Boddie wrote:
> On 10 Mai, 20:36, Patrick Maupin wrote:
> > I've addressed this before. Aahz used a word in an accurate, but to
> > you, inflammatory, sense, but it's still accurate -- the man *would*
> > force you to pay for the chocolate if you took it.
>
> Yes, *if*
On May 11, 9:00 am, Paul Boddie wrote:
> On 11 Mai, 15:00, Lie Ryan wrote:
> > Come on, 99% of the projects released under GPL did so because they
> > don't want to learn much about the law; they just need to release it
> > under a certain license so their users have some legal certainty.
>
> Ye
On May 11, 6:18 am, Steven D'Aprano wrote:
> Last time I came home with chocolate, I tried that excuse on my wife. She
> didn't believe it for a second.
>
> Next time, I'll try claiming that I was obliged to eat the chocolate
> because of the GPL.
Good luck with that. Women can always see right
On 5/11/2010 3:19 PM, MRAB wrote:
Alan G Isaac wrote:
The documentation at
http://docs.python.org/py3k/library/string.html#format-specification-mini-language
'<' Forces the field to be left-aligned within the available space
(This is the default.)
The conflicting example::
>>> format(3.2,'10
> When will it install into system32?
When you install "for all users".
>> Did the upgrade inform you that it was an upgrade, or did it warn you
>> that you would overwrite the previous installation?
>>
> It warned me that there is a previous installation.
Hmm. You don't remember the exact m
On 5/11/2010 3:41 PM, Back9 wrote:
self._value will be instance variable
Then set it in the __init__ method. Read the tutorial and ref manual on
Python class statements, which are a bit different from what you might
be used to.
--
http://mail.python.org/mailman/listinfo/python-list
Martin,
If we install over an existing version of Python 2.6.5, will our PTH
files and site-packages be preserved?
Or do we need to back out our 3rd party packages, install Python 2.6.5
and then manually restore our 3rd party packages?
Thank you,
Malcolm
--
http://mail.python.org/mailman/listin
On 5/11/2010 3:28 PM, Donna Lane wrote:
I have downloaded Python and I'm a beginner in every sense.
Welcome. I hope you enjoy Python too.
> What I want to
know now is when I am in Idle and have made a syntax error how do I repair?
After the error I can't type in anything and I get this bing n
I'm unsure if this qualifies as a bug (it is also clearly user error) but I just
ran into a situation where open() was inadvertantly called on a False,
and I was somewhat surprised to see that this didn't bail horribly, but
rather hung forever. Here's some example sessions for python3.x and
python2
python help,
I'm open for suggestions.
I'm using py2exe to compile a working program.
The program runs and prints fine until I compile it with py2exe.
After compiling the program, it runs fine until it tries to import
the win32ui module, v2.6214.0.
Then, I get a windows error message:
Impo
On 05/11/2010 02:49 PM, kj wrote:
I want implement a function that walks through a directory tree
and performs an analsysis of all the subdirectories found. The
task has two essential requirements that, AFAICT, make it impossible
to use os.walk for this:
1. I need to be able to prune certain di
Tycho Andersen wrote:
> Terry Reedy wrote:
> > ... word[0:1] does the same thing. All Python programmers should learn to
> > use slicing to extract a char from a string that might be empty.
> > The method call of .startswith() will be slower, I am sure.
>
> Why? Isn't slicing just sugar for a met
En Tue, 11 May 2010 18:40:36 -0300, geremy condra
escribió:
I'm unsure if this qualifies as a bug (it is also clearly user error)
but I just
ran into a situation where open() was inadvertantly called on a False,
and I was somewhat surprised to see that this didn't bail horribly, but
rather
jim-on-linux wrote in news:mailman.74.1273614703.32709.python-l...@python.org
in comp.lang.python:
> python help,
>
> I'm open for suggestions.
>
> I'm using py2exe to compile a working program.
>
> The program runs and prints fine until I compile it with py2exe.
>
> After compiling the prog
Version 0.3.9 of the Python config module has been released.
What Does It Do?
The config module allows you to implement a hierarchical configuration
scheme with support for mappings and sequences, cross-references
between one part of the configuration and another, the ability to
f
On May 11, 4:37 pm, Terry Reedy wrote:
> On 5/11/2010 3:28 PM, Donna Lane wrote:
>
> > I have downloaded Python and I'm a beginner in every sense.
>
> Welcome. I hope you enjoy Python too.
>
> > What I want to> know now is when I am in Idle and have made a syntax error
> how do I repair?
> > Aft
In Tim Chase
writes:
>That said, the core source for os.walk() is a whole 23
>lines of code, it's easy enough to just clone it and add what you
>need...
Thanks, that was a good idea.
~K
--
http://mail.python.org/mailman/listinfo/python-list
I appreciate the help, it's working.
jim-on-linux
> jim-on-linux wrote in
> news:mailman.74.1273614703.32709.python-l...@python.org
>
> in comp.lang.python:
> > python help,
> >
> > I'm open for suggestions.
> >
> > I'm using py2exe to compile a working program.
> >
> > The program runs and
Nobody writes:
>> is called an "equation" rather than an "assignment". It declares "x is
>> equal to 3", rather than directing x to be set to 3. If someplace else in
>> the program you say "x = 4", that is an error, normally caught by the
>> compiler, since x cannot be equal to both 3 and 4.
>
>
On 5/11/2010 5:27 PM, pyt...@bdurham.com wrote:
Martin,
If we install over an existing version of Python 2.6.5, will our PTH
files and site-packages be preserved?
Or do we need to back out our 3rd party packages, install Python 2.6.5
and then manually restore our 3rd party packages?
In my exp
On 5/11/2010 3:49 PM, kj wrote:
I want implement a function that walks through a directory tree
and performs an analsysis of all the subdirectories found. The
task has two essential requirements that, AFAICT, make it impossible
to use os.walk for this:
1. I need to be able to prune certain d
Hi,
Hi,
DBus 1.3 supports passing file descriptor through dbus method call. So I am
writing a python test case to verify my interface. Can someone answer my
question: how to pass a file descriptor through python-dbus call? For example:
import os
m, s = os.openpty()
On 5/11/2010 6:01 PM, Bryan wrote:
Tycho Andersen wrote:
Terry Reedy wrote:
... word[0:1] does the same thing. All Python programmers should learn to
use slicing to extract a char from a string that might be empty.
The method call of .startswith() will be slower, I am sure.
Why? Isn't slic
On 5/11/2010 7:03 PM, Mensanator wrote:
On May 11, 4:37 pm, Terry Reedy wrote:
In the command line interpreter, you should be able to hit up
arrow and have the line above copied to the current entry line for
correction. In IDLE, this does not yet work,
It doesn't have to. Simply place the cu
In message
<973ca0fa-4a2f-4e3b-91b9-e38917885...@d27g2000yqc.googlegroups.com>,
Guillermo wrote:
> On May 11, 7:43 am, Lawrence D'Oliveiro
> wrote:
>
>> In message
>> <22cf35af-44d1-43fe-8b90-07f2c6545...@i10g2000yqh.googlegroups.com>,
>>
>> Guillermo wrote:
>>
>>> If you've ever missed it on Wi
05/11/2010 09:07 PM, Terry Reedy wrote:
PS: I never understood why os.walk does not support hooks for key
events during such a tree traversal.
Either 1) it is intentionally simple, with the expectation that people
would write there own code for more complicated uses or 2) no one has
submitted
On Tue, May 11, 2010 at 3:59 PM, kak...@gmail.com wrote:
> On May 11, 10:56 am, "kak...@gmail.com" wrote:
>> On May 11, 5:06 am, Kushal Kumaran
>> wrote:
>>
>>
>>
>> > On Mon, May 10, 2010 at 8:26 PM, kak...@gmail.com wrote:
>> > > On May 10, 10:22 am, Kushal Kumaran
>> > > wrote:
>> > >> On M
On 05/12/10 07:02, Patrick Maupin wrote:
> On May 11, 9:00 am, Paul Boddie wrote:
>> On 11 Mai, 15:00, Lie Ryan wrote:
>>> Come on, 99% of the projects released under GPL did so because they
>>> don't want to learn much about the law; they just need to release it
>>> under a certain license so t
> If we install over an existing version of Python 2.6.5, will our PTH
> files and site-packages be preserved?
>
> Or do we need to back out our 3rd party packages, install Python 2.6.5
> and then manually restore our 3rd party packages?
An upgrade installation will only replace the Python files,
I'd like to encode a string in base64, but I found a inconsistent of
two methods:
>>> 'aaa'.encode('base64')
'YWFh\n'
>>> import base64
>>> base64.b64encode('aaa')
'YWFh'
>>>
as you can see, the result of
'aaa'.encode('base64')
has a '\n' at the end, but the other method doesn't.
Why the incons
On May 10, 2:25 am, Stefan Behnel wrote:
> Stefan Behnel, 10.05.2010 08:54:
>
>
>
>
>
> > dasacc22, 08.05.2010 19:19:
> >> This is a simple question. I'm looking for the fastest way to
> >> calculate the leading whitespace (as a string, ie ' ').
>
> > Here is an (untested) Cython 0.13 solution:
>
Today I was doing a major re-write of a library I called yajl-py that
wraps the json 'sax-like' c-parser yajl, and decided I should look
into absract base classes since I knew they had been added to py26.
Truthfully, I was surprised when I found out that the BDFL accepted
this PEP, but hey were in
In article ,
Terry Reedy wrote:
>
>.startswith and .endswith are methods that wrap the special cases of
>slice at an end and compare to one value. There are not necessary, and
>save no keystrokes, but Guido obviously thought they added enough to
>more than balance the slight expansion of the l
En Wed, 12 May 2010 01:38:47 -0300, Hatem Nassrat
escribió:
1. To create a YajlContentHandler class that forces all sub-classers
to implement a certain set of methods. (Great, thats what ABC is for)
There is a certain set of mutually exclusive callbacks, i.e. if you
implement the first set y
On May 11, 9:32 pm, Terry Reedy wrote:
> On 5/11/2010 7:03 PM, Mensanator wrote:
>
> > On May 11, 4:37 pm, Terry Reedy wrote:
>
> >> In the command line interpreter, you should be able to hit up
> >> arrow and have the line above copied to the current entry line for
> >> correction. In IDLE, this
101 - 139 of 139 matches
Mail list logo