[issue14401] Typos in curses.rst

2012-03-25 Thread Roundup Robot

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

New changeset 87539f66156b by Georg Brandl in branch '2.7':
Closes #14401: fix typos in curses howto.
http://hg.python.org/cpython/rev/87539f66156b

--
nosy: +python-dev
resolution:  - fixed
stage:  - committed/rejected
status: open - closed

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



[issue14401] Typos in curses.rst

2012-03-25 Thread Roundup Robot

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

New changeset a9129cf78cf0 by Georg Brandl in branch '3.2':
Closes #14401: fix typos in curses howto.
http://hg.python.org/cpython/rev/a9129cf78cf0

--

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



[issue13438] Delete patch set review action doesn't work

2012-03-25 Thread Éric Araujo

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

Please use the tracker’s tracker for this bug (link at the bottom of the 
sidebar on the left).  Thanks.

--
nosy: +eric.araujo
resolution:  - invalid
stage:  - committed/rejected
status: open - closed

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



[issue12937] distutils2: install action should support same options as install command

2012-03-25 Thread Éric Araujo

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

To be clear, the distutils2 install command (currently spelled install_dist but 
see #13160) does have all these options, it’s the install action that needs to 
expose them too.

--
assignee: tarek - eric.araujo
stage:  - needs patch
title: Support install options as found in distutils - distutils2: install 
action should support same options as install command

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



[issue12932] dircmp does not allow non-shallow comparisons

2012-03-25 Thread Éric Araujo

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

Thanks for the report.  Unfortunately 2.7 is closed to new features and the 
module is removed in 3.x, so there is nothing to do here.

--
nosy: +eric.araujo
resolution:  - out of date
stage:  - committed/rejected
status: open - closed

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



[issue12864] 2to3 creates illegal code on import a.b inside a package

2012-03-25 Thread Éric Araujo

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

-import sub.subsub
+from .sub import subsub as _dummy

That’s partly incorrect, as you need to bind the name sub to match the original 
code.

--
nosy: +eric.araujo

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



[issue12864] 2to3 creates illegal code on import a.b inside a package

2012-03-25 Thread Éric Araujo

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

BTW I think if this is too difficult to implement 2to3 could just be documented 
as requiring you not to use implicit relative imports.

--

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



[issue10796] readline completion flaw

2012-03-25 Thread Éric Araujo

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

I can’t reproduce with 2.7 or 3.2 with a readline module linked to GNU readline.

--
nosy: +eric.araujo
versions:  -Python 2.6, Python 3.1

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



[issue11310] Document byte[s|array]() and byte[s|array](count) in docstrings

2012-03-25 Thread Éric Araujo

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

I think you could just go ahead and commit your patch.  I don’t remember if the 
reST docs were changed recently-ish or if it’s still an open bug, so you may 
want to check that the new docstrings matches the doc.

--
nosy: +eric.araujo
versions: +Python 2.7

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



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

2012-03-25 Thread Charles-François Natali

Charles-François Natali neolo...@free.fr added the comment:

Since eab274c7d456, all the buildbots are randomly failing, e.g.


==
FAIL: test_method_deprecations (test.test_urllib2.OpenerDirectorTests)
--
Traceback (most recent call last):
  File 
/Users/buildbot/buildarea/3.x.parc-snowleopard-1/build/Lib/test/test_urllib2.py,
 line 622, in test_method_deprecations
req.add_data(data)
  File 
/Users/buildbot/buildarea/3.x.parc-snowleopard-1/build/Lib/contextlib.py, 
line 54, in __exit__
next(self.gen)
  File 
/Users/buildbot/buildarea/3.x.parc-snowleopard-1/build/Lib/test/support.py, 
line 766, in _filterwarnings
missing[0])
AssertionError: filter ('', DeprecationWarning) did not catch any warning


http://python.org/dev/buildbot/all/builders/AMD64%20Snow%20Leopard%202%203.x/builds/231/steps/test/logs/stdio

--
nosy: +neologix

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



[issue13902] Sporadic test_threading failure on FreeBSD 6.4 buildbot

2012-03-25 Thread Charles-François Natali

Charles-François Natali neolo...@free.fr added the comment:

Should be fixed now.

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

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



[issue14396] Popen wait() doesn't handle spurious wakeups

2012-03-25 Thread Charles-François Natali

Charles-François Natali neolo...@free.fr added the comment:

 I'm working on figuring out the exact conditions under which it 
 happens and creating a harness. I'll post it when I've got it.

Please do so, because I'm quite skeptical about waitpid() returning 0
without WNOHANG.
If you can reproduce it fairly consistently, you could try running
under strace to see what's happening.

--

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



[issue14200] Idle shell crash on printing non-BMP unicode character

2012-03-25 Thread Roundup Robot

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

New changeset 89878808f4ce by Andrew Svetlov in branch 'default':
Issue #14200 — now displayhook for IDLE works in non-subprocess mode as well as 
subprecess.
http://hg.python.org/cpython/rev/89878808f4ce

--

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



[issue14392] type=bool doesn't raise error in argparse.Action

2012-03-25 Thread Toshihiro Kamishima

