[issue2889] curses for windows (alternative patch)

2008-05-15 Thread anatoly techtonik

Changes by anatoly techtonik <[EMAIL PROTECTED]>:


Added file: http://bugs.python.org/file10340/curses_win_compile.bat

__
Tracker <[EMAIL PROTECTED]>

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



[issue2880] Rename repr to reprlib

2008-05-15 Thread Alexandre Vassalotti

Changes by Alexandre Vassalotti <[EMAIL PROTECTED]>:


--
assignee:  -> alexandre.vassalotti
nosy: +alexandre.vassalotti

__
Tracker <[EMAIL PROTECTED]>

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



[issue2889] curses for windows (alternative patch)

2008-05-15 Thread anatoly techtonik

New submission from anatoly techtonik <[EMAIL PROTECTED]>:

Make curses available on Windows by using PDCurses library. Alternative
patch for issue 1005895 using current trunk.

Attached .bat file is used to compile it under MinGW, but I'd be glad to
know how to integrate the patch into Python build system.

PDCurses includes support for mouse functions compatible with ncurses,
but to turn it on if requires to define NCURSES_MOUSE_VERSION to 2
before  is included. I am not familiar with configure.* stuff,
so I've just pasted required definitions into _cursesmodule.c
With attached .bat file it works by external definition.

Some functions, such as initterm are not available on Windows platform
and were defined out.

I hope that curses module will be included in next Python 2.6

--
components: Extension Modules
files: curses_win_port.patch.txt
messages: 66920
nosy: techtonik
severity: normal
status: open
title: curses for windows (alternative patch)
versions: Python 2.6
Added file: http://bugs.python.org/file10339/curses_win_port.patch.txt

__
Tracker <[EMAIL PROTECTED]>

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



[issue2888] pprint produces different output in 2.6 and 3.0

2008-05-15 Thread Alexandre Vassalotti

New submission from Alexandre Vassalotti <[EMAIL PROTECTED]>:

The indent argument produces different output in Python 2.6 and 3.0: 

Python 3.0a5+ (py3k:63349:63350M, May 16 2008, 00:37:17) 
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pprint
>>> stuff = ['spam', 'eggs', 'lumberjack', 'knights', 'ni']
>>> stuff.insert(0, stuff[:])
>>> pprint.pprint(stuff, indent=4) 
[   ['spam', 'eggs', 'lumberjack', 'knights', 'ni'],
'spam',
'eggs',
'lumberjack',
'knights',
'ni']


Python 2.6a3+ (trunk:63323, May 15 2008, 16:09:01) 
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pprint
>>> stuff = ['spam', 'eggs', 'lumberjack', 'knights', 'ni']
>>> stuff.insert(0, stuff[:])
>>> pprint.pprint(stuff, indent=4) 
[   [   'spam', 'eggs', 'lumberjack', 'knights', 'ni'],
'spam',
'eggs',
'lumberjack',
'knights',
'ni']

--
components: Library (Lib)
messages: 66919
nosy: alexandre.vassalotti
priority: low
severity: normal
status: open
title: pprint produces different output in 2.6 and 3.0
type: behavior
versions: Python 2.6, Python 3.0

__
Tracker <[EMAIL PROTECTED]>

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



[issue2887] bsddb 4.6.4 needs to be ported to Python 3.0

2008-05-15 Thread Alexandre Vassalotti

New submission from Alexandre Vassalotti <[EMAIL PROTECTED]>:

The recent updates to bsddb (r63207, r63210 and r63218) needs to
forward-ported to the py3k branch.

At first glance, here is the things that needs to be done in the test suite:

  - Change the import:

  from test_all import ...

into a relative import:

  from .test_all import ...

  - Replace code incompatible with 3.0, such as changing
``dict.has_key(key)`` to ``key in dict``.

  - Change str literals to bytes literals where appropriate.

  - Optional: change code like ``type([])`` or ``type(())`` to 
respectively ``list`` and ``tuple``.

  - Change print statements into print() calls.

  - Change ``x != None`` to ``x is not None``.

