[issue16838] fail to "from locale import getpreferredencoding" when there's a dir named "locale" in current dir

2013-01-02 Thread Eiro Neemous

Eiro Neemous added the comment:

@Christian:
Sorry that I didnt' attached test file= =
It was long ago that I met this problem, so forget some details= =
The right description is "cannot do 'from locale import getpreferredencoding'".
please extract the attached zip file and test "from locale import 
getpreferredencoding".

--
title: fail to "import locale" when there's a dir named "locale" in current dir 
-> fail to "from locale import getpreferredencoding" when there's a dir named 
"locale" in current dir
Added file: http://bugs.python.org/file28526/locale.zip

___
Python tracker 

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



[issue16838] fail to "from locale import getpreferredencoding" when there's a dir named "locale" in current dir

2013-01-02 Thread Christian Heimes

Christian Heimes added the comment:

Your locale directory contains a __init__.py file. The file causes the 
directory to become a Python package, that shadows the locale module from 
Python's standard library. Please remove the __init__.py file and __pycache__ 
directory to fix your problem.

--

___
Python tracker 

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



[issue16838] fail to "from locale import getpreferredencoding" when there's a dir named "locale" in current dir

2013-01-02 Thread Eiro Neemous

Eiro Neemous added the comment:

@Christian:
OK, get it,
thank you for your explanation :-)

--
status: open -> closed

___
Python tracker 

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



[issue16541] tk_setPalette doesn't accept keyword parameters

2013-01-02 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 956cfe53a99f by Serhiy Storchaka in branch '3.2':
Issue #16541: tk_setPalette() now works with keyword arguments.
http://hg.python.org/cpython/rev/956cfe53a99f

New changeset 1ac028634b60 by Serhiy Storchaka in branch '3.3':
Issue #16541: tk_setPalette() now works with keyword arguments.
http://hg.python.org/cpython/rev/1ac028634b60

New changeset 589e6175f037 by Serhiy Storchaka in branch 'default':
Issue #16541: tk_setPalette() now works with keyword arguments.
http://hg.python.org/cpython/rev/589e6175f037

--
nosy: +python-dev

___
Python tracker 

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



[issue16541] tk_setPalette doesn't accept keyword parameters

2013-01-02 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


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

___
Python tracker 

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



[issue16829] IDLE on POSIX can't print filenames with spaces

2013-01-02 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

But then will be problems with filenames containing ".

--

___
Python tracker 

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



[issue16829] IDLE on POSIX can't print filenames with spaces

2013-01-02 Thread Ramchandra Apte

Ramchandra Apte added the comment:

I think if IDLE directly starts lpr directly (subprocess) rather than using a 
shell to run it, then this problem won't happen.

--
nosy: +ramchandra.apte

___
Python tracker 

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



[issue14621] Hash function is not randomized properly

2013-01-02 Thread Giovanni Bajo

Giovanni Bajo added the comment:

Il giorno 02/gen/2013, alle ore 00:20, Domen Kožar  ha 
scritto:

> 
> Domen Kožar added the comment:
> 
> According to talk at 29c3: 
> http://events.ccc.de/congress/2012/Fahrplan/events/5152.en.html
> 
> Quote: We also describe a vulnerability of Python's new randomized hash, 
> allowing an attacker to easily recover the 128-bit secret seed. As a reliable 
> fix to hash-flooding, we introduce SipHash, a family of cryptographically 
> strong keyed hash function competitive in performance with the weak hashes, 
> and already adopted in OpenDNS, Perl 5, Ruby, and in the Rust language.

That is exactly the vulnerability that was previously mentioned in the context 
of this bug. SipHash is currently the only solution for a collision-resistant 
fast-enough hash. 
-- 
Giovanni Bajo

--

___
Python tracker 

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



[issue14621] Hash function is not randomized properly

2013-01-02 Thread Giovanni Bajo

Giovanni Bajo added the comment:

Il giorno 02/gen/2013, alle ore 06:52, Christian Heimes 
 ha scritto:

> 
> Christian Heimes added the comment:
> 
> Thanks for the information! I'm working on a PEP for the issue at hand.

Since you're collecting ideas on this, I would like to stress that, in the 
Python 3 transition, it was deemed acceptable to switch all objects to use 
unicode strings for attribute names, making the hash computation of such 
attributes (in the context of the instance dictionary) at least twice as slow 
than it used to be (the 'at least' refers to the fact that longer strings might 
have even worse effects because of a higher number of cache misses). SipHash 
isn't twice as slow as the current hash function, not even for short strings.

So there is a precedent in slowing down the hash computation time in a very 
important use case, and it doesn't look like hell froze over.
-- 
Giovanni Bajo

--

___
Python tracker 

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



[issue13968] Support recursive globs

2013-01-02 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Patch updated for current tip.

--
Added file: http://bugs.python.org/file28527/glob_recursive_2.patch

___
Python tracker 

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



[issue13968] Support recursive globs

2013-01-02 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
stage: needs patch -> patch review

___
Python tracker 

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



[issue13968] Support recursive globs

2013-01-02 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


Removed file: http://bugs.python.org/file28213/glob_recursive.patch

___
Python tracker 

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



