[issue9374] urlparse should parse query and fragment for arbitrary schemes

2012-09-29 Thread Georg Brandl

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


--
versions:  -Python 3.3

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



[issue16046] python -O does not find *.pyo files

2012-09-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset ff50579241cd by Benjamin Peterson in branch 'default':
don't depend on __debug__ because it's baked in at freeze time (issue #16046)
http://hg.python.org/cpython/rev/ff50579241cd

--

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



[issue16022] Mistake in What's New in Python 3.3

2012-09-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset f6155d9111a2 by Victor Stinner in branch 'default':
Close #16022: What's New in Python 3.3 document is no more at beta stage
http://hg.python.org/cpython/rev/f6155d9111a2

--
resolution:  - fixed

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



[issue16012] pyexpat: Argument for UseForeignDTD should be optional

2012-09-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b907f99272c5 by Georg Brandl in branch 'default':
Port #16012 fix: parameter parsing regression in pyexpat parser UseForeignDTD() 
method.
http://hg.python.org/cpython/rev/b907f99272c5

--

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



[issue16060] Double decref and dereferencing after decref in int()

2012-09-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d23eb81bd482 by Mark Dickinson in branch 'default':
Issue #16060: Fix a double DECREF in int() implementation.  Thanks Serhiy 
Storchaka.
http://hg.python.org/cpython/rev/d23eb81bd482

--

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



[issue9374] urlparse should parse query and fragment for arbitrary schemes

2012-09-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 950320c70fb4 by Georg Brandl in branch 'default':
Add a versionchanged note for #9374 changes.
http://hg.python.org/cpython/rev/950320c70fb4

--

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



[issue16079] list duplicate test names with patchcheck

2012-09-29 Thread Xavier de Gaye

Xavier de Gaye added the comment:

 I'm not sure if there is ever a use case for duplicate method
 names.  Is there?

property getter, setter, and deleter methods do have the same name.

--

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



[issue16079] list duplicate test names with patchcheck

2012-09-29 Thread Xavier de Gaye

Xavier de Gaye added the comment:

 Here are a couple examples of test method names that don't begin
 with test_:

 def testLoadTk(self):
 def testLoadTkFailure(self):

Also Lib/test/test_smtplib.py test method names start with 'test'
instead of 'test_' although the 'Regression tests package for Python'
documentation states: The test methods in the test module should
start with test_.

--

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



[issue7171] Add inet_ntop and inet_pton support for Windows

2012-09-29 Thread pystranger

pystranger added the comment:

I can't do that but I think the stage of the bug should be changed to patch 
review instead of needs patch.

--
nosy: +pystranger

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



[issue7171] Add inet_ntop and inet_pton support for Windows

2012-09-29 Thread Ezio Melotti

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


--
stage: needs patch - patch review

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



[issue7171] Add inet_ntop and inet_pton support for Windows

2012-09-29 Thread Christian Heimes

Christian Heimes added the comment:

As it's a new feature it must go into 3.4.

--
components: +Extension Modules -Library (Lib)
nosy: +christian.heimes
versions: +Python 3.4 -Python 3.3

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



[issue2771] Test issue

2012-09-29 Thread Ezio Melotti

Ezio Melotti added the comment:

ᚠᚡᚢᚣᚤᚥᚦᚧᚨᚩᚪᚫᚬᚭᚮᚯᚰᚱᚲᚳᚴᚵᚶᚷᚸᚹᚺᚻᚼᚽᚾᚿᛀᛁᛂᛃᛄ

--

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



[issue2771] Test issue

2012-09-29 Thread Ezio Melotti

Ezio Melotti added the comment:

ᚠᚡᚢᚣᚤᚥᚦᚧᚨᚩᚪᚫᚬᚭᚮᚯᚰᚱᚲᚳᚴᚵᚶᚷᚸᚹᚺᚻᚼᚽᚾᚿᛀᛁᛂᛃᛄ

--

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



[issue8800] add threading.RWLock

2012-09-29 Thread Sebastian Noack

Sebastian Noack added the comment:

I would love to see a reader/writer lock implementation shipped with Python's 
threading (and multiprocessing) module. But I have some issues with the patch:

1. I would avoid the terms 'read' and 'write' as those terms are referring just 
to one of many use cases. A better and more generic name would be shared and 
exclusive lock.

2. If we add a new synchronization primitive to the threading module we really 
should add it also to the multiprocessing module, for consistency and to keep 
switching between threading and multiprocessing as easy as it is right now.

3. The methods rdlock() and wrlock() might even block if you call them with 
blocking=False. That's because of they acquire the internal lock in a blocking 
fashion before they would return False.

4. As Antoine already pointed out, it is a bad idea to make acquiring the 
exclusive (write) lock, the default behavior. That clearly violates the Zen of 
Python, since explicit is better than implicit.

5. The issue above only raises from the idea that the RWLock should provide the 
same API as the Lock and RLock primitives. So everywhere where a lock primitive 
is expected, you can pass either a Lock, RLock or RWLock. That is actually a 
good idea, but in that case you should explicitly specify, whether to pass the 
shared (read) or the exclusive (write) lock.

Both issues 4. and 5. only raise from the idea that a shared/exclusive lock 
should be implemented as a single class. But having two different lock 
primitives, one for the shared lock and one for the exclusive lock and a 
function returning a pair of those, would be much more flexible, pythonic and 
compatible with existing lock primitives.

def ShrdExclLock()
  class _ShrdLock(object):
def acquire(self, blocking=True):
  ...

def release(self, blocking=True):
  ...

def __enter__(self):
  self.acquire()
  retrun self

def __exit__(self, exc_value, exc_type, tb):
  self.release()

  class _ExclLock(object):
def acquire(self, blocking=True):
  ...

def release(self, blocking=True):
  ...

def __enter__(self):
  self.acquire()
  retrun self

def __exit__(self, exc_value, exc_type, tb):
  self.release()

  return _ShrdLock(), _ExclLock()

# create a shared/exclusive lock
shrd_lock, excl_lock = ShrdExclLock()

--
nosy: +Sebastian.Noack

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



[issue8800] add threading.RWLock

2012-09-29 Thread Kristján Valur Jónsson

Kristján Valur Jónsson added the comment:

Excellent points.
For 3. however, I don't consider access to synchronized state to be blocking. 
 Blocking means to block while waiting for the lock.  The internal lock is 
never held for any amount of time.
Perhaps I'll cook up a new patch with these thoughts.

--

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



[issue2771] Test issue

2012-09-29 Thread Ezio Melotti

Ezio Melotti added the comment:

another test

--
versions: +Python 3.4 -Python 3.2

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



[issue8800] add threading.RWLock

2012-09-29 Thread Christian Heimes

Changes by Christian Heimes li...@cheimes.de:


--
versions: +Python 3.4 -Python 3.2

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



[issue16084] couple of code examples not highlighted in What's new in Python 3

2012-09-29 Thread Ramchandra Apte

New submission from Ramchandra Apte:

A couple of code examples are not highlighted in 
http://docs.python.org/py3k/whatsnew/3.3.html#pep-380-syntax-for-delegating-to-a-subgenerator

They should be highlighted with Python highlighting.

--
assignee: docs@python
components: Documentation
messages: 171570
nosy: docs@python, ramchandra.apte
priority: normal
severity: normal
status: open
title: couple of code examples not highlighted in What's new in Python 3
versions: Python 3.3

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



[issue9674] make install DESTDIR=/home/blah fails when the prefix specified is /

2012-09-29 Thread Ron Hubbard

Ron Hubbard added the comment:

this is a very ugly bug and should be fixed ASAP

it's not only breaking python itself, but any package that uses this python 
installer, for example

http://seclists.org/nmap-dev/2012/q3/1025

what is preventing a merge of the existing patch ?

--

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



[issue13028] python wastes linux users time by checking for dylib on each dynamic library load

2012-09-29 Thread Ron Hubbard

Ron Hubbard added the comment:

i'll try to reproduce this later.

looking at the below strace output, python's behaviour seems pretty stupid tho,

for example if /lib is the only existing path out of /lib, /lib64, /usr/lib/, 
/usr/local/lib, etc etc, it should check for all these directories once, and 
then not try to open .so in unexisting directories over and over again, 
inflicting multiple syscalls for each dso.

--
nosy: +arschficker

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



[issue16085] Minor config parser doc change

2012-09-29 Thread Mark Lawrence

New submission from Mark Lawrence:

From http://docs.python.org/library/configparser.html#examples

float = config.getfloat('Section1', 'float')
int = config.getint('Section1', 'int')
print float + int

It's not a good idea to have float or int used like this in examples.  Maybe 
my_float and my_int or sec1_float and sec_int?

--
assignee: docs@python
components: Documentation
messages: 171573
nosy: BreamoreBoy, docs@python
priority: normal
severity: normal
status: open
title: Minor config parser doc change
type: enhancement

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



[issue16086] tp_flags: Undefined behaviour with 32 bits long

2012-09-29 Thread STINNER Victor

New submission from STINNER Victor:

1L  31 is undefined if long is 32 bits long. We should use unsigned long 
for PyTypeObject.tp_flags.

Attached patch implements this fix. I don't know if it breaks somehow the 
backward compatibility.

See also issues #1621 and #7406.

--
components: Interpreter Core
files: unsigned_tp_flags.patch
keywords: patch
messages: 171574
nosy: ezio.melotti, haypo, mark.dickinson
priority: normal
severity: normal
status: open
title: tp_flags: Undefined behaviour with 32 bits long
versions: Python 3.4
Added file: http://bugs.python.org/file27347/unsigned_tp_flags.patch

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



[issue16001] small ints: cache string representation

2012-09-29 Thread STINNER Victor

STINNER Victor added the comment:

str(int) is less common than %s % int or %i % int, and str%args has now 
fast path in Python 3.3 for integers. So I agree that my patch adds useless 
complexity and I'm closing this idea, thanks.

--
resolution:  - rejected
status: open - closed

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



[issue16079] list duplicate test names with patchcheck

2012-09-29 Thread Chris Jerdonek

Chris Jerdonek added the comment:

For informational purposes, here is where unittest defaults to the prefix 
test for finding test methods:

http://hg.python.org/cpython/file/f11649b21603/Lib/unittest/loader.py#l48

sqlite3 is able to use Check because it manages its own test discovery.  For 
example--

http://hg.python.org/cpython/file/f11649b21603/Lib/sqlite3/test/regression.py#l306

--

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



[issue16086] tp_flags: Undefined behaviour with 32 bits long

2012-09-29 Thread Mark Dickinson

Mark Dickinson added the comment:

Victor:  you missed one. :-)

