[issue11553] Docs for: import, packages, site.py, .pth files

2011-06-12 Thread Nick Coghlan

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

Ah, now I get your point re .pkg vs .pth. I naturally read that as .pth 
entries are to sys.path entries as .pkg entries are to pkg.__path__ entries, 
without any hint that those are the same *kind* of thing. However, I already 
know that sys.path and pkg.__path__ entries are different, and now I see how it 
could be misleading for anyone that wasn't as familiar with the distinction.

(This has actually been one of the historic problems with the import 
documentation - we *don't always know* when something is unclear, because we 
unconsciously fill in the missing pieces)

--

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



[issue12307] Inconsistent formatting of section titles in PEP 0

2011-06-12 Thread Éric Araujo

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

On python.org/dev/peps, I don’t see the extra space that your patch removes.

--
nosy: +eric.araujo
versions: +3rd party -Python 3.3

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



[issue12308] Add link to PEP 0 for topical index in wiki

2011-06-12 Thread Éric Araujo

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

Hm, why not be more ambitious and include your grouping directly in the PEP 
repository?  You should ask python-dev how they like your wiki page, and then 
we’ll see if it can be generated from a category or keyword in the PEPs 
themselves.

P.S. about the version field: this bug is not relevant to the release of 3.3.0.

--
nosy: +eric.araujo
versions: +3rd party -Python 3.3

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



[issue10884] pkgutil EggInfoDistribution requirements for .egg-info metadata

2011-06-12 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
assignee: tarek - eric.araujo
resolution: works for me - 
stage:  - test needed
status: closed - open
versions: +Python 3.3 -3rd party

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



[issue11610] Improved support for abstract base classes with descriptors

2011-06-12 Thread Éric Araujo

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

 there's nothing an ABC can do to stop someone (for example) overriding
 an abstract method or descriptor foo with foo = 1.

I’ve find it useful to use an abstractproperty to specify an attribute that 
concrete subclasses have to define.  Was that wrong?  From a technical 
viewpoint, I replaced a method with a data attribute, but from a doc/human 
viewpoint, replacing a property with a regular attribute did not seem wrong to 
me.

So, if there are guidelines about “almost certainly wrong” uses of the ABC 
machinery, they should IMO be documented.

--

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



[issue10946] bdist doesn’t pass --skip-build on to subcommands

2011-06-12 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
hgrepos: +27

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



[issue10946] bdist doesn’t pass --skip-build on to subcommands

2011-06-12 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


Added file: http://bugs.python.org/file22335/a099e7001aa8.diff

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



[issue10946] bdist doesn’t pass --skip-build on to subcommands

2011-06-12 Thread Éric Araujo

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

I’ll edit the patch to use set_undefined_options.

--
versions: +Python 3.3 -Python 3.1

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



[issue12319] [http.client] HTTPConnection.putrequest not support chunked Transfer-Encodings to send data

2011-06-12 Thread harobed

New submission from harobed steph...@harobed.org:

Hi,

HTTPConnection.putrequest not support chunked Transfer-Encodings to send data.

Exemple, I can't do PUT request with chunk transfert.

Regards,
Stephane

--
components: Library (Lib)
messages: 138203
nosy: harobed
priority: normal
severity: normal
status: open
title: [http.client] HTTPConnection.putrequest not support chunked 
Transfer-Encodings to send data
versions: Python 2.7, Python 3.3

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



[issue828450] sdist generates bad MANIFEST on Windows

2011-06-12 Thread Éric Araujo

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

I have changed some things in your patch.  There are still two issues:

1) setting os.sep to \ in the tests is not enough to trigger the bug.  This 
means that the tests really test something only on Windows.  I’ll edit them to 
mock the OS layer and return paths with \, so that we can check that manifest 
or sdist does the conversion.

2) I am not sure we can actually change this in distutils, because of the 
compatibility policy.  The documentation does not say that the MANIFEST file 
should be portable, so I’ll ask on distutils-sig for feedback.

--
resolution: accepted - 
Added file: http://bugs.python.org/file22336/manifest-sep.diff

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



[issue5243] Missing dependency in distutils build

2011-06-12 Thread Éric Araujo

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

 for projects already having a workaround, what will happen?
I think I have the answer to my question: if build_clib is called twice, the 
registry in Distribution will know that it has run and won’t run it again.  
I’ll test manually and if I confirm, I will commit this change.

--
assignee: tarek - eric.araujo

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



[issue11610] Improved support for abstract base classes with descriptors