In the modules:

  - Change PyInt__* to PyLong_*.
  - Update the PyTypeObject declaration:

   statichere PyTypeObject DB_Type = {
   PyObject_HEAD_INIT(NULL)
   0,  /*ob_size*/
   "DB",   /*tp_name*/
   sizeof(DBObject),   /*tp_basicsize*/
   ...

to:

   static PyTypeObject DB_Type = {
   PyVarObject_HEAD_INIT(NULL, 0)
   "DB",   /*tp_name*/
   sizeof(DBObject),   /*tp_basicsize*/
   ...

  - Update module init declaration:

   DL_EXPORT(void) init_bsddb(void)
   {
  ...

to:

  PyMODINIT_FUNC init_bsddb(void)
  {
  ...

  - Remove Py_TPFLAGS_HAVE_WEAKREFS.
  - Change PyString_* calls to PyUnicode_* where appropriate.

There probably other things that I missed, but that should give you a
good start.

--
components: Extension Modules, Library (Lib), Tests
messages: 66918
nosy: alexandre.vassalotti, gregory.p.smith, jcea
priority: normal
severity: normal
status: open
title: bsddb 4.6.4 needs to be ported to Python 3.0
type: feature request
versions: Python 3.0

__
Tracker <[EMAIL PROTECTED]>

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



[issue2775] Implement PEP 3108

2008-05-15 Thread Brett Cannon

Brett Cannon <[EMAIL PROTECTED]> added the comment:

I have created an individual issue for every major step left in 
implementing PEP 3108. Each one that is still open is now listed as a 
dependency for this issue.

--
dependencies:  -Patch to rename *Server modules to lower-case, Patch to rename 
HTMLParser module to lower_case, Remove mac modules

__
Tracker <[EMAIL PROTECTED]>

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



[issue2775] Implement PEP 3108

2008-05-15 Thread Brett Cannon

Changes by Brett Cannon <[EMAIL PROTECTED]>:


--
dependencies: +Create the xmlrpc package

__
Tracker <[EMAIL PROTECTED]>

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



[issue2886] Create the xmlrpc package

2008-05-15 Thread Brett Cannon

New submission from Brett Cannon <[EMAIL PROTECTED]>:

The xmlrpc package as outlined in PEP 3108 needs to be created.

--
components: Library (Lib)
messages: 66916
nosy: brett.cannon
priority: release blocker
severity: normal
status: open
title: Create the xmlrpc package
type: behavior
versions: Python 2.6, Python 3.0

__
Tracker <[EMAIL PROTECTED]>

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



[issue2883] Create the http package

2008-05-15 Thread Brett Cannon

Changes by Brett Cannon <[EMAIL PROTECTED]>:


--
keywords: +patch

__
Tracker <[EMAIL PROTECTED]>

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



[issue2775] Implement PEP 3108

2008-05-15 Thread Brett Cannon

Brett Cannon <[EMAIL PROTECTED]> added the comment:

Issue 2884 references this issue as it is to be used to tracker the new 
tkinter package.

__
Tracker <[EMAIL PROTECTED]>

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



[issue2885] Create the urllib package

2008-05-15 Thread Brett Cannon

Changes by Brett Cannon <[EMAIL PROTECTED]>:


__
Tracker <[EMAIL PROTECTED]>

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



[issue2885] Create the urllib package

2008-05-15 Thread Brett Cannon

Brett Cannon <[EMAIL PROTECTED]> added the comment:

Issue 2884 is to be used to track the tkinter package. I reference this 
issue for initial patches.

__
Tracker <[EMAIL PROTECTED]>

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



[issue2775] Implement PEP 3108

2008-05-15 Thread Brett Cannon

Changes by Brett Cannon <[EMAIL PROTECTED]>:


--
dependencies: +Create the urllib package

__
Tracker <[EMAIL PROTECTED]>

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



[issue2885] Create the urllib package

2008-05-15 Thread Brett Cannon

New submission from Brett Cannon <[EMAIL PROTECTED]>:

The urllib package as outlined in PEP 3108 needs to be created.

--
assignee: jhylton
components: Library (Lib)
messages: 66913
nosy: brett.cannon, jhylton
priority: release blocker
severity: normal
status: open
title: Create the urllib package
type: behavior
versions: Python 2.6, Python 3.0

__
Tracker <[EMAIL PROTECTED]>

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



[issue2775] Implement PEP 3108

2008-05-15 Thread Brett Cannon

Changes by Brett Cannon <[EMAIL PROTECTED]>:


--
dependencies: +Create the tkinter package

__
Tracker <[EMAIL PROTECTED]>

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



[issue2884] Create the tkinter package

2008-05-15 Thread Brett Cannon

New submission from Brett Cannon <[EMAIL PROTECTED]>:

The tkinter package as outlined in PEP 3108 needs to be created.

See issue 2775 for initial patches.

--
components: Library (Lib)
keywords: patch
messages: 66912
nosy: brett.cannon
priority: release blocker
severity: normal
status: open
title: Create the tkinter package
type: behavior
versions: Python 2.6, Python 3.0

__
Tracker <[EMAIL PROTECTED]>

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



[issue2775] Implement PEP 3108

2008-05-15 Thread Brett Cannon

Brett Cannon <[EMAIL PROTECTED]> added the comment:

Issue 2883 is where future http package stuff should occur. I referenced 
this issue for initial patches.

--
dependencies: +Create the http package

__
Tracker <[EMAIL PROTECTED]>

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



[issue2883] Create the http package

2008-05-15 Thread Brett Cannon

New submission from Brett Cannon <[EMAIL PROTECTED]>:

Create the http package as outlined in PEP 3108.

Initial patches exist in issue 2775.

--
components: Library (Lib)
messages: 66910
nosy: brett.cannon
priority: release blocker
severity: normal
status: open
title: Create the http package
versions: Python 2.6, Python 3.0

__
Tracker <[EMAIL PROTECTED]>

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



[issue2775] Implement PEP 3108

2008-05-15 Thread Brett Cannon

Changes by Brett Cannon <[EMAIL PROTECTED]>:


--
dependencies: +Create the html package

__
Tracker <[EMAIL PROTECTED]>

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



[issue2882] Create the html package

2008-05-15 Thread Brett Cannon

New submission from Brett Cannon <[EMAIL PROTECTED]>:

The html package as outlined in PEP 3108 needs to be created.

--
components: Library (Lib)
messages: 66909
nosy: brett.cannon
priority: release blocker
severity: normal
status: open
title: Create the html package
type: behavior
versions: Python 2.6, Python 3.0

__
Tracker <[EMAIL PROTECTED]>

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



[issue2775] Implement PEP 3108

2008-05-15 Thread Brett Cannon

Changes by Brett Cannon <[EMAIL PROTECTED]>:


--
dependencies: +Create the dbm package

__
Tracker <[EMAIL PROTECTED]>

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



[issue2881] Create the dbm package

2008-05-15 Thread Brett Cannon

New submission from Brett Cannon <[EMAIL PROTECTED]>:

The dbm package as outlined in PEP 3108 needs to be created.

--
components: Library (Lib)
messages: 66908
nosy: brett.cannon
priority: release blocker
severity: normal
status: open
title: Create the dbm package
type: behavior
versions: Python 2.6, Python 3.0

__
Tracker <[EMAIL PROTECTED]>

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



[issue2775] Implement PEP 3108

2008-05-15 Thread Brett Cannon

Changes by Brett Cannon <[EMAIL PROTECTED]>:


--
dependencies: +Rename repr to reprlib

__
Tracker <[EMAIL PROTECTED]>

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



[issue2880] Rename repr to reprlib

2008-05-15 Thread Brett Cannon

New submission from Brett Cannon <[EMAIL PROTECTED]>:

The repr module is slated to be renamed reprlib in PEP 3108.

--
components: Library (Lib)
messages: 66907
nosy: brett.cannon
priority: release blocker
severity: normal
status: open
title: Rename repr to reprlib
type: behavior
versions: Python 2.6, Python 3.0

__
Tracker <[EMAIL PROTECTED]>

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



[issue2877] Backport UserString move from 3.0

2008-05-15 Thread Raymond Hettinger

Raymond Hettinger <[EMAIL PROTECTED]> added the comment:

Same questions as for UserDict.  Why backport this and break existing 
2.5 code?  There's no benefit.

--
nosy: +rhettinger

__
Tracker <[EMAIL PROTECTED]>

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



[issue2750] Add simplejson to Python 2.6/3.0 standard library

2008-05-15 Thread Brett Cannon

Brett Cannon <[EMAIL PROTECTED]> added the comment:

Can this issue be closed?

__
Tracker <[EMAIL PROTECTED]>

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



[issue2876] Backport UserDict move in 3.0

2008-05-15 Thread Raymond Hettinger

Raymond Hettinger <[EMAIL PROTECTED]> added the comment:

This doesn't make any sense to me.  The 2.6 code runs fine as-is.  The 
2-to-3 tool can handle switching from UserDict.UserDict to 
collections.UserDict.  What's the issue?  And why is this marked as a 
release blocker?

--
nosy: +rhettinger

__
Tracker <[EMAIL PROTECTED]>

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



[issue2775] Implement PEP 3108

2008-05-15 Thread Brett Cannon

Changes by Brett Cannon <[EMAIL PROTECTED]>:


--
dependencies: +Rename _winreg to winreg

__
Tracker <[EMAIL PROTECTED]>

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



[issue2879] Rename _winreg to winreg

2008-05-15 Thread Brett Cannon

New submission from Brett Cannon <[EMAIL PROTECTED]>:

The _winreg module needs to be renamed winreg for PEP 3108.

--
components: Library (Lib)
messages: 66903
nosy: brett.cannon
priority: release blocker
severity: normal
status: open
title: Rename _winreg to winreg
type: behavior
versions: Python 2.6, Python 3.0

__
Tracker <[EMAIL PROTECTED]>

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



[issue2878] Backport UserList move in 3.0

2008-05-15 Thread Brett Cannon

New submission from Brett Cannon <[EMAIL PROTECTED]>:

The UserList class was moved from the UserList module to the collections 
module. That move along with the stdlib update needs to be backported to 
2.6.

--
components: Library (Lib)
messages: 66902
nosy: brett.cannon
priority: release blocker
severity: normal
status: open
title: Backport UserList move in 3.0
type: behavior
versions: Python 2.6

__
Tracker <[EMAIL PROTECTED]>

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



[issue2775] Implement PEP 3108

2008-05-15 Thread Brett Cannon

Changes by Brett Cannon <[EMAIL PROTECTED]>:


--
dependencies: +Backport UserString move from 3.0

__
Tracker <[EMAIL PROTECTED]>

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



[issue2877] Backport UserString move from 3.0

2008-05-15 Thread Brett Cannon

New submission from Brett Cannon <[EMAIL PROTECTED]>:

The UserString class was moved from its own module to the collections 
module. That change needs to be backported.

--
components: Library (Lib)
messages: 66901
nosy: brett.cannon
priority: release blocker
severity: normal
status: open
title: Backport UserString move from 3.0
type: behavior
versions: Python 2.6

__
Tracker <[EMAIL PROTECTED]>

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



[issue2775] Implement PEP 3108

2008-05-15 Thread Brett Cannon

Changes by Brett Cannon <[EMAIL PROTECTED]>:


--
dependencies: +Backport UserDict move in 3.0

__
Tracker <[EMAIL PROTECTED]>

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



[issue2876] Backport UserDict move in 3.0

2008-05-15 Thread Brett Cannon

New submission from Brett Cannon <[EMAIL PROTECTED]>:

In Python 3.0, the UserDict module was removed and the UserDict class was 
moved to the collections module. That change-over needs to be backported 
to 2.6 so that the UserDict module can be deprecated.

--
components: Library (Lib)
messages: 66900
nosy: brett.cannon
priority: release blocker
severity: normal
status: open
title: Backport UserDict move in 3.0
type: behavior
versions: Python 2.6

__
Tracker <[EMAIL PROTECTED]>

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



[issue2775] Implement PEP 3108

2008-05-15 Thread Brett Cannon

Changes by Brett Cannon <[EMAIL PROTECTED]>:


--
dependencies: +Rename the thread module to _thread

__
Tracker <[EMAIL PROTECTED]>

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



[issue2875] Rename the thread module to _thread

2008-05-15 Thread Brett Cannon

New submission from Brett Cannon <[EMAIL PROTECTED]>:

PEP 3108 has thread slated to be renamed _thread (along with dummy_thread 
to _dummy_thread).

--
components: Library (Lib)
messages: 66899
nosy: brett.cannon
priority: release blocker
severity: normal
status: open
title: Rename the thread module to _thread
type: behavior
versions: Python 2.6, Python 3.0

__
Tracker <[EMAIL PROTECTED]>

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



[issue2775] Implement PEP 3108

2008-05-15 Thread Brett Cannon

Changes by Brett Cannon <[EMAIL PROTECTED]>:


--
dependencies: +Remove use of the stat module in the stdlib

__
Tracker <[EMAIL PROTECTED]>

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



[issue2874] Remove use of the stat module in the stdlib

2008-05-15 Thread Brett Cannon

New submission from Brett Cannon <[EMAIL PROTECTED]>:

The stat module is slated to go in Python 3.0, but that can't happen until 
all uses of the module are gone. This will require moving over to using 
the named tuple features of os.stat() along with adding methods to the 
object that the stat module has as functions.

--
components: Library (Lib)
messages: 66898
nosy: brett.cannon
priority: release blocker
severity: normal
status: open
title: Remove use of the stat module in the stdlib
type: behavior
versions: Python 2.6

__
Tracker <[EMAIL PROTECTED]>

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



[issue2775] Implement PEP 3108

2008-05-15 Thread Brett Cannon

Changes by Brett Cannon <[EMAIL PROTECTED]>:


--
dependencies: +Remove htmllib use in the stdlib

__
Tracker <[EMAIL PROTECTED]>

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



[issue2873] Remove htmllib use in the stdlib

2008-05-15 Thread Brett Cannon

New submission from Brett Cannon <[EMAIL PROTECTED]>:

htmllib cannot be removed from 3.0 until its use is removed from pydoc.

--
components: Library (Lib)
messages: 66897
nosy: brett.cannon
priority: release blocker
severity: normal
status: open
title: Remove htmllib use in the stdlib
type: behavior
versions: Python 2.6

__
Tracker <[EMAIL PROTECTED]>

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



[issue2621] rename test_support to support

2008-05-15 Thread Brett Cannon

Changes by Brett Cannon <[EMAIL PROTECTED]>:


--
priority:  -> release blocker

__
Tracker <[EMAIL PROTECTED]>

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



[issue2849] Remove usage of rfc822 from the stdlib

2008-05-15 Thread Brett Cannon

Changes by Brett Cannon <[EMAIL PROTECTED]>:


--
priority: critical -> release blocker

__
Tracker <[EMAIL PROTECTED]>

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



[issue2848] Remove mimetools usage from the stdlib

2008-05-15 Thread Brett Cannon

Changes by Brett Cannon <[EMAIL PROTECTED]>:


--
priority: critical -> release blocker

__
Tracker <[EMAIL PROTECTED]>

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



[issue2847] Remove cl usage from aifc

2008-05-15 Thread Brett Cannon

Changes by Brett Cannon <[EMAIL PROTECTED]>:


--
priority: critical -> release blocker

__
Tracker <[EMAIL PROTECTED]>

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



[issue2861] Patch to rename markupbase to _markupbase

2008-05-15 Thread Brett Cannon

Changes by Brett Cannon <[EMAIL PROTECTED]>:


--
priority:  -> release blocker

__
Tracker <[EMAIL PROTECTED]>

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



[issue1002] Patch to rename HTMLParser module to lower_case

2008-05-15 Thread Brett Cannon

Brett Cannon <[EMAIL PROTECTED]> added the comment:

Closing as out of date to try to make the number of PEP 3108 issues more 
manageable. HTMLParser is becoming html.parser in 3.0.

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

__
Tracker <[EMAIL PROTECTED]>

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



[issue1000] Patch to rename *Server modules to lower-case

2008-05-15 Thread Brett Cannon

Brett Cannon <[EMAIL PROTECTED]> added the comment:

SocketServer is the only *Server module who name is being directly 
lowercased. All the rest are ending up in various packages with a totally 
different name.

--
assignee:  -> collinwinter
nosy: +brett.cannon
resolution:  -> rejected
status: open -> closed

__
Tracker <[EMAIL PROTECTED]>

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



[issue2839] Moving lib-tk to tkinter package

2008-05-15 Thread Brett Cannon

Changes by Brett Cannon <[EMAIL PROTECTED]>:


--
priority:  -> release blocker

__
Tracker <[EMAIL PROTECTED]>

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



[issue2775] Implement PEP 3108

2008-05-15 Thread Brett Cannon

Changes by Brett Cannon <[EMAIL PROTECTED]>:


--
dependencies: +Remove commands for PEP 3108

__
Tracker <[EMAIL PROTECTED]>

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



[issue2872] Remove commands for PEP 3108

2008-05-15 Thread Brett Cannon

New submission from Brett Cannon <[EMAIL PROTECTED]>:

The commands module is slated to go. The getstatus() function needs to be 
deprecated, with the rest of the module moving into subprocess (and thus 
adding commands to the 2to3 fix_import fixer).

--
components: Library (Lib)
messages: 66894
nosy: brett.cannon
priority: release blocker
severity: normal
status: open
title: Remove commands for PEP 3108
type: behavior
versions: Python 2.6, Python 3.0

__
Tracker <[EMAIL PROTECTED]>

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



[issue2775] Implement PEP 3108

2008-05-15 Thread Brett Cannon

Brett Cannon <[EMAIL PROTECTED]> added the comment:

Removing htmllib is not as simple as just removing the modules as pydoc 
uses htmllib.

__
Tracker <[EMAIL PROTECTED]>

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



[issue2583] urlparse normalize URL path

2008-05-15 Thread Senthil

Senthil <[EMAIL PROTECTED]> added the comment:

Btw, Thank you for the exciting report monk.e.boy. :-)
There are many hidden in urlparse,urllib*. I hope you will have fun time
finding them (and fixing them too :)

And one general comment. If the bug is valid, Python official
Documentation cannot be made to  reference a blog site. Instead, a patch
to fix the python doc would itself be welcome.

__
Tracker <[EMAIL PROTECTED]>

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



[issue1187] pipe fd handling issues in subprocess.py on POSIX

2008-05-15 Thread Dustin J. Mitchell

Dustin J. Mitchell <[EMAIL PROTECTED]> added the comment:

Hmm.. I see why you didn't write a unit test for this!

Attached is a patch with a unit test that tickles this behavior, along 
with Andrew's fix.

Added file: http://bugs.python.org/file10338/1187-dustin.patch

__
Tracker <[EMAIL PROTECTED]>

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



[issue2583] urlparse normalize URL path

2008-05-15 Thread Senthil

Senthil <[EMAIL PROTECTED]> added the comment:

Just try it this way.
>>> print urlparse.urljoin('http://site.com/', 'path/../path/.././path/./')
http://site.com/path/
>>>

The difference is the inital '/' in the second argument.
Human interpretation is:
Go to http://site.com/ and 1) go to path directory 2) go to one-level
above (/../) which results in site.com again 3) go to path directory 4)
go to one-level above (..) (results site.com )5) Stay in the same
directory (.) 6) goto path 7) stay there (.) 
Final result is http://www.site.com/path/

