Re: [Python-Dev] Rounding float to int directly ...

2006-08-02 Thread Michael Chermside
ze out more digits of precision per bit of storage than decimal floats, or that binary floats are faster because they are supported by specialized hardware, then I'd go along, but they're not a "better model". -- Michael Chermside ___

Re: [Python-Dev] Rounding float to int directly ...

2006-08-02 Thread Michael Chermside
hat it is always trumped by adding another digit of precision to your numbers / lookup tables / whatever. If so, then even more credit needs to be given to the system that supports adjustable precision (the Decimal module). -- Michael Chermside ___ Pyt

Re: [Python-Dev] segmentation fault in Python 2.5b3 (trunk:51066)

2006-08-03 Thread Michael Hudson
Duncan Booth <[EMAIL PROTECTED]> writes: > Does Coverity recognise objects on Python's internal pools as deallocated? Coverity doesn't work on that level; it analyzes source code, and knows about Python's INCREFs and DECREFs. > The moral is to regard the reference counting rules as law: no matt

Re: [Python-Dev] unicode hell/mixing str and unicode as dictionary keys

2006-08-03 Thread Michael Urman
ersely affect behavior in only slightly edgy cases, perhaps it should go through a warning phase (which ideally could show the exception that was thrown, thus yielding most or all of the intended debugging advantage). Michael -- Michael Urman http://www.tortall.net/mu/blog __

Re: [Python-Dev] unicode hell/mixing str and unicode as dictionary keys

2006-08-03 Thread Michael Urman
nnoying at times. We should fix those times, not the (unbroken) exception. Michael -- Michael Urman http://www.tortall.net/mu/blog ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] unicode hell/mixing str and unicode as dictionary keys

2006-08-04 Thread Michael Hudson
"M.-A. Lemburg" <[EMAIL PROTECTED]> writes: > The point here is that a typical user won't expect any comparisons > to be made when dealing with dictionaries, simply because the fact > that you do need to make comparisons is an implementation detail. Of course looking things up in a dictionary inv

[Python-Dev] Dicts are broken Was: unicode hell/mixing str and unicode asdictionarykeys

2006-08-04 Thread Michael Chermside
hen later in the code we could do things like this: language = 'en' dayOfWeek = DaysOfWeek.Mon month = Months.Jan dayOfMonth = 3 print '%s, %s %s' % ( translations[dayOfWeek][language], translations[month][language], dayOfMonth) # this works in 2.4 but fails in 2.5 - end problem_with_dicts.py Please reconsider. -- Michael Chermside ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Dicts are broken Was: unicode hell/mixing str and unicode asdictionarykeys

2006-08-04 Thread Michael Hudson
Michael Chermside <[EMAIL PROTECTED]> writes: > I'm changing the subject line because I want to convince everyone that > the problem being discussed in the "unicode hell" thread has nothing > to do with unicode and strings. It's all about dicts. I'd

[Python-Dev] Python 2.5b3 and AIX 4.3 - It Works

2006-08-04 Thread Michael Kent
Because of a requirement to remain compatible with AIX 4.3, I have been forced to stay with Python 2.3, because while 2.4 would compile under AIX 4.3, it would segfault immediately when run. I'm happy to report that Python 2.5b3 compiles and runs fine under AIX 4.3, and passes most of its test sui

Re: [Python-Dev] Dicts are broken Was: unicode hell/mixing str and unicode asdictionarykeys

2006-08-04 Thread Michael Chermside
Marc-Andre Lemburg writes: > How about generating a warning instead and then go for the exception > in 2.6 ? Agreed. Michael Hudson's explanation convinced me. -- Michael Chermside ___ Python-Dev mailing list Python-Dev@pyth

Re: [Python-Dev] unicode hell/mixing str and unicode as dictionary keys

2006-08-07 Thread Michael Foord
with a "not convertible" exception). Which of the > two conversions is selected is arbitrary; we should, of > course, continue to use the one we always used (for > "ascii", there is no difference between the two). > > +1 This seems the most (onl

Re: [Python-Dev] unicode hell/mixing str and unicode as dictionary keys

2006-08-07 Thread Michael Foord
king this is fine in principle - but for Py3K not Py 2.x. That means Martin's solution is the best for the current problem. (IMHO of course...) Michael http://www.voidspace.org.uk/python/index.shtml ___ Python-Dev mailing list Python-

Re: [Python-Dev] SyntaxError: can't assign to function call

2006-08-09 Thread Michael Hudson
Neal Becker <[EMAIL PROTECTED]> writes: > 1) Should assignment to a temporary object be allowed? The question doesn't make sense: in Python, you assign to a name, an attribute or a subscript, and that's it. Cheers, mwh -- I think there's a rather large difference between a stale

