[issue1015] [PATCH] Updated patch for rich dict view (dict().keys()) comparisons

2007-08-24 Thread Guido van Rossum
Guido van Rossum added the comment: Checked in (after substantial changes, pairing with Keir). -- assignee: - gvanrossum nosy: +gvanrossum __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1015

[issue1015] [PATCH] Updated patch for rich dict view (dict().keys()) comparisons

2007-08-24 Thread Guido van Rossum
Changes by Guido van Rossum: -- resolution: - accepted status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1015 __ ___ Python-bugs-list mailing list

[issue1017] [PATCH] Add set operations (and, or, xor, subtract) to dict views

2007-08-24 Thread Guido van Rossum
Changes by Guido van Rossum: __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1017 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options

[issue1017] [PATCH] Add set operations (and, or, xor, subtract) to dict views

2007-08-24 Thread Guido van Rossum
Changes by Guido van Rossum: -- assignee: - gvanrossum resolution: - accepted status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1017 __ ___ Python

[issue1018] server-side ssl support

2007-08-24 Thread Guido van Rossum
New submission from Guido van Rossum: Bill Janssen's patch for server-side ssl support (and certificate support). This still needs style cleanup, but is leak-free and passes tests. -- assignee: gvanrossum components: Extension Modules files: ssl-svr.diff keywords: patch messages: 55281

[issue1018] server-side ssl support

2007-08-24 Thread Guido van Rossum
Guido van Rossum added the comment: And another file that has a utility to be placed in Tools/... __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1018 __ tools-diff Description: Binary data

[issue1018] server-side ssl support

2007-08-24 Thread Guido van Rossum
Changes by Guido van Rossum: __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1018 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options

[issue1018] server-side ssl support

2007-08-24 Thread Guido van Rossum
Changes by Guido van Rossum: __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1018 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options

[issue1018] server-side ssl support

2007-08-25 Thread Guido van Rossum
Guido van Rossum added the comment: Committed revision 57464. -- resolution: - accepted status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1018

[issue1771364] Misc improvements for the io module

2007-08-27 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks!! Committed revision 57564. SocketIO was recently moved to socket.py because that's the only place that uses it. So I've removed it from io.__all__. The only other change I applied was related to the isatty check -- you accidentally changed things

[issue1024] documentation for new SSL module

2007-08-27 Thread Guido van Rossum
Guido van Rossum added the comment: Committed revision 57570. I didn't review it though. -- nosy: +gvanrossum resolution: - accepted status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1024

[issue1739906] Add reduce to functools in 2.6

2007-08-27 Thread Guido van Rossum
Guido van Rossum added the comment: Committed revision 57574. -- nosy: +gvanrossum resolution: - accepted status: open - closed _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1739906

[issue1033] Support for newline and encoding in tempfile module

2007-08-27 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks! Committed revision 57594. General note: please run Tools/scripts/reindent.py over your files after editing so I won't have to. -- nosy: +gvanrossum resolution: - accepted status: open - closed __ Tracker

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

2007-08-29 Thread Guido van Rossum
Guido van Rossum added the comment: I'ev fixed this slightly differently, by simply changing the *default* of the newline argument to StringIO to be \n. This is a good default; but I see no reason to prevent users from messing with it if they have a need. -- nosy: +gvanrossum

[issue1047] py3k: corrections for test_subprocess on windows

2007-08-29 Thread Guido van Rossum
Guido van Rossum added the comment: Committed revision 57669. I have no way to test this so you'll have to watch the buildbot. However, I didn't include the patch to _fileio.c that prevents closing fds 0, 1, 2; I think that's the wrong thing to do and if it causes problems it needs

[issue1048] py3k: correction for test_float on Windows

2007-08-29 Thread Guido van Rossum
Guido van Rossum added the comment: Committed revision 57670. You will have to watch the buildbots to see if this worked. -- nosy: +gvanrossum resolution: - accepted status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1048

[issue1050] py3k: correction for test_marshal on Windows

2007-08-29 Thread Guido van Rossum
Guido van Rossum added the comment: Committed revision 57672. You'll have to watch the buildbots. -- nosy: +gvanrossum resolution: - accepted status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1050

[issue1037] Ill-coded identifier crashes python when coding spec is utf-8

2007-08-29 Thread Guido van Rossum
Guido van Rossum added the comment: r57674. I'm not sure this is the right fix though... -- nosy: +gvanrossum resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1037

[issue1016] [PATCH] Updated fix for string to unicode fixes in time and datetime

