New submission from Michal Sladek mic...@sladkovi.eu:
Hello!
I think there is a problem when adding UTF-8 subject to email message. I wrote
following function (its code is based on examples I found in offical docs)
which should send an email with UTF-8 subject, UTF-8 plain text body and
Michal Sladek mic...@sladkovi.eu added the comment:
Hello Martin!
Thanks for your kind words and for giving me hints how to fill the bug
report properly. I hope this time it will be accepted (ID 14062).
Best regards
Michal
Dne 19. února 2012 19:59 Martin v. Löwis rep...@bugs.python.org
Tshepang Lekhonkhobe tshep...@gmail.com added the comment:
I chose to go the way of a howto. I find argparse complex enough to deserve one.
note: I have checked each example on the 3 releases that possess the module
(2.7, 3.2, and 3.3), and the differences in output are very small.
--
Tshepang Lekhonkhobe tshep...@gmail.com added the comment:
An an aside, shouldn't that be in-place instead of in place
(http://en.wikipedia.org/wiki/In-place)?
--
nosy: +tshepang
___
Python tracker rep...@bugs.python.org
Georg Brandl ge...@python.org added the comment:
Blocks not introduced by :: are *NOT* code blocks.
If they happen to begin with , they are recognized as doctest blocks and
colorized as doctests.
Doctest blocks shouldn't be indented. (The indent is a blockquote in this case.)
--
Steven Bethard steven.beth...@gmail.com added the comment:
The implementation looks along the right track. Now it just needs some tests.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9253
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
I don’t understand the notions of standard vs. custom.
Does standard mean setuptools? #12394 is not quite ready yet, so
nothing is set in stone, but if possible I’d prefer to generate
pysetup.exe. Let’s move the sub-discussion there.
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10112
___
___
Python-bugs-list mailing
Tshepang Lekhonkhobe tshep...@gmail.com added the comment:
(this is only concerning the latest commit)
Not sure if I should open a new issue, but why is there a print function at
all, given that:
print(parser.parse_args('--foo B cmd --arg1 XX ZZ'.split()))
Namespace(args=['--arg1', 'XX',
Antoine Pitrou pit...@free.fr added the comment:
Boost has a monotonic time implementation (steady_clock) for OS X:
http://svn.boost.org/svn/boost/trunk/boost/chrono/detail/inlined/mac/chrono.hpp
--
nosy: +ned.deily, pitrou
___
Python tracker
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
Yep, works now.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14058
___
New submission from Vinay Sajip vinay_sa...@yahoo.co.uk:
==
FAIL: test_insensitive
(importlib.test.source.test_case_sensitivity.CaseSensitivityTest)
--
Ned Deily n...@acm.org added the comment:
Also fails on 10.7 standard unix (non-framework) build on case-insensitive HFS+
fils system.
--
assignee: ronaldoussoren - brett.cannon
nosy: +ned.deily
___
Python tracker rep...@bugs.python.org
Nick Coghlan ncogh...@gmail.com added the comment:
Just noticed one minor nit with the patch: the pure Python version of
functools.partial should support func as a keyword argument that is passed to
the underlying object. The trick is to declare a positional only argument like
this:
def
Nick Coghlan ncogh...@gmail.com added the comment:
Also, the closure based implementation should be decorated with @staticmethod
(see http://bugs.python.org/issue11704) and the tests updated accordingly.
--
___
Python tracker rep...@bugs.python.org
New submission from Bithin A bithin2...@gmail.com:
In urllib/parse.py the collections module is imported twice which is against
the PEP8-- Style Guide for Python Code.
--
components: Library (Lib)
files: multiple_imports.patch
keywords: patch
messages: 153780
nosy: Bithin.A
priority:
Changes by Bithin A bithin2...@gmail.com:
--
type: - enhancement
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14064
___
___
Python-bugs-list
Nadeem Vawda nadeem.va...@gmail.com added the comment:
(2.7.2 doesn’t include neither Antoine’s changeset nor mine, right?)
Correct; it dates back to June last year, before issue 13193 was filed.
Can you reproduce the “include buildout.cfg” bug too?
Yes, that problem is present in 2.7.2,
Antoine Pitrou pit...@free.fr added the comment:
There was the following sporadic buildbot failure:
==
FAIL: test_package___file__ (test.test_imp.PEP3147Tests)
Benjamin Peterson benja...@python.org added the comment:
This is perfectly fine the way it is. PEP 8 has nothing to say about it.
--
nosy: +benjamin.peterson
resolution: - wont fix
status: open - closed
___
Python tracker rep...@bugs.python.org
Changes by Bithin A bithin2...@gmail.com:
Removed file: http://bugs.python.org/file24577/multiple_imports.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14064
___
Changes by Martin v. Löwis mar...@v.loewis.de:
--
nosy: +loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14062
___
___
Python-bugs-list
New submission from Martin v. Löwis mar...@v.loewis.de:
The C implementation of xml.etree.ElementTree.Element needs to support cyclic
GC. The attached script demonstrates the lack to support that: in 3.2, the
script passes; in 3.3 (7697223df6df) it fails with an AssertionError as the
cycle
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14065
___
___
Python-bugs-list mailing list
Changes by Antoine Pitrou pit...@free.fr:
--
components: +Library (Lib)
nosy: +flox
stage: - needs patch
type: - behavior
versions: +Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14065
sbt shibt...@gmail.com added the comment:
Here is an initial implementation. Differences from threading.Barrier:
- I have not implemented reset().
- wait() returns 0 or -1. One thread returns 0, the remainder return -1.
This is different to threading.Barrier where each of the N threads
sbt shibt...@gmail.com added the comment:
barrier_tests.py contains minor modifications of the unit tests for
threading.Barrier. (The two tests using reset() are commented out.)
The implementation passes for me on Linux and Windows.
--
Added file:
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +francismb
type: - enhancement
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13447
___
Francisco Martín Brugué franci...@email.de added the comment:
Nice feedback !
One question :
An alternative approach that solves all three of these problems is to
check whether we have any patches applied (using hg qapplied), and if
this is the case, then add --rev qbase to the hg
Changes by Eric Snow ericsnowcurren...@gmail.com:
--
nosy: +eric.snow
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14057
___
___
Python-bugs-list
Antoine Pitrou pit...@free.fr added the comment:
[...]
And I can't reproduce, even when using --randseed.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14052
___
Brett Cannon br...@python.org added the comment:
Antoine, do you think this may have been triggered by your latest patch?
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14063
Brett Cannon br...@python.org added the comment:
The test suite does use importlib for some imports as finders from importlib
for some packages stick around. I brought this up a way back but people thought
it was actually a good idea to let importlib handle imports to stress test it.
Anyway,
Changes by Brett Cannon br...@python.org:
--
resolution: - invalid
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14052
___
Antoine Pitrou pit...@free.fr added the comment:
Antoine, do you think this may have been triggered by your latest patch?
I don't know, perhaps Vinay can bisect to find the offending commit?
(I don't have a Mac)
--
___
Python tracker
Brett Cannon br...@python.org added the comment:
I have a Mac, but I'm heading out the door; I will see if I can diagnose it and
fix it tonight or tomorrow (unless someone beats me to it).
--
___
Python tracker rep...@bugs.python.org
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset c760bd844222 by Antoine Pitrou in branch 'default':
Issue #13641: Decoding functions in the base64 module now accept ASCII-only
unicode strings.
http://hg.python.org/cpython/rev/c760bd844222
--
nosy:
Antoine Pitrou pit...@free.fr added the comment:
I've committed issue13641-alternative-v1.patch. I really think practicality
beats purity here and, furthermore, there's no associated danger (non-ASCII
data is rejected both as bytes and str).
--
___
Changes by Antoine Pitrou pit...@free.fr:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13641
___
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 42f61304f77d by Antoine Pitrou in branch 'default':
Issue #14040: Remove rarely used file name suffixes for C extensions (under
POSIX mainly).
http://hg.python.org/cpython/rev/42f61304f77d
--
nosy:
Nadeem Vawda nadeem.va...@gmail.com added the comment:
Shouldn't be --rev qparent ?
Yes, that's right. I seem to confuse qbase and qparent often...
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14053
Antoine Pitrou pit...@free.fr added the comment:
I've now committed the suffix removal patch with a what's new entry. Thanks!
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset f4b7ecf8a5f8 by Georg Brandl in branch '3.1':
Issue #13703: add a way to randomize the hash values of basic types (str,
bytes, datetime)
http://hg.python.org/cpython/rev/f4b7ecf8a5f8
--
nosy: +python-dev
New submission from Dave Malcolm dmalc...@redhat.com:
$ mkdir some_directory_ending_with_a.py
$ python -c import imputil;
imputil.imp.find_module('some_directory_ending_with_a')
*** glibc detected *** python: double free or corruption (!prev):
0x01589bf0 ***
Aborted
What's happening
Ned Deily n...@acm.org added the comment:
The first bad revision is:
changeset: 75048:bbaab666e6c7
parent: 75045:5b4b70bd2b6f
user:Antoine Pitrou solip...@pitrou.net
date:Mon Feb 20 01:48:16 2012 +0100
summary: Issue #14043: Speed up importlib's _FileFinder by at least
Dave Malcolm dmalc...@redhat.com added the comment:
Duplicate of issue 7732
--
resolution: - duplicate
status: open - closed
superseder: - imp.find_module crashes Python if there exists a directory
named __init__.py
___
Python tracker
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 4a31f6b11e7a by Georg Brandl in branch '3.2':
Merge from 3.1: Issue #13703: add a way to randomize the hash values of basic
types (str, bytes, datetime)
http://hg.python.org/cpython/rev/4a31f6b11e7a
--
Antoine Pitrou pit...@free.fr added the comment:
Can you please try this patch?
--
assignee: brett.cannon -
keywords: +patch
Added file: http://bugs.python.org/file24581/impcasing.patch
___
Python tracker rep...@bugs.python.org
Ned Deily n...@acm.org added the comment:
With impcasing.patch applied, test_importlib passes on OS X (10.7 with
case-insensitive fs).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14063
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 3297dcdad196 by Antoine Pitrou in branch 'default':
Issue #14063: fix test_importlib failure under OS X case-insensitive filesystems
http://hg.python.org/cpython/rev/3297dcdad196
--
nosy: +python-dev
Antoine Pitrou pit...@free.fr added the comment:
Ok, thanks for testing!
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14063
Martin v. Löwis mar...@v.loewis.de added the comment:
I think zero-sized queues are exactly the right answer here.
--
nosy: +loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14060
___
Francisco Martín Brugué franci...@email.de added the comment:
The patch is updated. Notice about:
[...]Ideally, it
should distinguish between this and other errors by checking the
subprocess's stderr, so that if a different error occurs, we can still
print out the error message.
[…]
that
New submission from Antoine Pitrou pit...@free.fr:
This is an experimental patch that limits the frequency of stat() calls in
_FileFinder.find_module(). It speeds up finding modules by 2x here, but
unfortunately breaks some tests (which expect modules to appear immediately
when created).
Martin v. Löwis mar...@v.loewis.de added the comment:
The patch is fairly incomplete: it assumes that the compiler supports
__attribute__((visibility())), but it really needs to check for that.
Also, there is no chance that this can go into Python 2.7; retargetting for 3.3.
--
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10112
___
Francisco Martín Brugué franci...@email.de added the comment:
+1
while working on #issue14053 I missed the test for the scripts (in this case
some kind of mocking is needed).
--
___
Python tracker rep...@bugs.python.org
Dave Malcolm dmalc...@redhat.com added the comment:
jcea: BTW, will you be at PyCon US this year? if so, can we sprint on getting
the DTrace and SystemTap hooks into CPython in some form acceptable to the rest
of the CPython maintainers?
--
___
Changes by Antoine Pitrou pit...@free.fr:
Added file: http://bugs.python.org/file24584/imptime.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14067
___
Changes by Antoine Pitrou pit...@free.fr:
Removed file: http://bugs.python.org/file24583/imptime.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14067
___
Changes by Eric Snow ericsnowcurren...@gmail.com:
--
nosy: +eric.snow
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14067
___
___
Python-bugs-list
Nadeem Vawda nadeem.va...@gmail.com added the comment:
Hmm... it looks like mq_changed_files() duplicates a chunk of logic from
the existing changed_files() code. You can get rid of this redundancy by
replacing mq_changed_files() with a function that checks for applied MQ
patches; let's call it
Brett Cannon br...@python.org added the comment:
The patch uses the time module which is not a built-in, so it breaks
bootstrapping by directly importing a module, and an extension at that. At best
you could switch to a modified _FileFinder after importlib is initially running
and able to
Antoine Pitrou pit...@free.fr added the comment:
The patch uses the time module which is not a built-in, so it breaks
bootstrapping by directly importing a module, and an extension at
that. At best you could switch to a modified _FileFinder after
importlib is initially running and able to
Brett Cannon br...@python.org added the comment:
On Mon, Feb 20, 2012 at 18:06, Antoine Pitrou rep...@bugs.python.orgwrote:
Antoine Pitrou pit...@free.fr added the comment:
The patch uses the time module which is not a built-in, so it breaks
bootstrapping by directly importing a module,
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset ed76dc34b39d by Georg Brandl in branch 'default':
Merge 3.2: Issue #13703 plus some related test suite fixes.
http://hg.python.org/cpython/rev/ed76dc34b39d
--
___
Python
Changes by Éric Araujo mer...@netwok.org:
--
title: Make Tools/scripts/patchcheck.py compatible with mercurial mqueues. -
Make patchcheck work with MQ
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14053
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14062
___
___
Python-bugs-list
Éric Araujo mer...@netwok.org added the comment:
I’m pushing this higher on my todo list then. I’ll certainly upload a patch
for review here with the basic machinery, then commit it, and then we’ll be
able to add tests for the tools we like.
--
assignee: - eric.araujo
Éric Araujo mer...@netwok.org added the comment:
Nice. I’ll find time to review later; Steven, do you have objections on the
idea of adding an argparse howto? Do you want to review it yourself?
--
nosy: +bethard
title: first example in argparse doc is too complicated - Add argparse
Éric Araujo mer...@netwok.org added the comment:
I had written a message which read much like Martin’s and wanted to reopen this
report, but apparently my flaky connection did not let it go through and now
it’s lost. My apologies for not understanding your report for what it was, and
thanks
Éric Araujo mer...@netwok.org added the comment:
Nope, the expression would be hyphenated only when used as an adjective:
- “This sorts the sequence in place”
vs.
‑ “Performs an in-place rearrangement by birthdate”
--
___
Python tracker
Francisco Martín Brugué franci...@email.de added the comment:
Updated.
Interesting: I saw that repetition but due “[…] Ideally, it
should distinguish between this and other errors by checking the
subprocess's stderr, so that if a different error occurs, we can still
print out the error message.
Éric Araujo mer...@netwok.org added the comment:
This time you should have received an email from Rietveld, I made sure that
your ID was expanded to an email address.
I like all the suggestions you made in reply to my comments.
--
___
Python
Éric Araujo mer...@netwok.org added the comment:
Blocks not introduced by :: are *NOT* code blocks.
If they happen to begin with , they are recognized as doctest blocks
and colorized as doctests.
Ah, that’s it! Thanks. So we have two valid ways of marking up doctest-like
blocks, “::” °
STINNER Victor victor.stin...@gmail.com added the comment:
Here is a first step: add _PyTime_ObjectToTimespec() to pytime.h and use it for
signal.sigtimedwait().
signal.sigtimedwait(sigwait, (timeout_sec, timeout_nsec)) becomes
signal.sigtimedwait(sigwait, timeout).
I chose pytime.h instead
Jason Yeo jasonye...@gmail.com added the comment:
For the two failures, I suggest modifying _check_script() to return the
rc, out, err from the underlying assert_python_ok() call
I've decided to simple pass in *example_args into the assert_python_ok() in
those two offending tests. There are
Changes by Jason Yeo jasonye...@gmail.com:
Removed file: http://bugs.python.org/file24587/mypatch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14026
___
Changes by Jason Yeo jasonye...@gmail.com:
Removed file: http://bugs.python.org/file24556/14026patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14026
___
Changes by Jason Yeo jasonye...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file24588/14026v2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14026
___
R. David Murray rdmur...@bitdance.com added the comment:
Non-ascii binary data should not be being rejected unless validate
is true. So what are you going to do with non-ascii-range unicode in
that case? Ignore it as well? That can't be right.
I believe this should be discussed on
R. David Murray rdmur...@bitdance.com added the comment:
I disagree with this commit. Reopening pending discussion on python-dev.
--
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13641
R. David Murray rdmur...@bitdance.com added the comment:
I disagree with this feature. Reopening pending discussion on python-dev.
--
nosy: +r.david.murray
status: closed - open
___
Python tracker rep...@bugs.python.org
Antoine Pitrou pit...@free.fr added the comment:
Non-ascii binary data should not be being rejected unless validate
is true. So what are you going to do with non-ascii-range unicode in
that case? Ignore it as well? That can't be right.
It's not ignored, it raises ValueError. Since the
Éric Araujo mer...@netwok.org added the comment:
s/cleanup in did in the code/cleanup I did in the code/
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5411
___
Éric Araujo mer...@netwok.org added the comment:
I have a working updated shutil module, tests pass and the documentation is
improved. I will make sure to make different commits for improving the tests,
cleaning up some things, adding tarfile.compression_formats and removing
duplication in
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 6b7704fe1be1 by Barry Warsaw in branch '2.6':
- Issue #13703: oCERT-2011-003: add -R command-line option and PYTHONHASHSEED
http://hg.python.org/cpython/rev/6b7704fe1be1
--
Éric Araujo mer...@netwok.org added the comment:
Note that there is a way to get fully automated support for tar formats:
tarfile could expose, in addition to the list compression_formats, another
structure with the descriptions (e.g. “gzip’ed tar file”) and file extensions
(e.g. ['.gz',
Changes by Éric Araujo mer...@netwok.org:
--
title: Improve error reporting for the argument parsing API - Improve error
reporting for the argument parsing C API
versions: +Python 3.3 -Python 2.7, Python 3.2
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
I think it would be great to test the stdlib’s mapping classes against common
tests; there is a patch to add more MutableMapping methods to dbm classes for
example, and it was not trivial to get good test coverage.
Not sure about the status of
New submission from 启朗 杨 yangqil...@gmail.com:
i use python to handle some string.
here is my code:
# -*- coding: utf-8 -*-
from lxml import etree
import collectcorpus
import re
doc = etree.parse(/home/harveyang/workspace/corpus/newsscrapy/news1.xml)
root = doc.getroot()
children =
Changes by 启朗 杨 yangqil...@gmail.com:
--
nosy: 启朗.杨
priority: normal
severity: normal
status: open
title: problem with re
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14068
___
New submission from py.user port...@yandex.ru:
import re
re.search(r'(?=(a|b))(\w+)', 'abc').groups()
('a', 'bc')
re.search(r'(?=(^))(\w+)', 'abc').groups()
('', 'abc')
re.search(r'(?=(^|$))(\w+)', 'abc').groups()
('', 'abc')
re.search(r'(?=($|^))(\w+)', 'abc').groups()
('', 'abc')
启朗 杨 yangqil...@gmail.com added the comment:
i use python to handle some string.
here is my code:
# -*- coding: utf-8 -*-
from lxml import etree
import collectcorpus
import re
doc = etree.parse(news1.xml)
root = doc.getroot()
children = root.getchildren()
flag = 1
for child in children:
New submission from Tim McNamara paperl...@timmcnamara.co.nz:
When developing Python code, I often find myself needing to run rm *.pyc so
that the interpreter will ignore any new changes that I have made to source
files. It's really frustrating when forgotten.
Adding a flag to the reload
Nick Coghlan ncogh...@gmail.com added the comment:
FWIW, I doubt you'd get many objections if you ended up wanting to make time a
builtin module and inject it into the bootstrapping namespace.
While I don't think the delay in noticing filesystem changes is reasonable as
the default behaviour,
Éric Araujo mer...@netwok.org added the comment:
Sorry, 2.6 only gets security fixes now, closing. Thanks for the report anyway!
--
nosy: +eric.araujo
resolution: - out of date
stage: test needed - committed/rejected
status: open - closed
___
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7562
___
___
Python-bugs-list
Éric Araujo mer...@netwok.org added the comment:
It is sometimes useful to call subprocess.Popen() in setup.py of Python.
What use cases do you have in mind? Maybe you want to remove the half-dozen
calls to os.system?
--
nosy: +eric.araujo
versions: +Python 3.3 -Python 2.7, Python
Éric Araujo mer...@netwok.org added the comment:
I think it would be great to test the stdlib’s mapping classes against common
tests
grep told me that most of them already do. Sorry for the noise, it’s late/soon
here.
--
___
Python tracker
1 - 100 of 116 matches
Mail list logo