Hynek Schlawack h...@ox.cx added the comment:
No, that's just a helper function like the `mapstar` directly above. args[1] is
the iterable with tuples that get unpacked as arguments.
--
___
Python tracker rep...@bugs.python.org
Hynek Schlawack h...@ox.cx added the comment:
Eric, just to be clear: Are you making this list-tuple change or should I fix
the patch?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12721
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 683202530137 by Eli Bendersky in branch 'default':
Issue #12672: fix code samples in extending/newtypes.html for PEP-7 compliance
http://hg.python.org/cpython/rev/683202530137
--
nosy: +python-dev
Changes by Eli Bendersky eli...@gmail.com:
--
keywords: -easy
versions: +Python 3.3 -Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12672
___
Eli Bendersky eli...@gmail.com added the comment:
Would it be clearer if we replaced the literal with a name?
These C functions are called “type methods” to distinguish them from
- things like [].append (which we call “object methods”).
+ methods bound to specific instances (things like
Eli Bendersky eli...@gmail.com added the comment:
Maybe it should say:
... to distinguish them from custom class methods such as list's append
I think this is more correct, because it clearly refers to the methods placed
in the 'tp_methods' field of a type.
... and also drop the (which we
Dolf Andringa dolfandri...@gmail.com added the comment:
And python3? Any idea which version the patch will be included there?
This might be a good reason to finally take action on migrating my code from
python 2.7 to python 3.
On 11 August 2011 18:49, Antoine Pitrou rep...@bugs.python.org
xavierd xdelan...@cloudmark.com added the comment:
This patch does:
- when a close boundary isn't found then the error
'email.errors.CloseBoundaryNotFoundDefect' is added to the defects list.
- it doesn't modify the current behaviour of the feedparser
(eg: the function
Changes by xavierd xdelan...@cloudmark.com:
Added file: http://bugs.python.org/file22888/orig.eml
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12515
___
xavierd xdelan...@cloudmark.com added the comment:
with the patch applied:
{{{
$ ./test.py
PARSER INVALID EMAIL
defects found !
[email.errors.CloseBoundaryNotFoundDefect instance at 0x7f41421c0488]
}}}
--
Added file: http://bugs.python.org/file22889/test.py
Marc-Andre Lemburg m...@egenix.com added the comment:
Tom Christiansen wrote:
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
Antoine Pitrou pit...@free.fr added the comment:
And python3? Any idea which version the patch will be included there?
It was included in Python 3.2.
--
versions: -Python 2.6, Python 2.7
___
Python tracker rep...@bugs.python.org
New submission from Stefan Krah stefan-use...@bytereef.org:
It is somewhat complicated to calculate the number of members in
a Struct, so I propose to add Struct.nmemb (in 3.3, 3.2 and 2.7):
import struct
s = struct.Struct(Pxx3L3s)
s.size
47
s.nmemb
5
I chose 'nmemb' because it is a
New submission from David Townshend aquavita...@gmail.com:
The shutil.move function uses os.rename to move files on the same file system.
On unix, this function will overwrite an existing destination, so the obvious
approach is
if not os.path.exists(dst):
shutil.move(src, dst)
But this
Tom Christiansen tchr...@perl.com added the comment:
Whoops, I meant that it appears that Python runs its identifiers through NFC.
How that gets along with a filesystem that has quasi-NFD filenames I'm not
sure, but it seems like it might be a variant of the case-insensitivity issue
in
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
title: add codec for java modified utf-8 - Add CESU-8 codec (java modified
utf-8)
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2857
STINNER Victor victor.stin...@haypocalc.com added the comment:
The issue I'm thinking about is that the Mac HSF+ filesystem
There is no issue with HFS+ normalization. The kernel normalizes filenames to
its own variant, Python doesn't have to care about this.
When you write import hé
Marc-Andre Lemburg m...@egenix.com added the comment:
Corrected the title again. See my comment.
--
title: Add CESU-8 codec (java modified utf-8) - Add java modified utf-8
codec
versions: +Python 3.3 -Python 2.7, Python 3.2
___
Python tracker
Marc-Andre Lemburg m...@egenix.com added the comment:
Marc-Andre Lemburg wrote:
Corrected the title again. See my comment.
Please open a new ticket, if you want to add a CESU-8 codec.
Looking at the relevant use cases, I'm at most +0 on adding the
modified UTF-8 codec. I think such codecs
Adal Chiriliuc adal.chiril...@gmail.com added the comment:
Python does have other weird encodings like bz2 or rot13.
Beside, batteries included :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2857
New submission from Adal Chiriliuc adal.chiril...@gmail.com:
CESU-8 is identical with UTF-8 except that it has a different encoding format
for surrogate characters.
http://en.wikipedia.org/wiki/CESU-8
It is used by some web APIs.
--
components: Unicode
messages: 141958
nosy: adalx
New submission from JJeffries jamesjeffri...@gmail.com:
The Python C API manual page for data marshaling contains the following
paragraph.
XXX What about error detection? It appears that reading past the end of the
file will always result in a negative numeric value (where that’s relevant),
JJeffries jamesjeffri...@gmail.com added the comment:
While I understand the reluctance to unintentionally push people along a
particular path, but I think there is being open on how to use it and not
mentioning it. I think that currently the current documentation is the latter
and some
Éric Araujo mer...@netwok.org added the comment:
I think the distinction is between special methods recognized by
Python, and plain object methods defined by the user.
Do you mean __special__ methods? Re-reading the whole paragraph, I can’t tell
:(
--
Éric Araujo mer...@netwok.org added the comment:
“I’ll make one change before committing” :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12721
___
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: -pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12672
___
___
Python-bugs-list mailing
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 8032ea4c3619 by Éric Araujo in branch '3.2':
Test pipes.quote with a few non-ASCII characters (see #9723).
http://hg.python.org/cpython/rev/8032ea4c3619
New changeset 6ae0345a7e29 by Éric Araujo in branch 'default':
Éric Araujo mer...@netwok.org added the comment:
I have restored compatibility (see commit messages).
--
stage: test needed - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9723
Éric Araujo mer...@netwok.org added the comment:
Unfortunately I don't currently have a suggestion for how to reliably
create a cross-file-system link for testing purposes.
We could try walking a list of common mount points (/run, /dev, /tmp, /home,
etc.), compiled from as many OSes as
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9773
___
___
Python-bugs-list
Éric Araujo mer...@netwok.org added the comment:
Other reports related to shutil and symlinks: #9993, #4489, #12461.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12715
___
Éric Araujo mer...@netwok.org added the comment:
When running the program,
Which program? :) To see if this is a bug in Python (i.e. in distutils), it
would be helpful if you could provide the simplest possible code that triggers
the error.
it looks for an installed version of MinGW, which
Éric Araujo mer...@netwok.org added the comment:
Interesting idea. I know that with Mercurial for example, I use abbreviations
and aliases all the time. Note that argparse already has aliases (or there is
an open feature request about it).
Steven: What do you think of this request?
Éric Araujo mer...@netwok.org added the comment:
+1
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12716
___
___
Changes by Éric Araujo mer...@netwok.org:
--
keywords: +easy
nosy: +eric.araujo
stage: - needs patch
versions: +Python 3.3 -Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12725
Éric Araujo mer...@netwok.org added the comment:
If no-one else has started on this, I’m interested in making a patch to
introduce an availability directive.
--
nosy: +eric.araujo
resolution: works for me -
stage: - needs patch
___
Python tracker
New submission from Antoine Pitrou pit...@free.fr:
On a 64-bit Linux machine (where C `long` is 64 bits):
len(pickle.dumps(2**30))
8
len(pickle.dumps(2**31))
16
len(pickle.dumps(2**62))
25
len(pickle.dumps(2**63))
14
This is because the old text protocol is used when the integer can fit in
Changes by Meador Inge mead...@gmail.com:
--
nosy: +meador.inge
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12744
___
___
Python-bugs-list
Changes by Meador Inge mead...@gmail.com:
--
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12744
___
___
Python-bugs-list
Changes by Daniel Urban urban.dani...@gmail.com:
--
nosy: +durban
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12735
___
___
Python-bugs-list
Changes by Daniel Urban urban.dani...@gmail.com:
--
nosy: +durban
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12732
___
___
Python-bugs-list
Meador Inge mead...@gmail.com added the comment:
Michael,
It is hard to tell from your description alone where the bug is. Could you
provide more detailed reproduction steps with a test case that exhibits the
issue?
--
nosy: +jnoller, meador.inge
stage: - test needed
Éric Araujo mer...@netwok.org added the comment:
There were comments by Ezio and me on Rietveld.
Also, the commit adds a period after the help text for --encoding, but all
other help text aren’t capitalized and don’t use periods, as is usual in help
messages.
--
Changes by Éric Araujo mer...@netwok.org:
--
components: +Interpreter Core, Unicode -Library (Lib)
versions: +Python 3.3 -Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12736
___
Éric Araujo mer...@netwok.org added the comment:
It should be removed if someone is confident that it’s a obsolete comment, or
if tests get added to answer the questions in the note.
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
Changes by Éric Araujo mer...@netwok.org:
--
components: +Library (Lib)
nosy: +lemburg
versions: +Python 3.3 -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12742
___
Philip Douglass phi...@philipdouglass.com added the comment:
Workaround for this issue: Add -D_TERMIOS_INCLUDED to your CFLAGS/CPPFLAGS
environment variables to successfully compile termios.
--
nosy: +philipsd6
___
Python tracker
Éric Araujo mer...@netwok.org added the comment:
About new function vs. new argument: this could be asked on python-dev (or on
the core-mentorship list if you prefer an environment guaranteed friendly). If
you look at copy and copy2, you’ll see that adding a function was chosen, but
the
Terry J. Reedy tjre...@udel.edu added the comment:
Pending an argument against, I agree with the change.
I think SyntaxError would be best. ValueError (etc) is for runtime (though this
is compile during runtime).
What would you have for the error message? My first idea is
Cannot compile
Changes by Terry J. Reedy tjre...@udel.edu:
--
components: +Documentation
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12706
___
___
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 47ffb957921d by Éric Araujo in branch '3.2':
Update crlf and lfcr scripts for 3.x bytes semantics (#12032).
http://hg.python.org/cpython/rev/47ffb957921d
--
___
Python
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset d52a1199d3f0 by Éric Araujo in branch 'default':
Clean up test_shutil, to facilitate upcoming improvements (#12721).
http://hg.python.org/cpython/rev/d52a1199d3f0
--
nosy: +python-dev
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +docs@python, eric.araujo
stage: - needs patch
versions: +Python 2.7, Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12726
Changes by Éric Araujo mer...@netwok.org:
--
assignee: - eric.araujo
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12032
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12728
___
Éric Araujo mer...@netwok.org added the comment:
I made more changes (see the changeset) and committed only to 3.3, as we try to
refrain from cleanup/cosmetic changes in stable branches (you never know what
will cause a bug), and as you wanted this cleanup prior to work on a 3.3-only
patch.
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12729
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12730
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12731
___
Antoine Pitrou pit...@free.fr added the comment:
This patch contains assorted improvements for 64-bit compatibility of the
pickle module. The protocol still doesn't support 4GB bytes or str objects,
but at least its behaviour shouldn't be misleading anymore.
--
keywords: +patch
stage:
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12732
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12733
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12734
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12735
___
Changes by Éric Araujo mer...@netwok.org:
--
versions: +Python 3.3 -Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12733
___
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12736
___
Changes by Éric Araujo mer...@netwok.org:
--
versions: +Python 3.3 -Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12734
___
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12737
___
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
versions: +Python 3.3 -Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12735
___
Michael Hall michaelhal...@gmail.com added the comment:
Okay, I have attached the code I've been using. Don't worry about what it does
(it's a biology thing), but just follow these steps:
1. Make sure you have numpy and scipy installed.
2. Extract the zip file.
3. Run it with ./svm_main.py
Terry J. Reedy tjre...@udel.edu added the comment:
While I could question the current list of components, documenting it as it is
is a good idea. Patch 2 looks pretty good to me with the following change.
Tests
The generic unittest and doctest frameworks in `Lib/unittest`_ and
Changes by Terry J. Reedy tjre...@udel.edu:
--
nosy: +terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12723
___
___
Python-bugs-list
Terry J. Reedy tjre...@udel.edu added the comment:
I agree 'floating seconds' is bad. I think I prefer your second alternative,
but settimeout() and setdefaulttimeout should be consistent.
--
nosy: +terry.reedy
___
Python tracker
Matthew Hemke mghe...@gmail.com added the comment:
I'm not sure if I misunderstood you, or you misunderstood me, but adding an
option to the askstring dialog that would take a function handle would also
allow you to use it for things other than strings (ints,etc.)
Tkinter Entry does this: you
Terry J. Reedy tjre...@udel.edu added the comment:
Our docs explain behavior without, generally, explaining why. Hence the title
change.
'Returns the current setting for the given locale category' seems pretty clear
that it returns the current program setting rather than the default system
Terry J. Reedy tjre...@udel.edu added the comment:
I am not sure that everyone will agree that this is a bug, rather than a
feature request, or that if a bug, that it should be changed in existing
releases and possibly break running code. The doc just says, somewhat vaguely,
that IGNORECASE
Tom Christiansen tchr...@perl.com added the comment:
Terry J. Reedy tjre...@udel.edu added the comment:
I am not sure that everyone will agree that this is a bug, rather than a fe=
ature request, or that if a bug, that it should be changed in existing rele=
ases and possibly break running
Meador Inge mead...@gmail.com added the comment:
Amaury, how about this patch? I got rid of querying the type dictionary and
hoisted the creation of the type instance earlier. Then
'PyObject_GetAttrString' can be used to lookup '_length_' and '_type_' by the
regular Python attribute lookup
Peter Saveliev svinota.savel...@gmail.com added the comment:
Any news? I hope, the change is trivial enough…
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11866
___
Terry J. Reedy tjre...@udel.edu added the comment:
I agree that better masking of narrow-wide build difference would be good as
long as it does not severely impact normal performance. Revision of the test
file (see below) shows that the 'bug' is that the .upper, .lower, and .title
methods
Changes by Terry J. Reedy tjre...@udel.edu:
Added file: http://bugs.python.org/file22894/casemaps.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12730
___
Terry J. Reedy tjre...@udel.edu added the comment:
Does the regex module handle these particular issues better?
--
nosy: +terry.reedy
type: behavior - feature request
versions: +Python 3.3 -Python 2.7
___
Python tracker rep...@bugs.python.org
Terry J. Reedy tjre...@udel.edu added the comment:
However desireable it would be, I do not believe there is any claim in the
manual that the re module follows the evolving Unicode consortium r.e.
standard. If I understand, you are saying that this statement in the doc,
Matches Unicode word
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Are you sure that counter.next() cannot release the GIL? Remember that any
DECREF can trigger the garbage collector and execute arbitrary code...
--
nosy: +amaury.forgeotdarc
___
Python
Tom Christiansen tchr...@perl.com added the comment:
Terry J. Reedy rep...@bugs.python.org wrote
on Fri, 12 Aug 2011 22:21:59 -:
Does the regex module handle these particular issues better?
No, it currently does not. One would have to ask Matthew directly, but I
believe it was
Terry J. Reedy tjre...@udel.edu added the comment:
Ouch!
Do the rejected characters qualify as identifier characters as defined in
Reference 2.3 Identifiers and keywords?
http://docs.python.org/py3k/reference/lexical_analysis.html#identifiers
If some interpreter version accepts extra
Ezio Melotti ezio.melo...@gmail.com added the comment:
-_find_unsafe = re.compile(r'[^\w\d@%_\-\+=:,\./]').search
+_find_unsafe = re.compile(r'[^\w@%\-\+=:,\./]', re.ASCII).search
FWIW there are still unnecessary escapes before '+' and '.', and possibly '-'
('-' doesn't need escaping only when
Terry J. Reedy tjre...@udel.edu added the comment:
I changed the title because 'string' is a module that once contained the
functions that are now attached to the str class as methods. So 'string.title'
is an obsolete attribute reference.
--
nosy: +terry.reedy
title: string.title()
Eric Snow ericsnowcurren...@gmail.com added the comment:
Eli, I interpreted it the same way you did. In the doc, type methods are
those that map directly to PyTypeObject. Any custom type methods go in
tp_methods. You could almost call the former PyTypeObject methods rather
than type
Eric Snow ericsnowcurren...@gmail.com added the comment:
http://docs.python.org/dev/extending/newtypes.html
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12672
___
Tom Christiansen tchr...@perl.com added the comment:
Terry J. Reedy tjre...@udel.edu added the comment:
However desireable it would be, I do not believe there is any claim in the =
manual that the re module follows the evolving Unicode consortium r.e. stan=
My from the hip thought is that
Hello Éric,
I might have ignored some minor stylistic comments. The '.' in the help text
and , after the last TestName, I am not sure if it is of concern.
I think, to update the stylistic comments, if the submitters (if they
care) could have updated the patch, or a separate commit on style
Changes by Matthew Barnett pyt...@mrabarnett.plus.com:
--
nosy: +mrabarnett
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12728
___
___
Changes by Matthew Barnett pyt...@mrabarnett.plus.com:
--
nosy: +mrabarnett
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12729
___
___
Changes by Matthew Barnett pyt...@mrabarnett.plus.com:
--
nosy: +mrabarnett
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12730
___
___
Changes by Matthew Barnett pyt...@mrabarnett.plus.com:
--
nosy: +mrabarnett
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12731
___
___
Changes by Matthew Barnett pyt...@mrabarnett.plus.com:
--
nosy: +mrabarnett
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12732
___
___
Changes by Matthew Barnett pyt...@mrabarnett.plus.com:
--
nosy: +mrabarnett
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12733
___
___
Changes by Matthew Barnett pyt...@mrabarnett.plus.com:
--
nosy: +mrabarnett
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12734
___
___
Changes by Matthew Barnett pyt...@mrabarnett.plus.com:
--
nosy: +mrabarnett
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12735
___
___
1 - 100 of 109 matches
Mail list logo