When you start the path with a '/'
>>> print urlparse.urljoin('http://site.com/', '/path/../path/.././path/./')
http://site.com/path/../path/.././path/./

The RFC (1808) suggests the following.
urlparse.urljoin('http://a/b/c/d','/./g') = http://a/./g>
The argument is taken as a complete path for the server.


The way to use this would be, this way:

>>> print urlparse.urljoin('http://site.com/', 'path/../path/.././path/./')
http://site.com/path/
>>>

This is not a bug and can be closed.

--
nosy: +orsenthil

__
Tracker <[EMAIL PROTECTED]>

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



[issue2464] urllib2 can't handle http://www.wikispaces.com

2008-05-15 Thread Senthil

Senthil <[EMAIL PROTECTED]> added the comment:

The issue is not just with null character. If you observe now the
diretion is 302-302-200 and there is no null character.
However, still urllib2 is unable to handle multiple redirection properly
(IIRC, there is a portion of code to handle multiple redirection and
exit on infinite loop)
>>> url = "http://www.wikispaces.com";
>>> opened = urllib.urlopen(url)
>>> print opened.geturl()
http://www.wikispaces.com?responseToken=344289da354a29c67d48928dbe72042a
>>> print opened.read()

400 Bad Request

400 Bad Request
nginx/0.6.30



