[issue16113] SHA-3 (Keccak) support may need to be removed before 3.4

2013-10-24 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 I'm prepared to pull the plug if there is any doubt about the final version 
 of SHA-3 before beta 2 is released on Jan 5th.

Shouldn't it be removed before beta1? The usual rule of feature freeze applies 
here.

--

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



[issue19373] Tkinter apps including IDLE may not display properly on OS X 10.9 Mavericks

2013-10-24 Thread Ned Deily

New submission from Ned Deily:

On OS X 10.9 Mavericks, there is a problem with Aqua Cocoa Tk 8.5 (8.5.15 or 
earlier) when run in 64-bit mode, the default for most applications.  The 
symptoms are that Tk widgets may not be properly drawn or updated on the screen 
unless some HID activity takes place, like mousing over the widget or by 
entering text via the keyboard.  Since the problem can also be reproduced using 
the Tk wish shell, it is not a Python problem but it can have an impact on 
Tkinter-based applications, like IDLE.  The problem is being tracked by the Tk 
project here:

https://core.tcl.tk/tk/tktview?name=53f7a1b553

The problem affects current and recent third-party Tk 8.5.x releases, such as 
the ActiveTcl 8.5.15 recommended for use with current python.org 3.3.2 and 
2.7.5 installers. It also affects the Built-in 8.5.x Tcl/Tk included with 
pre-release python.org 3.4.x installers.  It appears that the problem does not 
affect the Apple Tk 8.5.9 shipped with OS X 10.9, which is used by the system 
Pythons included in OS X 10.9.  However, as in recent previous OS X releases, 
the Apple 8.5.9 Tk has serious problems so its use is not recommended: see 
http://www.python.org/download/mac/tcltk/ for more information.

This issue will be updated as solutions become available.  In the meantime, 
there are some workarounds:

1. Run Tkinter applications in 32-bit mode.  If you are using Python 2.7.x, 
3.2.x, 3.3.x, or 3.4.x from one of the python.org Mac OS X 64-bit/32-bit 
x86-64/i386 Installers, the easiest way to do this is to append -32 to the 
python command name:

/usr/local/bin/python3.4   -  /usr/local/bin/python3.4-32
/usr/local/bin/python3.3   -  /usr/local/bin/python3.3-32
/usr/local/bin/python2.7   -  /usr/local/bin/python2.7-32

If you are using a Python from a python.org Mac OS X 32-bit i386/PPC 
Installer, you will not see this problem; but keep in mind that those Pythons 
are linked with Tcl/Tk 8.4 for compatibility with older OS X releases.

2. If you launch IDLE from a 64-bit-capable installation by double-clicking on 
its icon in the 10.9 Finder, you may see this problem. (Due to a quirk, IDLE 
2.7 launched this way may not be affected.)  You can force IDLE 3.x to run in 
32-bit mode by launching it from a Terminal window instead of double-clicking.  
For Python 3.x, try

/usr/local/bin/python3.3-32 -m idlelib

/usr/local/bin/python3.4-32 -m idlelib

For Python 2.7.x, if you need to launch from the command line rather than 
double-clicking, try:

/usr/local/bin/python2.7-32 /usr/local/bin/idle2.7

--
assignee: ned.deily
components: IDLE, Macintosh, Tkinter
messages: 201093
nosy: ned.deily
priority: normal
severity: normal
status: open
title: Tkinter apps including IDLE may not display properly on OS X 10.9 
Mavericks
type: behavior
versions: Python 2.7, Python 3.3, Python 3.4

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



[issue19374] Segmentation fault: 11 with String.split

2013-10-24 Thread Bugra Cakir

New submission from Bugra Cakir:

Can be reproduced on Mac OS X. Stock Python 2.7.5 setup has been installed on a 
Mac OS X.

Python 2.7.5 (v2.7.5:ab05e7dd2788, May 13 2013, 13:18:45)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type help, copyright, credits or license for more information.
 s = $RMC;12;234;523
 s.split($)

Segmentation fault: 11

--
components: Interpreter Core
files: segfault11.rtf
messages: 201094
nosy: xentnex
priority: normal
severity: normal
status: open
title: Segmentation fault: 11 with String.split
versions: Python 2.7
Added file: http://bugs.python.org/file32325/segfault11.rtf

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



[issue19374] Segmentation fault: 11 with String.split

2013-10-24 Thread Ned Deily

Ned Deily added the comment:

Presumably you are running on OS X 10.9 Mavericks.  If so, this is a duplicate 
of Issue18458.  Please see the available workaround documented there until 
Python 2.7.6 is released.

--
nosy: +ned.deily
resolution:  - duplicate
stage:  - committed/rejected
status: open - closed
superseder:  - interactive interpreter crashes and test_readline fails on OS X 
10.9 Mavericks due to libedit update

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



[issue16113] SHA-3 (Keccak) support may need to be removed before 3.4

2013-10-24 Thread Mark Lawrence

Mark Lawrence added the comment:

This strikes me as a rather unusual case.  How about discuss it on python-dev, 
come to an agreement and document the process for this type of issue somewhere 
for future reference?  Or is that simply OTT?

--
nosy: +BreamoreBoy

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



[issue16113] SHA-3 (Keccak) support may need to be removed before 3.4

2013-10-24 Thread Michele OrrĂ¹

Changes by Michele OrrĂ¹ maker...@gmail.com:


--
nosy:  -maker

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



[issue19358] Integrate Argument Clinic into CPython build

2013-10-24 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Well, why is clinic 3.3 only? It would be slightly easier if it accepted any 
python3 executable.

--

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



[issue18306] os.stat gives exception for Windows junctions in v3.3

2013-10-24 Thread Tim Golden