2011-06-12 Thread Nick Coghlan

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

In that paragraph, I was only talking about cases where foo = 1 *isn't* a 
valid override (which, I hope you'll agree, it typically won't be).

Your described approach of declaring an abstract property and then overriding 
it with an ordinary class attribute is part of the answer I gave Eric in 
pointing out why a separate concept of an abstract attribute isn't really 
necessary.

--

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



[issue12320] test_packaging failures

2011-06-12 Thread Antoine Pitrou

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

The 3.x buildbots are red following the latest commits:

==
ERROR: test_cfg_to_args (packaging.tests.test_util.UtilTestCase)
--
Traceback (most recent call last):
  File 
/home/buildbot/buildarea/3.x.ochtman-gentoo-amd64/build/Lib/packaging/tests/test_util.py,
 line 499, in test_cfg_to_args
self.write_file('setup.cfg', SETUP_CFG % opts)
  File 
/home/buildbot/buildarea/3.x.ochtman-gentoo-amd64/build/Lib/packaging/tests/support.py,
 line 163, in write_file
f.write(content)
UnicodeEncodeError: 'ascii' codec can't encode character '\xc9' in position 
114: ordinal not in range(128)

==
FAIL: test_user_site (packaging.tests.test_command_install_dist.InstallTestCase)
--
Traceback (most recent call last):
  File 
/home/buildbot/buildarea/3.x.ochtman-gentoo-amd64/build/Lib/packaging/tests/test_command_install_dist.py,
 line 93, in test_user_site
self._test_user_site()
  File 
/home/buildbot/buildarea/3.x.ochtman-gentoo-amd64/build/Lib/packaging/tests/test_command_install_dist.py,
 line 122, in _test_user_site
self.assertTrue(os.path.exists(self.user_base))
AssertionError: False is not true

--
assignee: eric.araujo
components: Library (Lib), Tests
messages: 138207
nosy: eric.araujo, pitrou
priority: critical
severity: normal
stage: needs patch
status: open
title: test_packaging failures
type: behavior
versions: Python 3.3

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



[issue11610] Improved support for abstract base classes with descriptors

2011-06-12 Thread Darren Dale

Darren Dale dsdal...@gmail.com added the comment:

On Sat, Jun 11, 2011 at 7:32 PM, Eric Snow rep...@bugs.python.org wrote:

 Eric Snow ericsnowcurren...@gmail.com added the comment:
 Per your last message, if a specific descriptor has an abstract setter then 
 the descriptor should be considered abstract.  If the implementation of that 
 attribute is not a descriptor should it raise a TypeError?  If it is a 
 descriptor but it does not have a setter, should it likewise fail?

Consider a framework like Enthought's Traits or Riverbank Computing's
dip, where setting the value of a descriptor can result in other
objects being notified of the change. Both Traits and dip are based on
the concept of interfaces, but imagine someone wanted to develop
something similar based on ABCs. In that case, one could argue that
replacing the descriptor with a regular attribute, or another
read-only descriptor, would not satisfy the ABC specification. Then it
might be nice if the abc mechanisms could catch the error. But it
looks like this will be difficult in cases where the subclasses
replaces the descriptor, unless perhaps an AbstractDescriptor were
provided that explained how ABCMeta is going to identify abstract
methods:

class AbstractDescriptor(metaclass=abc.ABCMeta):
@property
@abc.abstractmethod
def __abstractmethods__(self):
# it would be nice if descriptors new their own names here,
# __abstractmethods__ could return: ('bar.fget', 'bar.fset')
return frozenset(m for m in ('fget', 'fset', 'fdel')
 if getattr(getattr(self, m, None),
'__isabstractmethod__', False))
@property
def __isabstractmethod__(self):
return True if self.__abstractmethods__

AbstractDescriptor.register(property)

Of course, not all descriptors would be required to derive from
AbstractDescriptor. There is no intended stick, but the carrot is
better integration with with ABCs.

Having said all that, I think the above suggestion including
__abstractmethods__ for descriptors makes unreasonable demands of
conformity between various descriptor implementations, and that Nick's
suggestion of simply asking descriptors to provide an
__isabstractmethod__ descriptor is probably good enough. Sufficient
documentation of an ABC's interface can cover the rest.

The inspect module or something like it may still be needed in ABCMeta
to work around the general issue Daniel discovered with staticmethod.
That way ABCMeta could inspect the descriptors themselves and attempt
to retrieve their __isabstractmethod__ value.

