Alex Gittens <[EMAIL PROTECTED]> wrote:
> Is anyone aware of any applications that handle font and graphics
> display--- something like Adobe Reader--- that are written in Python,
> and the code is available for examination? It doesn't matter what GUI
> toolkit is used.
>
Grail comes to my mind im
Currently I'm on 149 characters in one line - 128 without
spaces/newlines. (it'd be three characters shorter if it didn't have
to end with a "\n")
-T. "unclean... unclean..."
--
http://mail.python.org/mailman/listinfo/python-list
Robert Hicks wrote:
> I disagree...I don't think the whitespace rule will ever be
> "optional". Why would it be so? If someone doesn't like it...choose
> another language. It is that simple really.
> Robert
It's not that simple.
But let's simply await.
We will know in 2 years.
-
TAG.python.e
Your message dated Mon, 26 Dec 2005 10:15:57 +0545 with subject "Re: Mail
Authentification" has been submitted to the moderator of the
ASIABREAKINGNEWS list.
--
http://mail.python.org/mailman/listinfo/python-list
Tim Hochberg wrote:
> No. I have 8 lines and 175 chars at present. And, I expect that's gonna
> get beaten.
I wasn't going to get into this, but I couldn't resist :).
I'm already behind though... 198 characters on 1 line. It's ugly, but
it works.
--
http://mail.python.org/mailman/listinfo/pyt
I find a problem:
Now when i input some special word in browser ,the Apache will report
the error.
My Apache error_log:
python: ../iconv/skeleton.c:324: __gconv_transform_utf8_internal:
Assertion `nstatus == GCONV_FULL_OUTPUT' failed.
How to fix the bug?
My python version:1.52 (because work spe
I disagree...I don't think the whitespace rule will ever be "optional".
Why would it be so? If someone doesn't like it...choose another
language. It is that simple really.
Robert
--
http://mail.python.org/mailman/listinfo/python-list
Over at
http://spoj.sphere.pl/problems/SIZECON/
the task is to come up with the shortest program that solves a
different problem. There's a twist in this one:
Score equals to size of source code of your program except symbols with
ASCII code <= 32.
So blanks, newlines and tabs aren
rbt wrote:
> Does positioning matter? For example, say I give it '123' is it ok to
> output this:
>
> 1
> 2
> 3
>
> Or does it have to be 123
Download the test suite and you'll see that only 123 on one line passes
the test. Sorry...
--
==
Remi Villatel
[EMAIL PROTECTED]
rbt <[EMAIL PROTECTED]> wrote:
> Tim Hochberg wrote:
> >
> > Is it necessary to keep the input parameter as 'input'? Reducing that to
> > a single character drops the length of a program by at least 8
> > characters. Technically it changes the interface of the function, so
> > it's a little bogu
Simon Hengel <[EMAIL PROTECTED]> wrote:
> > Definitely, characters. A high-granularity measure is essential to
> > reduce the chance of ties. Even so there may well be equal-first-place
> > winners -- hope they're not solved in terms of first submission, since
> > submitting at 14:00 UTC is WAY
Christian Tismer <[EMAIL PROTECTED]> wrote:
> Simon Hengel wrote:
> >> I would suggest that all whitespace (except within string literals)
> >> should be ignored, as well.
>
> > Good point, but i assume that is not possible with regular expressions.
>
> No, but a trivial task using the compiler.
Remi Villatel wrote:
> André Malo wrote:
>
>
>>>is two lines and 347 characters ugly enough to win?
>
>
>>Nope. 3 lines / 179 chars here >:->
>>Yes, it's quite unreadable.
>
>
> I'm in for the second place with 4 lines / 228 chars.
>
>
>>(The problem is that I need to find an internet cafe
On Mon, 26 Dec 2005 02:21:11 +0100, André Malo wrote:
> * Steven D'Aprano wrote:
>
>> is two lines and 347 characters ugly enough to win?
>
> Nope. 3 lines / 179 chars here >:->
> Yes, it's quite unreadable.
I think Perl coders should be banned from this contest, as they have an
unfair advantag
André Malo wrote:
>>is two lines and 347 characters ugly enough to win?
> Nope. 3 lines / 179 chars here >:->
> Yes, it's quite unreadable.
I'm in for the second place with 4 lines / 228 chars.
> (The problem is that I need to find an internet cafe on 28/29th in order to
> be able to submit)
D
>>> c=open("seven_seg.py").read()
>>> len(c)
251
>>> len(c.replace(" ",""))
152
:-)
Knowing me, I'll forget to submit it.
--
http://mail.python.org/mailman/listinfo/python-list
> Is it necessary to keep the input parameter as 'input'? Reducing that to
> a single character drops the length of a program by at least 8
> characters. Technically it changes the interface of the function, so
> it's a little bogus, but test.py doesn't check. (Personally I prefer
> that if be
Tim Hochberg wrote:
>
> Is it necessary to keep the input parameter as 'input'? Reducing that to
> a single character drops the length of a program by at least 8
> characters. Technically it changes the interface of the function, so
> it's a little bogus, but test.py doesn't check. (Personally
Is it necessary to keep the input parameter as 'input'? Reducing that to
a single character drops the length of a program by at least 8
characters. Technically it changes the interface of the function, so
it's a little bogus, but test.py doesn't check. (Personally I prefer
that if be illegal,
Steven D'Aprano wrote:
> On Sun, 25 Dec 2005 19:14:43 -0500, rbt wrote:
>
>
>>Steven D'Aprano wrote:
>>
>>>On Sun, 25 Dec 2005 18:05:37 +0100, Simon Hengel wrote:
>>>
>>>
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
>I'm envisioning lots of convoluted one-liners which
>
On Sun, 25 Dec 2005 17:39:14 -0800, homepricemaps wrote:
> if i do the following i get the url of an image i am looking for
>
> image = ""
> image = bs.img
> print image
image = "" is a pointless operation in the above snippet.
What is bs and bs.img? How does it know what URL you are looking fo
Larry Bates wrote:
> Joe wrote:
>
>>Is Python going to support s syntax the does not use it's infamous
>>whitespace rules?
Of course.
I estimate it will take around 1 to 2 years from now, until this
whitespace-concept will become optionally.
Backwards-compatibility will be kept, thus those wh
Python Leadership was a weakness [1] and becomes now a threat for
python, thanks to Mr. van Rossums employment at Google.
-
I've wrote the Leadership list prioritized (Google rules, Mr. van Rossum
follows, PSF watches and accepts).
The core developer of an open-source-project is 'captured' by
if i do the following i get the url of an image i am looking for
image = ""
image = bs.img
print image
however if i do this
out.write (image )
i get an error that says "nonetype error is not callable"
any ideas
--
http://mail.python.org/mailman/listinfo/python-list
Simon Hengel wrote:
> Hello,
> we are hosting a python coding contest an we even managed to provide a
> price for the winner...
>
> http://pycontest.net/
>
> The contest is coincidentally held during the 22c3 and we will be
> present there.
>
> https://events.ccc.de/congress/2005/wiki/Python_cod
* Steven D'Aprano wrote:
> is two lines and 347 characters ugly enough to win?
Nope. 3 lines / 179 chars here >:->
Yes, it's quite unreadable.
(The problem is that I need to find an internet cafe on 28/29th in order to
be able to submit)
nd
--
my @japh = (sub{q~Just~},sub{q~Another~},sub{q~Per
Roy Smith wrote:
> How do other people do this?
raise NotImplementedError, "I chose not to implement this because of..."
(built-in exception)
--- Heiko.
--
http://mail.python.org/mailman/listinfo/python-list
Jan Niklas Fingerle <[EMAIL PROTECTED]> wrote:
> > the templating language (Cheetah vs Kid). Those will be points of
> (as far as "depend" might go) the Kid funtionality (i.e. importing
> ElementTree-s as sub-trees, and ElementTree is part of the heart of my
> application logics).
If I might add:
> What is your algorithm for determining "shortest" program? Are you
> counting tokens, lines or characters? Does whitespace count?
like:
$wc -c seven_seg.py
At the moment we have to live with characters, and yes whitespace
characters do count. Sorry for that.
Have fun,
Simon Hengel
--
python
On Sun, 25 Dec 2005 19:14:43 -0500, rbt wrote:
> Steven D'Aprano wrote:
>> On Sun, 25 Dec 2005 18:05:37 +0100, Simon Hengel wrote:
>>
>>> -BEGIN PGP SIGNED MESSAGE-
>>> Hash: SHA1
>>>
I'm envisioning lots of convoluted one-liners which
are more suitable to a different P-language
One last comment:
This will work, I think, if and only if the "Consolidating" framework,
the one to be used to absorb the other(s) best aspects, makes immediate
and up-front, highly visible concession(s) so as to clearly
communicate a win-win scenario.
--
http://mail.python.org/mailman/listinfo
> Definitely, characters. A high-granularity measure is essential to
> reduce the chance of ties. Even so there may well be equal-first-place
> winners -- hope they're not solved in terms of first submission, since
> submitting at 14:00 UTC is WAY easier for Europe residents (residents of
> the A
On December 15, Alex Martelli wrote:
>Alternatively, counting Google hits:
>rails python django 112,000
>rails python subway 81,600
>rails python turbogears 32,000
>This isn't exactly "buzz", of course, but it's SOME measure of "critical
>mass" -- and with django about e
Simon Hengel wrote:
>> I would suggest that all whitespace (except within string literals)
>> should be ignored, as well.
> Good point, but i assume that is not possible with regular expressions.
No, but a trivial task using the compiler.
they should have taken this as a second challenge :-) -
In article <[EMAIL PROTECTED]>,
Tim Peters <[EMAIL PROTECTED]> wrote:
>[Roy Smith]
>> Is there some standard way to signal "not implemented yet" in
>> unfinished code?
>
>raise NotImplementedError
>
>That's a builtin exception.
Ah, that's exactly what I was looking for. Thanks.
--
http://ma
> I would suggest that all whitespace (except within string literals)
> should be ignored, as well.
Good point, but i assume that is not possible with regular expressions.
Cheers, Simon
--
python coding contest - http://www.pycontest.net/
--
http://mail.python.org/mailman/listinfo/python-list
www.antollma.org
--
http://mail.python.org/mailman/listinfo/python-list
André schrieb:
> Neat idea!
Indeed
>
> I'm far from being a decent Python programmer but I managed (for fun)
> to do it in a one-liner; however, it was definitely longer (in term of
> number of characters) than the more readable multi-line solution.
I made a readable version with 352 bytes and
J. D. Leach wrote:
> Quick question as I am rather new to Python. What is the preferred tool
> amongst you gurus to use in coding Python? I have ran across Eric3 and
> found it to be pretty well full-featured. Any comments or suggestions for
> better tools/IDE's?
>
> J.D. Leach
I wouldn't say "pre
[Roy Smith]
> Is there some standard way to signal "not implemented yet" in
> unfinished code?
raise NotImplementedError
That's a builtin exception.
...
--
http://mail.python.org/mailman/listinfo/python-list
Steven D'Aprano wrote:
> On Sun, 25 Dec 2005 18:05:37 +0100, Simon Hengel wrote:
>
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA1
>>
>>> I'm envisioning lots of convoluted one-liners which
>>> are more suitable to a different P-language... :-)
>> I feel that python is more beautiful and reada
On Sun, 25 Dec 2005 18:05:37 +0100, Simon Hengel wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
>> I'm envisioning lots of convoluted one-liners which
>> are more suitable to a different P-language... :-)
> I feel that python is more beautiful and readable, even if you write
> short p
Is there some standard way to signal "not implemented yet" in
unfinished code? When I'm coding, I'll often only flesh out one side
of a branch, or delay writing some method until later. It would be
nice to be able to identify these right in the code to make sure they
don't get forgotten about.
I
Neat idea!
I'm far from being a decent Python programmer but I managed (for fun)
to do it in a one-liner; however, it was definitely longer (in term of
number of characters) than the more readable multi-line solution.
André
--
http://mail.python.org/mailman/listinfo/python-list
Tim Hochberg <[EMAIL PROTECTED]> wrote:
...
> These two would be easy to acomplish using something like:
>
> def countchars(text):
> n = 0
> for line in text.split('\n'):
> n += len(line.strip())
> return n
>
> This would ignore leading and trailing white space as well as
Christian Tismer <[EMAIL PROTECTED]> wrote:
...
> Maybe a compromize proposal could be like this:
>
> - Squeezing many lines into one using semicola does not help,
>the program will be expanded to use one statement per line
>
> - blank lines are allowed and not counted if they are not
>
Very often this doesn't work and I am forced to do ctrl+alt+del to quit
pythonwin from the task manager.
Is there a better way to interrupt my testruns when they hang ?
thank you,
Tim
--
http://mail.python.org/mailman/listinfo/python-list
Tim Hochberg wrote:
> Christian Tismer wrote:
...
>> - Squeezing many lines into one using semicola does not help,
>>the program will be expanded to use one statement per line
>>
>> - blank lines are allowed and not counted if they are not
>>needed as part of the code
>
> These two would
[EMAIL PROTECTED] wrote:
> I've just started to test/learn python.
> I've got Linux > mandrake9 > python & documentation.
> What I'll initially want to be doing needs file I/O, so I
> wanted to confirm file I/O early in my tests.
>
> Following the examples :
f=open('/tmp/workfile', 'w')
Luis M. González wrote:
> I'd like to know, in your opinion, how far is the goal of making pypy
> complete and fast?
Me too :-)
PyPy is doing a great job, that's for sure.
I'm hesitant with making estimates, after I learned what a bad
job I'm doing at extrapolation.
First I thought that we woul
Rocco Moretti wrote:
> rbt wrote:
>
>> The TV show on NBC in the USA running this week during primetime (Deal
>> or No Deal). I figure there are roughly 10, maybe 15 contestants. They
>> pick a briefcase that has between 1 penny and 1 million bucks and then
>> play this silly game where NBC tries
Simon Hengel wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
>> I'm envisioning lots of convoluted one-liners which
>> are more suitable to a different P-language... :-)
> I feel that python is more beautiful and readable, even if you write
> short programs.
>
>> How about """best comp
Christian Tismer wrote:
> Simon Hengel wrote:
>
>>-BEGIN PGP SIGNED MESSAGE-
>>Hash: SHA1
>>
>>
>>>I'm envisioning lots of convoluted one-liners which
>>>are more suitable to a different P-language... :-)
>>
>>I feel that python is more beautiful and readable, even if you write
>>short pro
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
> I'm envisioning lots of convoluted one-liners which
> are more suitable to a different P-language... :-)
I feel that python is more beautiful and readable, even if you write
short programs.
> How about """best compromize between shortness and readib
Christian Tismer wrote:
> Christian Tismer wrote:
>
> > This is not trying to split apart from PyPy, or to short-cut its
> > goals. I'm completely with PyPy's goals, and it will do much
> > more than RPython translation ever will, this is out of question.
Hi Christian,
I'd like to know, in your
Eddy> I would like to suppress .pyc generation or have the .pyc
Eddy> generation in a speical seperate root (I found something about
Eddy> PYCROOT). Has this been implemented yet? Is there an environment
Eddy> variable or a command line switch that suppresses .pyc generation?
Take
Simon Hengel wrote:
> Hello,
> we are hosting a python coding contest an we even managed to provide a
> price for the winner...
>
> http://pycontest.net/
Nice idea to have a contest, of course!
What I dislike a bit is the winning criterion:
Shortest possible Python module?
I'm envisioning lots o
o wrote:
> plez send me
This is actually no bug but a feature. :-)
Well, I know what you mean.
The problem is created by the fact that in Python, functions
are first-class object which can be assigned, passed around,
inspected and whatever, as every other object can.
The drawback is that you hav
Hello,
we are hosting a python coding contest an we even managed to provide a
price for the winner...
http://pycontest.net/
The contest is coincidentally held during the 22c3 and we will be
present there.
https://events.ccc.de/congress/2005/wiki/Python_coding_contest
Please send me comments, su
Christian Tismer wrote:
> This is not trying to split apart from PyPy, or to short-cut its
> goals. I'm completely with PyPy's goals, and it will do much
> more than RPython translation ever will, this is out of question.
Of course I meant "this is beyond question" :-)
--
Christian Tismer
Thank you all.
--
http://mail.python.org/mailman/listinfo/python-list
It was kindof a stupid mistake on my part: I had to put 'import os' at
the very beginning, and not only in one of my two function definitions.
Thanks anyway, thanks to your link I also found how to change the colour
of the console...neat :p !
Tim
Hans Nowak wrote:
>tim wrote:
>
>
>
>>I want t
Carl Friedrich Bolz wrote:
> Luis M. González wrote:
...
>> So we will have two choices:
>> 1) running normal python programs on Pypy.
>> 2) translating rpython programs to C and compiling them to stand-alone
>> executables.
>>
>> Is that correct?
>
> Indeed. Another possibility is to write a Py
There is a simple, though slightly ugly trick: if the directory where the python
module resides, is not writable to the python process, the python runtime will
silently ignore .pyc generation (as far as I know). It is not elegant, but it
works...
Ivan
Original Message
From: "Edd
There is a simple, though slightly ugly trick: if the directory where the python
module resides, is not writable to the python process, the python runtime will
silently ignore .pyc generation (as far as I know). It is not elegant, but it
works...
Ivan
Original Message
From: "Edd
On 12/25/05, Peter Maas <[EMAIL PROTECTED]> wrote:
> yepp schrieb:
> > Once you got the model of free and open source software you can't but shake
> > your head at obfuscating people treating their users as enemies.
>
> Sorry but this is naive nonsense. Open source is a good model but
> it can't be
Hi,
I would like to suppress .pyc generation or have the .pyc generation in a
speical seperate root (I found something about PYCROOT). Has this been
implemented yet? Is there an environment variable or a command line switch
that suppresses .pyc generation?
Eddy
--
http://mail.python.org/mailman
On Fri, 23 Dec 2005 07:52:54 -0800, infidel wrote:
> Happy holidays to my fellow Pythonistas.
This will never get old. Reminds me of something on Slashdot:
"Happy random day in december!"
Maybe it's next year's version.
Merry Christmas :)
--
http://mail.python.org/mailman/listinfo/python-lis
Is there any detailed debug tutorial for Pythonwin?
--
http://mail.python.org/mailman/listinfo/python-list
hi all!
i just built revision 41809 under winxp using a rather uncommon
setup (at least i think so). since i have no visual studio here,
i only used freely available tools: cygwin to get the source, the
microsoft compiler/linker and NAnt (nant.sf.net) as the build tool
to interpret the .vcproj-fil
yepp schrieb:
> Once you got the model of free and open source software you can't but shake
> your head at obfuscating people treating their users as enemies.
Sorry but this is naive nonsense. Open source is a good model but
it can't be applied everywhere. Look at the following example:
There is
Thomas Wouters <[EMAIL PROTECTED]> writes:
> But the odds of such a message having the same MD5 as an existing
> song on his disk is quite a lot higher than 2**64, unless he has a really,
> really large music collection ;) In the case you propose, two files don't
> just need to have the same MD5, b
I trying to run some implementation of SOAP in Python. Iam using ZSI,
but iam little bit lost. I downloaded the official documentation, but
iam still not able to understand relations between objects (soapwriter,
typecode). Everything i can, is send a simple string via return value of
server fun
In message <[EMAIL PROTECTED]>, twigster
<[EMAIL PROTECTED]> writes
>Hi,
>
>I need to display in real time the output of a command line tool in a
>GUI written so far with Tkinter and Pmw. I've got a command line tool
>that I want to integrate to a GUI. The parameters are set using the GUI
>and
On Fri, 23 Dec 2005 21:56:44 -0800, Paul Rubin wrote:
> Steven D'Aprano <[EMAIL PROTECTED]> writes:
>> > There are also known ways of deliberately constructing md5 collisions
>> > (i.e. md5 is broken). Whether the OP should care about that depends
>> > on the application.
>>
>> Sure, but I don't
"Lee Harr" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On 2005-12-23, Gary Herron <[EMAIL PROTECTED]> wrote:
> > You've got the visible/invisible aspect of things
> > *exactly* backwards.
> > The point on a line of text where things change
> > from white space to
> > non-white spa
76 matches
Mail list logo