Re: RELEASED Python 3.1 alpha 1

2009-03-08 Thread laplacia...@gmail.com
On Mar 7, 6:59 pm, Carl Banks  wrote:
>
> I see that Brett Canon's importlib has finally made it into Python
> standard library.  Congrats there (if you still read this list), I am
> struggling with Python's arcane import semantics (for something
> ridiculously silly) now and I feel your pain.
>

Hi Carl,

Could you please give a couple quick examples of these current "arcane
import semantics" (or at least point me in the right direction)? I
don't know what you mean, and would like to understand what Brett's
importlib fixes. Thank you.
--
http://mail.python.org/mailman/listinfo/python-list


Re: GUI Programming

2009-04-14 Thread laplacia...@gmail.com
On Apr 12, 12:04 pm, Gabriel  wrote:
> r wrote:
> > On Apr 12, 8:07 am, Gabriel  wrote:
>
> >> Hello,
>
> >> I'm python newbie and i need to write gui for my school work in python.
> >> I need to write it really quick,
>
> > [snip]
>
> > Tkinter is built-in, why not start there?
>
> > from Tkinter import *
> > root = Tk()
> > root.mainloop()
>
>
> It seems ugly to me..

If it's only the lack of antialiasing that's bothering you, don't
worry -- I'm pretty sure that the next minor Python release finally
fixes that ( http://code.google.com/p/python-ttk/wiki/Screenshots ).

Read more about it here:
http://docs.python.org/dev/library/ttk.html

or, for Python 3:
http://docs.python.org/dev/py3k/library/tkinter.ttk.html

Tkinter is fast and easy.
--
http://mail.python.org/mailman/listinfo/python-list


Re: Using Python after a few years of Ruby

2009-04-14 Thread laplacia...@gmail.com
On Apr 14, 3:01 am, blahemailb...@gmail.com wrote:
>
> 1) Rake - is there an equivalent of Rake? I've seen a bit about SCons,
> and it looks really nice, but it seems geared towards being a Make
> replacement for C/C++ rather than something that's used to work with
> Python itself. Is there anything like a Python build tool? (Or do I
> even need something like that? I haven't worked with any large Python
> systems, just little things here and there.)

If the things you need automated aren't *too* complex, you'd be remiss
if you didn't at least have a 2nd look at good old GNU make.

> 2) Gems - I've seen a bit about Eggs, but they don't seem to have
> anywhere near the official status gems do for Ruby. Are there any
> "package management" things like this for Python, or do you usually
> just grab the code you need as-is?

Go have a look at the [PyPI](http://pypi.python.org/pypi) for
packages, download them, and install them using the standard distutils
`python setup.py install` command. This puts packages into your
python's `site-packages` dir.

You can also use the whole eggs/easy_install/setuptools thing, but I
prefer the simpler standard method just described.

> 3) Web frameworks - yeah, I realize there are tons of these, but are
> TurboGears, Django, and Zope still the big ones? I've seen a lot about
> Pylons, is that a separate framework or is it a ... well, frame that
> other things are built on? (TG seems to be related to Pylons at a
> glance?)

Django has a lot of steam.

> 4) Unit Test frameworks - If there's a behavioral test suite like
> RSpec that's be awesome, but I'd be happy to settle for a good, solid
> unit testing system.

I'd look at the standard doctest module: 
http://docs.python.org/library/doctest.html
--
http://mail.python.org/mailman/listinfo/python-list


Re: Best Python Web Framework ?

2009-04-21 Thread laplacia...@gmail.com
On Apr 21, 2:46 pm, SKYLAB  wrote:
> Greetings..
>
> First , my english is not good .
>
> I heard that was written in python ( Youtube Programming Language :
> PYTHON :S ) Correct ?
>
> That's not correct ? Then youtube is PHP application ?
>
> That's correct ; Which python web framework in friendfeed ? Web.py ?
> Django ? web2py ?
>
> Thanks..

There may not be a "best" web framework -- only one that is best for
you and what you need to do with it.

If you want a large and feature-rich framework, try django.

