Dmitry Shachnev mity...@gmail.com added the comment:
Then, which types of argument should encode_* functions take (I think str
should be supported, and it's not a case here as encode_quopri will only
accept bytes)?
I meant which types of *payload* should they accept. Here's an illustration
Alex Grönholm alex.gronholm+pyt...@nextday.fi added the comment:
Kubuntu 11.10, 64-bit. No ~/.pydistutils.cfg. What other info do you need?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14357
Changes by Matt Joiner anacro...@gmail.com:
--
nosy: +anacrolix
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9528
___
___
Python-bugs-list
New submission from Jeff Robbins je...@livedata.com:
Windows.h includes RpcNdr.h which does this:
#define small char
accu.h in Python\Include (Python 3.2.3rc2) has this in it:
typedef struct {
PyObject *large; /* A list of previously accumulated large strings */
PyObject *small; /*
Changes by Kristján Valur Jónsson krist...@ccpgames.com:
--
superseder: - Intern certain integral floats for memory savings and
performance
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4024
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
I suggest to remove accu.h from Python.h: all functions are private anyway, and
it's only used by couple of files.
--
assignee: - pitrou
nosy: +amaury.forgeotdarc, pitrou
___
Python tracker
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset f57cbcefde34 by Benjamin Peterson in branch '3.2':
check by equality for __future__ not identity (closes #14378)
http://hg.python.org/cpython/rev/f57cbcefde34
New changeset 9d793be3b4eb by Benjamin Peterson in
R. David Murray rdmur...@bitdance.com added the comment:
email in python3 doesn't necessarily work with binary payloads. (Obviously
here you've found the opposite problem, but it is in methods that aren't used
by the package itself.) There aren't any tests of binary payloads in the test
Changes by R. David Murray rdmur...@bitdance.com:
--
keywords: +needs review
stage: - patch review
type: - enhancement
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14078
___
STINNER Victor victor.stin...@gmail.com added the comment:
Patch version 2:
- add tests and documentation
- dictproxy code moved to dictproxyobject.c
- dict_proxy replaced with dictproxy in repr(dictproxy)
- key in dictproxy now handles correctly dict subclasses
- dictproxy constructor
STINNER Victor victor.stin...@gmail.com added the comment:
The dictproxy is useful to implement a Python sandbox: see the related issue
#14385.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14386
STINNER Victor victor.stin...@gmail.com added the comment:
Note: this protection is not enough to secure Python,
but it is an important part of a Python sandbox.
Oh, and by the way, I workaround the lack of read-only mapping in pysandbox by
removing dict methods: dict.__init__(),
R. David Murray rdmur...@bitdance.com added the comment:
Thanks for the report and patch. However, in general we prefer not to mask
exceptions (doing that can hide bugs in programs). It would probably be
reasonable to fix this in pydoc, however.
Alternatively there might be a specific
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +benjamin.peterson, georg.brandl
priority: normal - release blocker
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14387
R. David Murray rdmur...@bitdance.com added the comment:
After this commit the buildbots are dying randomly with segfaults.
--
nosy: +r.david.murray
priority: normal - release blocker
status: closed - open
___
Python tracker rep...@bugs.python.org
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 1729ec440bb6 by Benjamin Peterson in branch '2.7':
check by equality for __future__ not identity (closes #14378)
http://hg.python.org/cpython/rev/1729ec440bb6
--
status: open - closed
Benjamin Peterson benja...@python.org added the comment:
1b467efb9b27
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14378
___
___
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
This should be fixable using the attached patch.
--
keywords: +patch
nosy: +vinay.sajip
stage: needs patch - patch review
type: - behavior
Added file: http://bugs.python.org/file24992/Makefile.pre.in.diff
Eli Bendersky eli...@gmail.com added the comment:
Hi Leon,
Thanks for the patch.
I suggest to start by raising this to the python-ideas mailing list, to see if
anyone has objections / different idea about doing this.
Next, keep in mind that starting with 3.3, the default ElementTree
New submission from Sol Jerome solj+...@soljerome.com:
This seems like it could be user error, but the traceback doesn't provide
useful information on where the problem could be. The relevant class is at the
following URL.
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset f34ac2e9d5cf by Antoine Pitrou in branch '3.2':
Issue #14387: Do not include accu.h from Python.h.
http://hg.python.org/cpython/rev/f34ac2e9d5cf
New changeset 5fe7d19ec49a by Antoine Pitrou in branch 'default':
Antoine Pitrou pit...@free.fr added the comment:
Fixed according to Amaury's suggestion.
Georg, Benjamin, I think this should probably go into the final releases.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14387
R. David Murray rdmur...@bitdance.com added the comment:
Looking at the traceback and your code, configparser is calling 'get',
expecting to call its own get method (that takes a 'raw' keyword), but instead
is calling the get on your subclass, which doesn't take a 'raw' keyword.
Since this
Giampaolo Rodola' g.rod...@gmail.com added the comment:
Closing as duplicate of issue 13694.
--
resolution: - duplicate
status: open - closed
versions: +Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13325
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
Yes, there is a measurable performance decrease in pybench arithmetic tests.
Integers don't fall out of arithmetic that often, true. But integral floats
are incredibly common in tabular data. In a game such as Eve Online,
Michael Foord mich...@voidspace.org.uk added the comment:
Thanks vinay (and ned). I thought that was the cause of the problem - but glad
you diagnosed and fixed it before I had to look into it. Patch looks good to
apply.
--
___
Python tracker
Antoine Pitrou pit...@free.fr added the comment:
Integers don't fall out of arithmetic that often, true. But integral
floats are incredibly common in tabular data. In a game such as Eve
Online, configuration data contains a lot of 0.0, 1.0, -1.0 and so
on. This patch saved us many
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 8c19c9914c22 by Giampaolo Rodola' in branch '2.7':
fix #10340: properly handle EINVAL on OSX and also avoid to call
handle_connect() in case of a disconnetected socket which is not meant to
connect.
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
The -10..11 range was determined empirically. As you see from the values,
only -10 shows up as significant... In fact, just storing 0 to 5 would capture
the bulk of the savings.
Right, I'll do some test with the hardcoded
Antoine Pitrou pit...@free.fr added the comment:
Right, I'll do some test with the hardcoded values you mentioned.
Btw, I don't think -0.0 is worth it, that value is a typical
arithmetic result and not something you typically get from input data.
I was suggesting -0.0 in the hope that it
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset e2cddb3f4526 by Giampaolo Rodola' in branch '3.2':
fix #10340: properly handle EINVAL on OSX and also avoid to call
handle_connect() in case of a disconnetected socket which is not meant to
connect.
Serhiy Storchaka storch...@gmail.com added the comment:
Try moving your changes from PyFloat_FromDouble to PyFloat_FromString. Look at
memory and perfomance.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14381
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 8c1fd9276b25 by Giampaolo Rodola' in branch '3.2':
issue 10340 - forgot to update Misc/NEWS
http://hg.python.org/cpython/rev/8c1fd9276b25
--
___
Python tracker
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 13cefcbcc7da by Giampaolo Rodola' in branch 'default':
fix #10340: properly handle EINVAL on OSX and also avoid to call
handle_connect() in case of a disconnetected socket which is not meant to
connect.
telmich nico-bugs.python@schottelius.org added the comment:
It seems not even using -S fixes the problem:
[16:25] brief:python-traceback-test% head -n 2 caller.py
#!/usr/bin/python3 -S
[16:25] brief:python-traceback-test% ./caller.py
Indirect child being called
Indirect child being
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
assignee: - giampaolo.rodola
priority: high - normal
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
telmich nico-bugs.python@schottelius.org added the comment:
I think setting up SIGINT after importing site is a good solution: It will kill
the program as expected and as soon as the user takes over control, she can
decide what todo.
In which stage/part is the python interpreter when
I
New submission from Practicing Zazen itisgenerallyagr...@gmail.com:
Please let me know if this is accepted behavior or not.
9*999
8991
9*999+0.1
8990.0
9*999+1
8992
--
messages: 156576
nosy: Practicing.Zazen
Dave Burton ncdave4l...@gmail.com added the comment:
Well, the exception is NotImplementedError. It's raised explicitly in
pygame\__init__.py
I uncommented my commented-out print statement in inspect.py, and added a
traceback print, and ran pydoc like this:
c:\python32\python.exe
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
PyFloat_FromString() is very restrictive. In our case, for example, the floats
in question don't come from text files.
I'm adding a new file with changes suggested by Antoine. only 0.0 and 1.0 are
interned. It turns out that
Antoine Pitrou pit...@free.fr added the comment:
See
http://docs.python.org/dev/faq/design.html#why-are-floating-point-calculations-so-inaccurate
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14389
poq p...@gmx.com added the comment:
It seems not even using -S fixes the problem
That's because you try to use re and os in your except block, and the
KeyboardInterrupt is raised before they are imported.
--
nosy: +poq
___
Python tracker
R. David Murray rdmur...@bitdance.com added the comment:
Michael, I thought you might be interested in this one since it looks like it
might involve inspect executing code unexpectedly, and I know you worked on
ways of not doing that...
--
nosy: +michael.foord
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
Adding a patch here.
--
keywords: +patch
Added file: http://bugs.python.org/file24995/#10538.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10538
Changes by R. David Murray rdmur...@bitdance.com:
--
resolution: - invalid
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14389
___
telmich nico-bugs.python@schottelius.org added the comment:
Oh yes, you are right. Sorry for the confusion.
When modifying caller.py to only print(), everything works.
But then I've a different problem: If I want to exit(1),
in case I get a SIGINT, I'd like to try to import sys. But trying
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
What's wrong with making functionality overridable, Antoine? By all means,
let's keep the select() but allow subclasses to elect not to use it.
As for the wakeup fd, there isn't such a thing. Why object on the basis of a
R. David Murray rdmur...@bitdance.com added the comment:
You might want to take a look at the Decimal module.
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14389
___
R. David Murray rdmur...@bitdance.com added the comment:
This appears to be causing buildbot failures:
http://www.python.org/dev/buildbot/all/builders/x86%20debian%20parallel%203.x/builds/4077
http://www.python.org/dev/buildbot/all/builders/AMD64%20Gentoo%20Wide%203.x/builds/3520
--
Antoine Pitrou pit...@free.fr added the comment:
Looks good to me.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10538
___
___
Python-bugs-list
Georg Brandl ge...@python.org added the comment:
Sounds reasonable to me.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14387
___
___
Stefan Krah stefan-use...@bytereef.org added the comment:
Hmm, I still get the error in 13cefcbcc7da:
c:\Users\stefan\pydev\cpython\Include\accu.h(21) : error C2059: syntax error :
'type'
c:\Users\stefan\pydev\cpython\Include\accu.h(22) : error C2059: syntax error :
'}'
Georg Brandl ge...@python.org added the comment:
We can of course also rename small.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14387
___
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 17c671529f7e by Kristján Valur Jónsson in branch '2.7':
Issue #10538. Put a reference to the source object in the Py_buffer when
http://hg.python.org/cpython/rev/17c671529f7e
--
nosy: +python-dev
Changes by Kristján Valur Jónsson krist...@ccpgames.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10538
___
Miki Tebeka miki.teb...@gmail.com added the comment:
python-ideas post at
https://groups.google.com/d/msg/python-ideas/lc_hkpKNvAg/ledftgY0mFUJ
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14384
Serhiy Storchaka storch...@gmail.com added the comment:
All errors are fixed. All tests are passed. Unfortunately, the patch was more
than expected. This is necessary for correct and effective work with large
bzip2 buffers (for other codecs can also be a profit).
--
Added file:
R. David Murray rdmur...@bitdance.com added the comment:
Great. I'm going to close the issue, but it's only for now: if you get a
good response and a design agreement on python-ideas please reopen the issue.
Of course, we'd need a patch, too; and I believe there would need to be close
to
Antoine Pitrou pit...@free.fr added the comment:
Hmm, I still get the error in 13cefcbcc7da:
Can you try to find a fix? I don't have anything to test here.
--
assignee: pitrou -
___
Python tracker rep...@bugs.python.org
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +nadeem.vawda
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14371
___
STINNER Victor victor.stin...@gmail.com added the comment:
You should mention your change in Misc/NEWS.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10538
___
Jeff Robbins je...@livedata.com added the comment:
The easiest fix would be to rename the small field in accu.h (and of course
in any file that references that field.) I have no idea who uses this file.
Perhaps the 2nd easiest fix would be to put this after the #include of Windows.h
#ifdef
Andrew Svetlov andrew.svet...@gmail.com added the comment:
Let's close this issue as very old and obsolete.
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1676
___
Daniel Swanson popcorn.tomato.d...@gmail.com added the comment:
I agree that the link to the bug tracker should be more obvious (yesterday it
took me almost an hour to find it)
--
nosy: +weirdink13
___
Python tracker rep...@bugs.python.org
Michael Foord mich...@voidspace.org.uk added the comment:
The code is *already* triggering execution through the use of hasattr. It could
be switched to use getattr_static instead, but the try...except in the patch
looks reasonable whether or not that change is made.
--
Antoine Pitrou pit...@free.fr added the comment:
Well, the exception shouldn't be silenced. As David said, I think it would be
better to silence the exception in pydoc.
Besides, it would be nice to come with a standalone test case, because it's not
clear exactly why pygame triggers this.
Jeff Knupp jkn...@gmail.com added the comment:
Patch to default character set to utf8 if non-ascii characters are found in the
input string. Please let me know if this is what you had in mind.
--
nosy: +Jeff.Knupp
___
Python tracker
Changes by Jeff Knupp jkn...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file24997/mailutf8.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14380
___
Antoine Pitrou pit...@free.fr added the comment:
What's wrong with making functionality overridable, Antoine? By all
means, let's keep the select() but allow subclasses to elect not to use
it.
It's making the implementation more complex for no obvious point.
Using select() is not a bug in
R. David Murray rdmur...@bitdance.com added the comment:
Pretty close. I'd do the check for us_ascii first, and only do the encode
test/switch to utf-8 if that's the charset. The reason is that that if a
charset has been specified, we don't waste time doing an unnecessary encoding
(and the
Andrew Svetlov andrew.svet...@gmail.com added the comment:
I have no problems with executing demo.
I used Russian locale with LC_NUMERIC, utf-8 and cp1251 (Russian Windows
encoding).
Looks like the problem cannot be reproduced.
--
nosy: +asvetlov
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
assignee: - rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14384
___
___
Stefan Krah stefan-use...@bytereef.org added the comment:
Jeff's #undef suggestion works here (see patch). But I have a question:
Where is Windows.h pulled in anyway? A grep only shows signalmodule.c:
$ find . -name \.hg -prune -o -type f -print0 | xargs -0 grep -n 'Windows\.h'
Jeff Robbins je...@livedata.com added the comment:
re Stefan Krah's posting:
I am sorry if I've caused any confusion. I am building a Python extension
(APSW), and it includes the sqlite amalgamation and also includes Python.h.
Sqlite includes Windows.h. Which then causes the problem when
Jeff Knupp jkn...@gmail.com added the comment:
Understood. Please take a look at the updated patch. Also, removed the
unrelated diffs that somehow were hanging around in my hg mq.
--
Added file: http://bugs.python.org/file24999/mimeutf8.patch
___
Stefan Krah stefan-use...@bytereef.org added the comment:
Jeff Robbins rep...@bugs.python.org wrote:
I am sorry if I've caused any confusion. I am building a Python extension
(APSW), and it includes the sqlite amalgamation and also includes Python.h.
The Python build itself failed here, too,
R. David Murray rdmur...@bitdance.com added the comment:
That looks good.
--
stage: test needed - commit review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14380
___
Stefan Krah stefan-use...@bytereef.org added the comment:
To prevent further confusion. :)
db154e62ac03 - OK
5fe7d19ec49a - failure
5fe7d19ec49a with #undef patch - OK
So I don't know if it is better to revert to db154e62ac03 or
to use the #undef patch.
Jeff, you originally said:
'An
Ned Deily n...@acm.org added the comment:
Yes, whatever the initial problem, it doesn't seem to be an issue anymore.
--
nosy: +ned.deily
resolution: - out of date
stage: test needed - committed/rejected
status: open - closed
___
Python tracker
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 8efe88c0f14e by krisvale in branch '2.7':
Issue #10538 - Update Misc/NEWS
http://hg.python.org/cpython/rev/8efe88c0f14e
--
___
Python tracker rep...@bugs.python.org
Andrew Svetlov andrew.svet...@gmail.com added the comment:
David Murray,
I used to think what deprecation process in Python have to go trough
PendingDeprectaionWarning to DeprecationWarning and removing in next next
release at end. Is it right?
Also I thought what that trivial patch does not
Jeff Robbins je...@livedata.com added the comment:
Stefan asked
'Did you include Python.h before or after Windows.h? Extensions
are supposed to include Python.h before anything else. '
I downloaded http://code.google.com/p/apsw/ to test it out on the latest sqlite
release. I followed the
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11077
___
___
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5527
___
___
Python-bugs-list
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1447222
___
___
STINNER Victor victor.stin...@gmail.com added the comment:
Thanks :-)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10538
___
___
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1252236
___
___
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 1ec74eeda4e8 by Ned Deily in branch 'default':
Issue #14382: Ensure new unittest.test.testmock is installed.
http://hg.python.org/cpython/rev/1ec74eeda4e8
--
nosy: +python-dev
Changes by Ned Deily n...@acm.org:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14382
___
New submission from John Bollinger john.bollin...@stjude.org:
This is the same as issue 452973, created as a new issue pursuant to the
instruction given when 452973 was closed as out of date.
In a nutshell, in a program using combining Tkinter with Tcl callbacks written
in C, it is possible
R. David Murray rdmur...@bitdance.com added the comment:
You are theoretically right about not posting trivial patches, but as you can
see, sometimes even a trivial patch elicits unexpected insights. So I like to
always post my patches, even the seemingly trivial ones. Then if I don't get
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
Victor, could you check out the last patch here for sysmodule? I gather that
you are familiar with it.
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
Terry J. Reedy tjre...@udel.edu added the comment:
Thanks for retesting.
Closing until there is a clear problem with current releases.
--
resolution: - out of date
status: open - closed
versions: -Python 2.4
___
Python tracker
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6270
___
___
Python-bugs-list
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3015
___
___
Python-bugs-list
Antoine Pitrou pit...@free.fr added the comment:
Ok. In the current state it doesn't look detrimental, although I'm not
convinced it's that useful either.
That said, the implementation needs a bit of work, I don't think it's ok for
float_is_positive_zero() to use the Py_LONG_LONG casting
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
Now unicodedata.c does not compile with VS2010, because somewhere, small is
defined.
Do you mind if I change the _PyAccu.small member to 'smalls'?
--
nosy: +krisvale
___
Python tracker
Antoine Pitrou pit...@free.fr added the comment:
Now unicodedata.c does not compile with VS2010, because somewhere, small is
defined.
Do you mind if I change the _PyAccu.small member to 'smalls'?
How about the #undef suggested somewhere?
--
___
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
Sure, that's simpler. I'll submit a fix.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14387
___
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
assignee: - asvetlov
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1524639
___
1 - 100 of 110 matches
Mail list logo