On Nov 21, 2008, at 7:02 PM, Steven D'Aprano wrote:
I have a function that takes a reference to a class,
Hmmm... how do you do that from Python code? The simplest way I can
think
of is to extract the name of the class, and then pass the name as a
reference to the class, and hope it hasn't b
On Nov 22, 2008, at 4:08 AM, Aaron Brady wrote:
Furthermore, to apply c-b-v to Python, you have to
introduce the concept of pointers, which is ostensibly non-native for
human programmers.
Not necessarily "pointers" per se -- any type of object references
will do, and yes, Python has those in
Il Mon, 17 Nov 2008 01:35:19 +, Matthew Wilson ha scritto:
> I want to write some middleware to notice when the inner app returns a
> 500 status code. I'm sure there are already sophisticated loggers that
> do this sort of thing, but I'm using this as a learning exercise.
>
> Right now, I wr
I'm running Python 2.5.2 on Ubuntu Hardy. I'm trying to write a
Distutils setup script to distribute and upload to PyPI a module I
wrote called "Wyzard." My setup script looks like:
setup(name='Wyzard',
version='0.8',
author='LeafStorm/Pacific Science',
author_email='[EMAIL PROTE
On Oct 10, 10:57 pm, George Sakkis <[EMAIL PROTECTED]> wrote:
> On Oct 10, 6:12 pm, [EMAIL PROTECTED] wrote:
>
>
>
> > On Oct 10, 1:02 pm, George Sakkis <[EMAIL PROTECTED]> wrote:
>
> > > On Oct 10, 2:32 pm, [EMAIL PROTECTED] wrote:
>
> > > > I have several ways to the following problem.
>
> > > >
Stef Mientki wrote:
> Steve Holden wrote:
>> Stef Mientki wrote:
>>
>>> Gabriel Genellina wrote:
>>>
>> [...]
>>
>>> Sorry I don't understand all that pep-talk (I'm not a programmer ;-)
>>>
>>
>> And I'm not a plumber. The difference between us is that I don't write
>> blogs telling p
scsoce wrote:
MRAB wrote:
Steve
Holden wrote:
Please keep this on the list.
scsoce wrote:
Steve Holden wrote:
scsoce wrote:
say, when I try to search and match every char from variable length
string, such as string '123456', i tried re.findall( r'(\d)*,
'12346' )
I think you will
John Machin wrote:
> On Nov 22, 11:04 am, r0g <[EMAIL PROTECTED]> wrote:
[...]>> If you can't muster even that level of enthusiasm or courtesy
towards
>> the noobs then you always have the option of not responding.
>
> Your "if X then Y" logic is somewhat cockeyed -- Y is true independent
> of X.
In article <[EMAIL PROTECTED]>,
Arnaud Delobelle <[EMAIL PROTECTED]> wrote:
>
>There's a very simple way of emulating Fraction.__cmp__ in Python 3:
>
>def totally_ordered(cls):
>def __lt__(self, other): return self.cmp(other) < 0
>def __eq__(self, other): return self.cmp(other) == 0
>d
In article <[EMAIL PROTECTED]>,
Mensanator <[EMAIL PROTECTED]> wrote:
>
>So, if the IDLE from ActiveState comes up and says 2.6 (indicating
>final release), shouldn't the copywrite message also say 2.6
>instead of 2.6rc1 as shown here?
That would be an "oops"; please file a bug report, we're goin
Mensanator wrote:
> On Nov 21, 9:06 am, Barry Warsaw <[EMAIL PROTECTED]> wrote:
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA1
>>
>> On behalf of the Python development team and the Python community, I
>> am happy to announce the third and last planned release candidate for
>> Python 3.0.
* Chuck Connors (Fri, 21 Nov 2008 08:10:09 -0800 (PST))
> Wow! What a change in direction from the previous post. Thank you
> both for the help and the explanations. This will work great!
No, it will not. For manipulating CSV data in Python you use the
(*tada*) CSV module ("import csv"). The P
Firstly, I would like to thank those that offered help. I was able to
get my data into the database and also have connectivity with the
mysql and can pull the data in/out at will. Hooray and thanks again.
Secondly, perhaps I overstated my abilities. I have written a couple
of websites from scr
On Nov 22, 9:32�am, [EMAIL PROTECTED] (Aahz) wrote:
> In article <[EMAIL PROTECTED]>,
>
> Mensanator �<[EMAIL PROTECTED]> wrote:
>
> >So, if the IDLE from ActiveState comes up and says 2.6 (indicating
> >final release), shouldn't the copywrite message also say 2.6
> >instead of 2.6rc1 as shown here
Johannes Bauer wrote:
Steve Holden schrieb:
If it's not present then it would be worth reporting it as a 3.0 bug -
there's still time to get it in, as the release isn't due until early
December.
Seems it was removed on purpose - I'm sure there was a good reason for
that, but may I ask why? In
Joe Strout <[EMAIL PROTECTED]> writes:
> On Nov 21, 2008, at 7:02 PM, Steven D'Aprano wrote:
>
>>> I have a function that takes a reference to a class,
>>
>> Hmmm... how do you do that from Python code? The simplest way I can
>> think
>> of is to extract the name of the class, and then pass the na
> I did not see "wyzard.py" anywhere in there, so I copied wyzard.py to
> "~/Code/distrib/wyzard" (so that it was living next to the setup
> script), deleted the tarball created by the first try, and ran
> "setup.py sdist" again. It still hadn't copied to the tarball. I tried
> again several times,
> regards
> Steve
> --
> Steve Holden +1 571 484 6266 +1 800 494 3119
> Holden Web LLC http://www.holdenweb.com/
Thanks all for your help! Bye, TD
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, 22 Nov 2008 07:32:07 -0700, Joe Strout wrote:
> On Nov 21, 2008, at 7:02 PM, Steven D'Aprano wrote:
>
>>> I have a function that takes a reference to a class,
>>
>> Hmmm... how do you do that from Python code? The simplest way I can
>> think
>> of is to extract the name of the class, and
I am using Windows XP professional version 2002 Service pack 3. AMD
Athlon(TM)XP 2400+ 2.00GHz 992MB RAM.I have download Windows x86 MSI Instaler
(3.0rc2) Python 3.0rc2 Release: 06-Nov-2008.
I want to use source code file from Python Command line but I could not.
Firstly i opened IDLE and cli
To whom it might concern. Monty Python has opened an official Monty
Python channel on Youtube. http://www.youtube.com/user/MontyPython
High quality Monty Python movies - powered by Python :)
Have fun!
Christian
--
http://mail.python.org/mailman/listinfo/python-list
On 21 Nov, 23:09, Steven Samuel Cole <[EMAIL PROTECTED]>
wrote:
>
> 1. I must use a 'higher-level' tool than dpkg to install the package
> which automatically resolves and installs dependency packages. There has
> got to be a way to use apt-get for .deb files which do not reside
> (yet) in a repo
Compare and choose the best Chase credit card for your needs
http://chasecreditcardsnews.blogspot.com
--
http://mail.python.org/mailman/listinfo/python-list
Ali art wrote:
I am using Windows XP professional version 2002 Service pack 3. AMD
Athlon(TM)XP 2400+ 2.00GHz 992MB RAM.
I have download Windows x86 MSI Instaler (3.0rc2) Python 3.0rc2 Release:
06-Nov-2008.
I want to use source code file from Python Command line but I could not.
Firstly i op
Idle is not a command line shell, it is the python interactive interpreter.
If you want to run your program in a command line, open a real command line
(cmd.exe) and cd to whatever directory you put helloworld.py in. Then type
"python helloworld.py".
2008/11/21 Ali art <[EMAIL PROTECTED]>
> I am
On Nov 22, 9:32 am, Joe Strout <[EMAIL PROTECTED]> wrote:
> On Nov 21, 2008, at 7:02 PM, Steven D'Aprano wrote:
>
> >> I have a function that takes a reference to a class,
>
> > Hmmm... how do you do that from Python code? The simplest way I can
> > think
> > of is to extract the name of the clas
On Fri, Nov 21, 2008 at 9:12 PM, scsoce <[EMAIL PROTECTED]> wrote:
> MRAB wrote:
>
>> Steve Holden
>> wrote:
>>
>>> Please keep this on the list.
>>>
>>> scsoce wrote:
>>>
Steve Holden wrote:
> scsoce wrote:
>
>
>> say, when I try to search and match every char from vari
George Sakkis wrote:
Don't worry, it's not obvious to *anyone* new to Python (and many not-
so-new for that matter).
That's by no means certain, because we only hear from the
people who guessed the wrong way. We have no way of knowing
how many people guessed the right way.
--
Greg
--
http://m
On Sat, 22 Nov 2008 09:10:04 +, Arnaud Delobelle wrote:
> That's not surprising. You're measuring the wrong things. If you read
> what I wrote, you'll see that I'm talking about Fraction.__gt__ being
> slower (as it is defined in terms of Fraction.__eq__ and
> Fraction.__lt__) using when my
On Nov 22, 8:40 am, Joe Strout <[EMAIL PROTECTED]> wrote:
> On Nov 22, 2008, at 4:08 AM, Aaron Brady wrote:
>
> > Furthermore, to apply c-b-v to Python, you have to
> > introduce the concept of pointers, which is ostensibly non-native for
> > human programmers.
>
> Not necessarily "pointers" per se
On Nov 21, 3:25 pm, Brentt <[EMAIL PROTECTED]> wrote:
> Hi, I know this is a terribly simple question, but the docs seem to be
> designed for people who probably find a the answer to this question
> terribly obvious. But its not at all obvious to me.
>
> I can't figure out why when I define a funct
I would like to install minimal version if python 2.6 on a linux laptop
(and no there is not one already installed...i checked)
i have no way to access the net with the laptop.
So basicly i down loaded the 2.6 source and unpacked it on my other
PC.
The files weigh in at 51MB and some change.
Since
2008/11/21 Ali art <[EMAIL PROTECTED]>
> I am using Windows XP professional version 2002 Service pack 3. AMD
> Athlon(TM)XP 2400+ 2.00GHz 992MB RAM.
> I have download Windows x86 MSI Instaler (3.0rc2) Python 3.0rc2 Release:
> 06-Nov-2008.
>
> I want to use source code file from Python Command lin
r <[EMAIL PROTECTED]> writes:
> The files weigh in at 51MB and some change.
> Since transfer from USB on the laptop is painfully slow, and the cdrom
> is toast, i need to slim down the 2.6 source as much as possible, so
> it doesn't take 2 days to copy,
Even with USB 1.0, 51 mb should only take a
On Sun, 23 Nov 2008 13:13:11 +1300, greg wrote:
> George Sakkis wrote:
>
>> Don't worry, it's not obvious to *anyone* new to Python (and many not-
>> so-new for that matter).
>
> That's by no means certain, because we only hear from the people who
> guessed the wrong way. We have no way of knowi
Edwin <[EMAIL PROTECTED]> writes:
> I have to point out that I myself use Vim more than
> Emacs. Not because I think it's better (I'm not a religious person)
> but because it has better integration with my Mac... and actually, I
> use them for different programming tasks.
I'm only a very occasion
Steven D'Aprano <[EMAIL PROTECTED]> writes:
> On Fri, 21 Nov 2008 17:26:21 +, Arnaud Delobelle wrote:
>
> [...]
>> As classes can be decorated in Python 3, you can write a decorator to
>> make a class totally ordered. Here is a very simplified proof of
>> concept such decorator:
>>
>> def to
Chase Credit Cards & CreditCard Offers at CreditCardFlyers
http://www.chasecreditcardsnews.50webs.com
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, 22 Nov 2008 08:27:59 +, Arnaud Delobelle wrote:
>>> Granted it's not as efficient as a __cmp__ function.
>>
>> What makes you say that? What do you mean by "efficient"? Are you
>> talking about memory footprint, runtime speed, disk-space, programmer
>> efficiency, algorithmic complexit
Steve Holden wrote:
Stef Mientki wrote:
Gabriel Genellina wrote:
[...]
Sorry I don't understand all that pep-talk (I'm not a programmer ;-)
And I'm not a plumber. The difference between us is that I don't write
blogs telling people how to lay out and connect their pipework.
Steven D'Aprano <[EMAIL PROTECTED]> writes:
> On Sat, 22 Nov 2008 08:27:59 +, Arnaud Delobelle wrote:
>
Granted it's not as efficient as a __cmp__ function.
>>>
>>> What makes you say that? What do you mean by "efficient"? Are you
>>> talking about memory footprint, runtime speed, disk-sp
How about this: http://www.pythonchallenge.com/
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi guys,
>
> I'm learning Python by teaching myself, and after going through several
> tutorials I feel like I've learned the basics. Since I'm not taking a
> class or anything, I've
Arnaud Delobelle <[EMAIL PROTECTED]> writes:
> I haven't done any tests but as Fraction.__gt__ calls *both*
> Fraction.__eq__ and Fraction.__lt__ it is obvious that it is going to be
> roughly twice as slow.
There's a very simple way of emulating Fraction.__cmp__ in Python 3:
def totally_ordered
On Nov 21, 3:17 am, [EMAIL PROTECTED] wrote:
snip
> Compared to other languages Python generally allows me to write a
> correctly working program in the shorter time (probably because of the
> Python shell, the built-in safeties, the doctests, the clean and short
> and handy syntax, the quick write
On Nov 21, 8:53 pm, greg <[EMAIL PROTECTED]> wrote:
> Aaron Brady wrote:
> > Call-by-value has other characteristics that Python does not
> > meet.
>
> The designers of most other dynamic languages don't
> seem to share that opinion, since they use the term
> call-by-value just as though it *does*
On Nov 20, 1:28 pm, [EMAIL PROTECTED] wrote:
> >> a diary manager compatible with my Emacs diary file (sometimes I
> >> don't want to open Emacs for a quick note)
>
> Arnaud> You mean that you sometimes don't have emacs open?
>
> I am constantly amazed at work that people open a separat
46 matches
Mail list logo