Petri Lehtinen pe...@digip.org added the comment:
I'd call os.path.join() in the test functions rather than in read_file() and
write_file(). This makes it easier to understand what the test is doing without
looking at the code of read_file() and write_file().
Otherwise, looks good to me, and
Antoine Pitrou pit...@free.fr added the comment:
Ok, the patch is not correct. The core issue is that _Unpickler_Readline should
always return a \0-terminated string, but sometimes it doesn't; this issue
should be fixed instead of working around it in some other function.
--
Hynek Schlawack h...@ox.cx added the comment:
I tend to agree on public APIs, however in this case of a helper function the
use case with a join is really really common so this extra function comes in
very handy. I also kept it using lists, so it's more obvious than tuples.
JFTR it wasn't my
New submission from Alexis Metaireau ale...@notmyidea.org:
The documentation about locale.getlocale() doesn't talk about the fact that the
locale isn't read from the system locale. Thus, it seemed strange to have
locale.getlocale() returning (None, None).
As it seems to be the expected
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
I confess I'm not familiar enough with the pickle module internals to be sure
of putting in the right fix quickly. I will take a look at _Unpickler_Readline
when I get a chance, if someone doesn't beat me to it :-)
--
Leonid Vasilev vsleo...@gmail.com added the comment:
yup, it's really to specific.
--
resolution: - invalid
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12661
___
Changes by Leonid Vasilev vsleo...@gmail.com:
--
resolution: invalid - rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12661
___
___
Mark Dickinson dicki...@gmail.com added the comment:
If there's dependence on undefined behaviour (from overflow of signed integer
operations) in intobject.c, I'd call that a bug. I've been trying to remove
similar overflow checks from the Python source when I've encountered them, but
there
Changes by Petri Lehtinen pe...@digip.org:
Removed file: http://bugs.python.org/file22866/unnamed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12701
___
Matthew Hemke mghe...@gmail.com added the comment:
What about adding a validatecommand option like on Tkinter.Entry?
For what I am trying to do it was sort of a kludge to validate the entry
because an empty string was invalid, but in the interface design, it would have
been rude to validate
Ronald Oussoren ronaldousso...@mac.com added the comment:
Clang has an option -fcatch-undefined-behavior that might help in locating
other locations where we use undefined behavior.
--
___
Python tracker rep...@bugs.python.org
R. David Murray rdmur...@bitdance.com added the comment:
Adding an option would also be a reasonable feature request, but I think
exposing _QueryDialog would be a more general solution, since it would apply to
more than just strings.
While not backward incompatible, either of these is a new
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 0fbd44e3f342 by Vinay Sajip in branch '2.7':
Issue #12718: Add documentation on using custom importers.
http://hg.python.org/cpython/rev/0fbd44e3f342
New changeset 1e96a4406565 by Vinay Sajip in branch '3.2':
Issue
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12718
___
___
Python-bugs-list
Johannes Hoff johsh...@gmail.com added the comment:
Forest Bond: Thanks for this patch - I hope it will go in soon. In the
meantime, could I get permission to use it as is? (I notice there is a
copyright in the file) I would of course keep the attributions in the file.
--
nosy:
Forest Bond for...@alittletooquiet.net added the comment:
Hi, Johannes. You can assume the Python license for this patch.
-Forest
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3244
___
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset e88362fb4950 by Brian Curtin in branch 'default':
Add doc for Py_RETURN_NOTIMPLEMENTED, added in #12724.
http://hg.python.org/cpython/rev/e88362fb4950
--
___
Python
Éric Araujo mer...@netwok.org added the comment:
I’ll make one change before committing:
Lib/test/test_shutil.py:69: if isinstance(path, (list, tuple)):
Using a list for path components does not make sense. I have changed a similar
helper function in packaging to allow only tuples.
Petri:
Éric Araujo mer...@netwok.org added the comment:
The fix committed will be superseded by a link to the Mercurial repo when I fix
#11435 (probably tomorrow).
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
I know perfectly well that [].append is valid Python,
but I don't think this is the clearest way to give an example of an
object method. I think spelling [].append's meaning more explicitly
would be better.
Would it be clearer if we replaced
Éric Araujo mer...@netwok.org added the comment:
Alan: the Versions field is used to mark versions that will get a patch, not
all versions affected.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9528
Dolf Andringa dolfandri...@gmail.com added the comment:
I see the patch has been applied python3 in r85793, but is there any chance
there will also be patches for python 2.6 or 2.7? And if so, what release of
python (any version) might this patch be included in?
--
nosy:
Antoine Pitrou pit...@free.fr added the comment:
I see the patch has been applied python3 in r85793, but is there any
chance there will also be patches for python 2.6 or 2.7
No, Python 2 only receives bug fixes.
--
___
Python tracker
Petri Lehtinen pe...@digip.org added the comment:
Éric Araujo wrote:
Petri: these helper functions are all about convenienve. I would
reject a patch for a function just doing open+read, but here I think
that doing os.path.join+open+read is worth a function. We use such
helpers all the time
New submission from Antoine Pitrou pit...@free.fr:
It's not really an issue, but I thought I would mention it. It is a bit
misleading, since it makes you think that you changed something in the grammar
that's triggering the rebuild.
$ make
./Parser/asdl_c.py -h ./Include ./Parser/Python.asdl
New submission from Tom Christiansen tchr...@perl.com:
The Python re library is broken in its approach to case-insensitive matches. It
erroneously attempts to compare lowercase mappings. This is wrong. You must
compare the Unicode casefolds, not the Unicode casemaps. Otherwise you get
wrong
New submission from Tom Christiansen tchr...@perl.com:
Python is in flagrant violation of the very most basic premises of Unicode
Technical Report #18 on Regular Expressions, which requires that a regex engine
support Unicode characters as basic logical units independent of serialization
like
New submission from Tom Christiansen tchr...@perl.com:
You cannot use Python's casemapping functions on Unicode data because they fail
on narrow builds. This makes it impossible to write portable code in Python
that can cope with full Unicode.
I've tried several times to submit this bug, but
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset c47bc1349e61 by Antoine Pitrou in branch '3.2':
Issue #12687: Fix a possible buffering bug when unpickling text mode (protocol
0, mostly) pickles.
http://hg.python.org/cpython/rev/c47bc1349e61
New changeset
New submission from Tom Christiansen tchr...@perl.com:
You cannot use Python's lib re for handling Unicode regular expressions because
it violates the standard set out for the same in UTS#18 on Unicode Regular
Expressions in RL1.2a on compatibility properties. What \w is allowed to match
is
Antoine Pitrou pit...@free.fr added the comment:
Fixed with a test.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12687
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 5e005773feaa by Benjamin Peterson in branch 'default':
revert code which conditionally writes Python-ast.h (closes #12727)
http://hg.python.org/cpython/rev/5e005773feaa
--
nosy: +python-dev
resolution: -
New submission from Tom Christiansen tchr...@perl.com:
You cannot reliably use Unicode in Python identifiers because of the
narrow/wide build issue. The enclosed file is fine on wide builds but gets
compiler errors on narrow ones during compilation.
Go, Ruby, Java, and Perl all handle this
Changes by Tom Christiansen tchr...@perl.com:
--
components: +Regular Expressions -Library (Lib)
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12728
___
New submission from Tom Christiansen tchr...@perl.com:
Without proper grapheme support in the regular expression library, it is
impossible to correctly process Unicode. And the very least, one needs the \X
escape supported, which is an extended grapheme cluster per UTS#18. This escape
is
New submission from Tom Christiansen tchr...@perl.com:
Python supports no Unicode properties in its re library, making it unsuitable
for work with Unicode. This is therefore a formal request for the Python re
library to support Unicode properties.
The eleven properties required by Unicode
New submission from Tom Christiansen tchr...@perl.com:
Python has no standard support for the Unicode Collation Library as explained
in UTS #10. This is request that UCA library be added to the standard Python
distribution.
Collation underlies virtually everything we do with text, not just
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment:
A sign!
A sign!
Someone with a name-name-name!!
(Not a useful comment, i'm afraid.)
--
nosy: +sdaoden
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12730
Changes by Steffen Daode Nurpmeso sdao...@googlemail.com:
--
nosy: -sdaoden
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12730
___
___
Changes by Stefan Krah stefan-use...@bytereef.org:
--
Removed message: http://bugs.python.org/msg141927
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12730
___
New submission from Tom Christiansen tchr...@perl.com:
Python's casemapping functions only use what Unicode calls simple casemaps.
These are only appropriate for functions that operate on single characters
alone, not for those that operate on strings. The reason for this is that you
get much
Changes by Aaron Robson shiny.mag...@googlemail.com:
--
nosy: +AaronR
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3561
___
___
Python-bugs-list
Changes by Aaron Robson shiny.mag...@googlemail.com:
--
nosy: +AaronR
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12006
___
___
Python-bugs-list
New submission from Tom Christiansen tchr...@perl.com:
Python's string.title() function claims it titlecases the first letter in each
word and lowercases the rest. However, this is not true. It is not using
either of the two word detection algorithms that Unicode provides. One allows
you
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12730
___
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12737
___
___
R. David Murray rdmur...@bitdance.com added the comment:
This is an acknowledged problem with Python narrow builds, and applies to much
more than just regex processing.
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
R. David Murray rdmur...@bitdance.com added the comment:
I think the only way re is going to get spiffed up is by replacing it with
Matthew's library. This is a goal, but I'm not sure where exactly we are in
the process. The more Matthew's code gets tested (especially for compatibility
with
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +belopolsky, ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12736
___
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +belopolsky, ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12735
___
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12734
___
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12733
___
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12732
___
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12731
___
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12728
___
___
New submission from Michael Hall michaelhal...@gmail.com:
I recently switched to Ubuntu 11.04 from OpenSUSE 11.4, and when I go to run a
project I coded a couple days ago under OpenSUSE using the multiprocessing
library, it hangs when it did not under OpenSUSE.
Specifically, I am using two
Michael Hall michaelhal...@gmail.com added the comment:
Edit: Sorry, I should have been more clear. The hang occurs after the first
child process exits, at which point all four children become zombies (none of
the others exit, they just zombify immediately), and the main process sits
there
Tom Christiansen tchr...@perl.com added the comment:
I've been a lot of testing of Matthew's regex library against UTS#18 issues,
but only somewhat incidentally testing re. To use regex, one has to accept that
certain things will work differently than they work in re, because he is
following
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
+def starmapstar(args):
+return list(itertools.starmap(args[0], args[1]))
Is your new function restricted to 2 arguments?
--
nosy: +amaury.forgeotdarc
___
Python tracker
Tom Christiansen tchr...@perl.com added the comment:
I can attest that being able to get the columns of a grapheme cluster is very
important for printing, because you need this to do correct linebreaking.
There might be something you can steal from
Tom Christiansen tchr...@perl.com added the comment:
How does this work for modules that have filesystem names different from the
one used for import? The issue I'm thinking about is that the Mac HSF+
filesystem keeps its Unicode filenames in (close to) NFD form. That means that
a module
Tom Christiansen tchr...@perl.com added the comment:
Please do not call this utf-8-java. It is called cesu-8 per UTS#18 at:
http://unicode.org/reports/tr26/
CESU-8 is *not* a a valid Unicode Transform Format and should not be called
UTF-8. It is a real pain in the butt, caused by people who
New submission from Joe Hu sapika...@gmail.com:
When multiple threads create child processes simultaneously and redirect their
stdout using subprocess.Popen, at least one thread will stuck on reading the
stdout after its child process exited, until all other processes are also
exited.
The
Changes by Meador Inge mead...@gmail.com:
--
nosy: +meador.inge
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11105
___
___
Python-bugs-list
Georg Brandl ge...@python.org added the comment:
+1 for calling it by the correct name (the docs can of course state that this
is equivalent to Java Modified UTF-8 or however they like to call it).
--
___
Python tracker rep...@bugs.python.org
65 matches
Mail list logo