[issue2063] os.times() utime and stime exchanged on windows

2008-02-12 Thread Georg Brandl
Georg Brandl added the comment: Fixed on trunk in r60758. Should this be backported? -- nosy: +georg.brandl resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ _

[issue2001] Pydoc interactive browsing enhancement

2008-02-12 Thread Ron Adam
Ron Adam added the comment: Added a topics and keywords index choices to the navbar. This gives the web interface the same functionality as the cli interface. Fixed the -p option which I had missed. Added file: http://bugs.python.org/file9423/pydocnotk.diff __

[issue2065] trunk version does not compile with vs8 and vc6

2008-02-12 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I tried PSDK Feb 2003 downloadable from http://www.microsoft.com/msdownload/platformsdk/sdkupdate/psdk-full.htm and this two issues went away. >- When WINVER is set to 0x500, vc6 gives a long warning because at the >time, windows nt 5.0 was only at beta stage

[issue2099] unclear error message on bug reporting

2008-02-12 Thread Yinon Ehrlich
New submission from Yinon Ehrlich: When filing a new bug on http://bugs.python.org/issue and not filling the "Change Note" the following message appears: "Error: list index out of range"... instead of "please fill the change notes" or something alike... -- messages: 62349 nosy: Yinon sev

[issue2097] typo in exception-handling tutorial

2008-02-12 Thread Yinon Ehrlich
New submission from Yinon Ehrlich: At http://docs.python.org/tut/node10.html#SECTION001030 there is "One my also instantiate" instead of "One may also instantiate" -- components: Documentation messages: 62348 nosy: Yinon severity: normal status: open title: typo in except

[issue2065] trunk version does not compile with vs8 and vc6

2008-02-12 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto: -- nosy: +ocean-city __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue2096] Reporting bugs page refers to old site

2008-02-12 Thread Yinon Ehrlich
New submission from Yinon Ehrlich: http://www.python.org/doc/ext/reporting-bugs.html refers to http://sourceforge.net/bugs/?group_id=5470 instead of http://bugs.python.org -- components: Documentation messages: 62347 nosy: Yinon severity: minor status: open title: Reporting bugs page re

[issue2092] PEP-3100 should reflect removal of 'cmp' parameter in sort() and sorted()

2008-02-12 Thread Kurt B. Kaiser
New submission from Kurt B. Kaiser: Document the decision to remove the comparision ('cmp') parameter from list.sort() and builtin.sorted() -- assignee: rhettinger components: Documentation files: pep-3100.patch messages: 62346 nosy: kbk, rhettinger priority: normal severity: normal sta

[issue1777134] minidom pretty xml output improvement

2008-02-12 Thread John-Mark Gurney
John-Mark Gurney added the comment: I think this is a good patch. It gives more useful pretty XML output. I would suggest that possibly this routine be moved to xml.dom or xml.dom.utils instead of being part of minidom since it should not be minidom specific. There is one bug in the patch in t

[issue2065] trunk version does not compile with vs8 and vc6

2008-02-12 Thread Christian Heimes
Christian Heimes added the comment: Amaury Forgeot d'Arc wrote: > Is it permitted to allow python compile with older compilers, even with > some functions missing? When a user compiles her own Python binary she is most probably experienced enough to notice the difference. We can't hold the hand

[issue2091] file accepts 'rU+' as a mode

2008-02-12 Thread Brett Cannon
New submission from Brett Cannon: The docs on file's constructor says that the 'U' mode should not work with '+', and yet 'rU+' does not throw an error. -- components: Interpreter Core messages: 62343 nosy: brett.cannon severity: normal status: open title: file accepts 'rU+' as a mode ty

[issue2013] Long object free list optimization

2008-02-12 Thread Christian Heimes
Christian Heimes added the comment: Antoine Pitrou wrote: > Christian, maybe you did your measurements with the DEBUG flag turned > on? That would explain the discrepancy. > > Also, I'm not sure the patch is useful for 2.x since long objects with > size -1 or 1 should be represented as ints inst

