[issue1247] PEP 3137 patch (repr, names, parser)

2007-10-09 Thread Guido van Rossum
Guido van Rossum added the comment: GHave you two agreed yet as to which patch(es) I should look at? -- nosy: +gvanrossum __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/

[issue1247] PEP 3137 patch (repr, names, parser)

2007-10-09 Thread Guido van Rossum
Guido van Rossum added the comment: I don't think I can check these in yet; right now they are inconsistent. But I will check them in when they are ready. -- assignee: -> gvanrossum __ Tracker <[EMAIL PROTECTED]> <http://bugs.pyt

[issue1251] ssl module doesn't support non-blocking handshakes

2007-10-09 Thread Guido van Rossum
Guido van Rossum added the comment: Assigning to Bill Janssen. -- assignee: -> janssen nosy: +gvanrossum, janssen __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.o

[issue1253] IDLE - Percolator overhaul

2007-10-09 Thread Guido van Rossum
Guido van Rossum added the comment: It's been too long since I wrote this code to be able to review, but I'm glad that it still gets some love and attention. Here's to hoping that your patch gets applied. -- nosy: +gvanrossum __

[issue1251] ssl module doesn't support non-blocking handshakes

2007-10-10 Thread Guido van Rossum
Changes by Guido van Rossum: -- nosy: -gvanrossum __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1251> __ ___ Python-bugs-list mailing list Unsubs

[issue1258] Removal of basestring type

2007-10-10 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks, evaluating! -- nosy: +gvanrossum __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1258> __ ___ Python-bugs-

[issue1258] Removal of basestring type