(aside: unlike ABCMeta.__new__, ABCMeta.register makes no attempt to
verify that the class being registered actually meets the
specification. Why not have ABCMeta.register perform the same checks
as ABCMeta.__new__, and raise an error if the registered class does
not conform to the specification?)

My work is going to keep me pretty busy over the next three weeks, and
I'm still not accomplished with Python's C-API. If someone else wants
to take a crack at the next patch, please feel free.

Darren

--

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



[issue11610] Improved support for abstract base classes with descriptors

2011-06-12 Thread Nick Coghlan

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

Non-conformant explicit registration is permitted on purpose to allow 
developers to only supply partial implementations when it is known that that is 
all a given application requires. Extremely impure, but quite practical :)

Note that the core logic of inspect.getattr_static isn't all that complicated. 
If necessary, it could be moved inside the module with ABCMeta and then wrapped 
or reference by the inspect module.

--

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



[issue4841] io's close() not handling errors correctly

2011-06-12 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions:  -Python 3.1

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



[issue3665] Support \u and \U escapes in regexes

2011-06-12 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 3.2, Python 3.3 -Python 3.1

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



[issue5905] strptime fails in non-UTF locale

2011-06-12 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

Still a problem in 3.2.1 or 3.3?

--
nosy: +terry.reedy
versions: +Python 3.2, Python 3.3 -Python 3.1

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



[issue2175] Expat sax parser silently ignores the InputSource protocol

2011-06-12 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 3.3 -Python 3.1

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



[issue8746] os.chflags() and os.lchflags() are not built when they should be be

2011-06-12 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 3.3 -Python 3.1

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



[issue2193] Cookie Colon Name Bug

2011-06-12 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 3.3 -Python 3.1

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



[issue1692335] Fix exception pickling: Move initial args assignment to BaseException.__new__

2011-06-12 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 3.3 -Python 3.1

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



[issue10037] multiprocessing.pool processes started by worker handler stops working

2011-06-12 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions:  -Python 3.1

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



[issue5219] IDLE/Tkinter: edit win stops updating when tooltip is active

2011-06-12 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 3.3 -Python 2.6, Python 3.1

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



[issue4653] Patch to fix typos for Py3K

2011-06-12 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 3.3 -Python 3.1

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



[issue9246] os.getcwd() hardcodes max path len

2011-06-12 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 3.3 -Python 3.1

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



[issue2716] Reimplement audioop because of copyright issues

2011-06-12 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
stage:  - needs patch
versions: +Python 3.3 -Python 2.6, Python 3.1

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



[issue7732] imp.find_module crashes Python if there exists a directory named __init__.py

2011-06-12 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 3.3 -Python 2.6, Python 3.1

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



[issue9405] crash when calling urllib.getproxies() under OSX with subprocess / particular memory usage

2011-06-12 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 3.3 -Python 2.6, Python 3.1

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



[issue1102] Add support for _msi.Record.GetString() and _msi.Record.GetInteger()

2011-06-12 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

Martin, would this go in a bugfix release or is it a new feature for 3.3 only?

--
nosy: +terry.reedy
versions: +Python 3.3 -Python 3.1

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



[issue1207466] installer ignores changed installation directory

2011-06-12 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions:  -Python 3.1

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



[issue1469629] __dict__ = self in subclass of dict causes a memory leak?

2011-06-12 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
nosy:  -BreamoreBoy
versions: +Python 3.3 -Python 3.1

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



[issue2122] mmap.flush does not check for errors on windows

2011-06-12 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 3.3 -Python 3.1

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



[issue1102] Add support for _msi.Record.GetString() and _msi.Record.GetInteger()

2011-06-12 Thread Martin v . Löwis

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

I lost track what problem precisely this patch solves, so it's hard to tell 
whether it's a bug fix or not.

--

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



[issue8372] socket: Buffer overrun while reading unterminated AF_UNIX addresses

2011-06-12 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

Is this a security issue or just a regular bug?

--
nosy: +terry.reedy

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



[issue8372] socket: Buffer overrun while reading unterminated AF_UNIX addresses

2011-06-12 Thread Antoine Pitrou

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

It's a potential security issue.

--
nosy: +neologix, rosslagerwall
versions: +Python 3.3

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



[issue7732] imp.find_module crashes Python if there exists a directory named __init__.py

2011-06-12 Thread Antoine Pitrou

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


--
nosy: +haypo

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



[issue1669539] Fix bug in os.path.join