Toshihiro Kamishima m...@kamishima.net added the comment:

Thank you for your response.

My patch makes raise error by minimal change, but it may be better to raise 
NameError as in a case specifying type=string in 2.7.2.

Similar to the case type=bool, specifications, such as type=unicode or 
type=long, don't raise errors.
Because the set of problematic keywords are different between 2.7.x and 3.3.x, 
I have no idea to completely fix this problem.

--

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



[issue14350] Strange Exception from copying an iterator

2012-03-25 Thread Jakob Bowyer

Jakob Bowyer jkb...@gmail.com added the comment:

Before anyone else rushes of to do this, can I? I really want to break into 
python-dev and this might be my chance.

--

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



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

2012-03-25 Thread Senthil Kumaran

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

It's funny,  Antoine had raised an issue too.  Should see why is this
sporadic failures..

--

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



[issue14397] Use GetTickCount/GetTickCount64 instead of QueryPerformanceCounter for monotonic clock

2012-03-25 Thread Marc-Andre Lemburg

Marc-Andre Lemburg m...@egenix.com added the comment:

Yury Selivanov wrote:
 
 Yury Selivanov yseliva...@gmail.com added the comment:
 
 A monotonic clock is not suitable for measuring durations, as it may still 
 jump forward. A steady clock will not.
 
 Well, Victor's implementation of 'steady()' is just a tiny wrapper, which 
 uses 'monotonic()' or 'time()' if the former is not available.  Hence 
 'steady()' is a misleading name.

Agreed.

I think time.monotonic() is a better name.

--
nosy: +lemburg

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



[issue14288] Make iterators pickleable

2012-03-25 Thread sbt

sbt shibt...@gmail.com added the comment:

 ... and that pickling things like dict iterators entail running the 
 iterator to completion and storing all of the results in a list.

The thing to emphasise here is that pickling an iterator is destructive: 
afterwards the original iterator will be empty.

I can't think of any other examples where pickling an object causes non-trivial 
mutation of that object.

Come to think of it, doesn't copy.copy() delegate to 
__reduce__()/__reduce_ex__().  It would be a bit surprising if 
copy.copy(myiterator) were to consume myiterator.  I expect copy.copy() to 
return an independent copy without mutating the original object.

--

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



[issue14403] unittest module: provide inverse of assertRaises

2012-03-25 Thread Danilo Bargen

New submission from Danilo Bargen gez...@gmail.com:

Most assert statements of the unittest module provide both an assert statement 
as well as its inverse, like assertIn and assertNotIn. There is apparently 
no such thing for exceptions.

I can do the following:

 with self.assertRaises(SomeException):
 do_something()

But not:

 with self.assertRaisesNot(SomeException):
 do_something()

I don't want to simply execute the code and hope that it doesn't raise an 
exception, because if it does, the test fails with an error status instead of 
a failed status.

A possible workaround is the following code:

 try:
 do_something()
 except SomeException:
 self.fail()

But that is not that expressive as an assert statement.

A naming alternative would be assertDoesNotRaise.

In case this enhancement gets accepted, there should also be an inverse of 
assertRaisesRegexp.

--
components: Tests
messages: 156750
nosy: gwrtheyrn
priority: normal
severity: normal
status: open
title: unittest module: provide inverse of assertRaises
type: enhancement
versions: Python 2.7

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



[issue14403] unittest module: provide inverse of assertRaises

2012-03-25 Thread Tshepang Lekhonkhobe

Changes by Tshepang Lekhonkhobe tshep...@gmail.com:


--
nosy: +tshepang

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



[issue14288] Make iterators pickleable

2012-03-25 Thread Antoine Pitrou

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

 The thing to emphasise here is that pickling an iterator is
 destructive: afterwards the original iterator will be empty.

If you look at the patch it isn't (or shouldn't be).

I agree with Raymond that accumulating dict and set iterators in a list is a 
bit weird. That said, with hash randomization, perhaps we can't do any better 
(the order of elements in the internal table depends on the process-wide hash 
seed).

--

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



[issue14403] unittest module: provide inverse of assertRaises

2012-03-25 Thread Antoine Pitrou

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

 I don't want to simply execute the code and hope that it doesn't raise 
 an exception, because if it does, the test fails with an error status 
 instead of a failed status.

So what?

--
components: +Library (Lib) -Tests
nosy: +michael.foord, pitrou
versions: +Python 3.3 -Python 2.7

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



[issue14403] unittest module: provide inverse of assertRaises

2012-03-25 Thread Danilo Bargen

Danilo Bargen gez...@gmail.com added the comment:

 I don't want to simply execute the code and hope that it doesn't raise 
 an exception, because if it does, the test fails with an error status 
 instead of a failed status.
 
 So what?

A buggy test is not the same thing as a test that fails because the test result 
did not meet your assertions.

--

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



[issue14404] multiprocessing with maxtasksperchild: bug in state machine?

2012-03-25 Thread ranga

New submission from ranga r_pyb...@curdrice.com:

I asked this on Stackoverflow and discovered from the discussions there that it 
might be a Python bug.

http://stackoverflow.com/questions/9859222/python-multiprocessing-with-maxtasksperchild

