[issue12707] Deprecate addinfourl getters

2011-08-08 Thread Nadeem Vawda

Changes by Nadeem Vawda nadeem.va...@gmail.com:


--
nosy: +nadeem.vawda

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



[issue12437] _ctypes.dlopen does not include errno in OSError

2011-08-08 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Indeed, it looks more like a bug in the POSIX standard unfortunately.
I'm suggesting to close as won't fix.

--
nosy: +pitrou
resolution:  - wont fix
status: open - pending

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



[issue12700] test_faulthandler fails on Mac OS X Lion

2011-08-08 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
keywords: +easy
nosy: +haypo

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



[issue12646] zlib.Decompress.decompress/flush do not raise any exceptions when given truncated input streams

2011-08-08 Thread Nadeem Vawda

Changes by Nadeem Vawda nadeem.va...@gmail.com:


--
stage:  - patch review

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



[issue12437] _ctypes.dlopen does not include errno in OSError

2011-08-08 Thread Matt Joiner

Matt Joiner anacro...@gmail.com added the comment:

I didn't notice there was no use of errno. It's quite possible that dlopen 
might be used without the C library present, so perhaps this is why it wasn't 
included. The error strings however are very C-like, which made me think of 
this in the first place. Thanks all.

--
status: pending - open

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



[issue12437] _ctypes.dlopen does not include errno in OSError

2011-08-08 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
status: open - closed

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



[issue12708] multiprocessing.Pool is missing a starmap[_async]() method.

2011-08-08 Thread Hynek Schlawack

New submission from Hynek Schlawack h...@ox.cx:

After I've seen a co-worker to unpack tuples while using 
multiprocessing.Pool.map(), I realized that the module is missing a starmap() 
method like itertools has.

I took it as a opportunity to contribute some code and implemented both 
starmap() and starmap_async().

The patch including tests is attached, please let me know, what you think. 
Please don't call me names, it's my first patch for such a high profile project 
like Python. ;)

--
components: Library (Lib)
files: mp-starmap.diff
keywords: patch
messages: 141761
nosy: hynek, jnoller
priority: normal
severity: normal
status: open
title: multiprocessing.Pool is missing a starmap[_async]() method.
type: feature request
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4
Added file: http://bugs.python.org/file22859/mp-starmap.diff

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



[issue12700] test_faulthandler fails on Mac OS X Lion

2011-08-08 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

test_enable_file, test_enable_single_thread, test_gil_released and 
test_read_null read an int (4 bytes) from the address 0 (NULL).

test_sigsegv pass: this test raises explicitly a SIGSEGV and the signal handler 
writes the right message (Segmentation fault).

Mac OS X Lion raises maybe a SIGILL on a segmentation fault if the address is 
zero? I suppose that it raises a SIGSEGV if the address is not zero.

Can you try to modify the function faulthandler_read_null() in 
Modules/faulthandler.c: replace int *x = NULL, y; by int *x = (int *)1, y; 
? Then recompile (make) and rerun the test (./python.exe -m test -v 
test_faulthandler).

--

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



[issue12600] Support parameterized TestCases in unittest

2011-08-08 Thread Pere Martir

Changes by Pere Martir pere.mart...@gmail.com:


--
nosy: +pere.martir

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



[issue12709] In multiprocessing, error_callback isn't documented for map_async

2011-08-08 Thread Hynek Schlawack

New submission from Hynek Schlawack h...@ox.cx:

While working on #12708 , I noticed that the error_callback argument of 
multiprocessing.Pool.map_async() isn't documented (callback is).

--
assignee: docs@python
components: Documentation
messages: 141763
nosy: docs@python, hynek
priority: normal
severity: normal
status: open
title: In multiprocessing, error_callback isn't documented for map_async
type: behavior
versions: Python 3.4

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



[issue12709] In multiprocessing, error_callback isn't documented for map_async

2011-08-08 Thread Sandro Tosi

Sandro Tosi sandro.t...@gmail.com added the comment:

Would you like to provide a doc patch about it? Thanks in advance

--
nosy: +sandro.tosi
stage:  - needs patch
versions: +Python 2.7, Python 3.2, Python 3.3 -Python 3.4

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



[issue10087] HTML calendar is broken

2011-08-08 Thread Senthil Kumaran

Senthil Kumaran sent...@uthcode.com added the comment:

I agree with Chris's point that people using html format in console are 
probably redirecting to a file and encoding parameter should be helpful.

