[issue11563] test_urllibnet is triggering a ResourceWarning

2011-03-19 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 53c8f2bd0316 by Senthil Kumaran in branch '3.2':
Add NEWS for  Issue #11563.
http://hg.python.org/cpython/rev/53c8f2bd0316

--

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



[issue11282] 3.3 unittest document not kept consist with code

2011-03-19 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
assignee: michael.foord - ezio.melotti

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



[issue11567] http.server error message format

2011-03-19 Thread Senthil Kumaran

Senthil Kumaran orsent...@gmail.com added the comment:

Ezio Melotti wrote:

 This is just nitpicking, but serving XHTML as text/html is wrong.  

While, I thought this statement is correct and expected the Internet
media-type should be something else (application/xhtml+xml), but as
per w3c, it is not wrong to serve XHTML as text/html (RFC 3236)

Also, have a look at the example given at:

http://www.w3.org/QA/2002/04/Web-Quality

Validating the present output using the validator will give a green
signal too.

Also  XHTML is not necessary here, so I would just use an HTML 4.01
strict doctype (and remove the xmlns).

Agree to this. Although at the moment it does not cause any harm, it
is a good to be plain HTML when it is a http server.

Éric - HTML5 is not a standard yet and when it becomes one (or much
earlier, when it becomes a de-facto standard), then html producing
stdlib modules should move to it. I don't think we should move faster
than browsers or html client applications.

--

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



[issue7198] Extraneous newlines with csv.writer on Windows

2011-03-19 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset ab27f16f707a by R David Murray in branch 'default':
#7198: add newlines='' to csv.writer docs.
http://hg.python.org/cpython/rev/ab27f16f707a

New changeset 959f666470cc by R David Murray in branch 'default':
Merge #7198 doc fix.
http://hg.python.org/cpython/rev/959f666470cc

New changeset 9d1b1a95bc8f by R David Murray in branch 'default':
Merge #7198 doc fix.
http://hg.python.org/cpython/rev/9d1b1a95bc8f

--
nosy: +python-dev

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



[issue7198] Extraneous newlines with csv.writer on Windows

2011-03-19 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Fixed now.  Thanks, and sorry for the delay, and the confusion.

--
resolution: accepted - fixed
stage: needs patch - committed/rejected

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



[issue11567] http.server error message format

2011-03-19 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 135a0d7bc4db by Senthil Kumaran in branch '3.1':
Issue #11567 - Let's have the DOCTYPE as HTML instead of XHTML.
http://hg.python.org/cpython/rev/135a0d7bc4db

--

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



[issue10050] urllib.request still has old 2.x urllib primitives

2011-03-19 Thread Jeff McNeil

Jeff McNeil j...@jmcneil.net added the comment:

Take four! Includes Antoine's suggestions. I changed the callback to return 
(block num, read size, file size) as opposed to (block num, block size, file 
size) as this seems to make more sense. 

I appreciate the back and forth. I'd be happy to create issues  handle the 
other things that have been moved out of this patch.

--
Added file: http://bugs.python.org/file21299/issue10050.patch

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



[issue3080] Full unicode import system

2011-03-19 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 6c80ac44ae9c by Victor Stinner in branch 'default':
Issue #3080: zipimport has a full unicode suppport
http://hg.python.org/cpython/rev/6c80ac44ae9c

New changeset b50a0d44545a by Victor Stinner in branch 'default':
Issue #3080: PyImport_Cleanup() uses Unicode
http://hg.python.org/cpython/rev/b50a0d44545a

New changeset e7c1019b27b9 by Victor Stinner in branch 'default':
Issue #3080: Add PyImport_ImportFrozenModuleObject()
http://hg.python.org/cpython/rev/e7c1019b27b9

New changeset 2425717c6430 by Victor Stinner in branch 'default':
Issue #3080: Import builtins using Unicode strings
http://hg.python.org/cpython/rev/2425717c6430

New changeset ced52fcd95f6 by Victor Stinner in branch 'default':
Issue #3080: Use PyUnicode_InternFromString() for builtins
http://hg.python.org/cpython/rev/ced52fcd95f6