Tim Golden added the comment:

Just revisited this to see if I could close off. One thing occurred to me which 
should have come up before: this situation will be aggravated by WOW64 file 
redirection. 

If I run 64-bit Python on 64-bit Windows I can successfully stat links in 
%windir%\system32 under 3.4 and 3.3. If I run 32-bit Python on 64-bit Windows, 
I get the error you describe because Windows will silently redirect the 32-bit 
Python process towards %windir%\SysWow64 where the junction (or, possibly, its 
target) does not exist.

Given that I'm able to stat %windir%\system32 junctions on both versions, I'm 
going to close this as works-for-me. I think there's a case for a 
bigger-picture look at the resolution of reparse points across the stdlib but 
that would have to be its own issue.

--
assignee:  - tim.golden
resolution:  - works for me
stage: test needed - committed/rejected
status: open - closed

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



[issue19358] Integrate Argument Clinic into CPython build

2013-10-24 Thread STINNER Victor

STINNER Victor added the comment:

 Well, I don't really know how to do it. You'd have to have a step that 
 somehow scans for .c files in the source tree, looks for clinic headers and 
 compute whether they're outdated?

Does it really need to be automated? We may only regenerate clinic things after 
a fresh configure (uncompress tarball, rnu configure, make). Or explicitly 
using a special command, ex: make clinic (which would only regenerate clinic 
things).

(I didn't check how clinic works, so I'm maybe saying something stupid.)

--
nosy: +haypo

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



[issue19358] Integrate Argument Clinic into CPython build

2013-10-24 Thread Antoine Pitrou

Antoine Pitrou added the comment:

  Well, I don't really know how to do it. You'd have to have a step
  that somehow scans for .c files in the source tree, looks for
  clinic headers and compute whether they're outdated?
 
 Does it really need to be automated? We may only regenerate clinic
 things after a fresh configure (uncompress tarball, rnu configure,
 make). Or explicitly using a special command, ex: make clinic
 (which would only regenerate clinic things).

make clinic may be a good compromise indeed.

--

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



[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2013-10-24 Thread pokulo

pokulo added the comment:

uning python 3.3 mingw4.8 both -std=gnu++0x and -std=c++11 cause still the same 
error.

--
nosy: +pokulo
versions: +Python 3.3 -Python 2.7

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



[issue19273] Update PCbuild/readme.txt

2013-10-24 Thread Tim Golden

Tim Golden added the comment:

I've looked this over and, basically, +1. We could argue the toss back and 
forth over changes, but I think the changes do the right amount of 
cruft-clearing and avoid the danger of being a mere reflection of one person's 
aesthetic choices over another's.

If no-one objects, I propose to commit this in a day or two.

--
assignee: docs@python - tim.golden

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



[issue19375] Deprecate site-python in site.py

2013-10-24 Thread Antoine Pitrou

New submission from Antoine Pitrou:

I suggest deprecating the site-python feature from site.py, as proposed by 
Guido on python-dev:
https://mail.python.org/pipermail/python-dev/2013-October/129820.html

- if a site-python directory is detected and added from site.py, a 
DeprecationWarning should be emitted
- the site.py docs should mention the deprecation

--
components: Library (Lib)
messages: 201103
nosy: christian.heimes, loewis, pitrou
priority: normal
severity: normal
status: open
title: Deprecate site-python in site.py
type: enhancement
versions: Python 3.4

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



[issue19375] Deprecate site-python in site.py

2013-10-24 Thread STINNER Victor

STINNER Victor added the comment:

Guido wrote I suggest that we remove that feature. (People who want it can 
always patch up their own $PYTHONPATH.). It's different than deprecating the 
feature :-)

I didn't know the feature before you proposed to remove it. Is the site-python 
thing used in the wild? I never see any OS relying on it.

--
nosy: +haypo

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



[issue19331] Revise PEP 8 recommendation for class names

2013-10-24 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 In cases where inheritance is not encouraged and it is judged to improve
 readability at the point of use, the naming convention for callables
 (lower_case_with_underscores) may be used instead. This is an indication
 that the type is intended primarily for use as is, rather than through
 inheritance (although subclassing is still permitted).

I don't think this wording is appropriate.

As soon as the thing is documented as a *type* (i.e. something you call to 
get instances that have a specific interface - methods, etc.), then IMO it 
should follow the naming scheme for classes.
Only when the thing is not documented as a type but as a convenience callable 
(for example a context manager) is it reasonable to follow the naming scheme 
for functions.

In other words, this has nothing to do with subclassing.

--

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



[issue19367] IDLE wont open

2013-10-24 Thread Arjit Srivastava

Arjit Srivastava added the comment:

Hi MrE.Merry,


There may be a file clashing with the normal python files. 

I guess, you could take a look into your Python directory, and see if you have 
.py file which has a name of another python module/keyword, causing it to 
conflict with the normal module in python. Remove that/those files, or move 
that/those files to some other directory, and see if IDLE starts working for 
you again. I would suggest you look in your main python directory and see if 
there are any .py files that you could move to different places.

Or, simply, you can cut all files with .py extension, paste them in a place 
different from the os path. Run the IDLE again.

--
nosy: +oldschoolburke

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



[issue15792] Fix compiler options for x64 builds on Windows

2013-10-24 Thread Tim Golden

Tim Golden added the comment:

Retargetted patch against current tip. If no-one objects I'll commit this in 
the next day or two.

--
assignee:  - tim.golden
Added file: http://bugs.python.org/file32326/pcbuild.diff.2

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