#define Py_TPFLAGS_HAVE_STACKLESS_EXTENSION (3L15)

--

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



[issue16084] couple of code examples not highlighted in What's new in Python 3

2012-09-29 Thread Chris Jerdonek

Changes by Chris Jerdonek chris.jerdo...@gmail.com:


--
assignee: docs@python - chris.jerdonek
nosy: +chris.jerdonek

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



[issue16048] Tutorial-classes-remarks: replace paragraph

2012-09-29 Thread Berker Peksag

Changes by Berker Peksag berker.pek...@gmail.com:


--
title: Tutorial-classes-remarks: replace paragragh - Tutorial-classes-remarks: 
replace paragraph

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



[issue16086] tp_flags: Undefined behaviour with 32 bits long

2012-09-29 Thread Mark Dickinson

Mark Dickinson added the comment:

Actually, I think it'll be messy to make this work:  PyType_GetFlags is part of 
the stable ABI, so that's got to continue to return a long rather than an 
unsigned long.  And then we've got, in object.h:

#ifdef Py_LIMITED_API
#define PyType_HasFeature(t,f)  ((PyType_GetFlags(t)  (f)) != 0)
#else
#define PyType_HasFeature(t,f)  (((t)-tp_flags  (f)) != 0)
#endif

So we'd need an extra cast from long to unsigned long in the first branch.