Re: [Python-Dev] Dict suppressing exceptions

2006-08-10 Thread Michael Hudson
"Jim Jewett" <[EMAIL PROTECTED]> writes: >> It wasn't my idea to stop ignoring exceptions in dict lookups; I would >> gladly have put this off until Py3k, where the main problem >> (str-unicode __eq__ raising UnicodeError) will go away. > >> But since people are adamant that they want this in soon

Re: [Python-Dev] Dict suppressing exceptions

2006-08-10 Thread Michael Urman
tion, we can satisfy both imagined camps. Those in Armin's position can make that warning raise an exception while debugging, and those using it on purpose can squash it. I understand the utility of being able to see this case happening. I'm not s

Re: [Python-Dev] SyntaxError: can't assign to function call

2006-08-10 Thread Michael Urman
On 8/9/06, Michael Hudson <[EMAIL PROTECTED]> wrote: > The question doesn't make sense: in Python, you assign to a name, > an attribute or a subscript, and that's it. Just to play devil's advocate here, why not to a function call via a new __setcall__? I'm no

Re: [Python-Dev] Dict suppressing exceptions

2006-08-10 Thread Michael Chermside
Michael Urman writes: > I strongly believe that unicode vs str here is the symptom and not the > actual problem. The comparison between two non-us-ascii str/unicode > instances is but one of many ways to raise an exception during > comparison. [... example ...] > Yes this

Re: [Python-Dev] Dict suppressing exceptions

2006-08-11 Thread Michael Chermside
icode but let everyone else using objects that raise exceptions suffer), but I think it would be more friendly to use warnings for now and exceptions after another full release cycle. The warnings should solve the underlying issue (hard-to-debug problems). -- Michael Chermside _

Re: [Python-Dev] Elementtree and Namespaces in 2.5

2006-08-11 Thread Michael Chermside
to release ElementTree in the stdlib exactly as it is in 2.5 and change it for 2.6. -- Michael Chermside ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Dict suppressing exceptions

2006-08-11 Thread Michael Chermside
I think we should note this policy someplace official -- perhaps in the Language Reference where __eq__ and __lt__ are defined. But I do not think that these changes should be made until Py3K. What do others think? Is this the "right" approach? --

Re: [Python-Dev] What should the focus for 2.6 be?

2006-08-22 Thread Michael Hudson
"A.M. Kuchling" <[EMAIL PROTECTED]> writes: > On Mon, Aug 21, 2006 at 12:24:54PM -0700, Brett Cannon wrote: >> As for the docs, they just need a thorough updating. > > Michael Hudson was working on a new guide to extending/embedding > Python. Incorporating

Re: [Python-Dev] Signals, threads, blocking C functions

2006-09-04 Thread Michael Hudson
"Gustavo Carneiro" <[EMAIL PROTECTED]> writes: > According to [1], all python needs to do to avoid this problem is > block all signals in all but the main thread; Argh, no: then people who call system() from non-main threads end up running subprocesses with all signals masked, which breaks other

Re: [Python-Dev] Fwd: Problem withthe API for str.rpartition()

