New submission from Stefan Krah stefan-use...@bytereef.org:
Hi, the tests fail on Debian if the option --without-threads is used:
./configure --with-pydebug --without-threads
make
make test
./python -Wd -E -bb ./Lib/test/regrtest.py -l
== CPython 3.3a0 (default:9140f2363623+, Jan 30 2011,
New submission from Stefan Krah stefan-use...@bytereef.org:
Valgrind reports a leak (definitely lost) in atexitmodule.c. The
patch fixes the problem.
--
components: Extension Modules
files: atexit-leak.patch
keywords: patch
messages: 133501
nosy: skrah
priority: normal
severity: normal
Stefan Krah stefan-use...@bytereef.org added the comment:
[Merging with issue 11402]
Daniel's patch is much simpler, but I think that unicode_empty and
unicode_latin1 would need to be protected before _PyUnicode_Init
is called.
Is the module initialization procedure documented somewhere? I get
Stefan Krah stefan-use...@bytereef.org added the comment:
This should be a duplicate of issue 10156.
--
nosy: +skrah
resolution: - duplicate
stage: patch review - committed/rejected
status: open - closed
superseder: - Initialization of globals in unicodeobject.c
Stefan Krah stefan-use...@bytereef.org added the comment:
Stefan Krah rep...@bugs.python.org wrote:
Is the module initialization procedure documented somewhere? I get
the impression that unicodeobject.c depends on dict.c and dict.c
depends on unicodeobject.c.
s/dict.c/dictobject.c/
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
handlers parameter now added to logging.basicConfig(), which covers this use
case:
logging.basicConfig(handlers=[logging.FileHandler('test.log', 'w', 'utf-8')])
Ref: changeset c9e9142d82d6
--
status: open - closed
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
I'll regretfully have to mark this as wontfix, since adding threading
interlocks for correct operation in multi-threaded environments will negate the
performance benefit.
--
resolution: - wont fix
status: open - closed
New submission from Eli Bendersky eli...@gmail.com:
The documentation of subprocess.Popen mentions a function named list2cmdline():
On Windows: the Popen class uses CreateProcess() to execute the child
program, which operates on strings. If args is a sequence, it will be converted
to a
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment:
So here is a patch which steps forward the not-yet-fully-completed
transition to the mixed bytes/str EMail stuff.
Test coverage is available if you patch in
http://bugs.python.org/file21549/11684.1.diff from #11684.
(Because i
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment:
On Sat, Apr 09, 2011 at 03:58:11PM +, Ned Deily wrote:
By the way, since you've asked about it before,
MACOSX_DEPLOYMENT_TARGET is a standard feature of the Apple gcc
tool chain and is used to support builds for multiple
R. David Murray rdmur...@bitdance.com added the comment:
I vote for (2) (I presume 'it' in that sentence is 'subprocess'). list2cmdline
shouldn't be a real public method, at least not without the issues
surrounding being given careful design attention.
--
nosy: +r.david.murray
Eli Bendersky eli...@gmail.com added the comment:
I also prefer (2) since I see no reason for the user to use list2cmdline()
directly, let alone from subprocess (had there been rationale for such a public
function it should probably be in another module).
As for 'it', I guess you can say it
R. David Murray rdmur...@bitdance.com added the comment:
Patch mostly looks good to me, modulo some English wording that I'll fix up
when I commit it.
The issue with the '@' is that it might not be there. So you do need to check
for that case (it means the domain part defaults to the 'local'
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment:
I've opened it and it's fixed, so i'll close it now.
If someone finds the single bug in 11650.termios-1.diff
in termios_resume() and also has an idea of how to call
termios_suspend() in case Python crashes or gives back
the
R. David Murray rdmur...@bitdance.com added the comment:
Ah, right. I guess I was advocating that the docs be written from the
perspective that list2cmdline doesn't exist as an identifiable entity. From
the POV of the updated docs, it is just subprocess's behavior, and list2cmdline
is an
STINNER Victor victor.stin...@haypocalc.com added the comment:
Attached patch disables regrtest.py timeout if
faulthandler.dump_tracebacks_later() is missing. It prints a warning at
startup, and an error if --timeout option is used.
--
keywords: +patch
Added file:
Jesús Cea Avión j...@jcea.es added the comment:
The 3rd party package is activelly maintained (by me :) in
http://www.jcea.es/programacion/pybsddb.htm. BDB 5.1 support is there.
--
___
Python tracker rep...@bugs.python.org
STINNER Victor victor.stin...@haypocalc.com added the comment:
(Victor, please don't file many bugs in a single issue!)
I thought that these issues were the same.
Victor
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8428
olt o...@bogosoft.com added the comment:
For anyone that has to use a Python version where this bug is present, it is
possible to manually create a NULL pointer.
For the example:
POINTER(c_double)()
This works, at least in my case.
--
nosy: +olt
Torsten Becker torsten.bec...@gmail.com added the comment:
modulo some English wording that I'll fix up when I commit it.
Yeah, sorry for that, I seem to have trouble with writing good documentation.
:) I'll have a look at the documents referenced by [1] to improve my writing.
The issue
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11810
___
___
Python-bugs-list mailing list
Stefan Krah stefan-use...@bytereef.org added the comment:
The patch works. Is it expected that dump_tracebacks_later is missing
when building --without-threads? If so, the warning is probably
confusing for the uninitiated.
--
___
Python tracker
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11816
___
___
Python-bugs-list mailing list
Jesús Cea Avión j...@jcea.es added the comment:
Do not forget to update docs too.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11816
___
___
R. David Murray rdmur...@bitdance.com added the comment:
Hmm. You are correct. I thought the RFC's covered this case, but apparently
they don't.
The email package gets used in MUA contexts, where the domain part of the
address may be omitted and the MUA must fill it in before transmitting
Changes by Antoine Pitrou pit...@free.fr:
--
components: +Windows
nosy: +brian.curtin, tim.golden
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5162
___
Changes by Antoine Pitrou pit...@free.fr:
--
stage: test needed - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5162
___
___
Brian Curtin br...@python.org added the comment:
This looks reasonable to me. If no one beats me to it, I'll check it in tonight.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5162
___
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
--
nosy: +belopolsky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11816
___
___
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
--
nosy: +belopolsky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11822
___
___
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Would you like to display lambdas as well?
dis('lambda x: x**2')
1 0 LOAD_CONST 0 (code object lambda at
0x1005c9ad0, file dis, line 1)
3 MAKE_FUNCTION0
Swapnil Talekar swapnil...@gmail.com added the comment:
Sorry about the previous report. I should have tested it thoroughly. Yes, it
does not seem to rise but eventually it does. This time, I'v added garbage
collection right after the subinterpreter is shutdown. The memory consumption
does
Changes by Swapnil Talekar swapnil...@gmail.com:
--
resolution: invalid -
status: closed - open
versions: +Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11803
___
Éric Araujo mer...@netwok.org added the comment:
May I ask why 3.1 was not fixed too?
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11818
___
New submission from Marijn Schouten hk...@gentoo.org:
startswith and endswith don't accept None as slice index, as shown by below
interaction. Same behavior for python-3.1.3(with print()) and python-2.7.1. If
instead this is intended behavior then the error message is wrong.
$ python -c print
Marijn Schouten hk...@gentoo.org added the comment:
I remark that `find' and `index' do accept None:
$ python3 -c print('abc'.find('c',None,None))
2
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11828
Jesús Cea Avión j...@jcea.es added the comment:
a) Python 2.6 is open only for security fixes. Could you possibly try in 2.7,
3.1 and 3.2?
b) Could you run the test a bit longer and confirm that the leak is slowly
growing?
c) I assume your mod_python is running under Apache. Apache restarts
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11813
___
___
Python-bugs-list
Changes by Jesús Cea Avión j...@jcea.es:
--
versions: +Python 3.2 -Python 2.7, Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11828
___
Jesús Cea Avión j...@jcea.es added the comment:
Since this is not a regression, this would be solved in 3.3 only. I guess.
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11828
R. David Murray rdmur...@bitdance.com added the comment:
Well, if it is judged a bug (and it seems to me that it is), then it can get
fixed in 2.7 and 3.2 (and yes I did confirm that the same bug is present in
2.7).
It appears to be the result of startswith/endswith applying naive parsing to
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
Letting None be used as an index has always been treated as a feature request;
however, in this case, it can be deemed a bug because the error message is
making a promise that isn't kept.
It would be nice if once and for all
Charles-Francois Natali neolo...@free.fr added the comment:
One possible cause for those intermittent failures is the preemtion of a thread
while waiting on the condition:
def wait(self, timeout=None):
233 assert self._lock._semlock._is_mine(), \
234'must
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
I am posting an unfinished patch (needs additional tests and possibly
documentation) to get feedback on whether it would make sense to wait for
issue11816 refactoring before implementing this. Note the code duplication
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
Is this moving anywhere? I was asked to apply this patch locally and am
curious as to whether it is moving into the stdlib.
--
nosy: +krisvale
___
Python tracker rep...@bugs.python.org
Charles-Francois Natali neolo...@free.fr added the comment:
Sorry, wrong copy-paste, the failing assertion will of course be this one:
773 self.assertReturnsIfImplemented(6, get_value, woken)
since woken.get_value() == 5
--
___
Python
Wojciech Muła wojciech_m...@poczta.onet.pl added the comment:
Steven, thank you for links, I prepared patch against trunk.
All tests passed.
--
Added file: http://bugs.python.org/file21617/issue11354.patch
___
Python tracker rep...@bugs.python.org
Jesús Cea Avión j...@jcea.es added the comment:
Anybody taking care of this, should check also byte and bytearray.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11828
___
William Hart whart...@gmail.com added the comment:
Understood! FYI, we worked around this caching issue explicitly in our
code. This wound up being simpler than supporting a hacked version of the
logger.
Thanks for looking into this!
On Mon, Apr 11, 2011 at 1:54 AM, Vinay Sajip
Santoso Wijaya santoso.wij...@gmail.com added the comment:
Adding some minor fixes to the original patch to apply cleanly to current 2.7
tip.
Also, add a conditional branch in the case that the server returns none of the
supported algorithm strings, to raise a ValueError (the previous patch
Changes by Santoso Wijaya santoso.wij...@gmail.com:
--
nosy: +santa4nt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11828
___
___
Roundup Robot devnull@devnull added the comment:
New changeset a2ee967de44f by Raymond Hettinger in branch '3.2':
Issue #11747: Fix range formatting in context and unified diffs.
http://hg.python.org/cpython/rev/a2ee967de44f
New changeset 1e5e3bb3e1f1 by Raymond Hettinger in branch 'default':
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11747
___
Antoine Pitrou pit...@free.fr added the comment:
I think it should be enabled with an optional argument. Otherwise in some cases
you'll get lots of additional output while you're only interested in the
top-level code.
--
nosy: +pitrou
___
Python
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
If you disassemble a function, you typically want to see all the code in that
function. This isn't like pdb where you're choosing to step over or into
another function outside the one being viewed.
--
Antoine Pitrou pit...@free.fr added the comment:
If you disassemble a function, you typically want to see all the code
in that function.
That depends on the function. If you do event-driven programming (say,
Twisted deferreds with addCallback()), you don't necessarily want to see
the
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
On Mon, Apr 11, 2011 at 5:21 PM, Antoine Pitrou rep...@bugs.python.org wrote:
..
Raymond If you disassemble a function, you typically want to see all the code
Raymond [defined] in that function.
+1 (with clarification in
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
Re-opening. There are some problems with the fix. Context diff ranges need to
show the ending line number, not the length. Also for unified diffs, GNU diff
is showing (x,0) as just (x).
--
priority: low - high
Torsten Becker torsten.bec...@gmail.com added the comment:
Hi, I started working on a first patch for this. A function _ParseTupleFinds()
exists which does the proper parsing for this kind of arguments in
unicodeobject.c, I adapted it to be usable for startswith() and endswith()
besides
Graham Dumpleton graham.dumple...@gmail.com added the comment:
I wouldn't use mod_python as any guide for how to use sub interpreters as its
usage of sub interpreters and threading in conjunction with them is technically
broken, not following properly the Python C API requirements. It doesn't
New submission from Andreas Stührk andy-pyt...@hammerhartes.de:
The commit for issue #11133 omitted a part of the patch that checked whether
the __dict__ attribute of metaclasses are shadowed. That makes it possible to
trigger code execution in the case of metaclasses that have metaclasses.
New submission from Dave Malcolm dmalc...@redhat.com:
For Python 2 (here with 2.7.1):
$ python -c 'import locale; locale.setlocale(locale.LC_ALL, tr_TR.UTF-8);
import decimal'
Traceback (most recent call last):
File string, line 1, in module
File /usr/lib64/python2.7/decimal.py, line 3715,
Torsten Becker torsten.bec...@gmail.com added the comment:
While working on this, I discovered anther problem. find(), etc. all use the
same parsing function (_ParseTupleFinds()). So when an error occurs, the
exception message will always start with find() even though index() or
rfind()
Roundup Robot devnull@devnull added the comment:
New changeset 1f41b1ab8924 by brian.curtin in branch '3.1':
Fix #5162. Allow child spawning from Windows services (via pywin32).
http://hg.python.org/cpython/rev/1f41b1ab8924
New changeset 184ae02e3221 by brian.curtin in branch '3.2':
Fix #5162.
Brian Curtin br...@python.org added the comment:
Thanks for the patch!
--
assignee: jnoller - brian.curtin
resolution: - fixed
stage: patch review - committed/rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5162
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
assignee: - rhettinger
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11830
___
Roundup Robot devnull@devnull added the comment:
New changeset a280672d3d8d by brian.curtin in branch '2.7':
Add NEWS item for #5162.
http://hg.python.org/cpython/rev/a280672d3d8d
--
___
Python tracker rep...@bugs.python.org
Roundup Robot devnull@devnull added the comment:
New changeset c26474c6504a by brian.curtin in branch '3.1':
Add NEWS item for #5162.
http://hg.python.org/cpython/rev/c26474c6504a
New changeset 68ef2bf1aa99 by brian.curtin in branch '3.2':
Add NEWS item for #5162.
Roundup Robot devnull@devnull added the comment:
New changeset b4b1f557d563 by Raymond Hettinger in branch '2.7':
Issue #11830: Remove unnecessary introspection code in the decimal module.
http://hg.python.org/cpython/rev/b4b1f557d563
--
nosy: +python-dev
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11830
___
New submission from Susam Pal su...@susam.in:
Steps to reproduce:
susam@nifty:~/pydoc-test$ tree ../pydoc-subject/
../pydoc-subject/
|-- calc
| |-- formulae.py
| `-- __init__.py
|-- config.py
|-- default.conf
|-- main.py
`-- spal.conf
1 directory, 6 files
susam@nifty:~/pydoc-test$ pydoc
Susam Pal su...@susam.in added the comment:
Attached a one line fix that fixes this issue.
susam@nifty:~/pydoc-test$ pydoc -w ../pydoc-subject/
wrote calc.html
wrote calc.formulae.html
wrote config.html
wrote main.html
susam@nifty:~/pydoc-test$ ls
calc.formulae.html calc.html config.html
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11828
___
___
New submission from Brian Curtin br...@python.org:
Patch to add -a/--attach option to Lib/test/regrtest.py to pause before
beginning test runs. This would allow a user to attach Visual Studio or some
other debugger. Very simply, this option just blocks waiting for a keystroke
during argument
New submission from Alec Taylor alec.tayl...@gmail.com:
Unfortunately ord() doesn't show complete UNICODE. This can cause incorrectness
problems.
ord('—')
151
ord('¥')
165
Proof: Type Alt+0151, then type Alt+151. They should give you — and ù
respectively.
Please correct the UNICODE
Ezio Melotti ezio.melo...@gmail.com added the comment:
For the chars you pasted, on Python 3 I get:
ord('—') # U+2014 EM DASH
8212
ord('¥') # U+00A5 YEN SIGN
165
If I type alt+8212 I get '—' and if I type alt+0165 I get '¥'.
What version of Python are you using and on what OS?
--
Ross Lagerwall rosslagerw...@gmail.com added the comment:
http://docs.python.org/release/3.1.3/library/tempfile.html doesn't to have an
Examples section like 3.2 and 3.3.
It appears to have been introduced in b172d7537b99 with #5178.
--
___
Python
Ross Lagerwall rosslagerw...@gmail.com added the comment:
#10838 has a bit of discussion about list2cmdline and being part of the public
api (generally agreeing that it should be made private, I think).
--
nosy: +rosslagerwall
___
Python tracker
Alec Taylor alec.tayl...@gmail.com added the comment:
Python 2.7.1, Win7 64-bit
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11833
___
___
Ezio Melotti ezio.melo...@gmail.com added the comment:
The problem is not with ord() but with the stdin encoding used by the windows
terminal.
If you write a non-ASCII character (e.g. '¥') in the windows terminal with
Python 2 without using the u'' prefix, it will be encoded with the encoding
Eli Bendersky eli...@gmail.com added the comment:
Thanks for the pointer, Ross.
So I propose to remove the mention of list2cmdline from the documentation of
subprocess, explaining instead what it does to the path (since I think this
should be publicly known, otherwise it's just black magic).
Eli Bendersky eli...@gmail.com added the comment:
Issue #11827 seems to be strongly related
--
nosy: +eli.bendersky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10838
___
82 matches
Mail list logo