I suggest instead just replacing that one occurrence of (1L  31) with 
(long)(1UL  31) to get around the undefined behaviour.


P.S. The docs would also need to be updated in these two files:

   Doc/c-api/typeobj.rst
   Doc/includes/typestruct.h

--

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



[issue16086] tp_flags: Undefined behaviour with 32 bits long

2012-09-29 Thread Mark Dickinson

Mark Dickinson added the comment:

Martin, some things I'm not clear on w.r.t. the stable ABI.

(1) Do defined constants like Py_TPFLAGS_INT_SUBCLASS form part of the stable 
ABI?

(2) Would changing the type of Py_TPFLAGS_INT_SUBCLASS from long to unsigned 
long break the stable ABI?

--
nosy: +loewis

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



[issue16087] How to open a csv file in universal new line mode?

2012-09-29 Thread Kason

New submission from Kason:

I am trying to follow the tutorial at 
http://www.slideshare.net/niloyghosh1984/qgis-tutorial-1
and I got to slide 24 of 47 whereupon I tried to use the mmqgis plugin to open 
the csv file, but I got this error:
Error: new-line character seen in unquoted field - do you need to open the file 
in universal-newline mode?
After searching for solutions to this error it indeed appears that I need to 
open this file in universal-newline mode...rU
How do I do that?