New changeset e63a583ec689 by Victor Stinner in branch 'default':
Issue #3080: Document the name attribute of the _inittab structure
http://hg.python.org/cpython/rev/e63a583ec689

New changeset bab42673674a by Victor Stinner in branch 'default':
Issue #3080: _PyWin_FindRegisteredModule() returns the path as Unicode
http://hg.python.org/cpython/rev/bab42673674a

New changeset ef2b6305d395 by Victor Stinner in branch 'default':
Issue #3080: _PyImport_LoadDynamicModule() uses Unicode for name and path
http://hg.python.org/cpython/rev/ef2b6305d395

New changeset d52f471fbbeb by Victor Stinner in branch 'default':
Issue #3080: find_module() initialize buf and *p_fp
http://hg.python.org/cpython/rev/d52f471fbbeb

New changeset bdf5820f5a39 by Victor Stinner in branch 'default':
Issue #3080: Remove useless name buffer from find_module()
http://hg.python.org/cpython/rev/bdf5820f5a39

New changeset a4d797b9ff63 by Victor Stinner in branch 'default':
Issue #3080: Create find_module_path_list() subfunction
http://hg.python.org/cpython/rev/a4d797b9ff63

New changeset 09aaac73d9cf by Victor Stinner in branch 'default':
Issue #3080: Create find_module_path() subfunction
http://hg.python.org/cpython/rev/09aaac73d9cf

New changeset f6507eb8e689 by Victor Stinner in branch 'default':
Issue #3080: get_sourcefile(), make_source_pathname(), load_package()
http://hg.python.org/cpython/rev/f6507eb8e689

New changeset d24decc8c97e by Victor Stinner in branch 'default':
Issue #3080: Use Unicode to import source and compiled modules
http://hg.python.org/cpython/rev/d24decc8c97e

New changeset 64c21f364519 by Victor Stinner in branch 'default':
Issue #3080: load_module() expects name and path as Unicode
http://hg.python.org/cpython/rev/64c21f364519

New changeset e55e7f197649 by Victor Stinner in branch 'default':
Issue #3080: PyImport_ImportModuleNoBlock() uses Unicode
http://hg.python.org/cpython/rev/e55e7f197649

New changeset 7c67aa3ab531 by Victor Stinner in branch 'default':
Issue #3080: Use Unicode for the The Magnum Opus of dotted-name import
http://hg.python.org/cpython/rev/7c67aa3ab531

New changeset 23fe237afa81 by Victor Stinner in branch 'default':
Issue #3080: Use %R to format module name in error messages
http://hg.python.org/cpython/rev/23fe237afa81

New changeset 2ee0ab9d2e8a by Victor Stinner in branch 'default':
Issue #3080: Reindent and simplify import_submodule()
http://hg.python.org/cpython/rev/2ee0ab9d2e8a

New changeset 340f76a6a792 by Victor Stinner in branch 'default':
Issue #3080: Drop OS/2 support for the import machinery
http://hg.python.org/cpython/rev/340f76a6a792

New changeset 156818529636 by Victor Stinner in branch 'default':
Issue #3080: find_module() expects module fullname and subname as Unicode
http://hg.python.org/cpython/rev/156818529636

New changeset fe1d421ca3fa by Victor Stinner in branch 'default':
Issue #3080: Rename some path variables to path_list
http://hg.python.org/cpython/rev/fe1d421ca3fa

New changeset c1a5a7dca1ec by Victor Stinner in branch 'default':
Issue #3080: find_module() sets an empty path for builtin and frozen modules
http://hg.python.org/cpython/rev/c1a5a7dca1ec

New changeset c4ccf02456d6 by Victor Stinner in branch 'default':
Issue #3080: Refactor find_module_path(), use return instead of break
http://hg.python.org/cpython/rev/c4ccf02456d6

New changeset 298a70b27497 by Victor Stinner in branch 'default':
Issue #3080: find_init_module() expects Unicode
http://hg.python.org/cpython/rev/298a70b27497

