Nadeem Vawda nadeem.va...@gmail.com added the comment:
BTW,what is the best way to check for case insensitive file-system?
The test here merely checks if sys.platform returns mac, darwin or win32.
I would suggest not checking at all. If the system is case-sensitive, the test
will pass, so it
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment:
Re-New to Python - Re-Started with Py3K in 2011.
'Found myself in a dead-end after 10 days of work because a KOI8-R spam mail
causes the file I/O decoding process to fail -
and there is NO WAY TO HANDLE THIS with mailbox.py!
(Went
New submission from Jakob Bowyer jkb...@gmail.com:
os.system is broken in several fundamental ways. We already have the subprocess
module for accessing other processes, lets send os.system the same way as
os.Popen.
--
components: Library (Lib)
messages: 126995
nosy: Jakob.Bowyer
SilentGhost ghost@gmail.com added the comment:
Steven, I'm wondering why do you raise ArgumentTypeError there? From reading
doc strings of the relevant errors, it seems obvious to me that it should be
ArgumentError. Argument is being used there, there's no conversion occurring
anywhere.
R. David Murray rdmur...@bitdance.com added the comment:
anthony: this is python3-only problem.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10976
___
Giampaolo Rodola' g.rod...@gmail.com added the comment:
Please note that on FreeBSD things work a little bit differently for
non-blocking sockets:
http://www.freebsd.org/cgi/man.cgi?query=sendfilesektion=2
In details I'm talking about:
When using a socket marked for non-blocking I/O,
Changes by Antoine Pitrou pit...@free.fr:
--
priority: high - critical
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9124
___
Éric Araujo mer...@netwok.org added the comment:
This bug tracker is used for Python only. Problems with PyPI should be
directed to catalog-...@python.org. Thanks.
--
assignee: docs@python -
components: -Documentation
nosy: +eric.araujo -docs@python
resolution: - invalid
stage: -
Ronald Oussoren ronaldousso...@mac.com added the comment:
Michael: Why must the subprocess started by IDLE be in 32-bit mode if we'd run
IDLE in 32-bit mode? AFAIK there is no technical reason to do so.
Not that running IDLE in 32-bit mode is an option, it wouldn't fix the issue by
itself
New submission from STINNER Victor victor.stin...@haypocalc.com:
Attached script, bug.py, ends with:
$ python3.2 source2.py
deque.remove(x): x not in deque
python: ./Modules/_collectionsmodule.c:536: deque_count: Assertion
`leftblock-rightlink != ((void *)0)' failed.
Abandon (core dumped)
R. David Murray rdmur...@bitdance.com added the comment:
I'm afraid so. The python3 uptake process was expected to take five years
overall, and we are only up to about the second year at this point. So while
you may have been away from Python for 6 years, you came back right in the
middle
Michael Foord mich...@voidspace.org.uk added the comment:
Ronald: The subprocess also uses Tkinter (right?) so would also require 32bit.
FWIW I'm -1 on X11 as well.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10973
New submission from STINNER Victor victor.stin...@haypocalc.com:
Attached script (bug2.py) ends with:
$ ~/prog/SVN/py3k/python bug2.py
python: ./Modules/_threadmodule.c:399:
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
versions: +Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11004
___
___
R. David Murray rdmur...@bitdance.com added the comment:
That should have been too late to make API changes for 3.2.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9124
___
Antoine Pitrou pit...@free.fr added the comment:
Interesting! If you are motivated, a further approach would be to expose the
compressor and decompressor objects from the C extension, and write the file
object in Python (as in Lib/gzip.py).
One thing I was unsure of is how to handle
Steven Bethard steven.beth...@gmail.com added the comment:
It's an ArgumentTypeError because that's what you're supposed to raise inside
type functions:
http://docs.python.org/dev/library/argparse.html#type
(Note that argparse.FileType.__call__ is what will be called when we pass
Nadeem Vawda nadeem.va...@gmail.com added the comment:
Interesting! If you are motivated, a further approach would be to expose
the compressor and decompressor objects from the C extension, and write
the file object in Python (as in Lib/gzip.py).
I had initially considered doing something
Nadeem Vawda nadeem.va...@gmail.com added the comment:
* I had initially considered doing something *like* that
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5863
___
Antoine Pitrou pit...@free.fr added the comment:
How would I go about doing this? Would it be sufficient to raise a
DeprecationWarning if the argument is provided by the caller, and add
a note to the docstring and documentation?
Yes, totally.
--
New submission from Antoine Pitrou pit...@free.fr:
Since r87651, subprocess can raise a RuntimeWarning if pipe2() fails.
I'm not sure there's any point in that, since it's very low-level and it's
nothing the user can do about anyway.
Ironically, there is no warning if pipe2() is not available
Antoine Pitrou pit...@free.fr added the comment:
This can be seen on the sparc Debian buildbot by the way:
/home/pybot/buildarea-sid/3.x.klose-debian-sparc/build/Lib/subprocess.py:1085:
RuntimeWarning: pipe2 set errno ENOSYS; falling back to non-atomic pipe+fcntl.
c2pread, c2pwrite =
Ronald Oussoren ronaldousso...@mac.com added the comment:
On 25 Jan, 2011, at 13:41, Michael Foord wrote:
Michael Foord mich...@voidspace.org.uk added the comment:
Ronald: The subprocess also uses Tkinter (right?) so would also require
32bit.
Not AFAIK. I'm pretty sure I've had a
Michael Foord mich...@voidspace.org.uk added the comment:
The reason I think it is an issue is that a previous release of Python 2.7
could start IDLE (the initial window would appear), but a dialog would also
appear saying that it could not connect to the subprocess and IDLE would exit.
IDLE
New submission from Joshua Blount he...@joshuablount.com:
When I get a stack traceback, it would be very handy if the traceback gave me
the relevant class name (along with all the current information).
--
components: Interpreter Core
messages: 127015
nosy: stickwithjosh
priority:
Nils Philippsen n...@redhat.com added the comment:
NB: it's not the shell, but the kernel which interprets the shebang line (and
subsequently calls the shell /bin/sh with it if it's missing, causing funny
effects when it encounters the first import line and you happen to have
ImageMagick
Andrew Brown brow...@gmail.com added the comment:
This bug trigger can be simplified down, see my attached bug_simplified.py
The problem seems to be in deque_count(). What's happening is that after the
rotations, the 16 items reside in the last 16 slots of one block.
In deque_count()'s for
Armin Rigo ar...@users.sourceforge.net added the comment:
The expectation is that it returns the memory footprint of the given
object, and only it (not taking into account sharing, caching,
dependencies or anything else).
It would be nice if this was a well-defined definition, but
Kristian Vlaardingerbroek kristian.vlaardingerbr...@gmail.com added the
comment:
Following tests in test_descr.py fail with both methods:
test_iter_items
test_iter_keys
test_iter_values
regrtest -T causes the following test to fail aswell:
test_slots
The test_iter_* tests fail because
On Thu, Jan 06, 2011 at 12:15:26AM +, Antoine Pitrou wrote:
IMO they should all be prefixed with an underscore. Greg?
+1 to this suggestion. It would make it consistent with expectations.
But yeah, I also think that all public methods should be in __all__ is
not a guarantee.
Sandro Tosi sandro.t...@gmail.com added the comment:
On Tue, Jan 25, 2011 at 02:20, R. David Murray rep...@bugs.python.org wrote:
That might be handy. I thought you were trying to roughly reproduce the
current help (which dumps it all out at once), which is why I suggested
epilog.
Kristian Vlaardingerbroek kristian.vlaardingerbr...@gmail.com added the
comment:
Following tests in test_descr.py fail:
test_collect_generations (line 261)
test_frame (line 183)
test_get_count (line 249)
These tests count the number of allocations and a trace function can mess this
up.
Antoine Pitrou pit...@free.fr added the comment:
The expectation is that it returns the memory footprint of the given
object, and only it (not taking into account sharing, caching,
dependencies or anything else).
It would be nice if this was a well-defined definition, but
unfortunately
New submission from Day Barr bugs.python@daybarr.com:
logging.dictConfig is new in version 2.7 but the documentation does not say
this.
http://docs.python.org/release/2.7/library/logging.html#logging.dictConfig
c.f. NullHandler, also new in version 2.7 and explicitly documented as such:
Maciej Fijalkowski fij...@gmail.com added the comment:
I can hardly think about a specification that would potentially help me
identify actual sizes. Even as a rough estimation. Which experts you had in
mind?
--
___
Python tracker
Antoine Pitrou pit...@free.fr added the comment:
Which experts you had in mind?
People who know how the Python implementation works.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10994
Maciej Fijalkowski fij...@gmail.com added the comment:
Which experts you had in mind?
People who know how the Python implementation works.
I'm serious. What semantics would make sense to anyone? Even if you know
implementation quite well a single number per object does not provide enough
Brett Cannon br...@python.org added the comment:
You could return -1 for everything. =)
In all seriousness, it could simply be proportional. IMO as long as people
realize if a list takes up less space than a dict then the numbers seem fine to
me.
--
Antoine Pitrou pit...@free.fr added the comment:
Even if you know implementation quite well a single number per object
does not provide enough information.
Enough information for what? It can certainly provide information about
the overhead of that particular object (again, regardless of
Kristian Vlaardingerbroek kristian.vlaardingerbr...@gmail.com added the
comment:
test_metaclass has some doctests failing because of the added __locals__.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10992
Kristian Vlaardingerbroek kristian.vlaardingerbr...@gmail.com added the
comment:
msg127022 applies to test_gc and not test_descr
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10992
___
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Changing the title to reflect broader scope of this issue. Json tests were
moved to Lib/test/json_tests in r86875.
--
title: Move unittest test package to Lib/test - Move test sub-packages to
Lib/test
Changes by Raymond Hettinger rhettin...@users.sourceforge.net:
--
assignee: - rhettinger
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11004
___
Skip Montanaro s...@pobox.com added the comment:
I disagree. Both os.popen and os.system work fine in the proper context
and are easier to use (and remember how to use) than the subprocess
module. You don't give any examples of breakage, or whether said
breakage is platform-dependent.
R. David Murray rdmur...@bitdance.com added the comment:
Hmm. Am I misunderstanding something about epilog, then? I thought it was
placed at the end of the other help text?
--
___
Python tracker rep...@bugs.python.org
Skip Montanaro s...@pobox.com added the comment:
Given this code:
#!/usr/bin/env python
class C:
def bomb(self):
1/0
c = C()
c.bomb()
when run it produces
Traceback (most recent call last):
File stdin, line 8, in module
File stdin, line 5, in bomb
ZeroDivisionError: integer
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
ISTM an API change is okay if it fixes a critical usability bug.
Also, if this is going to ship as-is, the docs should get a big warning right
at the top. Perhaps the source code should also emit a notice that the module
Joshua Blount he...@joshuablount.com added the comment:
Yes!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11007
___
___
Python-bugs-list
Sandro Tosi sandro.t...@gmail.com added the comment:
On Tue, Jan 25, 2011 at 19:29, R. David Murray rep...@bugs.python.org wrote:
R. David Murray rdmur...@bitdance.com added the comment:
Hmm. Am I misunderstanding something about epilog, then? I thought it was
placed at the end of the
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
I'm inclined to reject this out-of-hand. The os.system() call is a basic call
that had been around for very long time, has been widely used successfully, and
has parallels in other languages.
Please elaborate on is broken
Antoine Pitrou pit...@free.fr added the comment:
Well, given you have the line number at which the method is defined, it is easy
to know which class it belongs to.
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
ISTM that moving from argument parser to another is more likely to introduce
bugs than to solve them. There may be other advantages, but reducing bugginess
isn't one of them. Lots of scripts have used getopts successfully.
Skip Montanaro s...@pobox.com added the comment:
I'm not sure you can get there from here, certainly not in a
straightforward way. The traceback formatter gets a reference to
the code object (traceback - frame - code). That object has a name
attribute (which is what's displayed) but it doesn't
Brett Cannon br...@python.org added the comment:
If Sandro is willing to write test for regrtest as part of the move then that
would be a complete net win from the current situation.
--
___
Python tracker rep...@bugs.python.org
Skip Montanaro s...@pobox.com added the comment:
I agree with Antoine, however, if you can come up with a
reasonable patch which implements the desired behavior, I
think it would be reasonable to add it to Python 3.3. The
definition of reasonable is subject to interpretation.
As I indicated in
Matthew Barnett pyt...@mrabarnett.plus.com added the comment:
I've reduced the size of some internal tables.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2636
___
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Victor, thanks for the bug report. Score one for fuzzing.
Andrew, thanks for the analysis and simplified crasher.
See attached patch.
--
keywords: +needs review, patch
nosy: +benjamin.peterson, georg.brandl
priority:
New submission from anatoly techtonik techto...@gmail.com:
I'm studying old code that uses urllib.splituser() call and can't find
description of this function in Python 2.6.6 docs.
--
assignee: docs@python
components: Documentation
messages: 127047
nosy: docs@python, techtonik
Kristian Vlaardingerbroek kristian.vlaardingerbr...@gmail.com added the
comment:
test_trace can be added to this list, each call to runfunc does a sys.settrace()
121:self.tracer.runfunc(traced_func_loop, 2, 3)
133:self.tracer.runfunc(traced_func_importing, 2, 5)
145:
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
+1
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10848
___
___
Salman Ahmed ssahmed...@gmail.com added the comment:
Yes, this problem persists on Solaris 9 (SPARC) even with Python 2.7.1.
The problematic processes are:
ssahmed@blade:[~]$ ps -ef|grep -i python
ssahmed 480 418 0 15:30:25 pts/19:14 ./python -Wd -3 -E -tt
./Lib/test/regrtest.py -l
Brett Cannon br...@python.org added the comment:
Thanks for the diagnosis, Kristian. Attached is a patch for test_trace which
fixes its over-zealous setting of the trace function (doesn't address the
failures, though).
--
Added file: http://bugs.python.org/file20516/test_trace.diff
Brett Cannon br...@python.org added the comment:
Here is a patch for test_pdb; the context manager made this dirt-simple to fix.
--
Added file: http://bugs.python.org/file20517/test_gdb.diff
___
Python tracker rep...@bugs.python.org
Sandro Tosi sandro.t...@gmail.com added the comment:
Sure, that would be really interesting to do, and I do commit to write
a test suite to the tool that runs the python test suite :)
What I'm asking is: how would you do that? I'm quite new as
contributor so the ideas of experienced core devs
Éric Araujo mer...@netwok.org added the comment:
Some parts of regrtest have been obsoleted by changes in unittest. Best not to
write tests for something that will go.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10848
New submission from onpon4 onp...@yahoo.com:
This is for Python 2.7.1. It isn't an issue on 2.6.5 and I haven't tested it on
3.1.
Quite simply, the Unicode BOM (unichr(65279)) is included in the text loaded
from a UTF-8 text file. This can cause issues in some cases, but is easily
worked
STINNER Victor victor.stin...@haypocalc.com added the comment:
deque.patch: I'm unable to say if the patch is correct or not, but it is always
a good thing to remove asser(...) :-)
--
___
Python tracker rep...@bugs.python.org
Brett Cannon br...@python.org added the comment:
Patch for doctest/test_doctest (yes, both files were wiping out the trace
function.
--
Added file: http://bugs.python.org/file20518/test_doctest.diff
___
Python tracker rep...@bugs.python.org
Brett Cannon br...@python.org added the comment:
And with this patch for test_zipimport_support to work thanks to the
test_doctest changes, all of the test suites blasting the trace function
*should* be fixed.
--
Added file: http://bugs.python.org/file20519/test_zipimport_support.diff
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Fixed in r88191 and r88192.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11004
Changes by Raymond Hettinger rhettin...@users.sourceforge.net:
--
components: +Extension Modules -Library (Lib)
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11004
___
Antoine Pitrou pit...@free.fr added the comment:
So, I added some debug info to test_pass_fds:
-- fds that should have been closed: {5, 6, 7, 8, 9, 10, 11, 12, 13}
-- fds that remained open: {0, 1, 2, 3, 5}
-- debug info:
0 8194 posix.stat_result(st_mode=8592, st_ino=12582920,
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
nosy: -haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10973
___
___
Éric Araujo mer...@netwok.org added the comment:
Was this left out of 3.1 and 2.7 on purpose?
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9724
___
New submission from Jason Baker amnorv...@gmail.com:
I've created a patch that adds some common functional programming tools to
functools. I've made the patch to work against Python 3.2, but that may be a
bit aggressive. If so, then I can adapt it to work with 3.3.
I also wouldn't be
Antoine Pitrou pit...@free.fr added the comment:
I managed to get further debug info from the OpenIndiana buildbot:
-- maxfd = 65536
-- fds that should have been closed: {5, 6, 7, 8, 9, 10, 11, 12, 13}
-- fds that remained open: {0, 1, 2, 3, 5}
-- debug info:
0 2
R. David Murray rdmur...@bitdance.com added the comment:
I would say writing tests for regrtest is going to be a somewhat tricky task.
I think you will have to do some code tweaking to even be able to run certain
tests. I believe that regrtest currently has some built in assumptions about
Martin v. Löwis mar...@v.loewis.de added the comment:
Can you please be more specific? What do you mean by text loaded from a UTF-8
text file? How specifically did you load it?
--
nosy: +loewis
___
Python tracker rep...@bugs.python.org
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11010
___
___
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Some of these have been proposed and rejected before.
Compose has a problematic API because the traditional order of application in
mathematics is counter-intuitive for many people.
Const seems reasonable except that we
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
One other thought: The use of list comprehensions (a.k.a. list displays) and
generator expressions has made many functional tools less necessary than ever.
# preferred over map(pow, repeat(2), range(5))
[pow(2, x) for
Éric Araujo mer...@netwok.org added the comment:
Should this be fixed before the final release?
--
components: +Library (Lib) -IO
nosy: +eric.araujo, georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6926
Gregory P. Smith g...@krypto.org added the comment:
IMNSHO it should but that would violate our release practices to do it this
late in the cycle. I expect the release manager to decline.
It isn't a critical issue, the end result is that people will hard code the
constants into their own
Changes by Antoine Pitrou pit...@free.fr:
--
stage: - needs patch
versions: +Python 3.3 -Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6926
___
New submission from Raymond Hettinger rhettin...@users.sourceforge.net:
Where it makes sense, cmath needs to stay in-sync with the math module as much
as possible:
set(dir(math)) - set(dir(cmath))
{'pow', 'fsum', 'ldexp', 'hypot', 'fabs', 'floor', 'lgamma',
'frexp', 'degrees', 'modf',
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
I would consider it to be regression and bugfix that is not inappropriate to
repair at this point.
--
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
Martin v. Löwis mar...@v.loewis.de added the comment:
I would consider it to be regression and bugfix that is not inappropriate to
repair at this point.
I'd also be in favor of fixing it. To reduce the risk of breaking
something, I'd only raise socketmodule to a more recent Windows API.
Of
onpon4 onp...@yahoo.com added the comment:
Like this:
f = io.open()
f.readline()
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11010
___
___
Nadeem Vawda nadeem.va...@gmail.com added the comment:
Here is a quick-and-dirty reimplementation of BZ2File in Python, on top of the
existing C implementation of BZ2Compressor and BZ2Decompressor.
There are a couple of issues with this code that need to be fixed:
* BZ2Decompressor doesn't
Martin v. Löwis mar...@v.loewis.de added the comment:
Why are you saying this isn't an issue in 2.6.5? It behaves exactly the same as
2.7.1.
In any case, this is not a bug. Pass encoding=utf-8-sig to io.open to have
the signature stripped when the file is read.
--
resolution: -
Jason Baker amnorv...@gmail.com added the comment:
Ray, thanks for prompt and thorough feedback. To address your concerns:
* I'm fine with doing away with const and identity (long story short I haven't
really used them in functional languages anyway). There were reasons for
defining
Brett Cannon br...@python.org added the comment:
I have a patch that I am testing right now which deals which fixes all the test
suites.
--
assignee: - brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10990
STINNER Victor victor.stin...@haypocalc.com added the comment:
mailbox.patch:
- open files in binary mode not as text
- parse as bytes not as Unicode
- replace email.generator.Generator() by email.generator.BytesGenerator()
- use .message_from_bytes() instead of .message_from_str()
- use
STINNER Victor victor.stin...@haypocalc.com added the comment:
While working on this issue, I found and fixed two bugs in the email binary
parser: r88196 and r88197.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9124
New submission from Geoge R. Goffe grgo...@yahoo.com:
Howdy,
I just updated my copy of the SVN version of 2.7 and got the following error
messages. Did I do something wrong?
Regards,
George...
building dbm using bdb
building 'readline' extension
gcc -pthread -fPIC -fno-strict-aliasing -g
Brett Cannon br...@python.org added the comment:
OK, here is a single patch (from `hg outgoing --patch`) that fixes all the
tests by introducing the test.support.no_tracing decorator.
--
Added file: http://bugs.python.org/file20523/trace_fxn_protected.diff
Changes by Brett Cannon br...@python.org:
Removed file: http://bugs.python.org/file20498/sys_gettrace_monitor.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10990
___
Changes by Brett Cannon br...@python.org:
Removed file: http://bugs.python.org/file20508/test_scope.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10990
___
Changes by Brett Cannon br...@python.org:
Removed file: http://bugs.python.org/file20509/test_sys_settrace.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10990
___
Changes by Brett Cannon br...@python.org:
Removed file: http://bugs.python.org/file20516/test_trace.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10990
___
1 - 100 of 114 matches
Mail list logo