[issue3919] PySys_SetObject crashes after Py_NewInterpreter().

2008-09-21 Thread Graham Dumpleton

New submission from Graham Dumpleton [EMAIL PROTECTED]:

Somewhere between Python 3.0a3 and Python 3.0b3, a call to PySys_SetObject() 
after having used Py_NewInterpreter() to create a sub interpreter causes a 
crash. This appears to be due to interp-sysdict being NULL after 
Py_NewInterpreter() called.

As illustration of problem, consider program for Python 2.X.

#include Python.h

int
main(int argc, char *argv[])
{
Py_Initialize();
PySys_SetObject(xxx, PyLong_FromLongLong(1));
fprintf(stderr, sysdict=%d\n, !!PyThreadState_Get()-interp-sysdict);
fflush(stderr);
PyRun_SimpleString(import sys\n
   print  sys.stderr, 'xxx =', sys.xxx\n);

Py_NewInterpreter();
fprintf(stderr, sysdict=%d\n, !!PyThreadState_Get()-interp-sysdict);
fflush(stderr);
PySys_SetObject(yyy, PyLong_FromLongLong(2));
PyRun_SimpleString(import sys\n
   print  sys.stderr, 'yyy =', sys.yyy\n);

Py_Finalize();
return 0;
}

This when run yields:

sysdict=1
xxx = 1
sysdict=1
yyy = 2

Now, for Python 3.0 variant of same program:

#include Python.h

int
main(int argc, char *argv[])
{
Py_Initialize();
fprintf(stderr, sysdict=%d\n, !!PyThreadState_Get()-interp-sysdict);
fflush(stderr);
PySys_SetObject(xxx, PyLong_FromLongLong(1));
PyRun_SimpleString(import sys\n
   print('xxx =',sys.xxx, file=sys.stderr)\n);

Py_NewInterpreter();
fprintf(stderr, sysdict=%d\n, !!PyThreadState_Get()-interp-sysdict);
fflush(stderr);
PySys_SetObject(yyy, PyLong_FromLongLong(2));
PyRun_SimpleString(import sys\n
   print('yyy =',sys.yyy, file=sys.stderr)\n);

Py_Finalize();
return 0;
}

I get for Python 3.0a3:

sysdict=1
xxx = 1
sysdict=1
object  : AttributeError('module' object has no attribute 'stderr',)
type: AttributeError
refcount: 4
address : 0xf1180
lost sys.stderr

I am not concerned here about loss of sys.stderr, although that could be a 
separate issue for all I know.

The important bit here is that sysdict is set after Py_NewInterpreter().

In Python 3.0b3/3.0rc1 I instead get:

sysdict=1
xxx = 1
sysdict=0
Bus error

This is because PySys_SetObject() is presumably crashing because sysdict is 
not set in interp object.

I tried to ask about this on python-3000 Google group, but that message ended 
up in some moderation queue and has vanished. Thus quote part of that message 
below.


From what I can tell so far the problem is that 'interp-sysdict' is
NULL after calling Py_NewInterpreter() to create a secondary sub
interpreter.

Reading through code and using a debugger, at this point this seems to
be due to condition if code:

   sysmod = _PyImport_FindExtension(sys, sys);
   if (bimod != NULL  sysmod != NULL) {
   interp-sysdict = PyModule_GetDict(sysmod);
   if (interp-sysdict == NULL)
   goto handle_error;
   Py_INCREF(interp-sysdict);
   PySys_SetPath(Py_GetPath());
   PyDict_SetItemString(interp-sysdict, modules,
interp-modules);
   _PyImportHooks_Init();
   initmain();
   if (!Py_NoSiteFlag)
   initsite();
   }

in Py_NewInterpreter() not executing due to
_PyImport_FindExtension(sys, sys) returning NULL.

Down in _PyImport_FindExtension(), it appears that the reason it fails
is because of following returning with NULL.

   def = (PyModuleDef*)PyDict_GetItemString(extensions,
filename);

   .

   if (def-m_base.m_init == NULL)
   return NULL;

In other words, whatever m_base.m_init is meant to be is NULL when
perhaps it isn't meant to be.

(gdb) call ((PyModuleDef*)PyDict_GetItemString(extensions,builtins))-
m_base.m_init
$9 = (PyObject *(*)()) 0
(gdb) call ((PyModuleDef*)PyDict_GetItemString(extensions,sys))-
m_base.m_init
$10 = (PyObject *(*)()) 0

I am going to keep tracking through to try and work out why, but
posting this initial information in case this rings a bell with
anyone.


Is this expected behaviour? Or, is it necessary now to perform some special 
initialisation after having called Py_NewInterpreter() to get builtins and 
sys modules setup?

This problem originally came up with mod_wsgi, which worked fine with Python 
3.0a3, but fails on more recent releases because of this.

I know sub interpreters may be seen as evil by some and the target of 
removal, but are they still meant to work for now at least?

--
components: Interpreter Core
messages: 73483
nosy: grahamd
severity: normal
status: open
title: PySys_SetObject crashes after Py_NewInterpreter().
versions: Python 3.0

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3919
___
___
Python-bugs-list mailing list
Unsubscribe: 

[issue3919] PySys_SetObject crashes after Py_NewInterpreter().

2008-09-21 Thread Graham Dumpleton

Graham Dumpleton [EMAIL PROTECTED] added the comment:

Sorry, should also mention that this was on MacOS X 10.4 (Tiger).

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3919
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3917] set_display definition allows empty '{' '}' in Language Definition

2008-09-21 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

Thanks, fixed in r66522. Also removed the last two paragraphs of the set
display explanation which were pasted from genexps and made no sense,
and added a sentence about {} not constructing a set.

