issue

2019-07-10 Thread joshua kay
i was made aware by the python installer about the support team, please tell me a solution for my issue thank you, Joshua kay -- https://mail.python.org/mailman/listinfo/python-list

Re: Setting longer default decimal precision

2013-11-20 Thread Kay Y. Jheallee
On 13.Nov.20.Wed 14:02, Steven D'Aprano wrote:> Hi Kay, > > You emailed me off-list, but your email address is bouncing or invalid, > so I have no way to email you back. So THAT's where it went! Sorry about that...yes, it WAS meant for the group :/! > [you wrote]

Setting longer default decimal precision

2013-11-18 Thread Kay Y. Jheallee
Using 1/3 as an example, >>> 1./3 0. >>> print "%.50f" % (1./3) 0.1482961625624739099293947219848633 >>> print "%.50f" % (10./3) 3.33348136306995002087205648422241210938 >>> print "%.50f" % (100./3) 33.33570180911920033395290374755859375000

Re: How to implement Varient/Tagged Unions/Pattern Matching in Python?

2009-12-12 Thread Kay Schluehr
> 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

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

2009-06-27 Thread Kay Schluehr
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

Re: Python 3.0.1 and mingw

2009-06-23 Thread Kay Schluehr
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

Re: Status of Python threading support (GIL removal)?

2009-06-20 Thread Kay Schluehr
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

Re: Status of Python threading support (GIL removal)?

2009-06-20 Thread Kay Schluehr
> 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/

Re: Measuring Fractal Dimension ?

2009-06-14 Thread Kay Schluehr
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

Re: unladen swallow: python and llvm

2009-06-07 Thread Kay Schluehr
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

Re: Using C++ and ctypes together: a vast conspiracy? ;)

2009-06-03 Thread Kay Schluehr
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

Re: Using C++ and ctypes together: a vast conspiracy? ;)

2009-06-02 Thread Kay Schluehr
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"

Re: I need help building a data structure for a state diagram

2009-05-24 Thread Kay Schluehr
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

Re: I need help building a data structure for a state diagram

2009-05-24 Thread Kay Schluehr
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

Re: How to get path.py ? http://www.jorendorff.com/ is down

2009-05-22 Thread Kay Schluehr
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

Re: Parsing Strings in Enclosed in Curly Braces

2009-05-16 Thread Kay Schluehr
> 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

Re: Parsing Strings in Enclosed in Curly Braces

2009-05-15 Thread kay
On 15 Mai, 18:12, xama...@yahoo.com wrote: > How do you parse a string enclosed in Curly Braces? > > For instance: > > x = "{ABC EFG IJK LMN OPQ}" > > I want to do x.split('{} ') and it does not work. Why does it not work > and what are EXCEPTIONS to using the split method? > > That I want to split

Re: Nimrod programming language

2009-05-11 Thread kay
On 12 Mai, 02:10, Tomasz Rola wrote: > On Mon, 11 May 2009, rump...@web.de wrote: > > > One question I ask myself upon seeing a new language is if it is possible > > > to program amb (amb=ambiguous) operator in it. This page gives a very > > > nice, "code first" explanation of amb and how it is su

Re: php to python code converter

2009-05-10 Thread kay
rror exceptions. Same arguments apply to Javascript. Not sure about Ruby but I do think a parser is feasible despite context sensitivities. Ruby is not my concern though. Personally I'd be interested in Wordpress which I like and use. Kay -- http://mail.python.org/mailman/listinfo/python-list

Re: Nimrod programming language

2009-05-09 Thread kay
On 8 Mai, 17:48, Andreas Rumpf wrote: > Dear Python-users, > > I invented a new programming language called "Nimrod" that combines Python's > readability with C's performance. Please check it out:http://force7.de/nimrod/ > Any feedback is appreciated. > > Regards, > Andreas Rumpf > >

Re: complementary lists?

2009-04-28 Thread Kay Schluehr
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

Re: Too early implementation

2009-04-18 Thread Kay Schluehr
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

Re: Domain Driven Design and Python

2009-04-17 Thread Kay Schluehr
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

Re: compiler package vs parser

2009-04-17 Thread Kay Schluehr
> 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

Re: compiler package vs parser

2009-04-16 Thread Kay Schluehr
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

Re: setuptools catch 22

2009-04-16 Thread Kay Schluehr
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

Re: design question, metaclasses?

2009-04-12 Thread Kay Schluehr
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

nonlocal in Python 2.6

2009-04-07 Thread Kay Schluehr
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