[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2013-10-24 Thread Tim Golden

Changes by Tim Golden m...@timgolden.me.uk:


--
nosy:  -tim.golden

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



[issue6839] zipfile can't extract file

2013-10-24 Thread Tim Golden

Changes by Tim Golden m...@timgolden.me.uk:


--
nosy:  -tim.golden

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



[issue14112] tutorial intro talks of shallow copy concept without explanation

2013-10-24 Thread Tim Golden

Changes by Tim Golden m...@timgolden.me.uk:


--
nosy:  -tim.golden

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



[issue6335] Add support for mingw

2013-10-24 Thread Tim Golden

Changes by Tim Golden m...@timgolden.me.uk:


--
nosy:  -tim.golden

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



[issue2889] curses for windows (alternative patch)

2013-10-24 Thread Tim Golden

Changes by Tim Golden m...@timgolden.me.uk:


--
nosy:  -tim.golden

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



[issue6672] Add Mingw recognition to pyport.h to allow building extensions

2013-10-24 Thread Tim Golden

Changes by Tim Golden m...@timgolden.me.uk:


--
nosy:  -tim.golden

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



[issue16472] Distutils+mingw links agains msvcr90, while python27.dll is linked agains msvcrt

2013-10-24 Thread Tim Golden

Changes by Tim Golden m...@timgolden.me.uk:


--
nosy:  -tim.golden

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



[issue19376] datetime.datetime.strptime without a year fails on Feb 29

2013-10-24 Thread Matthew Earl

New submission from Matthew Earl:

datetime.datetime.strptime() without a year fails on Feb 29 with:

 datetime.datetime.strptime(Feb 29, %b %d)
Traceback (most recent call last):
  File stdin, line 1, in module
  File /auto/ensoft-sjc/thirdparty/lib/python3.3/_strptime.py, line 511, in 
_strptime_datetime
return cls(*args)
ValueError: day is out of range for month

This is because without a year specified the year is assumed to be 1900, which 
is not a leap year. The underlying _strptime._strptime() function has some 
munging such that it doesn't itself fail (see #14157):

 _strptime._strptime(Feb 29, %b %d)
((1900, 2, 29, 0, 0, 0, 0, 60, -1, None, None), 0)

...however datetime.datetime.__init__() is called with this tuple as *args, 
causing the validation failure.

--
components: Library (Lib)
messages: 201108
nosy: Arfrever, Martin.Morrison, Matthew.Earl, belopolsky, haypo, hynek, 
pconnell, pitrou, swalker
priority: normal
severity: normal
status: open
title: datetime.datetime.strptime without a year fails on Feb 29
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3

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



[issue10179] os.stat fails on mapped network drive

2013-10-24 Thread Tim Golden

Tim Golden added the comment:

Just housekeeping some Windows calls: Antoine, your last comment suggests that 
this is no longer an issue. I don't have a VirtualBox install to test, so can 
you confirm whether this can be closed?

--

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



[issue949667] setblocking() method on file objects

2013-10-24 Thread Tim Golden

Changes by Tim Golden m...@timgolden.me.uk:


--
nosy:  -tim.golden

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



[issue19375] Deprecate site-python in site.py

2013-10-24 Thread Barry A. Warsaw

Changes by Barry A. Warsaw ba...@python.org:


--
nosy: +barry

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



[issue10179] os.stat fails on mapped network drive

2013-10-24 Thread Antoine Pitrou

Antoine Pitrou added the comment:

I don't know, I have stopped using VirtualBox here. Suggest closing.

--

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



[issue10179] os.stat fails on mapped network drive

2013-10-24 Thread Tim Golden

Changes by Tim Golden m...@timgolden.me.uk:


--
status: open - closed

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



[issue10179] os.stat fails on mapped network drive

2013-10-24 Thread Tim Golden

Changes by Tim Golden m...@timgolden.me.uk:


--
resolution:  - out of date
stage:  - committed/rejected

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



[issue4331] Add functools.partialmethod

2013-10-24 Thread Nick Coghlan

Nick Coghlan added the comment:

To clarify the current state of this:

- I'm still in favour of adding this feature for Python 3.4
- a suitable patch is still needed, as the currently attached patches modify 
the existing functools.partial object, rather than adding a separate 
partialmethod API
- a Python implementation would be fine

The following prototype should work as a starting point to be elaborated into a 
full patch with docs and tests:

class partialmethod(functools.partial):
def __get__(self, obj, cls):
if obj is None:
return self
return functools.partial(self.func,
 *((obj,) + self.args),
 **self.keywords)
def __call__(*args, **kwds):
self, *args = args
call_kwds = {}
call_kwds.update(self.keywords)
call_kwds.update(kwds)
return self.func(self,
 *(self.args + args),
 **call_kwds)

class C:
def example(self, *args, **kwds):
print(self, args, kwds)
fails = functools.partial(example, 1, 2, 3, x=1)
works = partialmethod(example, 1, 2, 3, x=1)

 C().fails()
1 (2, 3) {'x': 1}
 C().works()
__main__.C object at 0x7f91cefeea90 (1, 2, 3) {'x': 1}
 C().fails(4, 5, 6)
1 (2, 3, 4, 5, 6) {'x': 1}
 C().works(4, 5, 6)
__main__.C object at 0x7f91cefeea10 (1, 2, 3, 4, 5, 6) {'x': 1}

--
stage:  - needs patch

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



[issue19331] Revise PEP 8 recommendation for class names

2013-10-24 Thread Nick Coghlan

Nick Coghlan added the comment:

collections.defaultdict, collections.deque, array.array and many of the 
builtins suggest the rule isn't that simple (although other examples like 
Decimal, Fraction, OrderedDict, Counter and ChainMap suggest my guideline is 
also wrong).

The main thing I want is to be able to provide and document attributes on 
contextlib.suppress and contextlib.redirect_stdio without violating PEP 8.

--

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



