[issue15172] Document nasm-2.10.01 as required version for openssl

2012-06-26 Thread Stefan Krah

Stefan Krah stefan-use...@bytereef.org added the comment:

Good that it works now. I've tagged this as a documentation issue.

--
assignee:  - docs@python
components: +Documentation -Tests
keywords:  -buildbot
nosy: +docs@python
title: SHA1 failures on the 64-bit Windows buildbot - Document nasm-2.10.01 as 
required version for openssl
type: behavior - enhancement

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



[issue13685] argparse update help msg for % signs

2012-06-26 Thread Senthil Kumaran

Changes by Senthil Kumaran sent...@uthcode.com:


--
title: argparse does not sanitize help strings for % signs - argparse update 
help msg  for % signs

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



[issue15184] Test failure in test_sysconfig_module

2012-06-26 Thread Ned Deily

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

This test failure points at a few issues:

 - The CFLAGS modification should only be taking place on OS X systems.  
AFAICT, all of that code is protected by sys.platform checks.  One possible 
culprit, though, might be distutils test test_unixccompiler which attempts to 
test various platforms by mocking sys.platform.  It so happens that darwin is 
the first platform it tests and, while the test setup and teardown does 
preserve and restore the get_config_var function in distutils.sysconfig, it 
doesn't preserve the module global _config_vars which distutils.sysconfig uses 
to cache the results of parsing the Makefile.  I wonder what happens if 
test_unixccompiler happens to be the first caller of 
distutils.sys_config_vars().  I think it will get invoked with sys.platform = 
'darwin' and trigger the customization code on what becomes the cached copy for 
remaining tests.  I'm attaching a patch to preserve and restore the cached 
values as well.  Georg, I'd appreciate it if you could try this on your system.

 - More importantly, the test failure shows that the code we added for Xcode 4 
support in Issue13590 only addressed distutils.sysconfig and not the identical 
code in standalone sysconfig.  With the removal of packaging in 3.3, AFAIK 
there now is nothing in the standard library that should depend on this at the 
moment but it will undoubtedly be an issue for distutil2 and future packaging 
features.  We had discussed dealing with this by factoring out the common 
customization code into a separate module to avoid DRY but I didn't get that 
done.  I'm attaching a first rough patch that does that; it is only very 
lightly tested and so should not be a candidate for 3.3.0b1.

I recommend the following steps:
  1. For 3.3.0b1, either ignore the test failure or add a skip for 3.3.0b1.  
(This failure will also likely show up if OS X installer users attempt to run 
the tests.)
  2. Resolve the test failure on non-OS X platforms.
  3. Test and review the refactoring patch and plan to push it for 3.3.0rc1.
  4. Post 3.3.0, regardless of the outcome of the proposed packaging PEPs, 
finally replace distutils.sysconfig with sysconfig.  Attempting to continue to 
maintain both of them is just asking for more trouble.

--
assignee:  - ned.deily
components: +Distutils, Macintosh -Tests
keywords: +patch
nosy: +ronaldoussoren, tarek
priority: high - deferred blocker
stage:  - patch review
Added file: 
http://bugs.python.org/file26163/issue15184_preserve_config_vars.patch

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



[issue15186] Support os.walk(dir_fd=)

2012-06-26 Thread Larry Hastings

Larry Hastings la...@hastings.org added the comment:

Actually I think Raymond makes a good point.

Re: symmetry: tbh that's nonsense.  The reason for symmetry among functions in 
the os module is because they do similar things--but this is because form 
follows function.  We didn't decide to decorate functions with extra 
parameters just so they'd look nice.

The reason you want a function to support dir_fd is to make it safer; using 
functions taking dir_fd and some careful programming, you can prevent some 
forms of timing attack.  But we can't fix os.walk to make it safe in this 
way--which is why we have os.fwalk in the first place!  So users of os.walk 
with this problem simply don't need dir_fd--they need os.fwalk.

Re: performance: if some people care about performance here, and this approach 
is faster, then those people can just call os.fwalk directly.  This approach to 
os.walk(dir_fd=) just calls os.fwalk--so calling it directly could only be even 
faster.

(This is assuming my favored implementation which just calls os.fwalk--which is 
simple, and leverages os.fwalk doing a proper safe job of it.  If we use my 
hackier previous version, I suspect it only made os.walk slower.  Of course all 
of this is silly microbenchmarking anyway, and I'm not sure that these fiddling 
implementation details of os.walk / os.fwalk contribute to their runtime cost 
in any significant way.)


I counter-propose adding some text to os.walk steering people to os.fwalk for 
advanced usage.  That might even be appropriate for 3.3 (beta 2).  I realize 
they are neighbors in the documentation, but it might save at least one 
benighted myopic soul.

I further propose to leave this issue open for now--there's no rush, 
really--and see if a compelling reason for os.walk(dir_fd=) appears.  If none 
does, then in the fullness of time we can close this as wontfix and move on, 
living our lives in the dazzling sunshine of righteous truth and justice.

Your move, Serhiy ;-)

p.s. Serhiy: yes, you can call os.fwalk() with dir_fd=None.  It would be 
*awful* if you could not!  And actually, os.fwalk didn't even support dir_fd 
until... 26 hours ago.

--

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



[issue13685] argparse update help msg for % signs

2012-06-26 Thread Roundup Robot

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

New changeset c696416eb4e9 by Senthil Kumaran in branch '3.2':
Issue #13685 - Update argparse help message for % sign usage.
http://hg.python.org/cpython/rev/c696416eb4e9

New changeset 493d58c3c57f by Senthil Kumaran in branch 'default':
merge from 3.2 - Issue13685
http://hg.python.org/cpython/rev/493d58c3c57f

--
nosy: +python-dev

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