2011-06-12 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

A bug for tracker purposes is a discrepancy between doc and code. That can be 
fixed in current versions. A design change is a feature request and can only go 
in future versions. A deprecation warning for one cycle is desirable when 
appropriate.

os.path.isabs(path) 
Return True if path is an absolute pathname. On Unix, that means it begins with 
a slash, on Windows that it begins with a (back)slash after chopping off a 
potential drive letter.

From what you report, the code does just that, so there is no bug.
Breaking code just because you do not like the current definition is very 
unlikely to be accepted.

Adding a .isrelative(path) that seems to be equivalent to 'not .ispath' is 
unlikely to accepted. People who care about the presence of a drive letter can 
write path[1]==':'

os.path.join(path1[, path2[, ...]]) 
Join one or more path components intelligently. If any component is an absolute 
path, all previous components (on Windows, including the previous drive letter, 
if there was one) are thrown away, and joining continues.

 import os
 os.path.join('foo', 'a:bar')
'foo\\a:bar'

Producing a non-path does not seem intelligent, so I agree that this a bug. I 
am not sure what this should produce. 'foo/bar', 'a:foo/bar', and raising an 
exception would be candidates. All would be better than the current useless 
return. In any case, a bug fix patch can only fix bugs and should not be 
intermixed with feature patches.

As to the second sentence: your proposal to change documented and inplemented 
semantics is, again, a feature request, not a bug fix.

If you want to continue with your feature requests, you can if you wish 
reclassify this issue, retitle again, and open a new behavior issue for the 
path bug and upload a bugfix-only patch. Before or along with doing so, I would 
suggest discussion on the python-ideas list.

--
nosy: +terry.reedy -BreamoreBoy
title: Change (fix!) os.path.isabs() semantics on Win32 - Fix bug in 
os.path.join
versions: +Python 3.3 -Python 2.6, Python 3.1

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



[issue1599254] mailbox: other programs' messages can vanish without trace

2011-06-12 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

D. Watson, could you remove obsolete patches and leave just the ones a patch 
reviewer should look at?

--
nosy: +r.david.murray, terry.reedy -BreamoreBoy
versions: +Python 3.3 -Python 3.1

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



[issue8746] os.chflags() and os.lchflags() are not built when they should be be

2011-06-12 Thread Garrett Cooper

Garrett Cooper yaneg...@gmail.com added the comment:

I apologize for taking so long with this. The attached patch is for test_posix 
against trunk (I shuffled around some code and extended some things to improve 
PosixTester.tearDown). Let me know if I need to wash, rinse, repeat for py3k, 
etc.

Thanks!

# Standard ports copy of python 2.7 without the *chflags configure fix.

$ python2.7 Lib/test/test_posix.py 
testNoArgFunctions (__main__.PosixTester) ... ok
test_access (__main__.PosixTester) ... ok
test_chdir (__main__.PosixTester) ... ok
test_chflags (__main__.PosixTester) ... skipped 'test needs os.chflags()'
test_chown (__main__.PosixTester) ... ok
test_confstr (__main__.PosixTester) ... ok
test_dup (__main__.PosixTester) ... ok
test_dup2 (__main__.PosixTester) ... ok
test_fchown (__main__.PosixTester) ... ok
test_fdopen (__main__.PosixTester) ... ok
test_fstat (__main__.PosixTester) ... ok
test_fstatvfs (__main__.PosixTester) ... ok
test_ftruncate (__main__.PosixTester) ... ok
test_getcwd_long_pathnames (__main__.PosixTester) ... ok
test_getresgid (__main__.PosixTester) ... ok
test_getresuid (__main__.PosixTester) ... ok
test_initgroups (__main__.PosixTester) ... ok
test_lchflags_regular_file (__main__.PosixTester) ... skipped 'test needs 
os.lchflags()'
test_lchflags_symlink (__main__.PosixTester) ... skipped 'test needs 
os.lchflags()'
test_lchown (__main__.PosixTester) ... ok
test_lsdir (__main__.PosixTester) ... ok
test_osexlock (__main__.PosixTester) ... ok
test_osshlock (__main__.PosixTester) ... ok
test_pipe (__main__.PosixTester) ... ok
test_setresgid (__main__.PosixTester) ... ok
test_setresgid_exception (__main__.PosixTester) ... ok
test_setresuid (__main__.PosixTester) ... ok
test_setresuid_exception (__main__.PosixTester) ... ok
test_stat (__main__.PosixTester) ... ok
test_statvfs (__main__.PosixTester) ... ok
test_strerror (__main__.PosixTester) ... ok
test_tempnam (__main__.PosixTester) ... ok
test_tmpfile (__main__.PosixTester) ... ok
test_umask (__main__.PosixTester) ... ok
test_utime (__main__.PosixTester) ... ok

