[issue14825] Interactive Shell vs Executed code

2012-05-16 Thread Marcelo Delgado

New submission from Marcelo Delgado marde...@gmail.com:

I have found inconsistency between running this code in the interactive shell 
and running it from a file:

Int. Shell:
n**0 ## n is a negative number
result: -1

File:
n**0 ## n is a negative number
result: 1

I am fairly new to Python, so I don't know what result should be the correct 
one, but if thit IS a mistake i would prefer the result of the Int. Shell :)

--
components: Regular Expressions
messages: 160806
nosy: Marcelo.Delgado, ezio.melotti, mrabarnett
priority: normal
severity: normal
status: open
title: Interactive Shell vs Executed code
type: behavior
versions: Python 3.3

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



[issue14825] Interactive Shell vs Executed code

2012-05-16 Thread Marcelo Delgado

Changes by Marcelo Delgado marde...@gmail.com:


--
components: +Interpreter Core -Regular Expressions

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



[issue14811] decoding_fgets() truncates long lines and fails with a SyntaxError(Non-UTF-8 code starting with...)

2012-05-16 Thread STINNER Victor

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

 Function decoding_fgets (Parser/tokenizer.c) reads line in buffer
 of fixed size 8192 (line truncated to size 8191) and then fails
 because line is cut in the middle of a multibyte UTF-8 character.

It looks like BUFSIZ is much smaller than 8192 on Windows: it's maybe only 1024 
bytes.

Attached patch detects when a line is truncated (longer than the internal 
buffer).

A better solution is maybe to reallocate the buffer if the string is longer 
than the buffer (write a universal fgets which allocates the buffer while the 
line is read). Most functions parsing Python source code uses a dynamic buffer. 
For example import module now reads the whole file content before parsing it 
(see FileLoader.get_data() in Lib/importlib/_bootstrap.py).

At least, we should use a longer buffer on Windows (ex: use 8192 on all 
platforms?).

I only found two functions parsing the a Python file line by line: 
PyRun_InteractiveOneFlags() and PyRun_FileExFlags(). There are many variant of 
these functions (ex: PyRun_InteractiveOne and PyRun_File). These functions are 
part of the C Python API and used by programs to execute Python code when 
Python is embeded in a program.

PS: As noticed by Serhiy Storchaka, the bug is not specific to Windows. It's 
just that the internal buffer is much smaller on Windows.

--
components: +Interpreter Core -Windows
keywords: +patch
nosy: +haypo
title: Syntax error on long UTF-8 lines - decoding_fgets() truncates long 
lines and fails with a SyntaxError(Non-UTF-8 code starting with...)
Added file: http://bugs.python.org/file25605/detect_truncate.patch

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



[issue14825] Interactive Shell vs Executed code

2012-05-16 Thread Mark Dickinson

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

It sounds like you're seeing the difference between this:

 n = -7
 n ** 0
1

and this:

 -7 ** 0
-1

This isn't a bug;  it's to do with how Python expressions are parsed:  in the 
second case, the expression is grouped as -(7 ** 0) rather than (-7) ** 0.

BTW, it's helpful to post exact code when filing a possible bug. :-)

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

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



[issue14674] Add link to RFC 4627 from json documentation

2012-05-16 Thread Chris Rebert

Changes by Chris Rebert pyb...@rebertia.com:


Removed file: http://bugs.python.org/file25592/json.rst.patch

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



[issue14674] Add link to RFC 4627 from json documentation

2012-05-16 Thread Chris Rebert

Changes by Chris Rebert pyb...@rebertia.com:


Added file: http://bugs.python.org/file25606/json.rst.patch

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



[issue14674] Add link to RFC 4627 from json documentation

2012-05-16 Thread Chris Rebert

Changes by Chris Rebert pyb...@rebertia.com:


Removed file: http://bugs.python.org/file25591/json.rst.patch

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



[issue14817] pkgutil.extend_path has no tests

2012-05-16 Thread Antoine Pitrou

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

This has broken all 3.x buildbots.

--
nosy: +pitrou

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



[issue14824] reprlib documentation references string module

2012-05-16 Thread Chris Rebert

Chris Rebert pyb...@rebertia.com added the comment:

Patch. Though I ponder whether the expression in question might be equivalent 
to simply:
type(obj).__name__.replace('_', ' ')

--
keywords: +patch
nosy: +cvrebert
Added file: http://bugs.python.org/file25607/reprlib.rst.patch

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



[issue14826] urllib2.urlopen fails to load URL

2012-05-16 Thread Wichert Akkerman

New submission from Wichert Akkerman wich...@wiggy.net:

There appears to be an odd networking issue with how urllib2 sends HTTP 
requests. Downloading an image from maw.liquifire.com gives an error:

$ python -c 'import urllib2 ; 
urllib2.urlopen(http://maw.liquifire.com/maw?set=image[2302.000.13314 
a]call=url[file:325x445])'
Traceback (most recent call last):
  File string, line 1, in module
  File /usr/lib/python2.7/urllib2.py, line 126, in urlopen
return _opener.open(url, data, timeout)
  File /usr/lib/python2.7/urllib2.py, line 400, in open
response = self._open(req, data)
  File /usr/lib/python2.7/urllib2.py, line 418, in _open
'_open', req)
  File /usr/lib/python2.7/urllib2.py, line 378, in _call_chain
result = func(*args)
  File /usr/lib/python2.7/urllib2.py, line 1207, in http_open