2007-10-10 Thread Guido van Rossum
Guido van Rossum added the comment: I see 10 failing tests: test_ctypes test_email test_httplib test_inspect test_os test_re test_subprocess test_sys test_xml_etree test_xml_etree_c -- assignee: -> gvanrossum __ Tracker <[EMAIL PRO

[issue1258] Removal of basestring type

2007-10-10 Thread Guido van Rossum
Guido van Rossum added the comment: On 10/10/07, Christian Heimes <[EMAIL PROTECTED]> wrote: > > Christian Heimes added the comment: > > test_ctypes: works for me Did you svn up, make clean and rebuild? > test_email: need some help from an email expoert Which test is fai

[issue1031213] Use correct encoding for printing SyntaxErrors

2007-10-10 Thread Guido van Rossum
Guido van Rossum added the comment: > PyErr_Print() is called to report exception raised by codec. > If PyUnicode_DecodeUTF8() or PyUnicode_AsEncodedString() return NULL, > PyErr_Print() is called. This comment is not very helpful; it describes what happens, but not why, or whether

[issue1258] Removal of basestring type

2007-10-10 Thread Guido van Rossum
Guido van Rossum added the comment: On 10/10/07, Christian Heimes <[EMAIL PROTECTED]> wrote: > > Christian Heimes added the comment: > > Guido van Rossum wrote: > > Did you svn up, make clean and rebuild? > > The ctypes package didn't change since my last

[issue1261] PEP 3137: make bytesobject.c methods use PEP 3118 buffer API

2007-10-11 Thread Guido van Rossum
Changes by Guido van Rossum: -- assignee: -> gvanrossum nosy: +gvanrossum __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1261> __ ___ Python-bugs-li

[issue1260] PEP 3137: Remove the buffer API from PyUnicode

2007-10-11 Thread Guido van Rossum
Changes by Guido van Rossum: -- assignee: -> gvanrossum nosy: +gvanrossum __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1260> __ ___ Python-bugs-li

[issue1263] PEP 3137 patch - str8/str comparison should return false

2007-10-11 Thread Guido van Rossum
Changes by Guido van Rossum: -- assignee: -> gvanrossum nosy: +gvanrossum __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1263> __ ___ Python-bugs-li

[issue1031213] Use correct encoding for printing SyntaxErrors

2007-10-11 Thread Guido van Rossum
Guido van Rossum added the comment: There are tons of situations where such an exception will be suppressed, ofr better or for worse. I don't think this one deserves such a radical approach. On 10/11/07, atsuo ishimoto <[EMAIL PROTECTED]> wrote: > > atsuo ishimoto added the co

[issue1265] pdb bug with "with" statement

2007-10-11 Thread Guido van Rossum
Changes by Guido van Rossum: -- nosy: +gvanrossum __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1265> __ ___ Python-bugs-list mailing list Unsubs

[issue1261] PEP 3137: make bytesobject.c methods

2007-10-11 Thread Guido van Rossum
Guido van Rossum added the comment: > Patch updated. It now implements the is*() methods for PyBytes. It > moves common code into a shared bytes_ctype.c and .h file so that > stringobject.c and bytesobject.c can share as much as possible. Did you move this into the stringlib sub

[issue1272] Decode __file__ and co_filename to unicode using fs default

2007-10-13 Thread Guido van Rossum
Changes by Guido van Rossum: -- assignee: -> gvanrossum nosy: +gvanrossum __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1272> __ ___ Python-bugs-li

[issue1272] Decode __file__ and co_filename to unicode using fs default

2007-10-13 Thread Guido van Rossum
Guido van Rossum added the comment: Couple of nits: - You added a removal of hotshot from setup.py to the patch; but that's been checked in in the mean time. - Why add an 'errors' argument to the function when it's a fatal error to use it? - Using 0 to autodetect

[issue1272] Decode __file__ and co_filename to unicode using fs default

2007-10-13 Thread Guido van Rossum
Guido van Rossum added the comment: On 10/13/07, Christian Heimes <[EMAIL PROTECTED]> wrote: > Guido van Rossum wrote: > > - Why add an 'errors' argument to the function when it's a fatal error > > to use it? > > I wanted the signature o

[issue1272] Decode __file__ and co_filename to unicode using fs default

2007-10-13 Thread Guido van Rossum
Guido van Rossum added the comment: > > Oh. Hm. I still wish that PyCode_New() could just insist that the > > filename argument is a PyUnicode instance. Why can't it? Perhaps the > > caller should be fixed instead? > I'll try. I figured out the problem -- i

[issue1272] Decode __file__ and co_filename to unicode using fs default

2007-10-13 Thread Guido van Rossum
Guido van Rossum added the comment: Well, you could ensure that by checking that you haven't reached the end of the mangling buffer. That will have the added advantage that when the input is something silly like 32 spaces followed by "utf-8" it will be still be mangled correc

[issue1264] __file__ and co_filename as unicode

2007-10-13 Thread Guido van Rossum
Changes by Guido van Rossum: -- resolution: -> out of date status: open -> closed superseder: -> Decode __file__ and co_filename to unicode using fs default __ Tracker <[EMAIL PROTECTED]> <http://bugs.py

[issue1267] Py3K cannot run as ``python -S``

2007-10-13 Thread Guido van Rossum
Changes by Guido van Rossum: -- nosy: +gvanrossum __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1267> __ ___ Python-bugs-list mailing list Unsubs

[issue1268] array unittest problems with UCS4 build

2007-10-13 Thread Guido van Rossum
Guido van Rossum added the comment: Can this be closed now that Travis reverted his patch? -- nosy: +gvanrossum __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/

[issue1260] PEP 3137: Remove the buffer API from PyUnicode

2007-10-13 Thread Guido van Rossum
Guido van Rossum added the comment: You can check this in. You do have checkin privs right? -- resolution: -> accepted __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.o

[issue1260] PEP 3137: Remove the buffer API from PyUnicode

2007-10-13 Thread Guido van Rossum
Changes by Guido van Rossum: -- status: open -> closed __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1260> __ ___ Python-bugs-list mailing list Uns

[issue1272] Decode __file__ and co_filename to unicode using fs default

2007-10-13 Thread Guido van Rossum
Guido van Rossum added the comment: Crys, is this OK with you? On 10/13/07, Alexandre Vassalotti <[EMAIL PROTECTED]> wrote: > > Alexandre Vassalotti added the comment: > > Guido wrote: > > I figured out the problem -- it came from marshalled old code objects. > &

[issue1272] Decode __file__ and co_filename to unicode using fs default

2007-10-14 Thread Guido van Rossum
Guido van Rossum added the comment: OK, in the spirit of delegation I'll leave this for you and Alexandre to work out more. If you're stuck, post to the list so others can jump in. __ Tracker <[EMAIL PROTECTED]> <http://bugs.p

[issue1268] array unittest problems with UCS4 build

2007-10-14 Thread Guido van Rossum
Changes by Guido van Rossum: -- resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1268> __ ___ Python

[issue1272] Decode __file__ and co_filename to unicode using fs default

2007-10-14 Thread Guido van Rossum
Guido van Rossum added the comment: Only a few modules are involved in the bootstrap. The filename is mostly used to display in the traceback. There is already a fallback in the traceback-printing code that tries to look through sys.path for a file matching the module if it can't ope

[issue1268] array unittest problems with UCS4 build

2007-10-14 Thread Guido van Rossum
Guido van Rossum added the comment: > Oh stop, the array module doesn't build for me (Ubuntu Linux, i386, > UCS-4 build, rev58458): > > Modules/arraymodule.c: In function 'array_buffer_getbuf': > Modules/arraymodule.c:1815: error: 'Py_buffer' has no m

[issue1272] Decode __file__ and co_filename to unicode using fs default

2007-10-14 Thread Guido van Rossum
Guido van Rossum added the comment: This looks promising. I'm working on the freeze issue. Once I get that working I'll check this in. Thanks Alexandre and Christian for all your hard work!!! __ Tracker <[EMAIL PROTECTED]> <http://bugs.p

[issue1272] Decode __file__ and co_filename to unicode using fs default

2007-10-14 Thread Guido van Rossum
Guido van Rossum added the comment: > The problem is the imp module, which modulefinder uses, does not > detect the encoding of the files from the mode-line. This causes > TextIOWrapper to crash when it tries to read modules using an encoding > other than ASCII or UTF-8. Her

[issue1272] Decode __file__ and co_filename to unicode using fs default

2007-10-14 Thread Guido van Rossum
Guido van Rossum added the comment: > > This looks promising. I'm working on the freeze issue. Once I get that > > working I'll check this in. Thanks Alexandre and Christian for all > > your hard work!!! > > You're welcome. Does the patch qualify me for

[issue1272] Decode __file__ and co_filename to unicode using fs default

2007-10-14 Thread Guido van Rossum
Guido van Rossum added the comment: Committed revision 58466. Fingers crossed. -- resolution: -> accepted status: open -> closed __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue1031213] Use correct encoding for printing SyntaxErrors