HOW TO REPRODUCE


This seemingly-simple program isn't working for me unless I remove the 
maxtasksperchild parameter. What am I doing wrong?

from multiprocessing import Pool
import os
import sys

def f(x):
  print pid: , os.getpid(),  got: , x
  sys.stdout.flush()
  return [x, x+1]

def cb(r):
  print got result: , r

if __name__ == '__main__':
  pool = Pool(processes=1, maxtasksperchild=9)
  keys = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
  result = pool.map_async(f, keys, chunksize=1, callback=cb)
  pool.close()
  pool.join()

When I run it, I get:

$ python doit.py
pid:  6409  got:  1
pid:  6409  got:  2
pid:  6409  got:  3
pid:  6409  got:  4
pid:  6409  got:  5
pid:  6409  got:  6
pid:  6409  got:  7
pid:  6409  got:  8
pid:  6409  got:  9

And it hangs. That is, the new worker to process the 10th element didn't get 
spawned.

In another terminal, I see:

$ ps -C python
  PID TTY  TIME CMD
 6408 pts/11   00:00:00 python
 6409 pts/11   00:00:00 python defunct

This is done on Ubuntu 11.10 running python 2.7.2+ (installed from ubuntu 
packages).

MY HYPOTHESIS
=

This is based on skimming the code and turning on logging.

The call to pool.close() (which the docs say I should call before calling 
pool.join()), sets the flag pool._state to CLOSE. The function 
Pool._handle_workers relies on that flag being 'RUN' to kick off new worker 
processes. Which doesn't happen, leading to everything getting stuck.

One workaround for the bug is to sleep after the map_async call for about 10 
seconds before pool.close() is called. That works as it should (because 
pool._state doesn't get set to CLOSE until the all the jobs have finished).

Sorry if I missed something, didn't RTFM etc.

--
components: Library (Lib)
messages: 156754
nosy: ranga
priority: normal
severity: normal
status: open
title: multiprocessing with maxtasksperchild: bug in state machine?
versions: Python 2.7

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



[issue14404] multiprocessing with maxtasksperchild: bug in control logic?

2012-03-25 Thread ranga

Changes by ranga r_pyb...@curdrice.com:


--
title: multiprocessing with maxtasksperchild: bug in state machine? - 
multiprocessing with maxtasksperchild: bug in control logic?

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



[issue14403] unittest module: provide inverse of assertRaises

2012-03-25 Thread Antoine Pitrou

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

  I don't want to simply execute the code and hope that it doesn't raise 
  an exception, because if it does, the test fails with an error status 
  instead of a failed status.
  
  So what?
 
 A buggy test is not the same thing as a test that fails because the
 test result did not meet your assertions.

That's a completely meaningless difference in my experience. Raising an
exception usually means the tested code is buggy, not the test.
Whoever introduced this distinction probably overengineered it.

--

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



[issue14288] Make iterators pickleable

2012-03-25 Thread sbt

sbt shibt...@gmail.com added the comment:

 If you look at the patch it isn't (or shouldn't be).

Sorry.  I misunderstood when Raymond said running the iterator to completion.

--

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



[issue14403] unittest module: provide inverse of assertRaises

2012-03-25 Thread Michael Foord

Michael Foord mich...@voidspace.org.uk added the comment:

The opposite of calling assertRaises is simply calling the code. A comment as 
to why you're calling the code is sufficient documentation as to the intent of 
the test.

In general the difference be a test failure and error is not useful - you 
*still* have to look at the traceback (failure details) to see *why* the test 
failed / errored. I'm sure the distinction comes from JUnit that unittest was 
originally based on (and yes - overengineered for Python).

--
assignee:  - michael.foord
resolution:  - wont fix
status: open - closed

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



[issue14322] More test coverage for hmac

2012-03-25 Thread Antoine Pitrou

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

Some style comments:

- don't use except: self.fail(), just let the exception pass through

- when monkeypatching hmac.new, use a try...finally block so that the mock 
doesn't stay in place if the test fails for whatever reason

- it's a bit of a nit, but when using with warnings.catch_warnings, I would 
put the asserts on the context manager result outside of the with block

- I get a warning in test_noncallable_digestmod, it would be nice to silence it:

/home/antoine/cpython/default/Lib/test/test_hmac.py:254: RuntimeWarning: No 
block_size attribute on given digest object; Assuming 64.
  h = hmac.HMAC(bkey, b, hmac)

--
nosy: +gregory.p.smith, pitrou
stage:  - patch review

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



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

2012-03-25 Thread Jeff McNeil

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

I was looking at a somewhat unrelated issue and I bumped up against a similar 
situation with the warnings system. 

I didn't look too much into it, but it appeared that warnings didn't get added 
to __warningregistry__ correctly. Though, when I set the stack level explicitly 
(to an incorrect value for the issue at hand), the warnings were caught by 
catch_warnings.

I don't know if it is related or not, but my assumption at the time was that 
smarter people than I had vetted warnings. =)

--

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



[issue13850] Summary tables for argparse add_argument options

2012-03-25 Thread Xavier Morel

Xavier Morel xavier.mo...@masklinn.net added the comment:

Had some time to play with this today, here's a draft matrix of actions and 
add_argument parameters which is pretty readable, but:

* It's incredibly not helpful for people who don't know argparse
* I tried adding effects descriptions in the cells instead of mere tick marks, 
the table becomes completely unreadable. I added a note directive below the 
table but it only lists a few really important/weird things, and it really 
won't scale beyond the current 3 items (which might already be too much)
* I completely removed the ``help`` action from the table as it's unlikely 
anyone will want to override it (and its row was completely blank)
* Hyperlinking and cross-linking (to the params, the actions, footnotes) would 
probably be a good idea, although it would definitely make the raw text 
(in-rst) 

I also tried my hand at formatting ``nargs``, but I don't see it as much 
clearer than http://docs.python.org/library/argparse.html#nargs without the 
examples, it's still just a mapping from a value to a behavior. I think the 
result would be just as good if the current ``nargs`` description was made into 
a definition list (in effect, it already is one emulated through an unordered 
list) and the examples were moved or removed.

--
Added file: http://bugs.python.org/file25018/argparse-actions-matrix

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



[issue14405] Some Other Resources in the sidebar are hopelessly out of date

2012-03-25 Thread Ned Batchelder

New submission from Ned Batchelder n...@nedbatchelder.com:

The Other Resources section lists these resources:


Guido's Essays: out of date, the first is about 2.2, by the fifth, we're into 
Python 1.5.

New-style Classes: this means new as of 2.2, and the linked page begins, 
Unfortunately, new-style classes have not yet been integrated into Python's 
standard documention.

These two links should be removed from the doc sidebar, they don't add much 
over the documentation itself.

--
assignee: docs@python
components: Documentation
messages: 156761
nosy: docs@python, nedbat
priority: normal
severity: normal
status: open
title: Some Other Resources in the sidebar are hopelessly out of date

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



[issue13850] Summary tables for argparse add_argument options

2012-03-25 Thread Xavier Morel

Xavier Morel xavier.mo...@masklinn.net added the comment:

completion for list item 4:

 although it would definitely make the raw text (in-rst) much harder to read 
 compared to the current table (which can be used from the rst source without 
 compiling)

--

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



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

2012-03-25 Thread Jeff McNeil

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

Disregard. That was in concert with ntpath, which uses a funky approach to 
testing.

--

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



[issue14406] Race condition in concurrent.futures

2012-03-25 Thread Matt Joiner

New submission from Matt Joiner anacro...@gmail.com:

There's a race condition in concurrent.futures in _AllCompletedWaiter, which 
affects wait(return_when=ALL_COMPLETED).

The attached test will go into an infinite wait.

--
components: Library (Lib)
files: concurrent.futures._AllCompletedWaiter-race-condition-test.py
messages: 156764
nosy: anacrolix
priority: normal
severity: normal
status: open
title: Race condition in concurrent.futures
type: behavior
versions: Python 3.2, Python 3.3
Added file: 
http://bugs.python.org/file25019/concurrent.futures._AllCompletedWaiter-race-condition-test.py

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



[issue14406] Race condition in concurrent.futures

2012-03-25 Thread Matt Joiner

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

Patch attached.

--
keywords: +patch
Added file: 
http://bugs.python.org/file25020/concurrent.futures._AllCompletedWaiter-race-condition.patch

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



[issue14406] Race condition in concurrent.futures

2012-03-25 Thread Matt Joiner

Changes by Matt Joiner anacro...@gmail.com:


--
nosy: +bquinlan, loewis, pitrou, rosslagerwall

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



[issue14407] concurrent.futures tests don't adher to test_cases protocol

2012-03-25 Thread Matt Joiner

New submission from Matt Joiner anacro...@gmail.com:

matt@matt-1005P:~/src/cpython$ ./python -m unittest test.test_concurrent_futures
Ran 79 tests in 62.554s

FAILED (errors=18)

Failures are due to test discovery picking up unintentionally exposed tests. By 
adhering to the test_cases protocol introduced in 3.2, this doesn't occur.

Patch attached.

--
components: Tests
files: test_concurrent_futures-load_tests-protocol.patch
keywords: patch
messages: 156766
nosy: anacrolix
priority: normal
severity: normal
status: open
title: concurrent.futures tests don't adher to test_cases protocol
versions: Python 3.2, Python 3.3
Added file: 
http://bugs.python.org/file25021/test_concurrent_futures-load_tests-protocol.patch

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



[issue14407] concurrent.futures tests don't adher to test_cases protocol

2012-03-25 Thread Matt Joiner

Changes by Matt Joiner anacro...@gmail.com:


--
type:  - enhancement

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



[issue14373] C implementation of functools.lru_cache

2012-03-25 Thread Matt Joiner

Changes by Matt Joiner anacro...@gmail.com:


--
nosy: +nedbat

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



[issue14200] Idle shell crash on printing non-BMP unicode character

2012-03-25 Thread Andrew Svetlov

Andrew Svetlov andrew.svet...@gmail.com added the comment:

