On 31 Mrz., 20:50, Terry Reedy wrote:
> Nothing is added to sys.modules, except the __main__ module, unless
> imported (which so are on startup).
Yes. The startup process is opaque but at least user defined modules
are not accidentally imported.
>
> > Although the ceremony has been performed
>
On 1 Apr., 00:38, Carl Banks wrote:
> On Mar 31, 12:08 pm, Kay Schluehr wrote:
>
> > > And your proposal is?
>
> > I have still more questions than answers.
>
> That's obvious.
>
> Perhaps you should also refrain from making sweeping negative
> judg
> "Discoverable", as in built-in tools that let you have the following
> conversation: "Program, tell me all the things I can configure about
> you" - "Okay, here they all are". No digging through the source
> required.
But this doesn't have any particular meaning. If I run a dir(obj)
command al
On 1 Apr., 07:03, Terry Reedy wrote:
> At PyCon2008, David Beazley presented an excellent talk on generators.
> Generator Tricks for Systems
> Programmershttp://www.dabeaz.com/generators/index.html
>
> At PyCon2009, he followed up with another talk on more advanced
> generator usage, which Guido
On 1 Apr., 07:56, Lawrence D'Oliveiro wrote:
> In message <35d429fa-5d13-4703-
>
> a443-6a95c740c...@o6g2000yql.googlegroups.com>, John Yeung wrote:
> > Here's one that clearly expresses strong antipathy:
>
> > http://mail.python.org/pipermail/python-dev/2009-March/087971.html
>
> There are lots
On 2 Apr., 15:05, David Smith wrote:
> Kay Schluehr wrote:
> > On 1 Apr., 07:56, Lawrence D'Oliveiro > central.gen.new_zealand> wrote:
> >> In message <35d429fa-5d13-4703-
>
> >> a443-6a95c740c...@o6g2000yql.googlegroups.com>, John Yeung wrote:
On 2 Apr., 17:32, "Martin v. Löwis" wrote:
> I propose the following PEP for inclusion to Python 3.1.
> Please comment.
>
> Regards,
> Martin
>
> Abstract
>
>
> Namespace packages are a mechanism for splitting a single Python
> package across multiple directories on disk. In current Pytho
> Meh. Use the command line like God intended.
I'm sorry to say this Rhodri but there is probably no god ;)
The reason I like overlays is that they are data displays that
highlight changes without letting me do any action. The VCS works for
me before I'm doing any work with it and that's a good
> Question: Is there a way to implement this algorithm using generator
> expressions only -- no "yield" statements allowed?
Yes. Avoiding the yield statement is easy but one might eventually end
up with two statements because one has to produce a side effect on the
primes list. However we can use
On 5 Apr., 17:14, John Posner wrote:
> Kay Schluehr said:
>
> > g = (lambda primes = []:
> > (n for n in count(2) \
> > if
> > (lambda n, primes: (n in primes if primes and
> n<=primes[-1] \
> > else
&
On 5 Apr., 18:47, John Posner wrote:
> Kay Schluehr wrote:
>
> > That's because it is *one* expression. The avoidance of named
> > functions makes it look obfuscated or prodigious. Once it is properly
> > dissected it doesn't look that amazing anymore.
>
> -It would be nice if decorators were passed a function's AST instead
> of a function object. As it is I have to use inspect.getsource to
> retrieve the source for the function in question, and then use
> ast.parse, which is a bit inefficient because the cpython parser has
> to already have done t
I always wondered about the decision to omit the nonlocal statement
from the Python 2.X series because it seems to be orthogonal to Python
2.5. Are there any chances for it to be back ported?
--
http://mail.python.org/mailman/listinfo/python-list
On 11 Apr., 20:15, Darren Dale wrote:
> I am working on a project that provides a high level interface to hdf5
> files by implementing a thin wrapper around h5py.
> I would like to
> generalize the project so the same API can be used with other formats,
> like netcdf or ascii files. The format sp
On 16 Apr., 17:39, Mac wrote:
> We've got ActiveState Python 2.6 installed on a Windows XP box, and I
> pulled down the latest archgenxml package (2.2) in order to get it
> running under this installation of Python. I unpacked the tarball for
> the package and tried running `python setup.py build
On 16 Apr., 11:41, Robin Becker wrote:
> Is the compiler package actually supposed to be equivalent to the parser
> module?
No. The parser module creates a concrete parse tree ( CST ) whereas
the compiler package transforms this CST into an AST for subsequent
computations. In more recent versio
> I realize that I probably ought to be trying this out with the newer ast
> stuff,
> but currently I am supporting code back to 2.3 and there's not much hope of
> doing it right there without using the compiler package.
You might consider using the *builtin* parser module and forget about
the co
On 16 Apr., 19:44, José María wrote:
> Hi,
>
> I've been searching for information about the application of DDD
> principles in
> Python and I did'nt found anything!
> Is DDD obvious in Python or is DDD inherent to static languages like
> Java or C#?
If you couldn't find anything I conclude that
Start to like blogging about your ideas, results and findings. Writing
is a process of clarification of the mind. It doesn't matter much
whether you design upfront, or mix coding and writing in an
incremental process. If I could I'd just write specs, draft my ideas
in Python in order to verify that
On 29 Apr., 05:41, Ross wrote:
> If I have a list x = [1,2,3,4,5,6,7,8,9] and another list that is a
> subset of x: y = [1,4,7] , is there a quick way that I could return
> the complementary subset to y z=[2,3,5,6,8,9] ?
>
> The reason I ask is because I have a generator function that generat
> Since when is a list a number? Perhaps the help needs clarification,
> in line with the docs.
Everyone is supposed to use reduce() here ;)
Kay
--
http://mail.python.org/mailman/listinfo/python-list
On 21 Mai, 21:43, Jorge Vargas wrote:
> Hello.
>
> Anyone knows what is the problem with this package? apparently the
> author's site is down which prevents pip from installing it. I can
> download the zip and go from there but It seems most of the docs are
> gone with the site.
The code comments
On 24 Mai, 20:16, Matthew Wilson wrote:
> I'm working on a really simple workflow for my bug tracker. I want
> filed bugs to start in an UNSTARTED status. From there, they can go to
> STARTED.
>
> From STARTED, bugs can go to FINISHED or ABANDONED.
>
> I know I can easily hard-code this stuff in
On 25 Mai, 01:46, Matthew Wilson wrote:
> On Sun 24 May 2009 03:42:01 PM EDT, Kay Schluehr wrote:
>
>
>
> > General answer: you can encode finite state machines as grammars.
> > States as non-terminals and transition labels as terminals:
>
> > UNSTARTED: 'sta
On 3 Jun., 05:51, Lawrence D'Oliveiro wrote:
> In message , Sebastian Wiesner wrote:
>
> >
>
> >> That said I've used C++ with ctypes loads of times, but I always wrap
> >> the exported stuff in extern "C" { } blocks.
>
> > No wonder, you have never actually used C++ with C types. An extern "C"
On 3 Jun., 11:13, Lawrence D'Oliveiro wrote:
> In message c0e4-479a-85ed-91c26d3bf...@c36g2000yqn.googlegroups.com>, Kay Schluehr
> wrote:
>
>
>
> > On 3 Jun., 05:51, Lawrence D'Oliveiro > central.gen.new_zealand> wrote:
>
> >> In message , Se
On 16 Mai, 10:03, "A.T.Hofkamp" <[EMAIL PROTECTED]> wrote:
> Hello all,
>
> Yesterday we found the cause of a bug that has caused problems for a long
> time.
> It appeared to be the following:
>
> class A(object):
> pass
>
> print min(1.0, A())
>
> which is accepted by Python even though the A
On 18 Mai, 00:32, Vicent Giner <[EMAIL PROTECTED]> wrote:
> Maybe this is not the right forum, but maybe you can give me some
> hints or tips...
>
> Thank you in advance.
If Python doesn't run in production systems execution speed doesn't
matter much. What actually matters when *developing* non-t
On 21 Mai, 11:38, [EMAIL PROTECTED] wrote:
> Hello,
>
> I have an if-elif chain in which I'd like to match a string against
> several regular expressions. Also I'd like to use the match groups
> within the respective elif... block. The C-like idiom that I would
> like to use is this:
>
> if (match
On 21 Mai, 19:56, sturlamolden <[EMAIL PROTECTED]> wrote:
> On May 21, 11:38 am, [EMAIL PROTECTED] wrote:
>
> > if (match = my_re1.match(line):
> > # use match
> > elsif (match = my_re2.match(line)):
> > # use match
> > elsif (match = my_re3.match(line))
> > # use match
>
> > ...buy this is i
On 13 Mai, 01:39, Dave Parker <[EMAIL PROTECTED]> wrote:
> I've read that one of the design goals of Python was to create an easy-
> to-use English-like language. That's also one of the design goals of
> Flaming Thunder athttp://www.flamingthunder.com/ , which has proven
> easy enough for even ele
On 23 Mai, 00:51, Larry Bates <[EMAIL PROTECTED]> wrote:
> > I've yet to see a web application written in Python which is really
> > fast.
>
> You are just dead wrong about this.
No, he can demand whatever he wants and we can be stupid enough to
respond.
--
http://mail.python.org/mailman/listinfo
On 27 Mai, 17:21, Sverker Nilsson <[EMAIL PROTECTED]> wrote:
> I was talking about Guido van Rossum
>
> The one who decides, so far when people agree
>
> But we can make a new fork
>
> He is the originator, but now it seems, for me, it is hanging out in
> the air
>
> So we need some new leadership
On 3 Jun., 15:43, "Filipe Fernandes" <[EMAIL PROTECTED]> wrote:
> I have a project that uses a proprietary format and I've been using
> regex to extract information from it. I haven't hit any roadblocks
> yet, but I'd like to use a parsing library rather than maintain my own
> code base of compli
On 3 Jun., 19:34, "Filipe Fernandes" <[EMAIL PROTECTED]> wrote:
> # The current implementation is only somewhat object-oriented. The
> # LR parser itself is defined in terms of an object (which allows multiple
> # parsers to co-exist). However, most of the variables used during table
> # construc
On 6 Jun., 01:58, Alan Isaac <[EMAIL PROTECTED]> wrote:
> One other possibility:
> SimpleParse (for speed).
> http://simpleparse.sourceforge.net/>
> It is very nice.
> Alan Isaac
How does SimpleParse manage left-factorings, left-recursion and other
ambiguities?
For example according to [1] there
On 6 Jun., 23:13, Tilman Kispersky <[EMAIL PROTECTED]> wrote:
> I have python code in a class method translated from C++ that looks
> sort of like this:
>
> >>> self.dydt[1] = self.a * (self.b * self.y[0] - self.y[1])
>
> To make this more readable in C++ I had made macros to achieve this:
> #def
I was reading PEP 3119 (http://www.python.org/dev/peps/pep-3119/ ) and
have done some experiments using Python 3.0a5. Now I'm somewhat
puzzled about the purpose of the ABCMeta.register() method.
One can use the register() method to register any class as a virtual
subclass of any ABC. For example o
On 24 Jun., 13:19, [EMAIL PROTECTED] wrote:
> If you want to see an advanced language, you may take a look at
> PyMeta, that's a bit of the future of the computer
> science:http://washort.twistedmatrix.com/
Er, no. The future of CS is also its past i.e. EBNF ;)
--
http://mail.python.org/mailman
On 24 Jun., 13:19, [EMAIL PROTECTED] wrote:
> If you want to see an advanced language, you may take a look at
> PyMeta, that's a bit of the future of the computer
> science:http://washort.twistedmatrix.com/
Er, no. The future of CS is also its past i.e. EBNF ;)
--
http://mail.python.org/mailman
On 8 Jul., 21:09, Peter Otten <[EMAIL PROTECTED]> wrote:
> Robert Hancock wrote:
> > mypackage/
> > __init__.py
> > push/
> > __init__.py
> > dest.py
> > feed/
> >__init__py
> > subject.py
P4D = E4X style embedded DSL for Python but without E and X.
For more information see:
http://pypi.python.org/pypi/P4D/1.1-py2.5
--
http://mail.python.org/mailman/listinfo/python-list
On 11 Jul., 15:25, Fuzzyman <[EMAIL PROTECTED]> wrote:
> On Jul 11, 10:09 am, Kay Schluehr <[EMAIL PROTECTED]> wrote:
>
> > P4D = E4X style embedded DSL for Python but without E and X.
>
> > For more information see:
>
> >http://pypi.python.org/pypi/P4
On 10 Jul., 15:19, Bart Kastermans <[EMAIL PROTECTED]> wrote:
> I am playing with some trees. In one of the procedures I wrote
> for this I am trying to change self to a different tree. A tree
> here has four members (val/type/left/right). I found that self = SS
> does not work; I have to write
On 14 Jul., 08:22, Kinokunya <[EMAIL PROTECTED]> wrote:
> Hi guys,
>
> My group and I will be working on our final year project, the scope to
> do a program/web-based application similar areas of functionalities
> like the PyLint and PyChecker; a Python syntax checker. We have no
> Python backgroun
On 14 Jul., 06:03, moijes12 <[EMAIL PROTECTED]> wrote:
> hi
>
> there is a .pyd file present in the same folder as the script abc.py
> by the name foo.pyd .I don't have foo.py .In the script abc.py I try
>
> import foo
>
> Error i get is
> ImportError: DLL load failed: The specified module could no
On 13 Jul., 08:53, Yosifov Pavel <[EMAIL PROTECTED]> wrote:
> Whats is the way to clone "independent" iterator? I can't use tee(),
> because I don't know how many "independent" iterators I need. copy and
> deepcopy doesn't work...
>
> --pavel
You can try generator_tools
http://pypi.python.org/pyp
g" iterators as mentioned by Peter Otten. With
this recipe you can't even clone generator objects ( which are
iterators ) that produce Fibonaccis in a lazy manner.
Regards, Kay
--
http://mail.python.org/mailman/listinfo/python-list
On 15 Jul., 11:51, Thomas Troeger <[EMAIL PROTECTED]>
wrote:
> I've really looked at a lot of places but haven't found a suitable
> solutions yet, so I'm asking here in hope that someone has experience
> with that topic.
Which solutions did you rule out?
--
http://mail.python.org/mailman/listinfo
On 18 Jul., 01:15, castironpi <[EMAIL PROTECTED]> wrote:
> On Jul 17, 5:37 pm, I V <[EMAIL PROTECTED]> wrote:
>
>
>
> > On Thu, 17 Jul 2008 15:08:17 -0700, castironpi wrote:
> > > The Python disassembly is baffling though.
>
> > y= 3
> > dis.dis('x=y+1')
>
> > You can't disassemble string
On 18 Jul., 12:23, Ben Sizer <[EMAIL PROTECTED]> wrote:
> On Jul 16, 3:31 pm, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
>
> > Ben Sizer wrote:
> > > make my development a lot easier.
>
> > Knowing what kind of development you do might help, of course. Some
> > libraries are excellent in some contex
On 20 Jul., 05:54, "Python Nutter" <[EMAIL PROTECTED]> wrote:
> I think the hidden gems in multimedia/game production are Pyglet and
> Rabbyt. Whereas PyGame is the older api, its large and bloated and has
> of course a heavy dependency on SDL. Pyglet and Rabbyt are
> lightweight, efficient, have s
On 20 Jul., 04:43, Michael Tobis <[EMAIL PROTECTED]> wrote:
> Can a lambda call itself without giving itself a name?
Sure, use a fixed point combinator. I've just added this recipe:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/576366
> Google was not my friend on this one, and I susp
t; hours with Lisp so far, and I can't make it do much of anything -- but
> I DO see how Lisp could be helpful. Still, I'm reluctant to pursue a
> language I don't know, and which I'm finding much harder to grasp than
> any language I've tried before.
You c
On 20 Jul., 13:08, [EMAIL PROTECTED] wrote:
> Kay Schluehr:
>
> > Sure, use a fixed point combinator. I've just added this recipe:
> >http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/576366
>
> Does it work?
>
> Bye,
> bearophile
There are lots of in
On 24 Jul., 11:40, Torsten Bronger <[EMAIL PROTECTED]>
wrote:
> Hallöchen!
>
> Bruno Desthuilliers writes:
> > [...]
>
> > How would you handle this case with an implicit 'self' :
>
> > class Foo(object):
> >pass
>
> > def bar(self):
> >print self
>
> > Foo.bar = bar
>
> Just like this. Ho
On 25 Jul., 03:01, Terry Reedy <[EMAIL PROTECTED]> wrote:
> Torsten Bronger wrote:
> > Hallöchen!
>
> > And why does this make the implicit insertion of "self" difficult?
>
> > I could easily write a preprocessor which does it after all.
>
> class C():
>def f():
> a = 3
>
> Inserting sel
On 26 Jul., 09:45, Torsten Bronger <[EMAIL PROTECTED]>
wrote:
> Hallöchen!
>
> Terry Reedy writes:
> > [...]
>
> > Or the proposal would have to be that 'self' is mandatory for all
> > programmers in all languages. I think *that* would be
> > pernicious. People are now free to write the more compa
On 26 Jul., 19:20, Michele Simionato <[EMAIL PROTECTED]>
wrote:
> On Jul 26, 5:28 pm, [EMAIL PROTECTED] (Aahz) wrote:
>
> > IMO, you made a big mistake in combining your point with two other meaty
> > issues (whether method definitions should include self and whether !=
> > should use __eq__() as a
On 28 Jul., 06:42, "Russ P." <[EMAIL PROTECTED]> wrote:
> On Jul 27, 8:58 pm, castironpi <[EMAIL PROTECTED]> wrote:
>
> > On Jul 27, 2:39 pm, Bruno Desthuilliers
>
> > <[EMAIL PROTECTED]> wrote:
> > > Derek Martin a écrit :
> > > > It's bad programming, but the world is full of bad programmers, and
On 28 Jul., 18:55, Trent Mick <[EMAIL PROTECTED]> wrote:
> Nick Craig-Wood wrote:
> > Trent Mick <[EMAIL PROTECTED]> wrote:
> >> I happy to announce that ActiveState Code has been taken out of beta.
> >> This is the new site replacing the ASPN Cookbooks -- in particular the
> >> Python Cookbook.
On 30 Jul., 16:51, mmm <[EMAIL PROTECTED]> wrote:
> I found code to undo a dictionary association.
>
> def undict(dd, name_space=globals()):
> for key, value in dd.items():
> exec "%s = %s" % (key, repr(value)) in name_space
>
> So if i run
>
> >>> dx= { 'a':1, 'b': 'B'}
> >>> undict(dx
Here is an evil imperative, non-recursive generator:
def ncsub(seq):
n = len(seq)
R = xrange(n+1)
for i in xrange(1,2**n):
S = []
nc = False
for j in R:
k = i>>j
if k == 0:
if nc:
yield S
> You can expect exactly 0 users and no appreciation for your
> efforts which will/can lead to frustration and bad health.
Is it really so bad to have no users and not becoming a "rock star
programmer" but rather being a "poor poet programmer" (PPP) instead?
--
http://mail.python.org/mailman/lis
It doesn't look like a VS issue since you've started the setup.py
script that calls the command line compiler. So I'd expect it behaves
not different from other command line tools and you might have to add
the boost path directly to the command-line options.
--
http://mail.python.org/mailman/listin
On 7 Aug., 21:43, Carl Banks <[EMAIL PROTECTED]> wrote:
> On Aug 7, 3:25 am, [EMAIL PROTECTED] wrote:
>
>
>
> > Hello,
>
> > I want to build my C++ (.cpp) script to (.pyd) like this:
>
> >http://en.wikibooks.org/wiki/Python_Programming/Extending_with_C%2B%2B
>
> > I have installed "Microsoft Visual
P4D = E4X style embedded DSL for Python but without E and X.
The main feature of P4D 1.2 are *Bytelets*. While the primary purpose
of P4D 1.1 was the support textual data which can be considered as
isomorphic to XML the new release is focussed on binary data. Bytelets
are P4D objects that are asse
On 11 Aug., 04:43, "SPE - Stani's Python Editor"
<[EMAIL PROTECTED]> wrote:
> On 10 aug, 04:54, Heikki Toivonen <[EMAIL PROTECTED]> wrote:
> > The Chandler Project is pleased to announce the release of Chandler
> > Desktop 1.0!
> Congratulations!
>
> > The Chandler Project is an open source, standa
On 11 Aug., 07:24, Ben Finney <[EMAIL PROTECTED]>
wrote:
> Kay Schluehr <[EMAIL PROTECTED]> writes:
> > On 11 Aug., 04:43, "SPE - Stani's Python Editor"
> > <[EMAIL PROTECTED]> wrote:
> > > As an open source project please be kind to Li
On 11 Aug., 11:41, Gerhard Häring <[EMAIL PROTECTED]> wrote:
> Kay Schluehr wrote:
> > P4D = E4X style embedded DSL for Python but without E and X.
> > The main feature of P4D 1.2 are *Bytelets*. While the primary purpose
> > of P4D 1.1 was the support textual data
On 12 Aug., 10:50, Uwe Grauer <[EMAIL PROTECTED]> wrote:
> Kay Schluehr wrote:
> > P4D = E4X style embedded DSL for Python but without E and X.
>
> > The main feature of P4D 1.2 are *Bytelets*. While the primary purpose
> > of P4D 1.1 was the support textual d
On 12 Aug., 16:35, Wilson <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm wondering if there are any tools available or simple methods for
> taking a python source file and parsing into some hierarchical format,
> like the ConfigParser.
http://docs.python.org/lib/module-parser.html
http://docs.python.org
On 13 Aug., 07:08, Mahdi <[EMAIL PROTECTED]> wrote:
> Guys!
>
> I need to develop a medium-sized database web application for my
> company. Given that:
> I don't know much about building web UI(s) but i have fair knowledge
> about HTML & My schedule is tight.
>
> a recommendation is v v v appreci
Bernard Stepien wrote:
> 1. TTCN-3 is an international standard that comes among other
> things with very precise semantics, thus everyone in the world using it
> will talk exactly the same language. This also reduces considerably the
> amount of documentation you need for the next of kin af
On 12 Aug., 12:54, Kay Schluehr <[EMAIL PROTECTED]> wrote:
> On 12 Aug., 10:50, Uwe Grauer <[EMAIL PROTECTED]> wrote:
>
>
>
> > Kay Schluehr wrote:
> > > P4D = E4X style embedded DSL for Python but without E and X.
>
> > > The main feature o
ot in the second, or is it a bug ?
>
> George
I guess it's just an artifact of handling line continuations within
expressions where a different rule is applied. For compilation
purposes both the newlines within expressions as well as the comments
are irrelevant. There are even two different token namely NEWLINE and
NL which are produced for newlines. NL and COMMENT will be ignored.
NEWLINE is relevant for the parser.
If it was a bug it has to violate a functional requirement. I can't
see which one.
Kay
--
http://mail.python.org/mailman/listinfo/python-list
On 2 Apr., 06:38, Aldo Cortesi <[EMAIL PROTECTED]> wrote:
> Hi Ben,
>
> > > We are happy to announce the first release of Pry, a unit testing
> > > framework.
>
> > Thanks for the announcement, and for the software.
>
> > If Pry is already incompatible with xUnit (i.e. Python's 'unittest'),
> > cou
On 4 Apr., 21:45, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote:
> > The Windows x86 MSI installer is missing for both 2.6 and 3.0.
>
> And likely will continue to do so for some time.
>
> Regards,
> Martin
Fine. Is there also a reason?
--
http://mail.python.org/mailman/listinfo/python-list
On 5 Apr., 10:26, Aldo Cortesi <[EMAIL PROTECTED]> wrote:
> So, why did I re-write it? Well, I needed a test framework that didn't
> have the deep flaws that unittest has. I needed good hierarchical
> fixture management. I needed something that didn't instantiate test
> suites automatically, freei
On 5 Apr., 12:26, Aldo Cortesi <[EMAIL PROTECTED]> wrote:
> Thus spake Kay Schluehr ([EMAIL PROTECTED]):
>
> > I'm not entirely sure what you are claiming here. From source
> > inspections I can see that TestSuite instances are instantiated by the
> > TestLoa
On 5 Apr., 12:26, Aldo Cortesi <[EMAIL PROTECTED]> wrote:
> Thus spake Kay Schluehr ([EMAIL PROTECTED]):
>
> > I'm not entirely sure what you are claiming here. From source
> > inspections I can see that TestSuite instances are instantiated by the
> > TestLoa
to debunk this unittest.py anti-
hype. I'm sorry it has gone too personal.
Regards, Kay
--
http://mail.python.org/mailman/listinfo/python-list
On 5 Apr., 17:27, Rory McKinley <[EMAIL PROTECTED]> wrote:
> Hi
>
> I am trying to use the TidyHTMLTreeBuilder module which is part of
> elementtidy, but I am getting what appears to be some sort of scope
> error and it is scrambling my n00b brain.
>
> The module file (TidyHTMLTreeBuilder.py) tried
On 5 Apr., 23:08, Michael Torrie <[EMAIL PROTECTED]> wrote:
> You need to either fix all these imports in these other modules (that
> are probably in the site_packages folder), or modify the python import
> path so that it can find ElementTree directly.
I'd prefer to set an alias in the module c
each
> other, and leave it at that? Storm in a teacup, of course. I'm sure war
> won;t be declared about this.
Nah, no war. It's more like sports :)
http://www.youtube.com/watch?v=ur5fGSBsfq8
Regards, Kay
--
http://mail.python.org/mailman/listinfo/python-list
On 12 Apr., 14:44, Christian Heimes <[EMAIL PROTECTED]> wrote:
> Gabriel Genellina schrieb:
>
> > On the last line, str(x), I would expect 'abc' - same as str(x, 'ascii')
> > above. But I get the same as repr(x) - is this on purpose?
>
> Yes, it's on purpose but it's a bug in your application to ca
On 12 Apr., 16:29, Carl Banks <[EMAIL PROTECTED]> wrote:
> > And making an utf-8 encoding default is not possible without writing a
> > new function?
>
> I believe the Zen in effect here is, "In the face of ambiguity, refuse
> the temptation to guess." How do you know if the bytes are utf-8
> enc
On 13 Apr., 09:24, Carl Banks <[EMAIL PROTECTED]> wrote:
> On Apr 12, 11:51 am, Kay Schluehr <[EMAIL PROTECTED]> wrote:
>
> > On 12 Apr., 16:29, Carl Banks <[EMAIL PROTECTED]> wrote:
>
> > > > And making an utf-8 encoding default is not possible with
On 18 Apr., 20:07, Aaron Watters <[EMAIL PROTECTED]> wrote:
> I don't really know, but I think "fixing" the above issue for
> string.format(...) might involve changing the representation of
> every python stack frame... not worth it in this case if there
> is any penalty (afaik there isn't).
In P
On 18 Apr., 23:09, Matimus <[EMAIL PROTECTED]> wrote:
> The reason it doesn't work is that you are unpacking the dictionary
> with **, and you have done nothing to define any keys or define a
> length.
This is a non-issue. The class derives from dict; it has all the
desired attributes. It is also
On 19 Apr., 08:37, Hook <[EMAIL PROTECTED]> wrote:
> Traceback (most recent call last):
> File "./3.py", line 20, in
> Obj.Connect ('Database')
> File "/mnt/isis/Projects/Python/Learning/DB_m.py", line 102, in Connect
> self.TRACE ("DB::Connect (" + database + "," + mode)
> File "/m
On 17 Apr., 14:25, andrew cooke <[EMAIL PROTECTED]> wrote:
> PS Is there anywhere that explains why Decorators (in the context of
> functions/methods) are so good?
We had kind of an inverse discussion a while ago when someone asked
about the fate of aspect oriented programming (AOP) in Python. My
Since their introduction in Python 2.5 I only reviewed the new
"relative import" notation briefly by reading the "What's new in
Python 2.5" article. Now I wanted checkout if I get comfortable with
them.
Opening the tutorial I found following notice ( 6.4.2 ):
"Note that both explicit and implicit
On 25 Apr., 20:03, Luca <[EMAIL PROTECTED]> wrote:
> Hi all. I'm trying to do something with python import but isn't working for
> me.
>
> Using python 2,5 I've a program structured like this:
>
> * a main module called (for example) "mommy" with an __init__.py and a
> file called "mommy.py"
> * a
On 9 Mai, 01:50, Barry Warsaw <[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On behalf of the Python development team and the Python community, I
> am happy to announce the third alpha release of Python 2.6, and the
> fifth alpha release of Python 3.0.
>
> Please n
On 10 Mai, 07:52, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> In the past weeks i've been thinking over the problem on the practical
> problems of regex in its matching power. For example, often it can't
> be used to match anything of nested nature, even the most simple
> nesting. It can't be
On 16 Aug., 02:21, Rex <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I am a Python programmer facing my first small XML project. I am
> looking to find a simple tool to take an XSD file and convert the XSD
> tree structure to another text format (e.g. an adjacency matrix for
> the tree's graph), or conve
On 18 Aug., 15:21, Hussein B <[EMAIL PROTECTED]> wrote:
> Hey,
> AOP is build in Groovy language via many means, does Python support
> AOP out of the box without the need for such
> tools:http://pythonsource.com/open-source/aspect-oriented-frameworks
> Thanks.
http://groups.google.com/group/comp.
ll and the latest hype RIA i.e. the
merge of web- and desktop applications with systems like Adobe AIR,
JavaFX, Google Gears and MS Silverlight is the future of frontend
development. With the exception of IronPython and Silverlight, Python
hasn't even entered this game and no one k
On 4 Sep., 10:31, "M.-A. Lemburg" <[EMAIL PROTECTED]> wrote:
> On 2008-09-04 07:49, Kay Schluehr wrote:
>
> > 3) Following the public rumor mill and the latest hype RIA i.e. the
> > merge of web- and desktop applications with systems like Adobe AIR,
> > Ja
601 - 700 of 732 matches
Mail list logo