return self.do_open(httplib.HTTPConnection, req)
  File /usr/lib/python2.7/urllib2.py, line 1180, in do_open
r = h.getresponse(buffering=True)
  File /usr/lib/python2.7/httplib.py, line 1030, in getresponse
response.begin()
  File /usr/lib/python2.7/httplib.py, line 407, in begin
version, status, reason = self._read_status()
  File /usr/lib/python2.7/httplib.py, line 365, in _read_status
line = self.fp.readline()
  File /usr/lib/python2.7/socket.py, line 447, in readline
data = self._sock.recv(self._rbufsize)
socket.error: [Errno 104] Connection reset by peer

Downloading the same image using wget works fine:

$ wget 'http://maw.liquifire.com/maw?set=image[2302.000.13314 
a]call=url[file:325x445]' 
--2012-05-16 10:53:27--  
http://maw.liquifire.com/maw?set=image[2302.000.13314%20a]call=url[file:325x445]
Resolving maw.liquifire.com (maw.liquifire.com)... 184.169.78.6
Connecting to maw.liquifire.com (maw.liquifire.com)|184.169.78.6|:80... 
connected.
HTTP request sent, awaiting response... 200 OK
Length: 11393 (11K) [image/jpeg]
Saving to: `maw?set=image[2302.000.13314 a]call=url[file:325x445]'

100%[==] 11,393  --.-K/s   in 0.003s  

2012-05-16 10:53:27 (3.49 MB/s) - `maw?set=image[2302.000.13314 
a]call=url[file:325x445]' saved [11393/11393]

--
components: Library (Lib)
messages: 160811
nosy: wichert
priority: normal
severity: normal
status: open
title: urllib2.urlopen fails to load URL
versions: Python 2.7

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



[issue1602] windows console doesn't print or input Unicode

2012-05-16 Thread Glenn Linderman

Glenn Linderman v+pyt...@g.nevcal.com added the comment:

Has something incompatible changed between 3.2.2 and 3.2.3 with respect to this 
bug?

I have a program that had an earlier version of the workaround (Michael's 
original, I think), and it worked fine, then I upgraded from 3.2.2 to 3.2.3 due 
to testing for issue 14811 and then the old workaround started complaining 
about no attribute 'errors'.

So I grabbed unicode3.py, but it does the same thing:

AttributeError: 'UnicodeConsole' object has no attribute 'errors'

I have no clue how to fix this, other than going back to Python 3.2.2...

--

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



[issue1602] windows console doesn't print or input Unicode

2012-05-16 Thread Glenn Linderman

Glenn Linderman v+pyt...@g.nevcal.com added the comment:

Oh, and is this issues going to be fixed for 3.3, so we don't have to use the 
workaround in the future?

--

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



[issue11959] smtpd cannot be used without affecting global state

2012-05-16 Thread Vinay Sajip

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

 Well, other tests manage it even without using a private socket map.
 Leaving dangling sockets in the socket map could mean your code
 forgets to close them, for example.

This issue is not about getting test_logging to work in a particular way; 
test_logging is exercising SMTPHandler and (AFAIK) tidying up after itself, 
with no sockets left open.