--
assignee: ronaldoussoren
components: Macintosh
messages: 171580
nosy: kason561, ronaldoussoren
priority: normal
severity: normal
status: open
title: How to open a csv file in universal new line mode?
type: compile error
versions: Python 3.4

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



[issue16084] couple of code examples not highlighted in What's new in Python 3

2012-09-29 Thread Chris Jerdonek

Chris Jerdonek added the comment:

Thanks for the report.  Closing though as this is a duplicate.

--
resolution:  - duplicate
superseder:  - docs: 2 code examples not Pygmented (syntax color coded)

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



[issue16084] couple of code examples not highlighted in What's new in Python 3

2012-09-29 Thread Mark Dickinson

Changes by Mark Dickinson dicki...@gmail.com:


--
status: open - closed

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



[issue16084] couple of code examples not highlighted in What's new in Python 3

2012-09-29 Thread Chris Jerdonek

Changes by Chris Jerdonek chris.jerdo...@gmail.com:


--
stage:  - committed/rejected

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



[issue14503] docs: yield from breaks Pygments syntax coloring in doc examples

2012-09-29 Thread Chris Jerdonek

Changes by Chris Jerdonek chris.jerdo...@gmail.com:


--
title: docs: 2 code examples not Pygmented (syntax color coded) - docs: yield 
from breaks Pygments syntax coloring in doc examples

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



[issue16087] How to open a csv file in universal new line mode?

2012-09-29 Thread R. David Murray

R. David Murray added the comment:

The bug tracker isn't a good place to get help on using Python.  You are more 
likely to find people to answer this sort of question on the python-list 
mailing list.  If you are using python3, the answer is to use newline='', as 
discussed in the documentation.

--
assignee: ronaldoussoren - 
nosy: +r.david.murray
resolution:  - invalid
stage:  - committed/rejected
status: open - closed
type: compile error - 

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



[issue14478] Decimal hashing very slow, could be cached

2012-09-29 Thread Mark Dickinson

Changes by Mark Dickinson dicki...@gmail.com:


--
versions: +Python 3.4 -Python 3.3

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



[issue16077] fix code example in docs for built-in reduce()

2012-09-29 Thread Chris Jerdonek

Changes by Chris Jerdonek chris.jerdo...@gmail.com:


--
assignee: docs@python - chris.jerdonek

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



[issue16074] bad error message in os.rename