[issue16761] Fix int(base=X)

2013-01-02 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


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

___
Python tracker 

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



[issue16630] IDLE: Calltip fails if __getattr__ raises exception

2013-01-02 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
stage: patch review -> needs patch

___
Python tracker 

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



[issue16839] segmentation fault when unicode(classic_class_instance)

2013-01-02 Thread Masaya Suzuki

New submission from Masaya Suzuki:

Python 2.7.3 crushes when the following code is run without any library, which 
means run python with -S option:

class Test:
pass
unicode(Test())

In the course of the interpreter tries to find the "__unicode__" attribute in a 
class, it uses a cached python string of "__unicode__". The reason of this 
crush is that the cached value is used before initialized. It is initialized 
only when trying to find the one of a new-style class, so the interpreter will 
crush if one uses only classic classes.

The attached patch will fix this issue by initializing a cached value before it 
is used.

Thanks.

--
components: Interpreter Core
files: object_unicode.patch
keywords: patch
messages: 178811
nosy: draftcode
priority: normal
severity: normal
status: open
title: segmentation fault when unicode(classic_class_instance)
type: crash
versions: Python 2.7
Added file: http://bugs.python.org/file28528/object_unicode.patch

___
Python tracker 

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



[issue16748] Ensure test discovery doesn't break for modules testing C and Python implementations

2013-01-02 Thread Brett Cannon

Brett Cannon added the comment:

Why remove the refleak tests? I'm sure Raymond put those in for a reason as I 
know he tries to reuse various objects a lot and this helped make sure he 
didn't mess anything up.

I don't think the tests need to be backported.

--

___
Python tracker 

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



[issue16694] Add pure Python operator module

2013-01-02 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

v8 LGTM (except some trailing whitespaces).

--

___
Python tracker 

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



[issue16839] segmentation fault when unicode(classic_class_instance)

2013-01-02 Thread Daniel Urban

Changes by Daniel Urban :


--
stage:  -> patch review

___
Python tracker 

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



[issue14621] Hash function is not randomized properly

2013-01-02 Thread Benjamin Peterson

Benjamin Peterson added the comment:

2013/1/2 Giovanni Bajo :
>
> Giovanni Bajo added the comment:
>
> Il giorno 02/gen/2013, alle ore 06:52, Christian Heimes 
>  ha scritto:
>
>>
>> Christian Heimes added the comment:
>>
>> Thanks for the information! I'm working on a PEP for the issue at hand.
>
> Since you're collecting ideas on this, I would like to stress that, in the 
> Python 3 transition, it was deemed acceptable to switch all objects to use 
> unicode strings for attribute names, making the hash computation of such 
> attributes (in the context of the instance dictionary) at least twice as slow 
> than it used to be (the 'at least' refers to the fact that longer strings 
> might have even worse effects because of a higher number of cache misses). 
> SipHash isn't twice as slow as the current hash function, not even for short 
> strings.
>
> So there is a precedent in slowing down the hash computation time in a very 
> important use case, and it doesn't look like hell froze over.

It's probably not to bad for attribute names because a) they're short
b) they're interned c) the hash is cached.

--

___
Python tracker 

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



[issue16840] Tkinter doesn't support large integers

2013-01-02 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

A long time Tcl got support first 64-bit integers, and then arbitrary size 
integers. Python also supports arbitrary size integers. However Tkinter 
supports only C long integers. For example, on 32-bit platform:

>>> import tkinter
>>> t = tkinter.Tk()
>>> t.tk.call('expr', 2**30)
1073741824
>>> t.tk.call('expr', 2**31)

>>> t.tk.call('expr', 2**63)


Those  and  are not usable from Python. 
Potentially this can cause errors in some rare circumstances.

I'm working on a patch, but was faced with a problem. Tcl provides functions 
for conversions between Bignum Tcl object and mp_int, but it does not provide 
all functions for conversions between mp_int and bytes sequence. Which is 
better, add libtommath library to CPython dependencies, or implement the 
missing functionality manually? Or may be use haxadecimal representation for 
conversions?

--
assignee: serhiy.storchaka
components: Tkinter
messages: 178815
nosy: gpolo, serhiy.storchaka
priority: normal
severity: normal
stage: needs patch
status: open
title: Tkinter doesn't support large integers
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4

___
Python tracker 

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



[issue16841] Set st_dev on Windows as unsigned long

2013-01-02 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

st_dev field of stat() result was set as signed long or long long, but now it 
is unsigned long on Windows (see issue11939). The proposed patch uses 
appropriate conversion for it.

--
components: Extension Modules, Windows
files: st_dev_unsigned.patch
keywords: patch
messages: 178816
nosy: brian.curtin, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Set st_dev on Windows as unsigned long
type: behavior
versions: Python 3.4
Added file: http://bugs.python.org/file28529/st_dev_unsigned.patch

___
Python tracker 

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



[issue16839] segmentation fault when unicode(classic_class_instance)

2013-01-02 Thread Benjamin Peterson

Benjamin Peterson added the comment:

Thank you for the bug report.

--
nosy: +benjamin.peterson

___
Python tracker 

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



[issue16839] segmentation fault when unicode(classic_class_instance)