When working on the test, I just noticed that smtpd forces use of the global 
socket map, which is not ideal (The fact that asyncore uses a global socket 
map is surely unfortunate - Giampaolo). Given that asyncore's design allows 
for a socket map to be passed in (at least in part - RDM's comment), ISTM that 
it should support this consistently, and also that smtpd should support this 
mode of use.

--

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



[issue11959] smtpd cannot be used without affecting global state

2012-05-16 Thread Antoine Pitrou

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

 Given that asyncore's design allows for a socket map to be passed in
 (at least in part - RDM's comment), ISTM that it should support this
 consistently, and also that smtpd should support this mode of use.

Well, I would argue that asyncore's design is thoroughly broken, and
passing a socket map is a poor kludge to avoid global state; in a
sophisticated event loop, the socket map wouldn't be the only piece of
state to pass around.
(look at twisted's reactors for a comparison)

--

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



[issue14809] Add HTTP status codes introduced by RFC 6585

2012-05-16 Thread Roundup Robot

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

New changeset 981aabe6ea2f by Hynek Schlawack in branch 'default':
#14809: Add HTTP status codes from RFC 6585 to http.server and http.client
http://hg.python.org/cpython/rev/981aabe6ea2f

--
nosy: +python-dev

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



[issue11959] smtpd cannot be used without affecting global state

2012-05-16 Thread Vinay Sajip

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


 Well, I would argue that asyncore's design is thoroughly broken, and

 passing a socket map is a poor kludge to avoid global state; in a
 sophisticated event loop, the socket map wouldn't be the only piece of
 state to pass around.


I don't disagree with you, but since it's there in the stdlib, there's no 
reason not to make incremental improvements involving small changes.

--

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



[issue14732] PEP 3121 Refactoring applied to _csv module

2012-05-16 Thread Roundup Robot

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

New changeset 2496602a56e5 by Antoine Pitrou in branch 'default':
Issue #14732: The _csv module now uses PEP 3121 module initialization.
http://hg.python.org/cpython/rev/2496602a56e5

--

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



[issue14732] PEP 3121 Refactoring applied to _csv module

2012-05-16 Thread Antoine Pitrou

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

Thanks for the updated patch, Robin. I have now committed it to the default 
branch.

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

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



[issue14773] fwalk breaks on dangling symlinks

2012-05-16 Thread Hynek Schlawack

Changes by Hynek Schlawack h...@ox.cx:


--
stage: commit review - committed/rejected
status: open - closed

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



[issue14809] Add HTTP status codes introduced by RFC 6585

2012-05-16 Thread Hynek Schlawack

Hynek Schlawack h...@ox.cx added the comment:

Thank you for your contribution to Python, EungJun!

Just two small remarks:

 - Please sign and submit the contributor form from 
http://www.python.org/psf/contrib/ . You'll get a nice star next to your name 
in return. :)
 - I have fixed the flow of one of the lines. It's no big deal, but pep8 asks 
for a max line length of 79 characters.

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

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



[issue14773] fwalk breaks on dangling symlinks

2012-05-16 Thread Hynek Schlawack

Changes by Hynek Schlawack h...@ox.cx:


--
resolution:  - fixed

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



[issue14827] IDLE crash when typing ^ character on Mac OS X

2012-05-16 Thread Julien Pecqueur

New submission from Julien Pecqueur jpe...@gmail.com:

IDLE crash when i type the character ^ (for example writing ê in a comment).

I have the crash only on Mac OS X (Mac OS X 64-bit/32-bit Installer (3.2.3) for 
Mac OS X 10.6 and 10.7).

I don't have this crash on Linux.

--
components: IDLE
messages: 160821
nosy: JPEC
priority: normal
severity: normal
status: open
title: IDLE crash when typing ^ character on Mac OS X
type: crash
versions: Python 3.2

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



[issue14828] itertools.groupby not working as expected

2012-05-16 Thread Jiba

New submission from Jiba jibal...@free.fr:

In some situation, itertools.groupby fails to group the objects, and produces 
several groups with the same key. For example, the following code :


from itertools import *

class P(object):
  def __init__(self, key):
self.key = key

p1 = P(1)
p2 = P(2)
p3 = P(1)

for key, ps in groupby([p1, p2, p3], lambda p: p.key):
  print group, key
  for p in ps:
print   - object, p


Produces the following result :

group 1
  - object __main__.P object at 0xb73d6acc
group 2
  - object __main__.P object at 0xb73d6aec
group 1
  - object __main__.P object at 0xb73d6b0c


While I would expect to have only a single group 1, e.g. something like :

group 1
  - object __main__.P object at 0xb73d6acc
  - object __main__.P object at 0xb73d6b0c
group 2
  - object __main__.P object at 0xb73d6aec


It seems that this bug also affects Python 3 (tested on Python 3.1.2)

--
components: Library (Lib)
messages: 160822
nosy: Jiba
priority: normal
severity: normal
status: open
title: itertools.groupby not working as expected
type: behavior
versions: Python 2.7

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



[issue14732] PEP 3121 Refactoring applied to _csv module

2012-05-16 Thread Antoine Pitrou

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

Robin, I forgot: could you please sign and send the contrib form at 
http://www.python.org/psf/contrib/ ?
It is not a copyright assignment, just a piece of paper that formally allows us 
to license your contribution for distribution with Python.

--

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



[issue14780] urllib.request could use the default CA store

2012-05-16 Thread Antoine Pitrou

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

 Something like this perhaps?

For example, yes. Now we need to find a way of testing this...

--
nosy: +orsenthil
title: SSL should use OpenSSL-defined default certificate store if ca_certs 
parameter is omitted - urllib.request could use the default CA store

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



[issue14828] itertools.groupby not working as expected

2012-05-16 Thread Petri Lehtinen

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

groupby() changes the group when the key changes in the input it iterates. If 
you want to have p1 and p3 to go to the same group, you need to sort the input 
by P.key first.

This is clearly documented, too:

The operation of groupby() is similar to the uniq filter in Unix.
It generates a break or new group every time the value of the key 
function changes (which is why it is usually necessary to have 
sorted the data using the same key function). That behavior differs
from SQL’s GROUP BY which aggregates common elements regardless of
their input order.

--
nosy: +petri.lehtinen
resolution:  - invalid
status: open - closed

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



[issue14816] compilation failed on Ubuntu shared buildbot

2012-05-16 Thread Antoine Pitrou

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

Fixed in 1ecd10260649.

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

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



[issue14813] Can't build under VS2008 anymore

2012-05-16 Thread Stefan Krah

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

Here's a patch. I can build win32 and Release|x64. However, the
executables immediately exit; this might be related to #14822.

--
keywords: +patch
Added file: http://bugs.python.org/file25608/vs-9.0.diff

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



[issue14822] Build unusable when compiled for Win 64-bit release

2012-05-16 Thread Stefan Krah

Changes by Stefan Krah stefan-use...@bytereef.org:


--
nosy: +skrah

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



[issue14828] itertools.groupby not working as expected

2012-05-16 Thread Jiba

Jiba jibal...@free.fr added the comment:

Ok, I understand.

However, in my initial problem, the sequence passed to groupby was a set, e.g. 
(modifying my previous example) :

   groupby(set([p1, p2, p3]), lambda p: p.key)

If I understand well how groupby() works, the result of a groupby performed on 
a set is unpredictable, since it depends of the order of the items when 
iterating over the set. Perhaps the behavior of groupby() should be modified 
for unsorted sequences, possibly not taking the order into account, or raising 
an error ?

--

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



[issue14828] itertools.groupby not working as expected

2012-05-16 Thread Petri Lehtinen

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

You're right, the result over a set would be unpredictable.

The point of the itertools module is to be able to a) cope with massive amounts 
of data and b) be a set of tools instead of complete solutions for all problems.