Re: Painful?: Using the ast module for metaprogramming

2009-04-06 Thread Kay Schluehr
> -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

Re: Generators/iterators, Pythonicity, and primes

2009-04-05 Thread Kay Schluehr
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. >

Re: Generators/iterators, Pythonicity, and primes

2009-04-05 Thread Kay Schluehr
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 &

Re: Generators/iterators, Pythonicity, and primes

2009-04-04 Thread Kay Schluehr
> 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

Re: Python Goes Mercurial

2009-04-02 Thread Kay Schluehr
> 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

Re: PEP 382: Namespace Packages

2009-04-02 Thread Kay Schluehr
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

Re: Python Goes Mercurial

2009-04-02 Thread Kay Schluehr
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:

Re: Python Goes Mercurial

2009-04-02 Thread Kay Schluehr
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

Re: Beazley on Generators

2009-04-01 Thread Kay Schluehr
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

Re: Thoughts on language-level configuration support?

2009-04-01 Thread Kay Schluehr
> "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

Re: Relative Imports, why the hell is it so hard?

2009-03-31 Thread Kay Schluehr
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

Re: Relative Imports, why the hell is it so hard?

2009-03-31 Thread Kay Schluehr
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 >

Re: Relative Imports, why the hell is it so hard?

2009-03-31 Thread Kay Schluehr
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 > | |

Re: Thoughts on language-level configuration support?

2009-03-31 Thread Kay Schluehr
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

Re: Relative Imports, why the hell is it so hard?

2009-03-31 Thread Kay Schluehr
esign the import system from the ground up? I do not mean a rather faithful and accessible reconstruction such as Brett Cannons work but a radical re- design which starts with a domain model and does not end with Loaders, Importers and Finders which are actually services that pretend to be objects. Kay -- http://mail.python.org/mailman/listinfo/python-list

Re: Another form of dynamic import

2009-03-25 Thread Kay Schluehr
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.

Re: Relative Imports, why the hell is it so hard?

2009-03-25 Thread Kay Schluehr
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

Re: Does Python have certificate?

2009-03-23 Thread Kay Schluehr
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

Re: what features would you like to see in 2to3?

2009-03-22 Thread Kay Schluehr
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

Re: How to interface with C# without IronPython

2009-03-17 Thread Kay Schluehr
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&#

Re: How to interface with C# without IronPython

2009-03-17 Thread Kay Schluehr
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

Re: Indentations and future evolution of languages

2009-03-07 Thread Kay Schluehr
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

Re: Indentations and future evolution of languages

2009-03-06 Thread Kay Schluehr
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

Re: Python parser

2009-03-03 Thread Kay Schluehr
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

Re: is python Object oriented??

2009-01-29 Thread Kay Schluehr
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

Re: Dynamic methods and lambda functions

2009-01-26 Thread Kay Schluehr
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

Re: Dynamic methods and lambda functions

2009-01-25 Thread Kay Schluehr
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

Re: Two import questions in Python 3.0

2009-01-24 Thread Kay Schluehr
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

Re: What's the business with the asterisk?

2009-01-24 Thread Kay Schluehr
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,

Re: Two import questions in Python 3.0

2009-01-24 Thread Kay Schluehr
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

Two import questions in Python 3.0

2009-01-23 Thread Kay Schluehr
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

Re: The First Law Of comp.lang.python Dynamics

2009-01-23 Thread Kay Schluehr
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

The First Law Of comp.lang.python Dynamics

2009-01-22 Thread Kay Schluehr
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

Re: what's the point of rpython?

2009-01-19 Thread Kay Schluehr
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

Re: English-like Python

2009-01-17 Thread Kay Schluehr
n understand. Yep. Resolving ambiguities in natural languages is actually an open research topic. Moving from Python to a language that is more context dependent than Larry Wall ever dreamed about and launch an interpreter on the Enterprise is actually a worthwhile project for future generations. Kay -- http://mail.python.org/mailman/listinfo/python-list

Re: import relative (with a directory)

2009-01-10 Thread Kay Schluehr
e modules are not "scripts" anymore but "modules in a package" - a semantical difference I wasn't even aware of until relative imports were introduced in Python 2.5. I'd rather avoid the sour grapes and use absolute imports. Kay -- http://mail.python.org/mailman/listinfo/python-list

Re: looking for tips on how to implement "ruby-style" Domain Specific Language in Python

2009-01-08 Thread Kay Schluehr
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

Re: looking for tips on how to implement "ruby-style" Domain Specific Language in Python

