[issue1546] Win32 Platform SDK conflict
Adal Chiriliuc added the comment: Sorry, I just saw that this was fixed on head :( __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1546 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1546] Win32 Platform SDK conflict
New submission from Adal Chiriliuc: The WRITE_RESTRICTED macro defined in structmember.h (value 4) conflicts with the WRITE_RESTRICTED macro defined in winnt.h (value 8) in the newer Win32 Platform SDK (such as the one included in Visual Studio 2008). It generates a warning and could potentially be dangerous as the two values are different. -- components: Interpreter Core messages: 58113 nosy: adal severity: normal status: open title: Win32 Platform SDK conflict type: compile error versions: Python 2.6 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1546 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1520] 'without make' documentation build anomaly
Tim Golden added the comment: The attached patch against r59286 tries to tease apart the uses of filename by adding webify_filepath and unwebify_filepath functions to sphinx.utils which are then used throughout the app to convert from filesystem-separated to web-separated paths and back. A WEB_SEP constant has been defined principally to make its purpose clear in case a constant / was thought to have been a hangover from the code's *nix origins. The result has been tested by building manually, ie by invoking python tools\sphinx-build.py with appropriate params under Win32 native only. The html, web and htmlhelp versions all style up and function correctly. It would obviously benefit from testing under Cygwin and *nix. I'm particularly keen to see it it works on a filesystem which doesn't allow / as a separator. Added file: http://bugs.python.org/file8860/sphinx-r59286.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1520 __Index: builder.py === --- builder.py (revision 59286) +++ builder.py (working copy) @@ -27,7 +27,8 @@ from docutils.frontend import OptionParser from .util import (get_matching_files, attrdict, status_iterator, - ensuredir, get_category, relative_uri) + ensuredir, get_category, relative_uri, webify_filepath, + unwebify_filepath) from .writer import HTMLWriter from .util.console import bold, purple, green from .htmlhelp import build_hhx @@ -483,12 +484,12 @@ self.srcdir, '*.rst', exclude=set(self.config.get('unused_files', (: try: targetmtime = path.getmtime(path.join(self.outdir, - filename[:-4] + '.html')) + unwebify_filepath(filename)[:-4] + '.html')) except: targetmtime = 0 if filename not in self.env.all_files: yield filename -elif path.getmtime(path.join(self.srcdir, filename)) targetmtime: +elif path.getmtime(path.join(self.srcdir, unwebify_filepath(filename))) targetmtime: yield filename @@ -513,7 +514,7 @@ ctx = self.globalcontext.copy() ctx.update(context) output = self.templates[templatename].render(ctx) -outfilename = path.join(self.outdir, filename[:-4] + '.html') +outfilename = path.join(self.outdir, unwebify_filepath(filename)[:-4] + '.html') ensuredir(path.dirname(outfilename)) # normally different from self.outdir try: with codecs.open(outfilename, 'w', 'utf-8') as fp: @@ -522,7 +523,7 @@ print self.warning_stream, Error writing file %s: %s % (outfilename, err) if self.copysource and context.get('sourcename'): # copy the source file for the show source link -shutil.copyfile(path.join(self.srcdir, filename), +shutil.copyfile(path.join(self.srcdir, unwebify_filepath(filename)), path.join(self.outdir, context['sourcename'])) def handle_finish(self): @@ -547,10 +548,10 @@ self.srcdir, '*.rst', exclude=set(self.config.get('unused_files', (: try: targetmtime = path.getmtime(path.join(self.outdir, - filename[:-4] + '.fpickle')) + unwebify_filepath(filename)[:-4] + '.fpickle')) except: targetmtime = 0 -if path.getmtime(path.join(self.srcdir, filename)) targetmtime: +if path.getmtime(path.join(self.srcdir, unwebify_filepath(filename))) targetmtime: yield filename def get_target_uri(self, source_filename): @@ -577,7 +578,7 @@ self.indexer.feed(filename, category, title, doctree) def handle_file(self, filename, context, templatename='page'): -outfilename = path.join(self.outdir, filename[:-4] + '.fpickle') +outfilename = path.join(self.outdir, unwebify_filepath(filename)[:-4] + '.fpickle') ensuredir(path.dirname(outfilename)) context.pop('pathto', None) # can't be pickled with file(outfilename, 'wb') as fp: @@ -587,7 +588,7 @@ if context.get('sourcename'): source_name = path.join(self.outdir, 'sources', context['sourcename']) ensuredir(path.dirname(source_name)) -shutil.copyfile(path.join(self.srcdir, filename), source_name) +shutil.copyfile(path.join(self.srcdir, unwebify_filepath(filename)), source_name) def handle_finish(self): # dump the global context Index: directives.py === --- directives.py (revision 59286) +++
[issue1546] Win32 Platform SDK conflict
Christian Heimes added the comment: Thanks for the report. I prefer several false alarms over one bug slipping throught! :) You are right with your concern. The two values *are* different. I've changed the name to PY_WRITE_RESTRICTED. The other names should also be prefixed with PY_ to avoid future name clashes. By the way you might be interested in the head. I've created a new PCbuild9 for VS 2008 Express to Professional Edition with support for AMD x64 and PGO. -- nosy: +tiran resolution: - out of date status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1546 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1545] shutil fails when copying to NTFS in Linux
Christian Heimes added the comment: Better patch: import errno try: copystat(src, dst) except OSError, err: # can't change stats on NTFS partition even if # OS supports it if err.errno != errno.EPERM: raise -- keywords: +patch nosy: +tiran priority: - normal versions: +Python 2.6, Python 3.0 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1545 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1547] Minor typos in whatsnew26
New submission from Tim Golden: One typo refers to from __future__ import generators in the context of the with statement. Later what appears to be an incomplete sentence giving an example of the __dir__ method. The patch attached is against r59286 of doc/whatsnew/2.6.rst -- components: Documentation files: whatsnew-r59286.patch messages: 58118 nosy: tim.golden severity: normal status: open title: Minor typos in whatsnew26 versions: Python 2.6, Python 3.0 Added file: http://bugs.python.org/file8861/whatsnew-r59286.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1547 __Index: 2.6.rst === --- 2.6.rst (revision 59286) +++ 2.6.rst (working copy) @@ -108,7 +108,7 @@ The previous version, Python 2.5, added the ':keyword:`with`' statement an optional feature, to be enabled by a ``from __future__ -import generators`` directive. In 2.6 the statement no longer need to +import with_statement`` directive. In 2.6 the statement no longer need to be specially enabled; this means that :keyword:`with` is now always a keyword. The rest of this section is a copy of the corresponding section from What's New in Python 2.5 document; if you read @@ -481,7 +481,7 @@ of strings containing the names of valid attributes for the object, and lets the object control the value that :func:`dir` produces. Objects that have :meth:`__getattr__` or :meth:`__getattribute__` - methods. + methods can use this to advertise pseudo-attributes they will honour. .. % Patch 1591665 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1548] Tiny typo in doc\using\cmdline.rst
New submission from Tim Golden: The tiniest of punctuation typos in using/cmdline.rst. Patch is against 59286 of doc/using/cmdline.rst -- components: Documentation files: doc-using-cmdline-r59286.patch messages: 58119 nosy: tim.golden severity: normal status: open title: Tiny typo in doc\using\cmdline.rst versions: Python 2.6 Added file: http://bugs.python.org/file8862/doc-using-cmdline-r59286.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1548 __Index: cmdline.rst === --- cmdline.rst (revision 59286) +++ cmdline.rst (working copy) @@ -10,7 +10,7 @@ .. note:: - Other implementation's command line schemes may differ. See + Other implementations' command line schemes may differ. See :ref:`implementations` for further resources. ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1487] PEP 366 implementation
Nick Coghlan added the comment: Checked in as rev 59288. -- status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1487 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1510172] Absolute/relative import not working?
Nick Coghlan added the comment: PEP 366 has been implemented for 2.6, which fixes this bug. The fix turned out to be quite invasive (hence the PEP), so it won't be backported to 2.5. -- resolution: - fixed status: open - closed type: - behavior _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1510172 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1547] Minor typos in whatsnew26
Changes by Tim Golden: -- severity: normal - minor __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1547 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1548] Tiny typo in doc\using\cmdline.rst
Changes by Tim Golden: -- severity: normal - minor __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1548 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1547] Minor typos in whatsnew26
Changes by Christian Heimes: -- assignee: - georg.brandl keywords: +patch nosy: +georg.brandl priority: - low __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1547 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1548] Tiny typo in doc\using\cmdline.rst
Changes by Christian Heimes: -- assignee: - georg.brandl keywords: +patch nosy: +georg.brandl priority: - low __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1548 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1545] shutil fails when copying to NTFS in Linux
Facundo Batista added the comment: But is ok to hide the problem? I mean, there *is* an error: the operation is not permitted (even if it's not Python fault), so why to not have the exception? -- nosy: +facundobatista __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1545 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1546585] String methods don't support explicit None arguments
Nick Coghlan added the comment: This has been implemented for 2.6 -- priority: high - normal resolution: later - fixed status: open - closed type: - rfe versions: +Python 2.6 -Python 2.5 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1546585 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1549] Regression with __hash__ definition and rich comparison operators
New submission from Thomas Herve: A new behavior was introduced in r59106 in python trunk, which look suspicious to me. Basically, every time a class defines a comparison operator, it's __hash__ method is defined to None. The simple following example shows it: class A(object): ... def __init__(self, b): ... self.b = b ... def __cmp__(self, other): ... if not isinstance(other, A): ... return -1 ... return cmp(self.b, other.b) ... hash(A(2)) Traceback (most recent call last): File stdin, line 1, in module TypeError: 'NoneType' object is not callable The problematic change is here: http://svn.python.org/view/python/trunk/Objects/typeobject.c?rev=59106r1=58032r2=59106 And mainly the overrides_hash call in inherit_slots. FWIW, I've encounter the problem because zope.interface is now usable on trunk. -- components: Interpreter Core messages: 58124 nosy: therve severity: major status: open title: Regression with __hash__ definition and rich comparison operators type: crash versions: Python 2.6 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1549 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1549] Regression with __hash__ definition and rich comparison operators
Thomas Herve added the comment: Of course, I meant unusable. -- nosy: +exarkun __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1549 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1549] Regression with __hash__ definition and rich comparison operators
Thomas Herve added the comment: Also, to be more clear, that happens when you define any of the functions in the name_op array (__lt__, __le___, __gt__, __ge__, ...). It's not just a problem about the object being non hashable. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1549 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1455] VS2008, quick hack for distutils.msvccompiler
Christian Heimes added the comment: I've applied the patch to the trunk in r59290 together with a fix for the cygwin compiler. distutils now support VS 2005 and VS 2008 (both tested) and cygwin (only tested for msvcr80). -- resolution: accepted - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1455 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1549] Regression with __hash__ definition and rich comparison operators
Changes by Christian Heimes: -- assignee: - gvanrossum nosy: +gvanrossum priority: - high __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1549 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1545] shutil fails when copying to NTFS in Linux
Raghuram Devarakonda added the comment: I agree with Facundo that it is not good to hide the error. It should be up to the caller to ignore the error. -- nosy: +draghuram __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1545 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1545] shutil fails when copying to NTFS in Linux
Amaury Forgeot d'Arc added the comment: This reminds me of an option in os.walk: By default errors from the os.listdir() call are ignored. If optional argument onerror is specified, it should be a function; it will be called with one argument, an OSError instance. It can report the error to continue with the walk, or raise the exception to abort the walk. Note that the filename is available as the filename attribute of the exception object. We could do something similar, except that by default, errors are not ignored. -- nosy: +amaury.forgeotdarc __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1545 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1550] help('modules') broken by several 3rd party libraries (svn patch attached)
New submission from Ben Hayden: Instead of listing installed modules, help('modules') prints a please wait message, then a traceback noting that a module raised an exception during import, then nothing else. This happens in 2.5 and 2.6a0, but not in 2.4, which apparently doesn't __import__() EVERY module. Tested only on Gentoo Linux 2.6.19, but same behavior is probable on other platforms because pydoc and pkgutil are written in cross-platform Python. Prominent 3rd party libraries that break help('modules') include Django, Pyglet, wxPython, SymPy, and Pypy. Arguably, the bug is in those libraries, but they have good reasons for their behavior. Also, the Unix philosophy of forgiving input is a good one. Also, __import__()ing every module takes a significant run-time hit, especially if libraries compute eg. configuration. The patch utilizes a pre-existing hook in pkgutil to simply quietly add the module to the output. (Long live lambda.) -- components: Demos and Tools, Library (Lib) files: pydocbug.patch messages: 58131 nosy: benjhayden severity: minor status: open title: help('modules') broken by several 3rd party libraries (svn patch attached) type: behavior versions: Python 2.5, Python 2.6 Added file: http://bugs.python.org/file8863/pydocbug.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1550 __ pydocbug.patch Description: Binary data ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1520] 'without make' documentation build anomaly
Joseph Armbruster added the comment: The good news: At a glance, the following look good: - building target html in cmd - building target htmlhelp then generating chm - building target html in cygwin - building target htmlhelp then generating chm The bad news [should a different bug be created for this?] See cmdline.rst: .. cmdoption:: -c command .. cmdoption:: -m module-name .. describe:: script Looks like genindex.html is being generated with some iffy markup: dt-c command/dt __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1520 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1520] 'without make' documentation build anomaly
Joseph Armbruster added the comment: Typo in my last comment: - building target html in cmd - building target htmlhelp then generating chm - building target html in cygwin - building target htmlhelp in cygwin then generating chm __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1520 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1520] 'without make' documentation build anomaly
Tim Golden added the comment: Joseph Armbruster wrote: The bad news [should a different bug be created for this?] See cmdline.rst: .. cmdoption:: -c command .. cmdoption:: -m module-name .. describe:: script Looks like genindex.html is being generated with some iffy markup: dt-c command/dt I'm not sure which way round you're say this. On my system, the markup is: dl class=cmdoption dt id=cmdoption-c tt class=descname-c/ class=descclassname lt;commandgt;/tta class=headerlink href=#cmdoption-c title=Permalink to this definition¶/a/dt ddpExecute .../p/dd /dl Is this right? Or wrong? It doesn't look disastrous to me. In either case, I doubt it's related to the path issues we've been addressing in this Issue. Probably best to raise a new Issue if you think there's a problem. TJG __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1520 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1706039] Added clearerr() to clear EOF state
Raghuram Devarakonda added the comment: I get an error when I try to read 1523853. Is this not moved to the new tracker or others are able to access it? -- nosy: +draghuram _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1706039 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1545] shutil fails when copying to NTFS in Linux
Facundo Batista added the comment: os.walk has an error handling mechanism because it goes through a collection of files, so it's nice to have, for example, a function applied if errors appear in some of those files. As this operation is applicable only to one file, this is not useful at all: if you want to catch the error, just do it. Regarding the type of error, note that you can use the mechanism tiran shows below (if err.errno equals errno.EPERM). In any case, this bug is not applicable any more. -- resolution: - rejected status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1545 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1545] shutil fails when copying to NTFS in Linux
ianaré added the comment: I agree, the best would be to have the option of ignoring errors. However, I think there should be a way to differentiate between errors that prevent a file from being copied, and one that only affects permissions. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1545 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1706039] Added clearerr() to clear EOF state
Martin v. Löwis added the comment: Yes, a number of items were not moved, as SF failed to provide them on export. -- nosy: +loewis _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1706039 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1537] Change GeneratorExit's base class from Exception to BaseException
Guido van Rossum added the comment: looks good to me. Crys, can you do the honors? -- nosy: +gvanrossum resolution: - accepted __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1537 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1537] Change GeneratorExit's base class from Exception to BaseException
Guido van Rossum added the comment: Oops, some tests fail. ctypes and hotshot at least. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1537 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1549] Regression with __hash__ definition and rich comparison operators
Jean-Paul Calderone added the comment: zope.interface.interface.InterfaceClass implements __lt__ and __gt__. It doesn't override any of the other comparison methods, and it relies on inheriting an identity-based __hash__ from its parent. Disabling __hash__ when __cmp__ or __eq__ is defined makes sense, but it does not seem like it needs to be disabled if only __lt__ or __gt__ is defined. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1549 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1545] shutil fails when copying to NTFS in Linux
ianaré added the comment: I must respectfully disagree. This bug also occurs during the copytree command, so it can apply to more than one file. And if using from move then the original file never gets deleted. As far as working around it, it is obviously doable, however this requires distributing my own version of shutil with my application, something which is clearly undesirable. Furthermore, I think that being able to ignore certain errors is very much desirable for this library. (maybe this could be filed under a different report) __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1545 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1727780] 64/32-bit issue when unpickling random.Random
Martin v. Löwis added the comment: Thanks for the patch. Committed as r59295. Because of the version change, the patch cannot be applied to 2.5.x -- resolution: - accepted status: open - closed _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1727780 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1538] Avoid string copy when split char doesn't match
Guido van Rossum added the comment: I think this is not quite right; you shouldn't return self unless it is an exact string instance. If it is a subclass of PyString should make a copy. -- nosy: +gvanrossum __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1538 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1545] shutil fails when copying to NTFS in Linux
Facundo Batista added the comment: I'm -1 to the library ignore errors without specific indication from the user, specially when it's so easy to do it in the calling code. We agree that copytree could grow an option like the one in os.walk. Feel free to open an issue for it (this discussion went through other path here, that's why I prefer a clean issue; you should refer this one in the text, though). You should first discuss this in the list, also. Thank you! __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1545 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1545] shutil fails when copying to NTFS in Linux
Guido van Rossum added the comment: There's already an except clause for copystat() that ignores WindowsError in copytree(). If copying this same code into copy2() makes the OP happy I think we can place a similar except clause around the copystat() call in copy2(). -- nosy: +gvanrossum __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1545 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1549] Regression with __hash__ definition and rich comparison operators
Guido van Rossum added the comment: You have a point. Can you suggest a patch that fixes this? Question though -- what semantics are used for __lt__ and __gt__ that they don't require overriding __eq__? __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1549 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1542677] IDLE shell doesn't accept non ascii char input
Changes by Facundo Batista: -- title: IDLE shell doesn\'t accept non ascii char input - IDLE shell doesn't accept non ascii char input _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1542677 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1547] Minor typos in whatsnew26
Facundo Batista added the comment: Commited, rev 59297. Thank you! -- nosy: +facundobatista __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1547 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1547] Minor typos in whatsnew26
Changes by Facundo Batista: -- resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1547 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1548] Tiny typo in doc\using\cmdline.rst
Georg Brandl added the comment: Fixed in r59299. -- resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1548 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1537] Change GeneratorExit's base class from Exception to BaseException
Christian Heimes added the comment: Applied in r59300 to the trunk. (This time for real. At first I committed it together with some junk to py3k branch. :/) -- resolution: accepted - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1537 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1549] Regression with __hash__ definition and rich comparison operators
Jean-Paul Calderone added the comment: It implements ordering based on the interface's fully-qualified Python name (ie, (__module__, __name__)). This is compatible with the default __eq__ implementation. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1549 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1537] Change GeneratorExit's base class from Exception to BaseException
Chad Austin added the comment: Fantastic, thank you! __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1537 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1549] Regression with __hash__ definition and rich comparison operators
Guido van Rossum added the comment: Fair enough. Still, this would go much faster if someone other than myself could be coerced into researching how to fix this (at least the Zope use -- I haven't heard back from the OP). __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1549 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1551] Port Python/import.c to py3k branch
New submission from Christian Heimes: Dear Nick! I wasn't able to get your modification to Python/import.c from r59288 to run. Can you please port the files to py3k yourself? Thanks! Christian -- assignee: ncoghlan components: Interpreter Core keywords: py3k messages: 58155 nosy: ncoghlan, tiran priority: high severity: normal status: open title: Port Python/import.c to py3k branch versions: Python 3.0 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1551 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1549] Regression with __hash__ definition and rich comparison operators
Thomas Herve added the comment: There are different ways to fix this. Reverting r59016 is one of them, but I guess it's not an acceptable solution :). From what I understand of the changes, removing the operations (__lt__, __gt__, __le__, __ge__) from the name_op array would fix this. But I have to understand why they have been put in there in the first place. I'll try tomorrow, you assign this to me if you want. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1549 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1549] Regression with __hash__ definition and rich comparison operators
Guido van Rossum added the comment: Well, the name_op array is used for other purposes. Perhaps the main issue is that the presence of any of these causes the rich comparison functionality to be overridden. But please do look into this if you can! __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1549 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1545] shutil fails when copying to NTFS in Linux
ianaré added the comment: The problem with WindowsError is that it is not included in Linux. So if there is an exception, it fails without showing the actual error. See here (ubuntu 7.10 default install): try: print a ... except WindowsError: ... print 'b' ... Traceback (most recent call last): File stdin, line 2, in module NameError: name 'WindowsError' is not defined It should return NameError: name 'a' is not defined In my workaround, by placing the OSError before the WindowsError, this problem is taken care of. Let me see if I can figure out something a little better than always ignoring this type of error ... Thanks __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1545 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1545] shutil fails when copying to NTFS in Linux
Guido van Rossum added the comment: Hm, that means there's a bug in the existing copytree() code too! Can you check whether WindowsError derives from OSError? If it does, your proposal won't fly. -- resolution: rejected - status: closed - open __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1545 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1545] shutil fails when copying to NTFS in Linux
ianaré added the comment: Yes, it is a sub-class of OSError. So then only catching OSError should be sufficient? Or am I missing something? __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1545 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1545] shutil fails when copying to NTFS in Linux
Guido van Rossum added the comment: Not quite, because we only want to ignore WindowsError. Maybe this would work? try: WindowsError except NameError: WindowsError = None try: except os.error, err: if WindowsError is not None or not isinstance(err, WindowsError): raise # Pretend we didn't catch it pass # Ignore it __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1545 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1520] 'without make' documentation build anomaly
Georg Brandl added the comment: I fixed the markup problem now, it was a missing escape filter in the template. Well spotted! I also applied the patch in r59309, so this should be fixed now. Many thanks! __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1520 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1545] shutil fails when copying to NTFS in Linux
Raghuram Devarakonda added the comment: try: except os.error, err: if WindowsError is not None or not isinstance(err, WindowsError): raise # Pretend we didn't catch it pass # Ignore it All the double negations are hurting when I try to understand above conditions. How about (in addition to the WindowsError name check): if WindowsError and isinstance(err, WindowsError): pass # ignore raise __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1545 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1520] 'without make' documentation build anomaly
Changes by Georg Brandl: -- resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1520 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1545] shutil fails when copying to NTFS in Linux
Guido van Rossum added the comment: You're right, my code was wrong. Yours will be be correct if you add else: in front of the raise. I also still prefer WindowsError is not None over just WindowsError. On Dec 3, 2007 2:25 PM, Raghuram Devarakonda [EMAIL PROTECTED] wrote: Raghuram Devarakonda added the comment: try: except os.error, err: if WindowsError is not None or not isinstance(err, WindowsError): raise # Pretend we didn't catch it pass # Ignore it All the double negations are hurting when I try to understand above conditions. How about (in addition to the WindowsError name check): if WindowsError and isinstance(err, WindowsError): pass # ignore raise __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1545 __ __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1545 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1545] shutil fails when copying to NTFS in Linux
Raghuram Devarakonda added the comment: You're right, my code was wrong. Yours will be be correct if you add else: in front of the raise. I also still prefer WindowsError is Yeah. I was just about to correct my code when I saw your response. I should not post just before leaving work for home :-) __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1545 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1545] shutil fails when copying to NTFS in Linux
ianaré added the comment: Rather than try in copytree and try again in copy2, why not add this to the root of the issue - copystat. Something like this? def copystat(src, dst, ignore_permission_err=False): Copy all stat info (mode bits, atime and mtime) from src to dst st = os.stat(src) mode = stat.S_IMODE(st.st_mode) try: if hasattr(os, 'utime'): os.utime(dst, (st.st_atime, st.st_mtime)) if hasattr(os, 'chmod'): os.chmod(dst, mode) except OSError, err: if WindowsError is not None and isinstance(err, WindowsError): pass elif ignore_permissions_err and err.errno == errno.EPERM: pass else: raise __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1545 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1545] shutil fails when copying to NTFS in Linux
Guido van Rossum added the comment: Look at the except clause in copytree(); it does a bit more, collecting the errors and raising them later. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1545 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1294] Management of KeyboardInterrupt in cmd.py
Alexandre Vassalotti added the comment: First, I would like to say thank you both for spending your time trying to do a contribution to Python. However, I believe the current behavior of cmd.py is correct. The module documentation states clearly that End of file on input is processed as the command 'EOF'. For the KeyboardInterrupt issue, it thinks the exception should be handled by the application with a try-statement. For example, import sys, cmd c = cmd.Cmd() try: ... c.cmdloop() ... except KeyboardInterrupt: ... print \nGot keyboard interrupt. Exiting... ... sys.exit(0) ... (Cmd) ^C Got keyboard interrupt. Exiting... I am closing and marking this bug as rejected. If you feel this is inappropriate, please request with an appropriate explanation to reopen it. -- components: +Library (Lib) -None nosy: +alexandre.vassalotti priority: - low resolution: - rejected status: open - closed type: behavior - rfe __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1294 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1538] Avoid string copy when split char doesn't match
Skip Montanaro added the comment: I'm not sure why a string subclass shouldn't work, but I've attached a new version of the patch that calls PyString_CheckExact() to prevent using a string subclass. Added file: http://bugs.python.org/file8864/string-split.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1538 __*** /tmp/skip/ediffaFAAPT Mon Dec 3 19:01:29 2007 --- /Users/skip/src/python/trunk/Objects/stringobject.c Mon Dec 3 16:42:22 2007 *** *** 1403,1410 #define RSKIP_NONSPACE(s, i) { while (i=0 !isspace(Py_CHARMASK(s[i]))) i--; } Py_LOCAL_INLINE(PyObject *) ! split_whitespace(const char *s, Py_ssize_t len, Py_ssize_t maxsplit) { Py_ssize_t i, j, count=0; PyObject *str; PyObject *list = PyList_New(PREALLOC_SIZE(maxsplit)); --- 1403,1411 #define RSKIP_NONSPACE(s, i) { while (i=0 !isspace(Py_CHARMASK(s[i]))) i--; } Py_LOCAL_INLINE(PyObject *) ! split_whitespace(PyStringObject *self, Py_ssize_t len, Py_ssize_t maxsplit) { + const char *s = PyString_AS_STRING(self); Py_ssize_t i, j, count=0; PyObject *str; PyObject *list = PyList_New(PREALLOC_SIZE(maxsplit)); *** *** 1419,1424 --- 1420,1432 if (i==len) break; j = i; i++; SKIP_NONSPACE(s, i, len); + if (j == 0 i == len PyString_CheckExact(self)) { + /* No whitespace in self, so just use it as list[0] */ + Py_INCREF(self); + PyList_SET_ITEM(list, 0, (PyObject *)self); + count++; + break; + } SPLIT_ADD(s, j, i); } *** *** 1437,1444 } Py_LOCAL_INLINE(PyObject *) ! split_char(const char *s, Py_ssize_t len, char ch, Py_ssize_t maxcount) { register Py_ssize_t i, j, count=0; PyObject *str; PyObject *list = PyList_New(PREALLOC_SIZE(maxcount)); --- 1445,1453 } Py_LOCAL_INLINE(PyObject *) ! split_char(PyStringObject *self, Py_ssize_t len, char ch, Py_ssize_t maxcount) { + const char *s = PyString_AS_STRING(self); register Py_ssize_t i, j, count=0; PyObject *str; PyObject *list = PyList_New(PREALLOC_SIZE(maxcount)); *** *** 1457,1463 } } } ! if (i = len) { SPLIT_ADD(s, i, len); } FIX_PREALLOC_SIZE(list); --- 1466,1478 } } } ! if (i == 0 count == 0 PyString_CheckExact(self)) { ! /* ch not in self, so just use self as list[0] */ ! Py_INCREF(self); ! PyList_SET_ITEM(list, 0, (PyObject *)self); ! count++; ! } ! else if (i = len) { SPLIT_ADD(s, i, len); } FIX_PREALLOC_SIZE(list); *** *** 1492,1498 if (maxsplit 0) maxsplit = PY_SSIZE_T_MAX; if (subobj == Py_None) ! return split_whitespace(s, len, maxsplit); if (PyString_Check(subobj)) { sub = PyString_AS_STRING(subobj); n = PyString_GET_SIZE(subobj); --- 1507,1513 if (maxsplit 0) maxsplit = PY_SSIZE_T_MAX; if (subobj == Py_None) ! return split_whitespace(self, len, maxsplit); if (PyString_Check(subobj)) { sub = PyString_AS_STRING(subobj); n = PyString_GET_SIZE(subobj); *** *** 1509,1515 return NULL; } else if (n == 1) ! return split_char(s, len, sub[0], maxsplit); list = PyList_New(PREALLOC_SIZE(maxsplit)); if (list == NULL) --- 1524,1530 return NULL; } else if (n == 1) ! return split_char(self, len, sub[0], maxsplit); list = PyList_New(PREALLOC_SIZE(maxsplit)); if (list == NULL) *** *** 1609,1616 } Py_LOCAL_INLINE(PyObject *) ! rsplit_whitespace(const char *s, Py_ssize_t len, Py_ssize_t maxsplit) { Py_ssize_t i, j, count=0; PyObject *str; PyObject *list = PyList_New(PREALLOC_SIZE(maxsplit)); --- 1624,1632 } Py_LOCAL_INLINE(PyObject *) ! rsplit_whitespace(PyStringObject *self, Py_ssize_t len, Py_ssize_t maxsplit) { + const char *s = PyString_AS_STRING(self); Py_ssize_t i, j, count=0; PyObject *str; PyObject *list = PyList_New(PREALLOC_SIZE(maxsplit)); *** *** 1625,1630 --- 1641,1653 if (i0) break; j = i; i--; RSKIP_NONSPACE(s, i); + if (j == len-1 i 0 PyString_CheckExact(self)) { + /* No whitespace in
[issue1538] Avoid string copy when split char doesn't match
Changes by Skip Montanaro: Removed file: http://bugs.python.org/file8851/string-split.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1538 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1005] Patches to rename Queue module to queue
Alexandre Vassalotti added the comment: Thank you, Paul, for the patches. I reviewed the patches and improved them. Here the list of changes: - Added unit test for the import fixers. - Renamed Lib/Queue.py to Lib/queue.py. - Updated Tools/webchecker/wsgui.py. - Updated the documentation. Hopefully, the patches won't get out of date by the time we do the library reorganization. -- assignee: - brett.cannon keywords: +py3k nosy: +alexandre.vassalotti, brett.cannon versions: +Python 3.0 -Python 2.6 Added file: http://bugs.python.org/file8865/queue-import-fixer.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1005 __Index: tests/test_fixers.py === --- tests/test_fixers.py (revision 59312) +++ tests/test_fixers.py (working copy) @@ -1273,6 +1273,7 @@ cStringIO: (io, [StringIO]), __builtin__ : (builtins, [open, Exception, __debug__, str]), + Queue: (queue, [Empty, Full, Queue]), } def test_import_module(self): Index: fixes/fix_imports.py === --- fixes/fix_imports.py (revision 59312) +++ fixes/fix_imports.py (working copy) @@ -4,6 +4,7 @@ * StringIO - io * cStringIO - io * md5 - hashlib + * Queue - queue # Author: Collin Winter @@ -16,7 +17,8 @@ MAPPING = {StringIO: (io, [StringIO]), cStringIO: (io, [StringIO]), - __builtin__ : (builtins, builtin_names), + __builtin__: (builtins, builtin_names), + Queue: (queue, [Empty, Full, Queue]), } ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1005] Patches to rename Queue module to queue
Changes by Alexandre Vassalotti: Added file: http://bugs.python.org/file8868/queue-rename-misc.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1005 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1005] Patches to rename Queue module to queue
Changes by Alexandre Vassalotti: -- assignee: collinwinter - brett.cannon nosy: -collinwinter __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1005 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1005] Patches to rename Queue module to queue
Changes by Alexandre Vassalotti: -- assignee: brett.cannon - collinwinter nosy: +collinwinter Added file: http://bugs.python.org/file8866/queue-rename-documentation.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1005 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1214] Timeout in CGIXMLRPCRequestHandler under IIS
Alexandre Vassalotti added the comment: Looks good to me. I updated the patch to use .get() with a default value instead of a if-statement with .has_key(). -- nosy: +alexandre.vassalotti priority: - normal Added file: http://bugs.python.org/file8869/check-content-length.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1214 __Index: Lib/SimpleXMLRPCServer.py === --- Lib/SimpleXMLRPCServer.py (revision 59313) +++ Lib/SimpleXMLRPCServer.py (working copy) @@ -599,7 +599,8 @@ else: # POST data is normally available through stdin if request_text is None: -request_text = sys.stdin.read() +content_length = os.environ.get('CONTENT_LENGTH', -1) +request_text = sys.stdin.read(content_length) self.handle_xmlrpc(request_text) ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1294] Management of KeyboardInterrupt in cmd.py
Raghuram Devarakonda added the comment: My patch adds very sensible default behaviour when Ctrl-C or Ctrl-D are entered. It follows the tradition of many unix programs such as bash and bc which exit on Ctrl-D and ignore Ctrl-c in one way or another. Most importantly, a user can always override the behaviour but I expect the added functionality would suffice in most if not all cases. Do you mind opening the issue in the hope that we can have more comments? __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1294 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1552] fromfd() and socketpair() should return wrapped sockets
New submission from Takeshi Sone: socket() returns socket object wrapped by Python code, but fromfd() and socketpair() return raw object. This results in behaviour differences between sockets. Attached patch fixes it. -- components: Library (Lib) files: fromfd_sockpair.patch messages: 58172 nosy: ts1 severity: normal status: open title: fromfd() and socketpair() should return wrapped sockets type: behavior versions: Python 2.4, Python 2.5, Python 2.6 Added file: http://bugs.python.org/file8870/fromfd_sockpair.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1552 __Index: Lib/socket.py === --- Lib/socket.py (revision 59313) +++ Lib/socket.py (working copy) @@ -213,6 +213,27 @@ socket = SocketType = _socketobject + +try: +_real_fromfd = fromfd +except NameError: +pass +else: +def fromfd(*args): +return _socketobject(_sock=_real_fromfd(*args)) +fromfd.__doc__ = _real_fromfd.__doc__ + +try: +_real_socketpair = socketpair +except NameError: +pass +else: +def socketpair(*args): +a, b = _real_socketpair(*args) +return _socketobject(_sock=a), _socketobject(_sock=b) +socketpair.__doc__ = _real_socketpair.__doc__ + + class _fileobject(object): Faux file object attached to a socket object. ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1294] Management of KeyboardInterrupt in cmd.py
Guido van Rossum added the comment: I will look into this for 2.6. No promises. Somebody ought to check whether this does not cause problems for pdb. -- resolution: rejected - status: closed - open versions: +Python 2.6 -Python 2.5 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1294 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1294] Management of KeyboardInterrupt in cmd.py
Raghuram Devarakonda added the comment: I will look into this for 2.6. No promises. Somebody ought to check whether this does not cause problems for pdb. Thanks. I will check about pdb tomorrow. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1294 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1553] An errornous __length_hint__ can make list() raise a SystemError
New submission from Alexandre Vassalotti: If an iterator with a __length_hint__ method that returns a negative integer is passed to list(), a SystemError is raised. class A: ... def __iter__(self): ... return self ... def __length_hint__(self): ... return -1 ... list(A()) Traceback (most recent call last): File stdin, line 1, in module SystemError: NULL result without error in PyObject_Call -- messages: 58176 nosy: alexandre.vassalotti priority: normal severity: normal status: open title: An errornous __length_hint__ can make list() raise a SystemError type: behavior versions: Python 2.5, Python 2.6, Python 3.0 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1553 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1283] PyBytes (buffer) .extend method needs to accept any iterable of ints
Alexandre Vassalotti added the comment: Thank you Gregory for the review! Committed to r59314. -- resolution: - accepted status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1283 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1553] An errornous __length_hint__ can make list() raise a SystemError
Alexandre Vassalotti added the comment: Fixed for Py3k in r59316. Should this gets backported? -- status: open - __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1553 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com