[issue2065] trunk version does not compile with vs8 and vc6

2008-02-12 Thread Martin v. Löwis
Martin v. Löwis added the comment: > Is it permitted to allow python compile with older compilers, even with > some functions missing? It's certainly ok that Python may not have some functions on "some system". Even though there might not be any precedence, I think this extends to "some compiler

[issue1682] Move Demo/classes/Rat.py to Lib/fractions.py and fix it up.

2008-02-12 Thread Nick Coghlan
Nick Coghlan added the comment: Thanks for adding the class methods back Mark. On the constructor front, we got a fair payoff in the early Decimal days just by reordering the type checks in the constructor. Other than that, I'd have to dig into the code a bit more to offer any useful suggestions

[issue2013] Long object free list optimization

2008-02-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Christian, maybe you did your measurements with the DEBUG flag turned on? That would explain the discrepancy. Also, I'm not sure the patch is useful for 2.x since long objects with size -1 or 1 should be represented as ints instead :-) _

[issue2013] Long object free list optimization

2008-02-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: I don't get the same impressive speedup as you do, although it's still significant. $ ./python -m timeit "for i in range(100): list(range(1000))" Without patch: 100 loops, best of 3: 5.05 msec per loop With patch: 100 loops, best of 3: 3.57 msec per loop Also,

[issue1682] Move Demo/classes/Rat.py to Lib/fractions.py and fix it up.

2008-02-12 Thread Mark Dickinson
Mark Dickinson added the comment: > BTW I think the next goal should be to reduce the cost of constructing > a Fraction out of to plain ints by at least an order of magnitude. I > believe this is possible. I certainly hope so! Here's a very simple (and simplistic) benchmark: # start benchmark

[issue2065] trunk version does not compile with vs8 and vc6

2008-02-12 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Is it permitted to allow python compile with older compilers, even with some functions missing? This patch already skips some functions not included with VC6: socket.ioctl, msvcrt.getwch &co. Even socket.RCVALL_IPLEVEL is not available on my installation o

[issue1682] Move Demo/classes/Rat.py to Lib/fractions.py and fix it up.

2008-02-12 Thread Mark Dickinson
Mark Dickinson added the comment: limit_denominator implemented in r60752 from_decimal and from_float restored to classmethods in r60754 __ Tracker <[EMAIL PROTECTED]> __ __

[issue2085] Syntax for property set method

2008-02-12 Thread Georg Brandl
Georg Brandl added the comment: First, syntax proposals for 3.0 are no longer accepted. Second, this sort of proposal should be discussed on the python-ideas mailing list first. Third, this is really ugly :) So, closing this. -- nosy: +georg.brandl resolution: -> rejected status: open

[issue2090] __import__ with fromlist=[''] causes double initialization of modules

2008-02-12 Thread hauser
New submission from hauser: This construction: __import__( 'pkg', {}, {}, [''] ) Will cause double initialization of package 'pkg', once with name 'pkg' and second one with name 'pkg.' (trailing dot). Implementation tries to import subpackage of 'pkg' with empty name, and imports the same packa

[issue1943] improved allocation of PyUnicode objects

2008-02-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is an updated patch against the current py3k branch, and with spaces instead of tabs for indentation. Added file: http://bugs.python.org/file9419/unialloc2.patch __ Tracker <[EMAIL PROTECTED]>

[issue1390] toxml generates output that is not well formed

2008-02-12 Thread Thomas Conway
Thomas Conway added the comment: On Feb 13, 2008 6:27 AM, Virgil Dupras <[EMAIL PROTECTED]> wrote: > CDATASection.writexml() already raises ValueError when finding invalid data, > so it seems consistent to me to extend the behavior to Comment.writexml() That looks fine to me. __

[issue1595] Probable extra semicolon in Py_LeaveRecursiveCall macro

2008-02-12 Thread Martin v. Löwis
Martin v. Löwis added the comment: Thanks again for pointing that out. Fixed in r60750. -- resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ __

[issue1390] toxml generates output that is not well formed