Because of both of the points above, groupby() doesn't load all the data into 
memory or attempt to sort the data by itself. Furthermore, there's no way for 
groupby() to know whether the iterable it's passed is going to yield sorted or 
unsorted data.

It's your responsibility to know whether the iterable you're passing is already 
sorted or not, and sort it first, if it's possible and there's a need to do so.

--

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



[issue14813] Can't build under VS2008 anymore

2012-05-16 Thread Stefan Krah

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

Regarding the VS 2010 build failure, using the cross tools builds
python_d.exe:

C:\Program Files (x86)\Microsoft Visual Studio 
10.0\VC\bin\x86_amd64\vcvarsx86_amd64.bat
msbuild /p:useenv=true pcbuild.sln /p:Configuration=Debug /p:Platform=x64

Again, the executables immediately exit (#14822 ?).

--

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



[issue14813] Can't build under VS2008 anymore

2012-05-16 Thread Antoine Pitrou

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

The patch doesn't apply here, line endings perhaps?

--

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



[issue14827] IDLE crash when typing ^ character on Mac OS X

2012-05-16 Thread Ramchandra Apte

Ramchandra Apte maniandra...@gmail.com added the comment:

Please run IDLE from the command line and send the output when it crashes. (If 
I knew Mac better I would tell you the precise instructions)

--
nosy: +ramchandra.apte

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



[issue14827] IDLE crash when typing ^ character on Mac OS X

2012-05-16 Thread Ramchandra Apte

Changes by Ramchandra Apte maniandra...@gmail.com:


--
assignee:  - ronaldoussoren
components: +Macintosh
nosy: +ronaldoussoren

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



[issue14827] IDLE crash when typing ^ character on Mac OS X

2012-05-16 Thread Julien Pecqueur

Julien Pecqueur jpe...@gmail.com added the comment:

I'll send the output this evening.

--

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



[issue14813] Can't build under VS2008 anymore

2012-05-16 Thread Stefan Krah

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

Probably line endings. It applies with cygwin's patch:

C:\Users\stefan\pydev\cpythonpatch -p1  vs-9.0.diff   

patching file PC/VS9.0/_bz2.vcproj  

patching file PC/VS9.0/_ctypes.vcproj
[...]

I'm uploading a dos version.

--
Added file: http://bugs.python.org/file25609/vs-9.0-dos.diff

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



[issue14813] Can't build under VS2008 anymore

2012-05-16 Thread Antoine Pitrou

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

 I'm uploading a dos version.

Still doesn't work. It may be because I'm doing all this in a Linux checkout 
without the hgeol extension enabled, though.

--

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



[issue14827] IDLE crash when typing ^ character on Mac OS X

2012-05-16 Thread Ronald Oussoren

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

Do you have a recent version of ActiveState's Tcl/Tk distribution installed?  

If you do not have this installed you ran into a known issue in Apple's copy of 
Tcl/Tk, see http://www.python.org/download/mac/tcltk/ for more information.

--

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



[issue14827] IDLE crash when typing ^ character on Mac OS X

2012-05-16 Thread Julien Pecqueur

Julien Pecqueur jpe...@gmail.com added the comment:

My system is an up to date OS X 10.7.
The Tcl/Tk package is the default (I haven't installed a specific version).
Should i need to install the ActiveState package ?

--

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



[issue14813] Can't build under VS2008 anymore

2012-05-16 Thread Stefan Krah

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

Hm, vs-9.0.diff applies here on Linux, too. A final try... :)

--
Added file: http://bugs.python.org/file25610/vs-9.0-linux.diff

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



[issue14813] Can't build under VS2008 anymore

2012-05-16 Thread Antoine Pitrou

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

 Hm, vs-9.0.diff applies here on Linux, too. A final try... :)

Works, thank you :-)

--

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



[issue14807] Move tarfile.filemode() into stat module

2012-05-16 Thread Antoine Pitrou

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

And there are test failures under Windows too :)

==
ERROR: test_link (test.test_stat.TestFilemode)
--
Traceback (most recent call last):
  File 
D:\cygwin\home\db3l\buildarea\3.x.bolen-windows\build\lib\test\test_stat.py, 
line 42, in test_link
os.symlink(os.getcwd(), TESTFN)
NotImplementedError: CreateSymbolicLinkW not found

==
FAIL: test_directory (test.test_stat.TestFilemode)
--
Traceback (most recent call last):
  File 
D:\cygwin\home\db3l\buildarea\3.x.bolen-windows\build\lib\test\test_stat.py, 
line 38, in test_directory
self.assertEqual(get_mode(), 'drwx--')
AssertionError: 'drwxrwxrwx' != 'drwx--'
- drwxrwxrwx
+ drwx--


==
FAIL: test_mode (test.test_stat.TestFilemode)
--
Traceback (most recent call last):
  File 
D:\cygwin\home\db3l\buildarea\3.x.bolen-windows\build\lib\test\test_stat.py, 
line 27, in test_mode
self.assertEqual(get_mode(), '-rwx--')
AssertionError: '-rw-rw-rw-' != '-rwx--'
- -rw-rw-rw-
+ -rwx--


http://www.python.org/dev/buildbot/all/builders/x86%20Windows7%203.x/builds/4962/steps/test/logs/stdio