[issue13685] argparse update help msg for % signs

2012-06-26 Thread Senthil Kumaran

Changes by Senthil Kumaran sent...@uthcode.com:


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

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



[issue15184] Test failure in test_sysconfig_module

2012-06-26 Thread Ned Deily

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


Added file: http://bugs.python.org/file26164/issue15184_osx_support.patch

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



[issue15178] Doctest should handle situations when test files are not readable

2012-06-26 Thread Bohuslav Slavek Kabrda

Bohuslav Slavek Kabrda bkab...@redhat.com added the comment:

So I figured it might be best to first agree on the actual behaviour (what the 
patch will look like) and then I can write the tests.

So here is my 3rd version:
- It seems that returning 1 only if last file fails is intentional, as it is 
_inside_ the loop, so unsuccessful test immediately terminates the _test 
function - I thought it might be better to carry on with all of the tests, so 
here is what I did:
- I made a variable failures, which represents if there were any failures 
during tests;
- I took the return 1 one indentation level down, so all files are now 
traversed no matter how many of them fail;
- An error message is printed and failures set to True if a file is 
unopenable.

Does this look acceptable? If not, I will happily work further :) (and provide 
the tests once the behaviour is clear).

Thanks!

--
Added file: 
http://bugs.python.org/file26165/doctest-dont-end-with-exception-on-unreadable-files-v3.patch

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



[issue15186] Support os.walk(dir_fd=)

2012-06-26 Thread Larry Hastings

Larry Hastings la...@hastings.org added the comment:

p.s. Raymond: fwiw, I think makes it easy / hard for beginners is only of 
secondary importance.  Certainly I think it's reasonable to point out in a 
discussion, and if the beginners are easy to accommodate then okay.  But if 
there was something that was a big win in most ways but made life harder for 
beginners, imo the beginners would have to take it on the chin.

I reflect now and then on the fascinating point you made on Radio Free 
Python--Unicode is now day-0 knowledge for Python--but I have no idea what to 
do about it.  Or about the larger point of accommodating beginners in the face 
of mounting language complexity. *shrug*

My point is, I agree that os.walk(dir_fd=) probably shouldn't happen--but 
that's simply because we don't need it.  Whether or not it made life easier or 
harder for beginners didn't really figure into my consideration.

--

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



[issue15186] Support os.walk(dir_fd=)

2012-06-26 Thread Larry Hastings

Larry Hastings la...@hastings.org added the comment:

Whoops, you wrote for most users rather than talking about beginners.  Sorry 
if I was responding to a point you weren't making ;-)  I guess I assumed you 
were coming at this at least partially while wearing your Python lecturer hat.

--

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



[issue15184] Test failure in test_sysconfig_module

2012-06-26 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

Sounds good.

--

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



[issue15187] test_shutil does not clean up after itself

2012-06-26 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

Yep.

--

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



[issue7360] [mailbox] race: mbox may lose data with concurrent access

2012-06-26 Thread Petri Lehtinen

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

I created #15122 for adding an option to rewrite the contents of single-file 
mailboxes in-place. Closing this issue as wontfix.

--
resolution:  - wont fix
stage:  - committed/rejected
status: open - closed
superseder:  - Add an option to always rewrite single-file mailboxes in-place.

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



[issue15187] test_shutil does not clean up after itself

2012-06-26 Thread Larry Hastings

Changes by Larry Hastings la...@hastings.org:


--
assignee:  - larry
priority: normal - release blocker
resolution:  - fixed
stage: needs patch - committed/rejected
status: open - closed

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



[issue15188] test_ldshared_value failure on OS X using python.org Pythons

2012-06-26 Thread Ned Deily

New submission from Ned Deily n...@acm.org:

==
FAIL: test_ldshared_value (test.test_sysconfig.TestSysConfig)
--
Traceback (most recent call last):
  File 
/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/test/test_sysconfig.py,
 line 288, in test_ldshared_value
self.assertIn(ldflags, ldshared)
AssertionError: '-arch i386 -arch x86_64   -g 
-L/tmp/_py/libraries/usr/local/lib' not found in 'gcc-4.2 -bundle -undefined 
dynamic_lookup -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk 
-isysroot /Developer/SDKs/MacOSX10.6.sdk -g -L/tmp/_py/libraries/usr/local/lib'

--


There is code in Mac/BuildScript/build-installer.py to remove the temporary 
build library path (/tmp/_py/libraries/usr/local/lib) from the Makefile after 
the build is complete and before the files are packaged.  In 3.3 there is now 
also a Makefile cache file, _sysconfigdata.py, which is produced as a build 
target.  build-installer.py needs to learn how to clean it up as well.

--
assignee: ned.deily
components: Build, Macintosh
messages: 164049
nosy: ned.deily, ronaldoussoren
priority: high
severity: normal
status: open
title: test_ldshared_value failure on OS X using python.org Pythons
versions: Python 3.3

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



[issue15187] test_shutil does not clean up after itself

2012-06-26 Thread Larry Hastings

Larry Hastings la...@hastings.org added the comment:

This was fixed in 1fa50bbcc21f1458c1dc00ea733b76e6405b8cbb . (I think the 
tracker had an aneurysm when the notification showed up.)

--

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



