Re: [Python-Dev] 30-bit PyLong digits in 3.1?

2009-02-17 Thread Mark Dickinson
On Tue, Feb 17, 2009 at 7:49 PM, "Martin v. Löwis" wrote: > Can you please upload it to Rietveld also? Will do. I'm getting a "500 Server Error" at the moment, but I'll keep trying. Mark ___ Python-Dev mailin

Re: [Python-Dev] 30-bit PyLong digits in 3.1?

2009-02-17 Thread Mark Dickinson
On Tue, Feb 17, 2009 at 8:42 PM, Guido van Rossum wrote: > Use the upload.py script (/static/upload.py) rather than the Create Issue > page. Thanks. That worked. http://codereview.appspot.com/14105 ___ Python-Dev mailing list Python-Dev@python.org ht

Re: [Python-Dev] Attention Bazaar mirror users

2009-02-25 Thread Mark Dickinson
7;bzr pull' for the py3k branch: Macintosh-3:py3k dickinsm$ bzr pull Using saved parent location: http://code.python.org/python/py3k/ No revisions to pull. ...which is a bit surprising, since my last 'bzr pull' was a while ago. Do I need to update something somewhere? I

Re: [Python-Dev] Attention Bazaar mirror users

2009-02-27 Thread Mark Dickinson
On Fri, Feb 27, 2009 at 7:26 PM, Barry Warsaw wrote: > On Feb 25, 2009, at 2:03 PM, Mark Dickinson wrote: >> Is the cron job that's supposed to update the bzr repository still >> running? > I think I have this fixed now.  The branch updater is running on dinsdale &

Re: [Python-Dev] Ext4 data loss

2009-03-11 Thread Mark Hammond
lable, and (b) was high on my google search list http://msdn.microsoft.com/en-us/magazine/cc163388.aspx http://msdn.microsoft.com/en-us/library/aa363764(VS.85).aspx Cheers, Mark ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.or

Re: [Python-Dev] Non-Core project: IDLE

2009-03-24 Thread Mark Summerfield
thon 3 features for example.) I know that you can use the -c option, but that only works at startup, not every time you Restart Shell. [snip] -- Mark Summerfield, Qtrac Ltd, www.qtrac.eu C++, Python, Qt, PyQt - training and consultancy "Rapid GUI Programming with Python and Qt"

Re: [Python-Dev] speeding up PyObject_GetItem

2009-03-24 Thread Mark Dickinson
ll in PyLong_AsSsize_t make any noticeable difference to these timings? Mark ___ 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] speeding up PyObject_GetItem

2009-03-24 Thread Mark Dickinson
On Tue, Mar 24, 2009 at 3:50 PM, Daniel Stutzbach wrote: > On Tue, Mar 24, 2009 at 10:13 AM, Mark Dickinson wrote: >> Does removing the PyLong_Check call in PyLong_AsSsize_t >> make any noticeable difference to these timings? > > Making no other changes from the trunk, remo

Re: [Python-Dev] Integrate BeautifulSoup into stdlib?

2009-03-24 Thread Mark Hammond
er way or on other platforms. * distutils already has the ability to create Windows installer executables for pure-python apps/libs. I agree it would be nice if it was an MSI but that is an implementation detail rather than implementation requirement. How were Mike&#x

Re: [Python-Dev] Test failures under Windows?

2009-03-24 Thread Mark Hammond
rom Python via the msvcrt module. This would enable the test suite to disable assertions for its entire run. Mark ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/m

Re: [Python-Dev] Test failures under Windows?

2009-03-25 Thread Mark Hammond
to actually change the flags, just offers the ability for them to do so. Curt's suggestion of redirecting to a file is better still - I'll look at tweaking my patch to also offer that capability... Cheers, Mark ___ Python-Dev mailing l

Re: [Python-Dev] Test failures under Windows?

2009-03-25 Thread Mark Hammond
On 25/03/2009 7:58 PM, David Bolen wrote: Mark Hammond writes: The issue was that Python unconditionally changed the behaviour of the CRT, not only during the test suite. Hmm... I was more or less referring to the state of the py3k tree as of, say, r57823 back in 2007. I was referring to

Re: [Python-Dev] Test failures under Windows?

2009-03-25 Thread Mark Hammond
I'm going to poke my contacts at Microsoft and ask them if there is a way to disable popups like this for a process that runs unattended and/or is running as a windows service. There is, and Curt pointed out one strategy for achieving this without losing the checks it provides... > Curt's