--
resolution:  - fixed
status: open - closed

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3917
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3852] kqueue.control requires 2 params while docs say max_events (the second) defaults to 0

2008-09-21 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

Committed patch in r66523. At least for now, code and docs are
consistent again.

--
resolution:  - fixed
status: open - closed

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3852
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3912] unittest. assertAlmostEqual() documentation incomplete

2008-09-21 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

Thanks, committed in r66524.

--
resolution:  - fixed
status: open - closed

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3912
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3916] layout of build directories for Windows not current

2008-09-21 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

Thanks, committed as r66525.

--
resolution:  - fixed
status: open - closed

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3916
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3915] Broken link in 14.7 curses, Python Library Reference

2008-09-21 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

Thanks, this is already fixed in SVN and will be in the 2.6 docs coming
out soon.

--
resolution:  - out of date
status: open - closed

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3915
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3914] augop definition does not include //=

2008-09-21 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

Thanks, fixed in r66526.

--
resolution:  - fixed
status: open - closed

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3914
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3913] compound_stmt syntax includes 'decorated'

2008-09-21 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

Bruce is right.

I fixed decorated, the duplicate funcdef and the ? in r66527 and
r66528.

Bruce, usually adding comments with more issues, especially if they are
so small, is fine; however, since they may be overlooked you're free to
open another bug after a time if no reaction happens.

--
resolution: invalid - fixed

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3913
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3889] Demo/parser/unparse.py

2008-09-21 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

This was fixed some time ago on the trunk.

--
nosy: +georg.brandl
resolution:  - out of date
status: open - closed

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3889
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3897] collections

2008-09-21 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

Thanks, fixed in r66530.

--
nosy: +georg.brandl
resolution:  - fixed
status: open - closed

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3897
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3884] turtle in the tkinter package?

2008-09-21 Thread Martin v. Löwis

Martin v. Löwis [EMAIL PROTECTED] added the comment:

This is now fixed in r66531.

--
resolution:  - fixed
status: open - closed

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3884
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3905] subprocess failing in GUI applications on Windows

2008-09-21 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

Jean-Michel, you'll need to apply the idlelib/run.py patch; replace

sockthread.set_daemon(True)

with

sockthread.daemon = True

around line 75.

--
resolution:  - fixed
status: open - closed
versions: +Python 3.0 -Python 2.5, Python 2.6

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3905
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3909] Building PDF documentation from tex files

2008-09-21 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

Which version of Sphinx did you use to build the docs? The Python docs
currently need the unreleased SVN version (that will of course change
for the final release).

If you have a Sphinx release installed as a Python egg, it will cause
problems, even if you used the Makefile to checkout the latest from SVN.

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3909
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3920] OpenBSD 4.4 still doesn't support _XOPEN_SOURCE

2008-09-21 Thread Martin v. Löwis

New submission from Martin v. Löwis [EMAIL PROTECTED]:

msg71969 suggests that OpenBSD 4.4 still fails to build Python if
_XOPEN_SOURCE is defined.

Henry, can you please confirm that
a) the problem still is that select is unavailable if _POSIX_SOURCE is
defined, and
b) the attached patch fixes the problem (when run through autoconf)

The patch is for 2.6, but should be ported to 3.0 also.

--
files: bsd.diff
keywords: patch
messages: 73500
nosy: henry.precheur, loewis
severity: normal
status: open
title: OpenBSD 4.4 still doesn't support _XOPEN_SOURCE
versions: Python 2.6, Python 3.0
Added file: http://bugs.python.org/file11538/bsd.diff

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3920
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3918] random.uniform suprisingly (good kind) does not work as documented

2008-09-21 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

Noted in r66535.

--
nosy: +georg.brandl
resolution:  - fixed
status: open - closed

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3918
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3920] OpenBSD 4.4 still doesn't support _XOPEN_SOURCE

2008-09-21 Thread Martin v. Löwis

Martin v. Löwis [EMAIL PROTECTED] added the comment:

Looking at the code again, it might be that definition of _POSIX_SOURCE
is not harmful per se anymore, as long as _BSD_SOURCE is also defined.

Can you please also try the alternative bsd2.diff?

Added file: http://bugs.python.org/file11539/bsd2.diff

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3920
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3921] smtplib cannot sendmail over TLS

2008-09-21 Thread Takafumi SHIDO

New submission from Takafumi SHIDO [EMAIL PROTECTED]:

when a SMTP object tries to send a mail through TLS, the smtp server 
replies retcode 502.

When a test code (sendmail_test.py) is executed on Python 3,
it stacks on sending mail while the test code works on Python 2.5.

Following is the result of the test.

The first half is the result on Python 2.5. 
A mail has been sent without any problem.

The second half is the result on Python 3.
Upto AUTH, it works fine.
But when it sends mail, the server replies retcode 502.
This is the message of failure:

send: 'mail FROM:[EMAIL PROTECTED] size=176\r\n'
reply: b'502 5.5.1 Unrecognized command. u8sm8612791tia.6\r\n'
 