Needs a relook, IMO.

--
nosy: +orsenthil

__
Tracker <[EMAIL PROTECTED]>

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



[issue2868] Problem with urllib and urllib2 in urlopen?

2008-05-15 Thread Senthil

Senthil <[EMAIL PROTECTED]> added the comment:

Here is my analysis:

>>> import urllib2
>>> url = "http://www.mercurynews.com/ci_9216417";
>>> content = urllib2.urlopen(url).read()
>>> print content

>>> opened = urllib2.urlopen(url)
>>> print opened.geturl()
https://secure.passport.mnginteractive.com/mngi/servletDispatch/ErightsPassportServlet.dyn?url=http://www.mercurynews.com/ci_9216417?nclick_check=1&forced=true

# This URL Redirection is a 302 Redirection. 
# Browser is "unable" to launch the redirected site.
https://secure.passport.mnginteractive.com/mngi/servletDispatch/ErightsPassportServlet.dyn?url=http://www.mercurynews.com/ci_9216417?nclick_check=1&forced=true
# Logically, the urllib /urllib2 is giving a Blank when reading this site.

I would't entire say urllib2's fault before understanding how FF is
handling the redirection of the first site.
1) Open the site mentioned in the Location of 302, you will experience
the same behaviour as 302.

It seems more of an issue at server end, we have to know how, Firefox is
handling at the first place.

--
nosy: +orsenthil

__
Tracker <[EMAIL PROTECTED]>

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



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

2008-05-15 Thread Bill Janssen

Bill Janssen <[EMAIL PROTECTED]> added the comment:

Here's what's in the 3.0 docs:

The parameter do_handshake_on_connect specifies whether to do the SSL
handshake automatically after doing a socket.connect(), or whether the
application program will call it explicitly, by invoking the
SSLSocket.do_handshake()method.
Calling
SSLSocket.do_handshake()explicitly
gives the program control over the blocking behavior of the
socket I/O involved in the handshake.

Look at test.test_ssl.testNonBlockingHandshake() in 3.0alpha or in the PyPI
module.  I'm still working on 2.6.

Bill

On Thu, May 15, 2008 at 3:56 PM, Jesús Cea Avión <[EMAIL PROTECTED]>
wrote:

>
> Jesús Cea Avión <[EMAIL PROTECTED]> added the comment:
>
> I'm hitting this issue aswell. How is going?.
>
> I'm creating a socket with a, let say, 5 seconds timeout. The timeout
> works fine before the "wrap_socket()", and after it. But the timeout
> doesn't work WHILE in the "wrap_socket()" method call.
>
> What can I do?.
>
> If I need to call "do_handshake()" myself, working with
> SSL_ERROR_WANT_READ/WRITE, I think this *needs* to be documented somewhere.
>
> That is, any difference between "normal" sockets and "ssl" sockets need
> to be documented in docs. Explicitly.
>
> My opinion, of course :).
>
> __
> Tracker <[EMAIL PROTECTED]>
> 
> __
>

Added file: http://bugs.python.org/file10337/unnamed

__
Tracker <[EMAIL PROTECTED]>

__Here's what's in the 3.0 docs:The parameter do_handshake_on_connect specifies whether to do the SSL
handshake automatically after doing a socket.connect(), or whether the
application program will call it explicitly, by invoking the http://docs.python.org/dev/3.0/library/ssl.html#ssl.SSLSocket.do_handshake";>SSLSocket.do_handshake()
method.  Calling http://docs.python.org/dev/3.0/library/ssl.html#ssl.SSLSocket.do_handshake";>SSLSocket.do_handshake() explicitly gives the 
program control over
the blocking behavior of the socket I/O involved in the 
handshake.Look at test.test_ssl.testNonBlockingHandshake() in 
3.0alpha or in the PyPI module.  I'm still working on 
2.6.Bill
On Thu, May 15, 2008 at 3:56 PM, Jesús Cea Avión [EMAIL PROTECTED]> wrote:

Jesús Cea Avión [EMAIL 
PROTECTED]> added the comment:

I'm hitting this issue aswell. How is going?.

I'm creating a socket with a, let say, 5 seconds timeout. The timeout
works fine before the "wrap_socket()", and after it. But the 
timeout
doesn't work WHILE in the "wrap_socket()" method call.

What can I do?.

If I need to call "do_handshake()" myself, working with
SSL_ERROR_WANT_READ/WRITE, I think this *needs* to be documented somewhere.

That is, any difference between "normal" sockets and "ssl" 
sockets need
to be documented in docs. Explicitly.

My opinion, of course :).

__
Tracker [EMAIL PROTECTED]>
http://bugs.python.org/issue1251>
__

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



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

2008-05-15 Thread Jesús Cea Avión

Jesús Cea Avión <[EMAIL PROTECTED]> added the comment:

I'm hitting this issue aswell. How is going?.

I'm creating a socket with a, let say, 5 seconds timeout. The timeout
works fine before the "wrap_socket()", and after it. But the timeout
doesn't work WHILE in the "wrap_socket()" method call.

What can I do?.

If I need to call "do_handshake()" myself, working with
SSL_ERROR_WANT_READ/WRITE, I think this *needs* to be documented somewhere.

That is, any difference between "normal" sockets and "ssl" sockets need
to be documented in docs. Explicitly.

My opinion, of course :).

__
Tracker <[EMAIL PROTECTED]>

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



[issue2867] curses-howto link in curses module documentation gives a 404

2008-05-15 Thread Benjamin Peterson

Benjamin Peterson <[EMAIL PROTECTED]> added the comment:

Usually, we don't bother fixing doc problems until the next major release.

--
nosy: +benjamin.peterson

__
Tracker <[EMAIL PROTECTED]>

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



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

2008-05-15 Thread Jesús Cea Avión

Changes by Jesús Cea Avión <[EMAIL PROTECTED]>:


--
nosy: +jcea

__
Tracker <[EMAIL PROTECTED]>

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



[issue2858] bsddb.db.DBEnv.lock_get test_lock.test03_set_timeout crashes

2008-05-15 Thread Gregory P. Smith

Changes by Gregory P. Smith <[EMAIL PROTECTED]>:


--
assignee:  -> jcea

__
Tracker <[EMAIL PROTECTED]>

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



[issue2837] OpenID wannabe

2008-05-15 Thread Martin v. Löwis

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

The reason to close this report is that you are not reporting a bug in
Python. Instead, you report an issue with the bug tracker itself. This
tracker is solely, only, exclusively, for bugs you find in the
implementation of Python often referred to as CPython.

Reporting it here is incorrect, and a reason to close the report. Please
report it in the place where problems with the bug tracker get reported
(you'll need yet another account over there as well. Feel free to use
the same username and password).

__
Tracker <[EMAIL PROTECTED]>

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



[issue1767370] Make xmlrpc use HTTP/1.1 and keepalive

2008-05-15 Thread Donovan Baarda

Donovan Baarda <[EMAIL PROTECTED]> added the comment:

One more time... this time after adding correct email addresses to my 
existing account...

Martín Conte Mac Donell wrote:
> Martín Conte Mac Donell <[EMAIL PROTECTED]> added the comment:
> 
> I made this patch works against trunk, also i'v fixed some typos.

Sorry for not responding to this earlier...