If you want something smaller and simpler, maybe try Karrigell. Also,
Werkzeug http://werkzeug.pocoo.org/ seems actively developed and well-
documented.

Dunno what youtube or friendfeed use. Google might tell you.

Enjoy experimenting. :)
--
http://mail.python.org/mailman/listinfo/python-list


Re: Python simple web development

2009-06-26 Thread laplacia...@gmail.com
On Jun 26, 6:08 pm, Thomas Allen  wrote:
> On Jun 25, 3:29 am, Private Private  wrote:
>
>
> > Can you suggest anything ?
>
> I don't think anything's lighter than web.py.
>
> http://webpy.org/
>

My impression is that webpy is intended for experienced users who
might otherwise just write all their own code, but who might as well
use webpy instead because it's there. It's tutorial is very brief, and
(if memory serves) webpy didn't even have any docs at all for a while.

As Thomas suggests, maybe have a look at Werkzeug http://werkzeug.pocoo.org/
. They've got substantial docs (which look quite good) and even a
nifty screencast.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: looking for a book on python

2009-06-26 Thread laplacia...@gmail.com
On Jun 26, 8:48 pm, Randy Foiles  wrote:
> Hello and thank you for taking your time to read this.
>         I was interested in learning about python.  In the long ago past I did
> learn some programing but I have not used any of it for years.  I do
> remember some basics however so the book does not have to be for a total
> beginner.  (C, C++, BASIC, Visual BASIC, Pascal and some ADA)
>         I have been using Linux for a while and overall still don't know much
> about it but I can find my way.  I have my system dual boot with windows
> vista.
>         I do realize that everyone is different but I would like to see some
> suggestions and maybe reasons why you think it is good.  I have looked
> for/searched and found a few different books but as my means are a bit
> limited right now I don't really want to buy several just one or maybe
> two books.
>         Oh and if someone knows a place to find some used books of this sort
> that would be great (ebay I guess :)
> Thanks for your thoughts
> Randy theslayers9   gmail

The Oreilly "Python in a Nutshell" (2006, 2nd ed.) book is very good
and will get you up to speed in short order.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python simple web development

2009-06-26 Thread laplacia...@gmail.com
On Jun 27, 2:25 am, "laplacia...@gmail.com" 
wrote:
>
> As Thomas suggests, maybe have a look at Werkzeug ...

Typo: s/Thomas/Petr/

-- 
http://mail.python.org/mailman/listinfo/python-list


What does Guido want in a GUI toolkit for Python?

2009-06-27 Thread laplacia...@gmail.com
I just read a blog post of Guido's
http://neopythonic.blogspot.com/2009/06/ironpython-in-action-and-decline-of.html
and notice that he doesn't comment on what he wants in a GUI toolkit
for Python.

I sorta' wish he'd just come out and say, "This is what I think would
be suitable for a GUI toolkit for Python: ...". That way, someone
could then just come along and implement it. (Or maybe he's said this
and I missed it?)

So, what *does* Guido want in a GUI toolkit for Python?
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: What does Guido want in a GUI toolkit for Python?

2009-06-27 Thread laplacia...@gmail.com
On Jun 27, 1:47 pm, Terry Reedy  wrote:
> laplacia...@gmail.com wrote:
>
> > So, what *does* Guido want in a GUI toolkit for Python?
>
> What he did say is "But it hasn't really gotten any less complex to
> create the simplest of simple UIs. And that's a shame. When is Microsoft
> going to learn the real lesson about simplicity of HTML?"

Long ago I did some Java programming and tried out Swing. I think the
complaints about it are that it's a very large toolkit that requires a
lot of inheritance to use. However, the underlying premise used by the
layout managers seemed sound:

1. Choose a layout manager.

2. Put one or more containers in it.

3. Fill the containers with widgets (or other containers), letting
them decide how to lay out the widgets.

That aspect, I liked. Seems a lot like nested elements in an html
page. Perhaps this was what Guido was alluding to?
-- 
http://mail.python.org/mailman/listinfo/python-list