2013-01-02 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 0012d4f0ca59 by Benjamin Peterson in branch '2.7':
ensure the attribute name string is initalized before using it (closes #16839)
http://hg.python.org/cpython/rev/0012d4f0ca59

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

___
Python tracker 

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



[issue16047] Tools/freeze no longer works in Python 3

2013-01-02 Thread Meador Inge

Meador Inge added the comment:

After applying the fix for issue11824 to tip there ended up being three more
issues:

   1. makeconfig.py should have been updated in d777f854a66e when changing
  imp to _imp.  Without this change a reference to 'PyInit__imp'
  was being generated, but that function does not actually exist.

   2. After fixing (1) I hit an issue where '_frozen_importlib' can
  not be found while bringing up the interpreter.

   3. After fixing (2) I hit the following error when running the
  simple frozen hello app:

 $ ./hello 
 Traceback (most recent call last):
  
 ...

   File "/Users/meadori/Code/src/cpython/Lib/site.py", line 578, in main
 setcopyright()
   File "/Users/meadori/Code/src/cpython/Lib/site.py", line 438, in 
setcopyright
 here = os.path.dirname(os.__file__)
 AttributeError: 'module' object has no attribute '__file__'

  This happens during 'initsite' and is because of a change made
  to remove the __file__ attribute from frozen modules in 702009f3c0b1.

The attached patch fixes (1) by filtering '_imp' instead of 'imp' in
makeconfig.py, (2) by making sure '_frozen_importlib' is in the frozen
module table created by freeze.py, and (3) by removing the code to delete
__file__ from frozen modules.

I am a little unsure about (3) since I am not sure why the __file__ attribute
is being removed to begin with.  eric.smith?

--
keywords: +patch
nosy: +brett.cannon, eric.smith
Added file: http://bugs.python.org/file28530/issue16047-0.patch

___
Python tracker 

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



[issue16841] Set st_dev on Windows as unsigned long

2013-01-02 Thread Brian Curtin

Brian Curtin added the comment:

Looks good.

--
assignee:  -> serhiy.storchaka

___
Python tracker 

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



[issue16047] Tools/freeze no longer works in Python 3

2013-01-02 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:

On Jan 02, 2013, at 04:06 PM, Meador Inge wrote:

>I am a little unsure about (3) since I am not sure why the __file__ attribute
>is being removed to begin with.  eric.smith?

This is related to PEP 420, which relaxes the requirement that all modules
have a __file__ attribute.  Now they only need it if it makes sense.  At the
time, we didn't think it made sense for frozen modules to have an __file__.
FrozenImporter.module_repr() provides a reasonable repr in the absence of
__file__.

I'm not sure what to do.  I still think it doesn't make a lot of sense for
frozen modules to have an __file__, but perhaps practicality beats purity
here.

--

___
Python tracker 

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



[issue16841] Set st_dev on Windows as unsigned long

2013-01-02 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 07d07111cec9 by Serhiy Storchaka in branch 'default':
Issue #16841: Set st_dev on Windows as unsigned long to match its DWORD type.
http://hg.python.org/cpython/rev/07d07111cec9

--
nosy: +python-dev

___
Python tracker 

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



[issue16047] Tools/freeze no longer works in Python 3

2013-01-02 Thread Eric V. Smith

Eric V. Smith added the comment:

What Barry said. :)

I haven't had time to check yet: but why does site.py need the __file__ 
attribute? Maybe that's the actual problem.

--

___
Python tracker 

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



[issue16047] Tools/freeze no longer works in Python 3

2013-01-02 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:

On Jan 02, 2013, at 04:29 PM, Eric V. Smith wrote:

>I haven't had time to check yet: but why does site.py need the __file__
>attribute? Maybe that's the actual problem.

It uses it to find the license text when you type license() at the interactive
prompt.  I think setcopyright() should just ignore that if os.__file__ isn't
defined.  Why would you be printing the license at a prompt in a frozen
Python?

--

___
Python tracker 

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



[issue16828] bz2 error on compression of empty string

2013-01-02 Thread Matthias Klose

Changes by Matthias Klose :


--
nosy: +doko

___
Python tracker 

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



[issue16047] Tools/freeze no longer works in Python 3

2013-01-02 Thread Brett Cannon

Brett Cannon added the comment:

I agree that it makes no sense to define __file__ for frozen modules. 
Originally they did because that was the only way to tell if a module was a 
builtin module or not, but with the imp module's API on top of 
sys.builtin_module_names, there is no need to maintain this invariant.

As for site.py requiring the module to have a __file__ on os, I think that is 
somewhat bogus as well and should be optional so issue (3) for Meador should be 
to patch site.py to not flat-out require os.__file__ exist.

--

___
Python tracker 

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



[issue16828] bz2 error on compression of empty string

2013-01-02 Thread Matthias Klose

Matthias Klose added the comment:

looks fine to me.

--

___
Python tracker 

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



[issue16841] Set st_dev on Windows as unsigned long

2013-01-02 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


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

___
Python tracker 

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



[issue15239] Abandoned Tools/unicode/mkstringprep.py

2013-01-02 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
assignee:  -> serhiy.storchaka

___
Python tracker 

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



