> BTW, Please don't ask "Why do you want to do like this"
No, I don't ask although it would be the interesting aspect for me ;)
--
http://mail.python.org/mailman/listinfo/python-list
On 27 Jun., 23:06, "Martin v. Löwis" wrote:
> > I sorta' wish he'd just come out and say, "This is what I think would
> > be suitable for a GUI toolkit for Python: ...".
>
> He is not in the business of designing GUI toolkits, but in the business
> of designing programming languages. So he abstain
On 24 Jun., 00:59, smartmobili wrote:
> I wanted to know if you have some patch to compile python 3.x on mingw
> platform because I found some
> but doesn't work very well :
>
> make
>
> gcc -o python.exe \
> Modules/python.o \
> libpython3.0.a-lm
> Could not find platform independent li
On 20 Jun., 17:28, Stefan Behnel wrote:
> Kay Schluehr wrote:
> >> You might want to read about "The Problem with Threads":
>
> >>http://www.eecs.berkeley.edu/Pubs/TechRpts/2006/EECS-2006-1.pdf
>
> >> and then decide to switch to an appropriate concu
> You might want to read about "The Problem with Threads":
>
> http://www.eecs.berkeley.edu/Pubs/TechRpts/2006/EECS-2006-1.pdf
>
> and then decide to switch to an appropriate concurrency model for your use
> case.
and to a programming language that supports it.
--
http://mail.python.org/mailman/
On 14 Jun., 16:00, Steven D'Aprano
wrote:
> Incorrect. Koch's snowflake, for example, has a fractal dimension of log
> 4/log 3 ≈ 1.26, a finite area of 8/5 times that of the initial triangle,
> and a perimeter given by lim n->inf (4/3)**n. Although the perimeter is
> infinite, it is countably inf
On 8 Jun., 00:31, bearophileh...@lycos.com wrote:
> ShedSkin (SS) is a beast almost totally different from CPython, SS
> compiles an implicitly static subset of Python to C++. So it breaks
> most real Python programs, and it doesn't use the Python std lib (it
> rebuilds one in C++ or compiled Pyth
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 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 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 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 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
> 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 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
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 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
> 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., 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
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 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
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
> -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
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.
>
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
&
> 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
> 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
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
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 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 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
> "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., 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
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 31 Mrz., 18:48, s4g wrote:
> Hi,
>
> I was looking for a nice idiom for interpackage imports as I found
> this thread.
> Here come a couple of solutions I came up with. Any discussion is
> welcome.
>
> I assume the same file structure
>
> \ App
> | main.py
> +--\subpack1
> | | __init__.py
> | |
On 30 Mrz., 15:40, jfager wrote:
> I've written a short post on including support for configuration down
> at the language level, including a small preliminary half-functional
> example of what this might look like in Python, available
> athttp://jasonfager.com/?p=440.
>
> The basic idea is that
On 31 Mrz., 04:55, "Gabriel Genellina" wrote:
> En Mon, 30 Mar 2009 21:15:59 -0300, Aahz escribió:
>
> > In article ,
> > Gabriel Genellina wrote:
>
> >> I'd recommend the oposite - use relative (intra-package) imports when
> >> possible. Explicit is better than implicit - and starting with 2.7
On 25 Mrz., 15:23, Marco Nawijn wrote:
> Hello,
>
> In short I would like to know if somebody knows if it is possible to
> re-execute a statement that raised an exception? I will explain the
> reason by providing a small introduction on why this might be nice in
> my case
> and some example code.
On 25 Mrz., 05:56, Carl Banks wrote:
> On Mar 24, 8:32 pm, Istvan Albert wrote:
>
> > On Mar 24, 9:35 pm, Maxim Khitrov wrote:
>
> > > Works perfectly fine with relative imports.
>
> > This only demonstrates that you are not aware of what the problem
> > actually is.
>
> > Try using relative imp
On 24 Mrz., 05:30, Steve Holden wrote:
> > No, there is no certification for Python. Maybe in the future...
>
> O'Reilly School of Technology have plans to offer a Python
> certification. But I have to write the courses first :)
If you're done with it I'd additionally suggest the honory title of
On 22 Mrz., 20:39, Benjamin Peterson wrote:
> It's GSoC time again, and I've had lots of interested students asking about
> doing on project on improving 2to3. What kinds of improvements and features
> would you like to see in it which student programmers could accomplish?
It would suffice to wri
On 17 Mrz., 16:22, Mudcat wrote:
> On Mar 17, 6:39 am, Kay Schluehr wrote:
>
>
>
> > On 16 Mrz., 23:06, Mudcat wrote:
>
> > > On Mar 13, 8:37 pm, Christian Heimes wrote:
>
> > > > Chris Rebert wrote:
> > > > > Haven
On 16 Mrz., 23:06, Mudcat wrote:
> On Mar 13, 8:37 pm, Christian Heimes wrote:
>
> > Chris Rebert wrote:
> > > Haven't used it, butPythonfor .NET sounds like it might be what you
> > > want:http://pythonnet.sourceforge.net/
>
> > I've done some development for and with PythonDotNET. It's definite
On 6 Mrz., 02:53, bearophileh...@lycos.com wrote:
> This is an interesting post, it shows me that fitness plateau where
> design of Python syntax lives is really small, you can't design
> something just similar:
>
> http://unlimitednovelty.com/2009/03/indentation-sensitivity-post-mort...
>
> Living
On 6 Mrz., 02:53, bearophileh...@lycos.com wrote:
> This is an interesting post, it shows me that fitness plateau where
> design of Python syntax lives is really small, you can't design
> something just similar:
>
> http://unlimitednovelty.com/2009/03/indentation-sensitivity-post-mort...
>
> Living
On 2 Mrz., 23:14, Clarendon wrote:
> Thank you, Lie and Andrew for your help.
>
> I have studied NLTK quite closely but its parsers seem to be only for
> demo. It has a very limited grammar set, and even a parser that is
> supposed to be "large" does not have enough grammar to cover common
> words
On 29 Jan., 11:21, Gary Herron wrote:
> Python *is* object-oriented, but it is not (as your definition suggests)
> object-fascist.
I'd put it more mildly. Python is object oriented. The orientation is
there but the fanatism is gone.
Kay
--
http://mail.python.org/mailman/listinfo/python-list
On 26 Jan., 15:13, Steve Holden wrote:
> Mark Wooding wrote:
> > unine...@gmail.com writes:
> [...]
> > * Assignment stores a new (reference to a) value in the variable.
>
> > * Binding modifies the mapping between names and variables.
>
> I realise I have omitted what was doubtless intended t
On 23 Jan., 13:28, unine...@gmail.com wrote:
> Hi,
> I want to add some properties dynamically to a class, and then add the
> corresponding getter methods. Something resulting in this:
>
> class Person:
> def Getname(self):
> return self.__name
>
> def Getage(self):
> return
On 24 Jan., 18:51, Scott David Daniels wrote:
> Kay Schluehr wrote:
> > On 24 Jan., 09:21, "Gabriel Genellina" wrote:
> >> If you run A.py as a script, it does not "know" it lives inside a package.
> >> You must *import* A for it to become
On 24 Jan., 13:31, mk wrote:
> Hello everyone,
>
> From time to time I spot an asterisk (*) used in the Python code
> _outside_ the usual *args or **kwargs application.
>
> E.g. here:http://www.norvig.com/python-lisp.html
>
> def transpose (m):
> return zip(*m)
> >>> transpose([[1,2,3], [4,5,
On 24 Jan., 09:21, "Gabriel Genellina" wrote:
> If you run A.py as a script, it does not "know" it lives inside a package.
> You must *import* A for it to become aware of the package.
> Also, the directory containing the script comes earlier than PYTHONPATH
> entries in sys.path -- so watch for t
1. I'd expected that absolute imports are used in Python 3.0 by
default. I may be wrong. I've written two versions of a module
sucks.py
sucks.py
-
print ("import from lib.sucks")
sucks.py
-
print ("import from package.sucks")
The first is placed in the lib directory that
On 23 Jan., 08:13, Philip Semanchuk wrote:
> On Jan 23, 2009, at 12:39 AM, Kay Schluehr wrote:
>
> > Whatever sufficiently sophisticated topic was initially discussed
> > it ends all up in a request for removing reference counting and the
> > GIL.
>
> Is this a vari
Whatever sufficiently sophisticated topic was the initially discussed
it ends all up in a request for removing reference counting and the
GIL.
--
http://mail.python.org/mailman/listinfo/python-list
On 17 Jan., 01:37, "Brendan Miller" wrote:
> Is this going anywhere or is this just architecture astronautics?
>
> The RPython project seems kind of interseting to me and I'd like to
> see more python implementations, but looking at the project I can't
> help but think that they haven't really ex
On 16 Jan., 02:02, The Music Guy wrote:
> Just out of curiousity, have there been any attempts to make a version
> of Python that looks like actual English text?
No, but I've once written a Python dialect that uses German text. Just
look at how amazing this result is !!! But be warned it requires
On 11 Jan., 03:27, Chris Rebert wrote:
> You should probably check out the relative import syntax introduced in
> PEP 328:http://www.python.org/dev/peps/pep-0328/
> It should be able to do exactly what you want.
This should exactly lead to exceptions in all of his demo code because
the modules a
O.K. Mark. Since you seem to accept the basic requirement to build an
*external* DSL I can provide some help. I'm the author of EasyExtend
( EE ) which is a system to build external DSLs for Python.
http://www.fiber-space.de/EasyExtend/doc/EE.html
EE is very much work in progress and in the last
On 8 Jan., 16:25, J Kenneth King wrote:
> As another poster mentioned, eventually PyPy will be done and then
> you'll get more of an "in-Python" DSL.
May I ask why you consider it as important that the interpreter is
written in Python? I see no connection between PyPy and syntactical
Python exte
On 7 Jan., 16:50, J Kenneth King wrote:
> Python expressions are not
> data types either and hence no macros -- I can't write a python function
> that generates python code at compile time.
Have you ever considered there are languages providing macros other
than Lisp? Macros have nothing to do w
> How would one approach this in Python? Do I need to build a custom
> loader which compiles *.dsl files to *.pyc files? Is it possible to
> switch between the custom DSL and the standard Python interpreter?
Sure, but there is no way to avoid extending the Python parser and
then your DSL becomes e
On 1 Jan., 12:37, Tokyo Dan wrote:
> If your were going to program a game in python what technologies would
> you use?
>
> The game is a board game with some piece animations, but no movement
> animation...think of a chess king exploding. The game runs in a
> browser in a window of a social site b
On 4 Jan., 12:35, Hussein B wrote:
> Hey,
> What is the best code coverage tool available for Python?
> Thanks.
It depends. What are your requirements?
--
http://mail.python.org/mailman/listinfo/python-list
On 20 Dez., 02:54, Steven D'Aprano wrote:
> Debated by who? The entire Python-using community? Every single Python
> programmer? Or just the small proportion of Python developers who are
> also core developers?
"If I'd asked people what they wanted, they would have asked for a
better horse."
He
On 17 Dez., 11:01, Nicholas wrote:
> I am sure I am not the first to run into this issue, but what is the
> solution?
When you use 2to3 just uncomment or delete the file fix_import.py in
lib2to3/fixes/ .
--
http://mail.python.org/mailman/listinfo/python-list
On 13 Dez., 00:16, Trent Mick wrote:
> Note that currently PyWin32 is not included in ActivePython 3.0.
Is there any activity in this direction?
--
http://mail.python.org/mailman/listinfo/python-list
On 9 Dez., 11:51, Helmut Jarausch <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> I was somewhat surprised when I ran pystones with python-2.5.2 and
> with python-3.0
>
> On my old/slow machine I get
>
> python-2.5.2
> from test import pystone
> pystone.pystones()
>gives (2.73, 18315.018315018315)
>
> py
On 6 Dez., 03:21, "Daniel Fetchinson" <[EMAIL PROTECTED]>
wrote:
> Hi folks,
>
> The story of the explicit self in method definitions has been
> discussed to death and we all know it will stay. However, Guido
> himself acknowledged that an alternative syntax makes perfect sense
> and having both (o
On 4 Dez., 23:40, Paul Hildebrandt <[EMAIL PROTECTED]> wrote:
> I was just reading what's new with Python
> 3.0http://docs.python.org/dev/3.0/whatsnew/3.0.html
>
> I like this prerequisite to porting: "Start with excellent test
> coverage"
>
> May I suggest looking into Pythoscope for those lookin
On 2 Dez., 17:19, Kevin D. Smith <[EMAIL PROTECTED]> wrote:
> I have a fairly large python program that, when a certain combination
> of options is used, hangs. I have no idea where it is hanging, so
> simply putting in print statements to locate the spot would be quite
> difficult. Unfortunately
On 2 Dez., 14:57, lkcl <[EMAIL PROTECTED]> wrote:
> as a general-purpose plugin replacement for /usr/bin/python, however,
> it's not quite there. and, given that javascript cheerfully goes
> about its way with the "undefined" concept, it's always going to be a
> _bit_ tricky to provide absolutel
On 29 Nov., 09:47, Robert Kern <[EMAIL PROTECTED]> wrote:
> Kay Schluehr wrote:
> > Is there a reason why enumeration of sections and subsections has been
> > dropped after the switch to the Sphinx documentation tool?
>
> > It doesn't really make quoting lib
Is there a reason why enumeration of sections and subsections has been
dropped after the switch to the Sphinx documentation tool?
It doesn't really make quoting library sections easier or do you know
what I mean when I refer to "How It Works"?
--
http://mail.python.org/mailman/listinfo/python-list
On 27 Nov., 06:11, Rafe <[EMAIL PROTECTED]> wrote:
> On Nov 27, 11:41 am, "Hendrik van Rooyen" <[EMAIL PROTECTED]>
> wrote:
>
>
>
> > "Steven D'Aprano" wrote:
>
> > > Well, I don't know about "any problem". And it's not so much about
> > > whether metaprograms can solve problems that can't be sol
On 27 Nov., 05:41, "Hendrik van Rooyen" <[EMAIL PROTECTED]> wrote:
> Given that, can anybody think of an example that you could not do with
> a class? (excepting the "stored procedure" aspect)
I just noticed that corepy 1.0 [1] has been released. Corepy is an
embedded DSL for synthesizing machin
On 25 Nov., 11:08, Rafe <[EMAIL PROTECTED]> wrote:
> Hi,
>
> In the name of self-education can anyone share some pointers, links,
> modules, etc that I might use to begin learning how to do some
> "metaprogramming". That is, using code to write code (right?)
>
> Cheers,
>
> - Rafe
http://www.letme
On 18 Nov., 18:47, Stefan Behnel <[EMAIL PROTECTED]> wrote:
> Kay Schluehr wrote:
> > All of this is prototyped in Python and it is still work in progress.
> > As long as development has not reached a stable state I refuse to
> > rebuild the system in an optimized C ver
On 17 Nov., 22:37, Uwe Schmitt <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Is anobody aware of this post: http://swtch.com/~rsc/regexp/regexp1.html
> ?
>
> Are there any plans to speed up Pythons regular expression module ?
> Or
> is the example in this artricle too far from reality ???
>
> Greetings, U
On 11 Nov., 23:59, Brendan Miller <[EMAIL PROTECTED]> wrote:
> What would heavy python unit testers say is the best framework?
>
> I've seen a few mentions that maybe the built in unittest framework
> isn't that great.
The UT frameworks follow the same principles and are all alike more or
less. Of
On 9 Nov., 20:44, Fuzzyman <[EMAIL PROTECTED]> wrote:
> On Nov 9, 2:18 pm, Anton Vredegoor <[EMAIL PROTECTED]> wrote:
>
>
>
> > On Thu, 30 Oct 2008 17:45:40 +0100
>
> > Gerhard Häring <[EMAIL PROTECTED]> wrote:
> > > psyco seems to just work on Linux with Python 2.6. So it is probably
> > > "only"
On 9 Nov., 17:49, Terry Reedy <[EMAIL PROTECTED]> wrote:
> I was asking the OP ;-)
Thank you for the discussion.
--
http://mail.python.org/mailman/listinfo/python-list
On 9 Nov., 09:26, Rhamphoryncus <[EMAIL PROTECTED]> wrote:
> On Nov 8, 10:14 pm, Kay Schluehr <[EMAIL PROTECTED]> wrote:
>
> > I guess building a multiset is a little more expensive than just O(n).
> > It is rather like building a dict from a list which is O(k*n)
On 9 Nov., 07:06, Steven D'Aprano <[EMAIL PROTECTED]
cybersource.com.au> wrote:
> On Sat, 08 Nov 2008 20:36:59 -0800, Kay Schluehr wrote:
> > On 9 Nov., 05:04, Terry Reedy <[EMAIL PROTECTED]> wrote:
>
> >> Have you written any Python code where you rea
On 9 Nov., 05:49, Alex_Gaynor <[EMAIL PROTECTED]> wrote:
> On Nov 8, 11:36 pm, Kay Schluehr <[EMAIL PROTECTED]> wrote:
>
>
>
> > On 9 Nov., 05:04, Terry Reedy <[EMAIL PROTECTED]> wrote:
>
> > > Have you written any Python code where you rea
On 9 Nov., 05:04, Terry Reedy <[EMAIL PROTECTED]> wrote:
> Have you written any Python code where you really wanted the old,
> unpredictable behavior?
Sure:
if len(L1) == len(L2):
return sorted(L1) == sorted(L2) # check whether two lists contain
the same elements
else:
return False
It
On 31 Okt., 15:30, Duncan Booth <[EMAIL PROTECTED]> wrote:
> If that subject line didn't trip everyone's killfiles, see
> http://pythonide.blogspot.com/2008/10/how-to-make-money-with-free-sof...
> for a fantastic story involving Python.
>
> --
> Duncan Boothhttp://kupuguy.blogspot.com
Masterpiece
On 30 Okt., 18:28, luca72 <[EMAIL PROTECTED]> wrote:
> hello
> Another stupit question instead of use
> sito = urllib.urlopen('http://www.prova.com/')
> esamino = BeautifulSoup(sito)
>
> i do
> sito = urllib.urlopen('http://onlygame.helloweb.eu/')
> file_sito = open('sito.html', 'wb')
> for line
On 29 Okt., 17:45, luca72 <[EMAIL PROTECTED]> wrote:
> Hello
> I try to use beautifulsoup
> i have this:
> sito = urllib.urlopen('http://www.prova.com/')
> esamino = BeautifulSoup(sito)
> luca = esamino.findAll('tr', align='center')
>
> print luca[0]
>
> >> >>href="#">#144.4MB >>align="left"> Pc-pr
On 28 Okt., 15:25, [EMAIL PROTECTED] wrote:
> All,
>
> I am trying to write a script that will parse and extract data from a
> MS Word document. Can / would anyone refer me to a tutorial on how to
> do that? (perhaps from tables). I am aware of, and have downloaded
> the pywin32 extensions, but
On 11 Okt., 09:56, lkcl <[EMAIL PROTECTED]> wrote:
> > The role of Python is somewhat arbitrary. This could change only if
> > Python becomes a client side language executed by AVM,V8etc.
>
> pyv8 -http://advogato.org/article/985.html
> pyjs.py - standalone python-to-javascript compiler, seehttp://
On 18 Okt., 22:01, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote:
> Perhaps it also omitted the fact that nothing prevents you from defining a
> function to write things to stdout (or elsewhere) in Python 2.5, making the
> Python 3.x change largely a non-feature. ;)
>
> Jean-Paul
Even more. If so
On 15 Okt., 14:34, Mr.SpOOn <[EMAIL PROTECTED]> wrote:
> Hi,
> in a project I'm overloading a lot of comparison and arithmetic
> operators to make them working with more complex classes that I
> defined.
>
> Sometimes I need a different behavior of the operator depending on the
> argument. For exam
On 6 Okt., 16:19, Joe Strout <[EMAIL PROTECTED]> wrote:
> I'm just re-learning Python after nearly a decade away. I've learned
> a good healthy paranoia about my code in that time, and so one thing
> I'd like to add to my Python habits is a way to both (a) make intended
> types clear to the
On 10 Okt., 23:04, Terry Reedy <[EMAIL PROTECTED]> wrote:
> Kay Schluehr wrote:
> > Me too because I don't get this:
>
> > "key specifies a function of one argument that is used to extract a
> > comparison key from each list element: key=str.lower. The defau
On 10 Okt., 20:38, [EMAIL PROTECTED] wrote:
> Kay Schluehr:
>
> > Sometimes it helps when people just make clear how they use technical
> > terms instead of invoking vague associations.
>
> And generally Python docs can enjoy growing few thousands examples...
C
On 10 Okt., 19:22, [EMAIL PROTECTED] wrote:
> On Oct 10, 8:35 am, Kay Schluehr <[EMAIL PROTECTED]> wrote:
>
> > On 9 Okt., 22:36, [EMAIL PROTECTED] wrote:
>
> > > Yes, that's a wonderful thing, because from the code I see around
> > > 99.9% of people s
On 9 Okt., 22:36, [EMAIL PROTECTED] wrote:
> Yes, that's a wonderful thing, because from the code I see around
> 99.9% of people see the cmp and just use it, totally ignoring the
> presence of the 'key' argument, that allows better and shorter
> solutions of the sorting problem.
Me too because I
On 26 Sep., 08:47, [EMAIL PROTECTED] wrote:
> I'm trying to save an image from a Flash AS3 to my server as a jpg
> file. I found some PHP code to do this, but I want to do this in
> Python.
I'd expect you use AS3 to save the image file ( just looking at Adobes
AS3 docs on how this works ) and load
On 24 Sep., 09:26, Bruno Desthuilliers wrote:
> Phil Cataldo a écrit :
>
> > Hi,
>
> > I just found this new? python web framework
> > (http://pypi.python.org/pypi/nagare/0.1.0).
>
> > Does anybody know or use it ?
>
> First time I hear of it, but it looks interesting (note : Stackless
> continuat
On 23 Sep., 21:23, J Peyret <[EMAIL PROTECTED]> wrote:
> On Sep 23, 8:31 am, [EMAIL PROTECTED] wrote:
>
> Guys, this looks like a great data structure/algo for something I am
> working on.
>
> But... where do I find some definitions of the original BK-tree idea?
*geometric data structures*. Just g
1 - 100 of 725 matches
Mail list logo