2007-08-29 Thread Guido van Rossum
Guido van Rossum added the comment: The issue in datetimemodule.c was already fixed. The fix to timemodule.c is wrong -- when there are non-ASCII characters in the unicode string, the length of the UTF-8 conversion is not equal to that of the original Unicode string. -- nosy

[issue1009] Implementation of PEP 3101, Advanced String Formatting

2007-08-29 Thread Guido van Rossum
Changes by Guido van Rossum: -- resolution: - accepted status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1009 __ ___ Python-bugs-list mailing list

[issue1019] Cleanup pass on _curses and _curses_panel

2007-08-29 Thread Guido van Rossum
Guido van Rossum added the comment: I tried to run the various demos in Demo/curses/ with the new version. They all work except for xmas.py. Before your patch, they all ran. So I cannot apply this yet. (No time to look into it further, alas.) -- nosy: +gvanrossum

[issue1022] use bytes for code objects

2007-08-29 Thread Guido van Rossum
Guido van Rossum added the comment: I'll defer thinking about this until post-a1. -- nosy: +gvanrossum __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1022 __ ___ Python

[issue1023] [PATCH] Unicode fixes in floatobject and moduleobject

2007-08-29 Thread Guido van Rossum
Guido van Rossum added the comment: Is this still relevant? The patch fails applying with quit a bit of fireworks: patching file moduleobject.c Hunk #1 FAILED at 66. Hunk #2 succeeded at 86 (offset -5 lines). Hunk #3 FAILED at 115. Hunk #4 FAILED at 128. 3 out of 4 hunks FAILED -- saving

[issue1038] [py3k] pdb does not work in python 3000

2007-08-29 Thread Guido van Rossum
Guido van Rossum added the comment: Why are you using _runscript(), which is an internal routine? I've had a fair amount of success with other invocations, like pdb.run(). -- nosy: +gvanrossum __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1038

[issue1039] Asssertion in Windows debug build

2007-08-29 Thread Guido van Rossum
Guido van Rossum added the comment: If it works for you, can you submit it? -- assignee: - theller nosy: +gvanrossum __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1039

[issue1041] io.py problems on Windows

2007-08-29 Thread Guido van Rossum
Guido van Rossum added the comment: I'm guessing this is fixed now that that patch is submitted. -- nosy: +gvanrossum resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1041

[issue1055] argument parsing in datetime_strptime

2007-08-29 Thread Guido van Rossum
Guido van Rossum added the comment: Should be fixed by r57665. I'm guessing we went a little too fast with this change. -- nosy: +gvanrossum resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1055

[issue1023] [PATCH] Unicode fixes in floatobject and moduleobject

2007-08-29 Thread Guido van Rossum
Changes by Guido van Rossum: -- resolution: - duplicate status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1023 __ ___ Python-bugs-list mailing list

[issue1678077] improve telnetlib.Telnet so option negotiation becomes easie

2007-08-29 Thread Guido van Rossum
Changes by Guido van Rossum: -- versions: +Python 3.0 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1678077 _ ___ Python-bugs-list mailing list Unsubscribe

[issue1683368] object.__init__ shouldn't allow args/kwds

2007-08-29 Thread Guido van Rossum
Changes by Guido van Rossum: -- versions: +Python 3.0 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1683368 _ ___ Python-bugs-list mailing list Unsubscribe

[issue1677872] Efficient reverse line iterator

2007-08-29 Thread Guido van Rossum
Changes by Guido van Rossum: -- title: Efficient reverse line iterator - Efficient reverse line iterator versions: +Python 3.0 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1677872

[issue1720390] Remove backslash escapes from tokenize.c.

2007-08-29 Thread Guido van Rossum
Changes by Guido van Rossum: -- versions: +Python 3.0 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1720390 _ ___ Python-bugs-list mailing list Unsubscribe

[issue1752184] PyHeapTypeObject fix

2007-08-29 Thread Guido van Rossum
Changes by Guido van Rossum: -- versions: +Python 3.0 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1752184 _ ___ Python-bugs-list mailing list Unsubscribe

[issue1762972] 'exec' does not accept what 'open' returns

2007-08-29 Thread Guido van Rossum
Changes by Guido van Rossum: -- versions: +Python 3.0 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1762972 _ ___ Python-bugs-list mailing list Unsubscribe

[issue1774369] Unify __builtins__ - __builtin__

2007-08-29 Thread Guido van Rossum
Changes by Guido van Rossum: -- versions: +Python 3.0 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1774369 _ ___ Python-bugs-list mailing list Unsubscribe