== RESULT 
Z:\doc\monthly\08-09\py_book3\script\netpython mail2.py
send: 'ehlo [192.168.1.8]\r\n'
reply: '250-mx.google.com at your service, [124.41.68.137]\r\n'
reply: '250-SIZE 35651584\r\n'
reply: '250-8BITMIME\r\n'
reply: '250-STARTTLS\r\n'
reply: '250 ENHANCEDSTATUSCODES\r\n'
reply: retcode (250); Msg: mx.google.com at your service, [124.41.68.137]
SIZE 35651584
8BITMIME
STARTTLS
ENHANCEDSTATUSCODES
send: 'STARTTLS\r\n'
reply: '220 2.0.0 Ready to start TLS\r\n'
reply: retcode (220); Msg: 2.0.0 Ready to start TLS
send: 'ehlo [192.168.1.8]\r\n'
reply: '250-mx.google.com at your service, [124.41.68.137]\r\n'
reply: '250-SIZE 35651584\r\n'
reply: '250-8BITMIME\r\n'
reply: '250-AUTH LOGIN PLAIN\r\n'
reply: '250 ENHANCEDSTATUSCODES\r\n'
reply: retcode (250); Msg: mx.google.com at your service, [124.41.68.137]
SIZE 35651584
8BITMIME
AUTH LOGIN PLAIN
ENHANCEDSTATUSCODES
send: 'AUTH PLAIN AGxhbWJkYS5sZXRAZ21haWwuY29tAGNoaWtha29zMDA=\r\n'
reply: '235 2.7.0 Accepted\r\n'
reply: retcode (235); Msg: 2.7.0 Accepted
send: 'mail FROM:[EMAIL PROTECTED] size=176\r\n'
reply: '250 2.1.0 OK\r\n'
reply: retcode (250); Msg: 2.1.0 OK
send: 'rcpt TO:[EMAIL PROTECTED]\r\n'
reply: '250 2.1.5 OK\r\n'
reply: retcode (250); Msg: 2.1.5 OK
send: 'data\r\n'
reply: '354 Go ahead\r\n'
reply: retcode (354); Msg: Go ahead
data: (354, 'Go ahead')
send: 'MIME-Version: 1.0\r\nContent-Type: text/plain;
charset=us-ascii\r\nCon
ent-Transfer-Encoding: 7bit\r\nFrom: [EMAIL PROTECTED]:
[EMAIL PROTECTED]
info\r\nSubject: test\r\n\r\nThis is a test.\r\n.\r\n'
reply: '250 2.0.0 OK 1221982163 22sm8756554tim.10\r\n'
reply: retcode (250); Msg: 2.0.0 OK 1221982163 22sm8756554tim.10
data: (250, '2.0.0 OK 1221982163 22sm8756554tim.10')
send: 'quit\r\n'
reply: '221 2.0.0 mx.google.com closing connection 22sm8756554tim.10\r\n'
reply: retcode (221); Msg: 2.0.0 mx.google.com closing connection
22sm8756554ti
.10

Z:\doc\monthly\08-09\py_book3\script\netpy3 mail2.py

Z:\doc\monthly\08-09\py_book3\script\netc:\python30\python.exe mail2.py

send: 'ehlo [192.168.1.8]\r\n'
reply: b'250-mx.google.com at your service, [124.41.68.137]\r\n'
reply: b'250-SIZE 35651584\r\n'
reply: b'250-8BITMIME\r\n'
reply: b'250-STARTTLS\r\n'
reply: b'250 ENHANCEDSTATUSCODES\r\n'
reply: retcode (250); Msg: b'mx.google.com at your service,
[124.41.68.137]\nSI
E 35651584\n8BITMIME\nSTARTTLS\nENHANCEDSTATUSCODES'
send: 'STARTTLS\r\n'
reply: b'220 2.0.0 Ready to start TLS\r\n'
reply: retcode (220); Msg: b'2.0.0 Ready to start TLS'
send: 'ehlo [192.168.1.8]\r\n'
reply: b'250-mx.google.com at your service, [124.41.68.137]\r\n'
reply: b'250-SIZE 35651584\r\n'
reply: b'250-8BITMIME\r\n'
reply: b'250-AUTH LOGIN PLAIN\r\n'
reply: b'250 ENHANCEDSTATUSCODES\r\n'
reply: retcode (250); Msg: b'mx.google.com at your service,
[124.41.68.137]\nSI
E 35651584\n8BITMIME\nAUTH LOGIN PLAIN\nENHANCEDSTATUSCODES'
send: 'AUTH PLAIN AGxhbWJkYS5sZXRAZ21haWwuY29tAGNoaWtha29zMDA=\n\r\n'
reply: b'235 2.7.0 Accepted\r\n'
reply: retcode (235); Msg: b'2.7.0 Accepted'
send: 'mail FROM:[EMAIL PROTECTED] size=176\r\n'
reply: b'502 5.5.1 Unrecognized command. u8sm8612791tia.6\r\n'
reply: retcode (502); Msg: b'5.5.1 Unrecognized command. u8sm8612791tia.6'
send: 'rset\r\n'
reply: b'250 2.1.0 OK\r\n'
reply: retcode (250); Msg: b'2.1.0 OK'
Traceback (most recent call last):
  File sendmail_test.py, line 43, in module

  File sendmail_test.py, line 35, in send_mail

  File c:\python30\lib\smtplib.py, line 701, in sendmail
raise SMTPSenderRefused(code, resp, from_addr)
smtplib.SMTPSenderRefused: (502, b'5.5.1 Unrecognized command.
u8sm8612791tia.6
, '[EMAIL PROTECTED]')

Z:\doc\monthly\08-09\py_book3\script\net

 Test Code (sendmail_test.py) =

#! python

''' send mail using Python 2.5 and 3'''

import smtplib
from email.mime.text import MIMEText
from email.header import Header


def make_mime_text(mail_from, mail_to, subject, body):
'''create MIMEText'''

msg = MIMEText(body, 'plain', 'ascii')
msg['From'] = Header(mail_from, 'ascii')
msg['To'] = Header(mail_to,  'ascii')
msg['Subject'] = Header(subject, 'ascii')
return msg

def send_mail(server, mail_from, mail_to, msg, use_tls=False, user='',
passwd='', ):
'''sendmail, if use_tls=True, use TLS'''


[issue3879] 2.6 regression in urllib.getproxies_environment

2008-09-21 Thread vila

vila [EMAIL PROTECTED] added the comment:

Georg Brandl:
 I guess you're processing the result of
 getproxies() yourself and relying on no being a key?

Indeed. Thanks for approving this.

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3879
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3659] sqlite: enumeration value 'TYPE_STRING' not handled in switch

2008-09-21 Thread Gerhard Häring

Gerhard Häring [EMAIL PROTECTED] added the comment:

Damn. I uploaded a patch to this issue a few days ago for review.
Apparently, it didn't work?! I'll recreate it again.

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3659
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3659] sqlite: enumeration value 'TYPE_STRING' not handled in switch

2008-09-21 Thread Gerhard Häring

Gerhard Häring [EMAIL PROTECTED] added the comment:

Attached patch corrects the issue. Could you please review it?

--
status: open - pending
Added file: http://bugs.python.org/file11541/py3_sqlite3_str_subclass.dif

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3659
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3659] sqlite: enumeration value 'TYPE_STRING' not handled in switch

2008-09-21 Thread Gerhard Häring

Changes by Gerhard Häring [EMAIL PROTECTED]:


--
keywords: +easy, needs review, patch
type:  - behavior

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3659
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3659] sqlite: enumeration value 'TYPE_STRING' not handled in switch

2008-09-21 Thread Gerhard Häring

Changes by Gerhard Häring [EMAIL PROTECTED]:


--
status: pending - open

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3659
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3922] 3.0rc1 missing tk lib in sys.path?

2008-09-21 Thread Jean-Michel Fauth

New submission from Jean-Michel Fauth [EMAIL PROTECTED]:

3.0rc1: When toying and attempting to import the scrolledtext module, I
noticed the tkinter library path is no more by default included in the
sys.path.

Unfortunate omission or new Python 3.0 design?

C:\Python30python
Python 3.0rc1 (r30rc1:66507, Sep 18 2008, 14:47:08) [MSC v.1500 32 bit
(Intel)]
on win32
Type help, copyright, credits or license for more information.
 import sys
 for e in sys.path: print(e)
...

C:\Python30\python30.zip
C:\Python30\DLLs
C:\Python30\lib
C:\Python30\lib\plat-win
C:\Python30
C:\Python30\lib\site-packages



C:\Python26python
Python 2.6rc2 (r26rc2:66507, Sep 18 2008, 14:27:33) [MSC v.1500 32 bit
(Intel)]
on win32
Type help, copyright, credits or license for more information.
 import sys
 for e in sys.path: print e
...

C:\Python26\python26.zip
C:\Python26\DLLs
C:\Python26\lib
C:\Python26\lib\plat-win
C:\Python26\lib\lib-tk 
C:\Python26
C:\Python26\lib\site-packages


--
components: Library (Lib)
messages: 73508
nosy: jmfauth
severity: normal
status: open
title: 3.0rc1 missing tk lib in sys.path?
type: behavior
versions: Python 3.0

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3922
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3838] test_tarfile error on cygwin (Directory not empty)

2008-09-21 Thread Lars Gustäbel

Lars Gustäbel [EMAIL PROTECTED] added the comment:

The patch is okay. Go ahead.

BTW, I've never used Cygwin before, is it always that slow? 10 minutes
for a configure script on a recent machine is a real pain.

--
nosy: +lars.gustaebel

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3838
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3838] test_tarfile error on cygwin (Directory not empty)

2008-09-21 Thread Hirokazu Yamamoto

Hirokazu Yamamoto [EMAIL PROTECTED] added the comment:

Thanks, fixed in trunk(r66539) and py3k(r66540).

BTW, I've never used Cygwin before, is it always that slow? 10 minutes
for a configure script on a recent machine is a real pain.

Yes, that's really painful. On my box, I can eat dinner and take a bath
while configure  make. :-)

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3838
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3262] re.split doesn't split with zero-width regex

2008-09-21 Thread Jeffrey C. Jacobs

Changes by Jeffrey C. Jacobs [EMAIL PROTECTED]:


--
nosy: +timehorse

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3262
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3838] test_tarfile error on cygwin (Directory not empty)

2008-09-21 Thread Hirokazu Yamamoto

Changes by Hirokazu Yamamoto [EMAIL PROTECTED]:


--
keywords:  -needs review
resolution:  - fixed
status: open - closed

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3838
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3654] Duplicated test name in regex test script

2008-09-21 Thread Jeffrey C. Jacobs

Changes by Jeffrey C. Jacobs [EMAIL PROTECTED]:


--
nosy: +timehorse

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3654
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue516762] have a way to search backwards for re

2008-09-21 Thread Jeffrey C. Jacobs

Changes by Jeffrey C. Jacobs [EMAIL PROTECTED]:


--
nosy: +timehorse

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue516762
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1706863] Failed to build Python 2.5.1 with sqlite3

2008-09-21 Thread Hirokazu Yamamoto

Hirokazu Yamamoto [EMAIL PROTECTED] added the comment:

AttributeError: 'NoneType' object has no attribute 'rfind'

Fixing this error is not difficult. I think attached patch is enough.

But still cygwin user who wants to use sqlite3 module won't be happy.
find_library() supports static lib, shared lib, and dylib but .dll.a
seems to be windows specific import library. Probably disutils itself
need to be modified. (And probably it's too late for RC phase :-()

--
keywords: +patch
nosy: +ocean-city
Added file: http://bugs.python.org/file11542/fix_sqlite3_setup_error.patch

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1706863
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3923] 'genexpr_for' in definition of 'call' in Language Reference.

2008-09-21 Thread Bruce Frederiksen

New submission from Bruce Frederiksen [EMAIL PROTECTED]:

The definition of 'call' in the Language Reference refers to
'genexpr_for' which doesn't exist.  Either 'genexpr_for' should be
changed to 'comp_for' or 'expression genexpr_for' should be changed to
'comprehension'.  See the following:

http://docs.python.org/dev/3.0/reference/expressions.html#grammar-token-call
http://docs.python.org/dev/3.0/reference/expressions.html#grammar-token-comprehension

I also did not see any description if what happens if you use the
comprehension option (though I was scanning the text quickly and could
have missed it).

--
assignee: georg.brandl
components: Documentation
messages: 73513
nosy: dangyogi, georg.brandl
severity: normal
status: open
title: 'genexpr_for' in definition of 'call' in Language Reference.
versions: Python 3.0

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3923
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2384] [Py3k] line number is wrong after encoding declaration

2008-09-21 Thread Jean-Michel Fauth

Jean-Michel Fauth [EMAIL PROTECTED] added the comment:

Python 3.0rc1

If the lines are now displayed correctly, I think there is still a
numbering issue, a +1 offset.

Python 2.5.2

# -*- coding: cp1252 -*-   line 1, first line

s = 'abc'
import dummy
s = 'def'

---

pythonw -u testpy2.py
Traceback (most recent call last):
  File testpy2.py, line 4, in module
import dummy
ImportError: No module named dummy
Exit code: 1


Python 3.0rc1

# -*- coding: cp1252 -*-

s = 'abc'
import dummy
s = 'def'

---

c:\python30\pythonw -u testpy3.py
Traceback (most recent call last):
  File testpy3.py, line 5, in module
s = 'def'
ImportError: No module named dummy
Exit code: 1

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2384
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3905] subprocess failing in GUI applications on Windows

2008-09-21 Thread Todd Whiteman

Todd Whiteman [EMAIL PROTECTED] added the comment:

Uh, the Idle bug reported by Jean-Michel is a completely different bug
(please see the first three messages of this report).

Please re-open this bug, as the subprocess issue I have reported is
still outstanding.

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3905
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3905] subprocess failing in GUI applications on Windows

2008-09-21 Thread Georg Brandl

Changes by Georg Brandl [EMAIL PROTECTED]:


--
resolution: fixed - 
status: closed - open

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3905
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3923] 'genexpr_for' in definition of 'call' in Language Reference.

2008-09-21 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

Fixed in r66541.

--
resolution:  - fixed
status: open - closed

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3923
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3922] 3.0rc1 missing tk lib in sys.path?

2008-09-21 Thread Martin v. Löwis

Martin v. Löwis [EMAIL PROTECTED] added the comment:

This is intentional. tkinter now lives directly in the lib directory
(and is a package).

--
nosy: +loewis
resolution:  - invalid
status: open - closed

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3922
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3905] subprocess failing in GUI applications on Windows

2008-09-21 Thread Jean-Michel Fauth

Jean-Michel Fauth [EMAIL PROTECTED] added the comment:

 Georg Brandl

Thanks, patch applied on w2k+sp4 box, swiss french, Python 3.0rc1.
IDLE is working fine.

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3905
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3924] cookielib chokes on non-integer cookie version, should ignore it instead

2008-09-21 Thread Denis

New submission from Denis [EMAIL PROTECTED]:

PROBLEM:

Some sites (e.g. https://itunesconnect.apple.com) sends cookies where
version is 1 instead of 1. Cookielib chokes on it so none of the
cookies work after that.

PROBLEM CODE:
def _cookie_from_cookie_tuple(self, tup, request):
...
name, value, standard, rest = tup
...
version = standard.get(version, None)
if version is not None: version = int(version)  CRASH HERE!!!



WORKAROUND:

use my own cookie jar, e.g.:

class MyCookieJar(CookieJar):
def _cookie_from_cookie_tuple(self, tup, request):
name, value, standard, rest = tup
standard[version]= None
CookieJar._cookie_from_cookie_tuple(self, tup, request)

REAL FIX:
do not assume that version is int, keep it as string if it does not
parse as int:

CRASH STACK:

/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/cookielib.py:1577:
UserWarning: cookielib bug!
Traceback (most recent call last):
  File
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/cookielib.py,
line 1575, in make_cookies
parse_ns_headers(ns_hdrs), request)
  File
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/cookielib.py,
line 1532, in _cookies_from_attrs_set
cookie = self._cookie_from_cookie_tuple(tup, request)
  File
/Users/denis/Documents/svn2/tson/main/sales/src/download_sales.py,
line 28, in _cookie_from_cookie_tuple
CookieJar._cookie_from_cookie_tuple(self, tup, request)
  File
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/cookielib.py,
line 1451, in _cookie_from_cookie_tuple
if version is not None: version = int(version)
ValueError: invalid literal for int() with base 10: '1'

  _warn_unhandled_exception()

--
components: None
messages: 73518
nosy: DenNukem
severity: normal
status: open
title: cookielib chokes on non-integer cookie version, should ignore it instead
type: crash
versions: Python 2.5

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3924
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3626] python3.0 interpreter on Cygwin ignores all arguments

2008-09-21 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:

The IDLE problem is already corrected: see issue3628.

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3626
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3626] python3.0 interpreter on Cygwin ignores all arguments

2008-09-21 Thread Yaakov (Cygwin Ports)

Yaakov (Cygwin Ports) [EMAIL PROTECTED] added the comment:

 The IDLE problem is already corrected: see issue3628.

In that case, then I think this can be closed; if I encounter any
further issues after rc2, I'll open a new bug.

Thank you for all your help.

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3626
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3919] PySys_SetObject crashes after Py_NewInterpreter().

2008-09-21 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:

This seems a duplicate of issue3723.

--
nosy: +amaury.forgeotdarc
superseder:  - Py_NewInterpreter does not work

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3919
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3626] python3.0 interpreter on Cygwin ignores all arguments

2008-09-21 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:

 I think this can be closed