2008-02-12 Thread Virgil Dupras
Virgil Dupras added the comment: I wanted to start contributing to python for quite a while, so here's my very first try (cleaning out old patchless open tickets). So, whatever is the final decision on this, here's a patch. CDATASection.writexml() already raises ValueError when finding invalid

[issue2065] trunk version does not compile with vs8 and vc6

2008-02-12 Thread Martin v. Löwis
Martin v. Löwis added the comment: Ithink this patch still conflicts with issue 1763 - SHGetFolderPathW is (apparently) only available on W2k. So I don't see why we *shouldn't* mandate W2k-or-better platform headers. VC6 users should install the W2k SDK, or the W2k3 SDK (or any later SDK that sti

[issue1652] subprocess should have an option to restore SIGPIPE to default action

2008-02-12 Thread Martin v. Löwis
Martin v. Löwis added the comment: The patch as it stands (subprocess-sigpipe.patch) definitely can't go into 2.5.x: it introduces a new feature. It's not clear to me whether Colin intended to target it for 2.5.x, as it is against the trunk. For the trunk, the patch is fine. Regargeting for 2.6

[issue1966] infinite loop in httplib

2008-02-12 Thread Martin v. Löwis
Martin v. Löwis added the comment: Thanks for the patch. Committed as r60747 and r60748. -- resolution: -> accepted status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ __

[issue2016] Crash when modifying the **kwargs passed to a function.

2008-02-12 Thread Martin v. Löwis
Martin v. Löwis added the comment: I think we agree that this patch has the potential of breaking existing valid code. So based on the policy that we should avoid doing so in a bugfix release, I'd rather reject that fix (fix2016.txt) for 2.5.x. OTOH, if it is really unlikely that is ever occurs i

[issue2078] CSV Sniffer does not function properly on single column .csv files

2008-02-12 Thread Jean-Philippe Laverdure
Changes by Jean-Philippe Laverdure: -- components: +Library (Lib) -Extension Modules versions: +Python 2.4 __ Tracker <[EMAIL PROTECTED]> __ ___

[issue1682] Move Demo/classes/Rat.py to Lib/fractions.py and fix it up.

2008-02-12 Thread Guido van Rossum
Guido van Rossum added the comment: > Okay, Nick; you've got me convinced. For some reason I wasn't really > thinking of these methods as alternative constructors---in this light, > your arguments about doing the same as __new__, and about established > patterns, make perfect sense. > > Looking

[issue2079] UserDict documentation typo

2008-02-12 Thread Raymond Hettinger
Changes by Raymond Hettinger: -- assignee: -> rhettinger nosy: +rhettinger __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list

[issue2085] Syntax for property set method

2008-02-12 Thread David W. Lambert
New submission from David W. Lambert: # proposed syntax: # object.property = *args,**kwargs # python 3k could accept property setter with multiple arguments class c: def f(self,a,b,c): print a,b,c F=property(None,f) c().F=*'hi',**{'c':'third setter argument'} -- compon

[issue2079] UserDict documentation typo

2008-02-12 Thread Gabriel Sean Farrell
New submission from Gabriel Sean Farrell: 2nd paragraph of documentation at http://docs.python.org/lib/module-UserDict.html should read as follows: This module also defines a class... The "also" is out of place. -- components: Documentation messages: 62322 nosy: gsf severity: minor sta

[issue1866] const arg for PyInt_FromString

2008-02-12 Thread phil
phil added the comment: Ok. Ran 'make test' before and after patch. Output identical. Attaching output after patch. Added file: http://bugs.python.org/file9417/make_test_after __ Tracker <[EMAIL PROTECTED]> __

[issue1682] Move Demo/classes/Rat.py to Lib/fractions.py and fix it up.

2008-02-12 Thread Mark Dickinson
Mark Dickinson added the comment: Okay, Nick; you've got me convinced. For some reason I wasn't really thinking of these methods as alternative constructors---in this light, your arguments about doing the same as __new__, and about established patterns, make perfect sense. Looking back at th

[issue2078] CSV Sniffer does not function properly on single column .csv files

2008-02-12 Thread Jean-Philippe Laverdure
New submission from Jean-Philippe Laverdure: When attempting to sniff() the dialect for the attached .csv file, csv.Sniffer.sniff() returns an unusable dialect: >>> import csv >>> file = open('listB2Mforblast.csv', 'r') >>> dialect = csv.Sniffer().sniff(file.readline()) >>> file.seek(0) >>> file

[issue1682] Move Demo/classes/Rat.py to Lib/fractions.py and fix it up.

2008-02-12 Thread Mark Dickinson
Mark Dickinson added the comment: Nick Coghlan wrote: > I mentioned my dislike of the classmethod->staticmethod change on the > python-checkins list, but given the lack of response there, I figure I > should bring it up here. Yes, I missed it. Apologies. I'll rethink this (and likely-as-not r

[issue1736] Three bugs of FCICreate (PC/_msi.c)

2008-02-12 Thread Martin v. Löwis
Martin v. Löwis added the comment: Thanks for the patch. Committed as r60743 and r60744. -- resolution: -> accepted status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ __

[issue2063] os.times() utime and stime exchanged on windows

2008-02-12 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: As a suggestion, we could just run some computation that does no system call: >>> import os >>> os.times() (0.015625, 0.015625, 0.0, 0.0, 0.0) >>> max(xrange(1000)) # this takes half a second on my machine 999 >>> os.times() (0.015625, 0.484375,

[issue2077] Interpreter crash on shutdown

2008-02-12 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: This seems to be another incarnation of issue1856. See also issue1193099, which shows the same backtrace on Windows. -- nosy: +amaury.forgeotdarc resolution: -> duplicate status: open -> pending __ Tracker <[EMAIL

[issue1193099] Embedded python thread crashes

2008-02-12 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: This is a duplicate of issue1856: while a thread is sleeping, Py_Finalize() deallocates the thread's frame. During deallocation the thread wakes up and boom. -- nosy: +amaury.forgeotdarc resolution: -> duplicate status: open -> closed ___

[issue2063] os.times() utime and stime exchanged on windows

2008-02-12 Thread Facundo Batista
Facundo Batista added the comment: How can we test it? What can we do to "see" it? -- nosy: +facundobatista __ Tracker <[EMAIL PROTECTED]> __ __

[issue1866] const arg for PyInt_FromString

2008-02-12 Thread Nick Coghlan
Nick Coghlan added the comment: The test suite is run via test/regrtest.py. If you aren't on windows, 'make test' works as well. For myself, I tend to just run "./python -m test.regrtest" in the directory where I built Python. -- nosy: +ncoghlan __ Track

[issue1682] Move Demo/classes/Rat.py to Lib/fractions.py and fix it up.

2008-02-12 Thread Nick Coghlan
Nick Coghlan added the comment: I mentioned my dislike of the classmethod->staticmethod change on the python-checkins list, but given the lack of response there, I figure I should bring it up here. It is well established that the way to implement an alternate constructor in Python is to write a c

[issue2077] Interpreter crash on shutdown

2008-02-12 Thread Rupert Summerton
New submission from Rupert Summerton: 1. Description: The Python interpretor is crashing on shutdown due to a segmentation fault: Unhandled exception at 0x1e03d41f in python.exe: 0xC005: Access violation reading location 0x002c. 2. Reproducibility: At least 10% on Windows XP Professiona

[issue2076] xmlrpclib closes connection after each call

2008-02-12 Thread Erno Kuusela
New submission from Erno Kuusela: xmlrpclib is using the old HTTP and HTTPS classes from httplib which are to quote the docstring, "Compatibility classes with httplib.py from 1.5." and force the use of HTTP 1.0. This prevents connection reuse and pipelining. Attacked is some code we are using as

[issue2075] Float number comparision problem

2008-02-12 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: This is expected behavior. Please see http://www.python.org/doc/faq/general/#why-are-floating-point-calculations-so-inaccurate -- nosy: +amaury.forgeotdarc resolution: -> invalid status: open -> closed __ Tracker