[issue9281] Race condition in distutils.dir_util.mkpath()

2010-07-17 Thread Éric Araujo

Éric Araujo  added the comment:

Note: Your patch fixes distutils, but in distutils2 dir_util is gone, use of 
its functions replaced by shutil calls or duplicated code with, I’m afraid, the 
same isdir/mkdir race condition. I wonder how we could add tests for that 
instead. Thanks for the heads-up, I’m adding a “grep makedirs|rmdir” on my todo 
list.

--
nosy: +merwok
resolution:  -> accepted
stage:  -> patch review
type:  -> behavior

___
Python tracker 

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



[issue9281] Race condition in distutils.dir_util.mkpath()

2010-07-17 Thread Éric Araujo

Éric Araujo  added the comment:

instead of waiting for user reports*

--

___
Python tracker 

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



[issue8136] urllib.unquote decodes percent-escapes with Latin-1

2010-07-17 Thread Éric Araujo

Changes by Éric Araujo :


--
nosy: +merwok, orsenthil

___
Python tracker 

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



[issue5180] 3.1 cannot unpickle 2.7-created pickle

2010-07-17 Thread Alexandre Vassalotti

Alexandre Vassalotti  added the comment:

I have fixed some style nits in your patch. It would be nice to have tests for 
the different control paths in instantiate(). But, I realize that would be a 
bit annoying.

Apart from that, the patch looks good.

--
Added file: http://bugs.python.org/file18037/issue5180b.diff

___
Python tracker 

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



[issue9268] Add annotation option to pickletools.dis

2010-07-17 Thread Alexandre Vassalotti

Alexandre Vassalotti  added the comment:

LGTM

--

___
Python tracker 

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



[issue9282] Bug in --listfuncs option of trace.py

2010-07-17 Thread Eli Bendersky

New submission from Eli Bendersky :

Running:

py3d -m trace -C . --listfuncs trace_target.py

Where py3d points to a freshly compiled Python 3 trunk interpreter, results in 
an error: 

functions called:
Traceback (most recent call last):
  File "/home/eliben/python_src/eliben-py3k/Lib/runpy.py", line 160, in 
_run_module_as_main
"__main__", fname, loader, pkg_name)
  File "/home/eliben/python_src/eliben-py3k/Lib/runpy.py", line 73, in _run_code
exec(code, run_globals)
  File "/home/eliben/python_src/eliben-py3k/Lib/trace.py", line 816, in 
main()
  File "/home/eliben/python_src/eliben-py3k/Lib/trace.py", line 813, in main
results.write_results(missing, summary=summary, coverdir=coverdir)
  File "/home/eliben/python_src/eliben-py3k/Lib/trace.py", line 260, in 
write_results
for filename, modulename, funcname in sorted(calls.keys()):
NameError: global name 'calls' is not defined


--

With Python 2.x it runs fine. The cause is probably a bug introduced during the 
porting to Python 3. The relevant piece of code in the write_results() method 
in trace.py is:

if self.calledfuncs:
print()
print("functions called:")
for filename, modulename, funcname in sorted(calls.keys()):
print(("filename: %s, modulename: %s, funcname: %s"
   % (filename, modulename, funcname)))

The 'calls' variable in the loop isn't defined anywhere. Previously (in 2.6) 
this same chunk of code looked like this:

if self.calledfuncs:
print
print "functions called:"
calls = self.calledfuncs.keys()
calls.sort()
for filename, modulename, funcname in calls:
print ("filename: %s, modulename: %s, funcname: %s"
   % (filename, modulename, funcname))

Which aliases 'calls' to 'self.calledfuncs.keys()'

--

Once this is confirmed as a bug, I will be happy to submit a patch that solves 
the problem.

--
components: Library (Lib)
messages: 110543
nosy: eli.bendersky, tjreedy
priority: normal
severity: normal
status: open
title: Bug in --listfuncs option of trace.py
type: behavior
versions: Python 3.1, Python 3.2, Python 3.3

___
Python tracker 

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



[issue9227] can't import Tkinter / use IDLE after installing Python 2.7 on Mac OS X

2010-07-17 Thread Sarth Calhoun

Sarth Calhoun  added the comment:

Have the same problem. Well, tried to install the 10.3 version over my 64-bit 
installation and that had no effect. Not sure how to get IDLE working.

--
nosy: +Sarth.Calhoun

___
Python tracker 

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



[issue9272] CGIHTTPServer poisons os.environ

2010-07-17 Thread Georg Brandl

Georg Brandl  added the comment:

I don't think a deepcopy of the environment is necessary here.  environ.copy() 
is just fine.  Other than that, I agree with Eric.

--
nosy: +georg.brandl

___
Python tracker 

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



[issue1327971] HTTPResponse instance has no attribute 'fileno'

2010-07-17 Thread Kevin Dwyer

Changes by Kevin Dwyer :


--
nosy: +kevindication

___
Python tracker 

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



[issue963906] Unicode email address helper

2010-07-17 Thread Éric Araujo

Changes by Éric Araujo :


--
nosy: +merwok, r.david.murray

___
Python tracker 

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



[issue9227] can't import Tkinter / use IDLE after installing Python 2.7 on Mac OS X