2012-09-29 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Same issue for os.link and os.symlink.

 import os
 os.link('non-existent-name', 'new-name')
Traceback (most recent call last):
  File stdin, line 1, in module
FileNotFoundError: [Errno 2] No such file or directory: 'new-name'
 os.symlink('long-name'*1000, 'new-name')
Traceback (most recent call last):
  File stdin, line 1, in module
OSError: [Errno 36] File name too long: 'new-name'

--

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



[issue16085] Minor config parser doc change

2012-09-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 178e7183931e by R David Murray in branch '3.2':
#16085: Don't promote shadowing builtins in the configparser example.
http://hg.python.org/cpython/rev/178e7183931e

New changeset 769247e6edbf by R David Murray in branch '3.3':
Merge #16085: Don't promote shadowing builtins in the configparser example.
http://hg.python.org/cpython/rev/769247e6edbf

New changeset 1c9b0b37f097 by R David Murray in branch 'default':
Merge #16085: Don't promote shadowing builtins in the configparser example.
http://hg.python.org/cpython/rev/1c9b0b37f097

New changeset 1ee270d522f3 by R David Murray in branch '2.7':
#16085: Don't promote shadowing builtins in the configparser example.
http://hg.python.org/cpython/rev/1ee270d522f3

--
nosy: +python-dev

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



[issue16085] Minor config parser doc change

2012-09-29 Thread R. David Murray

R. David Murray added the comment:

Fixed.  Thanks, Mark.

--
nosy: +r.david.murray
resolution:  - fixed
stage:  - committed/rejected
status: open - closed
versions: +Python 2.7, Python 3.2, Python 3.3, Python 3.4

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



[issue16077] fix code example in docs for built-in reduce()

2012-09-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset a6779524962c by Chris Jerdonek in branch '2.7':
Close issue #16077: fix code example in documentation of reduce() built-in 
(from docs@).
http://hg.python.org/cpython/rev/a6779524962c

--
nosy: +python-dev

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



[issue16077] fix code example in docs for built-in reduce()

2012-09-29 Thread Chris Jerdonek

Chris Jerdonek added the comment:

Serhiy, feel free to create a new issue for Doc/howto/functional.rst if you 
feel an addition there is warranted.

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

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



[issue15756] subprocess.poll() does not handle errno.ECHILD No child processes

2012-09-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 484c50bf445c by Gregory P. Smith in branch '3.2':
Fixes issue #15756: subprocess.poll() now properly handles errno.ECHILD
http://hg.python.org/cpython/rev/484c50bf445c

New changeset ba8d85552e34 by Gregory P. Smith in branch '3.3':
Fixes issue #15756: subprocess.poll() now properly handles errno.ECHILD
http://hg.python.org/cpython/rev/ba8d85552e34

New changeset 9032b3f52819 by Gregory P. Smith in branch 'default':
Fixes issue #15756: subprocess.poll() now properly handles errno.ECHILD to
http://hg.python.org/cpython/rev/9032b3f52819

--
nosy: +python-dev

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



[issue15756] subprocess.poll() does not handle errno.ECHILD No child processes

2012-09-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 53e91fa35f8e by Gregory P. Smith in branch '2.7':
Issue #15756: subprocess.poll() now properly handles errno.ECHILD to
http://hg.python.org/cpython/rev/53e91fa35f8e

--

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



[issue15756] subprocess.poll() does not handle errno.ECHILD No child processes

2012-09-29 Thread Gregory P. Smith

Changes by Gregory P. Smith g...@krypto.org:


--
resolution:  - fixed
status: open - closed

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



[issue14331] Python/import.c uses a lot of stack space due to MAXPATHLEN

2012-09-29 Thread Gregory P. Smith

Gregory P. Smith added the comment:

This was fixed in April.

--
resolution:  - fixed
status: open - closed

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



[issue16077] fix code example in docs for built-in reduce()

2012-09-29 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I thought and decided it wasn't worth it. Howtos for general cases, and not for 
corner cases.

