George Yoshida qui...@users.sourceforge.net added the comment:
Under 2.6, there's another failure:
As for 2.6/2.7 issues, changing 'assertListEqual' to 'assertEqual' should
suffice.
--
keywords: +patch
nosy: +quiver
Added file: http://bugs.python.org/file18496/2.6.diff
Heejin ahee...@gmail.com added the comment:
Thank you for your answer.
I cannot provide any error messages or stack traces
because it really *crashed*. python.exe suddenly stops
working and a windows pops up saying something
like python.exe had a problem and needed to be closed
I cannot say
Eli Bendersky eli...@gmail.com added the comment:
Alexander, I agree that the documentation isn't yet in a perfect state and can
be further improved. Since there's still time for the next milestone of 3.2,
there's no reason not to improve it.
So I'm open to ideas and am willing to submit
Tim Golden m...@timgolden.me.uk added the comment:
Thanks for the feedback. I'll close this for now as works for me. Feel free
to reopen if you can come up with anything fresh.
--
resolution: - works for me
stage: - committed/rejected
status: open - closed
Mark Dickinson dicki...@gmail.com added the comment:
Fixed in 2.6 in r83970 (3.1 and 2.7 were fixed in revisions r83781, r83782).
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8433
New submission from Mathieu Bridon boche...@fedoraproject.org:
The attached patch allows for shell curly braces with fnmatch.filter().
This makes the following possible:
import fnmatch
import os
for file in os.listdir('.'):
... if fnmatch.fnmatch(file, '*.{txt,csv}'):
... print
Mathieu Bridon boche...@fedoraproject.org added the comment:
The attached patch allows for shell curly braces with fnmatch.filter().
Oops, I meant that it allows for curly braces in fnmatch.translate(), which
makes it available in the whole fnmatch module.
--
Changes by Martin v. Löwis mar...@v.loewis.de:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2944
___
___
Tim Golden m...@timgolden.me.uk added the comment:
Closing as won't fix: this would be the same if you had any code which tried
to do os.mkdir (aux). By way of comparison, Info-ZIP's UnZip returns
checkdir error: aux exists but is not directory which actually seems less
useful!
I don't
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +Hunanyan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue670664
___
___
Python-bugs-list
Changes by R. David Murray rdmur...@bitdance.com:
Removed file: http://bugs.python.org/file18495/unnamed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9577
___
R. David Murray rdmur...@bitdance.com added the comment:
Thanks for this suggestion and patch.
In general I think more tests would be good, A test for {} would clarify what
you are expecting there.
--
nosy: +r.david.murray
stage: - patch review
versions: +Python 3.2
New submission from David Austin nitsuadi...@gmail.com:
On a Linux Xeon server (x86_64) largefile support is (incorrectly)
not included.
configure determines:
checking size of int... 4
checking size of long... 8
checking size of void *... 8
checking size of short... 2
checking size of float...
Éric Araujo mer...@netwok.org added the comment:
In Bash, * and ? match only characters in existing files, but {a,b} always
produces two filenames, even if the files don’t exist. Do we want to mimic this
behavior in fnmatch?
--
nosy: +eric.araujo
New submission from Mark Dickinson dicki...@gmail.com:
The PPC Tiger buildbot build output shows (e.g., for 2.7):
/Users/buildbot/buildarea/2.7.parc-tiger-1/build/Modules/_multiprocessing/semaphore.c:421:
warning: initialization makes pointer from integer without a cast
Mark Dickinson dicki...@gmail.com added the comment:
The same warnings show up on the x86 Tiger buildbot. Leopard and Snow Leopard
seem to be fine, though.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9586
Changes by Mark Dickinson dicki...@gmail.com:
--
title: warning: comparison between pointer and integer in multiprocessing
build on PPC/Tiger - warning: comparison between pointer and integer in
multiprocessing build on Tiger
___
Python tracker
STINNER Victor victor.stin...@haypocalc.com added the comment:
r83971 enables test.support.TESTFN_UNDECODEABLE on non-Windows OSes.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9425
___
R. David Murray rdmur...@bitdance.com added the comment:
Ah, I had forgotten that detail, Éric.
No, it doesn't seem as if implementing braces as matchers is appropriate.
fnmatch is only implementing the shell file name globbing. Doing the equivalent
of brace expansion would have to be done
Mark Dickinson dicki...@gmail.com added the comment:
See also:
http://paulbeachsblog.blogspot.com/2007/12/building-firebird-20x-macos-semaphoreh.html
It looks as though SEM_FAILED is defined as -1 on OS X 10.4, and (sem_t *)-1 on
OS X 10.5+, so it's really a bug in the OS X header file.
STINNER Victor victor.stin...@haypocalc.com added the comment:
I commited nullimporter_unicode.patch with an unit test as r83972.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9425
___
Changes by STINNER Victor victor.stin...@haypocalc.com:
Removed file: http://bugs.python.org/file18434/nullimporter_unicode.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9425
___
R. David Murray rdmur...@bitdance.com added the comment:
My view is that people using fnmatch/glob are expecting to get back the same
list of files that they would if they ran 'echo globpattern' in the shell.
The major shells (sh, bash, zsh, csh) seem to be pretty consistent in this
regard
Mark Dickinson dicki...@gmail.com added the comment:
BTW, as far as I can tell from the standard (see e.g., section 6.5.9p2 of
www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf
), comparison between a pointer and an integer gives undefined behaviour,
except in the case where the integer can
STINNER Victor victor.stin...@haypocalc.com added the comment:
Looking at the only use case of _syscmd_file(), it may not even
be worth the trouble of adding the -b option. Fixing the doc-string
may be enough: (...)
Well, my problem is that _syscmd_file() fails with a non encodable
STINNER Victor victor.stin...@haypocalc.com added the comment:
@lemburg: Your mail client likes to change the issues' title by adding some
spaces :-)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9560
Changes by STINNER Victor victor.stin...@haypocalc.com:
Removed file: http://bugs.python.org/file18469/_PyFile_FromFdUnicode.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9425
___
Antoine Pitrou pit...@free.fr added the comment:
My view is that people using fnmatch/glob are expecting to get back
the same list of files that they would if they ran 'echo
globpattern' in the shell.
But it's not the case since we currently don't process braces anyway.
The major shells
George Yoshida qui...@users.sourceforge.net added the comment:
test_initgroups fails only if the test is invoked by a root and
the user is assigned to only one group.
If I understand test_initgroups correctly, it
(1)looks for an unused gid,
(2)inits process user's group with that gid,
(3)checks
Marc-Andre Lemburg m...@egenix.com added the comment:
STINNER Victor wrote:
STINNER Victor victor.stin...@haypocalc.com added the comment:
Looking at the only use case of _syscmd_file(), it may not even
be worth the trouble of adding the -b option. Fixing the doc-string
may be enough:
STINNER Victor victor.stin...@haypocalc.com added the comment:
@r.david.murray, @lemburg: So, can I commit my patch?
However, it is still possible to have that path contain weird
characters, so the example is still valid.
It's not only a question of weird characters. Use case of #8611:
Changes by STINNER Victor victor.stin...@haypocalc.com:
Removed file: http://bugs.python.org/file18444/pyerr_warnformat-2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9425
___
Changes by George Yoshida qui...@users.sourceforge.net:
Removed file: http://bugs.python.org/file18498/test_setgroups.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9581
___
Changes by George Yoshida qui...@users.sourceforge.net:
Added file: http://bugs.python.org/file18499/test_setgroups.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9581
___
Antoine Pitrou pit...@free.fr added the comment:
(2) define a PY_SEM_FAILED macro and use that
That sounds reasonable.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9586
___
George Yoshida qui...@users.sourceforge.net added the comment:
FAIL: test_setgroups (test.test_posix.PosixGroupsTester)
--
Traceback (most recent call last):
File /home/antoine/py3k/__svn__/Lib/test/test_posix.py, line
Changes by George Yoshida qui...@users.sourceforge.net:
Added file: http://bugs.python.org/file18500/py3k.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9581
___
Jesse Noller jnol...@gmail.com added the comment:
I agree with Antoine
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9586
___
___
Marc-Andre Lemburg m...@egenix.com added the comment:
STINNER Victor wrote:
STINNER Victor victor.stin...@haypocalc.com added the comment:
@r.david.murray, @lemburg: So, can I commit my patch?
Yes, go ahead with 3.2 patch. It should not go into 2.7, though,
since it doesn't solve any
New submission from Denver Coneybeare denver.coneybe...@gmail.com:
It would be great if unittest.assertRaises() returned the raised exception when
it passes. This allows the caller to easily perform further checks on the
exception, such as its attribute values. Currently assertRaises()
Antoine Pitrou pit...@free.fr added the comment:
George's patches work for me (thank you!).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9581
___
Antoine Pitrou pit...@free.fr added the comment:
Closing as fixed, since nothing strange seems to have appeared so far.
--
resolution: accepted - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8411
Changes by Antoine Pitrou pit...@free.fr:
--
assignee: pitrou -
nosy: +belopolsky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2281
___
___
Antoine Pitrou pit...@free.fr added the comment:
All of them should probably raise io.UnsupportedOperation instead (which
inherits from both IOError and ValueError).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7862
Changes by Antoine Pitrou pit...@free.fr:
--
assignee: - michael.foord
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9587
___
___
R. David Murray rdmur...@bitdance.com added the comment:
Well, Windows supports * and ? globs, but not brace expansion, as far as I can
tell (at least on XP, which is what I currently have access to).
In fact, I don't believe I've run into brace expansion anywhere except in the
unix shell,
Antoine Pitrou pit...@free.fr added the comment:
The expression largefile support is a bit misleading. What it simply does is
that it uses long long instead of long in order to store and compute file
offsets. But, since a long is wide enough on your system to hold a off_t (both
are 64 bits),
Tim Golden m...@timgolden.me.uk added the comment:
I don't see any reason to turn this down except, perhaps, for keeping something
simple.
Certainly I don't believe that Windows users will be confused by the fact that
there are wildcards other than * and ?. fnmatch already implements [] and
Daniel Urban urban.dani...@gmail.com added the comment:
@abstractmethod
@classmethod
def ...
doesn't work because classmethod objects doesn't have a __dict__, so setting
arbitrary attributes don't work, and abstractmethod tries to set the
__isabstractmethod__ atribute to True.
The other
Nick Coghlan ncogh...@gmail.com added the comment:
Have we had any luck getting this to play nicely with the buildbots yet? (I
lost track of where the last checkin got to). The necessary Modules/Setup
change to adjust when _collections is built should have propagated through by
now.
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9548
___
___
Python-bugs-list mailing
Nick Coghlan ncogh...@gmail.com added the comment:
Note that the following sequence should work even without changing the buildbot
behaviour:
- in one checkin, modify Modules/Setup.dist. The buildbots will pick up this
change on their *subsequent* build (as the build triggered by this checkin,
Changes by Nick Coghlan ncogh...@gmail.com:
--
resolution: - accepted
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9567
___
___
Python-bugs-list
Changes by Nick Coghlan ncogh...@gmail.com:
--
nosy: +ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9573
___
___
Python-bugs-list mailing
STINNER Victor victor.stin...@haypocalc.com added the comment:
Commited as r83981.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9560
___
New submission from Brian Curtin cur...@acm.org:
The fix for #2304 causes issues on Windows if you have file associations setup
that aren't Python interpters. In my case I have an association setup to open
.py files in gvim, which causes the shell tests to hang until I quit the
editor, then
STINNER Victor victor.stin...@haypocalc.com added the comment:
r83981 closes #9560: avoid the filename in _syscmd_file() to fix a bug with non
encodable filenames in platform.architecture().
--
___
Python tracker rep...@bugs.python.org
Antoine Pitrou pit...@free.fr added the comment:
About wchar2char:
- PEP 383 says “With this PEP, non-decodable bytes = 128 will be represented
as lone surrogate codes U+DC80..U+DCFF. Bytes below 128 will produce
exceptions”. Your patch accepts bytes below 128.
- I don't understand why you
Brian Curtin cur...@acm.org added the comment:
Attached is a patch that fixes this for me, and I *think* it's looking in the
most correct area for the information.
Tim or any other Windows users, would you mind seeing that the skip does not
occur on your machines, thus allowing it to properly
Antoine Pitrou pit...@free.fr added the comment:
This is a variant of the kind of annoyance pointed out in #9548. Here, it seems
addbuilddir() in Lib/site.py shouldn't import sysconfig, because it imports the
re module.
--
nosy: +pitrou
___
Python
Florent Xicluna florent.xicl...@gmail.com added the comment:
For some reason, sys.modules['heapq'] contains the Python implementation
instead of the C implementation.
Tested with r83981 on python 3:
Python 3.2a1+ (py3k:83981M, Aug 13 2010, 19:02:31)
[GCC 4.3.4] on linux2
Type help,
New submission from Anthony Long antl...@gmail.com:
import unittest
from selenium import selenium
class SetupSomething(unittest.TestCase):
def setUp(self, URL):
self.selenium = selenium(localhost, , *firefox, self.URL)
def tearDown(self):
pass
class
Florent Xicluna florent.xicl...@gmail.com added the comment:
Definitely it does not look like a bug.
import unittest
help(unittest.TestCase)
...
| If it is necessary to override the __init__ method, the base class
| __init__ method must always be called. It is important that subclasses
Brian Curtin cur...@acm.org added the comment:
I've tried changing privileges for a user and I'm not seeing that they get
reflected in real-time while an application is running. Maybe I'm not doing it
right, but I'm not seeing it. I'm also not able to find anything about that
being supported
Mark Dickinson dicki...@gmail.com added the comment:
What flox said.
There's no reversal here: you've defined an __init__ method that takes no
arguments. The unittest framework tries to instantiate a TestSomething
instance by calling it with two arguments (one of which is self). If you
Antoine Pitrou pit...@free.fr added the comment:
Here is a patch which works if the patch in #9548 is also applied.
It won't work alone because opening a file in text mode currently imports
locale which imports re, etc. ... all before adding the build dir to sys.path.
Of course, since the
David Watson bai...@users.sourceforge.net added the comment:
The CS_PATH variable is a colon-separated list of directories (the value for
the PATH environment variable that finds all standard utilities), so the file
system encoding is certainly correct there.
I don't see any reference to an
David Watson bai...@users.sourceforge.net added the comment:
I don't see why confstr() values shouldn't change. sysconf() values can change
between calls, IIRC. Implementations can also define their own confstr
variables - they don't have to stick to the POSIX stuff.
And using a loop means
Mark Dickinson dicki...@gmail.com added the comment:
Actually, since SEM_FAILED isn't public and is only used in one file, it seems
simplest just to redefine it on Mac. Here's a patch.
--
keywords: +patch
Added file: http://bugs.python.org/file18505/sem_failed_tiger.patch
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
That was a bit abrupt, want't it? Denver is well aware of this and said:
but sometimes using the context manager approach adds unnecessary bloat to
already long-winded unit tests.
I happen to agree with him and don't see why we
Michael Foord mich...@voidspace.org.uk added the comment:
Sorry, it's a reopened bug requesting a feature that has already been
considered and rejected previously. Yes I was abrupt, my apologies - I'm trying
to clear my backlog before I go away.
--
Mark Dickinson dicki...@gmail.com added the comment:
Same error on the buildbots, here:
http://www.python.org/dev/buildbot/3.x/builders/PPC%20Leopard%203.x/builds/288/steps/compile/logs/stdio
--
___
Python tracker rep...@bugs.python.org
New submission from Freek Dijkstra fr...@macfreek.nl:
I came across three limitation in the multiprocessing module that were not
handled correctly.
Attached is a file that reproduces the errors in minimal code. I tested them
with Python 2.6.5 and 3.1.2.
Expected result:
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +jnoller
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9592
___
___
Python-bugs-list
Barry A. Warsaw ba...@python.org added the comment:
After chatting with __ap__ on irc, i'm going to reject this patch for 2.6.6.
--
nosy: +barry
priority: release blocker -
status: open - closed
___
Python tracker rep...@bugs.python.org
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
components: -Regular Expressions
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9593
___
Daniel Urban urban.dani...@gmail.com added the comment:
Here is a patch, which adds a descriptor to classmethod and staticmethod.
Pseudocode:
__get__(self, inst, owner):
if getattr(inst.callable, '__isabstractmethod__', False):
return True
return False
__set__(self, inst,
Antoine Pitrou pit...@free.fr added the comment:
U+0085 corresponds to a line terminator (*). and codecs.open() observes this
convention.
Do note that the new io.open() (or the built-in open() in 3.x) only recognizes
'\r' and '\n' as line separators.
In any case, changing this behaviour would
Antoine Pitrou pit...@free.fr added the comment:
The patch doesn't check that instantiating these methods work at all.
--
nosy: +benjamin.peterson, pitrou
stage: - patch review
versions: +Python 3.2 -Python 3.1
___
Python tracker
Changes by Mark Dickinson dicki...@gmail.com:
--
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9180
___
___
Joseph Copenhaver joseph.copenha...@gmail.com added the comment:
I now recognize the issue was in regard to format problems and not python, but
the area where this code will be used requires the use of the codecs module.
Is there any way to get the efficiency of codecs I/O readlines() chunking
Tim Golden m...@timgolden.me.uk added the comment:
Assuming I understand you correctly, could I propose this rather less involved
patch which simply specifies the sys.executable as part of the command line.
The test doesn't propose to test file associations and indeed two of the test
already
Brian Curtin cur...@acm.org added the comment:
Yeah that's much better :)
I should have asked if you left out sys.executable out intentionally before
coming up with my patch...I assumed it was intended to be different due to
shell=1 or something.
Go ahead and apply if you want.
--
Daniel Urban urban.dani...@gmail.com added the comment:
If I understand correctly, some tests are needed for the instantiation of
classes with abstract static/classmethods. I added them in issue5867a.diff.
--
Added file: http://bugs.python.org/file18512/issue5867a.diff
Antoine Pitrou pit...@free.fr added the comment:
Is there any way to get the efficiency of codecs I/O readlines()
chunking behavior and specify a list of characters to use? Can the
file delimiter be changed in python as in perl?
No, but you can use readlines() from the standard open()
Greg Brockman g...@mit.deu added the comment:
I'll take another stab at this. In the attachment (assign-tasks.patch), I've
combined a lot of the ideas presented on this issue, so thank you both for your
input. Anyway:
- The basic idea of the patch is to record the mapping of tasks to
Joseph Copenhaver joseph.copenha...@gmail.com added the comment:
It is better, thanks.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9593
___
Michael Foord mich...@voidspace.org.uk added the comment:
It would be nice to settle this.
Personally I would like to see the defaults being:
Linux: ~/.pythonx.y
Mac OS X: ~/.pythonx.y with a fallback of ~/Library/Preferences/.pythonx.y
Windows: ~/pythonx.y perhaps with a backup of
Brian Curtin cur...@acm.org added the comment:
Fixed in r83983, r83984, and r83985. Thanks, Tim.
--
assignee: tim.golden - brian.curtin
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
title: Skip subprocess shell tests on Windows per file association
Antoine Pitrou pit...@free.fr added the comment:
I've committed a patch in r83986. I will watch the buildbots and close if
everything's fine.
--
assignee: - pitrou
resolution: - fixed
stage: needs patch - committed/rejected
status: open - pending
Antoine Pitrou pit...@free.fr added the comment:
Thank you. I'm not an ABC expert but it looks ok. Guido, what do you think?
--
nosy: +gvanrossum
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5867
STINNER Victor victor.stin...@haypocalc.com added the comment:
New version of the patch _Py_wchar2char-2.patch:
- _Py_wchar2char() only escapes characters in range U+DC80..U+DCFF (instead of
U+DC00..U+DCFF)
- add a comment to _Py_char2wchar()
I don't understand why you decrement `size` in
Changes by STINNER Victor victor.stin...@haypocalc.com:
Removed file: http://bugs.python.org/file18431/_Py_wchar2char.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9425
___
New submission from Sridhar Ratnakumar sridh...@activestate.com:
From Mac/Makefile.in:
[...]
ifneq ($(LIPO_32BIT_FLAGS),)
lipo $(LIPO_32BIT_FLAGS) -output
$(DESTDIR)$(prefix)/bin/python$(VERSION)-32 pythonw
lipo $(LIPO_32BIT_FLAGS) -output
Sridhar Ratnakumar sridh...@activestate.com added the comment:
Specifically python$(VERSION)-32 python instead of python$(VERSION)-32
pythonw?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9594
Guido van Rossum gu...@python.org added the comment:
As you figured out it is not yet supported.
I object to making changes to the classmethod implementation.
I expect the best thing to do is to add a new
@abc.abstractclassmethod
decorator defined in pure Python (maybe the definition of
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: pitrou
priority: normal
severity: normal
status: open
title: PC/getpathp.c unused?
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9595
___
New submission from Antoine Pitrou pit...@free.fr:
PC/getpathp.c claims it is “Used by DOS, OS/2, Windows 3.1, Windows 95/98,
Windows NT”, but Modules/getpath.c already tries to be cross-platform. It is
not obvious whether the former is used at all.
--
components: Interpreter Core
Changes by Dmitry Chichkov dchich...@gmail.com:
Added file: http://bugs.python.org/file18515/dc.dict.bench.0.02.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9520
___
Changes by Antoine Pitrou pit...@free.fr:
--
resolution: - invalid
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9595
___
1 - 100 of 151 matches
Mail list logo