2010-07-17 Thread Ned Deily

Ned Deily  added the comment:

@Sarth: Odd, works for me.  Using the standard GUI installer on a 
64-bit-capable machine running 10.6.4, I first installed the "10.5" 2.7 
metapackage and verified that both IDLE.app and /usr/local/bin/idle2.7 fail.  
Then, even without manually deleting anything, I installed the "10.3" 2.7 
metapackage and now both work.

--

___
Python tracker 

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



[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2010-07-17 Thread Éric Araujo

Changes by Éric Araujo :


--
nosy: +l0nwlf, merwok

___
Python tracker 

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



[issue1685453] email package should work better with unicode

2010-07-17 Thread Éric Araujo

Changes by Éric Araujo :


--
nosy: +merwok

___
Python tracker 

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



[issue9283] buggy repr for os.environ

2010-07-17 Thread Antoine Pitrou

New submission from Antoine Pitrou :

os.environ has the same repr as os.environb, that is, it looks as though it's a 
mapping of bytes to bytes, while it's a mapping of str to str.

>>> repr(os.environ)[:50]
"environ({b'TMP': b'/tmp/', b'XAUTHORITY': b'/var/r"
>>> repr(os.environb)[:50]
"environ({b'TMP': b'/tmp/', b'XAUTHORITY': b'/var/r"

--
assignee: haypo
components: Library (Lib)
messages: 110547
nosy: haypo, pitrou
priority: high
severity: normal
status: open
title: buggy repr for os.environ
type: behavior
versions: Python 3.2

___
Python tracker 

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



[issue1409460] email.Utils.parseaddr() gives arcane result

2010-07-17 Thread Éric Araujo

Éric Araujo  added the comment:

I wonder if this bug should be reopened. This behavior does not seem right to 
me:

parsing 'merwok'
 expected ('merwok', '')
 got  ('', 'merwok')

parsing 'merwok w...@rusty'
 expected ('', 'w...@rusty')
 got  ('', 'merwok...@rusty')

(Generated with a twenty-line script just doing a loop and prints, not attached 
because boring.)

Are my expectations wrong? I don’t know if a string like “merwok” in my first 
example is a legal address in the relevant RFCs, nor do I know if the folding 
done in the second example is okay.

For background, the thing I’m trying to achieve is to take a string and parse 
it into name and email address, and print a warning if there is no email. It’d 
be nice if I could always test for “not parseaddr(s)[1]”, or pass an argument 
to the function to get an exception. Maybe I’ll have to restrict my format and 
do my own parsing with str.[r]partition.

--
nosy: +merwok, r.david.murray

___
Python tracker 

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



[issue1025395] email.Utils.parseaddr fails to parse valid addresses

2010-07-17 Thread Éric Araujo

Changes by Éric Araujo :


--
nosy: +merwok

___
Python tracker 

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



[issue9282] Bug in --listfuncs option of trace.py

2010-07-17 Thread Eli Bendersky

Eli Bendersky  added the comment:

The fix is simple one-liner, so here's a patch.

--
keywords: +patch
Added file: http://bugs.python.org/file18038/issue9282.1.patch

___
Python tracker 

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



[issue7384] curses crash on FreeBSD

2010-07-17 Thread Stefan Krah

Stefan Krah  added the comment:

ldd return value check committed in r82927, r82928, r82929 and r82930.


Thanks for reporting this!

--
status: open -> closed

___
Python tracker 

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



[issue9284] inspect.findsource() cannot find source for doctest code

2010-07-17 Thread Dirkjan Ochtman

New submission from Dirkjan Ochtman :

The fix for issue4050 broke some of my doctests. Minimal test:

import doctest, inspect
def test():
'''
>>> def x(): pass
>>> inspect.getsource(x)
'def x(): pass\\n'
'''
doctest.run_docstring_examples(test, globals())

This works in 2.6, but not in 2.7. Reason is that inspect.getsourcefile() finds 
the fake filename '', which it doesn't understand. In 2.6, 
inspect.getmodule() is also tried, which first looks at obj.__module__, and the 
filename can be derived from that. I suggest that inspect.getsourcefile() grows 
some code to use this trick if the filename seems fake (f[0] + f[-1] == '<>').

--
components: Library (Lib)
messages: 110551
nosy: ajaksu2, brodie, djc, pitrou, r.david.murray
priority: normal
severity: normal
stage: needs patch
status: open
title: inspect.findsource() cannot find source for doctest code
type: behavior
versions: Python 2.7

___
Python tracker 

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



[issue9284] inspect.findsource() cannot find source for doctest code

2010-07-17 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
priority: normal -> critical

___
Python tracker 

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



[issue1533105] NetBSD build with --with-pydebug causes SIGSEGV

2010-07-17 Thread Stefan Krah

Stefan Krah  added the comment:

Matt, if you still follow this: Does this problem exist in 2.6/2.7/NetBSD?

I think this should be set to pending.

--
nosy: +skrah

___
Python tracker 

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



[issue9284] inspect.findsource() cannot find source for doctest code

2010-07-17 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

After chatting with Dirkjan, I misunderstood the impact of the patch. It only 
occurs when inspect.getsource() is called from a doctest, which isn't a very 
common situation.

--
priority: critical -> normal

___
Python tracker 

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



[issue1659410] Minor AST tweaks

2010-07-17 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

I'm going to close this because these are mostly incompatible changes that are 
too late.

--
nosy: +benjamin.peterson
resolution:  -> rejected
status: open -> closed

___
Python tracker 

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



[issue9285] A decorator for cProfile and profile modules

2010-07-17 Thread Giampaolo Rodola'

New submission from Giampaolo Rodola' :

A patch including tests is in attachment.
Example usage:

>>> from cProfile import profile
>>>
>>> @profile
... def factorial(n):
... n = abs(int(n))
... if n < 1: 
... n = 1
... x = 1
... for i in range(1, n+1):
... x = i * x
... return x
... 
>>>
>>> factorial(5)
Thu Jul 15 20:58:21 2010/tmp/tmpIDejr5

 4 function calls in 0.000 CPU seconds

   Ordered by: internal time, call count

   ncalls  tottime  percall  cumtime  percall filename:lineno(function)
10.0000.0000.0000.000 profiler.py:120(factorial)
10.0000.0000.0000.000 {range}
10.0000.0000.0000.000 {abs}
10.0000.0000.0000.000 {method 'disable' of 
'_lsprof.Profiler' objects}

120
>>>


Before including doc changes I'd like to hear whether this is actually 
desirable or not.

--
assignee: collinwinter
components: Benchmarks, Library (Lib)
files: profile.patch
keywords: needs review, patch, patch
messages: 110555
nosy: collinwinter, giampaolo.rodola, pitrou
priority: normal
severity: normal
status: open
title: A decorator for cProfile and profile modules
versions: Python 3.2
Added file: http://bugs.python.org/file18039/profile.patch

___
Python tracker 

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



[issue1409460] email.Utils.parseaddr() gives arcane result

2010-07-17 Thread Mark Sapiro

Mark Sapiro  added the comment:

> parsing 'merwok'
>  expected ('merwok', '')
>  got  ('', 'merwok')


I think ('', 'merwok') is the correct result. I think most if not all MUAs/MTAs 
will interpret an address without an '@', albeit invalid, as a local-part in 
the local domain, thus parsing 'merwok' as the address 'merwok' with no real 
name is probably the right thing to do with this input. The alternative would 
be to return ('', '') indicating failure.


> parsing 'merwok w...@rusty'
>  expected ('', 'w...@rusty')
>  got  ('', 'merwok...@rusty')


Here, I think failure is a more appropriate return.

In any case, I think this is a new bug deserving of a new report. It is not 
really relevant to this issue which has to do with nested parentheses.

--

___
Python tracker 

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



[issue9284] inspect.findsource() cannot find source for doctest code

2010-07-17 Thread Dirkjan Ochtman

Dirkjan Ochtman  added the comment:

Here's a test case that doesn't require doctest trickery:

import inspect, linecache
fn, source = '', 'def x(): pass\n'
getlines = linecache.getlines
def monkey(filename, module_globals=None):
 if filename == fn:
 return source.splitlines(True)
 else:
 return getlines(filename, module_globals)
linecache.getlines = monkey
exec compile(source, fn, 'single') in globals()
inspect.getsource(x)

--

___
Python tracker 

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



[issue1409460] email.Utils.parseaddr() gives arcane result

2010-07-17 Thread Éric Araujo

Éric Araujo  added the comment:

Thank you for the reply. The problem is that parseaddr is designed to not fail 
IIUC, that’s why it may return empty strings. Client code has to check for 
these values instead of catching an exception—a mere style issue, weren’t it 
for the second bug. So I’m going to report that separately, and restrict the 
format in my project so that my code can just use string methods. I think I 
won’t open a feature request for a parameter to get exceptions, since parseaddr 
is designed not to.

--

___
Python tracker 

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



[issue5180] 3.1 cannot unpickle 2.7-created pickle

2010-07-17 Thread Alexander Belopolsky

Alexander Belopolsky  added the comment:

Alexandre,

I am not sure your change form PyObject_Size(args) to Py_SIZE(args) is correct. 
 As far as I can tell, args come from pickle machine stack without any type 
checks.  The equivalent code in 2.x cPickle uses PyObject_Size and checks for 
errors.  I'll try to come up with a test case for the error situation, but it 
is a bit tricky because pickle should be produced in 2.x in order for this 
function to be used.

--

___
Python tracker 

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



[issue9283] buggy repr for os.environ

2010-07-17 Thread R. David Murray

R. David Murray  added the comment:

Ezio, it looks like your test for issue 7310 uses exactly the same algorithm as 
the code itself does, and thus did not detect this breakage.

--
nosy: +ezio.melotti, r.david.murray

___
Python tracker 

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



[issue9286] email.utils.parseaddr returns garbage for invalid input

2010-07-17 Thread Éric Araujo

New submission from Éric Araujo :

This behavior does not seem right to me:

parsing 'merwok'
 expected ('merwok', '')
 got  ('', 'merwok')

parsing 'merwok w...@rusty'
 expected ('', 'w...@rusty')
 got  ('', 'merwok...@rusty')

(Generated with a small script just doing a loop and prints, not attached 
because boring.)

Are my expectations wrong? I don’t know if a string like “merwok” in my first 
example is a legal address in the relevant RFCs; Mark Sapiro replied in 
msg110556 that it could be consistent with most MUAs/MTAs.

I don’t know either if the folding done in the second example is okay; I’d like 
an exception here, or if parseaddr is designed to never fail, empty strings to 
indicate failure. I’m also okay with “garbage in, garbage out” as answer.

--
components: Library (Lib)
messages: 110561
nosy: merwok, r.david.murray
priority: normal
severity: normal
status: open
title: email.utils.parseaddr returns garbage for invalid input
type: behavior
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2

___
Python tracker 

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



[issue1409460] email.Utils.parseaddr() gives arcane result

2010-07-17 Thread Éric Araujo

Éric Araujo  added the comment:

Copied my inquiry and part of your reply in #9286.

--
stage:  -> committed/rejected

___
Python tracker 

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



[issue9287] Cosmetic fix in OtherFileTests.testOpenDir

2010-07-17 Thread Hirokazu Yamamoto

New submission from Hirokazu Yamamoto :

Hello. In OtherFileTests.testOpenDir(test_file), if we run this test
in Lib/test, __file__ becomes "test_file.py", so os.path.dirname(__file__) 
becomes "". I think it is better to use os.path.abspath to get valid folder 
path for test purpose.

# This test seems not to exist in Python2.7.

--
components: Tests
files: test_file.patch
keywords: easy, patch
messages: 110563
nosy: ocean-city
priority: normal
severity: normal
stage: patch review
status: open
title: Cosmetic fix in OtherFileTests.testOpenDir
versions: Python 2.6
Added file: http://bugs.python.org/file18040/test_file.patch

___
Python tracker 

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



[issue9287] Cosmetic fix in OtherFileTests.testOpenDir

2010-07-17 Thread Éric Araujo

Éric Araujo  added the comment:

Thanks for the report. I have had exceptions in distutils2 tests because of 
this exact same thing; my fix was to use “os.path.dirname(__file__) or 
os.curdir”. I’ll change that if people more knowledgeable than me say your fix 
is better :)