I didn't write this patch, but submitted it on behalf of the original
author (Cc'ed on this email). I spoke to him about getting this patch
updated, and he said that he has made some more improvements and fixes
since I submitted it.

I will try to get him to produce a new patch, but he (and I) are both
very busy on other things, so I suspect you guys will be able to polish
  up what is already there before we manage to pull something together...

I will give him another poke tomorrow...

> --
> nosy: +Reflejo
> versions: +Python 2.5
> Added file: http://bugs.python.org/file10313/xmlrpc-keepalive.diff
> 
> _
> Tracker <[EMAIL PROTECTED]>
> 
> _

_
Tracker <[EMAIL PROTECTED]>

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



[issue2871] store thread.get_ident() thread identifier inside threading.Thread objects

2008-05-15 Thread Irmen de Jong

New submission from Irmen de Jong <[EMAIL PROTECTED]>:

I've ran into a problem where it would be very nice to be able to tell
the tread.get_ident() of a given threading.Thread object.

Currently, when creating a new Thread object, there is no good way of
getting that thread's get_ident() value. 

I propose adding the get_ident() value as a publicly accessible field of
every threading.Thread object.

--
components: Extension Modules
messages: 66882
nosy: irmen
severity: normal
status: open
title: store thread.get_ident() thread identifier inside threading.Thread 
objects
type: feature request

__
Tracker <[EMAIL PROTECTED]>

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



[issue2868] Problem with urllib and urllib2 in urlopen?

2008-05-15 Thread Benjamin Peterson

Benjamin Peterson <[EMAIL PROTECTED]> added the comment:

This is what happens on the trunk:

>>> import urllib
>>> u = 'http://www.mercurynews.com/ci_9216417'
>>> h = urllib.urlopen(u).read()
Traceback (most recent call last):
  File "", line 1, in 
  File "/temp/python/trunk/Lib/ssl.py", line 333, in read
data = self._sslobj.read(recv_size)
ssl.SSLError: [Errno 8] _ssl.c:1276: EOF occurred in violation of protocol

--
nosy: +benjamin.peterson

__
Tracker <[EMAIL PROTECTED]>

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



[issue2870] cmathmodule.c compile error

2008-05-15 Thread Juno

New submission from Juno <[EMAIL PROTECTED]>:

Building on Linux Debian Etch 2.6.18-6-k7 #1 SMP Thu May 8 08:09:57 UTC
2008 i686 GNU/Linux

Python version 2.6 svn trunk:63321
Compiler : GCC 4.1.2
Compile error in Modules/cmathmodule.c

Detailled error message follows :

building 'cmath' extension
gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -I. -I/data/User/AppSVN/Python/./Include -I.
-IInclude -I./Include -I/usr/local/include
-I/data/User/AppSVN/Python/Include -I/data/User/AppSVN/Python -c
/data/User/AppSVN/Python/Modules/cmathmodule.c -o
build/temp.linux-i686-2.6/data/User/AppSVN/Python/Modules/cmathmodule.o
/data/User/AppSVN/Python/Modules/cmathmodule.c: In function 'cmath_phase':
/data/User/AppSVN/Python/Modules/cmathmodule.c:923: error: 'r'
undeclared (first use in this function)
/data/User/AppSVN/Python/Modules/cmathmodule.c:923: error: (Each
undeclared identifier is reported only once
/data/User/AppSVN/Python/Modules/cmathmodule.c:923: error: for each
function it appears in.)

Checking previous function in the file cmathmodule.c, it seems that you
have to declare line 916 :
Py_complex z,r;

After this correction the compilation is ok. I do not test the function
itself, I just try to have the code compiling.

--
components: Extension Modules
messages: 66880
nosy: Juno
severity: normal
status: open
title: cmathmodule.c compile error
type: compile error
versions: Python 2.6

__
Tracker <[EMAIL PROTECTED]>

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



[issue2860] re module fails to handle digits in byte strings

2008-05-15 Thread Benjamin Peterson

Benjamin Peterson <[EMAIL PROTECTED]> added the comment:

I think it's debatable whether re should byte strings since it is
searching through text and not raw binary data. However, this may be a
case of practicality over purity.

--
nosy: +benjamin.peterson

__
Tracker <[EMAIL PROTECTED]>

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



[issue2854] Add gestalt back into Python 3.0

2008-05-15 Thread Benjamin Peterson

Benjamin Peterson <[EMAIL PROTECTED]> added the comment:

Here's a patch. I moved gestalt to Modules and renamed it _gestalt. I
inlined the few lines of pymactoolbox that I needed, so that doesn't
have to come back.

--
keywords: +patch
Added file: http://bugs.python.org/file10336/gestalt_is_back.patch

__
Tracker <[EMAIL PROTECTED]>

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



[issue2865] syntax error in fix_imports.py

2008-05-15 Thread Benjamin Peterson

Changes by Benjamin Peterson <[EMAIL PROTECTED]>:


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

__
Tracker <[EMAIL PROTECTED]>

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



[issue2869] Wrong doc for `calendar.Calendar.iterweekdays`

2008-05-15 Thread Alexander Belopolsky

Changes by Alexander Belopolsky <[EMAIL PROTECTED]>:


--
keywords: +patch
Added file: http://bugs.python.org/file10335/issue2869.diff

__
Tracker <[EMAIL PROTECTED]>

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



[issue2863] Generator __name__ and better repr()

2008-05-15 Thread Alexander Belopolsky

Alexander Belopolsky <[EMAIL PROTECTED]> added the comment:

Any reason why generator object repr is formed differently from
function and code?

>>> def f(): yield 1
...
>>> f()

>>> f

>>> f.__code__
", line 1>

--
nosy: +belopolsky

__
Tracker <[EMAIL PROTECTED]>

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



[issue2755] IDLE ignores module change before restart

2008-05-15 Thread Mark Veldhuis

Mark Veldhuis <[EMAIL PROTECTED]> added the comment:

Interesting. I click on an icon-launcher in my panel. The command in the
launcher's properties is: "/usr/bin/idle-python2.5 -n". I got the icon
by dragging the regular icon from under applications-programming-Idle to
the panel.

__
Tracker <[EMAIL PROTECTED]>

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



[issue2861] Patch to rename markupbase to _markupbase

2008-05-15 Thread Brett Cannon

Brett Cannon <[EMAIL PROTECTED]> added the comment:

Added as a dependency on issue 2775 so as to not lose this patch.

--
nosy: +brett.cannon

__
Tracker <[EMAIL PROTECTED]>

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



[issue2775] Implement PEP 3108

2008-05-15 Thread Brett Cannon

Changes by Brett Cannon <[EMAIL PROTECTED]>:


--
dependencies: +Patch to rename markupbase to _markupbase

__
Tracker <[EMAIL PROTECTED]>

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



[issue2869] Wrong doc for `calendar.Calendar.iterweekdays`

2008-05-15 Thread Jochen Kupperschmidt

New submission from Jochen Kupperschmidt <[EMAIL PROTECTED]>:

The documentation for `calendar.Calendar.iterweekdays` (both 2.5 and
2.6a3 online) states that the method would take an argument `weekday`.
However, testing it and looking at the module source reveals that it
takes no arguments.

--
assignee: georg.brandl
components: Documentation
messages: 66874
nosy: georg.brandl, yogi
severity: normal
status: open
title: Wrong doc for `calendar.Calendar.iterweekdays`
versions: Python 2.5, Python 2.6

__
Tracker <[EMAIL PROTECTED]>

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



[issue2866] syntax error in fix_imports.py

2008-05-15 Thread Collin Winter

Collin Winter <[EMAIL PROTECTED]> added the comment:

Fixed in r63321

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

__
Tracker <[EMAIL PROTECTED]>

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



[issue2868] Problem with urllib and urllib2 in urlopen?

2008-05-15 Thread Ambarish Malpani

New submission from Ambarish Malpani <[EMAIL PROTECTED]>:

I have the following code:

import urllib
u = 'http://www.mercurynews.com/ci_9216417'
h = urllib.urlopen(u).read()
print h
# Get an empty string
#(can use urllib2 also - get the same behavior)

If I visit the same page with my browser, get the contents of the page
(after some redirects...)

--
components: Extension Modules
messages: 66872
nosy: ambarish
severity: normal
status: open
title: Problem with urllib and urllib2 in urlopen?
type: behavior
versions: Python 2.5

__
Tracker <[EMAIL PROTECTED]>

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



[issue2867] curses-howto link in curses module documentation gives a 404

2008-05-15 Thread Devin Jeanpierre

New submission from Devin Jeanpierre <[EMAIL PROTECTED]>:

In the curses module documentation < http://docs.python.org/lib/module-
curses.html >, there is a link to a curses-howto, at < 
http://www.python.org/doc/howto/curses/curses.html >. That page doesn't 
exist: it gives an HTTP 404.

I am aware that the last time I reported a documentation error it was 
actually fixed in the unreleased most recent version of the docs. I am 
not sure where that was meant-- I can't find anything but the 2.6 alpha 
docs < http://docs.python.org/dev/ >, where the error is indeed 
corrected (< http://docs.python.org/dev/library/curses.html >, < 
http://docs.python.org/dev/howto/curses.html >). If was what was meant 
(I'd always thought that errors would get corrected right away (in the 
same version), so it doesn't fit with my expectations), then I 
apologize for making a wasteful report. I figured that it would be 
better to risk a bit of time wasted than leave an error until later.

--
assignee: georg.brandl
components: Documentation
messages: 66871
nosy: Devin Jeanpierre, georg.brandl
severity: normal
status: open
title: curses-howto link in curses module documentation gives a 404
versions: Python 2.5

__
Tracker <[EMAIL PROTECTED]>

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



[issue429031] Text widget, bindtags and Tabs

2008-05-15 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

The "tab" key is bound globally to move the focus to the next widget,
but that is not what you would want for a text widget. So, text widgets
breaks the natural flow of tab key events to achieve this, and, when you
specify bindings like that (in your "not ok" example), it stops your
widget-level binding from firing.

I don't see anything to be fixed here, so I'm closing it.

--
nosy: +gpolo
resolution:  -> invalid
status: open -> closed


Tracker <[EMAIL PROTECTED]>


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



[issue2866] syntax error in fix_imports.py

2008-05-15 Thread Stijn van Drongelen

New submission from Stijn van Drongelen <[EMAIL PROTECTED]>:

In the current revision of 2to3 (63319), somebody forgot a comma at the
end of line 27 of lib2to3/fix_imports.py, resulting in a syntax error.

--
assignee: collinwinter
components: 2to3 (2.x to 3.0 conversion tool)
files: fix_imports-syntaxerror-63319.patch
keywords: patch
messages: 66869
nosy: Tinctorius, collinwinter
severity: normal
status: open
title: syntax error in fix_imports.py
type: compile error
Added file: http://bugs.python.org/file10334/fix_imports-syntaxerror-63319.patch

__
Tracker <[EMAIL PROTECTED]>

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



[issue2755] IDLE ignores module change before restart

2008-05-15 Thread Kurt B. Kaiser

Kurt B. Kaiser <[EMAIL PROTECTED]> added the comment:

Sorry for the delay.

OK, we are getting closer.  Please tell me exactly how you start IDLE.

__
Tracker <[EMAIL PROTECTED]>

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



[issue2865] syntax error in fix_imports.py

2008-05-15 Thread Stijn van Drongelen

New submission from Stijn van Drongelen <[EMAIL PROTECTED]>:

In the current revision of 2to3 (63319), somebody forgot a comma at the
end of line 27 of lib2to3/fix_imports.py, resulting in a syntax error.

--
assignee: collinwinter
components: 2to3 (2.x to 3.0 conversion tool)
files: fix_imports-syntaxerror-63319.patch
keywords: patch
messages: 66867
nosy: Tinctorius, collinwinter
severity: normal
status: open
title: syntax error in fix_imports.py
type: compile error
Added file: http://bugs.python.org/file10333/fix_imports-syntaxerror-63319.patch

__
Tracker <[EMAIL PROTECTED]>

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



[issue2857] add codec for java modified utf-8

2008-05-15 Thread Georg Brandl

Georg Brandl <[EMAIL PROTECTED]> added the comment:

Since we also support oddball codecs like UTF-8-SIG, why not this one too?

Given the importance of UTF-8, it seems a good idea to support common
variations.

--
nosy: +georg.brandl

__
Tracker <[EMAIL PROTECTED]>

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



[issue2863] Generator __name__ and better repr()

2008-05-15 Thread Georg Brandl

Georg Brandl <[EMAIL PROTECTED]> added the comment:

Okay, committed as r63320.

--
resolution:  -> accepted
status: open -> closed

__
Tracker <[EMAIL PROTECTED]>

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



[issue967161] pty.spawn() enhancements

2008-05-15 Thread Petr Splichal

Petr Splichal <[EMAIL PROTECTED]> added the comment:

Is there any plan to modify pty.spawn() so that it reports child's
status? I think this would be really a very useful feature.
Thanx!

--
nosy: +psss


Tracker <[EMAIL PROTECTED]>


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



[issue2857] add codec for java modified utf-8

2008-05-15 Thread paul rubin

paul rubin <[EMAIL PROTECTED]> added the comment:

I'm not sure what you mean by "ditto for Lucene indexes".  I wasn't
planning to use C code.  I was hoping to write Python code to parse
those indexes, then found they use this weird encoding, and Python's
codec set is fairly inclusive already, so this codec sounded like a
reasonably useful addition.  It probably shows up other places as well.
 It might even be a reasonable internal representation for Python, which
as I understand it currently can't represent codepoints outside the BMP.
 Also, it is used in Java serialization, which I think of as a somewhat
weird and whacky thing, but it's conceivable that somebody someday might
want to write a Python program that speaks the Java serialization
protocol (I don't have a good sense of whether that's feasible).

Writing an application specific codec with the C API is doable in
principle, but it seems like an awful lot of effort for just one quickie
program.  These indexes are very large and so writing the codec in
Python would probably be painfully slow.

__
Tracker <[EMAIL PROTECTED]>

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



[issue2864] etree: Add XPath documentation

2008-05-15 Thread Thomas Guettler

New submission from Thomas Guettler <[EMAIL PROTECTED]>:

The current documentation of etree [1] does not explain the 
syntax of the supported xpaths.


[1] current documation:
http://docs.python.org/lib/elementtree-elementtree-objects.html

[2] ElementTree supported XPath:
http://effbot.org/zone/element-xpath.htm

It would be very nice to have some simple examples for myetree.find(xpath).

--
assignee: georg.brandl
components: Documentation
messages: 66863
nosy: georg.brandl, guettli
severity: normal
status: open
title: etree: Add XPath documentation
type: feature request

__
Tracker <[EMAIL PROTECTED]>

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



[issue2863] Generator __name__ and better repr()

2008-05-15 Thread svncodereview

svncodereview <[EMAIL PROTECTED]> added the comment:

Dear report,

New code review comments by GvR have been published.
Please go to http://codereview.appspot.com/1046 to read them.

Message:
Looks good to me.

Details:

Issue Description:
http://bugs.python.org/issue2863

Sincerely,

  Your friendly code review daemon (http://codereview.appspot.com/).

--
nosy: +svncodereview

__
Tracker <[EMAIL PROTECTED]>

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



[issue2863] Generator __name__ and better repr()

2008-05-15 Thread Georg Brandl

New submission from Georg Brandl <[EMAIL PROTECTED]>:

As discussed on python-ideas:
http://mail.python.org/pipermail/python-ideas/2008-May/001570.html

--
assignee: gvanrossum
components: Interpreter Core
files: gen-name.diff
keywords: patch, patch
messages: 66859
nosy: georg.brandl, gvanrossum
priority: normal
severity: normal
status: open
title: Generator __name__ and better repr()
type: feature request
versions: Python 2.6, Python 3.0
Added file: http://bugs.python.org/file10332/gen-name.diff

__
Tracker <[EMAIL PROTECTED]>

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



[issue2862] cleanup of freelist management

2008-05-15 Thread Andrew I MacIntyre

New submission from Andrew I MacIntyre <[EMAIL PROTECTED]>:

In r60567, support for compacting the int & float freelists was added
with a function in the sys module to call the compaction routines.

Since then, other freelist clearing routines have been added to other
types and are called from the collect() function in the gc module.

The attached patch harmonises the in/float freelist compaction with the
other freelist clearing mechanisms.  It does away with the function in
the sys module in favour of running the freelist clearing from gc.collect().

The signatures of the type specific freelist clearing routines have been
brought into line with the other type freelist clearing routines, with
the exception that they return the number of items _not_ free()ed,
rather than the number of items free()ed.  I took this approach to try
and highlight the fact the current int/float freelist implementations
don't use pymalloc and not all items will always be free()ed when the
routine is called.  This return is ignored when called from gc.collect()
in any case.

The patch includes doc updates and test updates to reflect the changes.
 It has been tested on FreeBSD 6.3, surviving a default test run with no
unusual test failures as far as I can tell.  It is not otherwise
rigorously tested.

The patch is against a trunk checkout that seems to be at r63156.

Ideally this patch, or similar modifications, should be applied before
the feature freeze for 2.6, so that freelist management is rationalised
to one way to do it.

--
assignee: christian.heimes
components: Documentation, Interpreter Core, Tests
files: freelist_mgt_cleanup.patch
keywords: patch, patch
messages: 66858
nosy: aimacintyre, christian.heimes
priority: high
severity: normal
status: open
title: cleanup of freelist management
type: behavior
versions: Python 2.6
Added file: http://bugs.python.org/file10331/freelist_mgt_cleanup.patch

__
Tracker <[EMAIL PROTECTED]>

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



[issue2857] add codec for java modified utf-8

2008-05-15 Thread Marc-Andre Lemburg

Marc-Andre Lemburg <[EMAIL PROTECTED]> added the comment:

TCL only uses the codec for internal represenation. You might want to
interface to TCL at the C level and use the codec there, but is that
really a good reason to include the codec in the Python stdlib ?

Dito for parsing Lucene indexes.

I think you're better off writing your own codec and registering it with
the Python codec registry at application start-up time.

__
Tracker <[EMAIL PROTECTED]>

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



[issue2837] OpenID wannabe

2008-05-15 Thread anatoly techtonik

anatoly techtonik <[EMAIL PROTECTED]> added the comment:

I mean that it is rather common practice for internet projects that
every member of community has one one login that works for all services
this community uses. This is called "single sign-on" or SSO
http://en.wikipedia.org/wiki/Single_sign-on

So far I have only one login that works in bugtracker and I thought that
I can used it for other python.org services as well. My mistake, sorry.
In my previous post I've just asked about how many logins should I have
to use sites that share common design and navigation element you may see
on the left? What are other services except bugtracker that require
registration? I know there is at least wiki should allow login to edit
restricted pages.

My mistake is not a reason to close this bug report. OpenID just should
wait for SSO system to appear, if of course there will be something else
besides this bugtracker to login. Like code review system.

__
Tracker <[EMAIL PROTECTED]>

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



[issue2857] add codec for java modified utf-8

2008-05-15 Thread paul rubin

paul rubin <[EMAIL PROTECTED]> added the comment:

Also, according to wikipedia, tcl also uses that encoding.

__
Tracker <[EMAIL PROTECTED]>

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



[issue2857] add codec for java modified utf-8

2008-05-15 Thread paul rubin

paul rubin <[EMAIL PROTECTED]> added the comment:

Some java applications use it externally.  The purpose seems to be to
prevent NUL bytes from appearing inside encoded strings which can
confuse C libraries that expect NUL's to terminate strings.  My
immediate application is parsing lucene indexes:

http://lucene.apache.org/java/docs/fileformats.html#Chars

__
Tracker <[EMAIL PROTECTED]>

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



[issue2775] Implement PEP 3108

2008-05-15 Thread Mauricio Vieira

Changes by Mauricio Vieira <[EMAIL PROTECTED]>:


--
nosy:  -mbcvieira

__
Tracker <[EMAIL PROTECTED]>

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



[issue2861] Patch to rename markupbase to _markupbase

2008-05-15 Thread Quentin Gallet-Gilles

Changes by Quentin Gallet-Gilles <[EMAIL PROTECTED]>:


Removed file: http://bugs.python.org/file10329/markupbase_renaming_2.6.patch

__
Tracker <[EMAIL PROTECTED]>

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



[issue2861] Patch to rename markupbase to _markupbase

2008-05-15 Thread Quentin Gallet-Gilles

Quentin Gallet-Gilles <[EMAIL PROTECTED]> added the comment:

Actually, the test___all__ check is an error since _markupbase has no
__all__ attribute. I've restored the first version of the patch.

Added file: http://bugs.python.org/file10330/markupbase_renaming_2.6.patch

__
Tracker <[EMAIL PROTECTED]>

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



[issue2857] add codec for java modified utf-8

2008-05-15 Thread Marc-Andre Lemburg

Marc-Andre Lemburg <[EMAIL PROTECTED]> added the comment:

What would you use such a codec for ?

>From the references you gave, it is only used internally for Java object
serialization, so wouldn't really be of much use in Python.

--
nosy: +lemburg
title: add coded for java modified utf-8 -> add codec for java modified utf-8

__
Tracker <[EMAIL PROTECTED]>

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



[issue2861] Patch to rename markupbase to _markupbase

2008-05-15 Thread Quentin Gallet-Gilles

Changes by Quentin Gallet-Gilles <[EMAIL PROTECTED]>:


Removed file: http://bugs.python.org/file10327/markupbase_renaming_2.6.patch

__
Tracker <[EMAIL PROTECTED]>

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



[issue2861] Patch to rename markupbase to _markupbase

2008-05-15 Thread Quentin Gallet-Gilles

Quentin Gallet-Gilles <[EMAIL PROTECTED]> added the comment:

Updated patch : I forgot to add a check in test___all__

Added file: http://bugs.python.org/file10329/markupbase_renaming_2.6.patch

__
Tracker <[EMAIL PROTECTED]>

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



  1   2   >