2009-01-08 Thread Kay Schluehr
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

Re: looking for tips on how to implement "ruby-style" Domain Specific Language in Python

2009-01-07 Thread Kay Schluehr
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

Re: looking for tips on how to implement "ruby-style" Domain Specific Language in Python

2009-01-06 Thread Kay Schluehr
L becomes external. I remember having had a similar discussion a while ago with Kevin Dangoor the original TurboGears developer who has also written Paver [1]. In the end DSL syntax wasn't worth the hassle and Kevin developed Paver entirely in Python. Kay [1] http://www.blueskyonmars.com/

Re: If your were going to program a game...

2009-01-06 Thread Kay Schluehr
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

Re: Code coverage to Python code

2009-01-05 Thread Kay Schluehr
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

Re: New Python 3.0 string formatting - really necessary?

2008-12-20 Thread Kay Schluehr
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

Re: Relative imports in Python 3.0

2008-12-17 Thread Kay Schluehr
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

Re: ActivePython 2.6.1.1 and 3.0.0.0 released!

2008-12-12 Thread Kay Schluehr
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

Re: python3.0 - any hope it will get faster?

2008-12-09 Thread Kay Schluehr
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

Re: Guido's new method definition idea

2008-12-05 Thread Kay Schluehr
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

Re: Porting to 3.0, test coverage

2008-12-04 Thread Kay Schluehr
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

Re: Debugging a Python Program that Hangs

2008-12-03 Thread Kay Schluehr
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

Re: Python+Pyjamas+V8=ftw

2008-12-02 Thread Kay Schluehr
framework. The compiler hasn't anything to do with it anymore and can be somewhat liberated from hard work. This roundtrip breaks with the GWT scheme of one way translation for an obvious reasons: Python is not Java. Regards, Kay -- http://mail.python.org/mailman/listinfo/python-list

Re: Python docs and enumeration of sections

2008-11-29 Thread Kay Schluehr
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

Python docs and enumeration of sections

2008-11-29 Thread Kay Schluehr
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

Re: Getting in to metaprogramming

2008-11-27 Thread Kay Schluehr
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

Re: Getting in to metaprogramming

2008-11-26 Thread Kay Schluehr
ttempt to translate the function into other Python code that expresses a corepy routine. You could create a decorator that works as follows 1) reads the source of the decorated function 2) transforms the source into corepy source and compiles it or 3) if 2) fails it just returns the passed code ob

Re: Getting in to metaprogramming

2008-11-26 Thread Kay Schluehr
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

Re: regular expressions ... slow

2008-11-19 Thread Kay Schluehr
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

Re: regular expressions ... slow

2008-11-18 Thread Kay Schluehr
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 version. Otherwise if someone e.g. a student intends to write his master thesis about a next generation regexp engine built

Re: best python unit testing framwork

2008-11-15 Thread Kay Schluehr
ertEqual in Python they feel alienated and reminded that Java is out there. Personally I use unittest.py for a pretty obvious reason: other people can simply run the test scripts without prior installation of a testframework. Kay -- http://mail.python.org/mailman/listinfo/python-list

Re: Is psyco available for python 2.6?

2008-11-09 Thread Kay Schluehr
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"

Re: Python 3.0 - is this true?

2008-11-09 Thread Kay Schluehr
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

Re: Python 3.0 - is this true?

2008-11-09 Thread Kay Schluehr
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)

Re: Python 3.0 - is this true?

2008-11-08 Thread Kay Schluehr
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

Re: Python 3.0 - is this true?

2008-11-08 Thread Kay Schluehr
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

Re: Python 3.0 - is this true?

2008-11-08 Thread Kay Schluehr
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

Re: How to make money with Python!

2008-11-03 Thread Kay Schluehr
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

Re: beutifulsoup

2008-10-30 Thread Kay Schluehr
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

Re: beutifulsoup

2008-10-29 Thread Kay Schluehr
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

Re: parsing MS word docs -- tutorial request

2008-10-29 Thread Kay Schluehr
ay I could link two documents ( those were public specifications being originally disconnected ). Kay -- http://mail.python.org/mailman/listinfo/python-list

Re: PyGUI as a standard GUI API for Python?

2008-10-23 Thread Kay Schluehr
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://

Re: Linux.com: Python 3 makes a big break

2008-10-18 Thread Kay Schluehr
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

Re: Overloading operators

2008-10-15 Thread Kay Schluehr
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

Re: type-checking support in Python?

2008-10-13 Thread Kay Schluehr
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

  1   2   3   4   5   6   7   8   >