[issue16837] Number ABC can be instantiated

2013-01-02 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

Attached patch fixes the issue and passes regression tests, so most likely the 
ability to instantiate Number is not an intentional feature.

"pass" should probably be replaced with a meaningful docstring, but I would 
like to hear from others on whether the solution is conceptually correct before 
making it commit-ready.

--
keywords: +patch
nosy: +eric.araujo, ncoghlan, rhettinger
stage:  -> patch review
Added file: http://bugs.python.org/file28531/issue16837.diff

___
Python tracker 

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



[issue8745] zipimport is a bit slow

2013-01-02 Thread Catalin Iacob

Catalin Iacob added the comment:

Yes Serhiy, I was planning to, lack of time followed by (just finished) 
vacation lead to a stall. Thanks for following up on this.

I should soon, probably this weekend, have an updated version addressing your 
comments.

--

___
Python tracker 

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



[issue15516] exception-handling bug in PyString_Format

2013-01-02 Thread Tom Tromey

Tom Tromey added the comment:

It does fail without the patch:

test_format
XXX undetected error
test test_format failed -- Traceback (most recent call last):
  File "/home/tromey/Space/Python/cpython/Lib/test/test_format.py", line 251, 
in test_format
def test_exc(formatstr, args, exception, excmsg):
  File "/home/tromey/Space/Python/cpython/Lib/test/test_format.py", line 240, 
in __int__
raise TestFailed
TestFailed

--

___
Python tracker 

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



[issue16694] Add pure Python operator module

2013-01-02 Thread Zachary Ware

Zachary Ware added the comment:

Note to self: learn to run patchcheck.py before posting.  Whitespace issues 
fixed in v9.

--
Added file: http://bugs.python.org/file28532/py_operator.v9.diff

___
Python tracker 

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



[issue16748] Ensure test discovery doesn't break for modules testing C and Python implementations

2013-01-02 Thread Ezio Melotti

Ezio Melotti added the comment:

> Why remove the refleak tests?

Because regrtest already provides the feature, so I don't see a reason to 
duplicate it here.  FWIW the same code is copy/pasted elsewhere too, e.g. in 
Lib/test/test_operator.py:438.

--

___
Python tracker 

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



[issue16701] Docs missing the behavior of += (in-place add) for lists.

2013-01-02 Thread Ezio Melotti

Changes by Ezio Melotti :


--
nosy: +ezio.melotti
stage:  -> needs patch

___
Python tracker 

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



[issue15516] exception-handling bug in PyString_Format

2013-01-02 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 80cfd4caa726 by Benjamin Peterson in branch '2.7':
call PyErr_Clear() when ignoring error from PyNumber_Int (closes #15516)
http://hg.python.org/cpython/rev/80cfd4caa726

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

___
Python tracker 

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



[issue15516] exception-handling bug in PyString_Format

2013-01-02 Thread Benjamin Peterson

Benjamin Peterson added the comment:

Thanks for the patch. For future reference, we use spaces instead of tabs.

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

___
Python tracker 

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



[issue15516] exception-handling bug in PyString_Format

2013-01-02 Thread Benjamin Peterson

Changes by Benjamin Peterson :


--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue16737] Different behaviours in script run directly and via runpy.run_module

2013-01-02 Thread Brett Cannon

Brett Cannon added the comment:

Just to have this written down somewhere, site.py already goes through and 
changes __file__ to absolute for modules already imported before it is run, so 
there is some precedent to not caring about relative file paths.

--

___
Python tracker 

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



[issue16748] Ensure test discovery doesn't break for modules testing C and Python implementations

2013-01-02 Thread Brett Cannon

Brett Cannon added the comment:

The patch LGTM

--

___
Python tracker 

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



[issue14621] Hash function is not randomized properly

2013-01-02 Thread Christian Heimes

Christian Heimes added the comment:

Giovanni, why do you think that hashing of unicode strings is slower than byte 
strings? 

First of all ASCII only unicode strings are packed and use just one byte per 
char. CPython's FNV implementation processes one element in each cycle, that is 
one byte for bytes and ASCII unicode, two bytes for UCS-2 and four bytes for 
UCS-4. Bytes and UCS-4 strings require the same amount of CPU instructions.

--

___
Python tracker 

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



[issue14621] Hash function is not randomized properly

2013-01-02 Thread Giovanni Bajo

Giovanni Bajo added the comment:

Il giorno 02/gen/2013, alle ore 19:51, Christian Heimes 
 ha scritto:

> 
> Christian Heimes added the comment:
> 
> Giovanni, why do you think that hashing of unicode strings is slower than 
> byte strings? 
> 
> First of all ASCII only unicode strings are packed and use just one byte per 
> char. CPython's FNV implementation processes one element in each cycle, that 
> is one byte for bytes and ASCII unicode, two bytes for UCS-2 and four bytes 
> for UCS-4. Bytes and UCS-4 strings require the same amount of CPU 
> instructions.

Ah sorry, I stand corrected (though packing wasn't there in 3.0, was it? I was 
specifically referred to the 2.x -> 3.0 transition).
-- 
Giovanni Bajo

My Blog: http://giovanni.bajo.it

--

___
Python tracker 

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