2007-10-15 Thread Guido van Rossum
Guido van Rossum added the comment: > atsuo ishimoto added the comment: > > That's fine with me. Please replace PyErr_Print() with PyErr_Clear(). Done. Committed revision 58471. _ Tracker <[EMAIL PROTECTED]> <http://bugs.

[issue1258] Removal of basestring type

2007-10-15 Thread Guido van Rossum
Guido van Rossum added the comment: Hm? This is a one-word patch to email/generator.py. On 10/15/07, Christian Heimes <[EMAIL PROTECTED]> wrote: > > Christian Heimes added the comment: > > Here is an updated patch which applies cleanly and fixes some additional > unit tests

[issue1276] LookupError: unknown encoding: X-MAC-JAPANESE

2007-10-15 Thread Guido van Rossum
Guido van Rossum added the comment: Marc-Andre, do you understand this issue? Your name is in Tools/unicode/Makefile; the patch deletes the line $(RM) build/mac_japanese.* from the apple target, which seems rather arbitrary. -- assignee: -> lemburg nosy: +gvanrossum, lemb

[issue1277] mailbox.Maildir: factory not used

2007-10-15 Thread Guido van Rossum
Guido van Rossum added the comment: Patch please? -- nosy: +gvanrossum __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1277> __ ___ Python-bugs-list

[issue1278] imp.find_module() ignores -*- coding: Latin-1 -*-

2007-10-15 Thread Guido van Rossum
Guido van Rossum added the comment: Can you suggest a patch? Adding Brett Cannon to the list, possibly his import-in-python would supersede this? -- nosy: +brett.cannon, gvanrossum __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/

[issue1263] PEP 3137 patch - str8/str comparison should return false

2007-10-15 Thread Guido van Rossum
Guido van Rossum added the comment: I'll look at this at some point. One quick comment: the lnotab and bytecode should use PyString, which will be 'bytes' in 3.0a2. They must be immutable because code objects must be immutable (it must not be possible to modify an existing code

[issue1278] imp.find_module() ignores -*- coding: Latin-1 -*-

