Steven D'Aprano ste...@remove.this.cybersource.com.au writes:
Besides, one can legitimately disagree that 2/3 = 0 is the wrong thing
to do. It's the right thing to do if you're doing integer maths.
True, but the question is how best to decide whether the
programmer wants to do integer maths.
greg g...@cosc.canterbury.ac.nz writes:
However, I suspect that you can't improve much on what we've already
got without restricting the domain of applicability of the
language. Otherwise, you just shift the intellectual bottleneck from
writing a correct program to writing correct
Tim Bradshaw t...@cley.com writes:
On 2009-07-19 19:31:36 +0100, Frank Buss f...@frank-buss.de said:
(e.g. I
don't know of a free modern and stable Lisp implemenation with
mulithreading support for Windows, with a licence with which you can use it
in closed source commercial programs, like
On Tue, Jul 21, 2009 at 6:00 PM, Rhodri
Jamesrho...@wildebst.demon.co.uk wrote:
On Tue, 21 Jul 2009 21:55:18 +0100, Ryniek90 rynie...@gmail.com wrote:
Hi.
I'm writing some class, and decided to use inside private method and some
private variables. While with method i haven't got any problem's
En Tue, 21 Jul 2009 21:37:50 -0300, David Lyon david.l...@preisshare.net
escribió:
On Wed, 22 Jul 2009 07:32:22 +0700, khanh le khanhqh20...@gmail.com
wrote:
do you have any materials about Python?
can you show me the link of Python or some books?
http://www.python.org/
Also see
Chk dis out ...
http://www.swaroopch.com/notes/Python
It's gr8 guide for beginners
Cheers!!!
Prateek
--
http://mail.python.org/mailman/listinfo/python-list
I have a class attribute 'foo' which is a data descriptor. I create an
instance of such class. When I say instance.foo = value, the descriptor
__set__ method is called. Is there any way to obtain the name being
assigned to? ('foo' in this example). That is, I want to know the target
name
On 2009-07-21 19:06:02 -0400, Neil Hodgson
nyamatongwe+thun...@gmail.com said:
Python uses native threads.
So it can be teh-slowness on all ur cores!
http://shootout.alioth.debian.org/u64q/benchmark.php?test=nbodylang=all
The global interpreter lock doesn't help much either.
--
Raffael
On Wednesday 22 July 2009, Gabriel Genellina wrote:
x = X()
x.foo = value
del x.foo
--
Wolfgang
--
http://mail.python.org/mailman/listinfo/python-list
On Wednesday 22 July 2009, Wolfgang Rohdewald wrote:
On Wednesday 22 July 2009, Gabriel Genellina wrote:
x = X()
x.foo = value
del x.foo
sorry, was not yet quite awaken - I read delete target name
instead of detect target name
--
Wolfgang
--
En Fri, 17 Jul 2009 13:59:47 -0300, nohics nohics noh...@gmail.com
escribió:
When an IRC client receive a messages, this message in in a special
format
defined here: Message format in pseudo
BNFhttp://www.irchelp.org/irchelp/rfc/chapter2.html#c2_3_1(
I want to transforme the message format
Peter Landgren peter.tal...@telia.com added the comment:
Just some more test. I compared the result of string.letters,
string.uppercase and string.lowercase in 2.5 and 2.6:
Python25:
Letters=
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzâèîÄܣ׃¬Á║└┴┬├─┼ãÃ
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6525
___
___
Python-bugs-list
Ezio Melotti ezio.melo...@gmail.com added the comment:
In Python 3, True, False and None are keywords, so the orange should be
correct. It should be orange also when you do foo = True though.
--
nosy: +ezio.melotti
___
Python tracker
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
I found one problem in test_docxmlrpc.py, a missing import socket at
the top (for the socket.timeout exception handler).
Please add that, and see what happens.
But there seems to be a problem with the error handing in your build.
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
This was already fixed with issue6050, and will be part of 2.6.3.
Thanks for the report
--
nosy: +amaury.forgeotdarc
resolution: - duplicate
status: open - closed
___
Python tracker
New submission from Graham Dumpleton graham.dumple...@gmail.com:
I am seeing a crash within Py_Finalize() with Python 3.0 in mod_wsgi. It looks
like the
patches for issue-4200 were not adequate and that this wasn't picked up at the
time.
This new problem I am seeing looks like it may be
Graham Dumpleton graham.dumple...@gmail.com added the comment:
Have created issue6531 for my new issue related to this patch.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4200
___
R. David Murray rdmur...@bitdance.com added the comment:
One of the new tests in r74134 is failing on my box (Gentoo x86), and on
a number of the buildbots:
test test_ctypes failed -- Traceback (most recent call last):
File /home/rdmurray/python/trunk/Lib/ctypes/test/test_bitfields.py,
line
Changes by R. David Murray rdmur...@bitdance.com:
--
priority: - normal
stage: - commit review
type: - behavior
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.5, Python 3.0
___
Python tracker rep...@bugs.python.org
Thomas Heller thel...@ctypes.org added the comment:
One of the new tests in r74134 is failing on my box (Gentoo x86), and on
a number of the buildbots:
I've seen that, but do not yet have a patch.
--
title: Can not set value for structure members larger than 32 bits - Can not
set
R. David Murray rdmur...@bitdance.com added the comment:
I strongly recommend you move to 3.1. 3.0 will not be getting any more
bug patches.
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6531
Graham Dumpleton graham.dumple...@gmail.com added the comment:
As a provider of software that others use I am just making mod_wsgi usable
with everything so users can use whatever they want. You telling me to use
Python 3.1 isn't going to stop people from using Python 3.0 if that is
what they
R. David Murray rdmur...@bitdance.com added the comment:
I'm sorry, I wasn't clear. We are recommending that no one use Python
3.0 for production. Python 3.1 fixed some significant performance
issues. We are hoping that distribution packagers will not ship 3.0,
but will ship 3.1 instead. But
Benjamin Peterson benja...@python.org added the comment:
Fixed in r74139
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6530
___
New submission from Wojciech Lichota wojci...@lichota.pl:
In glibc library (on linux) pthread_t is defined as:
typedef unsigned long int pthread_t;
But python thread module interprets this value as signed long.
Reproduce:
import thread
thread.get_ident()
In some cases it returns negative
nestor nestornis...@gmail.com added the comment:
Maybe this has something to do with it?
Python 3.1 (r31:73572, Jul 9 2009, 16:28:28) [C] on aix5
Type help, copyright, credits or license for more information.
open(/dev/tty,a).seekable()
True
--
New submission from R. David Murray rdmur...@bitdance.com:
It seems like time.xmlrpc.com is gone (again?). That service was
provided by userland.com, who have an xmlrpc server that they mention in
their documentation examples (see for example
http://frontier.userland.com/changes/kernel71) which
New submission from Luke-Jr luke...@users.sourceforge.net:
Should return EEXIST or EISDIR provided C:\ actually exists
--
components: Windows
messages: 90764
nosy: luke-jr
severity: normal
status: open
title: os.makedirs returns EACCES for C:\
type: behavior
versions: Python 2.5
Thomas Heller thel...@ctypes.org added the comment:
ctypes_workaround_2.patch from ocean-city seems to fix it so I'll apply
that.
--
title: Can not set value for structure members larger than 32 bits - Can not
set value for structure members larger than 32 bits
New submission from Daniel Kaplun m...@dvir.us:
In the second example to allow usage of the required field for options,
it seems as if you already have all you need to implement the feature
into optparse. I modified it a bit to allow OptionGroups:
class Option(optparse.Option):
ATTRS =
Changes by Daniel Kaplun m...@dvir.us:
--
type: - feature request
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6535
___
___
Python-bugs-list
STINNER Victor victor.stin...@haypocalc.com added the comment:
ping? The bug is still open and valid.
--
versions: +Python 2.7, Python 3.0, Python 3.1, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3311
New submission from Kurt McKee contac...@kurtmckee.org:
At http://docs.python.org/dev/howto/urllib2.html,
HHTPBasicAuthHandler should of course be HTTP...
--
assignee: georg.brandl
components: Documentation
messages: 90769
nosy: georg.brandl, kurtmckee
severity: normal
status: open
Benjamin Peterson benja...@python.org added the comment:
split() is usually used to split words. To reflow text, use the textwrap
module.
--
nosy: +benjamin.peterson
resolution: - rejected
status: open - closed
___
Python tracker
Eric Promislow er...@activestate.com added the comment:
Thanks. For the record, I want
textwrap.TextWrapper(..., break_long_words=False)
or it will break after a non-breaking space if that
gives an optimum length.
--
status: closed - open
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
assignee: georg.brandl - ezio.melotti
nosy: +ezio.melotti
priority: - low
resolution: - accepted
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6536
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6536
___
___
Changes by Daniel Kaplun m...@dvir.us:
--
keywords: +patch
Added file: http://bugs.python.org/file14529/optparse.py.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6535
___
Changes by Daniel Kaplun m...@dvir.us:
Added file: http://bugs.python.org/file14530/testcase.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6535
___
___
New submission from R. David Murray rdmur...@bitdance.com:
In the re documentation MatchObject is marked up as a class, but since
there's no declaration of it as a class (it's a section instead) it
doesn't get turned into a hyperlink. It would be useful if it did link
to the appropriate
R. David Murray rdmur...@bitdance.com added the comment:
What we are looking for in the way of tests is unit tests to add to
test_optparse. Another piece that I forgot about that we'll need is a
documentation patch.
Finally, it will be easier to review the patch if you don't make other
changes
New submission from Kurt B. Kaiser k...@shore.net:
rev 74095
http://svn.python.org/view?view=revrevision=74095
didn't create the unittest dir during installation.
unittest isn't installed in its final location.
--
assignee: benjamin.peterson
components: Build
files:
Luke-Jr luke...@users.sourceforge.net added the comment:
At least fix the documentation, then...
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6534
___
Benjamin Peterson benja...@python.org added the comment:
Fixed in r74150.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6539
___
Daniel Kaplun m...@dvir.us added the comment:
I have not a single clue how to unit test.
What do you mean by documentation patch? Do you want me to update the
documentation within the file to reflect changes?
--
___
Python tracker
Ezio Melotti ezio.melo...@gmail.com added the comment:
sys.stderr looks ok, I tried what you said and I also tried to put some
assert sys.stderr == sys.__stderr__ here and there and nothing changed.
I commented out the tests one by one and I found out that the first test
alone
R. David Murray rdmur...@bitdance.com added the comment:
Well, if you get check out the current trunk via svn (as described in
the developer's faq linked from http://www.python.org/dev) and you look
at what Lib/test/test_optparse.py currently does, you might find it is
not too hard to add some
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
Well, I think the only way to move forward with this is to try to
figure out what the actual error is. Something is wrong in printing it
out to stderr, and it would be helpful to understand why it is not
being output. Perhaps
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
The documentation carefully don't specify the possible values of errno of
the exceptions. What do you want to fix?
--
___
Python tracker rep...@bugs.python.org
New submission from STINNER Victor victor.stin...@haypocalc.com:
bytearray.translate() crash if:
* first argument was converted to a buffer but the buffer length is not 256
bytes
* first argument is valid, but the second argument can not be converted to a
buffer
The crash occurs because
Changes by STINNER Victor victor.stin...@haypocalc.com:
Removed file: http://bugs.python.org/file14532/bytearray.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6540
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
Oops, my first patch was broken (redefine test_bin, instead of using a
different method name). The name patch tests both cases (the two crashs).
--
Added file: http://bugs.python.org/file14533/bytearray-2.patch
Ezio Melotti ezio.melo...@gmail.com added the comment:
Same message in the terminal and nothing in the file.
Can you reproduce it if you run the test several times? Some times I
have to run ./python Lib/test/regrtest.py -v test_docxmlrpc 15-20 or
even more times before the message appears.
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
priority: - critical
stage: - patch review
type: - crash
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6540
___
New submission from Leon Matthews l...@lost.co.nz:
According the docs for the tempfile module, SpooledTemporaryFile()
should operate exactly as TemporaryFile() does. However, while
playing around trying to learn the module I found a couple of places
where this is not the case:
import tempfile
Alexandre Vassalotti alexan...@peadrop.com added the comment:
Patch committed in r74155 (branches/py3k).
--
resolution: - accepted
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
New submission from R. David Murray rdmur...@bitdance.com:
The test sequence test_ttk_guionly test_os test_pipes hangs almost
every time when run on Gentoo x86 and Ubuntu x86_64 (at least). Note
that this is without the gui resource, so the ttk tests aren't being run.
Commenting out
Alexandre Vassalotti alexan...@peadrop.com added the comment:
Patch committed in r74156 (branches/py3k).
--
resolution: - accepted
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
R. David Murray rdmur...@bitdance.com added the comment:
It appears that TestInvalidFD.test_closerange is in fact closing a valid
file descriptor in this case. I'm not sure how to fix the test...nor
why the close produced the results it does.
--
___
Ezio Melotti ezio.melo...@gmail.com added the comment:
I rephrased the doc and removed has_key at all, fixed the rst markup for
'in' and improved a little the example.
If the attached patch is ok I'll commit it.
The py3 doc is slightly different, they should probably be the same (I
prefer 'in'
Alexandre Vassalotti alexan...@peadrop.com added the comment:
Committed in r74157 (branches/py3k).
--
resolution: - accepted
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
R. David Murray rdmur...@bitdance.com added the comment:
Here's another buildbot failure that's probably the same thing:
http://www.python.org/dev/buildbot/all/x86%20osx.5%203.x/builds/1220
--
___
Python tracker rep...@bugs.python.org
Alexandre Vassalotti alexan...@peadrop.com added the comment:
Committed in r74158 (branches/py3k).
--
resolution: - accepted
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
R. David Murray rdmur...@bitdance.com added the comment:
Your patch looks good. I was going to opine that mentioning
__contains__ was good because it would lead the reader to understand how
'in' is supported, but since the len function is referenced but that
doesn't let you learn about __len__,
R. David Murray rdmur...@bitdance.com added the comment:
Patch to skip test if it can't get a range of invalid file descriptors
to test. The test sequence passes with this patch in place.
--
assignee: - r.david.murray
keywords: +patch
stage: needs patch - patch review
Added file:
Alexandre Vassalotti alexan...@peadrop.com added the comment:
Committed in r74159 (branches/py3k).
--
resolution: - accepted
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Alexandre Vassalotti alexan...@peadrop.com added the comment:
Oh, nice catch. That patch looks fine. However, I would probably add a
comment why the fstat checks are required.
--
nosy: +alexandre.vassalotti
___
Python tracker rep...@bugs.python.org
Alexandre Vassalotti alexan...@peadrop.com added the comment:
Closing as I don't see any other bugs in this issue to fix.
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
101 - 169 of 169 matches
Mail list logo