* Victor Eijkhout:
I have two arrays, made with numpy. The first one has values that I want
to use as sorting keys; the second one needs to be sorted by those keys.
Obviously I could turn them into a dictionary of pairs and sort by the
first member, but I think that's not very efficient, at leas
* Abethebabe:
I wanted to know if there was a way I could get a Python program to
run off of my flash drive as soon as the computer (Windows) detected
the device?
For example I could have a a simple program that would create a text
document on the computers desktop when my flash drive is detecte
On 03/31/10 22:37, J wrote:
Is there any way to tell PyDev in Eclipse to run a script that doesn't
end in .py? Even if I have to go and manually set something for each
file...
I've inherited (in a manner of speaking) a dev project that is done in
python2.6... I pulled the latest dev branch and
* kj:
When coding C I have often found static local variables useful for
doing once-only run-time initializations. For example:
int foo(int x, int y, int z) {
static int first_time = TRUE;
static Mongo *mongo;
if (first_time) {
mongo = heavy_lifting_at_runtime();
first_time = FAL
Hi,
I'm working with Python 2.6.4 on Ubuntu 9.10 and noticed a difference
between IDLE and command line python. If I enter an é (accented e,
LATIN SMALL LETTER E WITH ACUTE) as a unicode string in command line
python I get this:
>>> u'é'
u'\xe9'
In IDLE 2.6.4 I get this:
>>> u'é'
u'\xc3\xa9'
* Jason Friedman:
Hi, what is the difference between:
def MyClass(object):
pass
and
def MyClass():
pass
If you really meant 'def', then the first is a routine taking one argument, and
the second is a routine of no arguments.
If you meant 'class' instead of 'def', then it depends o
* Steve Holden:
Alf P. Steinbach wrote:
* Jason Friedman:
Hi, what is the difference between:
def MyClass(object):
pass
and
def MyClass():
pass
If you really meant 'def', then the first is a routine taking one
argument, and the second is a routine of no arguments.
If
On 04/03/10 14:38, Steve Holden wrote:
If you think you will persuade a crackpot to drop his lunacy by logical
argument you are clearly an optimist of the first water. But since I
like a challenge (and bearing in mind this is OT so I don't claim to be
an expert) you might try first of all persu
On 04/03/10 16:17, Steven D'Aprano wrote:
On Sat, 03 Apr 2010 15:43:41 +0100, Martin P. Hellwig wrote:
I am replying to this post not because I disagree but because it
postalogically fits the best (I am by no means an expert either).
IMHO, the crackpot in this regard is actually part
On 04/03/10 16:46, Patrick Maupin wrote:
On Apr 3, 9:43 am, "Martin P. Hellwig"> IMHO, the crackpot in this
regard is actually partially right,
multiplication does mean that the number must get bigger, however for
fractions you multiply four numbers, two numerators and two
deno
* Steven D'Aprano:
Tests which you know can't fail are called assertions, pre-conditions and
post-conditions. We test them because if we don't, they will fail :)
:-)
It's the umbrella law.
Cheers,
- Alf
--
http://mail.python.org/mailman/listinfo/python-list
uared wheel
or am totally missing the point.
Any suggestions/comments are greatly appreciated,
Thanks in advanced,
Martin P. Hellwig
--
http://mail.python.org/mailman/listinfo/python-list
On 01/14/11 03:04, Kushal Kumaran wrote:
- Original message -
Hi all,
I have the following problem (which I already have a hacked around
solution that works but I'd would like some more input on it):
I have a situation where multiple python processes are started
independently from each
On 01/14/11 10:05, Kushal Kumaran wrote:
This might help though:
https://code.google.com/p/modwsgi/wiki/ProcessesAndThreading
It seems if you're not using 'daemon' mode, global data might be shared.
Yes I read that thoroughly before I started out implementing a solution.
B
On 01/17/11 19:39, rantingrick wrote:
Q: If you could replace Tkinter with any module/library (THAT IS NOT A
GUI OR IDE!!) what would you like to see fill its place?
Some systems, like FreeBSD have Tkinter and IDLE as a separate package
which is not installed by default. Purely because those
On 01/17/11 22:00, rantingrick wrote:
On Jan 17, 2:09 pm, "Martin P. Hellwig"
wrote:
fortunately it is not my call and I actually
quite like Tkinter.
Are you sure about that Martin? :)))
From: "Martin P. Hellwig"
Newsgroups: comp.lang.python
Subject: Re: GUIs - A Modes
On 02/03/11 10:59, AlienBaby wrote:
On Feb 3, 10:22 am, AlienBaby wrote:
Hi,
I'm attempting to convert some date-time strings from a text file
under windows into a datetime object as returned by strptime()
However, the strings can represent dates in various formats based on
the country of ori
Hi all,
Information on using tkinter for displaying an svg image seems a bit low
spread on the Internet. I recently played around with pygame and svg and
realized, hold on this can be done with tk too. So I thought I post a
little example for future generations :-) (and also have stored at
ht
On 02/16/11 09:04, Arndt Roger Schneider wrote:
raster images from SVG:
There are multiple methods to convert a scalable vector graphic
into a bitmap.
In addition to cairo, librsvg and rsvg imageMagick contains a
vector graphic format similar to svg--gradients and transparency
are problematic fo
* Steven D'Aprano:
I have a hierarchical structure something like a directory tree or a
nested tree structure:
Mammal
+-- Ape
: +-- Chimpanzee
: +-- Gorilla
: +-- Human
+-- Carnivore
: +-- Cat
: +-- Tiger
Reptile
+-- Lizard
+-- Snake
+-- Cobra
+-- Python
This is a forest
* Ethan Furman:
Steve Howell wrote:
On Apr 3, 9:58 pm, Tim Roberts wrote:
Alain Ketterlin wrote:
I've just spent a few hours debugging code similar to this:
d = dict()
for r in [1,2,3]:
d[r] = [r for r in [4,5,6]]
print d
Yes, this has been fixed in later revisions, but I'm curious
* ratingrick:
A while back i had wondered why Guido never posts to c.l.py anymore.
Was it because he thinks himself better than us, no, it's because of
the "low-brow-infantile-Jerry-Springer-ish-nature" that this list has
imploded into.
Perhaps Guido provides subtle guidance under some unreco
* Patrick Maupin:
On Apr 4, 11:14 am, "Alf P. Steinbach" wrote:
"He walks among you, and you don't recognize him" - Old jungle proverb
Hm, interesting Google results for that phrase.
Interesting self-promotion :-)
No, I'm not Guido.
Cheers,
- Alf
--
* johngilbrough:
I cannot make sense of what's happening here ... I'm getting the
following error:
initializing last modified time
/home/john/Dropbox/Projects/python/scripts/src 29
referencing last modified time
/home/john/Dropbox/Projects/python/scripts/src 29
referencing last modified time
Tr
* Stephen Hansen:
On 2010-04-04 15:22:48 -0700, Alf P. Steinbach said:
* johngilbrough:
I cannot make sense of what's happening here ... I'm getting the
following error:
(1)
At least in Py3 you can declare the variable as 'global', like this:
global lastModi
On 04/05/10 00:05, r wrote:
However i have also considered that maybe *all* the "well knowns" are
in fact the many colorful personalities of Guido.
De vraag is dan natuurlijk of al zijn persoonlijkheden nog steeds
nederlands machtig zijn.
--
mph
--
http://mail.python.org/mailman/listinfo/
* jdbosmaus:
Pretty new to Python, but I thought I understood what is meant by "an
assignment is a reference."
Until I tried to understand this.
Here is a (fragment of an) event handler for a group of three wxPython
toggle buttons. The idea is to change the appearance of the label of
the button
* Brendan Miller:
Thanks Steven and Gabriel. Those are very informative responses.
In my case my resource isn't bound to a lexical scope, but the:
def __del__(self,
delete_my_resource=delete_my_resource):
pattern works quite well. I've made sure to prevent my class from
being
Consider ...
import urllib.request # urlopen
import codecs # getreader
import sys # stderr
def text_stream_from( url, encoding ):
text_reader = codecs.getreader( encoding )
connection = urllib.request.urlopen( url )
return text_reader( connection )
def lis
On 04/09/10 05:13, Alf P. Steinbach wrote:
Second, I'm unable to find documentation of when they're called and what
they do. It seems that (A) when the connection object's stream is
exhausted by reading, its close() method is called automatically, and
(B) that when the text_
language unrelated to normal maths syntax for doing so:
# Calculate the roots of sin**2(3*x-y):
result = me.compile("{^g.?+*y:h}|\Y^r&(?P:2+)|\w+(x&y)|[?#\s]").solve()
http://www.youtube.com/watch?v=a9xAKttWgP4
Cheers,
- Alf
--
http://mail.python.org/mailman/listinfo/python-list
* Gabriel Genellina:
En Fri, 09 Apr 2010 01:13:37 -0300, Alf P. Steinbach
escribió:
>
> import urllib.request # urlopen
> import codecs # getreader
> import sys # stderr
>
> def text_stream_from( url, encoding ):
> text_reader = codec
On 04/12/10 06:57, Mensanator wrote:
On Apr 11, 6:08 pm, Steven D'Aprano wrote:
On Sun, 11 Apr 2010 11:54:04 -0700, Mensanator wrote:
On Apr 11, 11:53 am, Steven D'Aprano wrote:
On Sat, 10 Apr 2010 21:08:44 -0700, Mensanator wrote:
Maybe because I'm a user, not a developer.
You write co
* Alex Hall:
Hi all,
I am just curious: if Python3.x is already out, why is 2.7 being
released? Are there two main types of Python? Thanks.
Old code and old programming habits may work as-is with 2.7 but not with a 3.x
implementation.
So yes, there are two main extant variants of Python, 2.x
On 04/13/10 15:01, John Maclean wrote:
I normally use languages unit testing framework to get a better
understanding of how a language works. Right now I want to grok the
platform module;
1 #!/usr/bin/env python
2 '''a pythonic factor'''
3 import unittest
4 import platform
5
6
* Alex Hall:
Hi all,
For testing purposes, and because I am not yet distributing my
application (which, thanks to you all, is now running perfectly!), I
am going to just bundle msvcr90.dll. However, I cannot find it! I ran
vcredist_x86.exe (I have a 64-bit version of win7, but all I have is
the x
Python 3.1.1 in Windows XP Prof:
def number_from_user( prompt ):
while True:
spec = input( prompt )
try:
return float( spec )
except ValueError:
s = "Sorry, '{}' is not a valid number spec. Try e.g. '3.14'."
print( s.format( spec )
* MRAB:
Alf P. Steinbach wrote:
Python 3.1.1 in Windows XP Prof:
def number_from_user( prompt ):
while True:
spec = input( prompt )
try:
return float( spec )
except ValueError:
s = "Sorry, '{}' is not a valid number spec.
* Alf P. Steinbach:
* MRAB:
Alf P. Steinbach wrote:
Python 3.1.1 in Windows XP Prof:
def number_from_user( prompt ):
while True:
spec = input( prompt )
try:
return float( spec )
except ValueError:
s = "Sorry, '{}' is not
* Alf P. Steinbach:
> [About baffling almost not reproducible interpreter crash on Ctrl C]
The error code 0xc417 is some custom one, not a standard Windows code.
Sorry, I was wrong about that, just that the MS ErrLook utility didn't find it.
http://social.msdn.microsoft.com/F
* Alf P. Steinbach:
* Alf P. Steinbach:
> [About baffling almost not reproducible interpreter crash on Ctrl C]
The error code 0xc417 is some custom one, not a standard Windows
code.
Sorry, I was wrong about that, just that the MS ErrLook utility didn't
find it
* Alf P. Steinbach:
Found a another bug discussion with
* same exception,
0xc417 STATUS_INVALID_CRUNTIME_PARAMETER
* same address,
0x78588389
* almost same Python version,
namely Py3,
* almost same context,
namely occurring when program terminates,
at
http
* Steven D'Aprano:
On Fri, 16 Apr 2010 08:48:03 -0700, Aahz wrote:
In article <4bb92850$0$8827$c3e8...@news.astraweb.com>, Steven D'Aprano
wrote:
Nevertheless, it is a common intuition that the list comp variable
should *not* be exposed outside of the list comp, and that the for-loop
variable
On 04/18/10 12:49, Tim Diels wrote:
Hi
I was thinking of writing a GUI toolkit from scratch using a basic '2D
library'. I have already come across the Widget Construction Kit.
My main question is: Could I build a GUI toolkit of reasonable
performance with the Widget Construction Kit, would it s
After at least 3 false starts on my programming introduction's chapter 3, and
some good and bad feedback from this group[1], I finally think the present
chapter 3 approach is Good (enough).
So no, I haven't given up in this book project, even though 4 months to produce
these chapter 3's first
On 04/20/10 19:53, Lie Ryan wrote:
Rather than writing a windowing toolkit from the low-level, I would
rather like to see some wrapper for existing windowing toolkit which
uses more pythonic idioms.
Most popular python GUI toolkit currently in use are only a simple thin
wrapper over the librar
On 04/20/10 21:15, Martin P. Hellwig wrote:
On 04/20/10 19:53, Lie Ryan wrote:
Rather than writing a windowing toolkit from the low-level, I would
rather like to see some wrapper for existing windowing toolkit which
uses more pythonic idioms.
Most popular python GUI toolkit currently in use
* Chris Rebert:
On Wed, Apr 21, 2010 at 2:59 AM, Stef Mientki wrote:
On 21-04-2010 10:56, Chris Rebert wrote:
On Wed, Apr 21, 2010 at 1:51 AM, Stef Mientki wrote:
With the following code, I would expect a result of 5 !!
a= 'word1 word2 word3'
a.rfind(' ',7)
11
Is this a bug ?
No. Don'
* Lawrence D'Oliveiro:
In message <4bc9aad...@dnews.tpgi.com.au>, Lie Ryan wrote:
Since in python nothing is guaranteed about implicit file close ...
It is guaranteed that objects with a reference count of zero will be
disposed.
Only in current CPython.
In my experiments, this happens i
* candide:
Suppose a and b are lists.
What is more efficient in order to extend the list a by appending all
the items in the list b ?
I imagine a.extend(b)to be more efficient for only appendinding the
items from b while a+=b creates a copy of a before appending, right ?
No.
But in gener
* luca72:
i get a string from a web server and i save it in to a file, that i
open the file and i read the string:
the string looks like :
http://lhti.gs/JKBTYD
after the read i use webbrowser open (sting), but i get the error
because at the end of the string are added '%0D%0A', and if i ask for
On 04/22/10 15:13, Infinity77 wrote:
For me: //SERVER/gavana/Folder/FileName.txt
Colleague: //SERVER/Colleague/Folder/FileName.txt
So, no matter what I do, the file name stored in the database is user-
dependent and not universal and common to all of us.
If that user dependent part happens t
* Adam Tauno Williams:
On Fri, 2010-04-23 at 16:29 +1200, Lawrence D'Oliveiro wrote:
In message , Chris
Rebert wrote:
On Wed, Apr 21, 2010 at 5:53 PM, Lawrence D'Oliveiro wrote:
In message <4bc9aad...@dnews.tpgi.com.au>, Lie Ryan wrote:
Since in python nothing is guaranteed about implicit fil
* Steven D'Aprano:
On Fri, 23 Apr 2010 13:19:41 +0200, Alf P. Steinbach wrote:
But for a literal context-free interpretation e.g. the 'sys.getrefcount'
function is not documented as CPython only and thus an implementation
that didn't do reference counting would not be
* Luke Kenneth Casson Leighton:
http://pyjs.org/examples/asteroids/public/Space.html
An error has been encountered in accessing this page.
1. Server: pyjs.org
2. URL path: /examples/asteroids/public/examples/asteroids/public/bootstrap.js
3. Error notes: NONE
4. Error type: 404
5. Reques
On 26.04.2010 22:12, * Dodo:
Hi all,
Under python 2.6, chr() "Return a string of one character whose ASCII
code is the integer i." (quoted from docs.python.org)
Under python 3.1, chr() "Return the string of one character whose
Unicode codepoint is the integer i."
I want to convert a ASCII code b
On 26.04.2010 22:26, * Dodo:
Le 26/04/2010 22:26, Alf P. Steinbach a écrit :
On 26.04.2010 22:12, * Dodo:
Hi all,
Under python 2.6, chr() "Return a string of one character whose ASCII
code is the integer i." (quoted from docs.python.org)
Under python 3.1, chr() "Return th
On 28.04.2010 07:11, * Sagar K:
Use triple quote:
d = """ this is
a sample text
which does
not mean
anything"""
"goldtech" wrote in message
news:4e25733e-eafa-477b-a84d-a64d139f7...@u34g2000yqu.googlegroups.com...
On Apr 27, 7:31 pm, Brendan Abel<007bren...@gmail.com> wrote:
On Apr 27, 7:20 p
On 28.04.2010 18:54, * Lie Ryan:
On 04/28/10 15:34, Alf P. Steinbach wrote:
On 28.04.2010 07:11, * Sagar K:
Use triple quote:
d = """ this is
a sample text
which does
not mean
anything"""
"goldtech" wrote in message
news:4e25733e-eafa-477b-a84d-a
* Richard Lamboj:
is there any way to get the name from the actual called function, so that the
function knows its own name?
There was an earlier thread about this not very long ago.
General consensus, as I recall, to replace function with an object of a class
(possibly with __call__ method
On 30.04.2010 01:29, * Carl Banks:
On Apr 28, 11:16 am, "Alf P. Steinbach" wrote:
On 28.04.2010 18:54, * Lie Ryan:
Python have triple-quoted string when you want to include large amount
of text;
Yes, that's been mentioned umpteen times in this thread, including the *ver
On 30.04.2010 04:22, * elsa:
Hi people,
I'm having a problem getting the info I need out of a file.
I've opened the file with f=open('myFile','r').
Next, I take out the first line with line=f.readline()
line looks like this:
'83927 300023_25_5_09_FL 9086 9134 F3LQ2BE01AQLXF 1 49 + 80
ZA8Z89H
On 30.04.2010 12:51, * Lie Ryan:
On 04/30/10 12:07, Alf P. Steinbach wrote:
On 30.04.2010 01:29, * Carl Banks:
On Apr 28, 11:16 am, "Alf P. Steinbach" wrote:
On 28.04.2010 18:54, * Lie Ryan:
Python have triple-quoted string when you want to include large amount
of text;
Y
On 30.04.2010 19:31, * Lie Ryan:
On 05/01/10 00:01, Alf P. Steinbach wrote:
On 30.04.2010 12:51, * Lie Ryan:
On 04/30/10 12:07, Alf P. Steinbach wrote:
On 30.04.2010 01:29, * Carl Banks:
On Apr 28, 11:16 am, "Alf P. Steinbach"wrote:
On 28.04.2010 18:54, * Lie Ryan:
Python h
On 30.04.2010 21:46, * Lie Ryan:
On 05/01/10 05:43, Lie Ryan wrote:
On 05/01/10 03:56, Alf P. Steinbach wrote:
Use triple-quoted, let them flow, done. I've never heard of any text
editor in current use without text wrapping capability, even Notepad has
it. And if I've got 5k
On 30.04.2010 21:40, * Lie Ryan:
On 05/01/10 04:08, Neil Cerutti wrote:
On 2010-04-30, Lie Ryan wrote:
Use triple-quoted, let them flow, done. I've never heard of any
text editor in current use without text wrapping capability,
even Notepad has it. And if I've got 5k of text in source code
wi
On 01.05.2010 14:13, * Tim Chase:
On 05/01/2010 12:08 AM, Patrick Maupin wrote:
+=, -=, /=, *=, etc. conceptually (and, if lhs object supports in-
place operator methods, actually) *modify* the lhs object.
Your proposed .= syntax conceptually *replaces* the lhs object
(actually, rebinds the lhs
On 02.05.2010 06:06, * Aahz:
In article<4bdcd631$0$27782$c3e8...@news.astraweb.com>,
Steven D'Aprano wrote:
On Sat, 01 May 2010 07:13:42 -0500, Tim Chase wrote:
The += family of operators really do rebind the symbol, not modify the
object.
They potentially do both, depending on the object,
* Terry Reedy:
* Alf P. Steinbach:
* Aahz:
and sometimes
they rebind the original target to the same object.
At the Python level that seems to be an undetectable null-operation.
If you try t=(1,2,3); t[1]+=3, if very much matters that a rebind occurs.
Testing:
>&
* Tim Arnold:
This is a question about system design I guess. I have a django
website that allows users to change/view configuration details for
documentation builds. The database is very small. The reason I'm using
a database in the first place is to make it easy for users to change
the configur
On 05/04/10 11:28, superpollo wrote:
Samuel Williams ha scritto:
I personally like indentation.
I just wonder whether it is an issue that some people will dislike.
there might be problems if for example you
generate code from a one-line template.
Well a one-line template code generator are
On 05/04/10 12:59, superpollo wrote:
Martin P. Hellwig ha scritto:
For the corner cases (I can think of a couple) it is good to know you
can use ';' most of the time.
most but not always as i noted (think about loops or function definition)
Well through in some exec magic
On 05/08/10 09:37, Steven D'Aprano wrote:
If encouraging third parties to take open source code and lock it up
behind proprietary, closed licences *isn't* a moral hazard, then I don't
know what one is.
I fail to see what is morally wrong with it. When I ,as the author,
share my work to the pu
On 05/09/10 04:49, Paul Rubin wrote:
As I read it, he is saying that when someone releases free software,
they have "for all intends and purposes lost control over its use", so
they "should have made peace with the fact" and surrender gracefully.
I'm asking why he doesn't think Microsoft has los
On 05/09/10 18:24, Stephen Hansen wrote:
Wait, what? Why shouldn't I profit repeatedly from the "same work
already done"? *I* created, its *mine*. I put blood, sweat and tears
into it and perhaps huge amounts of resources, risking financial
security and sanity, and you're arguing I shouldn't
On 05/09/10 21:06, Stephen Hansen wrote:
On Sun, May 9, 2010 at 12:33 PM, Martin P. Hellwig
mailto:martin.hell...@dcuktec.org>> wrote:
On 05/09/10 18:24, Stephen Hansen wrote:
Wait, what? Why shouldn't I profit repeatedly from the "same
work a
On 15.05.2010 19:18, * Dave:
I've been writing Python for a few years now, and tonight I ran into
something that I didn't understand. I'm hoping someone can explain
this to me. I'm writing a recursive function for generating
dictionaries with keys that consist of all permutations of a certain
set
On 05/20/10 07:51, cosmeticsafrolatino wrote:
hi
250 locahost.local Hello WimaxUser3645-219.wateen.net [110.36.45.219],
pleased to meet you
--
http://mail.python.org/mailman/listinfo/python-list
On 05/21/10 11:21, Deep_Feelings wrote:
python is not a new programming language ,it has been there for the
last 15+ years or so ? right ?
Yeah about the same as Java
however by having a look at this page http://wiki.python.org/moin/Applications
i could not see many programs written in py
On 05/24/10 19:50, narcissus wrote:
Hello , I want to create a program that is one chatroom and everyone
has this program can Enter into that chatroom. how can i do this?
and i want gui for it too (GTK)
What have you tried so far?
--
mph
--
http://mail.python.org/mailman/listinfo/python-list
* Eduardo Alvarez, on 27.05.2010 03:01:
When trying to use nntplib to connect to the news server nntp.aioe.org,
a bizarre sequence of events occurs:
1) I import the module, and create an instance, as follows:
s = nntplib.NNTP('nntp.aioe.org')
I get no errors, which leads me to believe all went
On 05/27/10 02:01, Eduardo Alvarez wrote:
When trying to use nntplib to connect to the news server nntp.aioe.org,
a bizarre sequence of events occurs:
1) I import the module, and create an instance, as follows:
s = nntplib.NNTP('nntp.aioe.org')
I get no errors, which leads me to believe all we
On 05/27/10 13:22, HH wrote:
I have a question about best practices when it comes to line wrapping/
continuation and indentation, specifically in the case of an if
statement.
When I write an if statement with many conditions, I prefer to use a
parenthesis around the whole block and get the impli
On 05/28/10 13:17, Adam Tauno Williams wrote:
You should be able to point it any any file-like object. But, again,
why?
If you have the data in the process why send it to stdout and redirect
it. Why not just send the data to the client directly?
Well you might want to multiplex it to more
On 05/28/10 21:44, Adam Tauno Williams wrote:
On Fri, 2010-05-28 at 15:41 +0100, Martin P. Hellwig wrote:
On 05/28/10 13:17, Adam Tauno Williams wrote:
You should be able to point it any any file-like object. But, again,
why?
If you have the data in the process why send it to stdout and
* Johan Lans, on 29.05.2010 22:51:
Hi
I'm totally new on python and I'm doing an assignement where I'm doing
a class that manipulates a text. The program is also supposed to have
a GUI, for which I have used tkinter.
So far I have entry widgets for file names and buttons, its all
working like I w
* jyoun...@kc.rr.com, on 30.05.2010 03:13:
Just curious if anyone would be willing to share their thoughts
about different Python GUI programming modules. I've been
doing a bit of research and am trying to find something that:
1. Is portable. Would like to be able to send the module along
wit
* candide, on 30.05.2010 19:38:
Suppose a Python program defines an integer object with value 42. The
object has an "address" we can capture with the built-in function id() :
>>> a=42
>>> id(a)
152263540
>>>
Now I was wondering if any integer object with value 42 will be refered
at the same
On 06/03/10 11:16, Pierre Quentel wrote:
I'm not saying that pythonforum.org is the best solution but it
certainly looks more attractive than c.l.p. to the new generation of
Python users
- Pierre
On the other hand it might not be so bad that you don't get questions
from users here who are un
On 06/03/10 12:46, Michele Simionato wrote:
On Jun 3, 12:28 pm, "Martin P. Hellwig"
wrote:
On the other hand it might not be so bad that you don't get questions
from users here who are unable to use a nntp reader or news to mail service.
I am unable to use a nntp reader
* dmtr, on 03.06.2010 23:00:
How can I create an empty object with dynamic attributes? It should be
something like:
m = object()
m.myattr = 1
But this doesn't work. And I have to resort to:
class expando(object): pass
m = expando()
m.myattr = 1
Is there a one-liner that would do the thing
* Payal, on 04.06.2010 12:10:
Hi all,
In http://docs.python.org/tutorial/errors.html#handling-exceptions it
says,
|>>> try:
| ...raise Exception('spam', 'eggs')
Why would I want to use a class for exception? I could simply use raise
w/o it?
Also the help() says,
class Exception(BaseExcepti
* Andreas Waldenburger, on 04.06.2010 20:21:
On Fri, 04 Jun 2010 00:57:15 +1000 Ben Finney
wrote:
Andreas Waldenburger writes:
But consolidation is the *only* way to go, really. The parallelism
between c.l.p. and python-list is great already. Now throw some sort
of Forum in the mix
This
* John Bokma, on 04.06.2010 20:19:
Steven D'Aprano writes:
But the really sad thing is that you think that "bigger" automatically
equals "better".
I don't think that was the point.
Anyway, not everbody can pick a provider, there are plenty of places
that have only one or maybe two. And if t
* Terry Reedy, on 05.06.2010 03:01:
On 6/4/2010 8:01 PM, dmtr wrote:
Why does it have to be a one-liner? Is the Enter key on your keyboard
broken?
Nah. I was simply looking for something natural and intuitive, like: m
= object(); m.a = 1;
Usually python is pretty good providing these natural a
* Dodo, on 05.06.2010 15:46:
Hi,
let's consider this exemple :
from tkinter import *
from tkinter.ttk import *
class First:
def __init__(self):
self.root = Tk()
B = Button(self.root, command=self.op)
B.pack()
self.root.mainloop()
def op(self):
Second(self)
print("print")
class Second:
def
* pyt...@bdurham.com, on 06.06.2010 17:17:
Why not a GUI based on HTML, CSS and Javascript?
To paraphrase another poster and to borrow from SQLite:
Pick any *THREE*:
- Simple
- Beautiful
- Cross-platform
I'm not sure what this discussion is about, but anyway, modern GUI frameworks
/are/ base
* Dodo, on 07.06.2010 12:38:
Le 05/06/2010 19:07, Alf P. Steinbach a écrit :
* Dodo, on 05.06.2010 15:46:
Hi,
let's consider this exemple :
from tkinter import *
from tkinter.ttk import *
class First:
def __init__(self):
self.root = Tk()
B = Button(self.root, command=self.op)
B
On 06/06/10 03:22, ant wrote:
I get the strong feeling that nobody is really happy with the state of
Python GUIs.
Tkinter is not widely liked, but is widely distributed. WxPython and
PyGtk are both
powerful, but quirky in different ways. PyQt is tied to one platform.
And there are
dozens more.
On 06/08/10 07:59, rantingrick wrote:
On Jun 8, 1:39 am, "Martin P. Hellwig"
wrote:
On 06/06/10 03:22, ant wrote:
I get the strong feeling that nobody is really happy with the state of
Python GUIs.
Tkinter is not widely liked, but is widely distributed. WxPython and
PyGtk are bot
1401 - 1500 of 1697 matches
Mail list logo