Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +astrand
stage: test needed - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5673
___
New submission from anatoly techtonik techto...@gmail.com:
pydoc contains some useful methods like pager() that could be reused in many
python application, and it would be handy to have a documentation for them in
Python manual http://docs.python.org/library/pydoc
--
assignee:
Antoine Pitrou pit...@free.fr added the comment:
Some comments:
- why do you say Thread.join() uses a busy loop? is it because it uses
Condition.wait()? If so, this will be solved in py3k by issue7316 (which you
are welcome to review). Otherwise, I think there should be an upper bound on
the
Antoine Pitrou pit...@free.fr added the comment:
Given the very small benefits, I don't think there's any point in making this a
configuration variable. A hardcoded flag would be sufficient, and expert users
would be able to recompile their Python (as with the FAST_LOOPS flag).
--
Marc-Andre Lemburg m...@egenix.com added the comment:
I'm with Antoine on this one.
Also, instead of removing the flag completely which will cause problems with
extensions relying on it, I'd suggest to just disable the PyErr_WarnPy3k(msg,
stacklevel) macro and turn it into a no-op if a
Changes by Florent Xicluna la...@yahoo.fr:
--
nosy: +flox
priority: - normal
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7797
___
___
Florent Xicluna la...@yahoo.fr added the comment:
Fixed with r77586
--
resolution: - accepted
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7591
Changes by Florent Xicluna la...@yahoo.fr:
--
stage: needs patch - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7732
___
___
Changes by Florent Xicluna la...@yahoo.fr:
--
components: +Tests
stage: - patch review
versions: +Python 2.7, Python 3.1, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue767645
___
Antoine Pitrou pit...@free.fr added the comment:
It appears to be better to use clock_gettime(CLOCK_MONOTONIC)
where available and only use gettimeofday() as fallback solution
together with times(), ftime() and time().
Ok, I've tried and it's less good than expected. Using CLOCK_MONOTONIC
New submission from R. David Murray rdmur...@bitdance.com:
Working from the example in the docs, I wrote a test suite like this:
def load_tests(loader, standard_tests, pattern):
for case in email.test.emailtestdb.populated_test_cases(globals()):
Michael Foord mich...@voidspace.org.uk added the comment:
Yes. The standard tests should be wrapped in a suite before being passed into
load_tests. That's a bug - thanks for catching it.
--
assignee: - michael.foord
nosy: +michael.foord
___
Python
Nir Aides n...@winpdb.org added the comment:
I actually meant how would you simulate zlib's absence on a system in which it
is present?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7610
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
This is slightly incorrect: if PyFile_FromFile fails for another reason
(PyString_FromString(name) runs out of memory), the fp is not closed and the
caller is right to call fclose().
IMO PyFile_FromFile() should be changed to
Ezio Melotti ezio.melo...@gmail.com added the comment:
The easiest way is to setting zlib to None or not import it at all.
Are you suggesting that test_zipfile should be always run with and without zlib
to check that everything (except the things that require zlib of course) works
in both the
Changes by Florent Xicluna la...@yahoo.fr:
Removed file: http://bugs.python.org/file15937/issue7732_find_module.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7732
___
Florent Xicluna la...@yahoo.fr added the comment:
if PyFile_FromFile fails for another reason (PyString_FromString(name)
runs out of memory), the fp is not closed and the caller is right to
call fclose().
As far as I understand, the fp is never left open, when PyFile_FromFile returns
NULL.
Trundle andy-pyt...@hammerhartes.de added the comment:
Note that the fp gets set with `fill_file_fields()` and that is called after
the error return of `PyString_FromString()`. Hence, the fp is left open if
`PyString_FromString()` returns NULL.
--
Florent Xicluna la...@yahoo.fr added the comment:
AFAICT, in this case, if PyString_FromString gives NULL, then (o_name == NULL)
and the function returns without calling fill_file_fields.
Hence, the fp is not opened.
Do you suggest something else?
--
Trundle andy-pyt...@hammerhartes.de added the comment:
`fill_file_fields()` does not open the fp, the caller of `PyFile_FromFile()`
opens the fp.
I don't have a better idea, that's why I don't have provided a patch.
--
___
Python tracker
Ezio Melotti ezio.melo...@gmail.com added the comment:
Apparently that part of code is already tested in other tests that use deflated
mode, so I'll close this again. Thanks for the info.
--
stage: test needed - committed/rejected
status: open - closed
Changes by Brian Curtin cur...@acm.org:
--
priority: - normal
stage: - needs patch
versions: +Python 2.7, Python 3.1, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7798
___
Pascal Chambon chambon.pas...@gmail.com added the comment:
Hello
Here is the patch for the python trunk, regarding truncate() behaviour.
I've tested it on windows and linux, against IO test suites (with -uall), in
debug and normal mode.
I've also updated some docstrings, and added tests for
Marc-Andre Lemburg m...@egenix.com added the comment:
Antoine Pitrou wrote:
Antoine Pitrou pit...@free.fr added the comment:
It appears to be better to use clock_gettime(CLOCK_MONOTONIC)
where available and only use gettimeofday() as fallback solution
together with times(), ftime() and
Ross Cohen rco...@snurgle.org added the comment:
I am confused by this line of reasoning. Is it ok to ignore the
deprecation process in py3k but not in 2.x? Is it only ok if a core
developer does it?
If the point of 2.7 is to make it easier for apps and packages to be
ported to py3k, then what
Changes by Robin Schoonover e...@cornhooves.org:
--
nosy: +rschoon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3871
___
___
Python-bugs-list
Antoine Pitrou pit...@free.fr added the comment:
pthreads will default to use the real time clock. In order
to have them use the monotonic timer, you have to setup
a condition variable attribute: See the man-page for
pthread_condattr_setclock().
I'll look at that, but I'm not thrilled at
New submission from Chris Carter jesdisci...@gmail.com:
The test case at the end of this message seems to indicate that the list is
being initialized only once for all wrapper instances. I've tried to find
anything about static members in Python and came up empty. I also found no
relevant
Michael Foord mich...@voidspace.org.uk added the comment:
The list in your example is a *class attribute* not an instance attribute, so
yes it is only initialised once. You can still access it through the instance
(self) because of Python member lookup rules.
If you want one list per instance
Chris Carter jesdisci...@gmail.com added the comment:
Then I must ask, why did the string attribute behave differently? I added it
to allow for that, and the behavior seems inconsistent.
--
nosy: +Chris.Carter
___
Python tracker
Chris Carter jesdisci...@gmail.com added the comment:
My bad, wrong bug.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7643
___
___
Chris Carter jesdisci...@gmail.com added the comment:
Then I must ask, why did the string attribute behave differently? I added it
to allow for that, and the behavior seems inconsistent.
--
___
Python tracker rep...@bugs.python.org
New submission from Michael Newman michael.b.new...@gmail.com:
In Section 20.23.3 Binary Objects of:
http://docs.python.org/3.1/library/xmlrpc.client.html
The server AND client examples fail because the read and write methods are not
set to binary mode.
Example of what the client portion
Michael Foord mich...@voidspace.org.uk added the comment:
Because strings are immutable. Your list access (self.list.append) mutates the
existing list in place.
Because strings are immutable you += is exactly equivalent to the following
code:
self.string = self.string + str(i)
The first
Alexander Belopolsky alexander.belopol...@gmail.com added the comment:
Christophe,
It looks like your patch goes out of its way to avoid creating nested partials.
This is a worthwhile goal and I think it should be done in partial_new so that
partial(partial(f, x), y) returns partial(f, x,
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Here is my review of issue7092_syntax_imports_v3.diff:
- test_itertools.py: please replace
[tuple([arg[i] if i len(arg) else None for arg in args])
for i in range(max(map(len, args)))]
by something more readable (nested
TJ Sullivan tjsu...@gmail.com added the comment:
I would be happy to test the new package for you. I am running 10.3.9 and Had
attempted to install 2.6.4 recently without realizing it, so my terminal
version is 2.6.4 but idle and back at 2.5. email me if you want me to test it
for you.
Changes by Brian Curtin cur...@acm.org:
--
nosy: +brian.curtin
priority: - normal
stage: - test needed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4944
___
New submission from Michael Newman michael.b.new...@gmail.com:
Following the example in Section 20.23.5. ProtocolError Objects of:
http://docs.python.org/3.1/library/xmlrpc.client.html
It implies that an invalid URL will give raise an xmlrpc.client.ProtocolError.
Instead I'm getting a
Ezio Melotti ezio.melo...@gmail.com added the comment:
Here's mine about issue7092_check_warnings_v3.diff:
1) test_callable should keep testing callable() and the warnings should be
caught;
2) in test_bsddb3 the problems should be correct in the module if possible and
worth it (the module is
Ezio Melotti ezio.melo...@gmail.com added the comment:
FWIW it had the same behavior already on Python 2.4.
--
nosy: +ezio.melotti, loewis
priority: - normal
stage: - test needed
___
Python tracker rep...@bugs.python.org
Brian Curtin cur...@acm.org added the comment:
These tests have been disabled for a little over two years now. I've run the
previously disabled tests on Windows, Mac OSX, and Linux numerous times and
haven't seen any instability or failures (not that it proves much).
I wasn't around at the
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +loewis
priority: - normal
stage: - needs patch
type: - behavior
versions: +Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7801
Juan José Conti jjco...@gmail.com added the comment:
1) Agree. Extra checks removed.
2) My mistake. Fixed.
3) Fexed.
4) Methods documentation fixed. Also added examples.
5) Fixed
6) Allow ints in the following unary methods (all except the ones excluded by
skrah in cdecimal):
- abs
- canonical
Ezio Melotti ezio.melo...@gmail.com added the comment:
The function is still marked as deprecated in the 2.x doc and undocumented in
3.x (the function is there, but the description points somewhere else).
--
nosy: +ezio.melotti
priority: - normal
stage: - needs patch
Chris Carter jesdisci...@gmail.com added the comment:
Ha, fun with language features. Thanks for the detailed explanation. :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7800
___
Changes by Brian Curtin cur...@acm.org:
--
stage: - test needed
versions: +Python 2.7, Python 3.2 -Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1926
___
Changes by Brian Curtin cur...@acm.org:
--
stage: - test needed
versions: +Python 2.6 -Python 2.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2052
___
Changes by Brian Curtin cur...@acm.org:
--
stage: - test needed
versions: -Python 2.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1927
___
___
49 matches
Mail list logo