2007-10-15 Thread Guido van Rossum
Guido van Rossum added the comment: > No, I can't suggest a patch. I don't know how we could get the encoding > from the tokenizer or AST. Try harder. :-) Look at the code that accomplishes this feat in the regular parser... __ Tracker <[EMAI

[issue1278] imp.find_module() ignores -*- coding: Latin-1 -*-

2007-10-15 Thread Guido van Rossum
Guido van Rossum added the comment: Call PyTokenizer_Get until the line number is > 2? On 10/15/07, Christian Heimes <[EMAIL PROTECTED]> wrote: > > Christian Heimes added the comment: > > > Try harder. :-) Look at the code that accomplishes this feat in the > &

[issue1261] PEP 3137: make bytesobject.c methods

2007-10-15 Thread Guido van Rossum
Guido van Rossum added the comment: Is it worth my time to review this yet? __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1261> __ ___ Python-bugs-list

[issue1258] Removal of basestring type

2007-10-15 Thread Guido van Rossum
Changes by Guido van Rossum: __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1258> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mai

[issue1258] Removal of basestring type

2007-10-15 Thread Guido van Rossum
Guido van Rossum added the comment: > The unit tests profile, cProfile and doctest fail w/ and w/o this patch. > They seem to suffer from the latest changes of our previous patch and > additional calls to utf_8_decode(). Any details on those? They don'

[issue1258] Removal of basestring type

2007-10-15 Thread Guido van Rossum
Guido van Rossum added the comment: I'll check this in as soon as there's agreement on the list about this. Not that I expect disagreement, but I just realized it was never brought up and it isn't in PEP 3137 (yet). __ Tracker <[EMAIL

[issue1258] Removal of basestring type

2007-10-15 Thread Guido van Rossum
Guido van Rossum added the comment: BTW we need a 2to3 fixer for this. Should be trivial -- just replace *all* occurrences of basestring with str. __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/

[issue1282] re module needs to support bytes / memoryview well

2007-10-15 Thread Guido van Rossum
New submission from Guido van Rossum: Once PEP 3137 is fully implemented, the re module needs to be fixed so that the regex argument, the substitution argument, and the argument being searched/replaced are allowed to be arbitrary bytes arrays; where hashing is needed a copy in an immutable bytes

[issue1258] Removal of basestring type

2007-10-15 Thread Guido van Rossum
Guido van Rossum added the comment: Even before this patch, the re module doesn't work very well on byte strings. IMO this should be fixed. I've filed a separate bug to remind us: bug 1282. __ Tracker <[EMAIL PROTECTED]> <http://bugs.p

[issue1261] PEP 3137: make bytesobject.c methods

2007-10-15 Thread Guido van Rossum
Guido van Rossum added the comment: Very impressive! (Apologies if these lines are occasionally out of order.) +extern PyObject* _bytes_isspace(const char *cptr, const Py_ssize_t len); IMO all these functions should have names starting with _Py or _Py_, since they are visible to the linker

[issue1261] PEP 3137: make bytesobject.c methods

2007-10-15 Thread Guido van Rossum
Guido van Rossum added the comment: Good! Check it in before I change my mind. :-) The words can be tweaked later. > 04b is the same as 04, i just fixed the docstrings that i had missed in > stringlib/transmogrify.h to use 'B' instead of 'S' and say they return a >

[issue1267] Py3K cannot run as ``python -S``

2007-10-15 Thread Guido van Rossum
Guido van Rossum added the comment: > I've carefully checked and tested the initstdio() method. I'm sure that > I've catched every edged case. The unit tests pass w/o complains. > > I've also added a PyErr_Display() call to Py_FatalError(). It's still >

[issue1258] Removal of basestring type

2007-10-16 Thread Guido van Rossum
Guido van Rossum added the comment: Committed revision 58495. Thanks Christian!!! -- resolution: -> accepted status: open -> closed __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue1267] Py3K cannot run as ``python -S``

2007-10-16 Thread Guido van Rossum
Guido van Rossum added the comment: Does this mean I should hold off reviewing the patch? On 10/16/07, Christian Heimes <[EMAIL PROTECTED]> wrote: > > Christian Heimes added the comment: > > Christian Heimes wrote: > > * removed unused import of open in initstdio() &g