[issue19281] add __objclass__ to the docs

2013-10-24 Thread Nick Coghlan

Nick Coghlan added the comment:

Changing the order a bit, perhaps something like this in the data model section:

__objclass__: Interpreted by the inspect module as specifying the class where 
this object was defined (setting this appropriately can assist in runtime 
introspection of dynamic class attributes). For callables, may indicate that an 
instance of the given type (or a subclass) is expected or required as the first 
positional argument (for example, CPython sets this for unbound methods that 
are implemented in C rather than being normal Python functions).

Perhaps with a cross-reference from the classification function in inspect?

--

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



[issue19376] datetime.datetime.strptime without a year fails on Feb 29

2013-10-24 Thread STINNER Victor

STINNER Victor added the comment:

I don't think that the issue can be called a bug. If we pick another year (ex: 
1904), you cannot compare two datetimes anymore:
This solution has some very undesirable properties - namely that Mar 1st is 
now less than Feb 29th!
http://bugs.python.org/issue14157#msg160637

If you want to handle Feb 29, add an explicit year.

This issue is maybe a documentation issue: datetime.datetime.strptime() should 
warn users that calling datetime.datetime.strptime() without year may fail for 
Feb 29.

--

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



[issue949667] setblocking() method on file objects

2013-10-24 Thread STINNER Victor

STINNER Victor added the comment:

There is a real need of non-blocking operation, but I now think that adding a 
set_blocking() method is not the right solution. First, as said by 
Charles-Francois: O_NONBLOCK flag has no effect on regular files. Second, there 
is no portable way to declare a file as non blocking: as said by Tim, it is 
complelty different on Windows (I/O Completion ports).

The asyncio module has been merged into Python 3.4: you can now use it to 
access a file asynchroniously. I don't think that the asyncio is complete for 
your use case, but if something should done: it is in this module, only in this 
module, not the API of the io.FileIO class.

asyncio can be used to watch pipes of a subprocess asynchroniously.

--
resolution:  - invalid
status: open - closed

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



[issue17202] Add .bat line to .hgeol

2013-10-24 Thread Tim Golden

Tim Golden added the comment:

I'm running Win7 and have the same problem, with a fresh checkout and the eol 
extension disabled. The attached (updated) patch does solve the issue. I can't 
see any reason not to apply it, even if it's not needed in many cases.

--
Added file: http://bugs.python.org/file32327/batch_eol_fix.diff.2

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



[issue19331] Revise PEP 8 recommendation for class names

2013-10-24 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 collections.defaultdict, collections.deque, array.array and many of
 the builtins suggest the rule isn't that simple (although other
 examples like Decimal, Fraction, OrderedDict, Counter and ChainMap
 suggest my guideline is also wrong).

AFAIK, they are simply old enough to predate the rule or its
wide-spread acceptance. There *is* an exception for builtins
(bytearray and memoryview are recent enough), but most recent
types use CamelCase.

The bottom line, though, is that it's unrelated to subclassing,
therefore that particular piece of explanation shouldn't land
in PEP 8 :-)

--

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



[issue949667] setblocking() method on file objects

2013-10-24 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 There is a real need of non-blocking operation, but I now think that
 adding a set_blocking() method is not the right solution. First, as
 said by Charles-Francois: O_NONBLOCK flag has no effect on regular
 files. Second, there is no portable way to declare a file as non
 blocking: as said by Tim, it is complelty different on Windows (I/O
 Completion ports).

That it's not portable is actually a good reason to add a helper function
or method.

--

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



[issue19331] Revise PEP 8 recommendation for class names

2013-10-24 Thread Nick Coghlan

Nick Coghlan added the comment:

Documenting it as a callable is a pretty strong hint that it shouldn't be 
subclassed, but I agree my wording above is wrong. Next attempt (leaving out 
the mention of leading underscores, since that is covered elsewhere):

=
Class Names
---

Class names should normally use the CapWords convention.

The naming convention for functions may be used instead in cases where the 
interface is documented and used primarily as a callable.

Note that there is a separate convention for builtin names: most builtin names 
are single words (or two words run together), with the CapWords convention used 
only for exception names and builtin constants.
=

I initially had the following appended to the second paragraph: ... , and 
instances expose no public mutable attributes or instance methods (but may 
provide read-only data attributes, alternative constructors and appropriate 
special methods).

The longer phrasing was designed to explicitly cover 
itertools.chain.from_iterable, contextlib.redirect_stdio.target and 
contextlib.suppress.exceptions, but I don't think that level of detail is 
necessary.

--

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



[issue18221] abspath strips trailing spaces on win32

2013-10-24 Thread Tim Golden

Changes by Tim Golden m...@timgolden.me.uk:


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

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



[issue18221] abspath strips trailing spaces on win32

2013-10-24 Thread Tim Golden

Tim Golden added the comment:

I'm going to close this as won't fix: the underlying implementation is simply 
calling GetFullPathName and removal of trailing spaces doesn't seem too 
surprising a result. It is possible to manipulate such files using Windows' 
special \\?\C:\... syntax.

While I admit this could catch you out if you were trying to nail an 
illegal-but-existent filename, we try not to put warnings in the docs for every 
cornercase lest they become cluttered.

--

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



[issue16632] Enable DEP and ASLR

2013-10-24 Thread Tim Golden

Changes by Tim Golden m...@timgolden.me.uk:


--
nosy:  -tim.golden

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



[issue19331] Revise PEP 8 recommendation for class names

2013-10-24 Thread Paul Moore

Paul Moore added the comment:

I'm in favour of keeping it simple - use your common sense should be a 
general guideline here (even though I know people's tastes differ, and that can 
be a source of endless debate :-))

--

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



[issue16632] Enable DEP and ASLR