[Python-Dev] suggestion for try/except program flow

2009-03-27 Thread Mark Donald
I frequently have this situation: try: try: raise Thing except Thing, e: # handle Thing exceptions raise except: # handle all exceptions, including Thing It would be much more readable if there were a way to recatch a named exception with the generic (catch-all

Re: [Python-Dev] splitting out bdist_* (was: interminable 'setuptools' thread)

2009-03-27 Thread Mark Hammond
tural fit - but regardless, py2exe is struggling to maintain itself at the moment... Cheers, Mark ___ 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

Re: [Python-Dev] Unladen-Swallow: A faster python

2009-03-28 Thread Mark Hammond
On 29/03/2009 1:41 AM, andrew cooke wrote: Mark Hammond wrote: On 28/03/2009 9:50 PM, andrew cooke wrote: Tim Roberts wrote: [...] IronPython has certainly shown that Python can be successfully implemented in a JIT compiled VM in a performant way, but it has issues running C extension

Re: [Python-Dev] Non-Core project: IDLE

2009-03-29 Thread Mark Summerfield
On 2009-03-25, Guilherme Polo wrote: > On Tue, Mar 24, 2009 at 4:26 AM, Mark Summerfield wrote: > > On 2009-03-23, Guilherme Polo wrote: > >> On Mon, Mar 23, 2009 at 5:39 PM, Terry Reedy wrote: > >> > Guilherme Polo wrote: > >> >> On Wed,

Re: [Python-Dev] Mercurial?

2009-04-05 Thread Mark Hammond
On 6/04/2009 12:13 AM, Dirkjan Ochtman wrote: I have a stab at an author map at http://dirkjan.ochtman.nl/author-map. Could use some review, but it seems like a good start. Just to be clear, what input would you like on that map? I'm listed twice: mark.hammond = Mark Hammond mha

Re: [Python-Dev] pyc files, constant folding and borderline portability issues

2009-04-06 Thread Mark Dickinson
enefit seems small. Mark ___ 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] pyc files, constant folding and borderline portability issues

2009-04-06 Thread Mark Dickinson
etter written as 2.0**DBL_MANT_DIG (or something similar). As Antoine reported, the constant-folding caused quite a confusing bug report (issue #5593): the problem (when we eventually tracked it down) was that the folded constant was in a .pyc file, and so wasn't upd

[Python-Dev] Shorter float repr in Python 3.1?

2009-04-07 Thread Mark Dickinson
r work, adding a .0 to floats formatted without an exponent, but leaving the .0 out when the exponent is present. Should the .0 always be added? Or is it required only when it would be necessary to distinguish a float string from an integer string? My preference is for the latter (i.e., format(x, '<') should behave in the same way as repr and str in this respect). But I'm biased, not least because the other behaviour would be a pain to implement. Does anyone care? This email is already too long. I'll stop now. Mark ___ 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] slightly inconsistent set/list pop behaviour

2009-04-07 Thread Mark Dickinson
gt;> foo = set([1, 65537]) >>> foo.pop() 1 >>> foo = set([65537, 1]) >>> foo.pop() 65537 Mark ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.pytho

Re: [Python-Dev] Dropping bytes "support" in json

2009-04-10 Thread Mark Hammond
ttle for bytes as I believe the most common *actual* use of json will be via things like the twitter and couch libraries - and may even be a key bottleneck for such libraries - so people will not be directly exposed to its interface... Mark Cheers, Mark _

Re: [Python-Dev] Test failure on Py3k branch

2009-04-11 Thread Mark Dickinson
 0) > AssertionError: 1 != 0 Are you on OS X? This looks like http://bugs.python.org/issue4388 Mark ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/op

Re: [Python-Dev] Python 2.6.2 final

2009-04-11 Thread Mark Dickinson
On Fri, Apr 10, 2009 at 2:31 PM, Barry Warsaw wrote: > bugs.python.org is apparently down right now, but I set issue 5724 to > release blocker for 2.6.2.  This is waiting for input from Mark Dickinson, > and it relates to test_cmath failing on Solaris 10. I'd prefer to leave this a

Re: [Python-Dev] Dropping bytes "support" in json