--

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



[issue12268] file readline, readlines readall methods can lose data on EINTR

2012-09-29 Thread Gregory P. Smith

Changes by Gregory P. Smith g...@krypto.org:


--
priority: normal - high

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



[issue9650] format codes in time.strptime docstrings

2012-09-29 Thread Mike Hoy

Mike Hoy added the comment:

If you like my idea we should discuss it on python-ideas and start a new 
tracker entry.

In the meantime I'd like to create a patch that incorporates Alexander's ideas. 
If any objections let me know.

--
nosy: +mikehoy

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



[issue2489] Patch for bugs in pty.py

2012-09-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset ec2921d4de37 by Gregory P. Smith in branch 'default':
pty.spawn() now returns the child process status as returned by os.waitpid().
http://hg.python.org/cpython/rev/ec2921d4de37

--

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



[issue2489] Patch for bugs in pty.py

2012-09-29 Thread Gregory P. Smith

Changes by Gregory P. Smith g...@krypto.org:


--
resolution:  - fixed
status: open - closed

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



[issue2489] Patch for bugs in pty.py

2012-09-29 Thread Antoine Pitrou

Antoine Pitrou added the comment:

The test breaks on OpenIndiana (and possibly elsewhere):
http://buildbot.python.org/all/builders/x86%20OpenIndiana%203.x/builds/4640

==
FAIL: test_spawn_returns_status (test.test_pty.PtyTest)
--
Traceback (most recent call last):
  File 
/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/test/test_pty.py, 
line 200, in test_spawn_returns_status
status = pty.spawn([sys.executable, '-c', 'import sys; sys.exit(0)'])
  File /export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/pty.py, 
line 175, in spawn
_copy(master_fd, master_read, stdin_read)
  File /export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/pty.py, 
line 147, in _copy
rfds, wfds, xfds = select(fds, [], [])
  File 
/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/test/test_pty.py, 
line 65, in handle_sig
self.fail(isatty hung)
AssertionError: isatty hung

--
nosy: +pitrou

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



[issue16045] add more unit tests for built-in int()

2012-09-29 Thread Chris Jerdonek

Chris Jerdonek added the comment:

Adding patch modified for 2.7.  Here are the differences I found from 3.3.  
Unlike 3.3--

(1) 2.7 does not accept bytearrays for x (though it accepts str/bytes).
(2) 2.7 raises a TypeError if passed a string base without providing x.

Is it acceptable to add tests like this to the 2.7 branch?

This information also helps in preparing the 2.7 documentation patch for issue 
16036 and ensuring that it is correct.

--
Added file: http://bugs.python.org/file27348/issue-16045-2-27.patch

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



[issue12014] str.format parses replacement field incorrectly

2012-09-29 Thread Barry A. Warsaw

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


--
nosy: +barry

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



[issue16036] simplify int() signature docs

2012-09-29 Thread Chris Jerdonek

Chris Jerdonek added the comment:

See the following comment to issue 16045 for a couple differences in the 
behavior of int() in 2.7:

http://bugs.python.org/issue16045#msg171595

--

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



[issue16088] http.server's send_error could set the content-length of the error body

2012-09-29 Thread Antoine Pitrou

New submission from Antoine Pitrou:

BaseHTTPRequestHandler.send_error() sets connection: close, so the client 
shouldn't need a content-length, but it can still be nicer to send it (e.g. it 
seems to solve an issue with wget, see issue15991).

--
components: Library (Lib)
messages: 171597
nosy: orsenthil, pitrou
priority: low
severity: normal
status: open
title: http.server's send_error could set the content-length of the error body
type: enhancement
versions: Python 3.4

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



[issue16088] http.server's send_error could set the content-length of the error body

2012-09-29 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Here is a patch.

--
keywords: +patch
Added file: http://bugs.python.org/file27349/http_error_content_length.patch

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



[issue8800] add threading.RWLock

2012-09-29 Thread Sebastian Noack