What do we settle upon? Leave the encoding argument as such?

Antoine - I was specifically interested to know if sys.stdout.buffer.write as 
in the patch was good(/proper) way to go forward writing the bytes?

--

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



[issue12541] Accepting Badly formed headers in urllib HTTPBasicAuth

2011-08-08 Thread Senthil Kumaran

Senthil Kumaran sent...@uthcode.com added the comment:

I don't think so. We are just making our regex bit lenient. I am not
sure how we can raise a warning with more lenient regex.

As with any parsing changes, I would like to be careful and that we
don't introduce any regression.

--

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



[issue12682] Meaning of 'accepted' resolution as documented in devguide

2011-08-08 Thread Senthil Kumaran

Senthil Kumaran sent...@uthcode.com added the comment:

R. David Murray wrote:
  If someone wants to re-engineer the interface, that would be fine with me :)

Does that mean, that if vote for removing the 'accepted' keyword it
becomes an issue for the meta-tracker?

--

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



[issue12708] multiprocessing.Pool is missing a starmap[_async]() method.

2011-08-08 Thread Hynek Schlawack

Hynek Schlawack h...@ox.cx added the comment:

In all my excitement, I somehow presumed that the docstring automagically lands 
in the docs. Added doc entries to patch (I hope they aren't too crude, I'm not 
a native speaker).

Same as first patch otherwise.

--
Added file: http://bugs.python.org/file22860/mp-starmap-w-docs.diff

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



[issue12709] In multiprocessing, error_callback isn't documented for map_async

2011-08-08 Thread Hynek Schlawack

Hynek Schlawack h...@ox.cx added the comment:

Yeah, if my 3G hadn't failed on me, it would have been already here. :)

As a matter of fact, the argument is discussed in the body of the doc, it just 
has been omitted in the method definition, so the patch is trivial.

--
keywords: +patch
Added file: http://bugs.python.org/file22861/map_async-doc-fix.diff

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



[issue12708] multiprocessing.Pool is missing a starmap[_async]() method.

2011-08-08 Thread Hynek Schlawack

Changes by Hynek Schlawack h...@ox.cx:


Removed file: http://bugs.python.org/file22859/mp-starmap.diff

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



[issue10087] HTML calendar is broken

2011-08-08 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@haypocalc.com:


--
nosy:  -haypo

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



[issue10570] curses.tigetstr() returns bytes, but curses.tparm() expects a string

2011-08-08 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

See also #12567.

--

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



[issue12567] curses implementation of Unicode is wrong in Python 3

2011-08-08 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

See also #10570.

--

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



[issue10570] curses.tigetstr() returns bytes, but curses.tparm() expects a string

2011-08-08 Thread Nadeem Vawda

Changes by Nadeem Vawda nadeem.va...@gmail.com:


--
nosy: +nadeem.vawda

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



[issue12669] test_curses skipped on buildbots

2011-08-08 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

 Correction: the offending options are -j and *-W*

I changed regrtest -W recently to only run the tests once using StringIO as 
stdout. So it's a regression in Python 3.3.

Can't we create a dummy/temporary TTY for the curses tests using pty.openpty()?

--

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



[issue9561] distutils: set encoding to utf-8 for input and output files

2011-08-08 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

 Ping. What's the progress on this? Will this ever be fixed?

Some functions has been fixed in the new packaging module, but not in 
the distutils yet.

--

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



[issue12682] Meaning of 'accepted' resolution as documented in devguide

2011-08-08 Thread R. David Murray

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

I think we've moved from discussing a documentation issue to discussing a 
procedural issue in the development process.  I'm not sure what forum that 
belongs in, though I believe in the past we have used tracker-discuss for that.

That said, I'm really fine with whatever is decided, and don't think it is that 
big a deal in any regard.

--

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



[issue12710] GTK crash

2011-08-08 Thread Toni Boni

New submission from Toni Boni tonibon...@gmail.com:

Deluge Gui crash with this error (image in attachment).
I've Ubuntu 10.10 updated, Python 2.6.6.2ubuntu2

The bug is reported: http://dev.deluge-torrent.org/ticket/1914

--
assignee: tarek
components: Distutils
files: 1rx5ec.jpg.png
messages: 141775
nosy: eric.araujo, tarek, toniboni88
priority: normal
severity: normal
status: open
title: GTK crash
versions: Python 2.6
Added file: http://bugs.python.org/file22862/1rx5ec.jpg.png

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