New changeset 066b399a8477 by Victor Stinner in branch 'default':
Issue #3080: case_ok() expects Unicode strings
http://hg.python.org/cpython/rev/066b399a8477

New changeset 9aec6f0e4076 by Victor Stinner in branch 'default':
Issue #3080: find_module() returns the path as Unicode
http://hg.python.org/cpython/rev/9aec6f0e4076

New changeset c17bc2026145 by Victor Stinner in branch 'default':
Issue #3080: imp.new_module() uses Unicode
http://hg.python.org/cpython/rev/c17bc2026145

New changeset c4361bab6914 by Victor Stinner in branch 'default':
Issue #3080: Use repr() to format the module name on error

[issue3080] Full unicode import system

2011-03-19 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset f8d6f6797909 by Victor Stinner in branch 'default':
Issue #3080: Fix case_ok() using case_bytes()
http://hg.python.org/cpython/rev/f8d6f6797909

--

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



[issue3080] Full unicode import system

2011-03-19 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset dc38c4d65cd9 by Victor Stinner in branch 'default':
Issue #3080: Fix call to case_ok() in find_init_module()
http://hg.python.org/cpython/rev/dc38c4d65cd9

--

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



[issue7198] Extraneous newlines with csv.writer on Windows

2011-03-19 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Gah, I messed up the push.  Now I have to backport the doc fix :(

--

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



[issue7198] Extraneous newlines with csv.writer on Windows

2011-03-19 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
assignee: skip.montanaro - r.david.murray
status: closed - open

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



[issue10050] urllib.request still has old 2.x urllib primitives

2011-03-19 Thread Senthil Kumaran

Senthil Kumaran orsent...@gmail.com added the comment:

Thanks again.

Agree to use of returning the block size to the returnhook callable.
But this is going be a deviation from the existing behavior which was
present to inform the user at regular intervals and did not bother to
provide any 'progressive size' related data, so this change should
documented as new behavior.

With respect to the docs patch in urllib2 howto I would do something
like this.

with open(local_filename) as fh: 
 content = fh.read()

Or *better* would demonstrate the filename argument passing and
reporthook functionality. If you wish, take this part alone, (the
howto document) update as separate patch, which should be committed
once this is in.

There is one comment which I forgot to mention earlier.

The current urlretrieve function is internally calling the URLOpener's
retrieve method. 

Those URLOpener class might need a DeprecationWarning while address
thing bug and that particular retrieve method can be updated to use
the updated facility just as bonus till the time it survives.

Antoine - any suggestions on the last point?

--

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



[issue11603] Python crashes or hangs when rebinding __repr__ as __str__

2011-03-19 Thread Andreas Stührk

Andreas Stührk andy-pyt...@hammerhartes.de added the comment:

On Sat, Mar 19, 2011 at 12:41 AM, Terry J. Reedy rep...@bugs.python.org wrote:
 Whether or not this fixes issue ('should' is a bit vague, confirmation is 
 needed) this seems like a good idea.

Yes, it fixes the issue. I wrote should because I was a bit in a
hurry and hadn't put much thought into whether it's the best way to
fix that issue (or if there even is an issue that should be fixed).
Now that I thought a bit more about it, I think it's a decent fix for
the issue. There is still the possibility that a custom __repr__
method calls `object.__str__`, but that will either raise a
RuntimeError at some point (due to stack exhaustion; if the method is
a Python method) or it's a case of well, don't do that (if the
method is implemented in C).

 However, I also do not know where to put it as there is no test_object or 
 test_typeobject file that I see.

I updated the patch and put a test into test_class which seemed like a
good place for it to me. Also, I did the patch against the 3.1 branch
this time, so it can be forward-ported.

--

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



[issue11603] Python crashes or hangs when rebinding __repr__ as __str__

2011-03-19 Thread Andreas Stührk

Changes by Andreas Stührk andy-pyt...@hammerhartes.de:


Removed file: http://bugs.python.org/file21283/issue_11603.patch

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



[issue11603] Python crashes or hangs when rebinding __repr__ as __str__

2011-03-19 Thread Andreas Stührk

Changes by Andreas Stührk andy-pyt...@hammerhartes.de:


Added file: http://bugs.python.org/file21300/issue_11603.patch

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



[issue11611] wxPython PropertyGrid Demo error and fix

2011-03-19 Thread Arif Zaman

Arif Zaman arifza...@gmail.com added the comment:

Thanks, will do.

Arif

On Sun, Mar 20, 2011 at 2:35 AM, Ned Deily rep...@bugs.python.org wrote:


 Ned Deily n...@acm.org added the comment:

 What demo file are you referring to?  If it is something to do with
 wxPython, you probably want to refer to the bug tracker for that project.
  wxPython is not part of the standard Python library.

 See http://www.wxpython.org/ and http://trac.wxwidgets.org/

 --
 nosy: +ned.deily
 status: open - pending

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue11611
 ___


--
status: pending - open
Added file: http://bugs.python.org/file21301/unnamed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11611
___Thanks, will do.divbr/divdivArifbrbrdiv class=gmail_quoteOn 
Sun, Mar 20, 2011 at 2:35 AM, Ned Deily span dir=ltrlt;a 
href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt;/span 
wrote:br

blockquote class=gmail_quote style=margin:0 0 0 .8ex;border-left:1px #ccc 
solid;padding-left:1ex;br
Ned Deily lt;a href=mailto:n...@acm.org;n...@acm.org/agt; added the 
comment:br
br
What demo file are you referring to?  If it is something to do with wxPython, 
you probably want to refer to the bug tracker for that project.  wxPython is 
not part of the standard Python library.br
br
See a href=http://www.wxpython.org/; 
target=_blankhttp://www.wxpython.org//a and a 
href=http://trac.wxwidgets.org/; 
target=_blankhttp://trac.wxwidgets.org//abr
br
--br
nosy: +ned.deilybr
status: open -gt; pendingbr
divdiv/divdiv class=h5br
___br
Python tracker lt;a 
href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt;br
lt;a href=http://bugs.python.org/issue11611; 
target=_blankhttp://bugs.python.org/issue11611/agt;br
___br
/div/div/blockquote/divbr/div
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11611] wxPython PropertyGrid Demo error and fix