--
status: closed - open

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



[issue14813] Can't build under VS2008 anymore

2012-05-16 Thread Antoine Pitrou

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

Both debug x64 and release x64 executables seem to work here, with latest tip.

--

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



[issue1635217] Add example of distutils setup() with requires argument

2012-05-16 Thread anatoly techtonik

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

You've nailed it. I think it is important to know that `requires` is unused. 
Still this parameter is already present in documentation and causes a lot of 
trouble (at first I thought there is a bug with pip).

Can we still have proper comment explaining the situation with a pointer to 
`install_requires` without any reference to setuptools, so that the latest 
documentation could actually be useful?

--

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



[issue14829] test_bisect failure under 64-bit Windows

2012-05-16 Thread Antoine Pitrou

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

Shows that we lack such a buildbot...

==
FAIL: test_large_range (test.test_bisect.TestBisectC)
--
Traceback (most recent call last):
  File Z:\default\lib\test\test_bisect.py, line 129, in test_large_range
self.assertEqual(mod.bisect_left(data, sys.maxsize-3), sys.maxsize-3)
AssertionError: 4294967294 != 9223372036854775804

--

--
components: Library (Lib), Tests
messages: 160843
nosy: brian.curtin, mark.dickinson, pitrou
priority: high
severity: normal
status: open
title: test_bisect failure under 64-bit Windows
type: behavior

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



[issue14819] Add `assertIsSubclass` and `assertNotIsSubclass` to `unittest.TestCase`

2012-05-16 Thread Brian Jones

Brian Jones bkjo...@gmail.com added the comment:

I can't find a previous discussion of this topic. If you know the list it 
happened on, or the bug#, let me know as I'd be curious to see the discussion. 

While I could concede that checking type is arguably a more common case than 
checking ancestry, I think that checks like assertIsSubclass have a lot of 
value. 

First, if you view your collection of unit tests as pools of change detectors, 
this type of check is very valuable in order to detect changes in ancestry that 
result from a refactoring. 

Second, if you use a test-driven style of development, this is a very 
convenient method to have as your tests and code evolve, because the amount of 
code you have to write to create a failing test becomes a one-liner. 

As an aside, I *would* like to see the submitted patch provide more detail upon 
failure. Namely, if X is not a subclass of Y, it would be nice to know what it 
*is* a subclass of in the resulting output.

--
nosy: +Brian.Jones
status: pending - open

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



[issue14827] IDLE crash when typing ^ character on Mac OS X

2012-05-16 Thread Ronald Oussoren

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

Yes. As the webpage I mentioned describes Apple's installation of Tcl/Tk 
contains a number of serious bugs, one of which is that Tk's handling of dead 
keys (the ^ you use write û) causes crashes.

To get a fully functional copy of Idle you'll have to install ActiveState's 
Tcl/Tk as well. 

We could ship a copy of Tk in the installer as well, but have chosen not to do 
that because the installer is large enough as it is. Furthermore the Cocoa port 
of Tcl/Tk is at this time still a moving target,  which means that we couldn't 
even ship the same version of Tcl/Tk for the entire lifetime of Python 3.2.x.

Please let us know if installing ActiveState's Tcl/Tk fixes the crash, I expect 
it will but you might have run into yet another Tk bug.

--

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



[issue14692] json.loads parse_constant callback not working anymore

2012-05-16 Thread Hynek Schlawack

Hynek Schlawack h...@ox.cx added the comment:

I'm afraid I have to close this one as rejected. It works as documented and 
it's unlikely we'll decide to change it back. I'm sorry.

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

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



[issue13849] Add tests for NUL checking in certain strs

2012-05-16 Thread Hynek Schlawack

Hynek Schlawack h...@ox.cx added the comment:

Why is this one still open? I'm afraid the questions raised aren't fit to be 
discussed in a ticket (weren't the outsourcing of of stdlib an item at the 
language summit?).

I tend to close it as rejected (although I rather disagree) unless someone has 
compelling reasons to keep it lingering.

--

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



[issue14829] test_bisect failure under 64-bit Windows

2012-05-16 Thread Antoine Pitrou

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

Dates back to #10889.

--

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



[issue14682] Backport missing errnos to 2.7

2012-05-16 Thread Hynek Schlawack

Hynek Schlawack h...@ox.cx added the comment:

This one has been fixed together with #14662 in e12efebc3ba6.

Thank you everyone for your input!

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

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



[issue14829] test_bisect failure under 64-bit Windows

2012-05-16 Thread Roundup Robot

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

New changeset 888f5f3bfcb6 by Antoine Pitrou in branch '3.2':
Issue #14829: Fix bisect and range() indexing with large indices (= 2 ** 32) 
under 64-bit Windows.
http://hg.python.org/cpython/rev/888f5f3bfcb6

New changeset a3784c8f165e by Antoine Pitrou in branch 'default':
Issue #14829: Fix bisect and range() indexing with large indices (= 2 ** 32) 
under 64-bit Windows.
http://hg.python.org/cpython/rev/a3784c8f165e

--
nosy: +python-dev

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



[issue14702] os.makedirs breaks under autofs directories

2012-05-16 Thread Hynek Schlawack

Hynek Schlawack h...@ox.cx added the comment:

Andrew, are you still with us?

--

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



[issue14829] test_bisect failure under 64-bit Windows

2012-05-16 Thread Mark Dickinson

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

