Martin I read or heard (can't remember the origin) that MS IE has a
Martin quite good implementation of guessing the language en character
Martin encoding of web pages when there not or falsely specified.
Gee, that's nice. Too bad the source isn't available... 0.5 wink
Skip
--
Aahz wrote:
Ubuntu *is* Debian, just repackaged.
I think is almost would be more accurate than just *is*, speaking
as a Kubuntu user with a passing familiarity of the current state of
Debian and Ubuntu package maintenance.
I used to prefer Debian until stable wouldn't work with my newest
Mike Meyer wrote:
Diez B. Roggisch [EMAIL PROTECTED] writes:
Michal wrote:
is there any way how to detect string encoding in Python?
I need to proccess several files. Each of them could be encoded in
different charset (iso-8859-2, cp1250, etc). I want to detect it,
and encode it to utf-8 (with
Hi,
I am running Python script in W2K or in WinXP.
The script is started from DOS prompt and writes text file to disk
with codecs.open() in UTF8.
The problem is: When script writes the file and tries to read it
with by calling itself thru subprocess() the created files are
NOT accessible because
Could someone tell me how to add some HTML tags to this program. I want
to be able to change the background color, add some headers, and put a
table below the map that will be displayed. Could someone please tell
me how to add this to the current program. Thanks in advance.
Red.py
Publisher
Being a fan of linux and python and granting money doesn't make your OS
better or worse.
I believe that shipping a linux with a compiler DIFFERENT from the one
that was used to build the kernel is not very bright. It may never
bother some users, but few software developpers will like this idea.
On Sunday 04 December 2005 19:56, Aahz wrote:
Christoph Haas [EMAIL PROTECTED] wrote:
The operating system/distribution is not connected to the application
(Python). It will probably run everywhere. But we recently had this
topic and a majority seemed to vote for Ubuntu. I personally prefer
Cameron Laird [EMAIL PROTECTED] wrote:
snip
Among the treasures available in The Wiki is the current
copy of the Sorting min-howto:
http://www.amk.ca/python/howto/sorting/sorting.html
snip
Why is this a treasure when it is way out of date?
1. There is no mention of the key or
I don't think that's actually what you want to do. Yes arguments are
not to be used directly as option arguments (otherwise why have option
arguments anyways ;-) but each option argument is usually evaluated
under the evaluation of the actual option and optparse will error on
invalid use of the
Aaron Bingham [EMAIL PROTECTED] writes:
[EMAIL PROTECTED] wrote:
[...ex-emacs user explains switch to Eclipse...]
The killer PyDev feature for me is pylint integration. Being informed
immediately when you mistype a variable name is a big timesaver. Also
I now find it difficult to mis-type
Among the treasures available in The Wiki is the current
copy of the Sorting min-howto:
http://www.amk.ca/python/howto/sorting/sorting.html
Why is this a treasure when it is way out of date?
Note that the updated version of this is at: http://wiki.python.org/
Fabio Zadrozny [EMAIL PROTECTED] writes:
[...]
I must also warn you that I'm its current maintainer, and it is *my*
favorite IDE :-)
[...]
But in the end, as I said, it is a subjective matter, so, you'll have to
decide it for yourself.
Hey, Fabio, can this be true:
Sanjay Arora [EMAIL PROTECTED] writes:
We are looking to select the language toolset more suitable for a
project that requires getting data from several web-sites in real-
timehtml parsing/scraping. It would require full emulation of the
browser, including handling cookies, automated
Among the treasures available in The Wiki is the current
copy of the Sorting min-howto:
http://www.amk.ca/python/howto/sorting/sorting.html
Why is this a treasure when it is way out of date?
Tony Note that the updated version of this is at:
Tony
I have to add another vote for Gentoo. I agree that you just have
less problems on Gentoo. Updates are from source, but you don't have
to update mid-day while working on a project... if you really want the
new version of KDE (etc) then start an update and go to sleep, not a
big deal. Portage
[pardon me if this is not the appropriate list]
hello,
i am interested in doing an undergraduate major in computer science
that mainly focuses on python as a programming language..
i am not a very bright student and neither do i have the money to
think about universities like caltech, stanford
[EMAIL PROTECTED] wrote:
Though I tried most the above listed IDEs, sticking with a few for
awhile, I always find myself gravitating back to the one no one ever
mentions: IDLE. It's simple, fast, and with multiple monitors the lack
of tabs really isn't much of a problem.
The biggest reason
malv wrote:
Being a fan of linux and python and granting money doesn't make your OS
better or worse.
I believe that shipping a linux with a compiler DIFFERENT from the one
that was used to build the kernel is not very bright. It may never
bother some users, but few software developpers will
Tony Meyer wrote:
Among the treasures available in The Wiki is the current
copy of the Sorting min-howto:
http://www.amk.ca/python/howto/sorting/sorting.html
Why is this a treasure when it is way out of date?
Note that the updated version of this is at:
On 12/4/05, Diez B. Roggisch [EMAIL PROTECTED] wrote:
What you want instead is something like
if event.source == a:
...
Please note that I don't know what event actually looks like in Tkinter,
so check the docs what actually gets passed to you.
got AttributeError: Event
On 12/4/05, Peter Otten [EMAIL PROTECTED] wrote:
Ben Bush wrote:
On 12/4/05, Diez B. Roggisch [EMAIL PROTECTED] wrote:
Ben Bush wrote:
I tested the following code and wanted to get the message of oval2
got hit if I click the red one. But I always got oval1 got hit.
from Tkinter
I'm wondering if anyone has experience/tips to offer on installing
Eric on OS X and XP. Installation on both seems to require a number
of steps, some of them seeming potentially fragile, and I'm wondering
if I'm looking at a job of perhaps hours (days?), or if everyone
manages in just a
Brett Hoerner [EMAIL PROTECTED] writes:
I have to add another vote for Gentoo. I agree that you just have
less problems on Gentoo. Updates are from source,
Gentoo is one of my favorite Linux distributions - because it's the
the most like a BSD distribution, except not as mature. A lot of the
John J. Lee wrote:
Sanjay Arora [EMAIL PROTECTED] writes:
We are looking to select the language toolset more suitable for a
project that requires getting data from several web-sites in real-
timehtml parsing/scraping. It would require full emulation of the
browser, including
I tested the following code and wanted to make oval 2 become red after
I hit the enter key but though the code did not report error, it did
not change.
from Tkinter import *
root=Tk()
canvas=Canvas(root,width=100,height=100)
canvas.pack()
canvas.create_oval(10,10,20,20,tags='oval1',fill='blue')
Among the treasures available in The Wiki is the current
copy of the Sorting min-howto:
http://www.amk.ca/python/howto/sorting/sorting.html
Why is this a treasure when it is way out of date?
Note that the updated version of this is at: http://wiki.python.org/
quoth the Mike Meyer:
A lot of the
rough edges of Gentoo have been dealt with in FreeBSD. For instance,
you can update from source, but you can also get binary updates.
You can sort of do this with Gentoo. Check out the --usepkg, --getbinpkg
and --buildpkg emerge options. The only problem is
[Diez B. Roggisch]
Michal wrote:
is there any way how to detect string encoding in Python?
Recode might be of help here, it has such heuristics built in AFAIK.
If we are speaking about the same Recode ☺, there are some built in
tools that could help a human to discover a charset, but this
Björn Lindström wrote:
Ed Leafe [EMAIL PROTECTED] writes:
Again, specifics would be welcome. I've been using tabs for
indentation for over a decade, and have not once run into the horror
stories that everyone who hates tabs says will happen, but who never
give specifics as to how they cause
Note that the updated version of this is at: http://wiki.python.org/
moin/HowTo/Sorting
rurpy http://wiki.python.org/...
rurpy Hmmm, lets see, how about Libraries?
rurpy Nope, don't see anything that looks like it might be about sort
rurpy there...
rurpy How about
Hi. I like working with lists of dictionaries since order is preserved
in a list when I want order and the dictionaries make it explicit what
I have got inside them. I find this combination very useful for storing
constants especially. Generally I find myself either needing to
retrieve the
Hmmm... I'm not an expert in this subject but isn't Ubuntu based on
Debian?
I'm no expert either. I've played with Ubuntu and Debian, and Debian
seemed infinitely more stable, and also, for me, Debian installed more
easily.
Since it's a python board I'm most interested in the python
Hi All,
I'm looking for a quality Python XML implementation. All of the DOM
and SAX implementations I've come across so far are rather
convoluted. Are there any quality implementations that will (after
parsing the XML) return an object that is accessible by name? Such as
the following:
Why doesn't the following work? It generates a NameError: global
name 'data' is not defined error.
import timeit
global data
data = [3,8,4,8,6,0,5,7,2,1]
env = global data; x = data
print timeit.Timer('x.sort()', env).timeit()
print timeit.Timer('x.sort(cmp=cmp', env).timeit()
Hi. I like working with lists of dictionaries since order is preserved
in a list when I want order and the dictionaries make it explicit what
I have got inside them. I find this combination very useful for storing
constants especially. Generally I find myself either needing to
retrieve
Hello,
I am new to Qt programming and PyQt. I am attempting to build a client
for AllofMp3.com, I already have most of the logic code down. But now I
want to build a GUI with PyQt. What rules should I follow to make the
program useable in the console, but also with a GUI?
Thank you.-- As a boy I
[EMAIL PROTECTED] wrote:
Why doesn't the following work? It generates a NameError: global
name 'data' is not defined error.
import timeit
global data
data = [3,8,4,8,6,0,5,7,2,1]
env = global data; x = data
print timeit.Timer('x.sort()', env).timeit()
print
[EMAIL PROTECTED] wrote:
Gee, I wonder if I typed sort into the search box on the wiki it might
turn up something useful? Well, what do you know?
2 results of about 4571 pages. (0.19 seconds)
1. HowTo/Sorting
2. SortingListsOfDictionaries
Are we talking about the same Search
In article [EMAIL PROTECTED],
Christoph Haas [EMAIL PROTECTED] wrote:
On Sunday 04 December 2005 19:56, Aahz wrote:
Of course, one can use Debian-testing, but that isn't packaged, and
I want a packaged OS.
You probably mean that Testing (the upcoming Etch stable release) is not
yet
[EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
Gee, I wonder if I typed sort into the search box on the wiki it might
turn up something useful? Well, what do you know?
2 results of about 4571 pages. (0.19 seconds)
1. HowTo/Sorting
2. SortingListsOfDictionaries
Are we talking
Tony Meyer wrote:
Among the treasures available in The Wiki is the current
copy of the Sorting min-howto:
http://www.amk.ca/python/howto/sorting/sorting.html
Why is this a treasure when it is way out of date?
Note that the updated version of this is at:
Alex Martelli wrote:
[EMAIL PROTECTED] wrote:
Why doesn't the following work? It generates a NameError: global
name 'data' is not defined error.
import timeit
global data
data = [3,8,4,8,6,0,5,7,2,1]
env = global data; x = data
print timeit.Timer('x.sort()',
Thanks for the advice,
The reason for the choice of my particular test project is that it is
in the direction that I want to go in so choosing some other won't do.
I've looked briefly at PyGame but this means I have to learn a lot
besides what I want to do.
I thought that maybe my project could
Michael Williams wrote:
Hi All,
I'm looking for a quality Python XML implementation. All of the DOM
and SAX implementations I've come across so far are rather
convoluted. Are there any quality implementations that will (after
parsing the XML) return an object that is accessible by name?
Peter Hansen wrote:
[EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
snip
Are we talking about the same Search box (at the top right of the
wiki page, and labeled search? Well, yes I did enter sort and
got (as I said) a long list of archived maillist postings.
No, he's talking about
Brett Hoerner wrote:
I have to add another vote for Gentoo.
And another here. Portage (the Python-coded package-management system)
does a very good job. I tend to use fairly conservative settings as
well, Gentoo's just nice and stable as a general rule, I don't care
about ultimate speed or
Dear All,
Can't a lambda uses the input parameter more then once in the lambda body?
eg:
lambda x : print x/60,x%60
I tried with def and it works but got syntax error with lambda. Below is an interactive sample:
[EMAIL PROTECTED] ~ $ python
Python 2.4.2 (#1, Nov 18 2005, 19:32:15)
[GCC 3.3.6
without the print also gives me error:-
lambda_hrs = lambda x : x/60,x%60
Traceback (most recent call last):
File stdin, line 1, in ?
NameError: name 'x' is not defined
On 12/5/05, Mohammad Jeffry [EMAIL PROTECTED] wrote:
Dear All,
Can't a lambda uses the input parameter more then once in the
Martin P. Hellwig wrote:
From what I can remember is that they used an algorithm to create some
statistics of the specific page and compared that with statistic about
all kinds of languages and encodings and just mapped the most likely.
More hearsay: I believe language-based heuristics are
Diez B. Roggisch wrote:
So cp1250 doesn't have all codepoints defined - but the others have.
Sure, this helps you to eliminate 1 of the three choices the OP wanted
to choose between - but how many texts you have that have a 129 in them?
For the iso8859 ones, you should assume that the
Try
lambda_hrs = lambda x: (x/60,x%60)
--
http://mail.python.org/mailman/listinfo/python-list
Mohammad Jeffry wrote:
Dear All,
Can't a lambda uses the input parameter more then once in the lambda
body?
eg:
lambda x : print x/60,x%60
I tried with def and it works but got syntax error with lambda. Below
is an interactive sample:
Lambda evaluates a single *expression* and returns
It's site:, but even if you just left that out and used
'wiki.python.org sorting how to', the first link is the one you're
after. Laziness is no excuse.
You miss my point. Having outdated documentaion distributed
with Python is the problem. Have some newer stuff out on some
wiki is nice
Justin Ezequiel wrote:
Try
lambda_hrs = lambda x: (x/60,x%60)
Or
#v+
lambda_hrs = lambda x: divmod(x, 60)
#v-
Cheers,
--
Klaus Alexander Seistrup
PNX · http://pnx.dk/
--
http://mail.python.org/mailman/listinfo/python-list
In theory, this would do. I have tried this several times in the past
and found it very impractical to have to live with two Python versions
on the same system, given that Python, like also Perl, is used by so
many components. I may have done many things wrong but experience
taught me to better
But, the standard responce of don't complain, fix it yourself is
bogus too. There are plenty of people on this list willing to sing
python's
praises, for balance, there should be people willing to openly
point out
python's flaws.
This makes no sense. If you want to complain about
Bugs item #1372770, was opened at 2005-12-04 02:53
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1372770group_id=5470
Please note that this message will contain a full copy of
Bugs item #1333982, was opened at 2005-10-21 10:08
Message generated for change (Comment added) made by arigo
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1333982group_id=5470
Please note that this message will contain a full copy of the comment thread,
Bugs item #1115886, was opened at 2005-02-04 01:27
Message generated for change (Comment added) made by jjlee
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1115886group_id=5470
Please note that this message will contain a full copy of the comment thread,
Bugs item #1222790, was opened at 2005-06-17 13:18
Message generated for change (Comment added) made by akuchling
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1222790group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #792570, was opened at 2003-08-21 11:37
Message generated for change (Comment added) made by akuchling
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=792570group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #792570, was opened at 2003-08-21 11:37
Message generated for change (Settings changed) made by akuchling
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=792570group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #1372650, was opened at 2005-12-04 03:47
Message generated for change (Comment added) made by jjlee
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1372650group_id=5470
Please note that this message will contain a full copy of the comment thread,
Bugs item #1372650, was opened at 2005-12-03 18:47
Message generated for change (Comment added) made by valankar
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1372650group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #1041501, was opened at 2004-10-06 10:31
Message generated for change (Comment added) made by akuchling
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1041501group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #1338995, was opened at 2005-10-26 18:08
Message generated for change (Comment added) made by montanaro
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1338995group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #901198, was opened at 2004-02-20 11:47
Message generated for change (Comment added) made by akuchling
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=901198group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #1349316, was opened at 2005-11-05 21:07
Message generated for change (Comment added) made by akuchling
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1349316group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #1372650, was opened at 2005-12-04 03:47
Message generated for change (Comment added) made by jjlee
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1372650group_id=5470
Please note that this message will contain a full copy of the comment thread,
Bugs item #1349316, was opened at 2005-11-05 21:07
Message generated for change (Settings changed) made by akuchling
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1349316group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #878275, was opened at 2004-01-16 14:22
Message generated for change (Comment added) made by jjlee
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=878275group_id=5470
Please note that this message will contain a full copy of the comment thread,
Bugs item #1164912, was opened at 2005-03-16 19:27
Message generated for change (Comment added) made by akuchling
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1164912group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #878275, was opened at 2004-01-16 14:22
Message generated for change (Comment added) made by jjlee
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=878275group_id=5470
Please note that this message will contain a full copy of the comment thread,
Bugs item #847665, was opened at 2003-11-23 10:21
Message generated for change (Comment added) made by akuchling
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=847665group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #847665, was opened at 2003-11-23 10:21
Message generated for change (Comment added) made by akuchling
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=847665group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #847665, was opened at 2003-11-23 10:21
Message generated for change (Comment added) made by akuchling
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=847665group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #1372650, was opened at 2005-12-03 18:47
Message generated for change (Comment added) made by valankar
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1372650group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #1373150, was opened at 2005-12-05 00:00
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1373150group_id=5470
Please note that this message will contain a full copy of
Bugs item #1373161, was opened at 2005-12-05 00:25
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1373161group_id=5470
Please note that this message will contain a full copy of
Bugs item #1373150, was opened at 2005-12-04 16:00
Message generated for change (Comment added) made by bcannon
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1373150group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #1346144, was opened at 2005-11-02 17:07
Message generated for change (Comment added) made by mwh
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1346144group_id=5470
Please note that this message will contain a full copy of the comment thread,
Bugs item #1346144, was opened at 2005-11-02 17:07
Message generated for change (Settings changed) made by mwh
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1346144group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #1373150, was opened at 2005-12-05 00:00
Message generated for change (Comment added) made by mwh
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1373150group_id=5470
Please note that this message will contain a full copy of the comment thread,
Bugs item #1223238, was opened at 2005-06-18 19:37
Message generated for change (Comment added) made by nirs
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1223238group_id=5470
Please note that this message will contain a full copy of the comment thread,
Bugs item #1373197, was opened at 2005-12-05 04:05
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1373197group_id=5470
Please note that this message will contain a full copy of
Bugs item #1373197, was opened at 2005-12-05 04:05
Message generated for change (Comment added) made by nirs
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1373197group_id=5470
Please note that this message will contain a full copy of the comment thread,
101 - 186 of 186 matches
Mail list logo