--
Ran 35 tests in 0.020s

OK (skipped=3)

# Hand compiled version using sources from trunk.

$ /scratch/python/2.7/bin/python Lib/test/test_posix.py 
testNoArgFunctions (__main__.PosixTester) ... ok
test_access (__main__.PosixTester) ... ok
test_chdir (__main__.PosixTester) ... ok
test_chflags (__main__.PosixTester) ... ok
test_chown (__main__.PosixTester) ... ok
test_confstr (__main__.PosixTester) ... ok
test_dup (__main__.PosixTester) ... ok
test_dup2 (__main__.PosixTester) ... ok
test_fchown (__main__.PosixTester) ... ok
test_fdopen (__main__.PosixTester) ... ok
test_fstat (__main__.PosixTester) ... ok
test_fstatvfs (__main__.PosixTester) ... ok
test_ftruncate (__main__.PosixTester) ... ok
test_getcwd_long_pathnames (__main__.PosixTester) ... ok
test_getresgid (__main__.PosixTester) ... ok
test_getresuid (__main__.PosixTester) ... ok
test_initgroups (__main__.PosixTester) ... ok
test_lchflags_regular_file (__main__.PosixTester) ... ok
test_lchflags_symlink (__main__.PosixTester) ... ok
test_lchown (__main__.PosixTester) ... ok
test_lsdir (__main__.PosixTester) ... ok
test_osexlock (__main__.PosixTester) ... ok
test_osshlock (__main__.PosixTester) ... ok
test_pipe (__main__.PosixTester) ... ok
test_setresgid (__main__.PosixTester) ... ok
test_setresgid_exception (__main__.PosixTester) ... ok
test_stat (__main__.PosixTester) ... ok
test_statvfs (__main__.PosixTester) ... ok
test_strerror (__main__.PosixTester) ... ok
test_tempnam (__main__.PosixTester) ... ok
test_tmpfile (__main__.PosixTester) ... ok
test_umask (__main__.PosixTester) ... ok
test_utime (__main__.PosixTester) ... ok

--
Ran 35 tests in 0.009s

OK

--
Added file: http://bugs.python.org/file22337/issue8746-test_posix.patch

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



[issue12320] test_packaging failures