Curious;  looks at first sight like some sort of confusion between Py_ssize_t 
and long types.

--

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



[issue14772] Return destination values in some shutil functions

2012-05-16 Thread Hynek Schlawack

Hynek Schlawack h...@ox.cx added the comment:

Brian, are you going to update that patch so we can close this? :)

--

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



[issue7719] distutils: ignore .nfsXXXX files

2012-05-16 Thread Hynek Schlawack

Hynek Schlawack h...@ox.cx added the comment:

Jeff, are you still interested in updating your patch or would you prefer if 
someone else tackled it?

--

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



[issue14813] Can't build under VS2008 anymore

2012-05-16 Thread Stefan Krah

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

[VS 2008]

Most recent tip is ok here, too: all executables run again.


There's still a link failure in Debug|x64 mode, but that appears
harmless:


 lib /def:python33stub.def 
/out:C:\Users\stefan\pydev\cpython\PC\VS9.0\x64-pgo\python33stub.lib 
/MACHINE:x64
Microsoft (R) Library Manager Version 9.00.21022.08 

Copyright (C) Microsoft Corporation.  All rights reserved.  

   Creating library 
C:\Users\stefan\pydev\cpython\PC\VS9.0\x64-pgo\python33stub.lib and object 
C:\Users\stefan\p
ydev\cpython\PC\VS9.0\x64-pgo\python33stub.exp  

LINK : fatal error LNK1104: cannot open file 
'C:\Users\stefan\pydev\cpython\PC\VS9.0\x64-pgo\python33stub.lib'  
NMAKE : fatal error U1077: 'C:\Program Files (x86)\Microsoft Visual Studio 
9.0\VC\bin\x86_amd64\lib.EXE' : ret
urn code '0x450'

Stop.   

Project : error PRJ0019: A tool returned an error code from Performing 
Makefile project actions

--

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



[issue14830] pysetup fails on non-ascii filenames

2012-05-16 Thread Tarek Ziadé

New submission from Tarek Ziadé ziade.ta...@gmail.com:

Pyramid contains this file: 
pyramid/tests/fixtures/static/h\xc3\xa9h\xc3\xa9.html

and pysetup install pyramid chokes on it when creating the RECORD file, 
because the csv writer is given a wrong encoded value in 
util._write_record_file.

The record file orginally created by the install command seem to be in the 
wrong encoding

--
assignee: eric.araujo
components: Distutils2
messages: 160856
nosy: alexis, eric.araujo, tarek
priority: normal
severity: normal
status: open
title: pysetup fails on non-ascii filenames
type: behavior
versions: Python 3.3, Python 3.4

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



[issue14829] test_bisect failure under 64-bit Windows

2012-05-16 Thread Roundup Robot

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

New changeset e957b93571a8 by Antoine Pitrou in branch '2.7':
Issue #14829: Fix bisect issues under 64-bit Windows.
http://hg.python.org/cpython/rev/e957b93571a8

--

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



[issue14829] test_bisect failure under 64-bit Windows

2012-05-16 Thread Roundup Robot

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

New changeset 13900edf13be by Antoine Pitrou in branch '3.2':
Forward port additional tests from 2.7 (issue #14829).
http://hg.python.org/cpython/rev/13900edf13be

New changeset 8c8709b98762 by Antoine Pitrou in branch 'default':
Forward port additional tests from 2.7 (issue #14829).
http://hg.python.org/cpython/rev/8c8709b98762

--

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



[issue14829] test_bisect failure under 64-bit Windows

2012-05-16 Thread Antoine Pitrou

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

Should be fixed now.

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

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



[issue7719] distutils: ignore .nfsXXXX files

2012-05-16 Thread Charles-François Natali

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

Wouldn't it be better to add an 'ignore' option to the copy_tree() method with 
an optional list of patterns to ignore instead of hardcoding '.nsfXXX' files?
This would make it possible to also skip '.hg', 'CVS' artifacts.

--
nosy: +neologix

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



[issue14818] C implementation of ElementTree causes regressions

2012-05-16 Thread Eli Bendersky

Eli Bendersky eli...@gmail.com added the comment:

Thanks for the report - such regressions are taken seriously and will be fixed.

Ezio - you can go ahead and prepare a patch. I'm currently away from home 
(business trip) but I will look into it when I get back next weak.

--

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



[issue14692] json.loads parse_constant callback not working anymore

2012-05-16 Thread Serhiy Storchaka

Serhiy Storchaka storch...@gmail.com added the comment:

 I'm afraid I have to close this one as rejected. It works as documented and 
 it's unlikely we'll decide to change it back. I'm sorry.

It does not work as documented. The proposed patch fixes the
documentation.

--

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



[issue13849] Add tests for NUL checking in certain strs

2012-05-16 Thread Antoine Pitrou

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

 Why is this one still open? I'm afraid the questions raised aren't
 fit to be discussed in a ticket

The original request (add tests for NUL character checking) is still relevant 
AFAIK. All it needs is a patch - by Alex or anybody else :-)

--

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



[issue13849] Add tests for NUL checking in certain strs

2012-05-16 Thread R. David Murray

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


--
stage:  - needs patch

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



[issue14712] Integrate PEP 405

2012-05-16 Thread Vinay Sajip

Changes by Vinay Sajip vinay_sa...@yahoo.co.uk:


--
nosy: +carljm

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



[issue14807] Move tarfile.filemode() into stat module

2012-05-16 Thread Roundup Robot

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

New changeset 39d24533c6b7 by Giampaolo Rodola' in branch 'default':
#14807: fix BB failures on Windows - avoid to to rely too many details of the 
mode string.
http://hg.python.org/cpython/rev/39d24533c6b7

--

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



[issue14807] Move tarfile.filemode() into stat module

2012-05-16 Thread Giampaolo Rodola'

Giampaolo Rodola' g.rod...@gmail.com added the comment:

Let's see how it goes now.

--

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



[issue14820] socket._decref_socketios and close

2012-05-16 Thread Giampaolo Rodola'

Giampaolo Rodola' g.rod...@gmail.com added the comment:

You are right. I should have looked more carefully. =)

