sable_ list comprehension
What do you think about this ?
Thanks for reading,
Riccardo
--
Riccardo Galli
Sideralis Programs
http://www.sideralis.net
--
http://mail.python.org/mailman/listinfo/python-list
, or if I'm wrong.
Thank you,
Riccardo
--
Riccardo Galli
Sideralis Programs
http://www.sideralis.net
--
http://mail.python.org/mailman/listinfo/python-list
, as the ones in the first
post?
--
Riccardo Galli
Sideralis Programs
http://www.sideralis.net
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, 23 Jun 2005 12:56:08 +0300, Konstantin Veretennicov wrote:
> On 6/22/05, Riccardo Galli <[EMAIL PROTECTED]> wrote:
>
>> I propose to add an 'abs' keyword which would make os.listdir return the
>> absolute path of files instead of a relative path.
>
ctions. Whether the
> results are absolute or relative should depend on the initial argument to
> os.listdir.
>
> Daniel
I got the point, and you're right. I didn't though about that and 'abs' as
keyword becomes nonsense. Needing a more general kewyword, as point
t; -ng
It doesn't depend on the language. There aren't truely portable graphic
interface libraries, which show more than a coloured rectangle.
For *nix, there is also curses-extra, which offers various widgets
(textview,combobox,radio and checkbuttons and so on).
http://www.sideralis.
nd if
we want to use our special join function we can do it simply.
e.g
def func(dir,join=False):
return (join and join(dir,x) or x for x in os.listdir(dir))
os.listdir is actually supposed not to be a generator, like you suggested.
Are there known future changes ?
Bye,
Riccardo
--
Riccardo
e1 must _always_ have a true value (so not
None,0,'' and so on), but often you can handle this.
Bye,
Riccardo
--
Riccardo Galli
Sideralis Programs
http://www.sideralis.net
--
http://mail.python.org/mailman/listinfo/python-list
x,menubar,...).
It's hard to find googling so I let you know it here.
curses-extra is its name
http://www.sideralis.net/index.php?action=4&pjid=20
Bye,
Riccardo
--
Riccardo Galli
Sideralis Programs
http://www.sideralis.net
--
http://mail.python.org/mailman/listinfo/python-list
g tkinter doesn't need downloading and installing only in Windows.
In *nix is not so common to have tcl/tk installed (and probably in Mac too)
GUI cross platform need external support, in a OS or in another.
Bye,
Riccardo
--
Riccardo Galli
Sideralis Programs
http://www.sideralis.net
--
http://mail.python.org/mailman/listinfo/python-list
*args,*kwds)
Can I do it? How ?
If it is possible, I'm pretty sure it involves using __new__ on Foo, but I
can't figure out how to make it works.
Any help is appreciated.
Thank you,
Riccardo
--
Riccardo Galli
Sideralis Programs
http://www.sideralis.net
--
http://mail.python.org/mailman/listinfo/python-list
*args,*kwds)
Can I do it? How ?
If it is possible, I'm pretty sure it involves using __new__ on Foo, but I
can't figure out how to make it works.
Any help is appreciated.
Thank you,
Riccardo
--
Riccardo Galli
Sideralis Programs
http://www.sideralis.net
--
http://mail.python.org/mailman/listinfo/python-list
me interface.
I then have a single class which add functionality to all the n classes,
using their interface.
The only way I see to make this single class inherith from the choosed nx
class is this one.
If there is a better approach, I can implement it.
Thank you for the answer,
Riccardo
--
R
On Wed, 15 Jun 2005 11:50:27 +0200, Riccardo Galli wrote:
Hi.
Thanks to all who answered.
Scott David posted a solution (clever, scott) which was what I asked for,
but I noticed some oddness while using it (about __init__).
I also understood that this way should be avoided.
I ended up using a
On 17 Set, 03:29, Todd Whiteman <[EMAIL PROTECTED]> wrote:
> I've put together a tutorial that shows off how to build a GUI
> application using XULRunner (same architectural components as Firefox
> uses) that can be used in conjunction with the Python programming language.
>
> The tutorial covers h
15 matches
Mail list logo