2013-10-24 Thread STINNER Victor

STINNER Victor added the comment:

@Crys: ping?

--

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



[issue16632] Enable DEP and ASLR

2013-10-24 Thread Christian Heimes

Christian Heimes added the comment:

I'll look in this next time my Windows VM is running.

--
assignee:  - christian.heimes

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



[issue17916] Provide dis.Bytecode based equivalent of dis.distb

2013-10-24 Thread Claudiu.Popa

Claudiu.Popa added the comment:

Nick, could you review this, please? It would be nice if we can flesh it out 
and add it to 3.4.

--

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



[issue14255] tempfile.gettempdir() didn't return the path with correct case.

2013-10-24 Thread Tim Golden

Tim Golden added the comment:

normpath doesn't really buy anything here as abspath already has the same 
effect (plus more). Patch attach removes normcase|path leaving only abspath.

--

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



[issue14255] tempfile.gettempdir() didn't return the path with correct case.

2013-10-24 Thread Tim Golden

Tim Golden added the comment:

If no-one objects, I'll commit in a day or two.

--
Added file: http://bugs.python.org/file32328/issue14255.diff

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



[issue19331] Revise PEP 8 recommendation for class names

2013-10-24 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:

I always prefer to keep PEP 8 guidelines as succinct as possible.  I've looked 
over Ethan's patch and the other changes suggested in comments and come up with 
what I think is a simple patch to improve the guidelines.  I don't think we 
need to go into a lot of detail here, since the primary goal of the change is 
to relax the constraints to allow the changes in contextlib to not violate PEP 
8.

--
Added file: http://bugs.python.org/file32329/issue19331-barry.diff

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



[issue19376] datetime.datetime.strptime without a year fails on Feb 29

2013-10-24 Thread Brett Cannon

Brett Cannon added the comment:

I agree with Victor: we should document that proper Feb 29/leap year support 
requires a specified year, else constantly accepting Feb 29 as valid would lead 
to more errors than fix.

--
nosy: +brett.cannon

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



[issue19377] Backport SVG mime type to Python 2

2013-10-24 Thread anatoly techtonik

New submission from anatoly techtonik:

A request to backport issue10730 commit to Python 2.x
Why? Google Client API uses mimetype module to detect file types when uploading 
to Google Drive, and because SVG is missing, it can not be edited after 
uploading.

--
components: Library (Lib)
messages: 201130
nosy: techtonik
priority: normal
severity: normal
status: open
title: Backport SVG mime type to Python 2
versions: Python 2.6, Python 2.7

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



[issue19378] Rename line_offset parameter in dis.get_instructions to first_line

2013-10-24 Thread Nick Coghlan

New submission from Nick Coghlan:

The line_offset parameter in dis.get_instructions is the line number of the 
first line in the source file: 
http://docs.python.org/dev/library/dis#dis.get_instructions

Calling this an offset is a little confusing, since offset in the dis docs 
almost always refers to an instruction offset. Issue 17916 is likely to make 
this worse, since that will probably involve new last_offset and 
current_offset parameters to other APIs.

Renaming the parameter to first_line (since it sets the line number reported 
for the first line in the code object when iterating) should help make this 
less confusing.

--
messages: 201131
nosy: ncoghlan
priority: normal
severity: normal
status: open
title: Rename line_offset parameter in dis.get_instructions to first_line

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



[issue18458] interactive interpreter crashes and test_readline fails on OS X 10.9 Mavericks due to libedit update

2013-10-24 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:

Does this affect 2.6?  Is there a patch we need to get into 2.6.9 final?

--
nosy: +barry

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



[issue19377] Backport SVG mime type to Python 2

2013-10-24 Thread Christian Heimes

Christian Heimes added the comment:

That's against our policy. We don't add new features to stable releases. Users 
of the Google Client API can easily work around the issue and register their 
own mimetypes.

--
nosy: +christian.heimes
resolution:  - wont fix
stage:  - committed/rejected
status: open - closed
type:  - enhancement

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



[issue17916] Provide dis.Bytecode based equivalent of dis.distb

2013-10-24 Thread Nick Coghlan

Nick Coghlan added the comment:

It's not quite that simple - the instruction responsible for the exception also 
needs to be recorded, and Bytecode doesn't currently allow for that (look at 
the way the lasti arg to disassemble is used in disttb, and then how that 
gets passed to the mark_as_current flag in Instruction._disassemble by 
_disassemble_bytes).

So, on reflection, I think a TracebackBytecode class may be a better idea, 
exposing bytecode and last_offset attributes.

Rather than iteration just producing instructions, it would produce 
(instruction, is_current) 2-tuples, and display_code would call through to 
self.bytecode.display_code(self.last_offset) (there would be no show_info() 
or info() methods on TracebackBytecode).

Bytecode.display_code would gain a new current_offset parameter, which it 
would pass through to _disassemble_bytes as the lasti parameter.

Reviewing this also made me realise line_offset in dis.get_instructions is 
misnamed - see issue 19378.

--
dependencies: +Rename line_offset parameter in dis.get_instructions to 
first_line

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



[issue19376] document that strptime() does not support the Feb 29 if the format does not contain the year

2013-10-24 Thread STINNER Victor

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


--
assignee:  - docs@python
components: +Documentation
nosy: +docs@python
title: datetime.datetime.strptime without a year fails on Feb 29 - document 
that strptime() does not support the Feb 29 if the format does not contain the 
year

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



[issue19331] Revise PEP 8 recommendation for class names

2013-10-24 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 I always prefer to keep PEP 8 guidelines as succinct as possible.
  I've looked over Ethan's patch and the other changes suggested in
 comments and come up with what I think is a simple patch to improve
 the guidelines.