Sebastian Noack added the comment:

Using a lock as context manager is the same as calling 
lock.acquire(blocking=True) and it will in fact block while waiting for an 
other thread to release the lock. In your code, the internal lock is indeed 
just hold for a very short period of time while acquiring or releasing a shared 
or exclusive lock, but it might add up to a notable amount of time dependent on 
how much concurrent threads are using the same RWLock and how slow/busy your 
computer is.

But what made me reconsider my point are following facts:

1. For example, when you acquire a shared (read) lock in non-blocking mode and 
False is returned, you assume that an other thread is holding an exclusive 
(write) lock. But that isn't necessarily the case, if it also returns False, 
when the internal lock is acquired by an other thread for example in order to 
acquire or release another shared (read) lock.

2. The internal lock must be acquired also in order to release a 
shared/exclusive lock. And the 'release' method (at least if implemented as for 
Lock and RLock) don't have a 'blocking' argument, anyway.

For that reasons, I think it is ok to block while waiting for the internal 
lock, even if the shared/exclusive lock was acquired in non-blocking mode. At 
least it seems to lead to less unexpected side effects, than returning False in 
case the internal lock is acquired.

--

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



[issue8800] add threading.RWLock

2012-09-29 Thread Sebastian Noack

Sebastian Noack added the comment:

I've added a new patch, that implements a shared/exclusive lock as described in 
my comments above, for the threading and multiprocessing module.

--
Added file: 
http://bugs.python.org/file27350/Added-ShrdExclLock-to-threading-and-multiprocessing.patch

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



[issue16034] bz2 module appears slower in Python 3.x versus Python 2.x

2012-09-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 1a08f4887cff by Nadeem Vawda in branch '3.3':
Issue #16034: Fix performance regressions in the new BZ2File implementation.
http://hg.python.org/cpython/rev/1a08f4887cff

New changeset cf50a352fe22 by Nadeem Vawda in branch 'default':
Merge #16034: Fix performance regressions in the new BZ2File implementation.
http://hg.python.org/cpython/rev/cf50a352fe22

--
nosy: +python-dev

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



[issue16034] bz2 module appears slower in Python 3.x versus Python 2.x

2012-09-29 Thread Nadeem Vawda

Nadeem Vawda added the comment:

Thanks for the bug report, Victor, and thank you Serhiy for the patch!

Serhiy, would you be OK with me also including this patch in the bz2file 
package?

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

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



[issue16089] _elementtree causes segfault in GC

2012-09-29 Thread Christian Heimes

New submission from Christian Heimes:

The issue was reported by Arfrever on #python-dev. The test suite of simpletal 
[1] was segfaulting with Python 3.3. It doesn't segfault without the 
_elementtree C extension.

I'm able to reproduce the issue. It may take a couple of runs with a debug 
build of Python but eventually Python segfaults. So far segfaults occur inside 
a GC collection run. Benjamin suspects the issue is related to the new GC code 
in _elementtree.

#0  visit_decref (op=unknown at remote 0x7fea64fc8ca8, data=0x0) at 
Modules/gcmodule.c:361
#1  0x004bccd5 in subtract_refs (containers=optimized out) at 
Modules/gcmodule.c:386
#2  collect (generation=0, n_collected=0x7fffe3eedb70, 
n_uncollectable=0x7fffe3eedb78) at Modules/gcmodule.c:891
#3  0x004bd7e6 in collect_with_callback (generation=0) at 
Modules/gcmodule.c:1048
#4  collect_generations () at Modules/gcmodule.c:1071
#5  _PyObject_GC_Malloc (basicsize=optimized out) at 
Modules/gcmodule.c:1580
#6  0x004bddcc in _PyObject_GC_Malloc (basicsize=optimized out) 
at Modules/gcmodule.c:1567
#7  _PyObject_GC_New (tp=0x8322a0) at Modules/gcmodule.c:1590
#8  0x00548a3a in new_dict (values=0x0, keys=0xd02e60) at 
Objects/dictobject.c:395
#9  _PyDict_NewPresized (minused=optimized out) at 
Objects/dictobject.c:1044
#10 0x0047a449 in PyEval_EvalFrameEx (f=optimized out, 
throwflag=optimized out) at Python/ceval.c:2245
#11 0x00480b03 in fast_function (nk=optimized out, na=1, 
n=optimized out, pp_stack=0x7fffe3eede40, func=
function at remote 0x7fea653ff9e0) at Python/ceval.c:4150


