[issue13983] make test giving bus error

2012-02-09 Thread Martin v . Löwis
Martin v. Löwis added the comment: Python 2.4 is no longer maintained. -- nosy: +loewis resolution: -> out of date status: open -> closed ___ Python tracker ___ ___

[issue13982] python returning errorneous value for sqrt

2012-02-09 Thread Martin v . Löwis
Martin v. Löwis added the comment: Python 2.4 is no longer maintained. -- nosy: +loewis resolution: -> out of date status: open -> closed ___ Python tracker ___ ___

[issue13175] packaging uses wrong line endings in RECORD files on Windows

2012-02-09 Thread Paul Moore
Paul Moore added the comment: > Maybe you’re using the old PyPI release or Tarek’s outdated Bitbucket > repository.  http://hg.python.org/distutils is current, contains pysetup and > supports -m distutils2.run. I just did pip install distutils2 in a virtualenv. If that doesn't work then yes,

[issue13977] importlib simplification

2012-02-09 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue13961] Have importlib use os.replace()

2012-02-09 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue13983] make test giving bus error

2012-02-09 Thread Shivam
New submission from Shivam : Hi All, On mips64 biit machine running linux I have installed python2.4_2.4.4 from link "http://archive.debian.net/etch/python2.4"; using below commands: ./configure –enable-shared make make install But make test fails with bus error, below is the log for same

[issue13982] python returning errorneous value for sqrt

2012-02-09 Thread Shivam
New submission from Shivam : On mips64 biit machine running linux I have installed python2.4_2.4.4 from link "http://archive.debian.net/etch/python2.4"; using below commands: ./configure –enable-shared make make install But when I check value of sqrt(9.0) on python, python returns:“4.94065

[issue13782] xml.etree.ElementTree: Element.append doesn't type-check its argument

2012-02-09 Thread Eli Bendersky
Eli Bendersky added the comment: Terry, I agree with 3. The "regression" here is insignificant enough in my view to warrant mucking with already released versions. -- ___ Python tracker __

[issue13782] xml.etree.ElementTree: Element.append doesn't type-check its argument

2012-02-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Option 1 is to fix the regression in the 2.7/3.2 Python versions and change the C version to conform to the doc and older Python versions., even though it is the wrong error, and even though Python asserts disappear with -O (which is why it is the wrong error

[issue13865] distutils documentation says Extension has "optional" argument

2012-02-09 Thread Éric Araujo
Éric Araujo added the comment: Fixed, cheers! -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue13865] distutils documentation says Extension has "optional" argument