--
nosy: +merwok

___
Python tracker 

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



[issue963906] Unicode email address helper

2010-07-17 Thread R. David Murray

R. David Murray  added the comment:

I'm assigning this to myself so I don't lose it.  I'll need to incorporate the 
intent of the tests and logic into email6.  And yes I set 3.3 on 
purpose...email6 won't be in 3.2 and I don't want to spend the cycles figuring 
out whether this would work in email5 (the 3.2 version of email).

--
assignee:  -> r.david.murray
versions: +Python 3.3 -Python 2.7

___
Python tracker 

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



[issue1672568] silent error in email.message.Message.get_payload

2010-07-17 Thread Mark Lawrence

Mark Lawrence  added the comment:

I've patched py3k test_email.py without patching message.py and the test passes 
on Windows Vista.  Either the patch is wrong, I've had finger problems or I'm 
misunderstanding the intent, can someone please advise.

--

___
Python tracker 

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



[issue1681333] email.header unicode fix

2010-07-17 Thread Mark Lawrence

Mark Lawrence  added the comment:

Applied the patches to the test files for 2.6.5 without patching header.py and 
got one failure.

FAIL: test_i18nheader_unicode (email.test.test_email.TestRFC2047)

I also expected a failure from the equivalent test for test_email_renamed, can 
someone please advise.

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue9268] Add annotation option to pickletools.dis