After experiments with non-BMP characters I figured out:
— non-bmp symbols processed by Tk text widgets (Entry, Text etc.) differently. 
For example Entry can display non-bmp with spaces after glyph, Text reduces 
symbol to BMP. Editing is also weird.
— looks like tk event loop passes input of non-bmp directly to tkinter as is.

Obviously Tk does not support non-BMP chars by spec while not rejects ones 
strictly. Details are implementation specific and depends not only from Tcl/Tk 
version but from concrete widget class. 

After that my position is: 
— implement utf8-bmp codec
— first implementation of utf8-bmp can be done with pure python using utf-8 
codec and checks. This way is simple enough while has potential performance 
degradation. Doesn't matter if codec will be used only for converting relative 
short strings in Tk widgets.
— use it in _tkinter AsObj/FromObj functions with 'replace' mode.
— my approach is a bit incompatible in dark corner matter of non-BMP chars (not 
supported but silently passed to low-level platform API with weird transitions 
on the way). I think this is not a problem at all. 
— with utf-8-bmp codec IDLE still can use 'strict' mode in .write function 
(`print` and displayhook I mean) to keep current behavior or use escaping for 
displayhook and 'replace' for regular `print`. In implementation of #14326 we 
can use directly specified encoding for `print` as well.

I experimented with Ubuntu box but pretty sure — the same result can be 
reproduced on OS X and Windows as well. Also we need to make Tk to be 
crossplatform — so replacing non-BMP is not bad but it is good solution until 
Tcl/Tk will process non-bmp in native manner.

--

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



[issue14390] Tkinter single-threaded deadlock

2012-03-25 Thread Andrew Svetlov

Andrew Svetlov andrew.svet...@gmail.com added the comment:

Can you make a test code to introduce you issue?

I understand — it's not easy to extract failing code from your big project but 
please make simple example with python code and trivial C Extension for 
presentation of your problem.

Let's start from manual test can be reproduced by everyone. Also, please, make 
it for 'default' branch of python repo. It's possible to include bugfix for 2.7 
but upcoming release the most important.

Thank you.

--
nosy: +asvetlov

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



[issue6124] Tkinter should support the OS X zoom button

2012-03-25 Thread Andrew Svetlov

Andrew Svetlov andrew.svet...@gmail.com added the comment:

If Marc Culler as well as anybody has no interest/progress on that I will close 
the issue next week.

--
nosy: +asvetlov

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



[issue6124] Tkinter should support the OS X zoom button

2012-03-25 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
assignee: gpolo - asvetlov

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



[issue6639] turtle: _tkinter.TclError: invalid command name .10170160

2012-03-25 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

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



[issue9016] IDLE won't launch (Win XP)

2012-03-25 Thread Andrew Svetlov

Andrew Svetlov andrew.svet...@gmail.com added the comment:

Ping.
I like to close the issue next week if no response.

--
nosy: +asvetlov

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



[issue8231] Unable to run IDLE without write-access to config directory

2012-03-25 Thread Andrew Svetlov

Andrew Svetlov andrew.svet...@gmail.com added the comment:

Let's close the issue next week as report doesn't make sense if issuer has no 
write access to own home dir.

--
nosy: +asvetlov

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



[issue5707] IDLE will not load

2012-03-25 Thread Andrew Svetlov

Andrew Svetlov andrew.svet...@gmail.com added the comment:

Closing the issue. If somebody has a problem related to this — please make a 
new report.

--
nosy: +asvetlov
resolution: accepted - fixed
stage: commit review - committed/rejected
status: open - closed

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



[issue13052] IDLE: replace ending with '\' causes crash

2012-03-25 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
assignee:  - asvetlov
nosy: +asvetlov
priority: normal - high

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



[issue8231] Unable to run IDLE without write-access to config directory

2012-03-25 Thread Brian Curtin

Brian Curtin br...@python.org added the comment:

Please don't close it. Users in this situation can't use IDLE. We should at 
least try alternative locations to create this directory or perhaps prompt them 
for a directory they'd like to use.

--

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



[issue8231] Unable to run IDLE without write-access to config directory

2012-03-25 Thread Andrew Svetlov

Andrew Svetlov andrew.svet...@gmail.com added the comment:

Good point. Thank you.

--

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



[issue14288] Make iterators pickleable

2012-03-25 Thread Raymond Hettinger

Changes by Raymond Hettinger raymond.hettin...@gmail.com:


--
assignee: rhettinger - 

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



[issue5150] IDLE to support reindent.py

2012-03-25 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

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



[issue13486] msvc9compiler.py doesn't properly generate manifest files.

2012-03-25 Thread Thierry Bastian

Thierry Bastian thier...@filewave.com added the comment:

I have the same issue. To be honest it is because I'm using MSVC2010. I know it 
is not a supported platform but the patch to fix the problem is really just the 
following (and it is compatible with MSVC2008):

--- Lib/distutils/msvc9compiler.py.orig Mon Jun 21 17:27:46 2010
+++ Lib/distutils/msvc9compiler.py  Mon Mar 12 13:23:56 2012
@@ -645,6 +645,7 @@
 build_temp,
 os.path.basename(output_filename) + .manifest)
 ld_args.append('/MANIFESTFILE:' + temp_manifest)