2009-04-11 Thread Mark Hammond
re a design choice which best supports actual use. So to my mind the only real question is whether the above *is* true, or if there are common use-cases which don't involve utf8-off/on-the-wire... Cheers, Mark ___ Python-Dev mailing list Pytho

Re: [Python-Dev] Shorter float repr in Python 3.1?

2009-04-14 Thread Mark Dickinson
On Tue, Apr 14, 2009 at 9:45 AM, Ned Deily wrote: > Ned Deily wrote: >> Eric Smith wrote: >> > Before then, if anyone could build and test the py3k-short-float-repr >> > branch on any of the following machines, that would be great: >> > >> [...] >> > Something bigendian, like a G4 Mac >> >> I'

Re: [Python-Dev] Shorter float repr in Python 3.1?

2009-04-14 Thread Mark Dickinson
By the way, a simple native build on OS X 10.4/PPC passed all tests (that we're already failing before). Mark ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.pytho

Re: [Python-Dev] Shorter float repr in Python 3.1?

2009-04-14 Thread Mark Dickinson
On Tue, Apr 14, 2009 at 11:37 AM, Mark Dickinson wrote: > By the way, a simple native build on OS X 10.4/PPC passed all tests (that > we're already failing before). s/we're/weren't ___ Python-Dev mailing list Pytho

Re: [Python-Dev] Shorter float repr in Python 3.1?

2009-04-14 Thread Mark Dickinson
no I was expecting a "... universal" instead of "... no". >From reading the autoconf manual, it seems as though AC_C_BIGENDIAN knows some magic to make things work for universal builds; it ought to be possible to imitate that magic somehow. Mark __

Re: [Python-Dev] Shorter float repr in Python 3.1?

2009-04-14 Thread Mark Dickinson
ld of Python, one has to first regenerate configure and pyconfig.h.in using autoconf version >= 2.62? If not, then I don't understand how the AC_C_BIGENDIAN autoconf macro can be giving the right results. Mark ___ Python-Dev mailing list Python-D

Re: [Python-Dev] Shorter float repr in Python 3.1?

2009-04-14 Thread Mark Dickinson
on 32-bit PPC, 32-bit Intel and 64-bit Intel. Mark ___ 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] Shorter float repr in Python 3.1?

2009-04-14 Thread Mark Dickinson
On Tue, Apr 14, 2009 at 5:49 PM, Antoine Pitrou wrote: > Mark Dickinson gmail.com> writes: >> Do you know the right way to create a universal build? > > Not at all, sorry. No problem :). I might try asking on the pythonmac-sig list. Mark

Re: [Python-Dev] Shorter float repr in Python 3.1?

2009-04-14 Thread Mark Dickinson
sing piece of the puzzle. I think I understand how to make things work now. Mark ___ 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] Shorter float repr in Python 3.1?

2009-04-14 Thread Mark Dickinson
/SDKs/MacOSX10.4u.sdk >   --with-universal-archs='32-bit' --with-computed-gotos OPT='-g -O3' Great---thank you! And thank you for all the testing. I'll try to sort all this out later this evening (GMT+1); I think I understand how to fix everything now. Mark _

Re: [Python-Dev] Python-Dev Digest, Vol 69, Issue 143

2009-04-17 Thread Mark Dickinson
27;), Decimal('-NaN456') >>> x + y Decimal('NaN123') >>> y + x Decimal('-NaN456') Similar effects can happen with regular IEEE 754 binary doubles, but Python doesn't expose NaN payloads or signs, so we don't see those effects witihin Pyth

Re: [Python-Dev] Summary of Python tracker Issues

2009-04-24 Thread Mark Dickinson
On Fri, Apr 24, 2009 at 9:25 PM, Terry Reedy wrote: > In going through this, I notice a lot of effort by Mark Dickenson and others Many others, but Eric Smith's name needs to be in big lights here. There's no way the short float repr would have been ready for 3.1 if Eric hadn't

[Python-Dev] Two proposed changes to float formatting

