[issue1562] Decimal can't be subclassed useful

2007-12-07 Thread Christian Heimes
Christian Heimes added the comment: Can you create a patch that replaces Decimal with self.__class__ and the string "Decimal" with "%s ..." % self.__class__.__name__? Thanks :) -- assignee: -> facundobatista nosy: +facundobatista, tiran priority: -> normal type: -> behavior versions

[issue1564547] Py_signal_pipe

2007-12-07 Thread Gustavo J. A. M. Carneiro
Gustavo J. A. M. Carneiro added the comment: "My understanding is that there are some things that the current patch does not address." Well, I don't know what those things are, so it's hard for me to address them. :-) _ Tracker <[EMAIL PROTECTED]>

[issue1567] Patch for new API method _PyImport_ImportModuleNoLock(char *name)

2007-12-07 Thread Christian Heimes
Changes by Christian Heimes: -- assignee: -> tiran components: +IDLE, Interpreter Core type: -> behavior __ Tracker <[EMAIL PROTECTED]> __ ___

[issue1567] Patch for new API method _PyImport_ImportModuleNoLock(char *name)

2007-12-07 Thread Christian Heimes
New submission from Christian Heimes: The patch adds a new API method _PyImport_ImportModuleNoLock(const char *name). It works mostly like PyImport_ImportModule except it does not block. It tries to fetch the module from sys.modules first and falls back to PyImport_ImportModule UNLESS the import

[issue1566] sock_type doesn't have GC although it can contain a PyObject*