+ld_args.append('/MANIFEST')

 if extra_preargs:
 ld_args[:0] = extra_preargs


On a side-note I wrote a CMakeLists.txt for python for windows. I have to say 
it was pretty easy even if I'm not building everything (I left out tcl/tk and 
bsddb). I would hope python in the future could use a more flexible way if 
being built. For reference, I copy here the cmakelists.txt.

--
nosy: +Thierry.Bastian
Added file: http://bugs.python.org/file25022/python-cmakelists.txt

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



[issue786827] IDLE starts with no menus (Cygwin)

2012-03-25 Thread Andrew Svetlov

Andrew Svetlov andrew.svet...@gmail.com added the comment:

ping

--
nosy: +asvetlov

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



[issue9609] make cProfile multi-stack aware

2012-03-25 Thread Andrew Svetlov

Andrew Svetlov andrew.svet...@gmail.com added the comment:

Is there progress on it?

--

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



[issue1253] IDLE - Percolator overhaul

2012-03-25 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

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



[issue1053687] PyOS_InputHook not called in IDLE subprocess

2012-03-25 Thread Andrew Svetlov

Andrew Svetlov andrew.svet...@gmail.com added the comment:

Let's look on IDLE only.
The problem has been fixed by #989712

I will close the issue next week if no objections.

--

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



[issue14350] Strange Exception from copying an iterator

2012-03-25 Thread R. David Murray

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

Please, give it a try.  But also be prepared for it being harder than it looks; 
the problem is that there may be very limited knowledge available where the 
error is generated. (I don't know; I haven't looked at the code and am not 
likely to...I usually leave reviews of C code to our C experts.)

--

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



[issue14386] Expose dictproxy as a public type

2012-03-25 Thread STINNER Victor

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

 A sequence *does* meet the (immutable) Mapping interface

Ah? Let's try:

 x=[1, 2, 3]
 x.get(2)
AttributeError: 'list' object has no attribute 'get'
 x.keys()
AttributeError: 'list' object has no attribute 'keys'

list doesn't implement the collections.abc.Mapping ABC.

--

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



[issue14386] Expose dictproxy as a public type

2012-03-25 Thread STINNER Victor

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

 The PyMapping_Check(dict)  !PyMapping_Check(dict) 

Oh, I mean PyMapping_Check(dict)  !PySequence_Check(dict)

--

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



[issue14228] It is impossible to catch sigint on startup in python code

2012-03-25 Thread R. David Murray

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

@telmich: I think you will have more success at getting what you want if you 
work with us rather than being confrontational.  Respect that we have reasons 
for doing things a certain way (and not because we are stupid), and we will 
respect your perspective more, and be more likely to do something about the 
real problem that you face.

Or, you could submit a patch...and again work *with* us to get it accepted.

Emitting a traceback on KeyboardInterrupt has served us well in the past, even 
in the startup case to which you are pointing.  If someone makes a mistake in 
site.py or similar and causes python startup to hang, a traceback on keyboard 
interrupt is exactly what you want.  You may think that this situation is 
unlikely to occur, but it is far *more* likely to occur than your 
situation...given, as Antoine said, that you are the first person to report 
this as a problem.

So, we need a solution that serves both use cases.  An environment flag or 
command line option seems to fit the bill.

Now we need a patch.

As far as feature request vs bug, fixing this without removing an existing 
feature (interrupting a hung startup with a traceback) requires a new option or 
environment variable, and therefore *by our rules* this can only go into 3.3.  
That makes it an enhancement by our (project specific) definition, regardless 
of whether or not it is a bug by the broader definition of bug.

--
stage:  - needs patch

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



[issue14386] Expose dictproxy as a public type

2012-03-25 Thread Raymond Hettinger

Raymond Hettinger raymond.hettin...@gmail.com added the comment:

I'm -1 on exposing this API.

Victor's sandboxing project doesn't warrant cluttering the public toolset.

As a consultant who gets to see many large codebases in different companies and 
I see zero need for this type to be exposed.  It is not hard to build proxies 
around any existing type.  Victor's use case is unique in that he needs the 
type to be implemented in C.  To that end, it would be okay to expose 
_dictproxy but not to make it a documented type.

--
nosy: +rhettinger

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



[issue3367] Uninitialized value read in parsetok.c

2012-03-25 Thread STINNER Victor

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

I'm unable to reproduce this error:
--
$ valgrind --db-attach=yes --suppressions=Misc/valgrind-python.supp ./python 
Python 3.3.0a1+ (default:0554183066b5, Mar 20 2012, 10:47:41) 
...
==20258== Invalid read of size 8
==20258==at 0x4C9F6F: sys_update_path (sysmodule.c:1742)
==20258==by 0x4CA268: PySys_SetArgvEx (sysmodule.c:1830)
...
--

My try:
--
$ ./configure --with-pydebug --with-valgrind  make
(...)
$ valgrind --suppressions=Misc/valgrind-python.supp ./python 
==10692== Memcheck, a memory error detector
==10692== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==10692== Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyright info
==10692== Command: ./python
==10692== 
Python 3.3.0a1+ (default:f8d01c8baf6a+, Mar 26 2012, 01:12:33) 
[GCC 4.6.2 20111027 (Red Hat 4.6.2-1)] on linux
Type help, copyright, credits or license for more information.
 1+1
