[issue1777458] glob doesn't return unicode with unicode parameter

2007-08-26 Thread Grzegorz Adam Hankiewicz


Grzegorz Adam Hankiewicz
 added the comment:

Previous bug report would be now http://bugs.python.org/issue1001604.

--
type:  -> behavior

_
Tracker <[EMAIL PROTECTED]>

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1739648] zipfile.testzip() using progressive file reads

2007-08-26 Thread Grzegorz Adam Hankiewicz


Grzegorz Adam Hankiewicz
 added the comment:

Any progress report on this issue, please?

_
Tracker <[EMAIL PROTECTED]>

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1760357] ZipFile.write fails with bad modification time

2007-08-26 Thread Grzegorz Adam Hankiewicz


Grzegorz Adam Hankiewicz
 added the comment:

Any progress report on this issue, please?

_
Tracker <[EMAIL PROTECTED]>

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1026] Backport ABC to 2.6

2007-08-26 Thread Benjamin Aranguren

New submission from Benjamin Aranguren:

Worked with Alex Martelli at the Google Python Sprint to backport ABC to
2.6.

Added abc.py and test_abc.py to svn trunk.

--
components: Library (Lib)
files: pyABC_backport_to_2_6.patch
messages: 55308
nosy: baranguren
severity: normal
status: open
title: Backport ABC to 2.6
versions: Python 2.6

__
Tracker <[EMAIL PROTECTED]>

__Index: Objects/abstract.c
===
--- Objects/abstract.c	(revision 57506)
+++ Objects/abstract.c	(working copy)
@@ -2275,6 +2275,27 @@
 int
 PyObject_IsInstance(PyObject *inst, PyObject *cls)
 {
+	PyObject *t, *v, *tb;
+	PyObject *checker;
+	PyErr_Fetch(&t, &v, &tb);
+	checker = PyObject_GetAttrString(cls, "__instancecheck__");
+	PyErr_Restore(t, v, tb);
+	if (checker != NULL) {
+		PyObject *res;
+		int ok = -1;
+		if (Py_EnterRecursiveCall(" in __instancecheck__")) {
+			Py_DECREF(checker);
+			return ok;
+		}
+		res = PyObject_CallFunctionObjArgs(checker, inst, NULL);
+		Py_LeaveRecursiveCall();
+		Py_DECREF(checker);
+		if (res != NULL) {
+			ok = PyObject_IsTrue(res);
+			Py_DECREF(res);
+		}
+		return ok;
+	}
 return recursive_isinstance(inst, cls, Py_GetRecursionLimit());
 }
 
@@ -2330,6 +2351,25 @@
 int
 PyObject_IsSubclass(PyObject *derived, PyObject *cls)
 {
+	PyObject *t, *v, *tb;
+	PyObject *checker;
+	PyErr_Fetch(&t, &v, &tb);
+	checker = PyObject_GetAttrString(cls, "__subclasscheck__");
+	PyErr_Restore(t, v, tb);
+	if (checker != NULL) {
+		PyObject *res;
+		int ok = -1;
+		if (Py_EnterRecursiveCall(" in __subclasscheck__"))
+			return ok;
+		res = PyObject_CallFunctionObjArgs(checker, derived, NULL);
+		Py_LeaveRecursiveCall();
+		Py_DECREF(checker);
+		if (res != NULL) {
+			ok = PyObject_IsTrue(res);
+			Py_DECREF(res);
+		}
+		return ok;
+	}
 return recursive_issubclass(derived, cls, Py_GetRecursionLimit());
 }
 