[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-06-26 Thread Georg Brandl

Changes by Georg Brandl ge...@python.org:


--
nosy: +pitrou

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



[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-06-26 Thread Georg Brandl

Changes by Georg Brandl ge...@python.org:


--
nosy: +loewis

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



[issue15187] test_shutil does not clean up after itself

2012-06-26 Thread Roundup Robot

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

New changeset 6b1d4e3ce867 by Larry Hastings in branch 'default':
Fix issue # in Misc/NEWS (should be #15187, not 15817.)
http://hg.python.org/cpython/rev/6b1d4e3ce867

--
nosy: +python-dev

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



[issue15187] test_shutil does not clean up after itself

2012-06-26 Thread Larry Hastings

Larry Hastings la...@hastings.org added the comment:

(No wonder it had an aneurysm!)

--

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



[issue15189] tkinter.messagebox does not use the application's icon

2012-06-26 Thread Mark Summerfield

New submission from Mark Summerfield m...@qtrac.eu:

The tkinter.messagebox functions, e.g., askyesno(), do not use the 
application's icon (if it has one). Nor do they accept a bitmapicon option, so 
ISTM that it is impossible to set one.

The same is true of tkinter.dialog, but for that it is easy enough to write 
one's own replacement with the code like this:

try:
tkinter._default_root.iconbitmap(iconName)
except tk.TclError as err:
print(err)

(where iconName is path/to/icon.ico on windows, @path/to/icon.xbm on Unix; 
and this isn't done on Mac).

--
components: Tkinter
messages: 164053
nosy: mark
priority: normal
severity: normal
status: open
title: tkinter.messagebox does not use the application's icon
versions: Python 3.2

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



[issue4489] shutil.rmtree is vulnerable to a symlink attack

2012-06-26 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


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

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



[issue12170] index() and count() methods of bytes and bytearray should accept byte ints

2012-06-26 Thread Roundup Robot

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

New changeset 018fe1dee9b3 by Petri Lehtinen in branch 'default':
What's new: Add myself as the contributor of issue 12170
http://hg.python.org/cpython/rev/018fe1dee9b3

--

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



[issue15190] Allow whitespace and comments after line line continuation character \

2012-06-26 Thread Ztatik Light

New submission from Ztatik Light ztatik.li...@gmail.com:

See Title

--
components: Interpreter Core
messages: 164055
nosy: Ztatik.Light
priority: normal
severity: normal
status: open
title: Allow whitespace and comments after line line continuation character \
type: enhancement
versions: 3rd party

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



[issue15190] Allow whitespace and comments after line continuation character \

2012-06-26 Thread Ztatik Light

Changes by Ztatik Light ztatik.li...@gmail.com:


--
title: Allow whitespace and comments after line line continuation character \ 
- Allow whitespace and comments after line continuation character \

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



[issue5346] mailbox._singlefileMailbox.flush doesn't preserve file rights

2012-06-26 Thread Petri Lehtinen

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

Attached a patch. It copies the mode of the original mailbox file to the new 
file on flush().

--
components: +email
keywords: +patch
nosy: +barry, r.david.murray
stage: test needed - patch review
versions: +Python 3.3 -Python 3.1
Added file: http://bugs.python.org/file26166/issue5346.patch

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



[issue15191] tkinter convenience dialogs don't use themed widgets

2012-06-26 Thread Mark Summerfield

New submission from Mark Summerfield m...@qtrac.eu:

Some of the tkinter convenience dialogs, e.g., tkinter.filedialog.FileDialog, 
tkinter.scrolledtext.ScrolledText, tkinter.simpledialog.SimpleDialog, 
tkinter.simpledialog.Dialog, and tkinter.simpledialog._QueryDialog. Ideally 
they should use ttk.Frame, ttk.Button, etc. Or if that is risky for 
compatibility, then couldn't they be copied to tkinter.ttk and the copies 
themized?

--
components: Tkinter
messages: 164057
nosy: mark
priority: normal
severity: normal
status: open
title: tkinter convenience dialogs don't use themed widgets
versions: Python 3.2

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



[issue10924] Adding salt and Modular Crypt Format to crypt library.

2012-06-26 Thread Christian Heimes

Christian Heimes li...@cheimes.de added the comment:

I just found mksalt in the whatsnew section and got curious how you've 
implemented the function. IMHO it has one major security flaw.

The function uses random.choice(). The choice() function generates random 
values with a Mersenne Twister. However MTs are not suited for any 
cryptographic purpose and must not be used to generate passwords, session keys 
or salts.

The random.SystemRandom class uses os.urandom() as source which is a wrapper 
around /dev/urandom or the Windows crypto API. The output is suitable for short 
living states and salts.

I'm going to chance the implementation to a global instance of 
random.SystemRandom() and _sr.samples() as soon as Georg has cut beta 1.

_sr = random.SystemRandom()

s += ''.join(_sr.samples(_saltchars, method.salt_chars))

--
assignee: brett.cannon - christian.heimes
nosy: +christian.heimes
resolution: fixed - 
status: closed - open
type: enhancement - security

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



[issue15190] Allow whitespace and comments after line continuation character \

2012-06-26 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

I think a change at this level should be discussed on the python-ideas mailing 
list: http://mail.python.org/mailman/listinfo/python-ideas .  Ztatik, please 
can you post there?  It would help to include some motivation for the change in 
your posting;  if you have a working patch, that would also be useful.

--
nosy: +mark.dickinson
versions: +Python 3.4 -3rd party

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



[issue15190] Allow whitespace and comments after line continuation character \

2012-06-26 Thread Eric V. Smith

Eric V. Smith e...@trueblade.com added the comment:

This would be a big change. Please bring it up on the python-ideas mailing list 
for discussion first. If it is approved there, we can re-open this issue.

You'll need to present your use-case: Why this would be an improvement to 
Python? What would it allow you to do that you can't do now?

--
nosy: +eric.smith
resolution:  - invalid
status: open - closed

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



[issue9559] mailbox.mbox creates new file when adding message to mbox

2012-06-26 Thread Petri Lehtinen

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

Attached a patch that doesn't rewrite+rename if messages have only been added. 
In this case, flush() only syncs the mailbox file to make sure all changes have 
been written to disk.

David  Barry: what do you think about including this on bugfix releases? Could 
someone depend on the file being rewritten in all situations?

--
components: +email
keywords: +patch
nosy: +barry, r.david.murray
stage: needs patch - patch review
Added file: http://bugs.python.org/file26167/issue9559.patch

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



[issue12927] test_ctypes: segfault with suncc

2012-06-26 Thread Antoine Pitrou

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

 Antoine, is it possible to add --with-system-ffi to the build rules
 of the Solaris/suncc bot? This will prevent the segfaults.

Ok, done.

--

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



[issue14979] pdb doc: Add link to source

2012-06-26 Thread Senthil Kumaran

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

Adding link to pdb source may be not be suitable. Readers may require to 
understand the states which pdb goes through. Docs here are better, IMO. -1 
vote from me.

--
nosy: +orsenthil

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



[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-06-26 Thread Devin Jeanpierre

Devin Jeanpierre jeanpierr...@gmail.com added the comment:

For extra clarification, this issue can crop up with even a single press of 
ctrl-c. It's not really related to multiple presses, except that pressing it 
more increases the odds of it happening.

--
nosy: +Devin Jeanpierre

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



[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-06-26 Thread Christian Heimes

Christian Heimes li...@cheimes.de added the comment:

Could add a printf() to PC/launcher.c:ctrl_c_handler() to test if the handler 
is called in the error case?

--

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



[issue14979] pdb doc: Explain how to extend debugger instead of sending readers to the source

2012-06-26 Thread anatoly techtonik

anatoly techtonik techto...@gmail.com added the comment:

I agree that reading the source doesn't make it clear how to extend or use PDB, 
so I've changed the title. High level overview is required.

I think an example would really help there. For instance a simple execution 
scroller - analogue of `python -m trace --trace filename.py`, but with PDB 
and play/pause buttons controlled from external script.

--
title: pdb doc: Add link to source - pdb doc: Explain how to extend debugger 
instead of sending readers to the source

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



[issue13666] datetime documentation typos

2012-06-26 Thread Roundup Robot

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

New changeset ec970793f390 by Senthil Kumaran in branch '3.2':
issue13666 - Fixing datetime documentation example when using tzinfo
http://hg.python.org/cpython/rev/ec970793f390

New changeset 98d40bd23381 by Senthil Kumaran in branch 'default':
issue13666 - merge from 3.2
http://hg.python.org/cpython/rev/98d40bd23381

New changeset 01d180987d90 by Senthil Kumaran in branch '2.7':
issue13666 - Fixing datetime documentation example when using tzinfo
http://hg.python.org/cpython/rev/01d180987d90

--
nosy: +python-dev

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



[issue13666] datetime documentation typos

2012-06-26 Thread Senthil Kumaran

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

The docs are fixed now.

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

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



[issue5441] Convenience API for timeit.main

2012-06-26 Thread Nick Coghlan

Nick Coghlan ncogh...@gmail.com added the comment:

Close in favour of #6422 - that one at least has a patch :)

--
resolution:  - duplicate
superseder:  - timeit called from within Python should allow autoranging

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



[issue6422] timeit called from within Python should allow autoranging

2012-06-26 Thread Nick Coghlan

Nick Coghlan ncogh...@gmail.com added the comment:

In #5442, I proposed leaving the architecture of the module alone, and simply 
exposing the main module functionality as a high level helper function:

def measure(stmt=pass, setup=pass, timer=default_timer,
repeat=default_repeat, number=default_number,
verbosity=0, precision=3)

The return value would simply be a (number, results) 2-tuple with the number of 
iterations per test (which may have been calculated automatically), and then a 
list of the results. To get timeit style behavior, simply set repeat=1.

--
nosy: +ncoghlan

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



[issue6422] timeit called from within Python should allow autoranging

2012-06-26 Thread Nick Coghlan

Nick Coghlan ncogh...@gmail.com added the comment:

Oops, that link reference should have been to #5441.

--

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



[issue6422] timeit called from within Python should allow autoranging

2012-06-26 Thread Nick Coghlan

Changes by Nick Coghlan ncogh...@gmail.com:


--
resolution: accepted - 

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



[issue5441] Convenience API for timeit.main

2012-06-26 Thread Nick Coghlan

Changes by Nick Coghlan ncogh...@gmail.com:


--
status: open - closed

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



[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-06-26 Thread Mark Hammond

Changes by Mark Hammond skippy.hamm...@gmail.com:


--
nosy: +mhammond

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



[issue15192] test_bufio failures on Win64 buildbot

2012-06-26 Thread Antoine Pitrou

New submission from Antoine Pitrou pit...@free.fr:

test_bufio fails sporadically on the AMD64 Windows7 SP1 buildbot, e.g.:

http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.x/builds/161/steps/test/logs/stdio

test_nullpat (test.test_bufio.CBufferSizeTest) ... ok
test_primepat (test.test_bufio.CBufferSizeTest) ... ERROR
test_nullpat (test.test_bufio.PyBufferSizeTest) ... ok
test_primepat (test.test_bufio.PyBufferSizeTest) ... ok

==
ERROR: test_primepat (test.test_bufio.CBufferSizeTest)
--
Traceback (most recent call last):
  File 
C:\Users\Buildbot\buildbot.python.org\3.x.kloth-win64\build\lib\test\test_bufio.py,
 line 59, in test_primepat
self.drive_one(b1234567890\00\01\02\03\04\05\06)
  File 
C:\Users\Buildbot\buildbot.python.org\3.x.kloth-win64\build\lib\test\test_bufio.py,
 line 52, in drive_one
self.try_one(teststring)
  File 
C:\Users\Buildbot\buildbot.python.org\3.x.kloth-win64\build\lib\test\test_bufio.py,
 line 20, in try_one
support.unlink(support.TESTFN)
  File 
C:\Users\Buildbot\buildbot.python.org\3.x.kloth-win64\build\lib\test\support.py,
 line 229, in unlink
os.unlink(filename)
PermissionError: [Error 5] Access is denied: '@test_2420_tmp'


Is there some kind of anti-virus installed on the machine?

--
components: Tests
keywords: buildbot
messages: 164072
nosy: jkloth, pitrou, skrah
priority: normal
severity: normal
status: open
title: test_bufio failures on Win64 buildbot
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3

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



[issue15193] Exception AttributeError: 'NoneType' object has no attribute

2012-06-26 Thread Mithilesh Kumar

New submission from Mithilesh Kumar thesixthpr...@gmail.com:

Behavior of the program changes with number of charaters used in variable name. 
Attached file shows a simple example.

--
files: objectvar.py
messages: 164073
nosy: prime
priority: normal
severity: normal
status: open
title: Exception AttributeError: 'NoneType' object has no attribute
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file26168/objectvar.py

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



[issue15193] Exception AttributeError: 'NoneType' object has no attribute

2012-06-26 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

The exception you report looks incomplete:  there should be something after the 
'no attribute' saying which attribute lookup failed.

In any case, I don't thing this is a bug.  It sounds like a result of the 
unpredictability of cleanup order at interpreter shutdown:  you're encountering 
a situation where the 'Person' reference has already been deleted from the 
module namespace before the __del__ method for one of the Person instances gets 
called;  so the 'Person' name lookup in the __del__ method fails.  You could 
get around this by replacing 'Person' with 'type(self)' in __del__.

--
nosy: +mark.dickinson
resolution:  - invalid
status: open - closed

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



[issue15193] Exception AttributeError: 'NoneType' object has no attribute

2012-06-26 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

See also this warning message: 
http://docs.python.org/reference/datamodel.html#object.__del__

--
nosy: +amaury.forgeotdarc

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



[issue15034] Devguide should document best practices for stdlib exceptions

2012-06-26 Thread R. David Murray

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

OK, let's move this, then.  I asked the question because I'd like to know what 
the best practice is for exceptions in the stdlib.  This is an area in which we 
have made quite a bit of progress recently (ie: the work done on exceptions for 
Python3, and PEP 3151), but I think there is still a lack of documentation (and 
possibly consensus?) on best practices for the stdlib.

--
components: +Devguide -Documentation
resolution: later - 
status: closed - open
title: tutorial should use best practices in user defined exceptions section - 
Devguide should document best practices for stdlib exceptions

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



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

2012-06-26 Thread Vinay Sajip

Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:

You could consider just a small refinement: in the first loop in 
_SubParsersAction.__call__ where you look for the abbreviation, you can just 
set parser_name = p and break. Then the logic just below that can stay as it 
is: all you've done is morphed the abbreviation to the full command name.

--
nosy: +vinay.sajip

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



[issue15178] Doctest should handle situations when test files are not readable

2012-06-26 Thread R. David Murray

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

Ah, right, I misread the code when I looked at it.

There is usually a reason why something is done the way it is...though not 
always.  But, running some example command lines, it looks to me like the 
current behavior is there because without it, you won't notice if the tests in 
the middle of your list of files failed.  So, I think your second patch is more 
what we need.  However, rather than calling sys.exit, I think it would be 
better to just print the message and do a return 1.

It is also possible we shouldn't change it at all.  unittest (which has had 
some thought put in to the commnd line interface) just ends in a traceback in a 
similar situation (except that in unittest's case it is an ImportError...)

--
nosy: +michael.foord

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



[issue15184] Test failure in test_sysconfig_module

2012-06-26 Thread Éric Araujo

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

Moving stuff common to both sysconfig modules into a shared module sounds good, 
but the existence and API of distutils.sysconfig needs to be preserved.

--

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



[issue15194] libffi-3.0.11 update

2012-06-26 Thread Matthias Klose

New submission from Matthias Klose d...@debian.org:

here is an update for libffi 3.0.11.  For now, only tested on x86-linux and 
arm-linux-gnueabi.  Proposing the check it in, and then test again, if the 
libffi_osx and libffi_msvc copies can be removed, if 3.0.11 works on these 
platforms (however I can't test on these myself).

--
components: ctypes
files: libffi-3.0.11.diff.xz
keywords: patch
messages: 164080
nosy: doko
priority: normal
severity: normal
status: open
title: libffi-3.0.11 update
versions: Python 3.3
Added file: http://bugs.python.org/file26169/libffi-3.0.11.diff.xz

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



[issue15194] libffi-3.0.11 update

2012-06-26 Thread Antoine Pitrou

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


--
nosy: +meador.inge, ned.deily, skrah

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



[issue15195] test_distutils fails when ARCHFLAGS is set on a Mac

2012-06-26 Thread Marc Abramowitz

New submission from Marc Abramowitz msabr...@gmail.com:

$ export ARCHFLAGS=-arch i386 -arch x86_64
$ ./python.exe -m test -v test_distutils

[last: 0] marca@scml-marca:~/dev/hg-repos/cpython$ ./python.exe
Python 3.3.0a4+ (default:6af0535b5e3a, Jun 25 2012, 16:59:49) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type help, copyright, credits or license for more information.
 import sysconfig
[59901 refs]
 sysconfig.get_config_var('LDSHARED')
'gcc -bundle -undefined dynamic_lookup'
[59906 refs]
 import distutils.sysconfig
[61596 refs]
 distutils.sysconfig.get_config_var('LDSHARED')
'gcc -bundle -undefined dynamic_lookup -arch i386 -arch x86_64'
[77979 refs]

--
components: Tests
messages: 164081
nosy: Marc.Abramowitz
priority: normal
severity: normal
status: open
title: test_distutils fails when ARCHFLAGS is set on a Mac
versions: Python 3.3

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



[issue15195] test_distutils fails when ARCHFLAGS is set on a Mac

2012-06-26 Thread Marc Abramowitz

Changes by Marc Abramowitz msabr...@gmail.com:


--
type:  - behavior

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



[issue15194] libffi-3.0.11 update

2012-06-26 Thread Ned Deily

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


--
nosy: +ronaldoussoren

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



[issue15194] libffi-3.0.11 update

2012-06-26 Thread Roundup Robot

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

New changeset 25421e1c48bb by doko in branch 'default':
- Issue #15194: Update libffi to the 3.0.11 release.
http://hg.python.org/cpython/rev/25421e1c48bb

--
nosy: +python-dev

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



[issue15192] test_bufio failures on Win64 buildbot

2012-06-26 Thread Stefan Krah

Stefan Krah stefan-use...@bytereef.org added the comment:

Looks similar to the sporadic test_reprlib failure. Roumen has explained
that here:

http://bugs.python.org/issue14599#msg162727


I didn't test myself though, just a guess.

--

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



[issue15192] test_bufio failures on Win64 buildbot

2012-06-26 Thread Antoine Pitrou

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

 Looks similar to the sporadic test_reprlib failure. Roumen has explained
 that here:

I don't think there's anything similar. The path is much smaller in
test_bufio.

--

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



[issue15192] test_bufio failures on Win64 buildbot

2012-06-26 Thread Antoine Pitrou

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


--
nosy: +jeremy.kloth

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



[issue15194] libffi-3.0.11 update

2012-06-26 Thread Ronald Oussoren

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

Removing libffi_osx would be fairly hard due to the creation of fat binaries, 
the libffi_osx tree supports building all files using 'cc -arch i386 -arch ppc 
-arch x86_64', the regular libffi sources require a more complex dance 
(basically build all architectures separately then merge them together).

OTOH libffi_osx seems to have problems when using with recent versions of clang.

--

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



[issue15192] test_bufio failures on Win64 buildbot

2012-06-26 Thread Jeremy Kloth

Jeremy Kloth jeremy.kl...@gmail.com added the comment:

I've changed the malware scanner to disable real-time protection and
have disabled scanning of the buildbot directories.

Note that I could reproduce intermittent failures when using '-j' of
regrtest, but with these changes they no longer appear.

--

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



[issue9559] mailbox.mbox creates new file when adding message to mbox

2012-06-26 Thread R. David Murray

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

Could someone be depending on it?  Sure.  Is that likely enough to block this 
as a bug fix?  Personally I think not.  Appending to the mailbox when adding 
messages is, I think, the expected behavior, and always rewriting it is the 
surprising behavior.

The patch looks good to me, though personally I'd eliminate the extra blank 
lines.

--

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



[issue14443] Distutils test_bdist_rpm failure

2012-06-26 Thread Roundup Robot

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

New changeset 76f2b99f3568 by David Malcolm in branch '3.2':
Issue #14443: ensure that brp-python-bytecompile is invoked with the correct
http://hg.python.org/cpython/rev/76f2b99f3568

--

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



[issue11681] -b option undocumented

2012-06-26 Thread moijes12

moijes12 moije...@gmail.com added the comment:

Hi Marc

I tried reproducing this for bytearray using Python 2.7.2 but I can't see a 
warning.

devel@moses:~$ python --version
Python 2.7.2+
devel@moses:~$ cat test_py.py 
k = range(10)
kb = bytearray(k)
print kb
kb = bytearray(hi)
print kb
devel@moses:~$ python -b test_py.py 
 
hi
devel@moses:~$ python -bb test_py.py 
 
hi

Please correct me if I'm wrong anywhere here. I'd like to work on this.

--
nosy: +moijes12

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



[issue15196] os.path.realpath gets confused when symlinks include '..'

2012-06-26 Thread Ben Longbons

New submission from Ben Longbons b.r.longb...@gmail.com:

I encountered this bug with the following filesystem layout

project/build/bin/main-gdb.py - ../src/main-gdb.py
project/build/src - ../src/
project/src/main-gdb.py - ../py/main-gdb.py
project/py/main-gdb.py

where root/py/main-gdb.py contains
import os
print(os.path.realpath(__file__))

Actual Result:
project/build/py/main-gdb.py
instead of 
project/py/main-gdb.py

The cause of this bug is the fact that os.path._resolve_link calls 
os.path.normpath, which is not symlink-safe.
Specically, this is bad:
os.path.normpath('project/build/src/../py/main-gdb.py')

The correct thing to do is never call normpath; instead leave .. components and 
pop off the last element after ensuring that the preceding directory is not a 
symlink.

This bug seems pretty severe to me, because it prevents imports from working.

Exact python --version and Debian package versions:
Python 2.6.7(2.6.7-4)
Python 2.7.3rc2 (2.7.3~rc2-2.1)
Python 3.2.3(3.2.3-1)

--
components: Library (Lib)
messages: 164090
nosy: o11c
priority: normal
severity: normal
status: open
title: os.path.realpath gets confused when symlinks include '..'
versions: Python 2.6, Python 2.7, Python 3.2

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



[issue15194] libffi-3.0.11 update

2012-06-26 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

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



[issue14443] Distutils test_bdist_rpm failure

2012-06-26 Thread Dave Malcolm

Dave Malcolm dmalc...@redhat.com added the comment:

Fixes committed to 3.2 and default: RHEL 6.3 is now green for both branches.  
Closing this bug out.

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

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



[issue672115] Assignment to __bases__ of direct object subclasses

2012-06-26 Thread florian-rathgeber

Changes by florian-rathgeber florian.rathge...@gmail.com:


--
nosy: +florian-rathgeber

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



[issue15196] os.path.realpath gets confused when symlinks include '..'

2012-06-26 Thread R. David Murray

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

Is this a duplicate of issue 6975, or something different?

2.6 only gets security patches.  (We use the version field to show what version 
we need to apply the fix to.)

--
nosy: +r.david.murray
versions: +Python 3.3 -Python 2.6

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



[issue15196] os.path.realpath gets confused when symlinks include '..'

2012-06-26 Thread Antoine Pitrou

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

Indeed, this is pretty bad behaviour, especially for realpath(). Both abspath() 
and normpath() should never be called before any symlinks are resolved.

Of course, fixing it as a bug means it could break existing code which relies 
on .. fragments being folded.

--
nosy: +hynek, pitrou
priority: normal - high
stage:  - needs patch

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



[issue15166] Implement imp.get_tag() using sys.implementation

2012-06-26 Thread Jeff Knupp

Jeff Knupp jkn...@gmail.com added the comment:

Adding patch. If I misunderstood the issue, let me know.

--
keywords: +patch
nosy: +Jeff.Knupp
Added file: http://bugs.python.org/file26170/imp.patch

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



[issue15192] test_bufio failures on Win64 buildbot

2012-06-26 Thread Antoine Pitrou

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

 I've changed the malware scanner to disable real-time protection and
 have disabled scanning of the buildbot directories.

Thank you. I hope that, thanks to this change, we later can make the
Win64 buildbot part of the bunch of stable buildbots.

--

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



[issue14940] Usage documentation for pysetup

2012-06-26 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

Packaging is out, no more blocking.

--
priority: deferred blocker - normal
versions: +Python 3.4

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



[issue15037] curses.unget_wch and test_curses fail when linked with ncurses 5.7 and earlier

2012-06-26 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

I agree it should be documented, probably wherever unget_wch is documented.

If there is a way to detect the ncurses version, the test should be skipped on 
 5.8 as well.

--
priority: deferred blocker - release blocker

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



[issue15151] Documentation for Signature, Parameter and signature in inspect module

2012-06-26 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

Moving back to blocker for beta2.

--
nosy: +georg.brandl
priority: deferred blocker - release blocker

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



[issue14340] Update embedded copy of expat - fix security crash issues

2012-06-26 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

Moving back to blocker for beta2.

--
priority: deferred blocker - release blocker

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



[issue15056] Have imp.cache_from_source() raise NotImplementedError when cache tag not available

2012-06-26 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

Moving back to blocker for beta2.

--
nosy: +georg.brandl
priority: deferred blocker - release blocker

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



[issue14578] importlib doesn't check Windows registry for paths

2012-06-26 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

Moving back to blocker for beta2.

--
priority: deferred blocker - release blocker

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



[issue13959] Re-implement parts of imp in pure Python

2012-06-26 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

Moving back to blocker for beta2.

--
priority: deferred blocker - release blocker

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



[issue14814] Implement PEP 3144 (the ipaddress module)

2012-06-26 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

Moving back to blocker for beta2.

--
priority: deferred blocker - release blocker

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



[issue15184] Test failure in test_sysconfig_module

2012-06-26 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

Moving to blocker for beta2.

--
priority: deferred blocker - release blocker

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



[issue15166] Implement imp.get_tag() using sys.implementation

2012-06-26 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

Moving to blocker for beta2.

--
nosy: +georg.brandl
priority: deferred blocker - release blocker

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



[issue15011] Change Scripts to bin on Windows

2012-06-26 Thread Brian Curtin

Changes by Brian Curtin br...@python.org:


--
versions: +Python 3.4 -Python 3.3

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



[issue12559] gzip.open() needs an optional encoding argument

2012-06-26 Thread Nadeem Vawda

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

I already fixed this without knowing about this issue; see 55202ca694d7.


storchaka:
 Why not use io.TextWrapper? I think it is the right answer for this issue.

The proposed patch (and the code I committed) *do* use TextIOWrapper.

Unless you mean that callers should create the TextIOWrapper themselves.
This is certainly possible, but quite inconvenient for something that is
conceptually simple, and not difficult to implement.


amaury.forgeotdarc:
 There remains a difference between open() and gzip.open():
 open(filename, 'r', encoding=None) is a text file (with a default encoding), 
 gzip.open() with the same arguments returns a binary file.

The committed code unfortunately still has gzip.open(filename, r)
returning a binary file. This is something that cannot be fixed without
breaking backward compatibility.

However, it does provide a way to open a text file with the system's
default encoding (encoding=None, or no encoding argument specified).
To do this, you can use the rt/wt/at modes, just like with
builtins.open(). Of course, this also works if you do specify an encoding
explicitly.

--
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed
versions: +Python 3.3 -Python 3.4

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



[issue15079] pickle: Possibly misplaced test

2012-06-26 Thread Roundup Robot

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

New changeset 5881a58c5425 by Antoine Pitrou in branch '3.2':
Issue #15079: make a test applicable to both C and Python versions of the 
pickle module.
http://hg.python.org/cpython/rev/5881a58c5425

New changeset b66e82c9f852 by Antoine Pitrou in branch 'default':
Issue #15079: make a test applicable to both C and Python versions of the 
pickle module.
http://hg.python.org/cpython/rev/b66e82c9f852

--
nosy: +python-dev

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



[issue15079] pickle: Possibly misplaced test

2012-06-26 Thread Antoine Pitrou

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

Committed. Congratulations on your first patch!

--
resolution:  - fixed
stage:  - committed/rejected
status: open - closed
versions: +Python 3.2

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



[issue12605] Enhancements to gdb 7 debugging hooks

2012-06-26 Thread Gregory P. Smith

Gregory P. Smith g...@krypto.org added the comment:

Better debuggability FTW!  This is an update to Tools/gdb/ as such I'd like to 
see this make it into 3.3.

It doesn't touch the runtime or stdlib so I personally wouldn't consider this 
adding a feature and thus preventing its inclusion with 3.3 despite the beta 
process having started.

It'd the release manager's call.  I'm bumping to release blocker for a decision 
from Georg. :)

--
nosy: +benjamin.peterson, gregory.p.smith
priority: normal - release blocker

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



[issue15196] os.path.realpath gets confused when symlinks include '..'

2012-06-26 Thread Ben Longbons

Ben Longbons b.r.longb...@gmail.com added the comment:

Yeah, this is a duplicate of issue 6975.

Sorry also about the version thing.

Although I can set this as closed: duplicate, I don't seem to be able to set 
what bug this is a duplicate of.

--
resolution:  - duplicate
status: open - closed
type:  - behavior

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



[issue6975] symlinks incorrectly resolved on Linux

2012-06-26 Thread Ben Longbons

Ben Longbons b.r.longb...@gmail.com added the comment:

After filing a duplicate, issue 15196, I analyzed this:

What happens:
test/one/that_dir
test/one/../two/this_dir/this_dir/this_dir/this_dir
test/two/this_dir/this_dir/this_dir/this_dir
test/two/this_dir/this_dir/this_dir/../two
test/two/this_dir/this_dir/two

What should happen:
test/one/that_dir
test/two/this_dir/this_dir/this_dir/this_dir
test/two/../two/this_dir/this_dir/this_dir
test/two/this_dir/this_dir/this_dir
test/two/../two/this_dir/this_dir
test/two/this_dir/this_dir
test/two/../two/this_dir
test/two/this_dir
test/two/../two
test/two

--
nosy: +o11c
versions: +Python 3.3

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



[issue15196] os.path.realpath gets confused when symlinks include '..'

2012-06-26 Thread R. David Murray

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


--
superseder:  - symlinks incorrectly resolved on Linux

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



[issue6975] symlinks incorrectly resolved on Linux

2012-06-26 Thread R. David Murray

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


--
nosy: +hynek, pitrou, r.david.murray
versions:  -Python 3.1

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



[issue15197] test_gettext failure on Win64 buildbot

2012-06-26 Thread Antoine Pitrou

New submission from Antoine Pitrou pit...@free.fr:

Another weird failure that isn't common on other buildbots:


test test_gettext failed -- Traceback (most recent call last):
  File 
C:\Users\Buildbot\buildbot.python.org\3.2.kloth-win64\build\lib\test\test_gettext.py,
 line 80, in tearDown
shutil.rmtree(os.path.split(LOCALEDIR)[0])
  File 
C:\Users\Buildbot\buildbot.python.org\3.2.kloth-win64\build\lib\shutil.py, 
line 289, in rmtree
onerror(os.rmdir, path, sys.exc_info())
  File 
C:\Users\Buildbot\buildbot.python.org\3.2.kloth-win64\build\lib\shutil.py, 
line 287, in rmtree
os.rmdir(path)
WindowsError: [Error 145] The directory is not empty: 'xx'

--
components: Tests
keywords: buildbot
messages: 164112
nosy: jeremy.kloth, pitrou, skrah
priority: normal
severity: normal
status: open
title: test_gettext failure on Win64 buildbot
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3

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



[issue12605] Enhancements to gdb 7 debugging hooks

2012-06-26 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

I'm +1 on adding this in general, +0 on adding this to 3.3, and -0 on adding it 
to 2.7 right away.

I agree that the usual reasoning against new features doesn't apply here, since 
it's not a new Python (language or library) feature.

However, one concern is that it is a large change, and I predict that it will 
introduce some breakage regardless of what amount of code review goes into it. 
If the breakage can be detected during the betas, fine, but we need to consider 
that it may cause breakage of the entire python-gdb feature for some people 
after the release (which probably wouldn't be that terrible). Hence the +0 for 
3.3.

For 2.7, it should only be added if it has survived in a prerelease branch for 
some time, hence the -0.

--

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



[issue15197] test_gettext failure on Win64 buildbot

2012-06-26 Thread Jeremy Kloth

Jeremy Kloth jeremy.kl...@gmail.com added the comment:

I've now also turned off indexing for the Buildbot account (and
folders).  Hopefully this is the last directory walking process
interfering with the tests.

--

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



[issue15031] Split .pyc parsing from module loading

2012-06-26 Thread Marc Abramowitz

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

Another package that inspects pyc files and which also ran into trouble because 
of the 8 to 12 byte change is distribute.

See: 
https://bitbucket.org/tarek/distribute/issue/283/bdist_egg-issues-with-python-330ax

Some kind of abstraction for loading pyc files would be nice.

--
nosy: +Marc.Abramowitz

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



[issue12971] os.isdir() should contain skiplinks=False in arguments

2012-06-26 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' g.rod...@gmail.com:


--
nosy: +giampaolo.rodola

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



[issue12971] os.isdir() should contain skiplinks=False in arguments

2012-06-26 Thread Larry Hastings

Larry Hastings la...@hastings.org added the comment:

If this happens, in keeping with the new os module aesthetic, I suggest the 
prototype should be

os.isdir(path, *, follow_symlinks=True)

--
nosy: +larry

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



[issue13685] argparse update help msg for % signs

2012-06-26 Thread Éric Araujo

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

Senthil, would you mind porting the fix to 2.7?  Thanks.

--
nosy: +eric.araujo

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



  1   2   >