[issue1291] test_resource fails on recent linux systems (

2007-10-18 Thread Guido van Rossum
Guido van Rossum added the comment: Patch please? -- nosy: +gvanrossum __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1291> __ ___ Python-bugs-list

[issue1294] Management of KeyboardInterrupt in cmd.py

2007-10-18 Thread Guido van Rossum
Guido van Rossum added the comment: Would you mind submitting a patch instead of a whole new file? -- nosy: +gvanrossum __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/

[issue1295] logging records cache the result of formatException()

2007-10-18 Thread Guido van Rossum
Guido van Rossum added the comment: This is tough. On the one hand you are right that different classes that have different formatException() methods aren't treated correctly; on the other hand I think the caching is important for other cases where there are multiple loggers all usin

[issue1298] Support for z/OS and EBCDIC.

2007-10-18 Thread Guido van Rossum
Guido van Rossum added the comment: How important is z/OS? I'm very skeptical of the viability of any OS that uses an encoding that is not a superset of ASCII. -- nosy: +gvanrossum __ Tracker <[EMAIL PROTECTED]> <http://bugs.python

[issue1295] logging records cache the result of formatException()

2007-10-18 Thread Guido van Rossum
Guido van Rossum added the comment: I think so. On 10/18/07, Thomas Heller <[EMAIL PROTECTED]> wrote: > > Thomas Heller added the comment: > > > > This is tough. On the one hand you are right that different classes that > > > have different formatException() met

[issue1294] Management of KeyboardInterrupt in cmd.py

2007-10-19 Thread Guido van Rossum
Guido van Rossum added the comment: Hmm... I don't think this is the right thing to do. The code is broken in several ways. I recommend you find someone to help you come up with a better patch in comp.lang.python. -- keywords: +patch __ Tr

[issue1263] PEP 3137 patch - str8/str comparison should return false

2007-10-19 Thread Guido van Rossum
Guido van Rossum added the comment: I've committed the half of this patch that doesn't break any tests: the changes to codecs.c and structmember.c. Committed revision 58551. I'm seeking help getting the remaining unit tests to pass. (Thanks Thomas for the enumeration of th

[issue1280] PEP 3137: Make PyString's indexing and iteration return integers

2007-10-19 Thread Guido van Rossum
Changes by Guido van Rossum: -- assignee: -> gvanrossum nosy: +gvanrossum __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1280> __ ___ Python-bugs-li

[issue1267] Py3K cannot run as ``python -S``

2007-10-19 Thread Guido van Rossum
Guido van Rossum added the comment: I will take this. -- assignee: brett.cannon -> gvanrossum __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1267> __

[issue1161] Garbled chars in offending line of SyntaxError traceback

2007-10-19 Thread Guido van Rossum
Guido van Rossum added the comment: There were some seriously broken things with exception reporting, most of which I seem to have fixed. -- resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue1151] "TypeError: expected string, bytes found" instead of KeyboardInterrupt

2007-10-19 Thread Guido van Rossum
Guido van Rossum added the comment: There were some seriously broken things with exception reporting, most of which I seem to have fixed. -- resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue1298] Support for z/OS and EBCDIC.

2007-10-19 Thread Guido van Rossum
Guido van Rossum added the comment: FYI, I checked the moderation queue for python-dev and didn't find your message. You might want to resend. __ Tracker <[EMAIL PROTECTED]> <http://bugs.python

[issue1278] imp.find_module() ignores -*- coding: Latin-1 -*-

2007-10-19 Thread Guido van Rossum
Changes by Guido van Rossum: -- resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1278> __ ___ Python

[issue1267] Py3K cannot run as ``python -S``

2007-10-19 Thread Guido van Rossum
Guido van Rossum added the comment: Committed revision 58553 (with minor tweaks only). Thanks! -- resolution: -> accepted status: open -> closed __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue1280] PEP 3137: Make PyString's indexing and iteration return integers

2007-10-19 Thread Guido van Rossum
Guido van Rossum added the comment: Checked in. I addressed some of your XXX'es, left others in (sre needs a serious checkup for compatibility with bytes). Committed revision 58552. -- resolution: -> accepted status: open -> closed __ Trac

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

2007-10-19 Thread Guido van Rossum
Guido van Rossum added the comment: Neal, didn't you say you had a fix for this? -- nosy: +nnorwitz __ Tracker <[EMAIL PROTECTED]> <http://bugs.python