Have you read what I wrote? Inheritance should be left out of it.

--

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



[issue19331] Revise PEP 8 recommendation for class names

2013-10-24 Thread Antoine Pitrou

Antoine Pitrou added the comment:

-1 on Barry's wording and +1 on Nick's wording in msg201119.

--

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



[issue19331] Revise PEP 8 recommendation for class names

2013-10-24 Thread Nick Coghlan

Nick Coghlan added the comment:

Barry, Antoine convinced me that my wording from earlier was both inaccurate 
and overly complicated. I'm happy with the simplified version just above Paul's 
last comment, though, so combining that with the earlier part of your patch 
looks promising to me.

--

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



[issue19376] document that strptime() does not support the Feb 29 if the format does not contain the year

2013-10-24 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Note: the actual explanation is that Feb 29th doesn't exist in *1900* which is 
the default year in strptime(). The same error happens if you ask for Feb 30 
or Apr 31, it has nothing to do with leap years specifically.

In other words, the documentation looks sufficient to me as-is, and adding 
special wording for this would only make it longer than it should be.

--
status: open - pending

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



[issue19377] Backport SVG mime type to Python 2

2013-10-24 Thread anatoly techtonik

anatoly techtonik added the comment:

I am not sure that policy defines anything related to datasets bundled with 
Python. Even when try to adopt policy reading to this case, it doesn't look 
like a feature, but a bug fix.

SVG is a registered MIME type http://www.w3.org/TR/SVG/mimereg.html, SVG is the 
most popular (the only one?) open source format for vector graphics, which 
should be present in Python database, but it isn't.

I don't know what do you mean by work around. Users don't know that the 
source of the bug is missing information from mimetypes package.

--
status: closed - open

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



[issue19376] document that strptime() does not support the Feb 29 if the format does not contain the year

2013-10-24 Thread STINNER Victor

STINNER Victor added the comment:

 In other words, the documentation looks sufficient to me as-is, and adding 
 special wording for this would only make it longer than it should be.

Adding a note would not hurt.

--
status: pending - open

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



[issue13234] os.listdir breaks with literal paths

2013-10-24 Thread Tim Golden

Tim Golden added the comment:

Santoso Wijaya: sorry for the delay. If you'd like to retarget your patch 
against the tip, I'm happy to apply. At this stage, 3.3 and 3.4 seem the 
appropriate branches.

--
assignee:  - tim.golden
versions:  -Python 2.7, Python 3.2

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



[issue14208] No way to recover original argv with python -m

2013-10-24 Thread Tim Golden

Changes by Tim Golden m...@timgolden.me.uk:


--
nosy:  -tim.golden

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



[issue16353] add function to os module for getting path to default shell

2013-10-24 Thread Tim Golden

Changes by Tim Golden m...@timgolden.me.uk:


--
nosy:  -tim.golden

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



[issue18199] Windows: support path longer than 260 bytes using \\?\ prefix

2013-10-24 Thread Tim Golden

Changes by Tim Golden m...@timgolden.me.uk:


--
nosy:  -tim.golden

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



[issue19377] Backport SVG mime type to Python 2

2013-10-24 Thread Christian Heimes

Christian Heimes added the comment:

It should be obvious that new mimetype == new feature. It doesn't matter if the 
type is popular or not.

--
status: open - closed

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



[issue14027] Add pysetup script for Windows

2013-10-24 Thread Tim Golden

Changes by Tim Golden m...@timgolden.me.uk:


--
nosy:  -tim.golden

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



[issue4905] Use INVALID_FILE_ATTRIBUTES instead of magic numbers

2013-10-24 Thread Tim Golden

Changes by Tim Golden m...@timgolden.me.uk:


--
assignee:  - tim.golden

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



[issue4905] Use INVALID_FILE_ATTRIBUTES instead of magic numbers

2013-10-24 Thread Tim Golden

Changes by Tim Golden m...@timgolden.me.uk:


--
versions: +Python 3.4 -Python 3.2

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



[issue19294] test_asyncio fails intermittently on OS X 10.4

2013-10-24 Thread Guido van Rossum

Guido van Rossum added the comment:

I revived my ancient PowerBook G4 just to get to the bottom of this.

The long and short of the issue seems to be that when subprocess.Popen() closes 
the *read* end of the stdin pipe, fstat() on the *write* end starts failing 
with EBADF. The exact line where the transition happens is this (aroun 
subprocess.py#1375):

if p2cread != -1 and p2cwrite != -1 and p2cread != devnull_fd:
os.close(p2cread)

This is clearly a platform bug. I also verified that the child process is still 
running.

Now I can't reproduce this *without* a fork+exec in the middle, so it may be 
that there's something magical that's done by the _posixsubprocess.fork_exec() 
call affecting the pipe, but before the above os.close() call the fstat() call 
definitely reports success, so the closing must be happening as a side effect 
of closing the other end. I'm sure there's someone at Apple with the kernel 
source code who can explain this, but I think we've done our due diligence.

That switching to a socketpair fixed the issue suggests that the kernel bug is 
related to pipes specifically.

--

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



[issue19273] Update PCbuild/readme.txt

2013-10-24 Thread Zachary Ware

Zachary Ware added the comment:

Thanks, Tim!  There are a couple minor things I'd like to get into a new patch 
before it's committed (there are a couple tabs that should be spaces, and I'd 
like to add a very short note to the Sub-Projects header about sub-projects 
being contained in .vcxproj and .vcxproj.filters files).  I'll try to have a 
new patch up tonight or tomorrow.

--

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



[issue17762] platform.linux_distribution() should honor /etc/os-release

2013-10-24 Thread Andrei Dorian Duma

Andrei Dorian Duma added the comment:

I added a patch (my first patch!).

platform.linux_distribution() now first looks in /etc/os-release. If this file 
is not found, checking continues as before.

--
keywords: +patch
Added file: http://bugs.python.org/file32330/add_os_release_support.patch

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



[issue16632] Enable DEP and ASLR

2013-10-24 Thread Stefan Krah

Stefan Krah added the comment:

 I see a crash in test_capi and a couple of crashes
 in test_faulthandler but these don't seem to be related.

Perhaps the same as #9116.

--
nosy: +skrah

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



[issue14027] Add pysetup script for Windows

2013-10-24 Thread Antoine Pitrou

Antoine Pitrou added the comment:

distutils2 is dead, closing.

--
nosy: +pitrou
resolution:  - postponed
stage:  - committed/rejected
status: open - closed

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



[issue14255] tempfile.gettempdir() didn't return the path with correct case.

2013-10-24 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Could you perhaps add a test?

--
components:  -IO, Windows
stage: needs patch - patch review
versions: +Python 3.4 -Python 3.2

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



[issue15477] test_cmath failures on OS X 10.8

2013-10-24 Thread Mark Dickinson

Mark Dickinson added the comment:

Update: I just received this from Apple, for bug #12128251.


We believe this issue has been addressed in OS X Mavericks GM build 13A603. 
Please verify with this release, and update this report with your results.


--

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



[issue18959] Create a Superseded modules section in standard library ToC

2013-10-24 Thread Andrei Dorian Duma

Andrei Dorian Duma added the comment:

The patch adds a 'Deprecated Modules' heading in the library's ToC and moves 
'imp'  'optparse' to the new entry.

--
keywords: +patch
nosy: +andrei.duma
Added file: 
http://bugs.python.org/file32331/doc_add_a_deprecated_modules_heading.patch

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



[issue18959] Create a Superseded modules section in standard library ToC

2013-10-24 Thread Andrei Dorian Duma

Andrei Dorian Duma added the comment:

I changed 'Deprecated Modules' into 'Superseded Modules', as indicated by the 
issue title.

--
Added file: 
http://bugs.python.org/file32332/doc_add_a_deprecated_modules_heading2.patch

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



[issue19376] document that strptime() does not support the Feb 29 if the format does not contain the year

2013-10-24 Thread Matthew Earl

Matthew Earl added the comment:

Out of interest, what's the reason for accepting the time.strptime() version as 
a bug, but not datetime.datetime.strptime()? Is it that time.strptime() is 
meant to be a simple parsing from string to tuple (with minimal checks), 
whereas datetime.datetime.strptime() should represent an actual point in time, 
therefore extra validation is expected to occur?

If so I'm happy to either close or add a small note to the docs (I don't mind 
which.)

--

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



[issue17762] platform.linux_distribution() should honor /etc/os-release

2013-10-24 Thread Vajrasky Kok

Vajrasky Kok added the comment:

Hi Andrei Duma,

I have looked at your patch but have not tested it yet. But it seems to me that 
your patch is a little bit weak against the case where the file /etc/os-release 
is found, but not fully functional (either garbage, or only releases NAME 
information but not VERSION).

But again, I am not so sure we should really bit pedantic about this or not. 
Need to do some investigation.

--
nosy: +vajrasky

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



[issue19359] reversed() does not work with weakref.proxy of sequences

2013-10-24 Thread Raymond Hettinger

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


--
assignee:  - rhettinger

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



[issue19362] Documentation for len() fails to mention that it works on sets

2013-10-24 Thread Raymond Hettinger

Raymond Hettinger added the comment:

 Return the number of items of a container sounds 
 simple and accurate to me.

I agree this would be best.

--

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



[issue19363] Python 2.7's future_builtins.map is not compatible with Python 3's map

2013-10-24 Thread Raymond Hettinger

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


--
assignee:  - rhettinger
nosy: +rhettinger

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



[issue17762] platform.linux_distribution() should honor /etc/os-release

2013-10-24 Thread Marc-Andre Lemburg

Marc-Andre Lemburg added the comment:

On 24.10.2013 16:59, Andrei Dorian Duma wrote:
 
 I added a patch (my first patch!).
 
 platform.linux_distribution() now first looks in /etc/os-release. If this 
 file is not found, checking continues as before.

Looks good.

--

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



[issue19369] PyObject_LengthHint is slow

2013-10-24 Thread Raymond Hettinger

Raymond Hettinger added the comment:

 Here is a patch which uses _PyObject_HasLen. It has same performance
 but is much simpler.

+1 This will be a nice improvement.

--

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



[issue19332] Guard against changing dict during iteration

2013-10-24 Thread Raymond Hettinger

Raymond Hettinger added the comment:

I disagree with adding such unimportant code to the critical path.

--

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



[issue17400] ipaddress should make it easy to identify rfc6598 addresses

2013-10-24 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b9623fa5a0dd by Peter Moody in branch 'default':
#17400: correct handling of 100.64.0.0/10, fixing the docs and updating NEWS
http://hg.python.org/cpython/rev/b9623fa5a0dd

--

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



[issue19376] document that strptime() does not support the Feb 29 if the format does not contain the year

2013-10-24 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

 what's the reason for accepting the time.strptime()
 version as a bug, but not datetime.datetime.strptime()?

In case of time.strptime(), we have an option of returning (1900, 2, 29, ..) 
which while not being a valid date, is a valid (time)tuple:

 time.mktime((1900, 2, 29, 0, 0, 0, 0, 0, 0))
-2203873200.0

The time module treats 1900-02-29 as 1900-03-01:

 time.mktime((1900, 3, 1, 0, 0, 0, 0, 0, 0))
-2203873200.0