[issue16694] Add pure Python operator module

2013-01-02 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

If no one objects I will commit this next week.

--

___
Python tracker 

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



[issue16748] Ensure test discovery doesn't break for modules testing C and Python implementations

2013-01-02 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 008bac4e181c by Ezio Melotti in branch '3.3':
#16748: test_heapq now works with unittest test discovery.
http://hg.python.org/cpython/rev/008bac4e181c

New changeset de6bac0a40cc by Ezio Melotti in branch 'default':
#16748: merge with 3.3.
http://hg.python.org/cpython/rev/de6bac0a40cc

--
nosy: +python-dev

___
Python tracker 

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



[issue16748] Ensure test discovery doesn't break for modules testing C and Python implementations

2013-01-02 Thread Ezio Melotti

Ezio Melotti added the comment:

Fixed, thanks for the review!

--
resolution:  -> fixed
stage: patch review -> committed/rejected
status: open -> closed
versions:  -Python 2.7, Python 3.2

___
Python tracker 

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



[issue16748] Ensure test discovery doesn't break for modules testing C and Python implementations

2013-01-02 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

As I mentioned above, not only test_heapq uses this idiom, but a lot of other 
tests. Try to fix hard cases first: test_genericpath and test_functools.

--
status: closed -> open

___
Python tracker 

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



[issue14621] Hash function is not randomized properly

2013-01-02 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

See microbenchmark results in issue16427. Really hashing of ASCII/UCS1 strings 
more than 2x slower than bytes hashing.

--

___
Python tracker 

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



[issue16801] Preserve original representation for integers / floats in docstrings

2013-01-02 Thread Ezio Melotti

Ezio Melotti added the comment:

Either repeating the default value in the text with the desired form (and leave 
it "wrong" in the signature) or what Georg suggested in msg178519 sound good to 
me.  I don't think anything more than that is necessary to solve this issue.

--

___
Python tracker 

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



[issue16827] Remove the relatively advanced content from section 2 in tutorial

2013-01-02 Thread Ezio Melotti

Ezio Melotti added the comment:

Those section could be moved to an appendix or somewhere near 
http://docs.python.org/3/tutorial/interactive.html.  Note that this page and 
the one about float issues could be appendices too.

--

___
Python tracker 

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



[issue16835] Update PEP 399 to allow for test discovery

2013-01-02 Thread Philip Jenvey

Philip Jenvey added the comment:

Hey Ezio, you forgot to attach the patch

--
nosy: +pjenvey

___
Python tracker 

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



[issue16842] Allow to override a function signature for pydoc with a docstring

2013-01-02 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

Just a quote of Georg Brandl's msg178519:

> A simple, minimal-invasive solution would be to allow a signature for 
> documentation purposes as the first line of the docstrings.
>
> pydoc could recognize this (if docstring.startswith(func.__name__ + '(') or 
> something like that), and display the given signature instead of the 
> introspected one.

I see only one obstacle. Some functions (like dict.update()) needs several 
signatures. How detect and format them?

--
components: Interpreter Core
messages: 178846
nosy: georg.brandl, serhiy.storchaka
priority: normal
severity: normal
stage: needs patch
status: open
title: Allow to override a function signature for pydoc with a docstring
type: enhancement
versions: Python 3.4

___
Python tracker 

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



[issue16835] Update PEP 399 to allow for test discovery

2013-01-02 Thread Ezio Melotti

Ezio Melotti added the comment:

That would explain why no one was reviewing it :)

--
keywords: +patch
Added file: http://bugs.python.org/file28533/issue16835.diff

___
Python tracker 

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



[issue16747] Remove 'file' type reference from 'iterable' glossary entry

2013-01-02 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 2afc0997e440 by Ezio Melotti in branch '3.2':
#16747: fix link to file objects in the glossary.
http://hg.python.org/cpython/rev/2afc0997e440

New changeset 6e4fc5e2acf8 by Ezio Melotti in branch '3.3':
#16747: merge with 3.2.
http://hg.python.org/cpython/rev/6e4fc5e2acf8

New changeset e19ed347523e by Ezio Melotti in branch 'default':
#16747: merge with 3.3.
http://hg.python.org/cpython/rev/e19ed347523e

--
nosy: +python-dev

___
Python tracker 

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



[issue16747] Remove 'file' type reference from 'iterable' glossary entry

2013-01-02 Thread Ezio Melotti

Ezio Melotti added the comment:

Fixed, thanks for the report and the patch!

--
resolution:  -> fixed
stage: commit review -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue16839] segmentation fault when unicode(classic_class_instance)

2013-01-02 Thread Jesús Cea Avión

Changes by Jesús Cea Avión :


--
nosy: +jcea

___
Python tracker 

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



[issue13810] refer people to Doc/Makefile when not using 'make' to build main documentation

2013-01-02 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 47df28c52840 by Ezio Melotti in branch 'default':
#13810: fix Sphinx URL.
http://hg.python.org/devguide/rev/47df28c52840

--
nosy: +python-dev

___
Python tracker 

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



[issue16843] sporadic test_sched failure

2013-01-02 Thread Antoine Pitrou

New submission from Antoine Pitrou:

Just got this:

