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 e
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.
mal
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
"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
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 opt
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-t
>> 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/
moin
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:
https://bugs.eclips
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, automat
>>> 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 e
[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 re
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 w
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 a
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.
> >
> >
> > g
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"
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 few
"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
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, incl
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')
can
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.py
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 pro
[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
>> 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
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 valu
>>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
implicat
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
> retriev
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()
>
[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 sam
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
[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
>
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 vers
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
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 be
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 na
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
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 "", 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
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 ar
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 char
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
>> 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
>
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 sim
> 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 abo
101 - 153 of 153 matches
Mail list logo