2007-12-07 Thread Christian Heimes
New submission from Christian Heimes: The socket object is defined in socketmodule.h as typedef struct { PyObject_HEAD SOCKET_T sock_fd; /* Socket file descriptor */ int sock_family;/* Address family, e.g., AF_INET */ int sock_type; /* Socke

[issue1565] round(x,y) doesn't behave as expected, round error

2007-12-07 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: 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 <[EMAIL PROTECTED]>

[issue1568] PATCH: Armin's attribute lookup caching for 3.0

2007-12-07 Thread Christian Heimes
Changes by Christian Heimes: -- keywords: +patch, py3k nosy: +tiran priority: -> normal __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list

[issue1566] sock_type doesn't have GC although it can contain a PyObject*

2007-12-07 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: But there is not PyObject* in this struct. errorhandler is a pointer to a C function returning a PyObject*; it cannot create a reference cycle. -- nosy: +amaury.forgeotdarc __ Tracker <[EMAIL PROTECTED]>

[issue1565] round(x,y) doesn't behave as expected, round error

2007-12-07 Thread Shlomo Anglister
Shlomo Anglister added the comment: >>> def my_round(n,i): ... t = n * (10**i) ... s = round(t) ... r = s / (10**i) ... return r ... >>> print my_round(s,2) 1.41 __ Tracker <[EMAIL PROTECTED]> ___

[issue1568] PATCH: Armin's attribute lookup caching for 3.0

2007-12-07 Thread Neil Toronto
New submission from Neil Toronto: This is a half-port of the patches in #1685986 and #1700288 to Python 3.0. Speedups are about the same as in those patches applied to their respective Python versions for minibenchmarks (included in the patch as fastattr_test_py3k.py): 5%-30% or more depending on

[issue1566] sock_type doesn't have GC although it can contain a PyObject*

2007-12-07 Thread Christian Heimes
Christian Heimes added the comment: uhm ... yeah, you are right. I saw PyObject* and didn't though about the rest. -- resolution: -> invalid status: open -> closed __ Tracker <[EMAIL PROTECTED]> ___

[issue1569] Add VS CRT redist to the MSI installer

2007-12-07 Thread Christian Heimes
New submission from Christian Heimes: The 3.0a2 installer requires the user to install the VS CRT library manually. 3.0a3 and 2.6a1 should automate the installation of vsredist somehow. -- components: Installation, Windows keywords: py3k messages: 58278 nosy: jorend, loewis, tiran priori

[issue1266570] PEP 349: allow str() to return unicode

2007-12-07 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: The PEP has been deferred and the patch is out of date. So, is this change still wanted? -- nosy: +alexandre.vassalotti resolution: -> out of date _ Tracker <[EMAIL PROTECTED]>

[issue1530] doctest should return error if not all tests passed

2007-12-07 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Committed in r59411. Thanks! -- resolution: -> accepted status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ __

[issue1570] Backport sys.maxsize to Python 2.6

2007-12-07 Thread Christian Heimes
Christian Heimes added the comment: Good idea! I've created a GHOP task and waiting for approval. I'll shepherd the task. __ Tracker <[EMAIL PROTECTED]> __ _

[issue1562] Decimal can't be subclassed useful

2007-12-07 Thread Mark Dickinson
Mark Dickinson added the comment: It's not clear to me that this would be the right behaviour. Unless I'm missing something, Decimal behaves in just the same way as types like int, float and str in this respect: >>> class myint(int): pass ... >>> a = myint(2) >>> b = myint(3) >>> a+b 5 >>> t

[issue1469] SSL tests leak memory

2007-12-07 Thread Guido van Rossum
Changes by Guido van Rossum: Removed file: http://bugs.python.org/file8892/unnamed __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list

[issue1570] Backport sys.maxsize to Python 2.6

2007-12-07 Thread Guido van Rossum
Guido van Rossum added the comment: Maybe suggest this as a GHOP task? -- nosy: +gvanrossum priority: high -> normal __ Tracker <[EMAIL PROTECTED]> __ _

[issue1565] round(x,y) doesn't behave as expected, round error

2007-12-07 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Your function is not better: >>> print my_round(s,2) 1.41 >>> my_round(s,2) 1.4099 print uses str(), and restricts itself to 12 significant digits. the direct call uses repr(), and display the most precise number. The problem is not in the co

[issue1565] round(x,y) doesn't behave as expected, round error

2007-12-07 Thread Shlomo Anglister
New submission from Shlomo Anglister: #Round is unexpectedly wrong >>> z = complex(1,1) >>> s=abs(z) >>> round(s,2) 1.4099 -- components: Interpreter Core messages: 58266 nosy: shlomoa severity: normal status: open title: round(x,y) doesn't behave as expected, round error ver

[issue1469] SSL tests leak memory

2007-12-07 Thread Guido van Rossum
Guido van Rossum added the comment: Don't worry, I did back it out before releasing 3.0a2. I believe I hacked your code a bit before checking it in (or after you checked it in, can't remember). Did you see my bug report with a TypeError? __ Tracker <[EMAIL PROTE

[issue1469] SSL tests leak memory

2007-12-07 Thread Guido van Rossum
Changes by Guido van Rossum: Removed file: http://bugs.python.org/file8845/unnamed __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list

[issue1469] SSL tests leak memory

2007-12-07 Thread Bill Janssen
Bill Janssen added the comment: I'm still not sure what the problem is. This code was working fine when I committed it, no leaks, so something else must have changed under the covers. I don't believe that adding GC to the C code is the answer; it should be automatically GC'd. So I'd back that

[issue1568] PATCH: Armin's attribute lookup caching for 3.0

2007-12-07 Thread Neil Toronto
Neil Toronto added the comment: This patch adds the ability to invalidate all of a subclasses' cache entries upon setattr rather than updating just one cache entry. It's not clear which of these is the Right Thing To Do, so I've made it an #ifdef for now. It defaults to updating. Added file: htt

[issue1530] doctest should return error if not all tests passed

2007-12-07 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Looks good to me. Here's slightly modified patch ready to be committed. -- keywords: +patch nosy: +alexandre.vassalotti priority: -> low Added file: http://bugs.python.org/file8893/doctest.patch __ Tracker <[EMAIL

[issue1569] Add VS CRT redist to the MSI installer

2007-12-07 Thread Martin v. Löwis
Martin v. Löwis added the comment: I tried running vcredist from within the python MSI. That aborts with error message that it can't run another installer while one is already running. __ Tracker <[EMAIL PROTECTED]> _

[issue1110] Problems with the msi installer - python-3.0a1.msi

2007-12-07 Thread Vlastimil Brom
Vlastimil Brom added the comment: I just installed python-3.0a2 and it works fine for me (Win XPh SP2 Czech; python3 directory C:\Python30). Sofar I haven't found any problems other than those mentioned in the release notes. Thank you very much for fixing this!

[issue914148] xml.sax segfault on error

2007-12-07 Thread Facundo Batista
Facundo Batista added the comment: There's no crash in 2.5.1 neither in the trunk. As 2.3 or 2.4 won't be fixed, do you think that this bug can be closed? Thanks! -- nosy: +facundobatista Tracker <[EMAIL PROTECTED]>

[issue1570] Backport sys.maxsize to Python 2.6

2007-12-07 Thread Christian Heimes
New submission from Christian Heimes: Reminder for me and myself -- assignee: tiran components: Interpreter Core messages: 58279 nosy: tiran priority: high severity: normal status: open title: Backport sys.maxsize to Python 2.6 versions: Python 2.6 __ Tra

[issue1568] PATCH: Armin's attribute lookup caching for 3.0

2007-12-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: Recommend holding-off on applying this one until I've reviewed and applied the Py2.6 version. -- assignee: -> rhettinger nosy: +rhettinger __ Tracker <[EMAIL PROTECTED]>