[issue11357] Add support for PEP 381 Mirror Authenticity

2011-08-08 Thread david

Changes by david db.pub.m...@gmail.com:


--
nosy: +db

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



[issue12710] GTK crash

2011-08-08 Thread Sandro Tosi

Sandro Tosi sandro.t...@gmail.com added the comment:

Hello, this is not a but in the python interpreter (f.e., the traceback in the 
image is referring to twisted) so I'm closing it as invalid. The best way of 
action is contacting the deluge developers, as you did with the other report.

--
nosy: +sandro.tosi
resolution:  - invalid
stage:  - committed/rejected
status: open - closed

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



[issue11836] multiprocessing.queues.SimpleQueue is undocumented

2011-08-08 Thread Sandro Tosi

Sandro Tosi sandro.t...@gmail.com added the comment:

Here's a patch to add SimpleQueue to doc and __all__ .

I didn't document the 'sentinels' argument of SimpleQueue.get() because I got 
lost into Pipe _pool and can't understand how those sentinels are actually 
used/useful. Any hint is appreciated :)

--
nosy: +ezio.melotti, sandro.tosi
stage: needs patch - patch review
versions: +Python 2.7 -Python 3.1

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



[issue11836] multiprocessing.queues.SimpleQueue is undocumented

2011-08-08 Thread Sandro Tosi

Changes by Sandro Tosi sandro.t...@gmail.com:


--
keywords: +patch
Added file: http://bugs.python.org/file22863/issue11836-default.patch

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



[issue12666] map semantic change not documented in What's New

2011-08-08 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

The content of the patch is very helpful, but I question its location: I’m not 
sure people will find this nugget in the 3.2+ version of the What’s New in 
Python 3.0 document (sorry for not bringing that up sooner).  Maybe you could 
update Doc/library/functions.rst instead, and/or Doc/howto/pyporting.rst?

--

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



[issue12301] Use :data:`sys.thing` instead of ``sys.thing`` throughout

2011-08-08 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

 I would like to help out with this, as there seems to be a lot of
 work that needs to be done.

Thanks!  In my initial report, I was talking only about module-level names that 
are documented as code (``sys.path``) instead of module-level data 
(:data:`sys.path`); the point is that the latter form creates a link to the doc 
of the module-level name.

I wasn’t aware that some functions and keywords used code markup instead or 
link-creating markup, like you found out for eval and getattr.  These should be 
fixed too.

