The Python Quick Reference Card (PQRC) aims to provide a printable quick
reference documentation for the Python language and some of its main
standard libraries (currently for Python 2.4).
PQRC tries to group informations about same/similar subject to avoid
searching in multiple places.
It is
QOTW: Making a user class work anywhere you can put a mapping in Perl is
deep magic, but easy in Python. Creating types that act like files and can be
used wherever a file is used is SOP in Python; I'm not even sure it's
possible in Perl (probably is, but it's again deep magic). - Mike Meyer
...
I'm pleased to announce the 0.9.0 release of devtools.
What's new ?
2006-05-31 -- 0.9.0
* buildpackage: offers to test the packages with piuparts
* preparedistrib: offers to copy the COPYING file from a set of
known licenses
* buildpackage: fixed missing
Giovanni Bajo wrote:
I found this strange:
python -mtimeit sum(int(L) for L in xrange(3000))
100 loops, best of 3: 5.04 msec per loop
python -mtimeit import itertools; sum(itertools.imap(int, xrange(3000)))
100 loops, best of 3: 3.6 msec per loop
I thought the two constructs could
Giovanni Bajo wrote:
I found this strange:
python -mtimeit sum(int(L) for L in xrange(3000))
100 loops, best of 3: 5.04 msec per loop
python -mtimeit import itertools; sum(itertools.imap(int,
xrange(3000)))
100 loops, best of 3: 3.6 msec per loop
I thought the two
Hi ,
I have writen a python program to slove a problem described as below:
(Forgive my poor English !)
Put the 2^n 0 or 1 to form a ring , and we can select any continuous n
ones from
the ring to constitute a binary number . And obviously we can get 2^n
selections ,
so the question is :
Given a
hi:
Good afternoon.
Has this problem solved in the URL http://mail.python.org/pipermail/python-list/2006-April/338849.html. Now I have the same problem to deal with. If you have any suggestion please tell me.
Thanks.
Johnny Ma
come from China
你 不 想 试 试 今 夏 最 “酷” 的 邮 箱 吗 ?
蕴 涵 中 华 传 统
Giovanni Bajo wrote:
I found this strange:
python -mtimeit sum(int(L) for L in xrange(3000))
100 loops, best of 3: 5.04 msec per loop
python -mtimeit import itertools; sum(itertools.imap(int, xrange(3000)))
100 loops, best of 3: 3.6 msec per loop
I thought the two constructs could
Bo Yang enlightened us with:
I have writen a python program to slove a problem described as
below:
Please post again, but then leaving indentation intact, since this is
unreadable.
Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for
Fredrik Lundh wrote:
I found this strange:
python -mtimeit sum(int(L) for L in xrange(3000))
100 loops, best of 3: 5.04 msec per loop
python -mtimeit import itertools; sum(itertools.imap(int,
xrange(3000))) 100 loops, best of 3: 3.6 msec per loop
I thought the two constructs could
On 31/05/2006 4:58 PM, Bo Yang wrote:
Hi ,
I have writen a python program to slove a problem described as below:
(Forgive my poor English !)
Put the 2^n 0 or 1 to form a ring ,
Sorry, I can't understand that. It would be very helpful if you wrote
out (for example, when n == 3) what the
Ooops,
w must be 'w' - sorry for adding more confusion :-D
I would also like to add that this is a more realistic useage
appendix = '.txt' # or '.csv' or whatever
# some code
c += 1
filetitle = 'result_' + zeropadding(c) + str(c)
myfile = open(filetitle+appendix,'w')
# etc
Hope that was a
Have you considered Graphwiz with Python bindings?
http://www.graphviz.org/
http://yapgvb.sourceforge.net/
--
http://mail.python.org/mailman/listinfo/python-list
hello,
i installed SOAPpy 0.12.0 and pyXML 0.8.4 in order to try out the
google-search example in diveintopython
http://diveintopython.org/soap_web_services/index.html
however, i'v been trying and trying and won't get it to work :-(
whenever i run this code, i get the attached exception...
from
On Monday 29 May 2006 12:28, SuperHik wrote:
aum wrote:
On Mon, 29 May 2006 09:05:36 +0200, SuperHik wrote:
Hi,
I was wondering how to make a single .exe file, say some kind od clock,
and be able to save some settings (alarm for example) into the same
file? Basically make code rewrite
I am sorry , and thanks for your friendliness .
I have change my source code for more meaningful variable name and more
comments follow the instructions
John has writen . I think that is useful for you to look my code .
And this time I put the code in the attachment . Indeed , I write that
in
I am sorry , and thanks for your friendliness .
I have change my source code for more meaningful variable name and more
comments follow the instructions
John has writen . I think that is useful for you to look my code .
And this time I put the code in the attachment . Indeed , I write that
in
Le Mercredi 31 Mai 2006 08:58, Bo Yang a écrit :
RuntimeError: maximum recursion depth exceeded
It's tied to the recursive call to the ring function, python raises a limit to
recursive calls to avoid infinite recursion.
You can just adjust the limit using these two lines when you call the
thanks for all your replies. lemur looks pretty interesting!
robin
gene tani wrote:
robin wrote:
hello list,
does anyone know of a library which permits to summarise text? i've
been looking at nltk but haven't found anything yet. any help would be
unclear what you're asking, maybe look
Hi,
Can anyone tell me a good python editor/IDE?
It would be great if you can provide the download link also.
Thank You,
-Manoj-
SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA - SURVEY 2005
conducted by the BUSINESS TODAY - Mercer - TNS India
Manoj Kumar P wrote:
Hi,
Can anyone tell me a good python editor/IDE?
It would be great if you can provide the download link also.
pydev on top of eclipse is a nice tool.
--
hilsen/regards Max M, Denmark
http://www.mxm.dk/
IT's Mad Science
Phone: +45 66 11 84 94
Mobile: +45 29 93 42
Manoj Kumar P wrote:
Can anyone tell me a good python editor/IDE?
emacs!
It would be great if you can provide the download link also.
google it!
/F
--
http://mail.python.org/mailman/listinfo/python-list
On 30 May 2006 21:53:32 -0700, greenflame [EMAIL PROTECTED]
wrote:
Thank you all for all of your help. Also I got the shuffle function to
work. Do not worry I will be back soon with more shuffling! However, I
do not quite understand this DSU that you mention, although it looks
useful.
I didn't
Manoj Kumar P wrote:
Can anyone tell me a good python editor/IDE?
vim!
It would be great if you can provide the download link also.
google it!
/F
--
http://mail.python.org/mailman/listinfo/python-list
PyScripter is small and fast.
http://mmm-experts.com/Products.aspx?ProductId=4
Hi,
Can anyone tell me a good python editor/IDE?
It would be great if you can provide the download link also.
Thank You,
-Manoj-
SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA -
SURVEY
greenflame wrote:
Zhang Fan wrote:
On 30 May 2006 20:18:19 -0700, greenflame [EMAIL PROTECTED] wrote:
Second of all, I would like to have
other methods of shuffling, prefererably riffle shuffling and just
plain randomly arranging the elements of the list.
The random module has a `shuffle'
Manoj Kumar P enlightened us with:
Can anyone tell me a good python editor/IDE?
It would be great if you can provide the download link also.
VIM 7 is great, http://www.vim.org/
Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity,
David C Ullrich enlightened us with:
I thought that the fact that you could use the same trick for
_shuffling_ a list was my idea, gonna make me rich and famous. I
guess I'm not the only one who thought of it. Anyway, you can use
DSU to _shuffle_ a list by decorating the list with random
John Machin [EMAIL PROTECTED] wrote:
Whitespace is a silly term, anyway (IMHO); is there such a
thing as a space that is not white?
Yes, if you go back to the term's origins in printshops. A solid
block of ink is space, not print, but it's not whitespace. We've
kept the word alive, even if the
On Tuesday 30 May 2006 10:36, [EMAIL PROTECTED] wrote:
Your first question should be: Is it alright that Xah harasses 5
newsgroups? Or maybe work on your spelling, harass is with one r, but
maybe you didn't read the subject, which wouldn't amaze me, since you
sound like you should be spending
Le Mercredi 31 Mai 2006 12:03, Manoj Kumar P a écrit :
Hi,
Can anyone tell me a good python editor/IDE?
It would be great if you can provide the download link also.
I didn't see on this list much PyQT users, is there a consensus about it ?
I vote for linux+kdevelop for a good IDE (didn't try
Manoj Kumar P enlightened us with:
Can anyone tell me a good python editor/IDE?
It would be great if you can provide the download link also.
VIM 7 is great, http://www.vim.org/
Sybren
Another VIM user here
--
---
Rony Steelandt
BuCodi
rony dot steelandt (at) bucodi dot com
Visit the
On 31/05/2006 7:20 PM, Bo Yang wrote:
I am sorry , and thanks for your friendliness .
I have change my source code for more meaningful variable name and more
comments follow the instructions
John has writen . I think that is useful for you to look my code .
And this time I put the code in
Sion Arrowsmith [EMAIL PROTECTED] writes:
And if we didn't say whitespace, how would we distinguish between
space characters meaning and whitespace characters
meaning \t\r\n\v? (OK, has anyone met a \v in the wild?)
Not me. But I routinely use a whitespace character you omitted: '\f'
[Please refrain from obnoxious advertising or legal disclaimers on
your messages to any discussion forum.]
Manoj Kumar P [EMAIL PROTECTED] writes:
Can anyone tell me a good python editor/IDE?
The leading programmer's editors are Emacs and Vim. Both have good
support for working with Python.
per9000 [EMAIL PROTECTED] writes:
appendix = '.txt' # or '.csv' or whatever
# some code
c += 1
filetitle = 'result_' + zeropadding(c) + str(c)
myfile = open(filetitle+appendix,'w')
Resist the urge to construct strings by concatenation, when Python's
built-in string formatting
Manoj Kumar P wrote:
Hi,
Can anyone tell me a good python editor/IDE?
It would be great if you can provide the download link also.
I hate to be the one answering this, but this is *really* a FAQ - as you
would have known if you had google'd this group for this.
--
bruno desthuilliers
Hi!
Komodo (http://www.activestate.com/Products/Komodo) is great, for me.
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, 31 May 2006 12:17:11 +0200, Sybren Stuvel
[EMAIL PROTECTED] wrote:
David C Ullrich enlightened us with:
I thought that the fact that you could use the same trick for
_shuffling_ a list was my idea, gonna make me rich and famous. I
guess I'm not the only one who thought of it. Anyway,
Dear Python developers,
I use a short python script in order to run an external application plus
to open a browser displaying a default page.
My Setup: Python 2.4.3. / Windows2000
# --
# Script shortcut.py
import os
import
On 31/05/2006 8:17 PM, Sion Arrowsmith wrote:
John Machin [EMAIL PROTECTED] wrote:
Whitespace is a silly term, anyway (IMHO); is there such a
thing as a space that is not white?
Yes, if you go back to the term's origins in printshops. A solid
block of ink is space, not print, but it's not
Laszlo Nagy wrote:
For Windows, you can use the 'runas.exe' program. But it requires a
password too.
Or you can get a copy of the shareware program RunAsProfessional, which
I use for my kids stupid games that necessarily has to be run by an
admin. The price I paid was 10 Euro, which I still
The Condition of Industrial Programers
Xah Lee, 2006-05
Before i stepped into the computing industry, my first industrial
programing experience is at Wolfram Research Inc as a intern in 1995.
(Wolfram Research is famously known for their highly successful
flagship product Mathematica) I thought,
Dear Python developers,
I use a short python script in order to run an external application plus to
open a browser displaying a default page.
My Setup: Python 2.4.3. / Windows2000
# --
# Script shortcut.py
import os
On Wed, 31 May 2006 15:33:29 +0530, Manoj Kumar P [EMAIL PROTECTED]
wrote:
Hi,
Can anyone tell me a good python editor/IDE?
It would be great if you can provide the download link also.
For a simple start:
Scite is small, good, cross platform, free and open source
and you can launch the
robin wrote:
from SOAPpy import WSDL
WSDLFILE = '/pathtomy/googleapi/GoogleSearch.wsdl'
APIKEY = ''
_server = WSDL.Proxy(WSDLFILE)
Robin, note this part of the URI set in WSDLFILE:
'/pathtomy/googleapi'. Get it? 'path to my google api'. You must set
this part to the actual path where
The problem is not the latitude/longitude. It would be trivial to
compute the great circle, thus the length of the trip between A and B
and divide it in smaller pieces to get 1-mile-distances.
Yeah, I am starting to wish we drove in straight lines.
But unless you own an Aircraft are
print hello world
I have a nested loop where the outer loop iterates over key value pairs
of a dictionary and the inner loop iterates over a list each list of
which is a mapped value from the dictionary
def showReport(self):
for dev, sessions in self.logger.items():
for
mateus wrote:
print hello world
I have a nested loop where the outer loop iterates over key value pairs
of a dictionary and the inner loop iterates over a list each list of
which is a mapped value from the dictionary
def showReport(self):
for dev, sessions in
Hi!
Using XP SP2, PythonWin 2.4.3, any trying to use wx 2.6.3.2
When using wx, the first time I run a script it runs fine.
Second time, it rasises an error:
[Script]**
import wx
app = wx.App()
win = wx.Frame(None, title=Simple Editor)
win.Show()
app.MainLoop()
mateus wrote:
print hello world
I have a nested loop where the outer loop iterates over key value pairs
of a dictionary and the inner loop iterates over a list each list of
which is a mapped value from the dictionary
def showReport(self):
for dev, sessions in
Thanks to the great many people who has written to my ISP in support of
me. I'm sorry to say, it looks like they will be killing my account
anyhow. I have exchanged a couple letters with the guy at my web host
and he is not changing the decision.
Of this thread, i think 2/3 or 3/4 supported my
Hi Mateus,
We'd need to see more code then just this snippet. It looks like the
name 'session' is used elsewhere in the code, and is in scope for the
showReport() method.
But without seeing a bit more code of this class, and possibly global
variables / code, it's not possible to say this.
# Script shortcut.py
import os
import webbrowser
import win32api
# open default web browser and display webbpage
page = 'C:\\Temp\\Welcome.html'
webbrowser.open(page)
# path to application that is opened
path = C:\\Program Files\\ExternalApplication.exe
# get short name
Scott David Daniels wrote:
[EMAIL PROTECTED] wrote:
Scott David Daniels wrote:
Sorry, re-iterables. A file re-iterable is:
class FileReIterable(object): ...
def __iter__(self):
self.file.seek(0)
return iter(self.file)
This works
mateus wrote:
print hello world
I have a nested loop where the outer loop iterates over key value pairs
of a dictionary and the inner loop iterates over a list each list of
which is a mapped value from the dictionary
def showReport(self):
for dev, sessions in
In article [EMAIL PROTECTED],
Scott David Daniels [EMAIL PROTECTED] wrote:
This works if-and-only-if it is only in use once at a time.
If you have multiple simultaneous accesses, you need to do
something like:
class FileReIterable2(object):
def __init__(self, file):
Gary Herron wrote:
List comprehension is a great shortcut, but when the shortcut starts
causing trouble, better to go with the old ways. You need to reopen each
file each time you want to iterate through it. You should be able to
understand the difference between these two bits of code.
The
mateus [EMAIL PROTECTED] wrote:
print hello world
I have a nested loop where the outer loop iterates over key value
pairs of a dictionary and the inner loop iterates over a list
each list of which is a mapped value from the dictionary
def showReport(self):
for dev, sessions
On 2006-05-31, Sergei Organov [EMAIL PROTECTED] wrote:
It seems that sniff on a real tty device could be implemented using the
same technique strace uses to intercept and show syscalls, though I'm
not aware of any sniffer application that does it.
Using strace you can indeed trace read/write
bruno at modulix wrote:
Manoj Kumar P wrote:
Hi,
Can anyone tell me a good python editor/IDE?
It would be great if you can provide the download link also.
I hate to be the one answering this, but this is *really* a FAQ - as you
would have known if you had google'd this group for this.
I am trying to create a GUI that will display a new window with information about my program when the user clicks on the info button (a green i bitmap). So far all I can get my program to do is show the new window (using Toplevel() ) when the program loads, not when the user presses the
In article [EMAIL PROTECTED],
Juergen [EMAIL PROTECTED] wrote:
I've got a problem sending floating point values to an corba server.
With other datatyes like short or string it works fine.
Upgrade to the latest stable release, omniORB 4.0.7 and omniORBpy 2.7.
The problem you are seeing is due to
hi kent,
thanks for your reply. in fact it was me who put pathtomy into the
path and exchanged my apikey with
i prefer not everyone to know the name of my directories and even less
my apikey. so the problem isn't there :-(
hope to find some other solution
thanks!!
robin
Mike Kent
[EMAIL PROTECTED] wrote:
Gary Herron wrote:
List comprehension is a great shortcut, but when the shortcut starts
causing trouble, better to go with the old ways. You need to reopen each
file each time you want to iterate through it. You should be able to
understand the difference between
I'm using Python in a scripting environment. The host application would
pass in some objects so that the script can act on it. But there are a
number of things I like to add to every script to make it a decent
environment, for example, setting up exception hook to show error
properly. I tried to
Xah Lee wrote:
Thanks to the great many people who has written to my ISP in support of
me. I'm sorry to say, it looks like they will be killing my account
anyhow. [...]
I'm sorry to see you go for now Xah, but I'll be doubly happy to see
your return :)
Dreamhost isn't the only hosting
My original concern and reason for goint the iterator/generator route
was exactly for large large lists :) Unnecessary in this example, but
exactly what I was exploring. I wouldn't be using list comprehension
for generating the permutiations. Where all this came from was
creating a
I have always found it easiest to scratch a personal itch when learning
a new language. One of the first things I wrote was a shopping list
program for my wife. It was a pretty good way to start learning the
lay of the python libraries - it needed a small object database, a gui
(tk, although I
On 31 May 2006, [EMAIL PROTECTED] wrote:
Most languages stay blindly in their own community, oblivious to the
nature or facts of computing languages outside of their world. If
there are more relevant cross-posting, then this problem can be
lessened.
(cross-posted to c.l.perl.misc and
SuperHik wrote:
(1) A wxPython question. Better to ask on the wxPython newsgroup
(listed as comp.python.wxpython on gmane).
Using XP SP2, PythonWin 2.4.3, any trying to use wx 2.6.3.2
When using wx, the first time I run a script it runs fine.
Second time, it rasises an error:
Up
Hi,
I am planning to develop python applications on windows and run them on
Linux. Are ActivePython scripts compatible with Linux? Is there any
guideline that explains the compatibility issues between python in different
platforms?
What would be the best approach for what I am trying to
On 5/31/06, Manoj Kumar P [EMAIL PROTECTED] wrote:
Hi,
Can anyone tell me a good python editor/IDE?
It would be great if you can provide the download link also.
Thank You,
-Manoj-
SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA - SURVEY
2005 conducted by the BUSINESS
Jim Segrave wrote:
In article [EMAIL PROTECTED],
Scott David Daniels [EMAIL PROTECTED] wrote:
class FileReIterable2(object):
...
def __iter__(self):
self.file.seek(0)
for line in self.file:
nextpos = self.file.tell()
Hi,
I am familiar with Perl's DBI programming.
In Python, do we access to Oracle by using DBI? Is Oracle DBD driver
included with Python distributions?
What is the most common strategy for accessing to Oracle data through
Python?
Any help would be appreciated,
Alan
--
Short answer: yes
Things to watch out for:
1) Versions on both Windows/Linux need to be compatible. If Linux
has same or later version, you are normally OK. If Linux version
is older, you will have to use only Python Libraries and functions
that are in the oldest version.
2) Don't use
A.M wrote:
Hi,
I am familiar with Perl's DBI programming.
In Python, do we access to Oracle by using DBI?
No.
Is Oracle DBD driver included with Python distributions?
No.
What is the most common strategy for accessing to Oracle data through
Python?
cx_Oracle seems to be the
Brandon McGinty [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi,
I've been learning python for the past couple of months and writing misc
scripts here and there, along with some web apps.
I'm wondering if anyone has ideas of programs I might try my hand at
making?
I'd appreciate
I wonder if some kind soul can help me in my struggle with DLLs?
I am trying -- not because I want to, but because I have been told to --
to import things from an API that exists as a bunch of .COM DLLs.
I had originally hoped to get them into a Python 2.4 program by a simple
import
Thanks alot Larry for your comprehensive answer.
Larry Bates [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Short answer: yes
Things to watch out for:
1) Versions on both Windows/Linux need to be compatible. If Linux
has same or later version, you are normally OK. If Linux
Hello,
I was wondering if anyone has written a converter between python code and NQC
(http://bricxcc.sourceforge.net/nqc/) used for programming LEGO Mindstorms? I
am
thinking that a small modification to Pyrex might be used, but I am not sure
how to
proceed with something like that. I was
I was wondering if anyone here on the group could point me in a
direction that would expllaing how to use python to convert a tsv file
to html. I have been searching for a resource but have only seen
information on dealing with converting csv to tsv. Specifically I want
to take the values and
Bill Scherer [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
A.M wrote:
Hi,
I am familiar with Perl's DBI programming.
In Python, do we access to Oracle by using DBI?
No.
Is Oracle DBD driver included with Python distributions?
No.
What is the most common strategy
A.M wrote:
I am planning to develop python applications on windows and run them on
Linux.
Larry Bates [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Short answer: yes
A.M wrote:
Thanks alot Larry for your comprehensive answer.
Small addition: test, test, test. This is the only
robin [EMAIL PROTECTED] wrote:
hello,
i installed SOAPpy 0.12.0 and pyXML 0.8.4 in order to try out the
google-search example in diveintopython
http://diveintopython.org/soap_web_services/index.html
however, i'v been trying and trying and won't get it to work :-(
whenever i run this code,
to regurgitate what others have said.
trying to solve a real-world problem is significantly more educational that
writing toy programs and class assignments.
Solving a real-world problem will generate more interest in your potential
ability that knowing any language.
Pick a problem that you and
Hi,
I am new to python. I read an example here about how to fetch data thru
a HTTP connection:
http://diveintopython.org/http_web_services/review.html,
My question is how can i save the data to a file after reading it from
a http connection.
Thank you.
--
I was wondering if anyone here on the group could point me
in a direction that would expllaing how to use python to
convert a tsv file to html. I have been searching for a
resource but have only seen information on dealing with
converting csv to tsv. Specifically I want to take the
Scott David Daniels wrote:
SuperHik wrote:
(1) A wxPython question. Better to ask on the wxPython newsgroup
(listed as comp.python.wxpython on gmane).
I'm aware it's a wxPython question but I wasn't aware
of the group you mentioned. Thank you!
Using XP SP2, PythonWin 2.4.3, any
A.M wrote:
Bill Scherer [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
A.M wrote:
Hi,
I am familiar with Perl's DBI programming.
In Python, do we access to Oracle by using DBI?
No.
Is Oracle DBD driver included with Python distributions?
No.
On Wed, May 31, 2006 at 11:37:47AM -0700, [EMAIL PROTECTED] wrote:
I am new to python. I read an example here about how to fetch data thru
a HTTP connection:
http://diveintopython.org/http_web_services/review.html,
My question is how can i save the data to a file after reading it from
a
I agree with Fred.
So here is a problem I had and wanted to solve.
I needed an Atomic clock (well, not the real one but the one
that connects to NTP server and gets the exact time) in a
window that stays always on top. While I was writing it I
included alarm, and a stopwatch.
Than I wrote a simple
In article [EMAIL PROTECTED],
Fuzzyman [EMAIL PROTECTED] wrote:
.
.
.
Fuzzyman advertises yet another convenience of Movable Python:
http://groups.google.com/group/comp.lang.python/msg/35baaa3af891c12f
Hi all. Quick question (but aren't they all?) :)
Do you think it's a good idea to use the 'from name import *'
statement when using a GUI module? It seems on wxPython's site, they
recommend using import wx nowadays, but I wonder if that advice is
followed. Also, I'm still reading some Tkinter
John Salerno wrote:
Hi all. Quick question (but aren't they all?) :)
Do you think it's a good idea to use the 'from name import *'
statement when using a GUI module? It seems on wxPython's site, they
recommend using import wx nowadays, but I wonder if that advice is
followed. Also, I'm
John Salerno [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi all. Quick question (but aren't they all?) :)
Do you think it's a good idea to use the 'from name import *'
statement when using a GUI module? It seems on wxPython's site, they
recommend using import wx nowadays, but
[EMAIL PROTECTED] wrote:
Personally I prefer explicit to implicit, and typing wx. is not really
that much to type is it?
No, but typing Tkinter. is! ;)
--
http://mail.python.org/mailman/listinfo/python-list
Le 31-05-2006, John [EMAIL PROTECTED] nous disait:
Hi all. Quick question (but aren't they all?) :)
Do you think it's a good idea to use the 'from name import *'
statement when using a GUI module? It seems on wxPython's site, they
recommend using import wx nowadays, but I wonder if that
Terry Reedy wrote:
If I were to use Tkinter, I would 'import Tkinter as tk'.
Good idea!
I was kind of excited about Tkinter for a little while...seems very
easy, and it has an event delegation system that I understand! But then
I saw that for a toolbar you use a Frame? And for a status bar
Sybren Stuvel wrote:
David C Ullrich enlightened us with:
I thought that the fact that you could use the same trick for
_shuffling_ a list was my idea, gonna make me rich and famous. I
guess I'm not the only one who thought of it. Anyway, you can use
DSU to _shuffle_ a list by decorating
1 - 100 of 151 matches
Mail list logo