[1] http://www.owlfish.com/software/simpleTAL/downloads/SimpleTAL-5.1.tar.gz

--
components: Extension Modules
keywords: 3.3regression
messages: 171603
nosy: christian.heimes
priority: critical
severity: normal
stage: needs patch
status: open
title: _elementtree causes segfault in GC
type: crash
versions: Python 3.3, Python 3.4

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



[issue16089] _elementtree causes segfault in GC

2012-09-29 Thread Arfrever Frehtes Taifersar Arahesis

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


--
nosy: +Arfrever

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



[issue14007] xml.etree.ElementTree - XMLParser and TreeBuilder's doctype() method missing

2012-09-29 Thread Christian Heimes

Christian Heimes added the comment:

It seems like your changes have introduced a segfault: #16089

--
nosy: +christian.heimes

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



[issue16089] _elementtree causes segfault in GC

2012-09-29 Thread Christian Heimes

Christian Heimes added the comment:

The issue could be related to #14007.

--

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



[issue16084] couple of code examples not highlighted in What's new in Python 3

2012-09-29 Thread Ramchandra Apte

Ramchandra Apte added the comment:

LOL the duplicate is my bug ;-)

--

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



[issue15201] C argument errors and Python arguments error are different

2012-09-29 Thread Ramchandra Apte

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


--
versions: +Python 3.4 -Python 3.2

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



[issue16090] but is needed somewhere in http://www.python.org/dev/peps/pep-3138/

2012-09-29 Thread Ramchandra Apte

New submission from Ramchandra Apte:

subject
I can't remember where the but is needed but I am sure a but is missing 
somewhere there.

--
assignee: docs@python
components: Documentation
messages: 171607
nosy: docs@python, ramchandra.apte
priority: normal
severity: normal
status: open
title: but is needed somewhere in http://www.python.org/dev/peps/pep-3138/
versions: Python 3.4

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



[issue16084] couple of code examples not highlighted in What's new in Python 3

2012-09-29 Thread Chris Jerdonek

Chris Jerdonek added the comment:

Yes, I noticed that later, too. :)

--

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



[issue16091] changing sidebar links in http://docs.python.org/

2012-09-29 Thread Ramchandra Apte

New submission from Ramchandra Apte:

In http://docs.python.org/ the Python 3.3 (in development) link goes to the 
Python 3.4 docs. It should be renamed to Python 3.3. A new link should be 
added for the Python 3.4 docs and the Python 3.2 link may be removed.

--
assignee: docs@python
components: Documentation
messages: 171609
nosy: docs@python, ramchandra.apte
priority: normal
severity: normal
status: open
title: changing sidebar links in http://docs.python.org/

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



[issue15201] C argument errors and Python arguments error are different

2012-09-29 Thread Benjamin Peterson

Benjamin Peterson added the comment:

This is won't fix at least for now. The way arguments to C functions are parsed 
prevents them from ever really being the same. Specific improvements can be 
considered.

--
nosy: +benjamin.peterson
resolution:  - wont fix
status: open - closed

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



[issue15533] subprocess.Popen(cwd) documentation

2012-09-29 Thread Andrew Svetlov

Andrew Svetlov added the comment:

Chris, please commit your patch. It's fine for me.

--

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



[issue15533] subprocess.Popen(cwd) documentation

2012-09-29 Thread Chris Jerdonek

Changes by Chris Jerdonek chris.jerdo...@gmail.com:


--
assignee: docs@python - chris.jerdonek

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