2
 
==10692== 
==10692== HEAP SUMMARY:
==10692== in use at exit: 2,896,586 bytes in 14,491 blocks
==10692==   total heap usage: 86,344 allocs, 71,853 frees, 12,370,023 bytes 
allocated
==10692== 
==10692== LEAK SUMMARY:
==10692==definitely lost: 0 bytes in 0 blocks
==10692==indirectly lost: 0 bytes in 0 blocks
==10692==  possibly lost: 2,779,467 bytes in 14,287 blocks
==10692==still reachable: 117,119 bytes in 204 blocks
==10692== suppressed: 0 bytes in 0 blocks
==10692== Rerun with --leak-check=full to see details of leaked memory
==10692== 
==10692== For counts of detected and suppressed errors, rerun with: -v
==10692== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 2 from 2)
--

sysmodule.patch looks to be useless: n is not used if argc = 0.

At the revision 0554183066b5, sysmodule.c:1742 is the following line:
if (argc  0) {
but sysmodule.c:1830 is:
if (av == NULL)
whereas it should be:
sys_update_path(argc, argv);

Stephan: can you redo the Valgrind test on copy the exact line where the 
invalid read occurs (in sysmodule.c).

--

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



[issue14386] Expose dictproxy as a public type

2012-03-25 Thread R. David Murray

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

I believe it was actually Guido who suggested exposing dict_proxy, in response 
to Victor (but independent of Victor's needs, if I understood the message 
correctly).

It has always seemed odd to me (always referring my time working with 
Python3, of course) that a class that implements the mapping protocol has no 
way to return the same type of objects that real dict methods do.

--
nosy: +r.david.murray

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



[issue14386] Expose dictproxy as a public type

2012-03-25 Thread STINNER Victor

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

 Victor's use case is unique in that he needs the type
 to be implemented in C.

mxProxy, zope.proxy and zope.security implement object proxies in C (for 
security purpose). These proxies are not specific to dict, but are generic.

dictproxy is already used in Python by the type.__dict__ descriptor getter of 
new-style classes since Python 2.2, since this changeset:

changeset:   18933:09df3254b49d
branch:  legacy-trunk
user:Tim Peters tim.pet...@gmail.com
date:Thu Aug 02 04:15:00 2001 +
files:   Include/Python.h Include/abstract.h Include/ceval.h 
Include/classobject.h Include/descrobject.h Include/dictobject.h Include/eval.h 
Include/func
description:
Merge of descr-branch back into trunk.

Guido van Rossum wrote in its rejection notice of the PEP 416: On the other 
hand, exposing the existing read-only dict proxy as a built-in type sounds good 
to me. (It would need to be changed to allow calling the constructor.) GvR.

--

 To that end, it would be okay to expose _dictproxy
 but not to make it a documented type.

My sandbox only needs the issue #14385, pysandbox can implement its own 
dictproxy class.

If the issue #14385 is accepted, pysandbox can use any mapping, even a mapping 
implemented in Python! It's just simpler to implement a secure proxy in C.

So this issue is not directly related to sandboxing.

--

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



[issue3367] Uninitialized value read in parsetok.c

2012-03-25 Thread STINNER Victor

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

 Stephan: can you redo the Valgrind test on copy the exact line
 where the invalid read occurs (in sysmodule.c).

Oops: ... *and* copy the exact line ...

--

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



[issue14386] Expose dictproxy as a public type

2012-03-25 Thread Raymond Hettinger

Raymond Hettinger raymond.hettin...@gmail.com added the comment:

It's clutter and we should show some restraint before adding new types.

Enthought's Python Distribution isn't shy about adding tools when they have a 
demonstrated need.  Likewise, Django adds any reusable tools they need.  
Neither have a dict proxy.  I've never run into a use case for it and haven't 
seen any feature requests for it.   PyPi doesn't have package for it (at least 
not one with any uptake).  The languages doesn't *need* this, nor do the other 
implementations which are trying to keep up with CPython.

Guido may let you put in it, but that doesn't mean you should.  Again, I ask 
you to show some restraint.  The language has already exploded beyond what fits 
into most developer's heads (even core devs don't even know about many the 
newer features).

--

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



[issue14386] Expose dictproxy as a public type

2012-03-25 Thread STINNER Victor

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

 It's clutter and we should show some restraint before adding new types.

dictproxy() doesn't need to be a public builtin type. We can just implement its 
constructor without documenting the type. Or it may be exposed in a module like 
collections.

--

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



[issue13405] Add DTrace probes

2012-03-25 Thread Marc Abramowitz

Marc Abramowitz msabr...@gmail.com added the comment:

Hey Jesús,

Let me know if you need any additional help testing.

Marc

--

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



[issue14385] Support other types than dict for __builtins__

2012-03-25 Thread STINNER Victor

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

With my patch, Python doesn't check __builtins__ type whereas ceval.c replaces 
any lookup error by a NameError. Example:

$ ./python 
Python 3.3.0a1+ (default:f8d01c8baf6a+, Mar 26 2012, 01:44:48) 
 code=compile(print('Hello World!'), , exec)
 exec(code,{'__builtins__': {'print': print}})
Hello World!
 exec(code,{'__builtins__': {}})
NameError: name 'print' is not defined
 exec(code,{'__builtins__': 1})
NameError: name 'print' is not defined

It should only replace the current exception by NameError if the current 
exception is a LookupError.

And my patch on LOAD_GLOBAL is not correct, it does still call PyDict_GetItem. 
I'm waiting until #14383 is done before writing a new patch.

--

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



[issue14386] Expose dictproxy as a public type

2012-03-25 Thread Guido van Rossum

Guido van Rossum gu...@python.org added the comment:

Given that dictproxy is needed to implement the proper interface for classes I 
don't think it is an implementation detail, and so I think it ought to be 
constructable. We have more esoteric types constructable (e.g. function).

I also happen to think that its use to implement classes is a pretty darn good 
use case, and I am sure there are other use cases.

I don't really care if we make it a builtin but there should be a standard name 
for it somewhere in the stdlib.

--

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



[issue14399] zipfile and creat/update comment

2012-03-25 Thread R. David Murray

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

I'm marking this as easy hoping someone in the mentoring group will pick it up 
and take a look.  The relevant code is in Python, and I'm guessing there is 
some logic bug when only the comment is set (and nothing is added to the 
zipfile), but I haven't looked at the code.  I'm also adding 3.2 and 3.3; it 
fails on 3.3 as well.

--
keywords: +easy
nosy: +r.david.murray
stage:  - needs patch
versions: +Python 3.2, Python 3.3

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



[issue14395] sftp: downloading files with % in name fails due to logging

2012-03-25 Thread R. David Murray

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

There is no sftp module in the standard library.  Presumably you are talking 
about a 3rd party product and should report the bug to its developers.

If you are trying instead to report a bug in the logging module, please reopen 
the issue if you can provide a simple example of triggering the bug you believe 
exists.  (It is much more likely to be a bug in sftp.py).

--
nosy: +r.david.murray
resolution:  - invalid
stage:  - committed/rejected
status: open - closed
versions: +3rd party -Python 2.7

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



[issue14361] No link to issue tracker on Python home page

2012-03-25 Thread R. David Murray

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

OK, so whatever else is true, it seems like there isn't anything for the python 
core dev team to do here.  Any action would take place at the www.python.org 
level, and this bug tracker isn't where such changes are tracked, so I'm 
closing the issue.  Especially since the consensus seems to be that the bug 
tracker should *not* be linked from the main page...

--
resolution:  - rejected
stage:  - committed/rejected
status: open - closed

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



[issue14386] Expose dictproxy as a public type

2012-03-25 Thread Raymond Hettinger

Raymond Hettinger raymond.hettin...@gmail.com added the comment:

[haypo]
 dictproxy() doesn't need to be a public builtin type.

+1
 
 We can just implement its constructor without documenting the type.

+1

 Or it may be exposed in a module like collections.

Please don't use collections as a dumping ground for this sort of thing.

--

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



[issue14408] Support the test_cases protocol in the stdlib tests

2012-03-25 Thread Matt Joiner

New submission from Matt Joiner anacro...@gmail.com:

Python 3.2 added the test_cases protocol. Many of the stdlib tests won't run 
using the `$ python3 -m unittest test.test_blah` method due to select unit test 
class names, and some regrtest arcanity. Defining test_cases makes these tests 
work as expected.

A patch is attached for several of the unit tests I've dealt with more often.

--
components: Tests
files: stdlib-tests-test_cases-protocol.patch
keywords: patch
messages: 156797
nosy: anacrolix
priority: normal
severity: normal
status: open
title: Support the test_cases protocol in the stdlib tests
type: enhancement
versions: Python 3.2, Python 3.3
Added file: 
http://bugs.python.org/file25023/stdlib-tests-test_cases-protocol.patch

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



[issue14409] IDLE does not execute any commands (command prompt works fine!)

2012-03-25 Thread Ankit Agrawal

New submission from Ankit Agrawal ankit...@gmail.com:

I'm trying to run python (version 2.7.2) on my computer (windows vista 32bit). 
It's always worked until now when Idle just does not respond to any commands.

Any commands entered (even very simple ones) have no output/do not get 
computed! See image: http://dl.dropbox.com/u/32209936/image%20idle%20Idle.jpg

Python works fine when I run it using command line though! See image:
http://dl.dropbox.com/u/32209936/image%20python%20command%20line.jpg

I've tried re-installing it a few times but it just doesn't help! Also tried 
running it from C:\Python27\Lib\idlelib\idle.py and I get the following message 
before the same unresponsive IDLE pops up again! See image: 
http://dl.dropbox.com/u/32209936/image%20python%20warnings.jpg

Checked the file config-keys.def under C:\Python27\Lib\idlelib and its 
permissions. Also checked all other config-*.def files in this folder.

--
components: IDLE
messages: 156798
nosy: ankit615
priority: normal
severity: normal
status: open
title: IDLE does not execute any commands (command prompt works fine!)
type: behavior
versions: Python 2.7

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