stan mihai stanmih...@gmail.com added the comment:
Disabling optimizations doesn't really fix the issue, just hides it, for now.
The problem was an uninitialized variable. Attached is the patch that fixes it.
--
nosy: +stan.mihai
Added file:
stan mihai stanmih...@gmail.com added the comment:
Disabling optimizations doesn't really fix the issue, just hides it, for now.
The problem was an uninitialized variable. Attached is the patch that fixes it.
--
keywords: +patch
nosy: +stan.mihai
Added file:
stan mihai stanmih...@gmail.com added the comment:
The problem was an uninitialized variable. Attached is the patch that fixes it.
--
keywords: +patch
nosy: +stan.mihai
Added file: http://bugs.python.org/file20529/ctypes_win64.diff
___
Python tracker
nooB nsharish@gmail.com added the comment:
Few points that could be useful,
1) I added print statements in `shutil.move` and found that the `real_dst` was
wrong for the case coz os.path.isdir returns true.
import os
os.mkdir('test')
os.path.isdir('TEst')
True
In shutil.move, when we
Martin v. Löwis mar...@v.loewis.de added the comment:
Please run
gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -g -O0 -Wall -Wstrict-prototypes
-I/usr/lsd/Linux/include -I. -IInclude -I./Include -I/usr/local/include
-I/usr/local/google/tools/python/release27-maint/Include
STINNER Victor victor.stin...@haypocalc.com added the comment:
I reverted r88197 because it was incorrect and caused an email test
to fail. Once I come up with a test for it I'll fix it correctly.
test_mailbox is a good (indirect) test suite for this change. The problem of
r88197 is that it
Martin v. Löwis mar...@v.loewis.de added the comment:
'D' denotes a door file. There are several of them in the system; the following
ones (from /var/run) match the time stamp:
Dr--r--r-- 1 daemon daemon 0 Mar 27 2010 kcfd_door
Dr--r--r-- 1 root root 0 Mar 27 2010
Antoine Pitrou pit...@free.fr added the comment:
'D' denotes a door file. There are several of them in the system; the
following ones (from /var/run) match the time stamp:
Thanks for the explanation!
It's common for library routines to open a door and keep it open for
the entire process
New submission from Antoine Pitrou pit...@free.fr:
Solaris has an additional kind of special files named doors. The standard
headers define the following macro:
#define S_ISDOOR(mode) (((mode)0xF000) == 0xd000)
Perhaps it would be nice to include the equivalent in the stat module.
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment:
This message will not help anyone.
And it's not a chat, but because it seems i really made the horses gone
grazy (direct translation of a german proverb):
- msg127002: RDM, i didn't know all of that and i am really sorry.
Now I
Nick Coghlan ncogh...@gmail.com added the comment:
How the conversion from a recursive algorithm to an iterative one works depends
on the specific algorithm involved. A trampoline does the job for tail calls,
but not necessarily any other recursive algorithm.
Factorial actually has a fairly
Jesús Cea Avión j...@jcea.es added the comment:
Thanks for the feature request. It seems trivial to implement, but not trivial
to test :).
I assign this to myself. I will work on it after Mercurial migration is
finished. Getting impatient :).
--
assignee: - jcea
STINNER Victor victor.stin...@haypocalc.com added the comment:
All test_email and test_mailbox pass with
mailbox.patch+BytesGenerator_handle_text.patch on Windows except one test:
==
ERROR: test_set_item
Antoine Pitrou pit...@free.fr added the comment:
Thanks for the feature request. It seems trivial to implement, but not
trivial to test :).
You can test against an existing file, such as /var/run/syslog_door
(given its name, it is unlikely to be anything other than a door)
--
New submission from hensing h.dick...@gmx.net:
OptionParser can't parse int 08 and 09. 8, 9 and 01..07 works.
--
components: Library (Lib)
files: minimal.py
messages: 127106
nosy: hensing
priority: normal
severity: normal
status: open
title: optparse: error: invalid integer value
type:
Jesús Cea Avión j...@jcea.es added the comment:
I do know, but when you are working inside a zone, I am not sure you can count
of that file being always present. Syslog even could be disabled or not
available inside a zone.
I am thinking about how to manage OS's with no support for doors.
Antoine Pitrou pit...@free.fr added the comment:
I do know, but when you are working inside a zone, I am not sure you
can count of that file being always present. Syslog even could be
disabled or not available inside a zone.
Then you can just skip the test.
I am thinking about how to
Éric Araujo mer...@netwok.org added the comment:
08 is not a valid octal number. See
http://docs.python.org/library/optparse#standard-option-types and
http://docs.python.org/reference/lexical_analysis#integer-and-long-integer-literals
Hope this helps.
--
nosy: +eric.araujo
Jesús Cea Avión j...@jcea.es added the comment:
Given the behaviour of Solaris DOORS, the flags selected are very cleverly
chosen. Sensible engineering :).
But now I am wondering... Which organization defines flags like S_IFSOCK or
S_IFIFO?. Posix members?. I am worried about flag collision
Antoine Pitrou pit...@free.fr added the comment:
But now I am wondering... Which organization defines flags like
S_IFSOCK or S_IFIFO?. Posix members?. I am worried about flag
collision between OSs.
They are defined unconditionally in Lib/stat.py.
For instance, if DOORS were a real flag
hensing h.dick...@gmx.net added the comment:
Shouldn't it be better to parse only numbers with prefix 0o 0o72 as an
octal number?
So it would be consistent to hex and bin (0x and 0b).
--
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
That change has been done in Python 3.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11017
___
Jesús Cea Avión j...@jcea.es added the comment:
Antoine, I am not talking about python, I am talking about the UNIX
standarization process. In particular, how a new flag (for filesystems) in an
OS can be skipped and not being reused for some other purpuse in other OS.
Off topic for python,
Antoine Pitrou pit...@free.fr added the comment:
* The read*() methods are implemented very inefficiently. Since they
have to deal with the bytes objects returned by
BZ2Decompressor.decompress(), a large read results in lots of
allocations that weren't necessary in the C implementation.
It
New submission from Antoine Pitrou pit...@free.fr:
This was found by Nadeem in issue5863.
Index: Lib/test/test_bz2.py
===
--- Lib/test/test_bz2.py(révision 88199)
+++ Lib/test/test_bz2.py(copie de travail)
@@ -86,7
John Levon movem...@users.sourceforge.net added the comment:
Jesus, yes, it's totally possible that POSIX might define:
(stat.S_IFSOCK + stat.S_IFIFO)
to mean something other than S_IDOOR. However, the POSIX committee
is always careful to respect existing usage. It's vanishingly unlikely
that
Changes by Nadeem Vawda nadeem.va...@gmail.com:
--
nosy: +nvawda
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11018
___
___
Python-bugs-list
Jesús Cea Avión j...@jcea.es added the comment:
I am looking at Linux :-).
Anyway the feedback has been very useful. I will implement this as soon as
mercurial switch is done.
--
___
Python tracker rep...@bugs.python.org
Antoine Pitrou pit...@free.fr added the comment:
There's a missing conversion in mailbox.patch. Running with -bb shows the
issue. Here is an updated patch.
--
Added file: http://bugs.python.org/file20532/mailbox2.patch
___
Python tracker
Nadeem Vawda nadeem.va...@gmail.com added the comment:
* The read*() methods are implemented very inefficiently. Since they
have to deal with the bytes objects returned by
BZ2Decompressor.decompress(), a large read results in lots of
allocations that weren't necessary in the C
Antoine Pitrou pit...@free.fr added the comment:
Would it be possible to add a test case to the patch?
--
nosy: +georg.brandl, pitrou
stage: - patch review
type: behavior - crash
versions: +Python 3.1, Python 3.2 -Python 2.6
___
Python tracker
Changes by Brian Curtin cur...@acm.org:
--
nosy: +brian.curtin
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6926
___
___
Python-bugs-list mailing
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
trace.py has a hack for this: it uses gc.get_referrers() to crawl back from the
code object to the encloding class.
I would not trust this gc.get_referrers() though; it is probably slow, and
there are even some crashers related to this
Changes by Brett Cannon br...@python.org:
Removed file: http://bugs.python.org/file20526/unnamed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11013
___
Changes by Brett Cannon br...@python.org:
--
status: open - pending
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11013
___
___
Python-bugs-list
David Stanek dsta...@dstanek.com added the comment:
Should this just be resolved as a won't fix?
--
nosy: +dstanek
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8036
___
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
No, the issue can be fixed by better checking the arguments.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8036
___
Changes by David Stanek dsta...@dstanek.com:
--
nosy: +dstanek
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6584
___
___
Python-bugs-list mailing
Changes by David Stanek dsta...@dstanek.com:
--
nosy: +dstanek
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8025
___
___
Python-bugs-list mailing
Changes by David Stanek dsta...@dstanek.com:
--
nosy: +dstanek
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7659
___
___
Python-bugs-list mailing
Changes by David Stanek dsta...@dstanek.com:
--
nosy: +dstanek
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4492
___
___
Python-bugs-list mailing
Changes by David Stanek dsta...@dstanek.com:
--
nosy: +dstanek
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2007
___
___
Python-bugs-list mailing
Changes by David Stanek dsta...@dstanek.com:
--
nosy: +dstanek
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9233
___
___
Python-bugs-list mailing
Changes by David Stanek dsta...@dstanek.com:
--
nosy: +dstanek
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3849
___
___
Python-bugs-list mailing
Changes by David Stanek dsta...@dstanek.com:
--
nosy: +dstanek
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5097
___
___
Python-bugs-list mailing
Changes by David Stanek dsta...@dstanek.com:
--
nosy: +dstanek
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8743
___
___
Python-bugs-list mailing
Changes by David Stanek dsta...@dstanek.com:
--
nosy: +dstanek
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7100
___
___
Python-bugs-list mailing
Brett Cannon br...@python.org added the comment:
Patch looks good to me.
--
assignee: - pitrou
nosy: +brett.cannon
resolution: - accepted
stage: patch review - commit review
___
Python tracker rep...@bugs.python.org
Brett Cannon br...@python.org added the comment:
Since the whole Mac directory got gutted in the switch over to Python 3,
macostools is now gone, making this out of date.
--
resolution: - out of date
status: languishing - closed
___
Python tracker
Christoph Gohlke cgoh...@uci.edu added the comment:
Thank you. The new patch works and it also fixes a crash of the
python-2.5.4.amd64 interpreter at startup when ctypes 1.0.2 and pyreadline
1.6.2 are installed.
--
___
Python tracker
Changes by Arif Amirani arif.amir...@gmail.com:
--
nosy: +kontinuity
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9516
___
___
Python-bugs-list
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
I'm intrigued by the tampoline() but after reading Nick's post, I think it
needs to be an external recipe or blog post with extensive examples so that it
can mature and either prove its worth or serve as an intellectually
Terry J. Reedy tjre...@udel.edu added the comment:
I have the impression that there has been progress on tcl/tk on Apple in the
last 7 months. Should this issue still be open, and if so, for both 2.7 and 3.2?
--
nosy: +terry.reedy
___
Python tracker
Changes by Raymond Hettinger rhettin...@users.sourceforge.net:
Added file: http://bugs.python.org/file20533/tarfile.patch2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11014
___
Brian Curtin cur...@acm.org added the comment:
Looks good to me.
As discussed in IRC, a note in 2.7 about the future of the `add` signature
would also be helpful.
--
nosy: +brian.curtin
___
Python tracker rep...@bugs.python.org
Sridhar Ratnakumar sridh...@activestate.com added the comment:
Terry J. Reedy wrote:
Terry J. Reedytjre...@udel.edu added the comment:
I have the impression that there has been progress on tcl/tk on Apple in the
last 7 months. Should this issue still be open, and if so, for both 2.7 and
Anthony Long antl...@gmail.com added the comment:
Tests trying all positions and expecting an appropriate TypeError should be
included.
--
nosy: +antlong
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11014
Changes by Anthony Long antl...@gmail.com:
--
nosy: -antlong
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11014
___
___
Python-bugs-list mailing
Anthony Long antl...@gmail.com added the comment:
Strange, I didn't see it until this email came. Probably an old browser cache.
Either way, looks good to me. No issues on mac SL.
--
nosy: +antlong
___
Python tracker rep...@bugs.python.org
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Anthony, that is what tarfile.patch2 does.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11014
___
R. David Murray rdmur...@bitdance.com added the comment:
Haypo: yeah, in an ideal world Generator would use get_payload() and not
_payload, but I had to make some compromises with purity of model separation in
order to achieve the practical goal of handling bytes usefully. I'd like to
fix
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Fixed in r88201.
Will add a note to 2.7 docs advising use as a keyword-only argument.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
Martin v. Löwis mar...@v.loewis.de added the comment:
I am thinking about how to manage OS's with no support for doors.
Instead of conditionally compile the new STAT, I would rather have
the function always available, but returning FALSE when the OS
doesn't support doors. But what happen if
Martin v. Löwis mar...@v.loewis.de added the comment:
Am 26.01.2011 14:14, schrieb Jesús Cea Avión:
Jesús Cea Avión j...@jcea.es added the comment:
Antoine, I am not talking about python, I am talking about the UNIX
standarization process. In particular, how a new flag (for
filesystems)
New submission from R. David Murray rdmur...@bitdance.com:
This was discovered by Haypo during work on #9124. I'll attach a patch with
test shortly.
--
assignee: r.david.murray
messages: 127139
nosy: r.david.murray
priority: high
severity: normal
stage: commit review
status: open
Roumen Petrov bugtr...@roumenpetrov.info added the comment:
fixed patch failure on Parser/pgen.stamp
--
Added file: http://bugs.python.org/file20534/python-2.7-20110126-CROSS.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org
STINNER Victor victor.stin...@haypocalc.com added the comment:
(Patch without patch from #9124)
--
keywords: +patch
nosy: +haypo
Added file: http://bugs.python.org/file20535/BytesGenerator_handle_text.patch
___
Python tracker rep...@bugs.python.org
Changes by Roumen Petrov bugtr...@roumenpetrov.info:
Added file: http://bugs.python.org/file20536/python-py3k-20110126-CROSS.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3754
R. David Murray rdmur...@bitdance.com added the comment:
Here's the patch and test.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11019
___
___
R. David Murray rdmur...@bitdance.com added the comment:
OK, so let's try again, since roundup saw fit to clear the upload field on me...
--
Added file: http://bugs.python.org/file20537/bytes_generator_none_body.patch
___
Python tracker
Roumen Petrov bugtr...@roumenpetrov.info added the comment:
fixed test case failure for 32-bit time_t
--
Added file: http://bugs.python.org/file20538/python-2.7-20110126-MINGW.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org
Changes by Roumen Petrov bugtr...@roumenpetrov.info:
Added file: http://bugs.python.org/file20539/python-2.7-20110126-MINGW.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3871
Changes by Roumen Petrov bugtr...@roumenpetrov.info:
Removed file: http://bugs.python.org/file20539/python-2.7-20110126-MINGW.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3871
Changes by Roumen Petrov bugtr...@roumenpetrov.info:
Added file: http://bugs.python.org/file20540/python-py3k-20110126-MINGW.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3871
Ned Deily n...@acm.org added the comment:
Terry, we are working on all of the OS X IDLE Tk issues at the moment with
focus first on 3.2. These issues will be updated and closed as they are
resolved.
--
___
Python tracker rep...@bugs.python.org
STINNER Victor victor.stin...@haypocalc.com added the comment:
The new test fails without the fix, and it pass with the fix. The fix itself
looks correct because I wrote a similar patch :-) Go on.
--
___
Python tracker rep...@bugs.python.org
R. David Murray rdmur...@bitdance.com added the comment:
Committed in r88203.
--
resolution: - fixed
stage: commit review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11019
STINNER Victor victor.stin...@haypocalc.com added the comment:
pitrou There's a missing conversion in mailbox.patch.
pitrou Running with -bb shows the issue.
pitrou Here is an updated patch.
Good catch: test_mailbox now pass on Windows.
--
Some remarks on mailbox2.patch.
get_string() returns
gmr g...@myyearbook.com added the comment:
What I noticed in tracing through the code is that it's getting stuck in a loop
because it depends on grabbing asyncore.socket_map if map is null when passed
into asyncore.loop. I got around this by appending:
asyncore.loop(0.1, map=[], count=1)
gmr g...@myyearbook.com added the comment:
For more clarity, I am passing in a list because it will evaluate as False in
the while loop on 209 and 213. The fix is to add len(map) to the while loops on
those lines.
--
___
Python tracker
Éric Araujo mer...@netwok.org added the comment:
Is this behavior documented?
--
nosy: +eric.araujo
versions: +Python 2.7, Python 3.2 -Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10981
Éric Araujo mer...@netwok.org added the comment:
Note that os.popen is implemented with subprocess. For os.system, what Raymond
said: It complies with the Python habit of exposing calls as is, and its
documentation already advertises subprocess.
--
nosy: +eric.araujo
Sandro Tosi sandro.t...@gmail.com added the comment:
As suggested by David, I made it possible to specify an alternative test
directory by introducing '--testdir DIR' cli option: attached the patch,
comments are welcome :)
What about STDTESTS/NOTTESTS in case --testdir is specified? Currently
Sandro Tosi sandro.t...@gmail.com added the comment:
shouldn't we use the same method also for --coverdir (that currently faild the
least surprise test when specifying a relative path) replacing
coverdir = os.path.join(os.getcwd(), a)
with
coverdir = os.path.join(support.SAVEDCWD, a)
?
David Caro david.caro.este...@gmail.com added the comment:
Yes it is, here
http://docs.python.org/dev/library/argparse.html#argument-abbreviations.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10981
New submission from Raymond Hettinger rhettin...@users.sourceforge.net:
The command line invocation of pyclbr failed because of a 2-to-3 error. The
dict.values() call returns a dictview which doesn't support the sort() method.
Invoke with:
$ python -m pyclbr Lib/collections.py
--
R. David Murray rdmur...@bitdance.com added the comment:
I would open three new bugs to address the issues you raise. It ought to be
possible to rename things so that we can eliminate the pre-population of
NOTTESTS (if not I'd like to know why not!). STDTESTS appear to move certain
tests to
Antoine Pitrou pit...@free.fr added the comment:
Committed in r88204 (3.2), r88205 (3.1) and r88206 (2.7).
--
resolution: accepted - fixed
stage: commit review - committed/rejected
status: open - closed
versions: +Python 2.7
___
Python tracker
Changes by Raymond Hettinger rhettin...@users.sourceforge.net:
--
keywords: +patch
Added file: http://bugs.python.org/file20542/pyclbr.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11020
Nadeem Vawda nadeem.va...@gmail.com added the comment:
Here is an update patch, which corrects a typo in the previous patch, and adds
a test to test_zlib.
The test uses a memory-mapped sparse file, so it gets skipped on systems
without mmap. The alternative would be to allocate a 4+GB buffer
R. David Murray rdmur...@bitdance.com added the comment:
As long as we are modifying that code, how about fixing the use of 'dict' as a
variable name? Alternative patch attached.
--
nosy: +r.david.murray
Added file: http://bugs.python.org/file20544/pyclbr2.patch
New submission from David Caro david.caro.este...@gmail.com:
When attaching a subpart to a multipart message, python should follow the
recomendations of the rfcs and remove the MIME-Version header of each part,
leaving only one MIME-Version header at the beggining of the message.
from
R. David Murray rdmur...@bitdance.com added the comment:
One fix or the other ought to go in, IMO.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11020
___
Changes by Antoine Pitrou pit...@free.fr:
--
stage: needs patch - patch review
versions: +Python 3.3 -Python 2.7, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6584
___
R. David Murray rdmur...@bitdance.com added the comment:
For the record, can you point to the relevant part of the relevant RFC?
--
assignee: - r.david.murray
nosy: +r.david.murray
stage: - needs patch
versions: +Python 3.1, Python 3.2 -Python 2.6
Skip Montanaro s...@pobox.com added the comment:
Eric Note that os.popen is implemented with subprocess.
That seems somewhat wrong to me. There is a stdio popen function which
os.popen used to expose. I thought that was the goal (thin wrapper around
many library functions, then build higher
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
At some point, we ought to clean-up bad variable names. For now (close to the
release), I'll stick with the minimal fix.
Fixed r88207 and r88028.
--
resolution: - fixed
status: open - closed
versions: +Python 3.1
Bob Ippolito b...@redivi.com added the comment:
For what it's worth, I don't think any of the failures mentioned here are in
the current version of simplejson. There aren't any tests that check the
speedup module name, the speedup tests are skipped when speedups are not
detected, and the
Brett Cannon br...@python.org added the comment:
Analyzed by downloading the latest Clang static analyzer from
http://clang-analyzer.llvm.org/ and running ``scan-build ./configure
--with-pydebug; scan-build make -s -j2``. The attached tar.xz (yes I went with
a cutting edge archival format;
R. David Murray rdmur...@bitdance.com added the comment:
I haven't looked at the items Haypo has pointed to yet, but I have looked at
the API issues (get_string, add, etc). It seems to me that we have to make a
decision here: do we break API backward compatibility and convert to consuming
1 - 100 of 107 matches
Mail list logo