2006-09-05 Thread Michael Chermside
ke this: S.partition(sep) -> (head, sep, tail) S.rpartition(sep) -> (tail, sep, rest) Perhaps someone else can find something clearer than my suggestion, but in my own head, the terms "head" and "tail" are tighly bound with the idea of beginning and end (respective

Re: [Python-Dev] Signals, threads, blocking C functions

2006-09-06 Thread Michael Hudson
"Gustavo Carneiro" <[EMAIL PROTECTED]> writes: > On 9/4/06, Nick Maclaren <[EMAIL PROTECTED]> wrote: >> "Gustavo Carneiro" <[EMAIL PROTECTED]> wrote: >> > I am now thinking of something along these lines: >> > typedef void (*PyPendingCallNotify)(void *user_data); >> > PyAPI_FUNC(void) Py_AddPend

[Python-Dev] Change in file() behavior in 2.5

2006-09-07 Thread Michael Urman
pplication I work with, which used an explicit 'wU', that will currently stop working when people upgrade Python but not our application. Thanks, Michael -- Michael Urman http://www.tortall.net/mu/blog ___ Python-Dev mailing list Python-Dev@p

Re: [Python-Dev] Change in file() behavior in 2.5

2006-09-07 Thread Michael Hudson
"Michael Urman" <[EMAIL PROTECTED]> writes: > Hi folks, > > Between 2.4 and 2.5 the behavior of file or open with the mode 'wU' > has changed. In 2.4 it silently works. in 2.5 it raises a ValueError. > I can't find any more discussion on it in python

Re: [Python-Dev] _PyGILState_NoteThreadState should be static or not?

2006-09-11 Thread Michael Hudson
On 11 Sep 2006, at 09:34, Neal Norwitz wrote: > Michael, > > In Python/pystate.c, you made this checkin: > > """ > r39044 | mwh | 2005-06-20 12:52:57 -0400 (Mon, 20 Jun 2005) | 8 lines > > Fix bug: [ 1163563 ] Sub threads execute in restricted mode >

Re: [Python-Dev] Signals, threads, blocking C functions

2006-09-13 Thread Michael Hudson
"Martin v. Löwis" <[EMAIL PROTECTED]> writes: > Michael Hudson schrieb: >>> According to [1], all python needs to do to avoid this problem is >>> block all signals in all but the main thread; >> >> Argh, no: then people who call system() from non

[Python-Dev] Download URL typo

2006-09-19 Thread Michael Walter
Hiho, in case noone didn't notice yet: the "Windows MSI Installer" link at http://www.python.org/download/releases/2.5/ points to Python 2.4! Regards, Michael ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/m

[Python-Dev] Suggestion for a new built-in - flatten

2006-09-22 Thread Michael Foord
kinter : import _tkinter._flatten as flatten There are several different possible approaches in pure Python, but is this an idea that has legs ? All the best, Michael Foord http://www.voidspace.org.uk/python/index.shtml -- No virus found in this outgoing message. Checked by AVG Free Editi

Re: [Python-Dev] Suggestion for a new built-in - flatten

2006-09-22 Thread Michael Foord
[EMAIL PROTECTED] wrote: > On Fri, 22 Sep 2006 18:43:42 +0100, Michael Foord <[EMAIL PROTECTED]> wrote: > > >> I have a suggestion for a new Python built in function: 'flatten'. >> > > This seems superficially like a good idea, but I think add

[Python-Dev] Python 2.5 bug? Changes in behavior of traceback module

2006-09-23 Thread Michael Glassford
In Python 2.4, traceback.print_exc() and traceback.format_exc() silently do nothing if there is no active exception; in Python 2.5, they raise an exception. Not too difficult to handle, but unexpected (and a pain if you use it in a lot of places). I assume it was an unintentional change? Mike

Re: [Python-Dev] AST structure and maintenance branches

2006-09-23 Thread Michael Hudson
Anthony Baxter <[EMAIL PROTECTED]> writes: > I'd like to propose that the AST format returned by passing PyCF_ONLY_AST to > compile() get the same guarantee in maintenance branches as the bytecode > format - that is, unless it's absolutely necessary, we'll keep it the same. > Otherwise anyone t

Re: [Python-Dev] Minipython

2006-09-23 Thread Michael Hudson
Milan Krcmar <[EMAIL PROTECTED]> writes: > I would like to run Python scripts on an embedded MIPS Linux platform > having only 2 MiB of flash ROM and 16 MiB of RAM for everything. > > Current (2.5) stripped and gzipped (I am going to use a compressed > filesystem) CPython binary, compiled with def

Re: [Python-Dev] Typo.pl scan of Python 2.5 source code

2006-09-25 Thread Michael Hudson
"Neal Norwitz" <[EMAIL PROTECTED]> writes: > I ignored these as I'm not certain all the platforms we run on accept > free(NULL). It's mandated by C99, and I don't *think* it changed from the previous version (I only have a bootleg copy of C99 :). Cheers, mwh -- TRSDOS: Friendly old lizard. O

Re: [Python-Dev] Python 2.5 bug? Changes in behavior of traceback module

2006-09-25 Thread Michael Glassford
Thanks! Mike Georg Brandl wrote: > Michael Glassford wrote: >> In Python 2.4, traceback.print_exc() and traceback.format_exc() silently >> do nothing if there is no active exception; in Python 2.5, they raise an >> exception. Not too difficult to handle, but unexpected (

Re: [Python-Dev] PEP 355 status

2006-09-30 Thread Michael Hudson
[EMAIL PROTECTED] writes: > I hope that eventually Python will include some form of OO > filesystem access, but I am equally hopeful that the current PEP 355 > path.py is not it. I think I agree with this too. For another source of ideas there is the 'py.path' bit of the py lib, which, um, doesn

Re: [Python-Dev] PEP 351 - do while

2006-10-01 Thread Michael Urman
while True until False: # run once? run forever? while True until True: # run forever? run once? It's still very different from any syntactical syntax I can think of in python. I'm not sure I like the idea. Michael -- Michael Urman http://www.tortall.net/mu/blog ___

Re: [Python-Dev] Caching float(0.0)

2006-10-02 Thread Michael Hudson
"Martin v. Löwis" <[EMAIL PROTECTED]> writes: > Kristján V. Jónsson schrieb: >> I can't see how this situation is any different from the re-use of >> low ints. There is no fundamental law that says that ints below 100 >> are more common than other, yet experience shows that this is so, >> and so

Re: [Python-Dev] 2.3.6 for the unicode buffer overrun

2006-10-12 Thread Michael Foord
em. Particularly the SVN integration. If rest2web is a serious option and needs any customisation, I'd be happy to look into it. Michael Foord > Once again, it's a matter of people putting the time in

Re: [Python-Dev] Segfault in python 2.5

2006-10-18 Thread Michael Hudson
"Mike Klaas" <[EMAIL PROTECTED]> writes: > [http://sourceforge.net/tracker/index.php?func=detail&aid=1579370&group_id=5470&atid=105470] > > Hello, > > I'm managed to provoke a segfault in python2.5 (occasionally it just a > "invalid argument to internal function" error). I've posted a > traceback

[Python-Dev] Fwd: Re: ANN compiler2 : Produce bytecode from Python 2.5 AST

2006-10-25 Thread Michael Spencer
ct readme.txt at: http://svn.brownspencer.com/pycompiler/branches/new_ast/readme.txt Code is available in Subversion at http://svn.brownspencer.com/pycompiler/branches/new_ast/ The main test script is test/test_compiler.py which compiles all the modules in /Lib and /Lib/test and com

Re: [Python-Dev] PEP: Adding data-type objects to Python

2006-10-31 Thread Michael Chermside
up the good work! Some day I'd like to see NumPy built in to the standard Python distribution. The incremental, PEP by PEP approach you are taking is the best route to getting there. But there may be some changes along the way -- convergence with ctypes may be one of

Re: [Python-Dev] [Tracker-discuss] Getting Started

2006-11-03 Thread Michael Twomey
> install the keys for you. > I'll need svn access to svn.python.org too for the roundup tracker. My key is over at http://translucentcode.org/mick/ssh_key.txt firstname.lastname: michael.twomey cheers, Michael ___ Python-Dev m

Re: [Python-Dev] Path object design

2006-11-04 Thread Michael Urman
as roots, but I don't know that there's any requirement for a /.. to be meaningless (even if it often is). -- Michael Urman http://www.tortall.net/../mu/blog ;) ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/li

[Python-Dev] Last chance to join the Summer of PyPy!

2006-11-08 Thread Michael Hudson
Hopefully by now you have heard of the "Summer of PyPy", our program for funding the expenses of attending a sprint for students. If not, you've just read the essence of the idea :-) However, the PyPy EU funding period is drawing to an end and there is now only one sprint left where we can sponso

Re: [Python-Dev] Passing floats to file.seek

2006-11-13 Thread Michael Urman
say that it makes more sense to me than your reaction indicates. -- Michael Urman http://www.tortall.net/mu/blog ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] fpectl: does a better implementation make sense?

2006-12-01 Thread Michael Hudson
Giovanni Bajo <[EMAIL PROTECTED]> writes: > Hello, > > I spent my last couple of hourse reading several past threads about fpectl. > If > I'm correct > > 1) fpectl is scheduled for deletion in 2.6. > 2) The biggest problem is that the C standard says that it's undefined to > return from a SIGFP

Re: [Python-Dev] __str__ and unicode

2006-12-06 Thread Michael Urman
linux2 Type "help", "copyright", "credits" or "license" for more information. >>> class Foo(object): ... def __unicode__(self): ... print "unicode" ... return u"hi" ... def __str__(self): ... print "str&

Re: [Python-Dev] [NPERS] Re: a feature i'd like to see in python #2: indexing of match objects

2006-12-06 Thread Michael Urman
aside, if you're trying to show that inconsistencies in a language are bad by referencing a paper showing that people who used consistent (if incorrect) mental models scored better than those who did not, you may have to explain further; I don't see the connection. -- Michael Urman h

Re: [Python-Dev] [NPERS] Re: a feature i'd like to see in python #2: indexing of match objects

2006-12-07 Thread Michael Urman
eful as indexing. Really I don't use regexps enough in Python to have a position; I was more interested in figuring out where the type(m) == type(m[:]) idea had come from, as I had never formed it.) -- Michael Urman http://www.tortall.net/mu/blog ___

Re: [Python-Dev] [NPERS] Re: a feature i'd like to see in python #2: indexing of match objects

2006-12-07 Thread Michael Urman
ings easier on everyone because there's less to remember, not because it makes us better learners of the skills necessary for programming well. The arguments I saw in the paper only addressed the second point. -- Michael Urman http://www.tortall.net/mu/blog

[Python-Dev] PropertyType

2006-12-24 Thread Michael Foord
Hello all, Could / should 'PropertyType' be added to the types module ? Michael Foord http://www.voidspace.org.uk/python/articles.shtml -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.15.26/600 - Release Date:

Re: [Python-Dev] [Python-3000] Warning for 2.6 and greater

2007-01-12 Thread Michael Hudson
Georg Brandl <[EMAIL PROTECTED]> writes: > Armin Rigo schrieb: >> Hi Paul, >> >> On Wed, Jan 10, 2007 at 11:10:10PM +, Paul Moore wrote: >>> How many other projects/packages anticipate *not* migrating to Py3K, I >>> wonder? >> >> FWIW: Psyco. > > What will PyPy do? It will certainly support

Re: [Python-Dev] The bytes type

2007-01-12 Thread Michael Foord
> > The string holds 'a string' (singular), the bytes datatype will hold 'bytes' plural. Bytes is more accurate and I would stumble over byte. Michael Foord > > ___ > Python-Dev mailing list > Python-Dev@pyth

Re: [Python-Dev] [Python-3000] Warning for 2.6 and greater

2007-01-13 Thread Michael Hudson
[EMAIL PROTECTED] writes: > On 10:12 am, [EMAIL PROTECTED] wrote: > >>For practical reasons (we have enough work to be getting on with) PyPy >>is more-or-less ignoring Python 2.5 at the moment. After funding and >>so on, when there's less pressure, maybe it will seem worth it. Not >>soon though.

Re: [Python-Dev] Deletion order when leaving a scope?

2007-01-19 Thread Michael Hudson
Nick Coghlan <[EMAIL PROTECTED]> writes: > Neil Toronto wrote: >> I imagine this would be important to someone expecting system resources >> to be cleaned up, closed, deallocated, or returned inside of __del__ >> methods. Someone coming from C++ might expect LIFO behavior because >> common idio

Re: [Python-Dev] Eliminating f_tstate

2007-01-22 Thread Michael Hudson
"Martin v. Löwis" <[EMAIL PROTECTED]> writes: > Bug #1579370 reports a crash when accessing the thread state of > a terminated thread, when releasing a generator object. > > In analysing the problem, I found that f_tstate doesn't have much > utility: it is used in very few places, and in these pla

Re: [Python-Dev] [Python-checkins] buildbot failure in amd64 gentoo 2.5

2007-01-23 Thread Michael Hudson
Giovanni Bajo <[EMAIL PROTECTED]> writes: > On 23/01/2007 10.20, Brian Warner wrote: > Do I miss something here, or is the buildbot hit by spammers now? >>> It looks like it is. If that continues, we have to disable the web >>> triggers. >> >> Good grief. If anyone has any bright ideas about

Re: [Python-Dev] Unipath package

2007-01-28 Thread Michael Foord
t accept a solution which subclassed a string type? Michael Foord > There's a Path class for pathname calculations, and a FSPath subclass > for filesystem calls. I'm hoping Path -- or something resembling it > -- will find its way into os.path in Python 2.6 or 3.0. FSPath is &

[Python-Dev] Shortcut Notation for Chaining Method Calls

2007-02-03 Thread Michael O'Keefe
I had an idea on some new functionality I'd like to see offered in the python object class. I did some searching on the list but I wouldn't doubt that someone has proposed something like this before as chaining method calls seems like something folks would want to do. Specifically, I'd like to

Re: [Python-Dev] Shortcut Notation for Chaining Method Calls

2007-02-03 Thread Michael Foord
Greg Ewing wrote: > Michael O'Keefe wrote: > >> I'd like to see a built-in shorthand to allow me to >> chain method calls even when a method call does not explicity >> return a reference to the instance of the object (self). >> > > >

Re: [Python-Dev] New syntax for 'dynamic' attribute access

2007-02-13 Thread Michael Foord
currently) we use getattr / setattr almost as many as 8 times. (I was very surprised at how low that was.) That said, when I explained the proposal to two of my colleagues both of them were *very* happy with the obj.[name] suggestion. Michael Foord > Sorry for the noise, > > A

Re: [Python-Dev] with_traceback

2007-02-28 Thread Michael Foord
to the current situation) by having the traceback information overwritten, they just can't take direct advantage of the new attribute. Michael Foord ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubsc

Re: [Python-Dev] with_traceback

2007-03-02 Thread Michael Foord
Greg Ewing wrote: > Michael Foord wrote: > >> With the >> proposed changes, modules that do this would *continue* to work, surely >> ? >> > > Probably, but it might mean they were no longer thread > safe. An exception caught and raised in one thr

Re: [Python-Dev] PEP 344

2007-03-02 Thread Michael Foord
> newbies could unwittingly emulate). > > Personally, I think the new attributes and the new syntax are *great* improvements to exception handling. I would be sad to see parts of these proposals not happen. Michael Foord ___ Python-Dev mail

Re: [Python-Dev] with_traceback

2007-03-02 Thread Michael Foord
Greg Ewing wrote: > Michael Foord wrote: > >> Greg Ewing wrote: >> >> >>> An exception caught and raised in one thread would >>> be vulnerable to having its traceback clobbered by >>> another thread raising the same instance. >>&g

Re: [Python-Dev] splitext('.cshrc') (and encouraging developers)

2007-03-07 Thread Michael Foord
rtunity to involve new developers - but some kind of active engagement would seem appropriate... All the best, Michael Foord > Regards, > Martin > ___ > Python-Dev mailing list > Python-Dev@python.org > http://mail.python.org/mail

Re: [Python-Dev] with_traceback

2007-03-07 Thread Michael Foord
Greg Ewing wrote: > Michael Foord wrote: > >> With the >> proposed changes, modules that do this would *continue* to work, surely >> ? >> > > Probably, but it might mean they were no longer thread > safe. An exception caught and raised in one thr

[Python-Dev] Non implementation dependent access to calling scope

2007-03-10 Thread Michael Foord
s built in functions ? If they were specified then the IronPython guys would have to implement it for us. B-) I realise that this can allow bad some bad programming patterns, but there are times when it can be very useful. All the best, Michael Foord

Re: [Python-Dev] Non implementation dependent access to calling scope

2007-03-10 Thread Michael Foord
Martin v. Löwis wrote: > Michael Foord schrieb: >> Hello all, >> >> I realise that this may be more relevant to Python ideas, in which >> case feel free to ignore this (and my apologies). >> >> I occasionally see code looking (something) like : >> >

Re: [Python-Dev] Proposal to revert r54204 (splitext change)

2007-03-14 Thread Michael Foord
ven been shown to fix bugs in current code ? Honestly it is this sort of pointless prevarication that gives python-dev a bad name. Michael Foord ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Proposal to revert r54204 (splitext change)

2007-03-14 Thread Michael Foord
oot + ext == path, and ext is empty or begins with a period and contains at most one period. Even the docstring only states that either part may be empty, hardly documenting what is clearly a misfeature. Michael Foord > Tim Delaney > ___ >

Re: [Python-Dev] Proposal to revert r54204 (splitext change)

2007-03-14 Thread Michael Foord
> at hand. > It looks to me like a clear bugfix (the fact that there were unit tests for the insane behaviour doesn't make it any less a bug). The current docstring that states that the first element may be empty hardly counts as it being a 'documented featur

Re: [Python-Dev] Proposal to revert r54204 (splitext change)

2007-03-14 Thread Michael Foord
is everything from the last dot to the end. > ^ > Return (root, ext), either part may be empty. > > That's pretty explicit. > > Hmm... mis-memory on my part. Apologies. Michael > Tim Delaney > ___

Re: [Python-Dev] Proposal to revert r54204 (splitext change)

2007-03-14 Thread Michael Urman
ople want to retrieve the file name without the extension, we should add a function to return this basic name. Who would rather see os.path.dropext(path)? Michael -- Michael Urman http://www.tortall.net/mu/blog ___ Python-Dev mailing list Python-De

Re: [Python-Dev] Proposal to revert r54204 (splitext change)

2007-03-15 Thread Michael Urman
er value judgements reflected in Misc/NEWS, there are no similar APIs with which we can compare behavior and match to increase consistency. Michael -- Michael Urman http://www.tortall.net/mu/blog ___ Python-Dev mailing list Python-Dev@python.org http://m

Re: [Python-Dev] Amusing fan mail I got

2007-03-19 Thread Michael Foord
Sorry for the top post, but I couldn't find the right place to interject... Are you going to try it ? Michael Guido van Rossum wrote: > -- Forwarded message -- > From: Mustafa <[EMAIL PROTECTED]> > Date: Mar 19, 2007 11:41 AM > Subject: have u seen

Re: [Python-Dev] SoC AST generation question

2007-03-19 Thread Michael Spencer
dev > Unsubscribe: > http://mail.python.org/mailman/options/python-dev/python-python-dev%40m.gmane.org > FWIW, I've already implemented bytecode generation from AST, http://svn.brownspencer.com/pycompiler/branches/new_ast/ as I reported to this list previously. http://mail.python.or

Re: [Python-Dev] SoC AST generation question

2007-03-19 Thread Michael Spencer
Brett Cannon wrote: > On 3/19/07, Michael Spencer <[EMAIL PROTECTED]> wrote: ... >>> >> FWIW, I've already implemented bytecode generation from AST, >> http://svn.brownspencer.com/pycompiler/branches/new_ast/ >> as I reported to this list previously. >&

Re: [Python-Dev] Fwd: Re: Py2.5.1 release schedule

2007-03-21 Thread Michael Foord
I'd like to put something back into Python and can be around on that day. Michael > Skip > ___ > Python-Dev mailing list > Python-Dev@python.org > http://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: &g

Re: [Python-Dev] deprecate commands.getstatus()

2007-03-22 Thread Michael Foord
gt; Sure. os.fork() and the os.exec*() family can stay. But os.spawn*(), > that abomination invented by Microsoft? I also hear no opposition > against killign os.system() and os.popen() Except that 'os.system' is really easy to use and I use it rarely enough that I *

Re: [Python-Dev] deprecate commands.getstatus()

2007-03-22 Thread Michael Foord
Titus Brown wrote: > On Thu, Mar 22, 2007 at 09:34:46PM +0000, Michael Foord wrote: > -> Guido van Rossum wrote: > -> > Sure. os.fork() and the os.exec*() family can stay. But os.spawn*(), > -> > that abomination invented by Microsoft? I also hear no opposition >

Re: [Python-Dev] head crashing (was: Fwd: [Python-c heckins] buildbot warnings in x86 mvlgcc trunk)

2007-05-01 Thread Michael Hudson
Neal Norwitz gmail.com> writes: > > Can you call PyMem_FREE() without the GIL held? I couldn't find it > documented either way. Nope. See comments at the top of Python/pystate.c. Cheers, mwh ___ Python-Dev mailing list Python-Dev@python.org http:/

Re: [Python-Dev] PEP 30XZ: Simplified Parsing

2007-05-02 Thread Michael Foord
omma, no warning ... > # silently becomes f("abcdef", None) > > Implicit string concatenation is massively useful for creating long strings in a readable way though: call_something("first part\n" "second l

Re: [Python-Dev] [Python-3000] PEP 30XZ: Simplified Parsing

2007-05-03 Thread Michael Sparks
s a rather nasty version. On the flip side if we're eval'ing an expression to get a docstring, there would be great temptation to extend that to be a doc-object - eg using dictionaries, etc as well for more specific docs. Is that wise? I d

Re: [Python-Dev] \u and \U escapes in raw unicode string literals

2007-05-11 Thread Michael Foord
gt; easy to learn (if you leave out the detail that \ can't be the last > character in a raw string - which should get fixed also, IMO). +1 Michael Foord ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/pyt

Re: [Python-Dev] The docs, reloaded

2007-05-19 Thread Michael Foord
ould be > possible to use those instead of the current LaTeX->latex2html toolchain. > > For the impatient: the result can be seen at <http://pydoc.gbrandl.de>. > Wow! Very impressive. Changing to ReST would encourage more contributions to the documentation and widen the r

Re: [Python-Dev] [Python-checkins] r86965 - python/branches/py3k/Lib/test/__main__.py

2010-12-03 Thread Michael Foord
ine is going to blow up with a NameError. I would suggest putting this common setup code into a _make_test_dir() helper function in regrtest, then have both regrtest and test.__main__ call it. Ok, good suggestion. Thanks Michael Cheers, Nick. -- http://www.voidspace.org.uk/ READ CAREFU

Re: [Python-Dev] PEP 384 accepted

2010-12-04 Thread Michael Foord
egrated in Python, I probably won't spend any time on it. It seems like it'd be a good idea to start integrating distutils2 into python trunk immediately after the 3.2 branch is cut, then. +1 from me. And from me. Michael Antoine. ___ Pyt

Re: [Python-Dev] Repo frozen for 3.2

2010-12-06 Thread Michael Foord
d library :-) What would you name those functions instead? (SafeConfigParser is a naff name and only needed because ConfigParser is broken.) Michael Raymond ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo

Re: [Python-Dev] [Python-checkins] r86855 - in python/branches/py3k: Doc/library/unittest.rst Lib/unittest/case.py

2010-12-09 Thread Michael Foord
plan for compatibility? unittest2 will continue to track changes in unittest. A 0.6.0 release is planned, with feature parity with the version of unittest in Python 3.2. Of course if you want to help that would be much appreciated. :-) All the best, Michael Foord Regards -- http

Re: [Python-Dev] The fate of transform() and untransform() methods

2010-12-09 Thread Michael Foord
form / untransform in the previous thread. Michael The moratorium, if at all, would only cover the new methods, not the other changes (readding the codecs and fixing the codecs.py module to work with bytes as well as Unicode), all of which were already discussed at length in several previous disc

Re: [Python-Dev] futures API

2010-12-09 Thread Michael Foord
manager that an api change is really *essential*. Michael -Brett 2. How hard would it be to return the tasks processed in an output queue to process/consume the results while they are returned? The code does not seem to be very open for monkey patching. 3. How hard would it be to add new tasks

Re: [Python-Dev] A grammatical oddity: trailing commas in argument lists -- continuation

2010-12-13 Thread Michael Foord
natures is even more preferable, but *sometimes* they are needed. All the best, Michael Foord That would be a lot of hassle to get rid of something that people probably aren't doing in the first place, though. Regards, Nick. -- http://www.voidspace.org.uk/ READ CAREFULLY. By accept

Re: [Python-Dev] [Python-checkins] r87296 - python/branches/py3k/Doc/library/test.rst

2010-12-15 Thread Michael Foord
n on all > Shouldn't this be `python -m test.regrtest`, or even just `python -m test`? Michael > resources; specifying ``all`` as an option for ``-u`` enables all > possible resources. If all but one resource is desired (a more common > case), a > comma-separated list of re

Re: [Python-Dev] [Python-checkins] r87296 - python/branches/py3k/Doc/library/test.rst

2010-12-15 Thread Michael Foord
it’s inconvenient to review in email, but I’d like to commit soon since I have a big doc merge to do after this :) The diff looks good to me. All the best, Michael Best regards -- http://www.voidspace.org.uk/ May you do good and not evil May you find forgiveness for yourself and forgive o

Re: [Python-Dev] Multiprocessing module - Synergeticprocessing (my custom module) - Pickling unPickling issues

2010-12-16 Thread Michael Foord
to be applied quickly if you can package it in the form of a test that demonstrates the issue and a patch that fixes it. http://bugs.python.org/ All the best, Michael Foord (Synergeticprocessing module is located at GitHub: https://github.com/dpritsos/synergeticprocessing) Starting with

Re: [Python-Dev] Issue #8863 adds a new PYTHONNOFAULTHANDLER environment variable

2010-12-19 Thread Michael Foord
esn't handle the full range of signals. Michael -- http://www.voidspace.org.uk/ May you do good and not evil May you find forgiveness for yourself and forgive others May you share freely, never taking more than you give. -- the sqlite blessing http://www.sqlite.org/diff

Re: [Python-Dev] r87389 - in python/branches/py3k: Doc/library/unittest.rst Lib/unittest/case.py Misc/NEWS

2010-12-20 Thread Michael Foord
is (actual, expected), to reverse it would be dumb (why should everyone using the current ordering reformat all their tests for the new order?). So, -1 on dropping actual and expected. They're standard and useful terminology / concepts for testing. If we do move to a more "agnosti

<    4   5   6   7   8   9   10   11   12   13   >