[issue1771260] Errors in site.py not reported properly

2007-08-29 Thread Guido van Rossum
Changes by Guido van Rossum: -- versions: +Python 3.0 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1771260 _ ___ Python-bugs-list mailing list Unsubscribe

[issue1753395] struni: assertion in Windows debug build

2007-08-29 Thread Guido van Rossum
Changes by Guido van Rossum: -- versions: +Python 3.0 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1753395 _ ___ Python-bugs-list mailing list Unsubscribe

[issue1766304] improve xrange.__contains__

2007-08-29 Thread Guido van Rossum
Changes by Guido van Rossum: -- versions: +Python 3.0 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1766304 _ ___ Python-bugs-list mailing list Unsubscribe

[issue504152] rfc822 long header continuation broken

2007-08-29 Thread Guido van Rossum
Changes by Guido van Rossum: -- versions: +Python 2.4, Python 2.5, Python 2.6, Python 3.0 Tracker [EMAIL PROTECTED] http://bugs.python.org/issue504152 ___ Python-bugs

[issue1061] ABC caches should use weak refs

2007-08-30 Thread Guido van Rossum
New submission from Guido van Rossum: The various caches in abc.py should be turned into weak sets so that the caches don't keep the subclass objects alive forever. -- messages: 55480 nosy: gvanrossum severity: normal status: open title: ABC caches should use weak refs versions: Python

[issue1061] ABC caches should use weak refs

2007-08-30 Thread Guido van Rossum
Guido van Rossum added the comment: On 8/30/07, Thomas Wouters [EMAIL PROTECTED] wrote: Thomas Wouters added the comment: Here's a working version of that idea, with a WeakSet implementation I had lying around (but never really used.) It seems to work, and fixes the refcount issues

[issue1467929] %-formatting and dicts

2007-08-30 Thread Guido van Rossum
Changes by Guido van Rossum: -- priority: immediate - normal _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1467929 _ ___ Python-bugs-list mailing list

[issue1061] ABC caches should use weak refs

2007-08-30 Thread Guido van Rossum
Guido van Rossum added the comment: Georg, would you have time to submit an improved patch? __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1061 __ ___ Python-bugs-list mailing

[issue1066] Implement PEPs 3109, 3134

2007-08-30 Thread Guido van Rossum
Guido van Rossum added the comment: Please check it in yourself. -- assignee: gvanrossum - collinwinter resolution: - accepted __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1066

[issue1067] test_smtplib failures (caused by asyncore)

2007-08-30 Thread Guido van Rossum
Changes by Guido van Rossum: -- versions: +Python 3.0 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1067 __ ___ Python-bugs-list mailing list Unsubscribe: http

[issue1067] test_smtplib failures (caused by asyncore)

2007-08-30 Thread Guido van Rossum
Guido van Rossum added the comment: Great, please check it in. This is close to what I had sitting somewhere, but I hadn't finished it. -- assignee: gvanrossum - twouters resolution: - accepted __ Tracker [EMAIL PROTECTED] http://bugs.python.org

[issue504152] rfc822 long header continuation broken

2007-08-30 Thread Guido van Rossum
Guido van Rossum added the comment: Barry, what do you think of this patch? How does the email package handle this case? Tracker [EMAIL PROTECTED] http://bugs.python.org/issue504152

[issue1067] test_smtplib failures (caused by asyncore)

2007-08-31 Thread Guido van Rossum
Guido van Rossum added the comment: (Reopening given recent discussion.) -- resolution: fixed - status: closed - open __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1067

[issue1093] product function patch

2007-09-02 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks, but no thanks; I was quickly dissuaded from the need for this. -- nosy: +gvanrossum resolution: - rejected status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1093

[issue1031213] Use correct encoding for printing SyntaxErrors

2007-09-04 Thread Guido van Rossum
Guido van Rossum added the comment: We should make sure this is *not* merged into Py3k; there, things remain unicode until they're printed, at which point the only encoding that matters is the output file's encoding. _ Tracker [EMAIL PROTECTED] http

[issue1101] Is there just no PRINT statement any more? Or it just doesn't work.

2007-09-06 Thread Guido van Rossum
Guido van Rossum added the comment: OK, I've added a big section about print to the front of the common stumbling blocks section, with all the info about print together, and a few examples to clarify the most common changes. You can see the changes in subversion; they'll be live

[issue1125] bytes.split shold have same interface as str.split, or different name