[255/372/1] test_sched
Warning -- threading._dangling was modified by test_sched
test test_sched failed -- Traceback (most recent call last):
  File "/home/antoine/cpython/default/Lib/test/test_sched.py", line 83, in 
test_cancel_concurrent
scheduler.cancel(event1)
  File "/home/antoine/cpython/default/Lib/sched.py", line 96, in cancel
self._queue.remove(event)
ValueError: list.remove(x): x not in list

--
components: Library (Lib), Tests
messages: 178851
nosy: pitrou, serhiy.storchaka
priority: normal
severity: normal
status: open
title: sporadic test_sched failure
type: behavior
versions: Python 3.4

___
Python tracker 

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



[issue16833] http.client delayed ack / Nagle algorithm optimisation performs badly for large messages

2013-01-02 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 002bf9857278 by Antoine Pitrou in branch 'default':
Issue #16833: In http.client.HTTPConnection, do not concatenate the request 
headers and body when the payload exceeds 16 KB, since it can consume more 
memory for no benefit.
http://hg.python.org/cpython/rev/002bf9857278

--
nosy: +python-dev

___
Python tracker 

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



[issue16833] http.client delayed ack / Nagle algorithm optimisation performs badly for large messages

2013-01-02 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Patch looks good to me, I've committed it. Thank you!

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

___
Python tracker 

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



[issue16833] http.client delayed ack / Nagle algorithm optimisation performs badly for large messages

2013-01-02 Thread Antoine Pitrou

Antoine Pitrou added the comment:

By the way, could you sign a contributor agreement?
http://www.python.org/psf/contrib/

Thank you.

--

___
Python tracker 

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



[issue16842] Allow to override a function signature for pydoc with a docstring

2013-01-02 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
stage: needs patch -> patch review

___
Python tracker 

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



[issue16843] sporadic test_sched failure

2013-01-02 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

This is a test only issue.

There are two ways to fix this test. On first simple way we can just increase 
the timing and hope for a luck. On second more complicated way we should use 
custom deterministic time and sleep functions. Here is a first way patch to 
shut up the test failing.

--
assignee:  -> serhiy.storchaka
components:  -Library (Lib)
keywords: +patch
Added file: http://bugs.python.org/file28534/test_sched_concurrent.patch

___
Python tracker 

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



[issue16801] Preserve original representation for integers / floats in docstrings

2013-01-02 Thread Terry J. Reedy

Terry J. Reedy added the comment:

A subclass with a custom representation, as I suggested above, is even simpler 
and involves no change to inspect or docstring conventions. I otherwise agree 
with closing this.

--

___
Python tracker 

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



[issue16828] bz2 error on compression of empty string

2013-01-02 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 06a08144af1b by Nadeem Vawda in branch '2.7':
Issue #16828: Fix error incorrectly raised by bz2.compress('').
http://hg.python.org/cpython/rev/06a08144af1b

New changeset c4a4863b85b2 by Nadeem Vawda in branch '3.2':
Issue #16828: Fix error incorrectly raised by bz2.compress('').
http://hg.python.org/cpython/rev/c4a4863b85b2

New changeset 011981143087 by Nadeem Vawda in branch '3.3':
Issue #16828: Fix error incorrectly raised by bz2.compress('').
http://hg.python.org/cpython/rev/011981143087

New changeset 93654d0d9b1e by Nadeem Vawda in branch '3.3':
Correction: issue #16828 also affects BZ2Compressor.compress().
http://hg.python.org/cpython/rev/93654d0d9b1e

New changeset 44cfd43b09f5 by Nadeem Vawda in branch 'default':
Issue #16828: Fix error incorrectly raised by bz2.compress(b'') and 
bz2.BZ2Compressor.compress(b'').
http://hg.python.org/cpython/rev/44cfd43b09f5

--
nosy: +python-dev

___
Python tracker 

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



[issue16828] bz2 error on compression of empty string

2013-01-02 Thread Nadeem Vawda

Nadeem Vawda added the comment:

Fixed. Thanks for the bug report and the patches!

--
assignee:  -> nadeem.vawda
keywords: +3.3regression -patch
resolution:  -> fixed
stage: patch review -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue16844] funcName in logging module for python 2.6

2013-01-02 Thread Alejandro Marco Ramos

New submission from Alejandro Marco Ramos:

hi, when use the param 'funcName' in the logging module (version 0.4.9.6 for 
python 2.6) the module crash. Researching in the code (__init__.py) i see that 
the code for get the function name is in method '_log' in the class 'Logger'. 
The function 'findCaller()' returns in the last value the name of the function 
(in the variable name 'func'), but this variable is not present in the caller 
function for create a 'record' object (in this case 'makeRecord'). I added code 
to fix this but i like that review this bug.

--
components: Extension Modules
messages: 178859
nosy: amarco
priority: normal
severity: normal
status: open
title: funcName in logging module for python 2.6
type: crash
versions: Python 2.6

___
Python tracker 

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



[issue16844] funcName in logging module for python 2.6

2013-01-02 Thread Ezio Melotti

Ezio Melotti added the comment:

Can you provide some code to reproduce the issue and/or the traceback you got?  
Note that 2.6 only receives security fixes, so it won't be fixed there -- but 
it can be fixed in 2.7/3.2/3.3/3.x if they are affected.

--
nosy: +ezio.melotti

___
Python tracker 

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



[issue16748] Make CPython test package discoverable

2013-01-02 Thread Zachary Ware

Zachary Ware added the comment:

Here's a patch that should clear up test_genericpath.py (and other path tests).

--
resolution: fixed -> 
title: Ensure test discovery doesn't break for modules testing C and Python 
implementations -> Make CPython test package discoverable
Added file: http://bugs.python.org/file28535/issue16748_genericpath.diff

___
Python tracker 

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



[issue16844] funcName in logging module for python 2.6

2013-01-02 Thread R. David Murray

R. David Murray added the comment:

I wonder if this is related to issue 16778.

--
nosy: +r.david.murray, vinay.sajip

___
Python tracker 

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



[issue16844] funcName in logging module for python 2.6

2013-01-02 Thread Alejandro Marco Ramos

Alejandro Marco Ramos added the comment:

is not related to 16778

--

___
Python tracker 

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



[issue16455] Decode command line arguments from ASCII on FreeBSD and Solaris if the locale is C

2013-01-02 Thread Roundup Robot

Roundup Robot added the comment:

New changeset c256764e2b3f by Victor Stinner in branch '3.2':
Issue #16455: On FreeBSD and Solaris, if the locale is C, the
http://hg.python.org/cpython/rev/c256764e2b3f

New changeset 5bb289e4fb35 by Victor Stinner in branch '3.3':
(Merge 3.2) Issue #16455: On FreeBSD and Solaris, if the locale is C, the
http://hg.python.org/cpython/rev/5bb289e4fb35

--

___
Python tracker 

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



[issue16739] texttestresult should decorate the stream with _WritelnDecorator

2013-01-02 Thread Leo Arias

Leo Arias added the comment:

What if we check if the stream has the writeln method?

--
Added file: 
http://bugs.python.org/file28536/fix-16739-texttestresult_writeln-v2.patch

___
Python tracker 

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



[issue16455] Decode command line arguments from ASCII on FreeBSD and Solaris if the locale is C

2013-01-02 Thread STINNER Victor

STINNER Victor added the comment:

I backported the fix to Python 3.2 and 3.3 because I consider it important 
enough.

--
versions: +Python 3.2, Python 3.3

___
Python tracker 

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



[issue16845] warnings.simplefilter should validate input

2013-01-02 Thread Sebastian Berg

New submission from Sebastian Berg:

`warnings.simplefilter` does not validate that the category passed in is 
actually a class. This means that an invalid category leads to a `TypeError` 
whenever a warning would otherwise occur due to `issubclass` check failing.

It is a very small thing, but for usability it would be clearer if this was 
checked right away.

--
messages: 178867
nosy: seberg
priority: normal
severity: normal
status: open
title: warnings.simplefilter should validate input
type: enhancement

___
Python tracker 

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



[issue16444] Use support.TESTFN_UNDECODABLE on UNIX

2013-01-02 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 41658a4fb3cc by Victor Stinner in branch '3.2':
Issue #16218, #16414, #16444: Backport FS_NONASCII, TESTFN_UNDECODABLE,
http://hg.python.org/cpython/rev/41658a4fb3cc

New changeset 4d40c1ce8566 by Victor Stinner in branch '3.3':
(Merge 3.2) Issue #16218, #16414, #16444: Backport FS_NONASCII,
http://hg.python.org/cpython/rev/4d40c1ce8566

--

___
Python tracker 

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



[issue16218] Python launcher does not support unicode characters

2013-01-02 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 41658a4fb3cc by Victor Stinner in branch '3.2':
Issue #16218, #16414, #16444: Backport FS_NONASCII, TESTFN_UNDECODABLE,
http://hg.python.org/cpython/rev/41658a4fb3cc

New changeset 4d40c1ce8566 by Victor Stinner in branch '3.3':
(Merge 3.2) Issue #16218, #16414, #16444: Backport FS_NONASCII,
http://hg.python.org/cpython/rev/4d40c1ce8566

--

___
Python tracker 

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



[issue16414] Add support.NONASCII to test non-ASCII characters

2013-01-02 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 41658a4fb3cc by Victor Stinner in branch '3.2':
Issue #16218, #16414, #16444: Backport FS_NONASCII, TESTFN_UNDECODABLE,
http://hg.python.org/cpython/rev/41658a4fb3cc

New changeset 4d40c1ce8566 by Victor Stinner in branch '3.3':
(Merge 3.2) Issue #16218, #16414, #16444: Backport FS_NONASCII,
http://hg.python.org/cpython/rev/4d40c1ce8566

--

___
Python tracker 

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



[issue16455] Decode command line arguments from ASCII on FreeBSD and Solaris if the locale is C

2013-01-02 Thread STINNER Victor

Changes by STINNER Victor :


--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue16414] Add support.NONASCII to test non-ASCII characters

2013-01-02 Thread STINNER Victor

Changes by STINNER Victor :


--
versions: +Python 3.2, Python 3.3

___
Python tracker 

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



[issue16444] Use support.TESTFN_UNDECODABLE on UNIX