--
resolution:  - invalid
status: open - closed

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



[issue14692] json.loads parse_constant callback not working anymore

2012-05-16 Thread Hynek Schlawack

Hynek Schlawack h...@ox.cx added the comment:

You're right, I was referring to the doc string.

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

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



[issue14824] reprlib documentation references string module

2012-05-16 Thread Jasper St. Pierre

Jasper St. Pierre jstpie...@mecheye.net added the comment:

Yes. Yes it would. In my opinion, it really shouldn't do this sort of name 
mangling, as it's a terrible idea, but whatever.

--

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



[issue14470] Remove using of w9xopen in subprocess module

2012-05-16 Thread Antoine Pitrou

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

Brian, is the patch ok?

--
nosy: +pitrou
stage:  - patch review

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



[issue14757] INCA: Inline Caching meets Quickening in Python 3.3

2012-05-16 Thread Antoine Pitrou

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

Perhaps that's just me, but I find the performance gains rather limited given 
the sheer size of the changes. Is there any non-micro benchmark where the 
performance gains are actually substantial (say, more than 20%)?

--
type: enhancement - performance

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



[issue14470] Remove using of w9xopen in subprocess module

2012-05-16 Thread Brian Curtin

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

Hm, I thought I already responded to this one. PEP 11 states that the w9xpopen 
code shouldn't be removed until 3.4. I have a patch on another computer that 
adds a deprecation for 3.3 - I'll add it here within the day.

For 3.4 we would actually remove the w9xpopen project from the VS solution and 
make sure it's no longer a part of the project.


http://www.python.org/dev/peps/pep-0011/

--
priority: release blocker - normal
versions: +Python 3.4 -Python 3.3

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



[issue14693] hashlib fallback modules should be built even if openssl *is* available at build time

2012-05-16 Thread Roundup Robot

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

New changeset 0a1d7be10946 by Antoine Pitrou in branch 'default':
Issue #14693: Under non-Windows platforms, hashlib's fallback modules are 
always compiled, even if OpenSSL is present at build time.
http://hg.python.org/cpython/rev/0a1d7be10946

--
nosy: +python-dev

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



[issue14693] hashlib fallback modules should be built even if openssl *is* available at build time

2012-05-16 Thread Antoine Pitrou

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

Ok, should be fixed now. I fixed the proposed patch to avoid warnings when 
testing under Windows.

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

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



[issue14831] make r argument on itertools.combinations() optional

2012-05-16 Thread Dirkjan Ochtman

New submission from Dirkjan Ochtman dirk...@ochtman.nl:

I'm not sure why this is allowed for permutations() but not combinations().

--
messages: 160874
nosy: djc
priority: normal
severity: normal
status: open
title: make r argument on itertools.combinations() optional

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



[issue14831] make r argument on itertools.combinations() optional

2012-05-16 Thread Dirkjan Ochtman

Changes by Dirkjan Ochtman dirk...@ochtman.nl:


--
components: +Library (Lib)
versions: +Python 3.3

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



[issue14831] make r argument on itertools.combinations() optional

2012-05-16 Thread Dirkjan Ochtman

Changes by Dirkjan Ochtman dirk...@ochtman.nl:


--
versions: +Python 3.2 -Python 3.3

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



[issue14819] Add `assertIsSubclass` and `assertNotIsSubclass` to `unittest.TestCase`

2012-05-16 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

I couldn't find any pointer to the discussion (maybe it happened on IRC), but 
the general goal is to provide only the most used/important assert methods and 
avoid bloating the API with less common ones.

--
status: open - pending

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



[issue11051] Improve Python 3.3 startup time

2012-05-16 Thread Antoine Pitrou

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

This is out of date now that importlib is the default import system.

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

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



[issue13609] Add os.get_terminal_size() function

2012-05-16 Thread Antoine Pitrou

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

I am closing as fixed. If you want to propose further enhancements, please open 
a new issue.

--
resolution:  - fixed
status: open - closed

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



[issue12304] expose signalfd(2) in the signal module

2012-05-16 Thread Antoine Pitrou

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


--
nosy: +neologix
stage:  - patch review

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



[issue1615158] POSIX capabilities support

2012-05-16 Thread Antoine Pitrou

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


--
nosy: +neologix

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



[issue6544] Fix refleak in kqueue implementation

2012-05-16 Thread Antoine Pitrou

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


--
resolution:  - fixed
status: open - closed

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



[issue9251] Test for the import lock

2012-05-16 Thread Antoine Pitrou

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


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

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



[issue9548] locale can be imported at startup but relies on too many library modules

2012-05-16 Thread Antoine Pitrou

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


--
stage:  - patch review
versions: +Python 3.3 -Python 3.2

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



[issue1508864] threading.Timer/timeouts break on change of win32 local time