2007-09-07 Thread Guido van Rossum
Guido van Rossum added the comment: I tend to agree with the author; I've run into this myself. For whitespace, I propose to use only the following: tab LF FF VT CR space. These are the whitespace ASCII characters according to isspace() in libc. (Unicode also treats hex 1C, 1D, 1E and 1F

[issue1125] bytes.split shold have same interface as str.split, or different name

2007-09-07 Thread Guido van Rossum
Changes by Guido van Rossum: __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1125 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options

[issue1123] split(None, maxsplit) does not strip whitespace correctly

2007-09-07 Thread Guido van Rossum
Changes by Guido van Rossum: __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1123 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options

[issue1123] split(None, maxsplit) does not strip whitespace correctly

2007-09-07 Thread Guido van Rossum
Changes by Guido van Rossum: __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1123 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options

[issue1124] Webchecker not parsing css @import url

2007-09-07 Thread Guido van Rossum
Guido van Rossum added the comment: This is essentially unsupported and unmaintaned example code. Feel free to submit a patch though! -- nosy: +gvanrossum __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1124

[issue1125] bytes.split shold have same interface as str.split, or different name

2007-09-07 Thread Guido van Rossum
Guido van Rossum added the comment: Here's a patch that fixes bytes.split and .rsplit. I'll hold off for a while in case there's strong disagreement. I might add a patch for bytes.strip later (it's simpler). -- keywords: +patch __ Tracker [EMAIL

[issue1125] bytes.split shold have same interface as str.split, or different name

2007-09-07 Thread Guido van Rossum
Changes by Guido van Rossum: -- components: +Interpreter Core -Library (Lib) type: rfe - behavior __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1125 __ ___ Python-bugs

[issue1125] bytes.split shold have same interface as str.split, or different name

2007-09-08 Thread Guido van Rossum
Guido van Rossum added the comment: Updated patch that also modifies bytes.*strip(). __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1125 __Index: Objects/bytesobject.c

[issue1125] bytes.split shold have same interface as str.split, or different name

2007-09-08 Thread Guido van Rossum
Guido van Rossum added the comment: New version with corrected docstrings and buffer support for *split() as well. Added unittests. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1125 __Index: Objects/bytesobject.c

[issue1125] bytes.split shold have same interface as str.split, or different name

2007-09-08 Thread Guido van Rossum
Changes by Guido van Rossum: __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1125 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options

[issue1125] bytes.split shold have same interface as str.split, or different name

2007-09-08 Thread Guido van Rossum
Changes by Guido van Rossum: __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1125 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options

[issue1094] TypeError in poplib.py

2007-09-09 Thread Guido van Rossum
Changes by Guido van Rossum: __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1094 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options

[issue1094] TypeError in poplib.py

2007-09-09 Thread Guido van Rossum
Guido van Rossum added the comment: Oops, I accidentally deleted the patch. Here is is again. Thanks for the patch! I've applied it. Committed revision 58072. -- assignee: - gvanrossum nosy: +gvanrossum resolution: - fixed status: open - closed

[issue1125] bytes.split shold have same interface as str.split, or different name

2007-09-10 Thread Guido van Rossum
Guido van Rossum added the comment: Committed revision 58093. -- resolution: - accepted status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1125

[issue1139] PyFile_Encoding should be PyFile_SetEncoding

2007-09-10 Thread Guido van Rossum
Changes by Guido van Rossum: -- assignee: - georg.brandl nosy: +georg.brandl __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1139 __ ___ Python-bugs-list mailing list

[issue1140] re.sub returns str when processing empty unicode string

2007-09-10 Thread Guido van Rossum
Guido van Rossum added the comment: I agree. I wonder if it should return Unicode as soon as *any* of the arguments are unicode??? -- nosy: +gvanrossum __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1140

[issue1140] re.sub returns str when processing empty unicode string

2007-09-10 Thread Guido van Rossum
Guido van Rossum added the comment: Actually, it already implements the best possible rules, *except* for the special case of an empty 3rd argument. (When there are no substitutions, it normally returns the input unchanged; but somehow an empty input is handled with a shortcut even before

[issue1140] re.sub returns str when processing empty unicode string

2007-09-10 Thread Guido van Rossum
Guido van Rossum added the comment: Here's a patch. -- assignee: - gvanrossum __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1140 __Index: Lib/test/test_re.py

[issue1140] re.sub returns str when processing empty unicode string

2007-09-10 Thread Guido van Rossum
Guido van Rossum added the comment: Here's a better patch that also fixes a few related issues. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1140 __Index: Lib/test/test_re.py

[issue1140] re.sub returns str when processing empty unicode string

2007-09-10 Thread Guido van Rossum
Guido van Rossum added the comment: Fredrik, thoughts? -- assignee: gvanrossum - effbot nosy: +effbot __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1140 __ ___ Python

[issue1142] code sample showing errors reading large files with py 2.5/3.0

2007-09-10 Thread Guido van Rossum
Guido van Rossum added the comment: PythonMeister, what do you mean, confirmed? Your read loop ends printing ('total lines read ', 85014960) which is the expected output. (It's one less than the number of lines written due to a bug in the program -- it prints the 0-based ordinal of the last

[issue1140] re.sub returns str when processing empty unicode string

2007-09-10 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks, Fredrik. Fixed in 2.6. Committed revision 58098. Someone else could backport to 2.5. Shouldn't be merged into 3.0. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1140

[issue1026] Backport ABC to 2.6

2007-09-10 Thread Guido van Rossum
Guido van Rossum added the comment: Committed revision 58099. (I had to backport test_typechecks.py myself, and fix one issue in abc.py.) Are you going to backport _abcoll.py and its tests? -- assignee: - gvanrossum nosy: +gvanrossum resolution: - accepted status: open - closed

[issue1150] Rename PyBUF_WRITEABLE to PyBUF_WRITABLE

2007-09-11 Thread Guido van Rossum
New submission from Guido van Rossum: Because writeable is not an English word; writable is. Other names should be fixed as well. -- messages: 55830 nosy: gvanrossum severity: normal status: open title: Rename PyBUF_WRITEABLE to PyBUF_WRITABLE versions: Python 3.0

[issue1142] code sample showing errors reading large files with py 2.5/3.0

2007-09-12 Thread Guido van Rossum
Guido van Rossum added the comment: Cool. This helps track down the bug a bit more; it's either in (our routine) getline_via_fgets or it's in Microsoft's text mode line end translation (which universal newlines bypasses). I'm assigning this to Tim Peters, who probably still has a Windows box

[issue1739468] Add a -z interpreter flag to execute a zip file

2007-09-12 Thread Guido van Rossum
Guido van Rossum added the comment: PJE's patch looks good to me too. Stylistic nits: - The proper name of the now-public null importer type ought to be PyNullImporter_Type, to rhyme with e.g. PyString_Type - There's a multi-line if that has the closing parenthesis in an odd place

[issue1145] Allow str.join to join non-string types (as per PEP 3100)

2007-09-12 Thread Guido van Rossum
Guido van Rossum added the comment: I like this, but the patch has problems: you don't error-check the return value from PyObject_Unicode() or PyUnicode_FromObject() (and why do you need the latter call anyway?) Also in the docstring I would reference str() instead of __str__(). There are also

[issue1148] TypeError on join - httplib mixing str and bytes

2007-09-12 Thread Guido van Rossum
Guido van Rossum added the comment: Confirmed. I'll fix it ASAP. -- assignee: - gvanrossum nosy: +gvanrossum __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1148

[issue1148] TypeError on join - httplib mixing str and bytes

2007-09-12 Thread Guido van Rossum
Guido van Rossum added the comment: Committed revision 58126. -- resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1148

[issue1145] Allow str.join to join non-string types (as per PEP 3100)

2007-09-12 Thread Guido van Rossum
Guido van Rossum added the comment: There's one additional issue. If any of the items is a bytes, the call should fail. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1145

[issue1145] Allow str.join to join non-string types (as per PEP 3100)

2007-09-14 Thread Guido van Rossum
Guido van Rossum added the comment: Should it really, even if the bytes is ascii-encodable? Yes, really. We don't want to open up the same can of worms that made working with Unicode such a pain in 2.x. __ Tracker [EMAIL PROTECTED] http://bugs.python.org

[issue1163] Patch to make py3k/Lib/test/test_thread.py use unittest

2007-09-14 Thread Guido van Rossum
Guido van Rossum added the comment: This is a good start, but I think that instead of using global variables and functions, you should try to turn all those into instance variables (of the ThreadTest class). That way the tests are truly independent. Initialization should be taken care

[issue1160] Medium size regexp crashes python

2007-09-14 Thread Guido van Rossum
Guido van Rossum added the comment: /F? -- assignee: - effbot nosy: +effbot, gvanrossum __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1160 __ ___ Python-bugs-list

[issue1156] Suggested change to _exit function description in os module documentation

2007-09-14 Thread Guido van Rossum
Guido van Rossum added the comment: Should child be replaced with parent? No. I'm pretty much I wrote that. The use case I was thinking of is the error handling in the child process after the exec fails. if you were to use sys.exit() there, which raises SystemExit, you're likely to hit

[issue1161] Garbled chars in offending line of SyntaxError traceback

2007-09-14 Thread Guido van Rossum
Guido van Rossum added the comment: I can't quite reproduce this, but I do see there's a problem with the syntax error reporting: Python 3.0a1 (py3k, Sep 12 2007, 12:23:06) [GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu5)] on linux2 Type help, copyright, credits or license for more information. asd asd

[issue1164] tp_print slots don't release the GIL

2007-09-15 Thread Guido van Rossum
Guido van Rossum added the comment: Plese do submit a patch. FWIW I think it's solved in Py3k, the tp_print slot is dead (as is any use of the C stdio library). -- nosy: +gvanrossum __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1164

[issue1164] tp_print slots don't release the GIL

2007-09-15 Thread Guido van Rossum
Guido van Rossum added the comment: Looks Good, except I think it's a bad idea to release/acquire the GIL for each character when writing the repr() of a string. Given that the string is immutable and its refcount kept alive by the caller I don't see a reason why you can't just reference

[issue1164] tp_print slots don't release the GIL

2007-09-16 Thread Guido van Rossum
Guido van Rossum added the comment: looks good to me :) -- assignee: - brett.cannon __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1164 __ ___ Python-bugs-list mailing

[issue1150] Rename PyBUF_WRITEABLE to PyBUF_WRITABLE

2007-09-17 Thread Guido van Rossum
Guido van Rossum added the comment: Looks good. Check it in, with one small addition: add #define PyBUF_WRITEABLE PyBUF_WRITABLE for those NumPy folks who can't help writing the alternate spelling ('writeable' *is* in some dictionaries, though it is consistently flagged as invalid by spell

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

2007-09-17 Thread Guido van Rossum
Guido van Rossum added the comment: I don't see what the problem is. You requested strict_parsing=True, and this is what strict parsing does. -- resolution: - wont fix status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1014

[issue1179] [CVE-2007-4965] Integer overflow in imageop module

2007-09-19 Thread Guido van Rossum
Guido van Rossum added the comment: Cartman, please refrain from using vulgarities in your sample code. It's hard to take a bug report seriously with such variable names. -- nosy: +gvanrossum __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1179

[issue1175] .readline() has bug WRT nonblocking files

2007-09-19 Thread Guido van Rossum
Guido van Rossum added the comment: readline() goes through C stdio which makes it impossible to get non-blocking I/O right. You should be using raw os.read() calls (until python 3000 which will remove Python's reliance on C stdio). -- nosy: +gvanrossum resolution: - wont fix status

[issue10220] Make generator state easier to introspect

2010-11-22 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: Yes please. On Mon, Nov 22, 2010 at 7:44 AM, Nick Coghlan rep...@bugs.python.org wrote: Nick Coghlan ncogh...@gmail.com added the comment: Temporarily reopening to remind me to switch from using integer constants to strings (which

[issue10544] yield expression inside generator expression does nothing

2010-11-28 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: I think it is definitely wrong the way it works in 3.x. (Especially since it works as expected in 2.x.) I agree with Inyeol's preference of fixes: (1) make it work properly for listcomps as well as genexps, (2) if that's not possible

[issue10544] yield expression inside generator expression does nothing

2010-11-28 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: PS. Wasn't there a similar issue with something inside a genexp that raises StopIteration? Did we ever solve that? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10544

[issue10544] yield expression inside generator expression does nothing

2010-11-28 Thread Guido van Rossum
Changes by Guido van Rossum gu...@python.org: -- assignee: gvanrossum - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10544 ___ ___ Python-bugs

[issue10544] yield expression inside generator expression does nothing

2010-11-28 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: Yes it is, but I was never asked about it back then. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10544

[issue5945] PyMapping_Check returns 1 for lists

2011-01-03 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: Why did the list implementation get changed in Py3.x? Because we decided to get rid of the sq_slice and sq_ass_slice slots in PySequenceMethods, and that in turn was because we got rid of the slice-related opcodes and the separate

[issue5945] PyMapping_Check returns 1 for lists

2011-01-04 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: In the meantime, would it be reasonable to add the moral equivalent of `hasattr(type(op), 'items')` to PyMapping_Check()? That all depends on what it is used for. Which is hard to say without someone following more of the links

  1   2   3   4   5   6   7   8   9   10   >