2010-07-17 Thread Alexander Belopolsky

Alexander Belopolsky  added the comment:

Committed in r82931 with small changes based on comments here and on IRC:

1. Annotations are separated from disassembly by spaces without '|'.
2. Made a small improvement to the annotation alignment algorithm.  Excessively 
long lines do not force the rest of the annotations off the screen.
3. Added ReST documentation for the new dis() argument.  The command line 
behavior is still undocumented.  I am watching python-dev discussion on how it 
should be presented in ReST.

--

___
Python tracker 

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



[issue1681842] splitext of dotfiles, incl backwards compat and migration

2010-07-17 Thread Mark Lawrence

Mark Lawrence  added the comment:

Add Michael Foord to nosy list as he raised #1462106 which refers to #1115886 
where msg24154 states "fixed this in r54204".  Can this be closed?

--
nosy: +BreamoreBoy, michael.foord
versions: +Python 3.2 -Python 2.7, Python 3.1

___
Python tracker 

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



[issue9268] Add annotation option to pickletools.dis

2010-07-17 Thread Alexander Belopolsky

Changes by Alexander Belopolsky :


--
resolution:  -> fixed
stage: unit test needed -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue1681842] splitext of dotfiles, incl backwards compat and migration

2010-07-17 Thread Michael Foord

Michael Foord  added the comment:

On Python 2.6.5:

>>> os.path.splitext('.cshrc')
('.cshrc', '')

I believe this can be closed.

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

___
Python tracker 

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



[issue9277] test_struct failure on ARM

2010-07-17 Thread Stefan Krah

Stefan Krah  added the comment:

The usage of char in bp_bool will not work if char is unsigned. Hopefully
that is the cause.

--
keywords: +patch
nosy: +skrah
Added file: http://bugs.python.org/file18041/bp_bool.patch

___
Python tracker 

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



[issue9277] test_struct failure on ARM

2010-07-17 Thread Stefan Krah

Changes by Stefan Krah :


--
stage:  -> patch review

___
Python tracker 

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



[issue9012] Separate compilation of time and datetime modules

2010-07-17 Thread Alexander Belopolsky

Alexander Belopolsky  added the comment:

I am merging in the nosy list from issue9079 after we had a lengthy discussion 
there and on IRC about the best way to share code between stdlib extension 
modules.

For the issue9079, we decided to bring the shared code into python core, but 
this cannot be a general solution.  I still don't see any solution other than 
exposing C API via a capsule mechanism, but Antoine objected saying that 
capsule mechanism is for 3rd party modules and should not be used in stdlib.

--
nosy: +georg.brandl, pitrou, rhettinger, rnk, tim_one

___
Python tracker 

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



[issue9012] Separate compilation of time and datetime modules

2010-07-17 Thread Alexander Belopolsky

Changes by Alexander Belopolsky :


--
stage: committed/rejected -> needs patch

___
Python tracker 

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



[issue5673] Add timeout option to subprocess.Popen

2010-07-17 Thread Reid Kleckner

Reid Kleckner  added the comment:

I don't imagine this is going into 2.7.>0 at this point, so I ported the patch 
to py3k.  I also added support to check_output for the timeout parameter and 
added docs for all of the methods/functions that now take a timeout in the 
module.

The communicate docs include the pattern of:
try:
outs, errs = p.communicate(timeout=15)
except subprocess.TimeoutExpired:
p.kill()
outs, errs = p.communicate()

And check_output uses it.

--
Added file: http://bugs.python.org/file18042/subprocess-timeout-py3k-v6.patch

___
Python tracker 

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



[issue5673] Add timeout option to subprocess.Popen

2010-07-17 Thread Alexander Belopolsky

Changes by Alexander Belopolsky :


--
nosy: +belopolsky

___
Python tracker 

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



[issue9257] cElementTree iterparse requires events as bytes; ElementTree uses strings

2010-07-17 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc  added the comment:

It seems that this has been fixed in the py3k branch (r78942). Now both bytes 
and unicode are accepted. Can someone check?

--
nosy: +amaury.forgeotdarc
stage:  -> needs patch

___
Python tracker 

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



[issue1682942] ConfigParser support for alt delimiters

2010-07-17 Thread Mark Lawrence

Mark Lawrence  added the comment:

Could the patch be reworked for 3.2?

--
nosy: +BreamoreBoy
versions: +Python 3.2 -Python 2.7

___
Python tracker 

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



[issue9277] test_struct failure on ARM

2010-07-17 Thread Stefan Krah

Stefan Krah  added the comment:

'sizeof y' is obviously wrong now in the memcpy. Next attempt.

--
Added file: http://bugs.python.org/file18043/bp_bool2.patch

___
Python tracker 

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



[issue9277] test_struct failure on ARM

2010-07-17 Thread Stefan Krah

Changes by Stefan Krah :


Removed file: http://bugs.python.org/file18041/bp_bool.patch

___
Python tracker 

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



[issue1694663] Overloading int.__pow__ does not work

2010-07-17 Thread Mark Lawrence

Mark Lawrence  added the comment:

Could someone please review this patch to typeobject.c.

--
components: +Extension Modules -None
nosy: +BreamoreBoy
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6, Python 3.0

___
Python tracker 

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



[issue1699259] replacing char* with const char* in sysmodule.c/.h

2010-07-17 Thread Mark Lawrence

Mark Lawrence  added the comment:

Drop 2.7 as that's now gone.  See also #6952.

--
nosy: +BreamoreBoy
versions:  -Python 2.7

___
Python tracker 

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



[issue9284] inspect.findsource() cannot find source for doctest code

2010-07-17 Thread R. David Murray

R. David Murray  added the comment:

I don't understand why monkey patching linecache produces a valid test case.  
Can you explain?

Since I believe the same code/bugfix is in 3.x, I'm adding those versions.

--
stage: needs patch -> unit test needed
versions: +Python 3.1, Python 3.2

___
Python tracker 

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



[issue6952] deprecated conversion from string constant to char *

2010-07-17 Thread Mark Lawrence

Mark Lawrence  added the comment:

Drop 2.7 as it's gone.  See also #1699259.

--
nosy: +BreamoreBoy
versions:  -Python 2.7

___
Python tracker 

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



[issue9284] inspect.findsource() cannot find source for doctest code

2010-07-17 Thread Dirkjan Ochtman

Dirkjan Ochtman  added the comment:

Because doctest also monkeypatches linecache, and without monkeypatching 
linecache this also fails in 2.6.

--

___
Python tracker 

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



[issue1704134] minidom Level 1 DOM compliance

2010-07-17 Thread Mark Lawrence

Mark Lawrence  added the comment:

Changed type to behaviour as I see many references to bugs, hence the changes 
to versions.  This is a massive patch and will be a substancial amount of work 
if anyone wishes to take it on.