Well, after the proposed patch cygwin_badprintf.patch is reviewed and 
applied...

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3626
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3262] re.split doesn't split with zero-width regex

2008-09-21 Thread Matthew Barnett

Matthew Barnett [EMAIL PROTECTED] added the comment:

I wonder whether it could be put into Python 3 where certain breaks in
backwards compatibility are to be expected.

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3262
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com




[issue3825] Major reworking of Python 2.5.2 re module

2008-09-21 Thread Matthew Barnett

Matthew Barnett [EMAIL PROTECTED] added the comment:

Fixed the matching of word boundaries when searching and matching in
substrings.

Added file: http://bugs.python.org/file11543/regex_2.6rc2+1.diff

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3825
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3919] PySys_SetObject crashes after Py_NewInterpreter().

2008-09-21 Thread Benjamin Peterson

Changes by Benjamin Peterson [EMAIL PROTECTED]:


--
resolution:  - duplicate
status: open - closed

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3919
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3723] Py_NewInterpreter does not work

2008-09-21 Thread Benjamin Peterson

Changes by Benjamin Peterson [EMAIL PROTECTED]:


--
keywords: +needs review

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3723
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3925] test_distutils fails on cygwin

2008-09-21 Thread Hirokazu Yamamoto

New submission from Hirokazu Yamamoto [EMAIL PROTECTED]:

Currently msvc build ignores shutil.rmtree error, this workaround is
needed for cygwin too.

==
ERROR: test_build_ext (distutils.tests.test_build_ext.BuildExtTestCase)
--
Traceback (most recent call last):
  File
/home/WhiteRabbit/python-dev/trunk/Lib/distutils/tests/test_build_ext.py
, line 66, in tearDown
shutil.rmtree(self.tmp_dir, False if os.name != nt else True)
  File /home/WhiteRabbit/python-dev/trunk/Lib/shutil.py, line 221, in
rmtree
onerror(os.remove, fullname, sys.exc_info())
  File /home/WhiteRabbit/python-dev/trunk/Lib/shutil.py, line 219, in
rmtree
os.remove(fullname)
OSError: [Errno 13] Permission denied:
'/cygdrive/c/DOCUME~1/WHITER~1/LOCALS~1/T
emp/pythontest_YRSZAn/xx.dll'

--
components: Tests
files: test_distutils.patch
keywords: easy, needs review, patch
messages: 73525
nosy: ocean-city
severity: normal
status: open
title: test_distutils fails on cygwin
versions: Python 2.6, Python 3.0
Added file: http://bugs.python.org/file11544/test_distutils.patch

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3925
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3925] test_distutils fails on cygwin

2008-09-21 Thread Benjamin Peterson

Benjamin Peterson [EMAIL PROTECTED] added the comment:

Go ahead.

--
nosy: +benjamin.peterson

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3925
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3925] test_distutils fails on cygwin

2008-09-21 Thread Benjamin Peterson

Changes by Benjamin Peterson [EMAIL PROTECTED]:


--
keywords:  -needs review

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3925
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1688] Incorrectly displayed non ascii characters in prompt using input() - Python 3.0a2

2008-09-21 Thread Benjamin Peterson

Benjamin Peterson [EMAIL PROTECTED] added the comment:

I'm ok with this patch.

--
keywords:  -needs review
nosy: +benjamin.peterson

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1688
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3659] sqlite: enumeration value 'TYPE_STRING' not handled in switch

2008-09-21 Thread Benjamin Peterson

Benjamin Peterson [EMAIL PROTECTED] added the comment:

I think the patch looks good.

--
keywords:  -needs review
nosy: +benjamin.peterson

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3659
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3925] test_distutils fails on cygwin

2008-09-21 Thread Hirokazu Yamamoto

Hirokazu Yamamoto [EMAIL PROTECTED] added the comment:

Thanks, fixed in r66542(trunk) and r66543(py3k).

--
resolution:  - fixed
status: open - closed

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3925
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3723] Py_NewInterpreter does not work

2008-09-21 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:

I applied the patch to PC/config.c, but this did not change anything.

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3723
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3723] Py_NewInterpreter does not work

2008-09-21 Thread Benjamin Peterson

Benjamin Peterson [EMAIL PROTECTED] added the comment:

Interesting, here it lets import.c's init_builtin reinitalize modules...

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3723
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3879] 2.6 regression in urllib.getproxies_environment

2008-09-21 Thread Benjamin Peterson

Benjamin Peterson [EMAIL PROTECTED] added the comment:

Fixed in r66544.

--
resolution: accepted - fixed
status: open - closed

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3879
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3705] py3k fails under Windows if -c or -m is given a non-ascii value

2008-09-21 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:

Today I learned something: wchar_t can be 2 or 4 bytes, PyUNICODE can be 
2 or 4 bytes, and all combinations are possible.
My error was to use PyUnicode_FromUnicode on a wchar_t*; PyUnicode_FromWideChar 
is the obvious function to use.

Attached a new patch (command_unicode_2.patch) for review.

--
keywords: +needs review
priority: high - critical
Added file: http://bugs.python.org/file11545/command_unicode_2.patch

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3705
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3187] os.listdir can return byte strings

2008-09-21 Thread Benjamin Peterson

Benjamin Peterson [EMAIL PROTECTED] added the comment:

Here's a potential patch for listdir. It emits a UnicodeWarning (or
should that be a BytesWarning?) and skips the file when decoding fails.
What would be the best way to test this?

Added file: http://bugs.python.org/file11546/listdir_bytes_warning.patch

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3187
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3187] os.listdir can return byte strings

2008-09-21 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:

I did not test the patch, but I have some remarks about it:
- %r does not seem to be handled by PyUnicode_FromFormat; %R maybe?
- In this case, PyObject_Repr(v) is not necessary - and this will avoid 
a reference leak.
- Does the warning warn multiple times? IIRC the default behaviour is to 
warn once.

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3187
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1688] Incorrectly displayed non ascii characters in prompt using input() - Python 3.0a2

2008-09-21 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:

Committed r66545.

--
resolution:  - fixed
status: open - closed

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1688
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3920] OpenBSD 4.4 still doesn't support _XOPEN_SOURCE

2008-09-21 Thread Henry Precheur

Changes by Henry Precheur [EMAIL PROTECTED]:


--
versions: +Python 2.5

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3920
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3884] turtle in the tkinter package?

2008-09-21 Thread Gregor Lingl

Gregor Lingl [EMAIL PROTECTED] added the comment:

Of course I highly appreciate this decision.

I'd like to point you to an urgent issue concerning turtle.py
which needs a decision and which I've just posted to Python-dev

Regards,
Gregor

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3884
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2382] [Py3k] SyntaxError cursor shifted if multibyte character is in line.

2008-09-21 Thread Hirokazu Yamamoto

Changes by Hirokazu Yamamoto [EMAIL PROTECTED]:


Removed file: http://bugs.python.org/file9786/fix.patch

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2382
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2382] [Py3k] SyntaxError cursor shifted if multibyte character is in line.

2008-09-21 Thread Hirokazu Yamamoto

Hirokazu Yamamoto [EMAIL PROTECTED] added the comment:

Patch revised.

--
components: +Interpreter Core -None
Added file: 
http://bugs.python.org/file11548/py3k_adjust_cursor_at_syntax_error.patch

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2382
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3187] os.listdir can return byte strings

2008-09-21 Thread Benjamin Peterson

Changes by Benjamin Peterson [EMAIL PROTECTED]:


Removed file: http://bugs.python.org/file11546/listdir_bytes_warning.patch

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3187
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3187] os.listdir can return byte strings

2008-09-21 Thread Benjamin Peterson

Benjamin Peterson [EMAIL PROTECTED] added the comment:

Here's two more patches. One is like the old one with Amaury's comments
observed. The other simply notes if there were decoding problems and
warns once at the end of the listdir call.

Making a warning happen more than once is tricky because it requires
messing with the warnings filter. This of course takes away some of the
user's control which is one of the main reasons for using the Python
warning system in the first place.

(I almost wish we could write another listdir that returned the names it
could decode and a list of those it couldn't.)

Added file: http://bugs.python.org/file11549/listdir_encoding_warning.patch

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3187
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3187] os.listdir can return byte strings

2008-09-21 Thread Benjamin Peterson

Changes by Benjamin Peterson [EMAIL PROTECTED]:


Removed file: http://bugs.python.org/file10719/oslistdir_string.patch

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3187
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3187] os.listdir can return byte strings

2008-09-21 Thread Benjamin Peterson

Changes by Benjamin Peterson [EMAIL PROTECTED]:


Added file: http://bugs.python.org/file11550/warn_at_the_end.patch

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3187
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3926] Idle doesn't obey the new improved warnings arguements

2008-09-21 Thread Scott David Daniels

New submission from Scott David Daniels [EMAIL PROTECTED]:

Idle doesn't accept the new improved warnings arguments, thus escalating
warnings to failures.  This is, I believe, the core reason that Idle was
failing on windows (warnings about deprecated set_daemon call escalated
to a failure).

Files affected: idlelib/PyShell.py and idlelib/run.py

On chasing this, it looks like the code in warnings.py is masking 
IOErrors a little too broadly, so we should probably also narrow the
exception handling in warnings.py

Patch coming, but not ready just yet.

--
messages: 73541
nosy: scott_daniels
severity: normal
status: open
title: Idle doesn't obey the new improved warnings arguements
type: behavior
versions: Python 2.6, Python 3.0

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3926
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3927] dummy multiprocessing needs to use properties

2008-09-21 Thread Benjamin Peterson

New submission from Benjamin Peterson [EMAIL PROTECTED]:

multiprocessing.dummy is still using some of the get_name, set_name
variety names. These should change. The attached patch should handle the
problem.

--
assignee: jnoller
components: Library (Lib)
files: kill_old_names.patch
keywords: patch
messages: 73542
nosy: benjamin.peterson, jnoller
priority: release blocker
severity: normal
status: open
title: dummy multiprocessing needs to use properties
versions: Python 2.6, Python 3.0
Added file: http://bugs.python.org/file11551/kill_old_names.patch

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3927
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue821862] ftplib: Strict RFC 959 (telnet in command channel)

2008-09-21 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' [EMAIL PROTECTED]:


--
nosy: +giampaolo.rodola

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue821862
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3825] Major reworking of Python 2.5.2 re module

2008-09-21 Thread Matthew Barnett

Matthew Barnett [EMAIL PROTECTED] added the comment:

regex_2.6rc2+2.diff is a bugfix for capture groups in look-behinds.

Added file: http://bugs.python.org/file11552/regex_2.6rc2+2.diff

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3825
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3678] Ignored LDFLAGS during linking libpython$(VERSION).so

2008-09-21 Thread Gregory P. Smith

Gregory P. Smith [EMAIL PROTECTED] added the comment:

already merged in py3k.

committed to release25-maint in r66547.

--
resolution:  - fixed
status: open - closed

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3678
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3824] test_tarfile fails on cygwin (unicode decode error)

2008-09-21 Thread Hirokazu Yamamoto

Hirokazu Yamamoto [EMAIL PROTECTED] added the comment:

Sorry, the patch didn't work... I didn't understand Martin's word. And
nl_langinfo(CODESET) is useless on cygwin because it's always US-ASCII.

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3824
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3825] Major reworking of Python 2.5.2 re module