Datetime is stricter than that:

 datetime(1900, 2, 29)
Traceback (most recent call last):
  File stdin, line 1, in module
ValueError: day is out of range for month


There is no valid datetime value that can reasonably be returned from 
datetime.strptime('Feb 29', '%b %d').

--

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



[issue19377] Backport SVG mime type to Python 2

2013-10-24 Thread Marc-Andre Lemburg

Marc-Andre Lemburg added the comment:

Christian: I think adding MIME types falls under platform support and we do 
still add platform support to Python 2.7.

That said, the mimetypes module *does* use platform files for determining MIME 
types, so adding missing MIME types there will likely result in a more usable 
overall system :-)

In other words: the problem is not really in Python's module, which only 
provides a bare minimum of MIME types, but in the system setup of your system, 
Anatoly.

--
nosy: +lemburg

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



[issue19377] Backport SVG mime type to Python 2

2013-10-24 Thread Ezio Melotti

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


--
nosy: +r.david.murray

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



[issue17916] Provide dis.Bytecode based equivalent of dis.distb

2013-10-24 Thread Claudiu.Popa

Claudiu.Popa added the comment:

Here's the updated version according to your comments. Because there is no need 
for show_info() and info(), the current class is not a subclass of Bytecode (as 
I implied from your first message). After issue19378 is fixed, we could change 
the line_offset with something else in TracebackBytecode.__iter__.

--
Added file: http://bugs.python.org/file32333/dis_tb.patch

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



[issue13234] os.listdir breaks with literal paths

2013-10-24 Thread Santoso Wijaya

Santoso Wijaya added the comment:

Here you go.

--
Added file: http://bugs.python.org/file32334/issue13234_tip_refresh.patch

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



[issue16037] httplib: header parsing is unlimited

2013-10-24 Thread Jyrki Pulliainen

Jyrki Pulliainen added the comment:

Patch for py32 applies cleanly on 3.4 too, this should be good to go

--

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



[issue18199] Windows: support path longer than 260 bytes using \\?\ prefix

2013-10-24 Thread Santoso Wijaya

Changes by Santoso Wijaya santoso.wij...@gmail.com:


--
nosy: +santa4nt

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



[issue19327] re doesn't work with big charsets

2013-10-24 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d2bb0da45c93 by Serhiy Storchaka in branch '2.7':
Issue #19327: Fixed the working of regular expressions with too big charset.
http://hg.python.org/cpython/rev/d2bb0da45c93

New changeset 4431fa917f22 by Serhiy Storchaka in branch '3.3':
Issue #19327: Fixed the working of regular expressions with too big charset.
http://hg.python.org/cpython/rev/4431fa917f22

New changeset 10081a0ca4bd by Serhiy Storchaka in branch 'default':
Issue #19327: Fixed the working of regular expressions with too big charset.
http://hg.python.org/cpython/rev/10081a0ca4bd

--
nosy: +python-dev

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



[issue16041] poplib: unlimited readline() from connection

2013-10-24 Thread Jyrki Pulliainen

Jyrki Pulliainen added the comment:

Here's a max line lenght fix for 3.2 (applies on 3.4 too).

I wonder if _getlongresp should have some max length detection too for max 
length of a multiline response

--
Added file: http://bugs.python.org/file32335/issue16041_py32.patch

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



[issue19273] Update PCbuild/readme.txt

2013-10-24 Thread Zachary Ware

Zachary Ware added the comment:

Here's the new patch, a few tabs converted, a few trailing spaces removed, and 
one sentence added to the Sub-projects section description.

--
Added file: http://bugs.python.org/file32336/pcbuild_readme.v2.diff

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



[issue19329] Faster compiling of charset regexpes

2013-10-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is a more complex patch which optimizes charset compiling. It affects 
small charsets too. Big charsets now supports same optimizations as small 
charsets. Optimized bitmap now can be used even if the charset contains 
category items or non-bmp characters.

$ ./python -m timeit from sre_compile import compile; r = '[0-9]+'  
compile(r, 0)
Unpatched: 1000 loops, best of 3: 457 usec per loop
Patched: 1000 loops, best of 3: 368 usec per loop
$ ./python -m timeit from sre_compile import compile; r = '[ \t\n\r\v\f]+'  
compile(r, 0)
Unpatched: 1000 loops, best of 3: 490 usec per loop
Patched: 1000 loops, best of 3: 413 usec per loop
$ ./python -m timeit from sre_compile import compile; r = '[0-9A-Za-z_]+'  
compile(r, 0)
Unpatched: 1000 loops, best of 3: 760 usec per loop
Patched: 1000 loops, best of 3: 527 usec per loop
$ ./python -m timeit from sre_compile import compile; r = 
r'[^\ud800-\udfff]*'  compile(r, 0)
Unpatched: 100 loops, best of 3: 2.07 msec per loop
Patched: 1000 loops, best of 3: 1.44 msec per loop
$ ./python -m timeit from sre_compile import compile; r = 
'[\u0410-\u042f\u0430-\u043f\u0404\u0406\u0407\u0454\u0456\u0457\u0490\u0491]+'
  compile(r, 0)
Unpatched: 100 loops, best of 3: 8.24 msec per loop
Patched: 100 loops, best of 3: 2.13 msec per loop
$ ./python -m timeit from sre_compile import compile; r = '[%s]' % 
''.join(map(chr, range(256, 2**16, 255)))  compile(r, 0)
Unpatched: 10 loops, best of 3: 119 msec per loop
Patched: 10 loops, best of 3: 24.1 msec per loop

--
title: Faster compiling of big charset regexpes - Faster compiling of charset 
regexpes
Added file: http://bugs.python.org/file32337/re_optimize_charset.patch

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



  1   2   >