--
nosy: +BreamoreBoy
type: feature request -> behavior
versions: +Python 3.2

___
Python tracker 

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



[issue9079] Make gettimeofday available in time module

2010-07-17 Thread Reid Kleckner

Reid Kleckner  added the comment:

I think you forgot to svn add pytime.c before making the diff.

--

___
Python tracker 

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



[issue9284] inspect.findsource() cannot find source for doctest code

2010-07-17 Thread R. David Murray

R. David Murray  added the comment:

Oh, right, I remember that now.  Thanks.

--

___
Python tracker 

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



[issue9036] Simplify Py_CHARMASK

2010-07-17 Thread Stefan Krah

Stefan Krah  added the comment:

[Marc-Andre]
> Why not just make the casts in those cases explicit instead of
> using Py_CHARMASK ?

I agree that this would be the cleanest solution. It's harder to get
someone to review a larger patch though.


Antoine, I understood that you would prefer to leave the mask. Could I
apply the second version of the patch?

It will probably have an immediate benefit. On the ARM buildbot char
is unsigned and gcc emits a whole page of spurious 'array subscript has
type 'char' warnings.

--
Added file: http://bugs.python.org/file18044/py_charmask2.patch

___
Python tracker 

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



[issue1706039] Added clearerr() to clear EOF state

2010-07-17 Thread Mark Lawrence

Mark Lawrence  added the comment:

The patch adds one line and moves one line in fileobject.c.  The rest of the 
patch is new tests.  I've successfully applied the patch on Windows and the 
tests were fine.  Can someone kindly repeat the tests on OS X as this is where 
the problem was originally reported.

--
nosy: +BreamoreBoy
versions: +Python 2.7, Python 3.2 -Python 2.6

___
Python tracker 

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



[issue1712522] urllib.quote throws exception on Unicode URL

2010-07-17 Thread Mark Lawrence

Mark Lawrence  added the comment:

I've run an eye over this and don't see any problems, particularly in the light 
of msg101043.  Only 2.7 is affected as the fix has been backported from py3k.  
Please can we go forward with this.

--
nosy: +BreamoreBoy
versions:  -Python 2.6

___
Python tracker 

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



[issue1755841] Patch for [ 735515 ] urllib2 should cache 301 redir

2010-07-17 Thread Mark Lawrence

Mark Lawrence  added the comment:

Just a prod in case it has gone under the radar.

--
nosy: +BreamoreBoy
versions: +Python 3.2 -Python 2.7

___
Python tracker 

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



[issue1777134] minidom pretty xml output improvement

2010-07-17 Thread Mark Lawrence

Mark Lawrence  added the comment:

Looking at the comments here msg104801 seems like more work needs to be done on 
the patch.

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue1200] Allow array.array to be parsed by the t# format unit.

2010-07-17 Thread Mark Lawrence

Mark Lawrence  added the comment:

OP has stated it's ok to close.

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

___
Python tracker 

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



[issue1343] XMLGenerator: nice elements

2010-07-17 Thread Mark Lawrence

Mark Lawrence  added the comment:

I believe 3.2 is still open for new features.

--
nosy: +BreamoreBoy
versions: +Python 3.2 -Python 3.3

___
Python tracker 

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



[issue5180] 3.1 cannot unpickle 2.7-created pickle

2010-07-17 Thread Alexandre Vassalotti

Alexandre Vassalotti  added the comment:

The args argument is always a tuple created with Pdata_poptuple(). You can add 
an explicit type check. If this check fails a RuntimeError should be raised, 
because this would indicate a programming error in pickle.

--

___
Python tracker 

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



[issue1552] fromfd() and socketpair() should return wrapped sockets

2010-07-17 Thread Mark Lawrence

Mark Lawrence  added the comment:

The attached patch files are small and look ok to me.  Could someone with 
socket experience please give a yes or no.

--
nosy: +BreamoreBoy
versions:  -Python 2.7

___
Python tracker 

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



[issue1554] socketmodule cleanups: allow the use of keywords in socket functions

2010-07-17 Thread Mark Lawrence

Mark Lawrence  added the comment:

Could someone please review these patches as they stand.  Will any rework of 
the patches be needed to get them into 3.2?

--
nosy: +BreamoreBoy
versions: +Python 3.2 -Python 2.7, Python 3.1

___
Python tracker 

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



[issue1568] PATCH: Armin's attribute lookup caching for 3.0

2010-07-17 Thread Mark Lawrence

Mark Lawrence  added the comment:

As the patch provides some performance increase which has already been proven 
to work in 2.6, could we get this into 3.2?  I say this because I understand 
that performance was degraded in py3k, could this be one of the reasons why?

--
nosy: +BreamoreBoy
versions: +Python 3.2 -Python 3.1

___
Python tracker 

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



[issue1763] Winpath module - easy access to Windows directories like My Documents

2010-07-17 Thread Mark Lawrence

Mark Lawrence  added the comment:

@Christian: have you any interest in keeping this open or can it be closed, 
gien that the last comment was 2 1/2 years ago?

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue1800] ctypes callback fails when called in Python with array argument

2010-07-17 Thread Mark Lawrence