2008-09-21 Thread Matthew Barnett

Changes by Matthew Barnett [EMAIL PROTECTED]:


Removed file: http://bugs.python.org/file11552/regex_2.6rc2+2.diff

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3825
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3825] Major reworking of Python 2.5.2 re module

2008-09-21 Thread Matthew Barnett

Matthew Barnett [EMAIL PROTECTED] added the comment:

Needed to correct regex_2.6rc2+2.diff.

Added file: http://bugs.python.org/file11553/regex_2.6rc2+2.diff

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3825
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3825] Major reworking of Python 2.5.2 re module

2008-09-21 Thread Matthew Barnett

Matthew Barnett [EMAIL PROTECTED] added the comment:

regex_2.6rc2+3.diff adds reverse searching with the re.REVERSE/re.R and
(?r) flag.

This gives results such as:

 re.findall((\w+), one two three)
['one', 'two', 'three']
 re.findall((?r)(\w+), one two three)
['three', 'two', 'one']

See #516762.

Added file: http://bugs.python.org/file11554/regex_2.6rc2+3.diff

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3825
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue516762] have a way to search backwards for re

2008-09-21 Thread Matthew Barnett

Matthew Barnett [EMAIL PROTECTED] added the comment:

Implemented as part of #3825.

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue516762
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3392] subprocess fails in select when descriptors are large

2008-09-21 Thread Gregory P. Smith

Changes by Gregory P. Smith [EMAIL PROTECTED]:


--
assignee:  - gregory.p.smith
nosy: +gregory.p.smith

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3392
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue516762] have a way to search backwards for re

2008-09-21 Thread Benjamin Peterson

Changes by Benjamin Peterson [EMAIL PROTECTED]:


--
resolution:  - duplicate
status: open - closed
superseder:  - Major reworking of Python 2.5.2 re module

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue516762
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3745] _sha256 et al. encode to UTF-8 by default

2008-09-21 Thread Gregory P. Smith

Gregory P. Smith [EMAIL PROTECTED] added the comment:

agreed.  most platforms should be using the openssl version, i will
update the non-openssl implementations to behave the same.

I don't think this is worth being a release blocker.  I'll do it for 3.0.1.

--
assignee:  - gregory.p.smith
nosy: +gregory.p.smith

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3745
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3826] BaseHTTPRequestHandler depends on GC to close connections

2008-09-21 Thread Gregory P. Smith

Changes by Gregory P. Smith [EMAIL PROTECTED]:


--
assignee:  - gregory.p.smith
nosy: +gregory.p.smith
priority:  - critical
title: Self-reference in BaseHTTPRequestHandler descendants causes stuck 
connections - BaseHTTPRequestHandler depends on GC to close connections

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3826
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3066] FD leak in urllib2

2008-09-21 Thread Gregory P. Smith

Changes by Gregory P. Smith [EMAIL PROTECTED]:


--
assignee:  - gregory.p.smith
nosy: +gregory.p.smith

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3066
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3631] Improve gdbinit of Python 2.6

2008-09-21 Thread Gregory P. Smith

Changes by Gregory P. Smith [EMAIL PROTECTED]:


--
assignee:  - gregory.p.smith
nosy: +gregory.p.smith
priority:  - normal

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3631
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3566] httplib persistent connections violate MUST in RFC2616 sec 8.1.4.

2008-09-21 Thread Gregory P. Smith

Changes by Gregory P. Smith [EMAIL PROTECTED]:


--
assignee:  - gregory.p.smith
nosy: +gregory.p.smith

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3566
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue751758] ftplib.retrbinary fails when called from retrlines callback

2008-09-21 Thread Giampaolo Rodola'

Giampaolo Rodola' [EMAIL PROTECTED] added the comment:

In FTP every data channel is supposed to be used for a unique transfer
(RFC-1123, chapter 4.1.2.6) and every client should open only one data
connection at time. Actually there isn't any official RFC which
explicitly states my second sentence but the common practices for
servers receiving a PORT or PASV request while another transfer is in
progress usually are:

- processing the request when the transfer is finished
- creating a new data channel closing the old one
- returning a 4xx temporarily failure response code

IMHO it's your use case which, even if not officially declared
incorrect, is usually discouraged and hence should not be covered by
base ftplib module.


My2cents

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue751758
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1248] ftplib needs a rewrite to use bytes/buffers

2008-09-21 Thread Giampaolo Rodola'

Giampaolo Rodola' [EMAIL PROTECTED] added the comment:

Actually the 'r' flag is used against the control connection which is
not supposed to receive any binary data and in FTP.retrlines method
which is supposed to retrieve data in line mode.

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1248
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3841] IDLE: quirky behavior when displaying strings longer than 4093 characters

2008-09-21 Thread Hank Christian

Hank Christian [EMAIL PROTECTED] added the comment:

I am using Vista Ultimate, with Python 2.5. 
I did not have any problems running this code. The result was 4094.

--
nosy: +hankchristian

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3841
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3920] OpenBSD 4.4 still doesn't support _XOPEN_SOURCE

2008-09-21 Thread Martin v. Löwis

Martin v. Löwis [EMAIL PROTECTED] added the comment:

Hye-Shik, can you please review this patch?

--
assignee:  - hyeshik.chang
keywords: +needs review
nosy: +hyeshik.chang

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3920
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3824] test_tarfile fails on cygwin (unicode decode error)

2008-09-21 Thread Martin v. Löwis

Martin v. Löwis [EMAIL PROTECTED] added the comment:

I didn't mean to suggest that a new codec is created; instead, mbstowcs
should be called directly in grpmodule.c.

By default, mbstowcs will use ASCII, so it is likely to fail - you would
need to call setlocale first.

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3824
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com