2013-01-02 Thread STINNER Victor

Changes by STINNER Victor :


--
versions: +Python 3.2, Python 3.3

___
Python tracker 

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



[issue16218] Python launcher does not support unicode characters

2013-01-02 Thread STINNER Victor

STINNER Victor added the comment:

> I assign the issue to you than. Is it ok?

Sure.

I backported all changesets related to this issue to Python 3.2 and 3.3. So I 
can finally close this issue.

--
assignee: haypo -> 
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue15596] pickle: Faster serialization of Unicode strings

2013-01-02 Thread STINNER Victor

STINNER Victor added the comment:

serhiy: I'm not really motivated to finish the work on this issue (especially 
"... it would probably be good idea to benchmarks non-ASCII strings as well."). 
Would you like to work on this?

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue14094] nt.realpath() should use GetFinalPathNameByHandle() when available

2013-01-02 Thread STINNER Victor

Changes by STINNER Victor :


--
components: +Windows

___
Python tracker 

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



[issue14393] Incorporate Guide to Magic Methods?

2013-01-02 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Much of that article is taken directly from the official docs and adds very 
little in the way of explanation.  I think we need our own write-up with better 
explanations and examples.

--
nosy: +rhettinger

___
Python tracker 

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



[issue13552] Compilation issues of the curses module on OpenIndiana

2013-01-02 Thread STINNER Victor

STINNER Victor added the comment:

What is the status of this issue? Is curses still broken on Python 3.4?

--
nosy: +trent

___
Python tracker 

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



[issue12495] Rewrite InterProcessSignalTests

2013-01-02 Thread STINNER Victor

STINNER Victor added the comment:

I don't want to work on signals anymore, and nobody looks to be interested, so 
I'm closing this issue.

--
resolution:  -> wont fix
status: open -> closed

___
Python tracker 

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



[issue7651] Python3: guess text file charset using the BOM

2013-01-02 Thread STINNER Victor

STINNER Victor added the comment:

The idea was somehow rejected on the python-dev mailing list. I'm not really 
motivated to work on this issue since I never see any file starting with a BOM 
on Linux, and I'm only working on Linux. So I just close this issue.

If someone is motivated to work on this topic, I suppose that it would be 
better to reopen the discussion on the python-dev mailing list first.

--
resolution:  -> rejected
status: open -> closed

___
Python tracker 

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



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

2013-01-02 Thread STINNER Victor

Changes by STINNER Victor :


--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue16047] Tools/freeze no longer works in Python 3

2013-01-02 Thread Meador Inge

Meador Inge added the comment:

Thanks for the feedback everyone -- that helped.  Here is a new patch
which addresses issue (3) by not requiring os.__file__ to exist.

The patch from issue11824 fixes freeze for 3.2 completely.  The patch
from issue11824 plus this patch fixes freeze for 3.3 and 3.4.  I tested
both `make install` and Python source tree versions (i.e. freeze.py -p).
A frozen "Hello, world" app works fine in all cases.

I also verified that 'license' works from a frozen app.  You will see
something like the following instead of the full licensing text on stdout:

   See http://www.python.org/3.4/license.html

--
assignee: meador.inge -> 
stage: needs patch -> patch review
versions:  -Python 3.2
Added file: http://bugs.python.org/file28537/issue16047-1.patch

___
Python tracker 

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



[issue16047] Tools/freeze no longer works in Python 3

2013-01-02 Thread Meador Inge

Changes by Meador Inge :


--
assignee:  -> meador.inge

___
Python tracker 

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



[issue10951] gcc 4.6 warnings

2013-01-02 Thread STINNER Victor

STINNER Victor added the comment:

fix_2warnings.diff: I don't like statement like (void)err; to kill a compiler 
warning. I prefer GCC __attribute__((unused)) using a macro instead. About the 
change on unicode_fromascii, the code changed a lot since the patch was 
written. The patch is outdated and not really interesting. Please open a new 
issue with a new patch if there are remaining warnings.

I'm closing the issue because I agree with Martin von Loewis, it's better to 
open new issues for each warning (warning class?).

--

___
Python tracker 

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



[issue10951] gcc 4.6 warnings

2013-01-02 Thread STINNER Victor

Changes by STINNER Victor :


--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue11242] urllib.request.url_open() doesn't support SSLContext

2013-01-02 Thread STINNER Victor

STINNER Victor added the comment:

A solution does already exist, and I'm not motivated to work on an helper, so 
I'm closing this issue.

--
resolution:  -> rejected
status: open -> closed

___
Python tracker 

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



[issue16842] Allow to override a function signature for pydoc with a docstring

2013-01-02 Thread Meador Inge

Meador Inge added the comment:

Serhiy, did you mean to mark this as "patch review"?  I don't see a patch.

--
nosy: +meador.inge

___
Python tracker 

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



[issue11365] Integrate Buildroot patches (cross-compilation)

2013-01-02 Thread STINNER Victor

STINNER Victor added the comment:

@doko: You integrated patches related to cross-compilation. Can this issue be 
closed, or does the Buildroot project still contain useful patches?

--
nosy: +doko

___
Python tracker 

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



  1   2   >