[issue1267] Py3K cannot run as ``python -S``

2007-10-19 Thread Guido van Rossum
Guido van Rossum added the comment: > OK, I think I might have a solution, and it is really stupid. I will > run the unit test suite to see if it really fixes everything. Here's keeping my fingers crossed. I do note that the new code still leaks the encoding string which is m

[issue1267] Py3K cannot run as ``python -S``

2007-10-19 Thread Guido van Rossum
Guido van Rossum added the comment: FWIW, on Mac I get six failures (all these pass on Linux): test_cmd_line test_inspect test_modulefinder test_pyclbr test_quopri test_runpy __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/

[issue1298] Support for z/OS and EBCDIC.

2007-10-19 Thread Guido van Rossum
Guido van Rossum added the comment: > How do you measure importance? Z/OS is not important to many > people in the world, but to those to whom it is important, it is > _very_ important, in a very tangible way. It was certainly > important enough for someone to port Python to it. :

[issue1267] Py3K cannot run as ``python -S``

2007-10-20 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks for persevering!!! The dangers of switching between fileno(fp) and fp are actually well documented in the C and/or POSIX standards. The problem is caused in PyFile_FromFileEx() -- it creates a Python file object from the file descriptor. The fix

[issue1267] Py3K cannot run as ``python -S``

2007-10-20 Thread Guido van Rossum
Guido van Rossum added the comment: Sorry, I was wrong about the encoding leak; you fixed that. The FILE/fd issue is real though. __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/

[issue1267] Py3K cannot run as ``python -S``

2007-10-20 Thread Guido van Rossum
Guido van Rossum added the comment: > Guido, Brett, how much of the code should I change? import.c is mainly > using file pointers. Should I replace all operations on FILE with > operations on a file descriptor? I think find_module() should return a file descriptor (fd), not a FILE*,

[issue1267] Py3K cannot run as ``python -S``

2007-10-20 Thread Guido van Rossum
Guido van Rossum added the comment: > Is PyFile_FromFd and PyFile_FromFdEx fine with you or do you prefer a > different name like PyFile_FromFD and PyFile_FromFDEx or > PyFile_FromFileDescriptor? Let's have a single function PyFile_FromFd(fd, name, mode, buffering, encoding, new

[issue1267] Py3K cannot run as ``python -S``

2007-10-21 Thread Guido van Rossum
Guido van Rossum added the comment: Do you have access to Windows? I believe it doesn't have dup(). :-( __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1267> __ _

[issue1263] PEP 3137 patch - str8/str comparison should return false

2007-10-21 Thread Guido van Rossum
Guido van Rossum added the comment: > Guido, what do you want to do about the struct module for the various > string formats (i.e., c, s, p)? Should they return str8 or Unicode? Oh, tough call. I think they should return str8 (i.e. bytes after the rename) because the encoding isn't

[issue1267] Py3K cannot run as ``python -S``

2007-10-21 Thread Guido van Rossum
Guido van Rossum added the comment: > > Do you have access to Windows? I believe it doesn't have dup(). :-( > > I've an old laptop with Win2k at my disposal but it has no VS yet. Can > you point me to a set of instruction how to install VS 2003? I've just > VS .N

[issue1267] Py3K cannot run as ``python -S``

2007-10-21 Thread Guido van Rossum
Changes by Guido van Rossum: -- resolution: accepted -> status: closed -> open __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1267> __ ___ Python

[issue1267] Py3K cannot run as ``python -S``

2007-10-21 Thread Guido van Rossum
Guido van Rossum added the comment: OK, checked in. You might want to compare what I checked in to your patch; I did a few style cleanups. I also moved the lseek() call into import.c, where it seems more appropriate. Committed revision 58587. -- resolution: -> accepted status: o

[issue1309] windows build fix

2007-10-22 Thread Guido van Rossum
Guido van Rossum added the comment: Committed revision 58592. -- nosy: +gvanrossum resolution: -> accepted status: open -> closed __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue1307] smtpd.SMTPServer throws exception on MAIL command with no arg

2007-10-22 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks! Committed revision 58594. Is there time to backport this to 2.5.2? -- assignee: -> nnorwitz nosy: +gvanrossum, nnorwitz resolution: -> accepted __ Tracker <[EMAIL PROTECTED]> <http://

