Martin v. Löwis mar...@v.loewis.de added the comment:
I'm closing this as won't fix. If there is a need to run specific tests in
specific ways, it is best to check in code that does it as desired. If it is
then unacceptable to run that change on all slaves, a branch can be created,
and
Changes by Mark Dickinson dicki...@gmail.com:
--
assignee: - mark.dickinson
nosy: +mark.dickinson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7767
___
Martin v. Löwis mar...@v.loewis.de added the comment:
I think the bug here is really in the application, which makes a system call to
fuse and the fuse callback in the same process. This isn't supported, and IMO
doesn't need to be. Python makes no promises that it will accept callbacks
while
Martin v. Löwis mar...@v.loewis.de added the comment:
One relevant difference may be the change to the fork semantics in Solaris 10:
fork() now means the same as fork1(). Before, fork() meant the same as
forkall(), unless the applications was linked with -lpthread, in which case
fork() also
Mark Dickinson dicki...@gmail.com added the comment:
Thanks for the latest patch! It's looking good, but I have a few comments:
(1) It's not necessary to do an isinstance(a, Decimal) check before calling
_convert_other, since _convert_other does that check anyway. It doesn't really
harm
Mark Dickinson dicki...@gmail.com added the comment:
One more:
(5) The patch includes a (presumably accidental) change to the divmod
docstring, from Return (a // b, a % b) to Return (self // other, self %
other). I think the first version is preferable.
--
Mark Dickinson dicki...@gmail.com added the comment:
And another. :)
(6) I think that with these changes, the single argument methods, like
Context.exp, and Context.sqrt, should also accept integers. Thoughts?
--
___
Python tracker
Mark Dickinson dicki...@gmail.com added the comment:
So here's the plan for trunk. The big question is: what should be done for
py3k?
For trunk:
- all comparisons (==, !=, =, =, , ) between floats and Decimals
return the correct numerical result, as though the float were
converted to
Stefan Krah stefan-use...@bytereef.org added the comment:
(6) Yes, I think that is logical. In cdecimal, I accept integers for all unary
methods except is_canonical and number_class.
--
___
Python tracker rep...@bugs.python.org
Stefan Krah stefan-use...@bytereef.org added the comment:
I'm new to this thread, so I hope I didn't miss anything that has been
said already. I don't fully understand why TypeError cannot be raised
in 2.x. The 2.6 documentation for tp_richcompare says:
If you want to implement a type for which
Mark Dickinson dicki...@gmail.com added the comment:
Stefan: the problem is backwards compatibility. In 2.6 it's possible to sort
a heterogeneous list that contains both Decimal instances and floats. The
resulting order may not be particularly meaningful, but for some applications
that
New submission from Johannes Schönberger j...@icoost.com:
I would suggest to make SimpleXMLRPCServer.SimpleXMLRPCServer.register_function
a decorator function.
See the attached file for the solution I wrote (l.209-240), which also works
with the current syntax:
@server.register_function
Muhammad Alkarouri malkaro...@gmail.com added the comment:
Excellent solution and comments. Many thanks.
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7764
___
New submission from Johannes Schönberger j...@icoost.com:
Unfortunately the sin/cos function in the decimal docs seems to return false
results.
In [33]: sin(decimal.Decimal('75'))
Out[33]: Decimal('0.377879483645203210442266845614')
In [34]: sin(decimal.Decimal('76'))
Out[34]:
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +mark.dickinson
priority: - normal
stage: - test needed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7770
___
Mark Dickinson dicki...@gmail.com added the comment:
I think that recipe is meant more as a simple example of what's possible than
as a bullet-proof library function. Can you suggest changes that would improve
accuracy while also keeping the recipe clear and simple?
The usual method for
Roumen Petrov bugtr...@roumenpetrov.info added the comment:
system python has to be at least revision 77704 (trunk)
--
Added file: http://bugs.python.org/file15987/python-trunk-20100124-CROSS.patch
___
Python tracker rep...@bugs.python.org
http
Roumen Petrov bugtr...@roumenpetrov.info added the comment:
system python has to be at least revision 77704 (trunk)
--
Added file: http://bugs.python.org/file15988/python-trunk-20100124-MINGW.patch
___
Python tracker rep...@bugs.python.org
http
Johannes Schönberger j...@icoost.com added the comment:
This is the version I would suggest and which is quite accurate unless the
numbers get extremely large.
def sin(x):
Return the sine of x as measured in radians.
print sin(Decimal('0.5'))
0.4794255386042030002732879352
Mark Dickinson dicki...@gmail.com added the comment:
Hmm. Isn't sine periodic with period 2*pi, not pi?
I'd also suggest making use of remainder_near.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7770
Johannes Schönberger j...@icoost.com added the comment:
stupid, it is much better to just use the modulo operator. The same works with
cos...
def sin(x):
Return the sine of x as measured in radians.
print sin(Decimal('0.5'))
0.4794255386042030002732879352
print sin(0.5)
Mark Dickinson dicki...@gmail.com added the comment:
Johannes: note that the reduction needs to be by 2*pi, not pi. The
remainder_near method is slightly better than the modulo operator here:
remainder_near reduces to the range [-pi, pi], while the modulo operator
reduces to the range (-2*pi,
Benjamin Peterson benja...@python.org added the comment:
I agree that would be nice, but it's usefulness would also be limited by the
fact that raw_input always returns a normal string.
--
nosy: +benjamin.peterson
priority: - normal
___
Python
Changes by Brian Curtin cur...@acm.org:
--
keywords: +needs review
priority: - normal
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3754
___
Brian Curtin cur...@acm.org added the comment:
Can you submit your patch as a unified diff -- it's not easy to tell where you
made changes to that file.
Can you also include tests showing how this is used, especially using
register_function in both the old way and the new way you propose?
Neil Schemenauer nas-pyt...@arctrix.com added the comment:
On Sun, Jan 24, 2010 at 01:25:18AM +, Antoine Pitrou wrote:
That wasn't really my question. What I ask is: since mhlib is
deprecated, why do we need to fix it while people are encouraged to use
mailbox instead?
Sorry, I don't
Changes by Brian Curtin cur...@acm.org:
--
keywords: +needs review
priority: - normal
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3871
___
Antoine Pitrou pit...@free.fr added the comment:
Sorry, I don't understand what you are proposing. Do you mean we
should just let the test fail for people who develop on HFS+ and
Btrfs filesystems? That seems not so good.
Hmm, you are right. From a quick glance, the patch looks ok. I assume
Changes by Chris Withers ch...@simplistix.co.uk:
--
nosy: -cjw296
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7759
___
___
Python-bugs-list
Johannes Schönberger j...@icoost.com added the comment:
I'm not very used to working with bug/issue trackers, is there any tutorial
here, where this is explained?
I did the stuff you asked me to do:
diff: http://paste.pocoo.org/compare/169357/169359/
test: http://paste.pocoo.org/show/169360/
Florent Xicluna la...@yahoo.fr added the comment:
The patch did not work with latest trunk.
Here is an updated version of the patch.
Patch tested with different commands:
~ $ ./python -m test.regrtest test_doctest
~ $ ./python -m test.regrtest -v test_doctest
~ $ ./python -m test.regrtest -v
Florent Xicluna la...@yahoo.fr added the comment:
And for Python 3. (Slightly different)
--
stage: - patch review
Added file: http://bugs.python.org/file15991/issue1729305_doctest_py3k.diff
___
Python tracker rep...@bugs.python.org
Brian Curtin cur...@acm.org added the comment:
http://www.python.org/dev/workflow/ and http://python.org/dev/faq/ should help
you get started. The workflow doc will let you know what the process is around
here. The FAQ will tell you how to setup Subversion, how to make a diff, etc.
With that
Changes by Jan Kaliszewski z...@chopin.edu.pl:
--
title: Doc for itertools recipe consume is complicated and less efficient -
dictview
versions: -Python 2.6, Python 2.7, Python 3.2
___
Python tracker rep...@bugs.python.org
Changes by Jan Kaliszewski z...@chopin.edu.pl:
--
title: dictview - Doc for itertools recipe consume is complicated and less
efficient
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7764
___
Jan Kaliszewski z...@chopin.edu.pl added the comment:
(sorry! typed into a wrong field)
--
nosy: +zuo
versions: +Python 2.6, Python 2.7, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7764
Johannes Schönberger j...@icoost.com added the comment:
OK, thank you for the links!
Do you still want me to do anything (like test cases etc.)?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7769
Brian Curtin cur...@acm.org added the comment:
Once you get a Subversion checkout of the source, have a look in
Lib/test/test_xmlrpc.py for examples of how things are currently tested (using
unittest). Once you get a feel for it, add new tests for what your changes do.
The file you paste'd
New submission from Jan Kaliszewski z...@chopin.edu.pl:
Dictionary views documentation (e.g.
http://docs.python.org/3.1/library/stdtypes.html#dictionary-view-objects)
contains nothing about comparison ( = = == !=) operations.
--
assignee: georg.brandl
components: Documentation
Johannes Schönberger j...@icoost.com added the comment:
OK, will work on it and reply as soon as I have results!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7769
___
Florent Xicluna la...@yahoo.fr added the comment:
Changeset r77721 should be ported to trunk, and py3k probably.
--
nosy: +flox
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7764
Florent Xicluna la...@yahoo.fr added the comment:
It may occur on any platform.
The patch fixes the issue.
--
title: Windows buildbot occasional DBFileExistsError failures in test_bsddb3 -
buildbot occasional DBFileExistsError failures in test_bsddb3
New submission from Florent Xicluna la...@yahoo.fr:
test_py3kwarn fails when running the whole test suite
This is a known behaviour, because of extension modules loaded by previous
tests (which cannot be reloaded).
However, the warnings module store all the warnings when they appear in a
Florent Xicluna la...@yahoo.fr added the comment:
Here comes the patch:
- use test_support.__warningregistry__ to check past warnings
- filter the warnings with (module|package), to be sure that they are
silenced by test_support.import_module
- fix test_reduce_move (it failed when run after
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7713
___
Changes by Florent Xicluna la...@yahoo.fr:
--
nosy: +ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7772
___
___
Python-bugs-list mailing
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
I'll look at it when I get a chance. Want to continue to show how the same
recipe can work for different input types. I may just document the function's
range of inputs.
--
assignee: georg.brandl - rhettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Remain calm. I left the status as Open for a reason. When I'm satisfied that
people are reacting well to the new update, will port to other versions.
--
___
Python tracker
Johannes Schönberger j...@icoost.com added the comment:
This adds two further lines, so you can pass int's, float's or Decimal types to
the function.
def sin(x):
Return the sine of x as measured in radians.
print sin(Decimal('0.5'))
0.4794255386042030002732879352
print
Johannes Schönberger j...@icoost.com added the comment:
sorry, forgot the str:
def rsin(x):
Return the sine of x as measured in radians.
print sin(Decimal('0.5'))
0.4794255386042030002732879352
print sin(0.5)
0.479425538604
print sin(0.5+0j)
(0.479425538604+0j)
New submission from Arfrever Frehtes Taifersar Arahesis
arfrever@gmail.com:
When the release file doesn't contain some data, then
platform._parse_release_file() causes UnboundLocalError. I'm attaching the
patch to fix it.
$ python2.7 -c 'import platform; platform._parse_release_file()'
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +lemburg
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7773
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
priority: - normal
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7771
___
Brian Curtin cur...@acm.org added the comment:
After looking into this again, the testing situations are much different than I
had originally written.
Some of the tests aren't really valid exercises. For one, the
querying/enabling/disabling of reflection keys aren't good tests as they aren't
Ezio Melotti ezio.melo...@gmail.com added the comment:
Fixed in r77733 (trunk) and r77734 (release26-maint), thanks for the patch!
--
assignee: jcea - ezio.melotti
nosy: +ezio.melotti
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
John Marter jmar...@gmail.com added the comment:
I see that the spelling of banana has been fixed but what is the purpose of
assigning fruit and then immediately reassigning it another value without even
looking at the first assignment?
fruit = ['apple', 'orange', 'apple', 'pear', 'orange',
Changes by Florent Xicluna la...@yahoo.fr:
Removed file: http://bugs.python.org/file15928/issue7092_filterwarnings_v2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
Changes by Florent Xicluna la...@yahoo.fr:
Removed file: http://bugs.python.org/file15929/issue7092_syntax_imports_v2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
Changes by Florent Xicluna la...@yahoo.fr:
Removed file: http://bugs.python.org/file15788/issue7092_check_warnings.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
Changes by Florent Xicluna la...@yahoo.fr:
Added file: http://bugs.python.org/file15994/issue7092_syntax_imports_v3.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
Changes by Florent Xicluna la...@yahoo.fr:
Added file: http://bugs.python.org/file15995/issue7092_check_warnings_v3.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
Florent Xicluna la...@yahoo.fr added the comment:
Re-uploaded after fixes for #7737.
To remove all -3 warnings:
- apply the 4 patches
- fix SQLite buffer() warnings (issue #7223)
--
stage: committed/rejected - patch review
Added file:
Florent Xicluna la...@yahoo.fr added the comment:
Confirmed in trunk and 3.1
--
nosy: +flox
resolution: fixed -
stage: - needs patch
status: closed - open
versions: +Python 3.1, Python 3.2
___
Python tracker rep...@bugs.python.org
Benjamin Peterson benja...@python.org added the comment:
An accompanying test would be wonderful.
--
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7773
___
New submission from Tarek Ziadé ziade.ta...@gmail.com:
test_subprocess.test_executable now has a failure in the subprocess created
(see
http://www.python.org/dev/buildbot/builders/amd64%20gentoo%20trunk/builds/303/steps/test/logs/stdio)
the bbots don't get red because this is happening in the
Tarek Ziadé ziade.ta...@gmail.com added the comment:
Notice that this happen only under Linux and Solaris AFAIK. I couldn't
reproduce it under Mac OS X
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7774
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
stage: - test needed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7774
___
Florent Xicluna la...@yahoo.fr added the comment:
Confirmed on all Python versions.
Same behaviour without subprocess:
~ $ sh -c exec -a missingfile python -c 'import sys; print sys.executable'
/home/name/
--
nosy: +flox
___
Python tracker
Changes by Florent Xicluna la...@yahoo.fr:
--
versions: +Python 2.5, Python 2.6, Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7774
___
Changes by Florent Xicluna la...@yahoo.fr:
--
title: subprocess executable option wrong location - sys.executable: wrong
location if zeroth command argument is modified.
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7774
Muhammad Alkarouri malkaro...@gmail.com added the comment:
Mea culpa. Not knowing the conventions here, I closed the ticket, which
probably resulted in florent's feedback. I will leave you to it then.
--
___
Python tracker rep...@bugs.python.org
Jesse Noller jnol...@gmail.com added the comment:
I'm not the subprocess owner Tarek :(
--
assignee: jnoller -
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7774
___
Meador Inge mead...@gmail.com added the comment:
Updated the patch to add a test case in 'test_platform'. I also added a
comment explaining the change and removed a redundant assignment.
--
nosy: +minge
Added file: http://bugs.python.org/file15997/issue-7773.patch
Changes by Raymond Hettinger rhettin...@users.sourceforge.net:
--
assignee: georg.brandl - rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4570
___
Changes by Brian Curtin cur...@acm.org:
--
keywords: +needs review
priority: - normal
stage: - patch review
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7773
___
Benjamin Peterson benja...@python.org added the comment:
Thanks for the patch! Applied in r77735.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7773
Changes by kai zhu kaizhu...@gmail.com:
--
assignee: georg.brandl
components: Documentation
nosy: georg.brandl, kaizhu
severity: normal
status: open
title: str.rpartition(sep) - (tail, sep, head)
versions: Python 3.1
___
Python tracker
New submission from Cameron Simpson c...@zip.com.au:
I'm trying to do HTTPS via a proxy in Python 2.6.4 (which is supposed to
incorporate this fix from issue 1424152).
While trying to debug this starting from the suds library I've been reading
httplib.py and urllib2.py to figure out what's
Changes by Brian Curtin cur...@acm.org:
--
nosy: +brian.curtin
priority: - normal
stage: - test needed
versions: +Python 2.7, Python 3.1, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7776
Richard Hansen rhan...@bbn.com added the comment:
Any comments on the patches? I'd love to see at least patches 1-3 make it into
Python 2.7. :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7615
Cameron Simpson c...@zip.com.au added the comment:
Amendment: regarding the infinite regress, it looks like there will not be a
recursion if the caller leaps straight to the .connect() method. However, if
they do that then the call to _tunnel() from within connect() will happen
_after_ the
Changes by Senthil Kumaran orsent...@gmail.com:
--
assignee: - orsenthil
nosy: +orsenthil
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7776
___
New submission from Chris Withers ch...@simplistix.co.uk:
Can you please provide information about the actual problem you're reporting?
--
nosy: +cjw296
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7775
Cameron Simpson c...@zip.com.au added the comment:
It's looking like I have my idea of .host versus ._tunnel_host swapped. I think
things are still buggy, but my interpretation of the bug is wrong or misleading.
I gather that after _set_tunnel(), .host is the proxy host and that
._tunnel_host
Changes by Martin v. Löwis mar...@v.loewis.de:
--
nosy: +loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7621
___
___
Python-bugs-list
Martin v. Löwis mar...@v.loewis.de added the comment:
Generate a message.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7621
___
___
Martin v. Löwis mar...@v.loewis.de added the comment:
Generate a message.
Reply to it.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7621
___
New submission from Andrew Grover andy.gro...@gmail.com:
RDS is a reliable datagram protocol used by Oracle clusters for inter-process
communication. It is in the Linux kernel, and has a defined address family
number. Its use is identical to UDP, except the address family is 21, and the
type
Martin v. Löwis mar...@v.loewis.de added the comment:
A patch has good chances of getting accepted (eventually; it may take several
months or years). Test cases and documentation changes should be included.
Supporting generic socket addresses can't work (IMO): how could Python possibly
know
Changes by Florent Xicluna la...@yahoo.fr:
--
type: - behavior
versions: +Python 2.6, Python 2.7, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7775
___
90 matches
Mail list logo