2012-02-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset cf1c466ee9e0 by Éric Araujo in branch '2.7': distutils 2.7’s Extension does not support optional (#13865). http://hg.python.org/cpython/rev/cf1c466ee9e0 -- nosy: +python-dev ___ Python tracker

[issue13813] "sysconfig.py" and "distutils/util.py" redundancy

2012-02-09 Thread Éric Araujo
Éric Araujo added the comment: See also #9841. What situation do you want background on? -- ___ Python tracker ___ ___ Python-bugs-l

[issue13193] test_packaging and test_distutils failures

2012-02-09 Thread Éric Araujo
Éric Araujo added the comment: Bumping up to release blocker, as I don’t want the next bugfixes to go out without reverting the last changeset (but won’t right know as I need to fix the bug there was on Windows). -- nosy: +benjamin.peterson, georg.brandl priority: high -> release bloc

[issue9442] Update sys.version doc

2012-02-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6fdcfe348435 by Éric Araujo in branch 'default': Use sys.version_info instead of sys.version in packaging. http://hg.python.org/cpython/rev/6fdcfe348435 -- ___ Python tracker

[issue13462] Improve code and tests for Mixin2to3

2012-02-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7243c3f18769 by Éric Araujo in branch 'default': Start improving 2to3 code in packaging (#13462). http://hg.python.org/cpython/rev/7243c3f18769 -- ___ Python tracker

[issue13462] Improve code and tests for Mixin2to3

2012-02-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset b024621a1be6 by Éric Araujo in branch 'default': Start improving 2to3 code (#13462). http://hg.python.org/distutils2/rev/b024621a1be6 New changeset cc0f4d208193 by Éric Araujo in branch 'python3': Merge fixes for #13462 and others from default http

[issue9442] Update sys.version doc

2012-02-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0cc1fbbb473d by Éric Araujo in branch 'default': Use sys.version_info instead of sys.version. http://hg.python.org/distutils2/rev/0cc1fbbb473d -- ___ Python tracker __

[issue13974] packaging: test for set_platform()

2012-02-09 Thread Éric Araujo
Éric Araujo added the comment: Is the effect of the set_platform call permanent? If yes, there needs to be a line like self.addCleanup(util.set_platform, util.get_platform()) to make sure the test restores its environment. -- assignee: tarek -> eric.araujo versions: +3rd party _

[issue13975] packaging: change_root() test for os2

2012-02-09 Thread Éric Araujo
Éric Araujo added the comment: OS/2 is not supported by 3.3; someone said on python-dev they wanted to take over maintenance but they wanted to use a different compiler toolchain, which would effectively change the platform definition, so it’s not clear at this point that OS/2 support will co

[issue13968] Support recursive globs

2012-02-09 Thread Éric Araujo
Éric Araujo added the comment: FTR, packaging has an extended glob function (not my code) which supports sets (with { , }) and recursivity (**). -- ___ Python tracker ___ _

[issue13198] Remove duplicate definition of write_record_file

2012-02-09 Thread Éric Araujo
Éric Araujo added the comment: Mike, if you don’t have the time to finish this shortly, I will do it, as I need this fixed for another bug. Just let me know if you’d like to do it. -- ___ Python tracker

[issue13175] packaging uses wrong line endings in RECORD files on Windows

2012-02-09 Thread Éric Araujo
Éric Araujo added the comment: > I tried to reproduce using distutils2, but don't know how distutils2 > works - there's no pysetup and python -m distutils2.run doesn't work > the same as python -m packaging.run. Maybe you’re using the old PyPI release or Tarek’s outdated Bitbucket repository.

[issue13189] New bdist_simple binary distribution format for packaging

2012-02-09 Thread Éric Araujo
Éric Araujo added the comment: I initially had a lot of things to reply to but then though it would be unpractical to reply, then the usual life/work/time thing got in the way and I busied myself with easier issues. As Nick said on python-ideas, I should write a PEP, which would probably be a

[issue13981] time.sleep() should use nanosleep() if available

2012-02-09 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- nosy: +rosslagerwall ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue13123] bdist_wininst uninstaller does not remove pycache directories

2012-02-09 Thread Éric Araujo
Éric Araujo added the comment: No, I worked on other things in my Python time. I did get a Windows image, but failed to configure the VM*. I’ve found some doc and will try again, or go back to the idea of giving you a patch to test. * (It gives a BSOD at boot, so one could argue that it c

[issue13782] xml.etree.ElementTree: Element.append doesn't type-check its argument

2012-02-09 Thread Eli Bendersky
Eli Bendersky added the comment: >> It looks more useful to me to have a consistent behavior between C and >> Python version. I agree, especially is we now consider to expose the C API by default, leaving the Python API as a fallback. -- ___ Pytho

[issue13882] PEP 410: Use decimal.Decimal type for timestamps

2012-02-09 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file24461/time_decimal-13.patch ___ Python tracker ___ ___ Python-bugs-list m

[issue13882] PEP 410: Use decimal.Decimal type for timestamps

2012-02-09 Thread STINNER Victor
STINNER Victor added the comment: Patch version 14: - rewrite the conversion from float to _PyTime_t: use base 2 with high precision and then simplify the fraction. The conversion from decimal.Decimal uses base 10 and do also simplify the fraction. - write tests on functions converting _PyT

[issue13968] Support recursive globs

2012-02-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Ah, OK, so what you are saying is that rglob returns the concatenation > of the results of running ls with the argument glob in each > subdirectory of a walk starting with the current directory, except > that the returned names have paths anchored in the curre

[issue13968] Support recursive globs

2012-02-09 Thread R. David Murray
R. David Murray added the comment: Ah, OK, so what you are saying is that rglob returns the concatenation of the results of running ls with the argument glob in each subdirectory of a walk starting with the current directory, except that the returned names have paths anchored in the current d

[issue13968] Support recursive globs

2012-02-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: > The alternative interpretation of the pattern, that it is fully > matched against the CWD, takes you back to having to explain what '..' > means when matched against a given location in the recursion, starting > with the CWD. I clearly don't have a good intui

[issue13968] Support recursive globs

2012-02-09 Thread R. David Murray
R. David Murray added the comment: Oh, yeah, and there's still the question of whether or not directories are matched by the terminal glob pattern, which I would naively expect they would be, in either interpretation, but I wouldn't be sure. -- ___

[issue13968] Support recursive globs

2012-02-09 Thread R. David Murray
R. David Murray added the comment: @antoine: no, my description involves recursion. It assumes that the path portion of the glob specifies the directories to *start* from, but that the filename glob portion then applies recursively to any of those start directories. The alternative interpre

[issue13968] Support recursive globs

2012-02-09 Thread Yuval Greenfield
Yuval Greenfield added the comment: As R. David Murray has suggested I think there may be a middle ground. def rglob(fn_filter, root='.'): That would mean the default use case is still easy to remember as rglob('*.py') and also there aren't any explanations needed for how this function wo

[issue13981] time.sleep() should use nanosleep() if available

2012-02-09 Thread STINNER Victor
New submission from STINNER Victor : With the PEP 410, it is possible to store timestamps with a resolution of 1 nanosecond. Python should use nanosleep() if the function is available for time.sleep(). This issue depends on issue #13882. -- components: Library (Lib) messages: 153000 n

[issue13981] time.sleep() should use nanosleep() if available

2012-02-09 Thread STINNER Victor
Changes by STINNER Victor : -- dependencies: +PEP 410: Use decimal.Decimal type for timestamps ___ Python tracker ___ ___ Python-bugs-

[issue13968] Support recursive globs

2012-02-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I don't know, is it? From what has been said so far I'd expect > */c/d/*.py to look for *.py files in all c/d subdirectories of direct > subdirectories of the current directory, and subdirectories of those > c/d directories. But I wouldn't expect the c/d mat

[issue13968] Support recursive globs

2012-02-09 Thread R. David Murray
R. David Murray added the comment: I don't know, is it? From what has been said so far I'd expect */c/d/*.py to look for *.py files in all c/d subdirectories of direct subdirectories of the current directory, and subdirectories of those c/d directories. But I wouldn't expect the c/d matchin

[issue8754] quote bad module name in ImportError-like messages

2012-02-09 Thread Brett Cannon
Brett Cannon added the comment: With issue1559549 adding a 'name' argument, I'm going to push to have it gain a reasonable default __str__ if 'name' is set but nothing else. That patch also contains some helper functions which should simplify Eric's patch. -- dependencies: +ImportErro

[issue10211] BufferObject doesn't support new buffer interface

2012-02-09 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: +skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue9990] PyMemoryView_FromObject alters the Py_buffer after calling PyObject_GetBuffer when ndim 1

2012-02-09 Thread Stefan Krah
Stefan Krah added the comment: I ran the demo in the pep-3118 repo, and it is fixed (see #10181): $ ./bufrel Accessing buffer directly... Accessing buffer through a memory view... Done. -- dependencies: -Problems with Py_buffer management in memoryobject.c (and elsewhere?) resolutio

[issue13980] getcwd problem does not return cwd

2012-02-09 Thread R. David Murray
R. David Murray added the comment: That's just how function definitions in Python work. The prototype is evaluated when the function is defined, not when it is run, so the default value of path will always be the value of getcwd at the time the function *defintion* is done (which will genera

[issue13968] Support recursive globs

2012-02-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: > This discussion does mean I plan to add path filtering though, that > works on the "dirpath" value directly (and *will* allow multi-part > matches). So the "Python source files in subdirectories named 'd' of > directories named 'c'" will be written something l

[issue8305] memoview[0] creates an invalid view if ndim != 1

2012-02-09 Thread Stefan Krah
Stefan Krah added the comment: Fixed in #10181. -- dependencies: -Problems with Py_buffer management in memoryobject.c (and elsewhere?) resolution: -> duplicate stage: needs patch -> committed/rejected status: open -> closed superseder: -> Problems with Py_buffer management in memor

[issue7433] MemoryView memory_getbuf causes segfaults, double call to tp_releasebuffer

2012-02-09 Thread Stefan Krah
Stefan Krah added the comment: Closing, since it's fixed in #10181. -- dependencies: -Problems with Py_buffer management in memoryobject.c (and elsewhere?) resolution: -> duplicate stage: needs patch -> committed/rejected status: open -> closed superseder: -> Problems with Py_buffer

[issue13980] getcwd problem does not return cwd

2012-02-09 Thread fif0
Changes by fif0 : -- title: getcwd problem -> getcwd problem does not return cwd ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue13968] Support recursive globs

2012-02-09 Thread Nick Coghlan
Nick Coghlan added the comment: Given the complexities proposed for the dir matching, I'm shifting back to a solid -1 on this. Trying to match multi-part directories with globs is a nightmare and I currently don't allow it at all in walkdir. Instead, dir filtering and file filtering are expre

[issue13980] getcwd problem

2012-02-09 Thread fif0
New submission from fif0 : Please take a look at the detached file. At the first call of the methode foo(), path and the second getcwd are the same. After the directory change, the default value path is not the the current working directory. -- components: Interpreter Core files: mayb

[issue1528593] Printing: No print dialog or page setup

2012-02-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue13979] Automatic *libc.so loading behaviour

2012-02-09 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +meador.inge stage: -> needs patch versions: +Python 3.2, Python 3.3 -Python 2.6 ___ Python tracker ___

[issue13782] xml.etree.ElementTree: Element.append doesn't type-check its argument

2012-02-09 Thread Florent Xicluna
Florent Xicluna added the comment: Actuallly, the assertions were commented in the upstream repository. https://bitbucket.org/effbot/et-2009-provolone/src/9e9e7f2710aa/elementtree/CHANGES#cl-46 > (1.3a6 released) > - Removed most assert statements from the Element and ElementTree code. It lo

[issue13979] Automatic *libc.so loading behaviour

2012-02-09 Thread David Goulet
New submission from David Goulet : I'm working with the LTTng (Linux Tracing) team and we came across a problem with our user-space tracer and Python default behaviour. We provide a libc wrapper that instrument free() and malloc() and is usable with a simple LD_PRELOAD. This lib *was* named "

[issue13953] Get rid of doctests in packaging.tests.test_version

2012-02-09 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: I've done some cleanups -- Added file: http://bugs.python.org/file24471/issue13953_bf6f306ad5cf.patch ___ Python tracker ___ _

[issue13968] Support recursive globs

2012-02-09 Thread R. David Murray
R. David Murray added the comment: Well, in that case I would expect that the argument 'c/*.py' would start walking in the c directory, but I definitely did not get that impression from Antoine's explanation of how the function works. I again advocate separating the starting path specificatio

[issue11620] winsound.PlaySound() with SND_MEMORY should accept bytes instead of strings

2012-02-09 Thread Brian Curtin
Changes by Brian Curtin : -- assignee: -> brian.curtin keywords: +needs review stage: needs patch -> patch review ___ Python tracker ___

[issue11620] winsound.PlaySound() with SND_MEMORY should accept bytes instead of strings

2012-02-09 Thread Tim Lesher
Tim Lesher added the comment: This patch should both correct the incorrect acceptance of strings and the incorrect rejection of buffer objects when using SND_MEMORY. -- keywords: +patch Added file: http://bugs.python.org/file24470/11620-PlaySound.patch

[issue13742] Add a key parameter (like sorted) to heapq.merge

2012-02-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: FWIW, Guido approves of the idea, msg152969 in #4356 -- nosy: +terry.reedy ___ Python tracker ___ _

[issue4356] Add "key" argument to "bisect" module functions

2012-02-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Already on tracker as #13742 Add a key parameter (like sorted) to heapq.merge -- ___ Python tracker ___

[issue13968] Support recursive globs

2012-02-09 Thread Yuval Greenfield
Yuval Greenfield added the comment: Given /home/a /home/a/k.py /home/a/c/j.py /home/b/z.py /home/b/c/f.py and a current directory of /home/a, we'd have: pattern matches --- --- *.pyk.py, c/j.py c/*.py c/j.py c* c ../*.py ..

[issue13965] Windows 64-bit installer actually installing a 32-bit version

2012-02-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: Martin, thanks for the explanation. Hopefully, this tracker entry will serve to permanently document why Python2 on Windows behaves as it does. -- ___ Python tracker

[issue13491] Fixes for sqlite3 doc

2012-02-09 Thread Petri Lehtinen
Petri Lehtinen added the comment: Ah, and I added a working example of a custom text_factory function to Doc/includes/sqlite3/text_factory.py, too. -- ___ Python tracker ___ __

[issue13491] Fixes for sqlite3 doc

2012-02-09 Thread Petri Lehtinen
Petri Lehtinen added the comment: Attaching an updated patch with the following changes: - Updated to apply on current default branch - No examples included in the documentation now require createdb.py to be run. There were only three examples that required it, but these were refactored a bi

[issue1559549] ImportError needs attributes for module and file name

2012-02-09 Thread R. David Murray
R. David Murray added the comment: On the drive home...are you borrowing one of Google's self driving cars? :) -- ___ Python tracker ___ __

[issue13961] Have importlib use os.replace()

2012-02-09 Thread Charles-François Natali
Changes by Charles-François Natali : -- keywords: +needs review, patch stage: -> patch review Added file: http://bugs.python.org/file24468/importlib_replace.diff ___ Python tracker

[issue1559549] ImportError needs attributes for module and file name

2012-02-09 Thread Brett Cannon
Brett Cannon added the comment: Thanks, Brian! I'll do a review tonight on the drive home (and maybe even write the docs up). -- ___ Python tracker ___ __

[issue13921] sqlite3: OptimizedUnicode obsolete in Py3k

2012-02-09 Thread Petri Lehtinen
Petri Lehtinen added the comment: Committed the patch after moving the documentation note to a source code comment instead. Thanks for reviews. -- keywords: -needs review ___ Python tracker _

[issue13921] sqlite3: OptimizedUnicode obsolete in Py3k

2012-02-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0fc10a33eb4c by Petri Lehtinen in branch 'default': Undocument and clean up sqlite3.OptimizedUnicode http://hg.python.org/cpython/rev/0fc10a33eb4c -- nosy: +python-dev resolution: -> fixed stage: patch review -> committed/rejected status:

[issue1559549] ImportError needs attributes for module and file name

2012-02-09 Thread Brian Curtin
Brian Curtin added the comment: Here's an updated patch which creates two convenience functions, PyErr_SetFromImportErrorWithName and PyErr_SetFromImportErrorWithNameAndPath. I figure the two common cases are that you'll want to set just a name or you'll want a name and a path. *WithName is

[issue8184] multiprocessing.managers will not fail if listening ocket already in use

2012-02-09 Thread Charles-François Natali
Charles-François Natali added the comment: Committed to default. I won't backport it to other branches, since it's more of a feature request than a bug fix. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 3.3 -Python 2.6

[issue13978] OSError exception in multiprocessing module when using os.remove() on NFS

2012-02-09 Thread Javier Jardón
New submission from Javier Jardón : I have this little test case: import multiprocessing manager = multiprocessing.Manager() del manager and I get this: Traceback (most recent call last): File "/usr/lib/python2.7/multiprocessing/util.py", line 261, in _run_finalizers finalizer() Fil

[issue13968] Support recursive globs

2012-02-09 Thread R. David Murray
R. David Murray added the comment: So given /home/a /home/a/k.py /home/a/c/j.py /home/b/z.py /home/b/c/f.py and a current directory of /home/a, we'd have: pattern matches --- --- *.py k.py, c/j.py c/*.pyc/j.py c*c [?] ../*

[issue13977] importlib simplification

2012-02-09 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: -> brett.cannon stage: -> needs patch type: -> enhancement versions: +Python 3.3 ___ Python tracker ___

[issue13977] importlib simplification

2012-02-09 Thread Jim Jewett
New submission from Jim Jewett : http://hg.python.org/cpython/file/aba513307f78/Lib/importlib/_bootstrap.py#l974 974 # The hell that is fromlist ... 975 if not fromlist: 976 # Return up to the first dot in 'name'. This is complicated by the fact 977 # that 'name'

[issue4356] Add "key" argument to "bisect" module functions

2012-02-09 Thread Guido van Rossum
Guido van Rossum added the comment: I'm +1 on adding this feature. See discussion in python-ideas. PS. It should also be added to heapq. -- ___ Python tracker ___ __

[issue13968] Support recursive globs

2012-02-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: > My vote could change if the final semantics are intuitive and unambiguous. How about "match the given glob from this directory and any sub-directory"? That sounds quite intuitive and unambiguous to me. -- ___ Pyth

[issue4356] Add "key" argument to "bisect" module functions

2012-02-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: On python-ideas, thread "Optional key to `bisect`'s functions?" Guido wrote "Bingo. That clinches it. We need to add key=." 'That' being the fact that values that have keys may not be comparable themselves (in py3), so that comparing (key,value) pairs may rai

[issue13968] Support recursive globs

2012-02-09 Thread R. David Murray
R. David Murray added the comment: How about having separate starting path and glob arguments, where the glob cannot contain any directory? I'm -1 on this function as it stands. My vote could change if the final semantics are intuitive and unambiguous. (It's OK if getting the correct intui

[issue13968] Support recursive globs

2012-02-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > you should use the same algorithm for all globs (e.g. "a/*.py"), shouldn't > > you? > > That specific string would start the walk from the current directory IIUC. Yes but would it match b/a/setup.py? -- ___ Py

[issue13123] bdist_wininst uninstaller does not remove pycache directories

2012-02-09 Thread Paul Moore
Paul Moore added the comment: Have you had a chance to look at this yet? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue13968] Support recursive globs

2012-02-09 Thread Yuval Greenfield
Yuval Greenfield added the comment: > you should use the same algorithm for all globs (e.g. "a/*.py"), shouldn't > you? That specific string would start the walk from the current directory IIUC. -- ___ Python tracker

[issue13189] New bdist_simple binary distribution format for packaging

2012-02-09 Thread Paul Moore
Paul Moore added the comment: We're running a bit lower on time now. Any progress? The whole discussion on python-dev around binary formats petered out with no real conclusions :-( -- ___ Python tracker _

[issue13175] packaging uses wrong line endings in RECORD files on Windows

2012-02-09 Thread Paul Moore
Paul Moore added the comment: Any progress on this one? I tried to reproduce using distutils2, but don't know how distutils2 works - there's no pysetup and python -m distutils2.run doesn't work the same as python -m packaging.run. Can we at least get packaging working in time for 3.3, even i

[issue13968] Support recursive globs

2012-02-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Yes, that's what I meant by a "single exemption for double dots". The > solution should start the walk from wherever the double dots lead it > to. I don't think that's a single exemption; you should use the same algorithm for all globs (e.g. "a/*.py"), should

[issue13968] Support recursive globs

2012-02-09 Thread Yuval Greenfield
Yuval Greenfield added the comment: > That depends how you implement it. If you detect that ".." exists and glob for "pn*" inside it, you will probably find "../png". Yes, that's what I meant by a "single exemption for double dots". The solution should start the walk from wherever the double d

[issue13968] Support recursive globs

2012-02-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Again with 'a/b/c/d' and let's add a file 'a/b/png'. > > If the curdir is 'c' and you use rglob('../pn*') you won won't find > '../png' as you would be walking only in the curdir. That depends how you implement it. If you detect that ".." exists and glob for

[issue13968] Support recursive globs

2012-02-09 Thread Yuval Greenfield
Yuval Greenfield added the comment: > This would be quirky. I don't think '..' should be treated specially. > (there's also the symlinks problem) Again with 'a/b/c/d' and let's add a file 'a/b/png'. If the curdir is 'c' and you use rglob('../pn*') you won won't find '../png' as you would be w

[issue1559549] ImportError needs attributes for module and file name

2012-02-09 Thread Brett Cannon
Brett Cannon added the comment: On Thu, Feb 9, 2012 at 00:03, Brian Curtin wrote: > > Brian Curtin added the comment: > > Yep, I just need to actually make use of the feature. I'll generate a new > patch shortly. > If you can generate it before 17:30 EST today I can review it or at least hel

[issue13968] Support recursive globs

2012-02-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: > >> * Behave like a glob for every subdirectory. Meaning that every > >> relative path gets a '*/' prepended to it. Eg rglob('c/d') started > >> from the directory 'a' will yield 'a/b/c/d'. > > > That's what I would expect. That way, rglob('__init__.py') would

[issue13958] Comment _PyUnicode_FromId

2012-02-09 Thread Jim Jewett
Jim Jewett added the comment: After clarification, the original change was backed out. These are C Identifiers, and nothing beyond ASCII is guaranteed, but other characters are in practice possible. -- resolution: -> fixed status: open -> closed _

[issue13968] Support recursive globs

2012-02-09 Thread Yuval Greenfield
Yuval Greenfield added the comment: >> * Behave like a glob for every subdirectory. Meaning that every >> relative path gets a '*/' prepended to it. Eg rglob('c/d') started >> from the directory 'a' will yield 'a/b/c/d'. > That's what I would expect. That way, rglob('__init__.py') would > find

[issue13968] Support recursive globs

2012-02-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: > * Behave like a glob for every subdirectory. Meaning that every > relative path gets a '*/' prepended to it. Eg rglob('c/d') started > from the directory 'a' will yield 'a/b/c/d'. That's what I would expect. That way, rglob('__init__.py') would find all files

[issue13968] Support recursive globs

2012-02-09 Thread R. David Murray
R. David Murray added the comment: Hmm. Just to make it clear where I'm coming from, though, I should also point out that I use rdiff-backup, which uses the **/yadayada syntax, and I hate it any time I have to try to figure out what such a glob is going to actually match. -- __

[issue13968] Support recursive globs

2012-02-09 Thread Yuval Greenfield
Yuval Greenfield added the comment: > I have to say that the non-obvious subtleties you point out in your rglob > make me think I personally would probably opt to use Nick's module directly > instead, so that I was sure what I was getting. I didn't notice these corner cases initially because

[issue13968] Support recursive globs

2012-02-09 Thread Eli Bendersky
Eli Bendersky added the comment: > I have to say that the non-obvious subtleties you point out in your rglob > make me think I personally would probably opt to use Nick's module directly > instead, so that I was sure what I was getting. > > -- +1 -- _

[issue13976] threading.local doesn't support super()

2012-02-09 Thread Dima Tisnek
Dima Tisnek added the comment: ah feeling stupid only minutes later. A has to inherit from object() and then it works fine. -- resolution: -> invalid status: open -> closed ___ Python tracker

[issue13976] threading.local doesn't support super()

2012-02-09 Thread Dima Tisnek
New submission from Dima Tisnek : import threading import pprint class A: def __init__(self, **kw): pprint.pprint("a") super(A, self).__init__() class B(threading.local, A): def __init__(self, **kw): pprint.pprint("b") super(B, self).__init__() if __na

[issue13968] Support recursive globs

2012-02-09 Thread R. David Murray
R. David Murray added the comment: I have to say that the non-obvious subtleties you point out in your rglob make me think I personally would probably opt to use Nick's module directly instead, so that I was sure what I was getting. -- nosy: +r.david.murray __

[issue13968] Support recursive globs

2012-02-09 Thread Yuval Greenfield
Yuval Greenfield added the comment: Thanks for the bug find Antoine, I worked surprisingly hard trying to make this right in more edge cases and while fixing it I noticed rglob/globtree has 3 options: * Behave like a glob for every subdirectory. Meaning that every relative path gets a '*/' p

[issue10287] NNTP authentication should check capabilities

2012-02-09 Thread Hynek Schlawack
Hynek Schlawack added the comment: I think I've fixed it to do as described. Alas, I have no Easynews account to test it (I mailed their support about that so maybe that'll change). Would someone with an account mind to test, if it works? Nathan? -- Added file: http://bugs.python.org/

[issue13968] Support recursive globs

2012-02-09 Thread Nick Coghlan
Nick Coghlan added the comment: This discussion (particularly my final globtree recipe) made me realise that the exact same approach would greatly improve the usability of the all_paths, file_paths and dir_paths iterators in walkdir [1]. Accordingly, walkdir 0.4 will let you write a recursive

  1   2   >