2011-06-12 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 9eecfeaa591a by Éric Araujo in branch 'default':
Specify the encoding of the setup.cfg in one packaging test (#12320)
http://hg.python.org/cpython/rev/9eecfeaa591a

--
nosy: +python-dev

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



[issue12206] Documentation Std. Library 15.7.5 LogRecord objects: Parameters: level(currently wrong) - levelno (correct)

2011-06-12 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


Removed file: http://bugs.python.org/file22187/unnamed

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



[issue3665] Support \u and \U escapes in regexes

2011-06-12 Thread Éric Araujo

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

FYI,
+raise error(bogus escape: %s % repr(escape))

can be written simply as

+raise error(bogus escape: %r % escape)

--
nosy: +eric.araujo

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



[issue4653] Patch to fix typos in C code

2011-06-12 Thread Éric Araujo

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

Martin would be the expert for bdist_wininst.

--
nosy: +eric.araujo
title: Patch to fix typos for Py3K - Patch to fix typos in C code

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



[issue12320] test_packaging failures

2011-06-12 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 0e22c47b47a3 by Éric Araujo in branch 'default':
Also specify encoding when reading setup.cfg (#12320)
http://hg.python.org/cpython/rev/0e22c47b47a3

--

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



[issue8372] socket: Buffer overrun while reading unterminated AF_UNIX addresses

2011-06-12 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
type: behavior - security

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



[issue1598083] Top-level exception handler writes to stdout unsafely

2011-06-12 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 3.3 -Python 2.6, Python 3.1

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



[issue10340] asyncore doesn't properly handle EINVAL on OSX

2011-06-12 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 3.3 -Python 3.1

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



[issue6696] Profile objects should be documented

2011-06-12 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 3.3 -Python 3.1

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



[issue4180] warnings.simplefilter(always) does not make warnings always show up

2011-06-12 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 3.3 -Python 3.1

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



[issue5945] PyMapping_Check returns 1 for lists

2011-06-12 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 3.3 -Python 3.1

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



[issue3006] subprocess.Popen causes socket to remain open after close

2011-06-12 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 3.3 -Python 2.6, Python 3.1

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



[issue6697] Check that _PyUnicode_AsString() result is not NULL

2011-06-12 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 3.3 -Python 3.1

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



[issue8743] set() operators don't work with collections.Set instances

2011-06-12 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

If the code were acting exactly as documented, I would consider this a feature 
request. But require that the parameter also be an instance of set() (from 
original message) is too limited.

 set() | frozenset()
set()

So 'set' in their operator based counterparts require their arguments to be 
sets. (doc) seems to be meant to be more generic, in which case 'instance of 
collections.Set' seems reasonable. To be clear, the doc could be updated to 
... sets, frozensets, and other instances of collections.Set.

Both set and frozenset support set to set comparisons.  This includes 
comparisons between the two classes.

 set() == frozenset()
True

so perhaps comparisons should be extended also.

--
nosy: +terry.reedy

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



[issue8036] Interpreter crashes on invalid arg to spawnl on Windows

2011-06-12 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 3.3 -Python 3.1

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



[issue8847] crash appending list and namedtuple

2011-06-12 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions:  -Python 3.1

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



[issue1429] FD leak in SocketServer

2011-06-12 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 3.3 -Python 3.1

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



[issue9614] _pickle is not entirely 64-bit safe

2011-06-12 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions:  -Python 3.1

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



[issue11205] Evaluation order of dictionary display is different from reference manual.

2011-06-12 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

If I understand, since the present patch uses present opcode semantics, adding 
a rotate, it could go into 2.7 and 3.2. Correct?

3.3 could get an improved patch that instead changed opcodes to expect key and 
value in the other order.

--
nosy: +terry.reedy
stage:  - patch review
versions:  -Python 3.1

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



[issue8372] socket: Buffer overrun while reading unterminated AF_UNIX addresses

2011-06-12 Thread Charles-François Natali

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

The patches look good to me, except that instead of passing
(addrlen  buflen) ? buflen : addrlen

as addrlen argument every time makesockaddr is called, I'd prefer if this min 
was done inside makesockaddr itself, i.e. perform min(addrlen, sizeof(struct 
sockaddr_un)) in the AF_UNIX switch case (especially since addrlen is only used 
for AF_UNIX).
Also, this would be the occasion to put a short explanatory comment 
(possibility of non NULL-terminated sun_path and unreliable length returned by 
syscalls).

--

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



[issue7969] shutil.copytree error handling non-standard and partially broken

2011-06-12 Thread Ameya Lokare

Ameya Lokare lokare.am...@gmail.com added the comment:

shutil.Error is raised in copytree, copyfile and move, with a different format 
in each case. I was thinking the Error argument format could be documented in 
the descriptions of these functions (possibly with some examples). What do you 
think?

--

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



[issue11197] information leakage with SimpleHTTPServer

2011-06-12 Thread Ori Livneh

Ori Livneh ori.liv...@gmail.com added the comment:

I updated the patch, making the emendations suggested by Eric's review, and 
making a few additional changes. I was bothered that translate_path was 
duplicating functionality from _url_collapse_path_split, so I made some 
corrections to the latter and rewrote translate_path so that it uses 
_url_collapse_path_split and implements only the checks necessary for 
translating the path to a path on the local file system path.

translate_path relies on os.path to make sure the path is safe, which is (I 
think) also the proper way to do things, since it's not good to have to 
remember to update path semantics in http.server if Python is ported to 
additional platforms.

I also read the various specs and made sure entities are unquoted at the 
appropriate point.

--
Added file: http://bugs.python.org/file22338/translate_path_rev2.patch

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



[issue2122] mmap.flush does not check for errors on windows

2011-06-12 Thread Hirokazu Yamamoto

Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:

This issue seems to be reproduced in following way.

1. Attach USB flash drive. (On my machine, it was attached as E drive)

2. Run python interactive shell and run following commands.
   (Confirmed on Python2.6)

   import mmap
   f = open(e:/temp.tmp, w+b)
   f.write(foo)
   f.flush()
   m = mmap.mmap(f.fileno(), 3)
   m[:] = xxx

3. Detach USB flash drive violently here! (Without safety mechanism
   to detach USB flash drive, just plug it off) Note that
   python shell is still running.

4. Enter following command in python shell.
   m.flush()
   It returns *0*. (Means failure)

--

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