Mark Lawrence  added the comment:

This is a very small patch against the ctypes __init__.py, could anyone with 
some ctypes experience please review the patch.

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue1818] Add named tuple reader to CSV module

2010-07-17 Thread Mark Lawrence

Mark Lawrence  added the comment:

I suggest that this is closed unless anyone shows an active interest in it.

--
nosy: +BreamoreBoy
status: open -> pending
versions: +Python 3.2, Python 3.3 -Python 2.7, Python 3.1

___
Python tracker 

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



[issue1943] improved allocation of PyUnicode objects

2010-07-17 Thread Mark Lawrence

Mark Lawrence  added the comment:

@Antoine: do you wish to try and take this forward?

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue9280] sharedinstall target doesn't depend on sharedmods target

2010-07-17 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

r82934

--
nosy: +benjamin.peterson
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue8253] add a resource+files section in setup.cfg

2010-07-17 Thread Éric Araujo

Changes by Éric Araujo :


--
assignee: tarek -> merwok
nosy: +titus

___
Python tracker 

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



[issue8252] add a metadata section in setup.cfg

2010-07-17 Thread Éric Araujo

Changes by Éric Araujo :


--
assignee: tarek -> merwok
nosy: +titus

___
Python tracker 

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



[issue8254] write a configure command

2010-07-17 Thread Éric Araujo

Éric Araujo  added the comment:

Quick update: I have done a basic part of this, but Tarek explained to me the 
real usefulness of this command, i.e. provide build and installation options 
for third-party code (for the same purposes that get_config_var in Python’s 
sysconfig). I am currently working on #8252 but do not forget this one.

--
assignee: tarek -> merwok

___
Python tracker 

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



[issue8254] write a configure command

2010-07-17 Thread Éric Araujo

Éric Araujo  added the comment:

Tarek also answered my questions.

1) 4) build and install options should be defined and checked only once, in 
configure. build and install would inherit from this class and get their option 
from it.

3) I switched to using distutils2.core.run_setup, which Tarek said is okayish. 
Understanding why the usual idiom of using the classes directly doesn’t work 
will be better.

5) Since the cache file (the file that contains options, written by configure) 
is tied to a precise build, it should be specific. I can put the platform and 
Python version in the filename, or maybe put the file in the platform-specific 
build directory. Not sure about the naming in dists. I still have to think 
about the overlap between setup.cfg and configure.cache.

--

___
Python tracker 

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



[issue9079] Make gettimeofday available in time module

2010-07-17 Thread Alexander Belopolsky

Alexander Belopolsky  added the comment:

Indeed.  Replacing issue9079a.diff now.

--
Added file: http://bugs.python.org/file18045/issue9079a.diff

___
Python tracker 

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



[issue9079] Make gettimeofday available in time module

2010-07-17 Thread Alexander Belopolsky

Changes by Alexander Belopolsky :


Removed file: http://bugs.python.org/file18034/issue9079a.diff

___
Python tracker 

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



[issue1699259] replacing char* with const char* in sysmodule.c/.h

2010-07-17 Thread Alexander Belopolsky

Alexander Belopolsky  added the comment:

2.7 is not gone.  It has entered an extended maintenance period.  During this 
period, 2.7.x releases will incorporate bug fixes but will not get any new 
features.  This particular issue is arguably a bug.  I think  Christian should 
make a call on whether this is appropriate for 2.7.

--

___
Python tracker 

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



[issue1706039] Added clearerr() to clear EOF state

2010-07-17 Thread Alexander Belopolsky

Changes by Alexander Belopolsky :


--
assignee:  -> belopolsky
resolution:  -> accepted
stage: patch review -> commit review

___
Python tracker 

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



[issue8252] add a metadata section in setup.cfg

2010-07-17 Thread Éric Araujo

Changes by Éric Araujo :


--
dependencies: +update mkpkg to latest coding standards

___
Python tracker 

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



[issue8591] update mkpkg to latest coding standards

2010-07-17 Thread Éric Araujo

Éric Araujo  added the comment:

I’m assigning this bug to myself as part of my work on #8252. Dan, I’ll sort 
the various fixes in your patch and replay them incrementally. I’ll be pleased 
to work with you if you have time (find me in #distutils or through email), if 
you don’t thanks for the starting point, I’ll manage the rest :)

I also had an epiphany: Why do we add a script when we have a nice command 
framework? So when the script is cleaned up, I’ll turn it into a 
distutils2.command.init command module.

--
assignee: tarek -> merwok
nosy: +titus
resolution:  -> accepted
stage:  -> needs patch
versions:  -Python 3.3

___
Python tracker 

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



[issue9288] Disambiguate :option: and :cmdoption:

2010-07-17 Thread Éric Araujo

New submission from Éric Araujo :

I made a doc patch in a followup to 
http://mail.python.org/pipermail/python-dev/2010-July/102011.html

--
assignee: d...@python
components: Documentation
files: improve-check.diff
keywords: needs review, patch
messages: 110606
nosy: d...@python, merwok
priority: normal
severity: normal
status: open
title: Disambiguate :option: and :cmdoption:
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2
Added file: http://bugs.python.org/file18046/improve-check.diff