Terry: You’re right, ``x`` is the most generic markup for inline code in reST.  
It is used for command lines, program options that are not Python’s options 
(see #9312), bits of Python code, etc.

Now, about the amount of work needed: Don’t waste hours looking for all of 
these in the docs!  If you know basic shell commands, it’s easy to have *all* 
instances of ``sys.path`` changed to :data:`sys.path` in one go.  The thing 
requiring human attention is first listing all of the misuses of , second 
reviewing the changes.

--

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



[issue12301] Use :data:`sys.thing` instead of ``sys.thing`` throughout

2011-08-08 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

instead of*

An addition: in some cases, it may be on purpose that someone used ``somename`` 
instead of :func:`somename`, for example to avoid a ton of link in the doc of 
the somename function.  For the most part however, I believe it was just 
unawareness (or maybe unavailability) of the :data: construct that explains its 
absence.

One last precision: markup like ``getattr(spam, ham)`` should stay untouched: 
it is a code snippet, not just a reference to the function.

--

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



[issue12709] In multiprocessing, error_callback isn't documented for map_async

2011-08-08 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset b2835b8412e5 by Sandro Tosi in branch '2.7':
#12709: add error_callback argument to map_async documentation
http://hg.python.org/cpython/rev/b2835b8412e5

New changeset 41b816853819 by Sandro Tosi in branch '3.2':
#12709: add error_callback argument to map_async documentation
http://hg.python.org/cpython/rev/41b816853819

New changeset 0c922e7d26e1 by Sandro Tosi in branch 'default':
#12709: merge with 3.2
http://hg.python.org/cpython/rev/0c922e7d26e1

--
nosy: +python-dev

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



[issue12709] In multiprocessing, error_callback isn't documented for map_async

2011-08-08 Thread Sandro Tosi

Sandro Tosi sandro.t...@gmail.com added the comment:

Hynek, thanks for your contribution to Python!

--
resolution:  - fixed
stage: needs patch - committed/rejected
status: open - closed

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



[issue12301] Use :data:`sys.thing` instead of ``sys.thing`` throughout

2011-08-08 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

``...`` should also be used for common names like True, False, None (no one 
needs links to their doc to see what they are), or, as Éric said, to avoid 
creating links for each occurrence of a name (one such example is the name of a 
module in the page that documents it).

I think that ``getattr(spam, ham)`` could be also written as 
:func:`getattr(spam, ham) getattr` in case you want to generate explicitly a 
link to getattr.  However in most of the cases this is not necessary.

--

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



[issue12191] Add shutil.chown to allow to use user and group name (and not only uid/gid)

2011-08-08 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

LookupError sounds good.  About the latest patch: I wonder if using !a instead 
of !r in the format strings for exceptions would be more helpful (maybe you’ve 
seen a recent python-dev subthread about that).  I don’t like seeing escapes 
for perfectly common characters like ß or é, but OTOH escapes help 
disambiguating different characters that look the same.  Apart from these two 
points, this is good to go.

A doc addition for LookupError would be an independent changeset; it has 
nothing to do with adding shutil.chown.

--

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



[issue12711] Explain tracker components in devguide

2011-08-08 Thread Éric Araujo

New submission from Éric Araujo mer...@netwok.org:

Users reporting bugs don’t always know what components to set.  
http://docs.python.org/devguide/triaging#components should explain them.

--
components: Devguide
messages: 141785
nosy: eric.araujo
priority: normal
severity: normal
stage: needs patch
status: open
title: Explain tracker components in devguide
versions: 3rd party

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



[issue12604] VTRACE macro in _sre.c should use do {} while (0)

2011-08-08 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

_sre is a module written in C, not Python; we call that an extension module.  
The Library component is used for Python modules, which are found in the Lib 
directory in a checkout of CPython.  See #12711.

--
nosy: +eric.araujo

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



[issue12604] VTRACE macro in _sre.c should use do {} while (0)

2011-08-08 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
stage: patch review - commit review

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



[issue670664] HTMLParser.py - more robust SCRIPT tag parsing

2011-08-08 Thread Chris Palmer

Changes by Chris Palmer ch...@isecpartners.com:


--
nosy:  -cpalmer

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



[issue12711] Explain tracker components in devguide

2011-08-08 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

This are the current components in random order and a possible description:

The following components should be selected if the issue apply to:
Build
  the build process
Demos and Tools
  the scripts in Tools/ and Tools/demo/
2to3 (2.x to 3.0 conversion tool)
  the 2to3 conversion tool and Lib/2to3/
Extension Modules
  C modules in Modules/
IDLE
  IDLE and Lib/idlelib/
Installation
  the installation process
Interpreter Core
  the interpreter core, built-in objects in Objects/, the Python/, Grammar/ and 
Parser/ dirs
Library (Lib)
  Python modules in Lib/
Regular Expressions
  regular expressions, and the Lib/re.py and Modules/_sre.c modules
Tests
  the tests in Lib/test/, the unittest and doctest frameworks in Lib/unittest/, 
Lib/doctest.py
Tkinter
  Tkinter an Lib/tkinter
Unicode
  Unicode, codecs, str vs bytes, Objects/unicodeobject.c
Windows
  the Windows operating system
XML
  XML and Lib/xml/
Macintosh
  the Macintosh operating system
Documentation
  the documentation in Doc/
Benchmarks
  ???
Distutils
  the distutil package in Lib/distutils/
Distutils2
  the packaging package in Lib/packaging/
Devguide
  the devguide at h.p.o/devguide
ctypes
  the ctypes package in Lib/ctypes/


I'm not sure what the Benchmark component is supposed to be about (generic 
benchmarks? timeit/profile and friends? performance issues?).
If I got all the descriptions and files/dirs right I can prepare a patch for 
the devguide.  FWIW there was a somewhat similar issue in the meta-tracker too.

--
assignee:  - ezio.melotti
nosy: +ezio.melotti
versions:  -3rd party

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



[issue12657] Cannot override JSON encoding of basic type subclasses

2011-08-08 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
nosy: +eric.araujo, rhettinger

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



[issue12672] Some problems in documentation extending/newtypes.html

2011-08-08 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

 it's unclear what [].append is.