Index: Lib/abc.py
===
--- Lib/abc.py	(revision 0)
+++ Lib/abc.py	(revision 0)
@@ -0,0 +1,206 @@
+# Copyright 2007 Google, Inc. All Rights Reserved.
+# Licensed to PSF under a Contributor Agreement.
+
+"""Abstract Base Classes (ABCs) according to PEP 3119."""
+
+
+def abstractmethod(funcobj):
+"""A decorator indicating abstract methods.
+
+Requires that the metaclass is ABCMeta or derived from it.  A
+class that has a metaclass derived from ABCMeta cannot be
+instantiated unless all of its abstract methods are overridden.
+The abstract methods can be called using any of the the normal
+'super' call mechanisms.
+
+Usage:
+
+class C(metaclass=ABCMeta):
+@abstractmethod
+def my_abstract_method(self, ...):
+...
+"""
+funcobj.__isabstractmethod__ = True
+return funcobj
+
+
+class abstractproperty(property):
+"""A decorator indicating abstract properties.
+
+Requires that the metaclass is ABCMeta or derived from it.  A
+class that has a metaclass derived from ABCMeta cannot be
+instantiated unless all of its abstract properties are overridden.
+The abstract properties can be called using any of the the normal
+'super' call mechanisms.
+
+Usage:
+
+class C(metaclass=ABCMeta):
+@abstractproperty
+def my_abstract_property(self):
+...
+
+This defines a read-only property; you can also define a read-write
+abstract property using the 'long' form of property declaration:
+
+class C(metaclass=ABCMeta):
+def getx(self): ...
+def setx(self, value): ...
+x = abstractproperty(getx, setx)
+"""
+__isabstractmethod__ = True
+
+
+class _Abstract(object):
+
+"""Helper class inserted into the bases by ABCMeta (using _fix_bases()).
+
+You should never need to explicitly subclass this class.
+
+There should never be a base class between _Abstract and object.
+"""
+
+def __new__(cls, *args, **kwds):
+am = cls.__dict__.get("__abstractmethods__")
+if am:
+raise TypeError("Can't instantiate abstract class %s "
+"with abstract methods %s" %
+(cls.__name__, ", ".join(sorted(am
+if (args or kwds) and cls.__init__ is object.__init__:
+raise TypeError("Can't pass arguments to __new__ "
+"without overriding __init__")
+return object.__new__(cls)
+
+@classmethod
+def __subclasshook__(cls, subclass):
+"""Abstract classes can override this to customize issubclass().
+
+This is invoked early on by __subclasscheck__() below.  It
+should return True, False or NotImplemented.  If it returns
+NotImplemented, the normal algorithm is used.  Otherwise, it
+overrides the normal algorithm (and the ou

[issue1014] cgi: parse_qs and parse_qsl misbehave on empty strings

2007-08-26 Thread Senthil

Senthil added the comment:

Can query strings be empty? I am unable to find an instance.

--
nosy: +orsenthil

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1027] uudecoding (uu.py) does not supprt base64, patch attached

2007-08-26 Thread Gregory Dudek

Changes by Gregory Dudek:


--
components: Extension Modules
severity: normal
status: open
title: uudecoding (uu.py) does not supprt base64, patch attached
type: behavior
versions: Python 2.4

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1027] uudecoding (uu.py) does not supprt base64, patch attached

2007-08-26 Thread Gregory Dudek

New submission from Gregory Dudek:

The uu.py library for uuencoding and uudecoding does not support base64 
encodins.  The patch addached here adds base64 decoding, but does not add 
encoding support.

--
nosy: +dudek

__
Tracker <[EMAIL PROTECTED]>

__

uu.py-base64ugrade.diff
Description: Binary data
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2007-08-26 Thread Kurt B. Kaiser

New submission from Kurt B. Kaiser:

The control-spacebar binding is used in IDLE to 
force open the completions window.  It's causing 
IDLE to exit with a utf8 decode error.  Attached 
is 
a Tkinter cut-down 
exhibiting the problem and a patch.

The cutdown runs ok on 2.6 but not on py3k because 
the latter uses PyUnicode_FromString on all the 
arguments and errs out when it encounters a 
character outside the utf-8 range.

Strangely, on my system, control-spacebar is 
sending a two byte 
string, C0E8 via the %A parameter.  Control-2 
does 
the same.  Other keys with combinations of 
modifier 
keys send one byte.

Linux trader 2.6.18-ARCH #1 SMP PREEMPT Sun Nov 
19 
09:14:35 CET 2006 i686 Intel(R) Pentium(R) 4 CPU 
2.40GHz GenuineIntel GNU/Linux

Can the problem be confirmed?

Using PyUnicode_FromUnicode on %A works because 
the 
unicode string is copied instead of decoded, and 
that parameter is supposed to be unicode, in any 
case.

The patch fixes the problem on my system but 
should 
be reviewed, especially whether the cast in the 
call 
to PyUnicode_FromUnicode is suitably cross-
platform.

Assigning to Neal since he's working a lot of 
Unicode issues right now.  I can check it in if I 
get approval.

--
assignee: nnorwitz
components: Tkinter
files: tkintertest.py
keywords: patch, py3k
messages: 55311
nosy: kbk
severity: normal
status: open
title: Tkinter binding involving Control-spacebar raises unicode error
versions: Python 3.0

__
Tracker <[EMAIL PROTECTED]>

__

tkintertest.py
Description: application/python
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2007-08-26 Thread Kurt B. Kaiser

Kurt B. Kaiser added the comment:

Heh, I see we have the same damn problem SF had: when a comment is 
edited, 
it doesn't re-wrap properly when submitted.  You have to remove the 
returns 
manually after editing.

__
Tracker <[EMAIL PROTECTED]>

__Index: Modules/_tkinter.c
===
--- Modules/_tkinter.c  (revision 57515)
+++ Modules/_tkinter.c  (working copy)
@@ -1897,7 +1897,7 @@
 PythonCmd(ClientData clientData, Tcl_Interp *interp, int argc, char *argv[])
 {
PythonCmd_ClientData *data = (PythonCmd_ClientData *)clientData;
-   PyObject *self, *func, *arg, *res;
+   PyObject *self, *func, *arg, *res, *s;
int i, rv;
Tcl_Obj *tres;
 
@@ -1914,7 +1914,12 @@
return PythonCmd_Error(interp);
 
for (i = 0; i < (argc - 1); i++) {
-   PyObject *s = PyUnicode_FromString(argv[i + 1]);
+   if (11 == (i + 1)) {  /* the %A arg is the unicode char */
+   s = PyUnicode_FromUnicode((Py_UNICODE *) argv[i + 1], 
1);
+   }
+   else {
+   s = PyUnicode_FromString(argv[i + 1]);
+   }
if (!s || PyTuple_SetItem(arg, i, s)) {
Py_DECREF(arg);
return PythonCmd_Error(interp);
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2007-08-26 Thread Kurt B. Kaiser

Kurt B. Kaiser added the comment:

Nope, you have to make sure not to type too wide.

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1029] py3k: io.StringIO.getvalue() returns \r\n

2007-08-26 Thread Amaury Forgeot d'Arc

New submission from Amaury Forgeot d'Arc:

io.StrinIO.getvalue() correctly decodes bytes from the underlying
buffer, but does not translate \r\n to \n.

Python 3.0x (py3k, Aug 26 2007, 14:39:16) [MSC v.1400 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import io
>>> a = io.StringIO()
>>> a.write('\n')
2
>>> a.getvalue()
'\r\n'

The attached patch corrects this and adds a test.

--
components: Library (Lib), Windows
files: stringio.diff
messages: 55314
nosy: amaury.forgeotdarc
severity: normal
status: open
title: py3k: io.StringIO.getvalue() returns \r\n
type: behavior
versions: Python 3.0

__
Tracker <[EMAIL PROTECTED]>

__

stringio.diff
Description: Binary data
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1030] py3k: Adapt _winreg.c to the new buffer API

2007-08-26 Thread Amaury Forgeot d'Arc

Changes by Amaury Forgeot d'Arc:


--
components: Windows
files: winreg.diff
severity: normal
status: open
title: py3k: Adapt _winreg.c to the new buffer API
type: compile error
versions: Python 3.0

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1031] py3k: compilation with VC2005

2007-08-26 Thread Amaury Forgeot d'Arc

New submission from Amaury Forgeot d'Arc:

This patch is necessary to compile inside the PCBuild8 directory

--
components: Windows
files: vc2005.diff
messages: 55315
nosy: amaury.forgeotdarc
severity: normal
status: open
title: py3k: compilation with VC2005
type: compile error
versions: Python 3.0

__
Tracker <[EMAIL PROTECTED]>

__

vc2005.diff
Description: Binary data
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1031] py3k: compilation with VC2005

2007-08-26 Thread Neal Norwitz

Neal Norwitz added the comment:

Thanks for the patch.  I tried to apply this patch, but almost
everything failed.  Could you make sure to do a svn update and then
generate the patch?

The only part of the patch that applied cleanly was to rmpyc.py.  That
was checked in as:
Committed revision 57527.

--
nosy: +nnorwitz

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1032] Improve the hackish runtime_library_dirs support for gcc

2007-08-26 Thread Alexandre Vassalotti

New submission from Alexandre Vassalotti:

In distutils.unixccompiler, there is a hack to passing correctly the -R
option to gcc (and a few other compilers). However, there is a small bug
   that causes gcc to not be detected correctly if the compiler name
does not start with "gcc" (e.g., "i486-linux-gnu-gcc", or "ccache gcc").

--
components: Distutils
messages: 55317
nosy: alexandre.vassalotti
severity: minor
status: open
title: Improve the hackish runtime_library_dirs support for gcc
type: compile error

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1030] py3k: Adapt _winreg.c to the new buffer API

2007-08-26 Thread Neal Norwitz

New submission from Neal Norwitz:

Thanks!  I can't test this, but I applied the change.  It makes sense to me.

Committed revision 57528.

--
assignee:  -> nnorwitz
nosy: +nnorwitz
resolution:  -> accepted
status: open -> closed

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1031] py3k: compilation with VC2005

2007-08-26 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc added the comment:

Sorry, it's probably because I somehow converted the line endings.
Attached a new version of the patch.

__
Tracker <[EMAIL PROTECTED]>

__

vc2005-2.diff
Description: Binary data
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1032] Improve the hackish runtime_library_dirs support for gcc

2007-08-26 Thread Alexandre Vassalotti

Changes by Alexandre Vassalotti:


__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1031] py3k: compilation with VC2005

2007-08-26 Thread Neal Norwitz

Neal Norwitz added the comment:

Hmmm, the patch was out of date (I had already removed cPickle). 
However, I don't think that was the reason for everything failing.  I
manually applied the changes to the files and python version.  Things
should be pretty good now.  I didn't add the libraries.  I'm not sure
why they are needed now while they weren't necessary before.  

Committed revision 57529.

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2007-08-26 Thread Kurt B. Kaiser

Changes by Kurt B. Kaiser:


__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2007-08-26 Thread Kurt B. Kaiser

Kurt B. Kaiser added the comment:

Well, maybe someday Tk will send a multibyte unicode
character.  Update the patch.

__
Tracker <[EMAIL PROTECTED]>

__Index: Modules/_tkinter.c
===
--- Modules/_tkinter.c  (revision 57515)
+++ Modules/_tkinter.c  (working copy)
@@ -1897,7 +1897,7 @@
 PythonCmd(ClientData clientData, Tcl_Interp *interp, int argc, char *argv[])
 {
PythonCmd_ClientData *data = (PythonCmd_ClientData *)clientData;
-   PyObject *self, *func, *arg, *res;
+   PyObject *self, *func, *arg, *res, *s;
int i, rv;
Tcl_Obj *tres;
 
@@ -1914,7 +1914,13 @@
return PythonCmd_Error(interp);
 
for (i = 0; i < (argc - 1); i++) {
-   PyObject *s = PyUnicode_FromString(argv[i + 1]);
+   if (11 == (i + 1)) {  /* the %A arg is the unicode char */
+   char *a = argv[i + 1];
+   s = PyUnicode_FromUnicode((Py_UNICODE *) a, strlen(a));
+   }
+   else {
+   s = PyUnicode_FromString(argv[i + 1]);
+   }
if (!s || PyTuple_SetItem(arg, i, s)) {
Py_DECREF(arg);
return PythonCmd_Error(interp);
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1031] py3k: compilation with VC2005

2007-08-26 Thread Neal Norwitz

Neal Norwitz added the comment:

I thought it might be line endings so I tried changing them, but that
didn't help.  I couldn't apply the new version of the patch either.  I'm
not sure if the problem is on your side or mine. :-(

I missed some files from the original checkin.  The new one hopefully
has all the files and is just missing the libraries.  Can you svn update
and look at the new differences?  Thanks.

Committed revision 57530.

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1029] py3k: io.StringIO.getvalue() returns \r\n

2007-08-26 Thread Alexandre Vassalotti

Alexandre Vassalotti added the comment:

As far as I know, StringIO should not do any string transformations.

>From PEP-3116 "New I/O", last paragraph of the section "Text I/O":
> Another implementation, StringIO, creates a file-like TextIO
> implementation without an underlying Buffered I/O object. [...]  It
> does not support encodings or newline translations; you always read
> back exactly the characters you wrote.

--
nosy: +alexandre.vassalotti

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1029] py3k: io.StringIO.getvalue() returns \r\n

2007-08-26 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc added the comment:

> As far as I know, StringIO should not do any string transformations.

(Not sure if you agree with the patch or not)
That's why the current behaviour is not correct: When I write('\n'),
getvalue() currently returns '\r\n'.

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2007-08-26 Thread Neal Norwitz

Neal Norwitz added the comment:

I can confirm the problem and that your patch fixes the problem.  Go
ahead and check it in.  Thanks!

--
assignee: nnorwitz -> kbk
nosy: +nnorwitz
resolution:  -> accepted

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1031] py3k: compilation with VC2005

2007-08-26 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc added the comment:

Yes, everything compiles now.
I discovered that the additional libraries not necessary if I update my
VC 2005 Express installation as in this post:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=133236&SiteID=1

> The problem is that the default installation of VS 8 express 
> doesn't support the Platform SDK, so, after installing the 
> platform SDK, you need to make a few modifications...
> 
> 1. Update the corewin_express.vsprops file (NOT the 
> corewin.vsprops file).
(In the c:/Program Files/Microsoft Visual Studio 8/VC/VCProjectDefaults/
 directory)
> You need to change this...
> 
> AdditionalDependencies="kernel32.lib"
> 
> to this
> 
> AdditionalDependencies="kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib"
>

And everything compiles fine without further modification. Thanks!

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1031] py3k: compilation with VC2005

2007-08-26 Thread Neal Norwitz

Neal Norwitz added the comment:

Awesome!  I'm going to close this patch.  Let me know if you have any
more problems.  Feel free to send messages to python-3000.  I would like
py3k to build on Windows for the alpha which will be coming out in about
a week hopefully.

--
assignee:  -> nnorwitz
resolution:  -> fixed
status: open -> closed

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1033] Support for newline and encoding in tempfile module

2007-08-26 Thread Adam Hupp

New submission from Adam Hupp:

It would be useful for tempfile.TemporaryFile and friends to pass
newline and encoding arguments to the underlying io.open call.  For
example, several tests in test_csv use TemporaryFile and need to handle
unicode file output or preserve exact newlines.  This is simpler with
direct support in TemporaryFile.

The attached patch makes the following changes:

 1) tempfile.TemporaryFile, NamedTemporaryFile, and SpooledTemporaryFile
 now pass newline and encoding to the underlying io.open call.
 2) test_tempfile is updated
 3) test_csv is updated to use the new arguments.

--
components: Library (Lib)
files: tempfile-newline-encoding.patch
messages: 55328
nosy: hupp
severity: normal
status: open
title: Support for newline and encoding in tempfile module
type: rfe
versions: Python 3.0

__
Tracker <[EMAIL PROTECTED]>

__

tempfile-newline-encoding.patch
Description: Binary data
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1033] Support for newline and encoding in tempfile module

2007-08-26 Thread Adam Hupp

Adam Hupp added the comment:

One change I forgot to mention that may need discussion.  I've changed
the 'bufsize' arguments in tempfile to 'buffering', since that is
consistent with the same change in os.fdopen.

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2007-08-26 Thread Kurt B. Kaiser

Kurt B. Kaiser added the comment:

OK, thanks for the review! I suppose Tk is sending a bad string.
r57540

--
status: open -> closed

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1034] [patch] Add 2to3 support for displaying warnings as Python comments

2007-08-26 Thread Adrian Holovaty

New submission from Adrian Holovaty:

Per a Python-3000 mailing list discussion here --
http://mail.python.org/pipermail/python-3000/2007-August/009835.html --
I have implemented an addition to the 2to3 utility that enables warnings
to be output as comments in Python source code instead of being logged
to stdout.

See the attached patch and a description of the changes here:
http://mail.python.org/pipermail/python-3000/2007-August/009881.html

--
components: Demos and Tools
files: 2to3_insert_comment.diff
messages: 55331
nosy: adrianholovaty
severity: normal
status: open
title: [patch] Add 2to3 support for displaying warnings as Python comments

__
Tracker <[EMAIL PROTECTED]>

__

2to3_insert_comment.diff
Description: Binary data
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1034] [patch] Add 2to3 support for displaying warnings as Python comments

2007-08-26 Thread Adrian Holovaty

Adrian Holovaty added the comment:

I'm also attaching 2to3_comment_warnings.diff, which is an example of
how we could integrate the insert_comment() method from the first patch
to replace the current functionality of fixes.basefix.BaseFix.warning().

__
Tracker <[EMAIL PROTECTED]>

__

2to3_comment_warnings.diff
Description: Binary data
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com