___
Python tracker 

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



[issue9288] Disambiguate :option: and :cmdoption:

2010-07-17 Thread Éric Araujo

Changes by Éric Araujo :


Removed file: http://bugs.python.org/file18046/improve-check.diff

___
Python tracker 

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



[issue9288] Disambiguate :option: and :cmdoption:

2010-07-17 Thread Éric Araujo

Changes by Éric Araujo :


Added file: http://bugs.python.org/file18047/disambiguate-option-cmdoption.diff

___
Python tracker 

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



[issue8910] Write a text file explaining why Lib/test/data exists

2010-07-17 Thread Éric Araujo

Éric Araujo  added the comment:

Adding people listed for the testing interest area in the maintainers file.

--
nosy: +giampaolo.rodola, michael.foord, pitrou

___
Python tracker 

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



[issue6722] collections.namedtuple: confusing example

2010-07-17 Thread Éric Araujo

Changes by Éric Araujo :


--
nosy: +d...@python

___
Python tracker 

___
___
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

2010-07-17 Thread Éric Araujo

Éric Araujo  added the comment:

Closing as outdated since 2.7 has been release with some mimetools usage left.

--
resolution:  -> out of date
stage:  -> committed/rejected
status: open -> closed
versions: +Python 2.7 -Python 2.6, Python 3.0

___
Python tracker 

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



[issue4819] Misc/cheatsheet needs updating

2010-07-17 Thread Éric Araujo

Changes by Éric Araujo :


--
assignee: georg.brandl -> d...@python
nosy: +d...@python
versions: +Python 3.2

___
Python tracker 

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



[issue8357] Add a --show-installation-paths in the install command

2010-07-17 Thread Éric Araujo

Éric Araujo  added the comment:

Assigning to myself. Not sure if I’ll do the logging idea Tarek suggested or an 
option to the configure command (#8252).

--
assignee: tarek -> merwok
stage:  -> needs patch
type: behavior -> feature request
versions: +Python 2.5, Python 2.7, Python 3.2

___
Python tracker 

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



[issue8538] Add ConfigureAction to argparse

2010-07-17 Thread Éric Araujo

Éric Araujo  added the comment:

Some useful tips to make patches: http://www.python.org/dev/patches/

--

___
Python tracker 

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



[issue9282] Bug in --listfuncs option of trace.py

2010-07-17 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

Looking at the 2.x code, that is the obvious fix. I think this ready to commit.

--
stage:  -> commit review
versions:  -Python 3.3

___
Python tracker 

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



[issue9286] email.utils.parseaddr returns garbage for invalid input

2010-07-17 Thread Éric Araujo

Changes by Éric Araujo :


--
assignee:  -> r.david.murray

___
Python tracker 

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



[issue7303] pkgutil lacks documentation for useful functions

2010-07-17 Thread Éric Araujo

Éric Araujo  added the comment:

Thanks for your help proposal Ulrik. If I understand the documentation 
correctly, docstrings should contain enough usage information but not too much. 
In pkgutil, some examples and long explanations could be removed after you move 
them to the reST doc.

Make sure to work from a checkout of 3.2 (branch named py3k) to have the latest 
updates. This page contains some tips about patches: 
http://www.python.org/dev/patches/

You can ask any questions here or on the d...@python.org mailing list. Thanks 
again.

--

___
Python tracker 

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



[issue5180] 3.1 cannot unpickle 2.7-created pickle

2010-07-17 Thread Alexander Belopolsky

Alexander Belopolsky  added the comment:

Committed issue5180b.diff with minor additions in r82937 (r82938 for 3.1):

1.  Added an assert that args is a tuple in instantiate() with an explanation 
why it is true.

2.  Added a test for the other code branch instantiate. (Not all conditions are 
tested, but I think this is now good enough.)

The explanation of INST and OBJ opcodes in pickletools is now out of date, so I 
am adding #9267 as a superseder.

--
resolution: accepted -> fixed
stage: commit review -> committed/rejected
status: open -> closed
superseder:  -> Update pickle opcode documentation in pickletools for 3.x

___
Python tracker 

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



[issue7303] pkgutil lacks documentation for useful functions

2010-07-17 Thread Éric Araujo

Éric Araujo  added the comment:

Other useful advice:
http://docs.pythonsprints.com/core_development/beginners#building-the-documentation
http://docs.python.org/documenting/

--

___
Python tracker 

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



[issue7303] pkgutil lacks documentation for useful functions

2010-07-17 Thread Éric Araujo

Éric Araujo  added the comment:

Wrong link, sorry everyone for the noise:
http://docs.pythonsprints.com/core_development/beginners.html#building-the-documentation

--

___
Python tracker 

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



[issue9026] argparse subcommands not printed in the same order they were added

2010-07-17 Thread Éric Araujo

Éric Araujo  added the comment:

In py3k.diff, the changes to argparse and new test cases look good to me. I 
don’t know why you’ve added hasattr tests in test_argparse.py.

--
stage: unit test needed -> patch review
title: [argparse] Subcommands not printed in the same order they were added -> 
argparse subcommands not printed in the same order they were added

___
Python tracker 

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



  1   2   >