2011-03-19 Thread Ned Deily

Changes by Ned Deily n...@acm.org:


--
resolution:  - invalid
stage:  - committed/rejected
status: open - closed
type: compile error - 

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



[issue11612] xml.dom.minidom fail to parse SVG file.

2011-03-19 Thread Campbell Barton

New submission from Campbell Barton ideasma...@gmail.com:

python3.2mu -c import xml.dom.minidom ; 
xml.dom.minidom.parse('gnome-cpu-frequency-applet.svg')

--- gives the following traceback
Traceback (most recent call last):
  File string, line 1, in module
  File /usr/lib/python3.2/xml/dom/minidom.py, line 1939, in parse
return expatbuilder.parse(file)
  File /usr/lib/python3.2/xml/dom/expatbuilder.py, line 924, in parse
result = builder.parseFile(fp)
  File /usr/lib/python3.2/xml/dom/expatbuilder.py, line 207, in parseFile
parser.Parse(buffer, 0)
  File /usr/lib/python3.2/xml/dom/expatbuilder.py, line 354, in 
first_element_handler
self.start_element_handler(name, attributes)
  File /usr/lib/python3.2/xml/dom/expatbuilder.py, line 779, in 
start_element_handler
uri, localname, prefix, qname = _parse_ns_name(self, aname)
  File /usr/lib/python3.2/xml/dom/expatbuilder.py, line 127, in _parse_ns_name
uri, localname = parts
ValueError: too many values to unpack (expected 2)

--
components: Extension Modules
files: gnome-cpu-frequency-applet.svg
messages: 131479
nosy: ideasman42
priority: normal
severity: normal
status: open
title: xml.dom.minidom fail to parse SVG file.
type: crash
versions: Python 3.2
Added file: http://bugs.python.org/file21302/gnome-cpu-frequency-applet.svg

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



<    1   2