2012-05-16 Thread Antoine Pitrou

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


--
nosy: +haypo

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



[issue14819] Add `assertIsSubclass` and `assertNotIsSubclass` to `unittest.TestCase`

2012-05-16 Thread R. David Murray

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

I agree that testing for subclass is a rather specialized thing, and thus 
should be defined by a project that needs it.  Normal API-centric unit tests 
shouldn't, IMO, care whether X is a subclass of Y.  If you are using it to 
write a failing unit test to drive refactoring from one class to another, 
that is, I think, a very good example of a specialized use case (one I would 
certainly never use, for example) and you should just put it in your own 
project test codebase.

--
nosy: +r.david.murray
status: pending - open

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



[issue14819] Add `assertIsSubclass` and `assertNotIsSubclass` to `unittest.TestCase`

2012-05-16 Thread R. David Murray

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


--
status: open - closed

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



[issue2920] Patch to print symbolic value or errno in EnvironmentError.__str__()

2012-05-16 Thread Antoine Pitrou

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

This would still be a helpful improvement.

--
stage: patch review - needs patch
versions: +Python 3.3 -Python 3.2

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



[issue14776] Add SystemTap static markers

2012-05-16 Thread Dave Malcolm

Changes by Dave Malcolm dmalc...@redhat.com:


--
nosy: +fche, scox

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



[issue14815] random_seed uses only 32-bits of hash on Win64

2012-05-16 Thread Raymond Hettinger

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

This is a reasonable change.  The benefits of using all 64-bits outweigh the 
small downside of losing the reproducibility of previously generated sequences 
that relied on the object hash.

--

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



[issue14757] INCA: Inline Caching meets Quickening in Python 3.3

2012-05-16 Thread stefan brunthaler

stefan brunthaler s.bruntha...@uci.edu added the comment:

 Perhaps that's just me, but I find the performance gains rather limited given 
 the sheer size of the changes.

Well there are a couple of things to keep in mind:

a) There is a substantial speedup potential in further interpretative
optimizations, but they come at increased complexity (mostly due to a
different instruction encoding). From the response on python-dev I
took away that this is not what people want.

b) The size is deceptive: the patch contains all resources, i.e., the
code gen *and* the generated files. I could split it up into three
separate patches to show that the *actual* intersection with existing
Python sources is very small. (Disregarding opcode.h, my guess is that
it's about a 100 lines.)

c) There are no reasonable compatbility implications (modulo code that
checks specific opcode values) and the memory consumption is
essentially nil (= 100KiB, constant.)

There are further speedups available by ordering the interpreter
instructions (I have a paper on that called Interpreter Instruction
Scheduling, and am currently working on a better algorithm [well, the
algorithm already exists, I'm just evaluating it].) I could easily add
that at no extra cost to the implementation, too.

 Is there any non-micro benchmark where the performance gains are actually 
 substantial (say, more than 20%)?

Hm, I don't know. Are there applications/frameworks running on Python
3 that I can benchmark with?

Based on my experience, the speedups should be achievable across the
board, primarily because the most frequent CALL_FUNCTION instructions
have optimized derivatives. In addition with the arithmetic and
COMPARE_OP derivatives this covers a wide array of dynamic instruction
frequency mixes. There exist further inlining capabilities, too, which
can be easily added to the code generator.
The only reason why some benchmarks don't achieve expected speedups
isdue to them using operations where the code-gen does not contain
optimized derivatives. There is still space for ~45 derivatives to
cover those (including some important application-specific ones.)

--

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



[issue14831] make r argument on itertools.combinations() optional

2012-05-16 Thread Mark Dickinson

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

Wait, what?  What results are you proposing for e.g.,

list(combinations(range(3)))

?  None of the obvious defaults for r (length of first argument?  0? 1?) look 
very interesting.

--
nosy: +mark.dickinson

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



[issue14776] Add SystemTap static markers

2012-05-16 Thread Antoine Pitrou

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

I tried the patch under Mageia 1 and got the following failure:

test_systemtap skipped -- Test systemtap script did not run; stderr was: bPass 
1: parsed user script and 72 library script(s) using 56252virt/20964res/1828shr 
kb, in 70usr/0sys/82real ms.\nPass 2: analyzed script: 1 probe(s), 1 
function(s), 0 embed(s), 0 global(s) using 56648virt/21492res/1900shr kb, in 
10usr/0sys/3real ms.\nPass 3: using cached 
/home/antoine/.systemtap/cache/15/stap_155c3565481f113c929ad94e10c2b48e_779.c\nPass
 4: using cached 
/home/antoine/.systemtap/cache/15/stap_155c3565481f113c929ad94e10c2b48e_779.ko\nPass
 5: starting run.\nPass 5: run completed in 0usr/0sys/3real ms.\nPass 5: run 
failed.  Try again with another '--vp 1' option.\n


(I also had to chmod +s staprun - scary :-))

--

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



[issue14831] make r argument on itertools.combinations() optional

2012-05-16 Thread Dirkjan Ochtman

Dirkjan Ochtman dirk...@ochtman.nl added the comment:

[[], [0], [1], [2], [0, 1], [0, 2], [1, 2], [0, 1, 2]]

That is, all possible combinations.

--

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



[issue8330] Failures seen in test_gdb on buildbots

2012-05-16 Thread Antoine Pitrou

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

Shouldn't this be closed?

--
nosy: +pitrou

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



  1   2   >