It’s crystal clear to me: [].append is a method of a list object, just created 
here by a literal.  (Maybe you’re not aware that [].append is valid Python.)

 The C coding convention is unusual and non PEP-7 in 2.1.1
Running Tools/scripts/untabify.py on the C codebase reveals problems in 
Doc/include/*.c, Objects, Python, etc.

--
nosy: +eric.araujo, pitrou

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



[issue12682] Meaning of 'accepted' resolution as documented in devguide

2011-08-08 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

When we’ve talked about that a few times these last months on the ML or on IRC, 
the outcome was that accepted means patch is accepted, not bug report is valid. 
 I’ve never seen accepted used to mean that a feature request is closed; I use 
fixed for solved bugs and added features alike and don’t see a problem with it.

--
nosy: +eric.araujo, rhettinger

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



[issue12032] Tools/Scripts/crlf.py needs updating for python 3+

2011-08-08 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

This needs porting to 3.2.

--
nosy: +eric.araujo
resolution: fixed - 
status: closed - open

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



[issue12682] Meaning of 'accepted' resolution as documented in devguide

2011-08-08 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

patch accepted can be marked with the commit review stage.
That should mean the patch is ready to go in, after a last quick review by the 
committer that will apply it, even though I've seen it used as I made the 
commit but I'm leaving this open until I'm sure everything still works.

--

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



[issue12191] Add shutil.chown to allow to use user and group name (and not only uid/gid)

2011-08-08 Thread Sandro Tosi

Sandro Tosi sandro.t...@gmail.com added the comment:

after a review from Ezio (thanks!) we've come out with this updated patch; main 
changes are in the test suite, where now it's checked that chown() succeed. 
about !r/!a I've left !r; and changed the 2 ValueError in LookupError (the 
first, in case no arguments are passed, it's still there).

--
Added file: http://bugs.python.org/file22864/shutil_chown-default-v6.patch

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



[issue12712] weave build_tools library identification

2011-08-08 Thread Tim Holme

New submission from Tim Holme timho...@gmail.com:

This may be a problem with scipy/weave, or it may be a problem with the 
site-library pythonequations, or it may be in python 2.7.2 itself.  

When running the program, it looks for an installed version of MinGW, which it 
finds.  It is possibly looking for C:\Python27\lib\distutils\core.py in the 
wrong location (the Lib should be capitalized?) It then throws the error 
report:

Found executable C:\MinGW\bin\g++.exe

Traceback (most recent call last):
  File C:\Python27\Lib\site-packages\pythonequations\QuadFit3D.py, line 327, 
in module
TkFileDialogExample(root).pack()
  File C:\Python27\Lib\site-packages\pythonequations\QuadFit3D.py, line 315, 
in __init__
run(fname,MAX_MSE)
  File C:\Python27\Lib\site-packages\pythonequations\QuadFit3D.py, line 68, 
in run
equation.SetGAParametersAndGuessInitialCoefficientsIfNeeded() # estimate 
initial parameters if needed
  File C:\Python27\lib\site-packages\pythonequations\EquationBaseClasses.py, 
line 631, in SetGAParametersAndGuessInitialCoefficientsIfNeeded
self.EstimateInitialCoefficientsUsingCPP()
  File C:\Python27\lib\site-packages\pythonequations\EquationBaseClasses.py, 
line 1502, in EstimateInitialCoefficientsUsingCPP
weave.inline(code, parameterNameList, support_code = supportCode, 
extra_compile_args = Equation.compiler_flags_for_weave_inline, compiler = 
Equation.compiler_name)
  File C:\Python27\lib\site-packages\scipy\weave\inline_tools.py, line 355, 
in inline
**kw)
  File C:\Python27\lib\site-packages\scipy\weave\inline_tools.py, line 482, 
in compile_function
verbose=verbose, **kw)
  File C:\Python27\lib\site-packages\scipy\weave\ext_tools.py, line 367, in 
compile
verbose = verbose, **kw)
  File C:\Python27\lib\site-packages\scipy\weave\build_tools.py, line 272, in 
build_extension
setup(name = module_name, ext_modules = [ext],verbose=verb)
  File C:\Python27\lib\site-packages\numpy\distutils\core.py, line 186, in 
setup
return old_setup(**new_attr)
  File C:\Python27\lib\distutils\core.py, line 162, in setup
raise SystemExit, error
CompileError: error: Bad file descriptor

--
components: Library (Lib)
messages: 141793
nosy: Tim.Holme
priority: normal
severity: normal
status: open
title: weave build_tools library identification
type: compile error
versions: Python 2.7

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



[issue12604] VTRACE macro in _sre.c should use do {} while (0)

2011-08-08 Thread Petri Lehtinen

Petri Lehtinen pe...@digip.org added the comment:

Éric Araujo wrote:
 _sre is a module written in C, not Python; we call that an extension
 module. The Library component is used for Python modules, which are
 found in the Lib directory in a checkout of CPython. See #12711.

Ok, I wasn't aware of this. Thanks.

--

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



[issue12682] Meaning of 'accepted' resolution as documented in devguide

2011-08-08 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

Changing the dev guide, which I think is definitely needed, is an issue for 
this tracker. Changing the tracker is an issue for the meta-tracker. Discussing 
a change might be an issue for python-dev.

I was under the impression once that the tracker fields were going to be 
reviewed last summer, before the dev guide was written. This could still happen 
any time.

--

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



[issue12301] Use :data:`sys.thing` instead of ``sys.thing`` throughout

2011-08-08 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

Changing ``x`` to :data:`x` adds 4 chars.
Changing ``x()`` to :func:`x` justs adds 2.
If I were to review, I would prefer that the additions not trigger cascading 
line rewraps.

--

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



[issue12700] test_faulthandler fails on Mac OS X Lion

2011-08-08 Thread Gareth Rees

Gareth Rees g...@garethrees.org added the comment:

After changing NULL to (int *)1, all tests pass.

--

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



[issue12669] test_curses skipped on buildbots

2011-08-08 Thread Nadeem Vawda

Nadeem Vawda nadeem.va...@gmail.com added the comment:

 Can't we create a dummy/temporary TTY for the curses tests using 
 pty.openpty()?

I would have thought so, but it seems that savetty() and endwin() both fail when
running under '-j0':

test test_curses crashed -- Traceback (most recent call last):
  File /home/nadeem/code/cpython/python/Lib/test/test_curses.py, line 
289, in test_main
main(stdscr)
  File /home/nadeem/code/cpython/python/Lib/test/test_curses.py, line 
269, in main
curses.savetty()
_curses.error: savetty() returned ERR

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File /home/nadeem/code/cpython/python/Lib/test/regrtest.py, line 1139, 
in runtest_inner
indirect_test()
  File /home/nadeem/code/cpython/python/Lib/test/test_curses.py, line 
291, in test_main
curses.endwin()
_curses.error: endwin() returned ERR

It might be that you need to close stdout and stderr so that there's only one
TTY associated with the process, but I suspect that'll break other things.

--

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



[issue12700] test_faulthandler fails on Mac OS X Lion

2011-08-08 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 1777df2ce50d by Victor Stinner in branch 'default':
Issue #12700: fix test_faulthandler for Mac OS X Lion
http://hg.python.org/cpython/rev/1777df2ce50d

--
nosy: +python-dev

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



[issue12700] test_faulthandler fails on Mac OS X Lion

2011-08-08 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

 After changing NULL to (int *)1, all tests pass.

Ok, so Lion has a special case for reading from NULL. I changed the tests to 
try to fix your bug. Can you tell me if it's now better?

--

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



[issue12711] Explain tracker components in devguide

2011-08-08 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

Attached a proper patch.

--
keywords: +patch
stage: needs patch - patch review
Added file: http://bugs.python.org/file22865/issue12711.diff

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



[issue12700] test_faulthandler fails on Mac OS X Lion

2011-08-08 Thread Gareth Rees

Gareth Rees g...@garethrees.org added the comment:

All tests now pass.

--

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



[issue12700] test_faulthandler fails on Mac OS X Lion

2011-08-08 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

 All tests now pass.

Ok, thanks for your report and your feedback.

--
resolution:  - fixed
status: open - closed

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



[issue12701] Apple's clang 2.1 (xcode 4.1, OSX 10.7) optimizer miscompiles intobject.c

2011-08-08 Thread Ronald Oussoren

Ronald Oussoren ronaldousso...@mac.com added the comment:

Have you checked if -fwrapv is in the list of compiler arguments in the 
generated makefile?

There is an open issue about adding that flag when clang is used as the 
compiler (the flag is already used for gcc). The flag is necessary because the 
example code contains an integer overflow and that is undefined behavior 
according to the C standard.

--
Added file: http://bugs.python.org/file22866/unnamed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12701
___htmlbody bgcolor=#FFblockquote type=citedivbrfont 
class=Apple-style-span color=#00br/font/div/blockquoteHave you 
checked if -fwrapv is in the list of compiler arguments in the generated 
makefile?divbr/divdivThere is an open issue about adding that flag when 
clang is used as the compiler (the flag is already used for gcc). The flag is 
necessary because the example code contains an integer overflow and that is 
undefined behavior according to the C 
standard.nbsp;/divdivbr/div/body/html
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue444582] Finding programs in PATH, adding shutil.which

2011-08-08 Thread Simon Law

Changes by Simon Law sfl...@sfllaw.ca:


--
nosy: +sfllaw

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



[issue12701] Apple's clang 2.1 (xcode 4.1, OSX 10.7) optimizer miscompiles intobject.c

2011-08-08 Thread Brett Cannon

Changes by Brett Cannon br...@python.org:


--
nosy: +brett.cannon

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



[issue12713] argparse: allow abbreviation of sub commands by users

2011-08-08 Thread Peter Williams

New submission from Peter Williams pwil3...@bigpond.net.au:

Quite often the names of subcommands are quite long so that their meaning is 
clear.  However, the downside to this is the increased typing the user of the 
command must make.  A compromise between clarity and brevity can be realized if 
abbreviation of subcommands is allowed with the proviso that the abbreviation 
must be long enough to remove any ambiguity.

So that this feature is not foisted on every programmer that uses argparse it 
could be made an option to the ArgumentParser class with the (possible) 
additional refinement of specifying a minimum number of characters for the 
abbreviations.

--
components: Library (Lib)
messages: 141805
nosy: pwil3058
priority: normal
severity: normal
status: open
title: argparse: allow abbreviation of sub commands by users
type: feature request

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



[issue12682] Meaning of 'accepted' resolution as documented in devguide

2011-08-08 Thread Senthil Kumaran

Senthil Kumaran sent...@uthcode.com added the comment:

RDM, yes, unfortunately the direction of the discussion changed from
documentation issue to a process one. Instead of diverting further
into catch all discussion about process/tracker, it would be good idea
to settle this one. Your points definitely counts as you raised
the issue and have experience in dealing with tracker states. What
would you suggest?

--

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



[issue12672] Some problems in documentation extending/newtypes.html

2011-08-08 Thread Eli Bendersky

Eli Bendersky eli...@gmail.com added the comment:

Éric,
I know perfectly well that [].append is valid Python, but I don't think this is 
the clearest way to give an example of an object method. I think spelling 
[].append's meaning more explicitly would be better.

I'm also aware that there are tab problems all over the code base. I'm not 
suggesting a large cleanup. But I do think that in *example code* in the 
documentation, it wouldn't hurt to make the code idiomatically styled. After 
all, this is what people will copy-paste when writing new code.

--

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



[issue12463] Calling SocketServer.shutdown() when server_forever() was not called will hang

2011-08-08 Thread Марк Коренберг

Марк Коренберг socketp...@gmail.com added the comment:

 Why do you say it hangs? It doesn't hang, it just waits for you to
 call serve_forever(): it's not a bug, it's actually a feature.

Okay, for my case, How I should correctly terminate thread?

Conditions:
1. signal may appear at any time
2. thread may become non-alive in any time - either before server_forever (due 
to exception) or after.

So, after breaking main loop, I should correctly terminate thread. I can not 
say if thread is running. checking isAlive is racy. Even when thread is alive, 
this is unknown if server_forever was called. Even if serve_forever was not 
called, we should not rely on calling this ones, because thread may be 
interrupted by exception before calling serve_forever.

Once again: why not to add patch suggested by Petri Lehtinen ?

--

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



[issue2771] Test issue

2011-08-08 Thread Ezio Melotti

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


--
hgrepos: +52

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



[issue2771] Test issue

2011-08-08 Thread Ezio Melotti

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


--
hgrepos:  -52

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



[issue2771] Test issue

2011-08-08 Thread Ezio Melotti

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


--
hgrepos: +53

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



[issue2771] Test issue

2011-08-08 Thread Ezio Melotti

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


--
hgrepos:  -53

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



[issue12702] shutil.copytree() should use os.lutimes() to copy the metadata of symlinks

2011-08-08 Thread Ross Lagerwall

Changes by Ross Lagerwall rosslagerw...@gmail.com:


--
nosy: +rosslagerwall

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