Ian Bicking i...@colorstudy.com added the comment:
This has a similar purpose to virtualenv, but using an environmental
variable. An earlier package, workingenv, also used an environmental
variable, and this led to a set of problems.
The biggest problem is that the environmental variable
Ian Bicking i...@colorstudy.com added the comment:
Also with respect to the patch, for consistency there needs to be
changes to distutils to make use of this variable. PYTHONUSERBASE
included changes so that you can install based on that variable
Ian Bicking [EMAIL PROTECTED] added the comment:
cgi started using this argument due to the potential of a DoS attack
without the length limit. So undoing this in cgi (even as an option)
would be a regression.
___
Python tracker [EMAIL PROTECTED]
http
New submission from Ian Bicking [EMAIL PROTECTED]:
The method wsgiref.validate:InputWrapper.readline doesn't take any
arguments. It should take an optional size argument. Though this isn't
part of the WSGI specification, the cgi module uses this argument when
parsing the body, and in practice
Ian Bicking [EMAIL PROTECTED] added the comment:
This renders wsgiref.validate.validator completely useless, because it
cannot be used with any existing code.
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4330
Ian Bicking [EMAIL PROTECTED] added the comment:
Yes, and I've wanted to deprecate paste.lint, but I can't because people
use it over wsgiref.validate because it had this change applied. Yes,
cgi.FieldStorage changed, but now that it's changed wsgiref needs to be
compatible with it to be viable
New submission from Ian Bicking [EMAIL PROTECTED]:
I used a reference like :Class:`something` (note the capitalization) and
got this exception:
Traceback (most recent call last):
File
/home/ianb/src/env/lib/python2.4/site-packages/sphinx/__init__.py,
line 135, in main
On Jun 7, 6:30 am, Nick Craig-Wood [EMAIL PROTECTED] wrote:
Here is an attempt at a killable thread
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/496960
and
http://sebulba.wikispaces.com/recipe+thread2
I use this recipe in paste.httpserver to kill wedged threads, and it
works
Ian Bicking [EMAIL PROTECTED] added the comment:
You can see the source that produces this in
http://svn.pythonpaste.org/Paste/trunk at revision 7387
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3037
Ian Bicking [EMAIL PROTECTED] added the comment:
Armin says this is a bug that has now been resolved in Jinja
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3037
On Nov 20, 7:55 am, Joe Riopel [EMAIL PROTECTED] wrote:
On Nov 20, 2007 8:46 AM, BartlebyScrivener [EMAIL PROTECTED] wrote:
Django comes with its own little server so that you don't have
to set up Apache on your desktop to play with it.
Pylons too, it's good for development but using the
On Nov 22, 11:00 am, Istvan Albert [EMAIL PROTECTED] wrote:
On Nov 21, 12:15 am, Graham Dumpleton [EMAIL PROTECTED]
wrote:
I would say that that is now debatable. Overall mod_wsgi is probably a
better package in terms of what it has to offer. Only thing against
mod_wsgi at this point is
On Oct 14, 3:46 am, Michele Simionato [EMAIL PROTECTED]
wrote:
I think we do agree entirely, it is just that the application we have
in
mind is more a collection of web services than a traditional Web
application.
Now, since you are here, there is an unrelated question that I want to
ask
On Oct 6, 8:29 am, Michele Simionato [EMAIL PROTECTED]
wrote:
Do you (or something else) have something to say about Beaker?
I looked at the source code and it seems fine to me, but I have
not used it directly, not stressed it. I need a
production-level WSGI session middleware and I wonder
On Oct 6, 8:13 am, Bruno Desthuilliers bruno.
[EMAIL PROTECTED] wrote:
Well... Last year, I had a look at Pylons, then played a bit with wsgi
and building my own framework over it. I finally dropped that code and
went back to Pylons, which I felt could become far better than my own
efforts.
and kill threads that are wedged.
--
Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org
--
http://mail.python.org/mailman/listinfo/python-announce-list
Support the Python Software Foundation:
http://www.python.org/psf/donations.html
* Really nothing interesting.
--
Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org
--
http://mail.python.org/mailman/listinfo/python-announce-list
Support the Python Software Foundation:
http://www.python.org/psf/donations.html
Gregory Piñero wrote:
What I'm most confused about is how it affects me. I've been writing
small CGI programs in Python for a while now whenever I have a need
for a web program. Is CGI now considered Bad? I've just always
found it easier to write something quickly with the CGI library than
Paul Boddie wrote:
Perhaps, although I imagine that Trac would have a lot more uptake if
it handled more than just Subversion repositories.
It handles some other kinds of repositories now (bzr, I think?). From
what I understand fully abstracting out the repository format seems to
still be a
Ravi Teja wrote:
Or... maybe to be more specific, the hard work later on goes into
*code*. If you are enhancing your model, you do so with methods on the
model classes, and those methods don't effect the DSL, they are just
code. You create some raw XML in the beginning, but quickly it's
Ravi Teja wrote:
Fredrik Lundh wrote:
Ravi Teja wrote:
Web frameworks, which seem to be the rage now in Python community could
have benefited tremendously from Macro capabilities since they have a
lot of boiler plate.
they do? methinks you haven't done much web programming
glomde wrote:
i I would like to extend python so that you could create hiercical
tree structures (XML, HTML etc) easier and that resulting code would be
more readable than how you write today with packages like elementtree
and xist.
I dont want to replace the packages but the packages could
Thanks for the answers, very helpful. I think I'm going to give
Peter's hack a try, as it's actually quite close to what I'm trying to
do -- I get the source for the new function, then that lets me make the
old function become the new one. But I'll probably also use Michael's
solution for class
I got a puzzler for y'all. I want to allow the editing of functions
in-place. I won't go into the reason (it's for HTConsole --
http://blog.ianbicking.org/introducing-htconsole.html), except that I
really want to edit it all in-process and in-memory. So I want the
identity of the function to
Claudio Grondi wrote:
I have asked similar 'question' some weeks ago in the German Python
newsgroup.
It seems, that that Pythonistas have generally not much interest in
IronPython waiting for at least release 2.0 of it which is _perhaps_
expected to support Mono.
My understanding is that
Kay Schluehr wrote:
I'd be interested in what people think about bundling one of the
diverse Python webframeworks with the Python distribution which will be
just there as like Tcl/Tk+Tkinter for GUI-programming. Its not that I
don't trust people to make qualified decisions on their own or that
Fredrik Lundh wrote:
[EMAIL PROTECTED] wrote:
The builtins section should be moved to the language
reference manual. The material it documents is part
of the language definition, not part of an add-on library.
the standard library is not an add-on. you're confused.
I think the point
A.M. Kuchling wrote:
Here are some thoughts on reorganizing Python's documentation, with
one big suggestion.
Thanks for bringing this up...
There are endless minor bugs in the library reference, but that seems
unavoidable. It documents many different and shifting modules, and
what to
Fredrik Lundh wrote:
I've proposed adding support for semi-automatic linking to external
documents, based on a simple tagging model, a couple of times, e.g.
http://mail.python.org/pipermail/python-list/2005-May/280751.html
Fredrik Lundh wrote:
There's another struggle within the LibRef: is it a reference or a
tutorial? Does it list methods in alphabetical order so you can look
them up, or does it list them in a pedagogically useful order? I
think it has to be a reference; if each section were to be a
Aahz wrote:
Here's a question that kind of gets to the heart of a lot of the
problem: where does ``print`` get documented? If we can come up with a
good process for answering that question, we can probably fix a lot of
other problems. (Note emphasis on the word process.)
Good point; the
I'm pleased to announce FormEncode 0.3.
What is it?
---
FormEncode is a package for form validation and conversion. It also
includes modules for parsing, filling, and extracting metadata from HTML
forms. It features robust conversion both of incoming and outgoing
data, attention paid
November topics are Remote, Generic and Random, just like us.
We'll have presentations on PyRO (Python Remote Objects) by Fawad
Halim, generic functions (as implemented in RuleDispatch) by Ian
Bicking, and the standard library random module by Robert Ramsdell.
There will also be time to chat
Diez B. Roggisch wrote:
- rails/subway reflect over a existing table. They create OR-mappings
based on that. You only specify exceptional attributes for these mappings.
- django specifies the whole meta-model in python - and _generates_
the SQL/DDL to populate the DB. So obviously you
Bruno Desthuilliers wrote:
Also, there's something like darwinism at play here. Yes, there are a
lot of concurrent ORM/Templating/Web Publishing/GUI/Whatnot projects
around, but I guess only the best of them will survive - eventually
'absorbing' what's good in the others.
No, they will all
to definitions of Chinese characters.
* Ian Bicking will talk about distutils and setuptools -- how to use
Python packages and how to make your own.
* If time permits, Michael Tobis will talk on the pdb module, probably
along with a symbolic debuggers, who needs 'em? discussion.
There will also be time
Topic - Tutorial: Web programming in Python with Paste
--
This month Ian Bicking will be presenting a tutorial Python web
programming, using several different systems: Python Paste,
Webware/WebKit, Zope Page Templates (not just for Zope
The Chicago Python User Group, ChiPy, will have its next meeting on
Thursday, April 14th, starting at 7pm. For more information on ChiPy
see http://chipy.org
Michael Tobis, who is organizing this meeting, needs to give the
building a list of names. If you think it's possible you will come,
send
limited
capacity congestion points like servers, checkout counters, and tunnels.
It also provides monitor variables to aid in gathering statistics.
Ian Bicking will be presenting on WSGI, WSGIKit, and Python web
programming. WSGI is a new Python standard for interfacing between web
servers (like
pretty simple to use and it doesn't depend on the rest of Zope:
http://cvs.zope.org/Products/ErrorReporter/ExceptionFormatter.py?rev=HEADcontent-type=text/vnd.viewcvs-markup
--
Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
--
http://mail.python.org/mailman/listinfo/python-list
:
http://dir.gmane.org/gmane.comp.python.sqlobject
Download:
http://prdownloads.sourceforge.net/sqlobject/SQLObject-0.6.1.tar.gz?download
--
Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
--
http://mail.python.org/mailman/listinfo/python-list
a foundation for further
standardization.
WSGI compliance also has some other potential benefits, like encouraging
environment decoupling, and making mock requests easier to produce and
responses easier to consume. But those are somewhat vague side effects.
--
Ian Bicking / [EMAIL PROTECTED] / http
is to put files in subdirectories like:
base = struct.pack('i', hash(page_name))
base = base.encode('base64').strip().strip('=')
filename = os.path.join(base, page_name)
--
Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
--
http://mail.python.org/mailman/listinfo/python-list
much a scaling issue as a
flexibility-in-reporting issue.
--
Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
--
http://mail.python.org/mailman/listinfo/python-list
to be a very satisfying experience if they do.
I'm optimistic that at some point most of the actively developed Python
web frameworks we have now will be ported to WSGI. Ultimately, I think
WSGI should be something a more casual Python web programmer wouldn't
even realize exists.
--
Ian Bicking
there, since every Python
programmer has to deal with this sort of thing to some degree...?
--
Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
--
http://mail.python.org/mailman/listinfo/python-list
of the registration you are thinking
about.
--
Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
--
http://mail.python.org/mailman/listinfo/python-list
is simply an incomplete sentence. Python could
have honest support of Concepts (url) would be more reasonable.
--
Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
--
http://mail.python.org/mailman/listinfo/python-list
the little Python file used to put
the pieces together -- but I think it's a good direction.
--
Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
--
http://mail.python.org/mailman/listinfo/python-list
, with the expectation that it would work in a
production situation.
--
Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
--
http://mail.python.org/mailman/listinfo/python-list
not a very experimental framework, and the existance of
continuation-based frameworks for Ruby is an aside. If such frameworks
happen at all for Python, I think they will be an aside as well.
--
Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
--
http://mail.python.org/mailman/listinfo
a way of creating shared state. But it's
okay, work right now, and provides the exact same functionality. The
exception part of PEP 288 still seems interesting.
--
Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
--
http://mail.python.org/mailman/listinfo/python-list
* kind of web apps, IMHO.
But with what you are specifically asking for, I think it's just a Hard
Problem that Is Not Yet Solved, though there is work being done and
people are attacking it from different directions.
--
Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
--
http
appreciate the motivation, but
I don't think their solution is the right one for Python.
--
Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
--
http://mail.python.org/mailman/listinfo/python-list
David Bolen wrote:
Ian Bicking [EMAIL PROTECTED] writes:
The one motivation I can see for function expressions is
callback-oriented programming, like:
get_web_page(url,
when_retrieved={page |
give_page_to_other_object(munge_page(page))})
This is my primary use case for lambda's
could get really out of hand, IMHO, and could easily lead to
twenty-line expressions. That's aesthetically incompatible with
Python source, IMHO.
--
Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
--
http://mail.python.org/mailman/listinfo/python-list
will talk about the hotspot
profiler. Ian Bicking will be talking about py.test, a unittest
alternative. Maybe John Roth will be able to talk about Fitnesse, a
Wiki-based acceptance test system.
There will also be time to chat, and many opportunities to ask
questions. We encourage people at all
that's a stupid way to look at programming in general, but it's *way*
more stupid with Python.
--
Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
--
http://mail.python.org/mailman/listinfo/python-list
Steven Bethard wrote:
Ian Bicking wrote:
class bunch(object):
def __init__(self, **kw):
for name, value in kw.items():
# IMPORTANT! This is subclass friendly: updating __dict__
# is not!
setattr(self, name, value)
Good point about being subclass
(self, name, value)
def __call__(self, **kw):
# I'm not entirely happy with this:
new_values = self.__dict__.copy()
new_values.update(kw)
return self.__class__(**new_values)
--
Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
--
http
will still be around.
--
Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
--
http://mail.python.org/mailman/listinfo/python-list
61 matches
Mail list logo