[issue1304] py3k compilation on Windows

2007-10-22 Thread Guido van Rossum
Guido van Rossum added the comment: This doesn't apply cleanly with today's trunk, and that's not just due to the fix by Christian Heimes (which I checked in before noticing this) that fixes the same issue (bytes_methods.c). Can you & Christian please work together on a new p

[issue1305] socket.py hangs on Mac OS X

2007-10-22 Thread Guido van Rossum
Guido van Rossum added the comment: Odd. Smells like an OSX issue that we can't do anything about. I note that only attempts 250, 500, 750 (and so on if you increase the counter) have this behavior. I wonder if you'r simply filling up some kernel queue too fast; if I insert time.s

[issue1304] py3k compilation on Windows

2007-10-22 Thread Guido van Rossum
Guido van Rossum added the comment: Yup, I think that was it. Sorry. Committed revision 58597. -- resolution: -> accepted status: open -> closed __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue708374] add offset to mmap

2007-10-22 Thread Guido van Rossum
Guido van Rossum added the comment: Fine with me! -- nosy: +gvanrossum Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue708374> ___ Python-bugs-

[issue708374] add offset to mmap

2007-10-22 Thread Guido van Rossum
Changes by Guido van Rossum: -- resolution: -> accepted status: open -> closed Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue708374> __

[issue1061] ABC caches should use weak refs

2007-10-22 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks Georg; please check it in! -- assignee: gvanrossum -> georg.brandl resolution: -> accepted __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue1315] Bug in pstats.print_callers

2007-10-23 Thread Guido van Rossum
Guido van Rossum added the comment: This will get more attention if you suggest a patch... -- nosy: +gvanrossum __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/

[issue1316] fix a few PyInt_Check vs PyLong_Check problems

2007-10-23 Thread Guido van Rossum
Guido van Rossum added the comment: Please check in and close -- thanks for finding these! -- assignee: gvanrossum -> georg.brandl resolution: -> accepted __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue1307] smtpd.SMTPServer throws exception on MAIL command with no arg

2007-10-23 Thread Guido van Rossum
Guido van Rossum added the comment: Committed revision 58618. There better not be any others. :-) Neal, can you add this to 2.5.2 and then close? -- assignee: gvanrossum -> nnorwitz status: closed -> open __ Tracker <[EMAIL PROTECTE

[issue1312] doctest EXCEPTION_RE can't handle preceding output

2007-10-23 Thread Guido van Rossum
Changes by Guido van Rossum: -- assignee: -> tim_one nosy: +tim_one __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1312> __ ___ Python-bugs-li

[issue1314] Patch for strftime problem on German Windows

2007-10-23 Thread Guido van Rossum
Guido van Rossum added the comment: Committed revision 58619. -- assignee: -> gvanrossum nosy: +gvanrossum resolution: -> accepted status: open -> closed __ Tracker <[EMAIL PROTECTED]> <http://bugs.py

[issue1318] Remove os.tmpnam() and os.tempnam() [patch]

2007-10-23 Thread Guido van Rossum
Guido van Rossum added the comment: Martin, why do we need to keep these when we already have tempfile.py? I don't see that they solve any particular POSIX compatibility requirement. And they *are* unsafe. (Admitted, sometimes there's no alternative -- even tempfile.py still provi

[issue1298] Support for z/OS and EBCDIC.

2007-10-24 Thread Guido van Rossum
Guido van Rossum added the comment: I have no desire or time to continue this discussion. The ASCII assumption will be ingrained as deeply or deeper in 3.0 than in 2.x, just like 8-bit bytes and 2's complement. The computer industry has chosen, and there just isn't any incentive

[issue1319] py3k: fixes for test_ctypes

2007-10-24 Thread Guido van Rossum
Guido van Rossum added the comment: Looks good to me. I can check it in if Thomas is okay with that (or if he remains silent long enough :-). -- nosy: +gvanrossum __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/

[issue1322] platform.dist() has unpredictable result under Linux

2007-10-24 Thread Guido van Rossum
Guido van Rossum added the comment: Do you have a patch? That would help tremendously. -- nosy: +gvanrossum __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/

<    1   2   3   4   5   6   7   8   9   10   >