2009-04-26 Thread Mark Dickinson
his is just about consistency, ease of implementation, and aesthetics. As far as I can tell, the extra '.0' in the float repr serves two closely-related purposes: it makes it clear to the human reader that the number is a float rather than an integer, and it makes sure that e.g., eval(rep

[Python-Dev] Bug tracker down?

2009-04-26 Thread Mark Dickinson
ID Flg off TTL Pro cks Src Dst 4 5 00 5400 77e1 0 3a 01 603d 192.168.1.2 88.198.142.26 Various others on #python-dev have confirmed that it's not working for them. Does anyone know what the problem is? Mark ___ Python-Dev ma

Re: [Python-Dev] Bug tracker down?

2009-04-26 Thread Mark Dickinson
On Sun, Apr 26, 2009 at 4:19 PM, Aahz wrote: > On Sun, Apr 26, 2009, Mark Dickinson wrote: >> >> The bugs.python.org site seems to be down. > > Dunno -- forwarded to the people who can do something about it.  (There's > a migration to a new mailserver going on, but I

Re: [Python-Dev] Two proposed changes to float formatting

2009-04-26 Thread Mark Dickinson
On Sun, Apr 26, 2009 at 5:59 PM, Eric Smith wrote: > Mark Dickinson wrote: >> I propose changing the complex str and repr to behave like the >> float version.  That is, repr(4. + 10.j) should be "(4.0 + 10.0j)" >> rather than "(4+10j)". > > I

Re: [Python-Dev] Two proposed changes to float formatting

2009-04-26 Thread Mark Dickinson
rather than decimal. For example: >>> int(1e308) 11097906362944045541740492309677311846336810682903157585404911491537163328978494688899061249669721172515611590283743140088328307009198146046031271664502933027185697489699588559043338384466165001178426897626212945177628091195786707458122783970171784415105291802893207873272974885715430223118336 Mark ___ Python-Dev mailing list Pyt

Re: [Python-Dev] Two proposed changes to float formatting

2009-04-26 Thread Mark Dickinson
e might not easily be able to distinguish > between a significant trailing zero and fictitous bits. As of 3.1, the printing code should be fine: it's using David Gay's 'perfect rounding' code, so what's displayed should be correctly rounded to the requested p

[Python-Dev] One more proposed formatting change for 3.1

2009-04-28 Thread Mark Dickinson
doubt that there's been enough uptake of 'format' yet for this to risk significant breakage. So unless there are objections I'll plan to make this change before this weekend's beta. Mark ___ 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] Proposed: add support for UNC paths to all functions in ntpath

2009-04-30 Thread Mark Hammond
Larry Hastings wrote: Counting the votes for http://bugs.python.org/issue5799 : +1 from Mark Hammond (via private mail) +1 from Paul Moore (via the tracker) +1 from Tim Golden (in Python-ideas, though what he literally said was "I'm up for it") +1 from Michael F

Re: [Python-Dev] Proposed: drop unnecessary "context" pointer from PyGetSetDef

2009-05-04 Thread Mark Dickinson
r signatures would have to change.) """ Still, binary compatibility seems like a fairly strong reason not to remove the closure field. Mark ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscri

Re: [Python-Dev] Proposed: drop unnecessary "context" pointer from PyGetSetDef

2009-05-04 Thread Mark Dickinson
ile: they'll segfault, or otherwise behave unpredictably. If that's not considered a problem, then surely we ought to be getting rid of tp_reserved? Mark ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/li

Re: [Python-Dev] Proposed: drop unnecessary "context" pointer from PyGetSetDef

2009-05-04 Thread Mark Dickinson
On Mon, May 4, 2009 at 9:15 PM, Antoine Pitrou wrote: > Mark Dickinson gmail.com> writes: >> >> I *think* that third party code that's recompiled for 3.1 and that >> doesn't use the closure field will either just work, or will produce an >> easily-fixe

Re: [Python-Dev] Proposed: add support for UNC paths to all functions in ntpath

2009-05-06 Thread Mark Hammond
Eric Smith wrote: Mark: I've reviewed this and it looks okay to me. Thanks Eric - I've now applied that patch. As you mentioned in a followup to the bug: | Thanks for looking at this, Mark. If we could only assign issues to | Python 3.2 and 3.3 to change the pending deprecation

Re: [Python-Dev] Mercurial, linefeeds, and Visual Studio

2009-06-05 Thread Mark Hammond
ity to use a versioned file for per-repo rules is something I'd like too. I believe that if a few Windows users got together and agreed on both semantics and implementation we could get such an enhancement landed in the core of hg... Cheers, Mark

[Python-Dev] CPython in the web browser under Native Client

2009-06-14 Thread Mark Seaborn
dification - it builds straight from the Debian package. I've written a simple REPL to demonstrate Python running in the browser. There are some screenshots on my blog [3]. I haven't implemented accessing the DOM from Python yet - that's another project for later. :-) Mark [1]

Re: [Python-Dev] Avoiding file descriptors leakage in subprocess.Popen()

2009-06-14 Thread Mark Seaborn
read_fd, write_fd = os.pipe() return os.fdopen(read_fd, "r"), os.fdopen(write_fd, "w") Mark ___ 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] Avoiding file descriptors leakage in subprocess.Popen()

2009-06-16 Thread Mark Seaborn
Cameron Simpson wrote: > On 14Jun2009 16:42, Mark Seaborn wrote: > | I use a convenience function like this, so that GC takes care of the FDs: > | > | def make_pipe(): > | read_fd, write_fd = os.pipe() > | return os.fdopen(read_fd, "r"), os.fdopen(write_fd,

Re: [Python-Dev] Mercurial migration: progress report (PEP 385)

2009-07-02 Thread Mark Hammond
place to prevent editors on Windows 'accidently' mixing eol styles? If so, this cycles back to the first question - how would we know which files get treated that way? Thanks, Mark ___ Python-Dev mailing list Python-Dev@python.org http://mail.pytho

Re: [Python-Dev] Mercurial migration: progress report (PEP 385)

2009-07-03 Thread Mark Hammond
On 3/07/2009 9:28 PM, Dirkjan Ochtman wrote: On Fri, Jul 3, 2009 at 01:01, Mark Hammond wrote: Although this has come up in the past, I don't recall a resolution. What is your plan to handle svn:eol-style? We have some files in the tree which need that support and it isn't c

Re: [Python-Dev] Mercurial migration: progress report (PEP 385)

2009-07-03 Thread Mark Hammond
la hg repo for exactly this reason. Cheers, Mark ___ 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] Mercurial migration: progress report (PEP 385)

2009-07-03 Thread Mark Hammond
On 3/07/2009 11:43 PM, Dirkjan Ochtman wrote: On Fri, Jul 3, 2009 at 15:31, Mark Hammond wrote: So we must work without effective EOL support? I fear we will end up like the mozilla hg repo with some files in windows line endings and some with linux. While my editing tools are good enough to

Re: [Python-Dev] Mercurial migration: progress report (PEP 385)

2009-07-03 Thread Mark Hammond
el free to enlighten me! In that case, and given that I expect more Windows users to be clueless about EOL issues than users of other operating systems, I propose we check in all files initially with Windows line endings Mark ___ Python-Dev mailing l

Re: [Python-Dev] Mercurial migration: progress report (PEP 385)

2009-07-03 Thread Mark Hammond
e hg core dev team. Patches or comments regarding win32text are always met with "but no one here ever uses it". If they did, and some of the core hg team tried to experiment with win32text and mixed line ending repos the problems would, I believe, become self-evident... Cheers, M

Re: [Python-Dev] Mercurial migration: progress report (PEP 385)

2009-07-03 Thread Mark Hammond
en to use their native line ending (sauce for the goose is sauce for the gander, and all that...) * commit hooks be implemented to enforce this - but this should not be necessary if the above was implemented and socially enforced. Cheers, Mark Cheers, Nick. [1] h

Re: [Python-Dev] Mercurial migration: progress report (PEP 385)

2009-07-19 Thread Mark Hammond
Sorry Dirkjan - I just noticed I didn't CC you on this mail originally. I'm wondering if you have any more thoughts on these EOL issues and if there is anything I can do to help? Cheers, Mark On 4/07/2009 2:03 PM, Mark Hammond wrote: On 4/07/2009 12:30 PM, Nick Coghlan wrote: ..

Re: [Python-Dev] pylinting the stdlib

2009-08-02 Thread Mark Dickinson
seless and taking reviewer's time for nothing ? > > Please advise, if this is deemed useful, I'll continue further I think this is valuable work---please do continue! Just out of interest, how many false positives did you have to filter out in finding the 5 cases above? Mark _

Re: [Python-Dev] PEP 385: pruning/reorganizing branches

2009-08-04 Thread Mark Dickinson
hing there of interest that isn't already in trunk and py3k. It was merged to trunk in r62380. -- Mark ___ 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] PEP 385: the eol-type issue

2009-08-04 Thread Mark Hammond
32text only 1/2 a solution that doesn't work in practice. Therefore that patch is as stale for me as it is anyone. However, if a plan is put in place which offers a full solution and the hg developers are committed to it, I promise I'll put my hand up to help with implementation i

Re: [Python-Dev] PEP 385: the eol-type issue

2009-08-04 Thread Mark Hammond
On 5/08/2009 3:56 PM, Ben Finney wrote: Mark Hammond writes: Let's say I make a branch of the hg repo, myself and a few others work on it committing as we go, then attempt to merge back upstream. Let's say some of the early commits on that clone introduced "bad" line end

Re: [Python-Dev] PEP 385: the eol-type issue

2009-08-05 Thread Mark Hammond
On 5/08/2009 4:50 PM, Ben Finney wrote: Mark Hammond writes: On 5/08/2009 3:56 PM, Ben Finney wrote: Mark Hammond writes: Let's say I make a branch of the hg repo, myself and a few others work on it committing as we go, then attempt to merge back upstream. Let's say some of

Re: [Python-Dev] PEP 385: the eol-type issue

2009-08-05 Thread Mark Hammond
ion I see is a truly cross-platform extension to implement these rules which every Python committer, regardless of operating-system, is expected to use - but that doesn't seem the consensus. As mentioned, I'm willing to lend manpower for this once there

Re: [Python-Dev] PEP 385: the eol-type issue

2009-08-05 Thread Mark Hammond
On 5/08/2009 6:00 PM, Ben Finney wrote: Mark Hammond writes: As already mentioned in this thread, a capability similar to what svn or cvs offers would be sufficient. That capability presented by centralised VCSen is entirely dependent on the fact that they *are* centralised. Using a

Re: [Python-Dev] PEP 385: the eol-type issue

2009-08-05 Thread Mark Hammond
On 5/08/2009 6:25 PM, Dirkjan Ochtman wrote: On Wed, Aug 5, 2009 at 01:43, Mark Hammond wrote: Thanks Nick; I didn't want to be the only one saying that. There is a fine line between asserting reasonable requirements for Windows users and being obstructionist and unhelpful, and I'm

Re: [Python-Dev] PEP 385: the eol-type issue

2009-08-05 Thread Mark Hammond
e shared by the community and therefore addressed as a community, thereby ensuring all platforms are considered as important as any other. Cheers, Mark ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/pyth

Re: [Python-Dev] PEP 385: the eol-type issue

2009-08-05 Thread Mark Hammond
VS hook would be an alternative approach? (I can't imagine such a hook would be an *easier* approach, I only mention it because it makes it clearer where the issue lies). I must concede that Windows developers are the minority here - but assuming we want a le

Re: [Python-Dev] PEP 385: the eol-type issue

2009-08-05 Thread Mark Hammond
itors, and as mentioned, am personally responsible for accidentally checking in \r\n files into what should be a \n repo. I am slowly and painfully learning to be more careful - IMO, I shouldn't need to... Cheers, Mark ___ Python-Dev mailing l

Re: [Python-Dev] PEP 385: the eol-type issue

2009-08-05 Thread Mark Hammond
On 5/08/2009 9:28 PM, Dirkjan Ochtman wrote: On Wed, Aug 5, 2009 at 13:19, Mark Hammond wrote: Configuring on each clone would certainly be sub-optimal, so the proposal is this configuration be stored in a versioned file in the repo. Even if we do that, enabling hg extensions will still need

Re: [Python-Dev] PEP 385: the eol-type issue

2009-08-05 Thread Mark Hammond
On 6/08/2009 12:28 AM, Stephen J. Turnbull wrote: Mark Hammond writes: > I'm not sure what point you are trying to make, but I believe it *is* > possible for a solution to be found here which will keep Windows users > happy. I'm guessing you haven't had much p

Re: [Python-Dev] random number generator state

2009-08-15 Thread Mark Dickinson
ber generated). [1] http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/MT2002/CODES/mt19937ar.c Mark ___ 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] Mercurial migration: help needed

2009-08-18 Thread Mark Hammond
nt item here is currently the win32text stuff. Mark Hammond said he would work on this; Mark, when do you have time for this? Then I could set apart some time for it as well. I can make time, somewhat spasmodically, starting fairly soon. Might I suggest that as a first task I can resurrect my old stale

Re: [Python-Dev] Mercurial migration: help needed

2009-08-21 Thread Mark Hammond
[Adjusted the CCs...] On 19/08/2009 8:21 AM, Dj Gilcrease wrote: On Tue, Aug 18, 2009 at 2:12 AM, "Martin v. Löwis" wrote: The second item is line conversion hooks. Dj Gilcrease has posted a solution which he considers a hack himself. Mark Hammond has also volunteered, but it

Re: [Python-Dev] Mercurial migration: help needed

2009-08-21 Thread Mark Hammond
ou be willing to start a thread with the hg developers about this issue? If something like this can't get into the core, I will drop any expectations of it becoming a viable general solution for windows focused projects, so would limit the work I am willing to invest to the commitm

Re: [Python-Dev] Mercurial migration: help needed

2009-08-21 Thread Mark Hammond
On 22/08/2009 12:10 AM, Dj Gilcrease wrote: On Fri, Aug 21, 2009 at 1:16 AM, Mark Hammond wrote: Maybe you can enumerate what you think needs to change in mercurial, then once we have a plan in place it will be clearer who can do what. The encode/decode hooks need to be passed the filename

Re: [Python-Dev] Mercurial migration: help needed

2009-08-21 Thread Mark Hammond
On 22/08/2009 2:46 PM, Stephen J. Turnbull wrote: Mark Hammond writes: > Something like ~/.hgrules having: Surely you mean $PROJECTROOT/.hgrules? Indeed. > [config] # or maybe [rules] ? > required_extensions = win32text, some_pydev_specific_extension [e

Re: [Python-Dev] Mercurial migration: help needed

2009-08-22 Thread Mark Hammond
On 22/08/2009 6:52 PM, Stephen J. Turnbull wrote: Mark Hammond writes: > On 22/08/2009 2:46 PM, Stephen J. Turnbull wrote: > Possibly - although I would expect the existing section names be reused > when applied to a versioned file, I'd be more than happy for the h

Re: [Python-Dev] Mercurial migration: help needed

2009-08-22 Thread Mark Hammond
d - instead another extension with different semantics (ie, no guessing based on file content) should be used, and enforced, instead. Or have I misunderstood? Assuming I am correct, I am inclined to agree - win32text may be "good enough" in the short term, but it is f

Re: [Python-Dev] Mercurial migration: help needed

2009-08-23 Thread Mark Hammond
vailable by the time a decision is made to migrate. If code is available, then migration will happen (no matter whether the code has an owner); if no code is available, migration will stall. Right - I guess we are all still struggling with exactly what "

Re: [Python-Dev] Mercurial migration: help needed

2009-08-29 Thread Mark Hammond
nt item here is currently the win32text stuff. Mark Hammond said he would work on this; Mark, when do you have time for this? Then I could set apart some time for it as well. Have stalled a bit on the fine-grained branch processing, hope to move that forward tomorrow. I'm afraid I've also s

Re: [Python-Dev] Mercurial migration: help needed

2009-09-04 Thread Mark Hammond
On 30/08/2009 9:37 PM, Martin Geisler wrote: Mark Hammond writes: 1) I've stalled on the 'none:' patch I promised to resurrect. While doing this, I re-discovered that the tests for win32text appear to check win32 line endings are used by win32text on *all* platforms, not ju

Re: [Python-Dev] Numeric alignment issue with PEP 3101

2009-09-08 Thread Mark Dickinson
e changed, though. It currently left-aligns by default (my fault: I just blindly followed PEP 3101 without thinking too hard about it). I'd like to fix this for 3.2 and 2.7; I'm not sure whether it's too disruptive to fix it in 3.1 and 2.6. Mark __

Re: [Python-Dev] operator precedence of __eq__, __ne__, etc, if both object have implementations

2009-09-22 Thread Mark Dickinson
and the entire test-suite still runs without errors. In 2.x, it's possible that this call is necessary for some bizarre combinations of __cmp__ and __eq__; I haven't tried to get my head around this yet. I'll open an issue for the duplicate __eq__ calls. Mark ___

Re: [Python-Dev] operator precedence of __eq__, __ne__, etc, if both object have implementations

2009-09-22 Thread Mark Dickinson
On Tue, Sep 22, 2009 at 4:12 PM, Mark Dickinson wrote: > I'll open an issue for the duplicate __eq__ calls. http://bugs.python.org/issue6970 Mark ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/py

Re: [Python-Dev] operator precedence of __eq__, __ne__, etc, if both object have implementations

2009-09-23 Thread Mark Dickinson
On Wed, Sep 23, 2009 at 9:12 AM, Chris Withers wrote: > Mark Dickinson wrote: >> >> I (still :-) think this is covered, for Python 2.x at least, by: >> >> http://docs.python.org/reference/datamodel.html#coercion-rules > > But this isn't coercion! :-) Agree

Re: [Python-Dev] operator precedence of __eq__, __ne__, etc, if both object have implementations

2009-09-23 Thread Mark Dickinson
gt; that purpose, but it seems like it would be helpful if this sort of > "validation suite" was maintained as a separate project all implementations > could use and contribute to. +1 Mark ___ Python-Dev mailing list Python-Dev@python.org

Re: [Python-Dev] operator precedence of __eq__, __ne__, etc, if both object have implementations

2009-09-23 Thread Mark Dickinson
ncluded in the standard install > in the tests directory. How big is big? For comparison, CPython's Lib/test/decimaltestdata directory alone is already over 4Mb, so maybe size isn't an issue? Mark ___ Python-Dev mailing list Python-Dev@py

[Python-Dev] Python build question (fixing pymath.c).

2009-09-27 Thread Mark Dickinson
r the cmath module is included in the core Python executable. Cluelessly yours, Mark ___ 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] Python build question (fixing pymath.c).

2009-09-27 Thread Mark Dickinson
On Sun, Sep 27, 2009 at 8:48 AM, Brett Cannon wrote: > On Sun, Sep 27, 2009 at 00:21, Mark Dickinson wrote: [...] >> So I've now got a file Modules/math_support.c that contains >> some functions needed by both mathmodule.c and >> cmathmodule.c, as well as a couple of f

Re: [Python-Dev] PEP 3144 review.

2009-09-28 Thread Mark Dickinson
1') >>    >>> y.ip >>    IPv4Address('192.168.1.0') > > With those semantics, IPv4Network objects with distinct IP addresses (but > the same network) could no longer be stored in a dictionary or set.  IMO, it > is a little counter-intuitive for obj

Re: [Python-Dev] PEP 3144 review.

2009-09-28 Thread Mark Dickinson
review.appspot.com/124057 still allows the networks to be > included in a set or as a dict key > >>>> net1 = IPNetwork("10.1.2.3/24") >>>> net2 = IPNetwork("10.1.2.0/24") >>>> print hash(net1) == hash(net2) > False >>>>

Re: [Python-Dev] PEP 3144 review.

2009-09-30 Thread Mark Dickinson
elation for determining container membership. Mostly these two different meanings get along fine, though they lead to some fun when trying to ensure that x == y implies hash(x) == hash(y) for x and y two different numeric types. But since Decimals and floats aren't used as set elements

Re: [Python-Dev] PEP 3144 review.

2009-09-30 Thread Mark Dickinson
On Wed, Sep 30, 2009 at 10:52 AM, Paul Moore wrote: > 2009/9/30 Mark Dickinson : >> Please could someone who understands the uses of IPNetwork better than >> I do explain why the following wouldn't be a significant problem, if __eq__ >> and __hash__ were modified to disr

Re: [Python-Dev] PEP 3144 review.

2009-09-30 Thread Mark Dickinson
On Wed, Sep 30, 2009 at 12:06 PM, Nick Coghlan wrote: > Mark Dickinson wrote: >> Okay, so maybe this is an abuse of IPv4Network.  But I'd (mis?)understood >> that the retention of the .ip attribute was precisely a convenience to allow >> this sort of use.  If not, then

Re: [Python-Dev] summary of transitioning from % to {} formatting

2009-10-03 Thread Mark Dickinson
   logging.Formatter(fmt="{asctime} - {name}") >  If %-formatting is to be deprecated, the transition strategy here >  is trivial. However, no one has yet written translators, and it is >  not clear what heuristics should be used, e.g. should the method >  just try %-fo

[Python-Dev] Backport new float repr to Python 2.7?

2009-10-11 Thread Mark Dickinson
the work in to do the backport. Masochists who are still reading by this point and who want more information about the new repr implementation can see the issue discussion: http://bugs.python.org/issue1580 Thoughts? Mark ___ 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

<    1   2   3   4   5   6   7   8   9   10   >