Hendrik Lemelson added the comment:
Thank you for clarifying this. While it still not seems really intuitive to me
I can handle the behavior.
To summarize: It is not possible with re to have an optional ({0,1}) group that
contains further subgroups, because re considers (0,0) to already
Berker Peksag added the comment:
Patch attached with a test.
--
keywords: +patch
nosy: +berker.peksag
versions: +Python 3.3, Python 3.4
Added file: http://bugs.python.org/file29140/issue16181_v1.diff
___
Python tracker rep...@bugs.python.org
Ferdinand Beyer added the comment:
Line and column number are included in the formatted error message (raise
ValueError(errormsg(...))). They are currently not accessible separately as
exception arguments.
--
___
Python tracker
New submission from Berker Peksag:
See for the current version:
http://docs.python.org/3.4/library/string.html#string.Template.template
--
assignee: docs@python
components: Documentation
files: string_template_highlight.diff
keywords: patch
messages: 182584
nosy: berker.peksag,
Changes by Richard Oudkerk shibt...@gmail.com:
--
nosy: +sbt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17261
___
___
Python-bugs-list mailing
Roundup Robot added the comment:
New changeset 943ea41d3ceb by Ezio Melotti in branch '2.7':
#17265: fix highlight in template example. Initial patch by Berker Peksag.
http://hg.python.org/cpython/rev/943ea41d3ceb
New changeset 1b9de5788698 by Ezio Melotti in branch '3.2':
#17265: fix
Ezio Melotti added the comment:
Fixed, thanks for the report and the patch!
--
assignee: docs@python - ezio.melotti
nosy: +ezio.melotti
resolution: - fixed
stage: - committed/rejected
status: open - closed
type: - enhancement
___
Python tracker
New submission from Helmut Jarausch:
I have tcl/tk 8.6.0 installed here. Both Python versions below
are build from source.
I'm using LANG=en_US.iso88591 here if that matters.
When opening a file in Idle with
python-3.3.1 revision: c08bcf5302ec
or
python-3.4.0a0 (default:3a110a506d35) (HG
Serhiy Storchaka added the comment:
Python is not ready for Tcl/Tk 8.6 yet.
--
components: +Tkinter
nosy: +serhiy.storchaka
resolution: - duplicate
stage: - committed/rejected
status: open - closed
superseder: - Tk 8.6.0 introduces TypeError. (Tk 8.5.13 works)
type: - behavior
Serhiy Storchaka added the comment:
These values used only in the exception message. However current (3.0.8, stdlib
json based on 2.0.9) simplejson exposes them as an exception attributes.
http://simplejson.readthedocs.org/en/latest/#exceptions
--
Serhiy Storchaka added the comment:
Erm, still, which one do I build? Not 3.2 because it obviously
works, at least as packaged in Debian.
Any = 3.3.0.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17237
Roundup Robot added the comment:
New changeset 7a9ea3d08f51 by Serhiy Storchaka in branch '2.7':
Issue #17248: Fix os.*chown() testing when user is in root group.
http://hg.python.org/cpython/rev/7a9ea3d08f51
New changeset 0f7383e6ced7 by Serhiy Storchaka in branch '3.2':
Issue #17248: Fix
Changes by Serhiy Storchaka storch...@gmail.com:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17248
___
___
New submission from Ronald Oussoren:
It would be nice if datetime.time would be possible to add a delta to a
datetime.time object, and if datetime.time had a method for returning the
current time (just like datetime.date and date time.datetime have 'today' and
'now' methods).
Rationale for
Ramchandra Apte added the comment:
IMO, Class Browser shouldn't even appear in PyShell.
--
nosy: +Ramchandra Apte
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16233
___
Eric V. Smith added the comment:
What would this give:
tm = datetime.time(13, 20)
later = tm + datetime.timedelta(hours=47, minutes=44)
datetime.time(13, 4)? Or raise an exception?
I've thought about this before, but it's always a problem when going over date
boundaries. If you define
Ronald Oussoren added the comment:
IMHO this would to module 24 arithmetic, just like a normal clock.
When I do calculations with plain time that is what I want, if the date is also
important I use datetime.datetime. That a time value silently truncates when
going past midnight is IMHO also
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
nosy: +giampaolo.rodola
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16446
___
___
Giampaolo Rodola' added the comment:
I also bumped into this problem on both 2.7 and 3.3. It is very annoying.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16446
___
Éric Araujo added the comment:
Thanks, will tweak and apply.
--
assignee: docs@python - eric.araujo
nosy: +eric.araujo
stage: - patch review
versions: +Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17264
New submission from Marc-Andre Lemburg:
We have implemented the context manager API for connections and cursors in our
mxODBC module and this works fine in Python 2.6.
In Python 2.7 we get the following error:
Traceback (most recent call last):
File context-manager.py, line 6, in module
Marc-Andre Lemburg added the comment:
After some experiments, it turned out that by simply filling in the tp_methods
slot, the problem went away.
Still, the change to use _PyObject_LookupSpecial() appears to have missed the
(older) use case where you don't define tp_members, but instead
Christian Heimes added the comment:
The change should also be documented here,
http://docs.python.org/2.7/whatsnew/2.7.html#porting-to-python-2-7
--
assignee: - docs@python
components: +Documentation
nosy: +christian.heimes, docs@python
stage: - needs patch
Marc-Andre Lemburg added the comment:
On 21.02.2013 17:36, Marc-Andre Lemburg wrote:
After some experiments, it turned out that by simply filling in the
tp_methods slot, the problem went away.
Sorry: *tp_methods*, not tp_members.
--
___
Python
Marc-Andre Lemburg added the comment:
On 21.02.2013 17:36, Marc-Andre Lemburg wrote:
After some experiments, it turned out that by simply filling in the
tp_methods slot, the problem went away.
Still, the change to use _PyObject_LookupSpecial() appears to have missed the
(older) use case
Changes by Marc-Andre Lemburg m...@egenix.com:
--
Removed message: http://bugs.python.org/msg182601
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17268
___
Bob Ippolito added the comment:
I've applied a very similar patch to simplejson and released 3.0.9
https://github.com/simplejson/simplejson/commit/44d7709a31f3a19f3d465411585ebb7be7fa2295
--
nosy: +bob.ippolito
___
Python tracker
Serhiy Storchaka added the comment:
https://github.com/simplejson/simplejson/issues/57
Simplejson has fixed this for about 6 hours.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17225
Roundup Robot added the comment:
New changeset ce583eb0bec2 by Serhiy Storchaka in branch '2.7':
Issue #17225: JSON decoder now counts columns in the first line starting
http://hg.python.org/cpython/rev/ce583eb0bec2
New changeset 36220cf535aa by Serhiy Storchaka in branch '3.2':
Issue #17225:
Serhiy Storchaka added the comment:
Thank you for the report, Ferdinand.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17225
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17268
___
___
Python-bugs-list
Stefan Behnel added the comment:
Let me throw in a quick reminder that Cython has substantially faster argument
parsing than the C-API functions provide because it translates function
signatures like
def func(int a, b=1, *, list c, d=2):
...
into tightly specialised unpacking
Benjamin Peterson added the comment:
This is a property of all special methods not just __enter__ and __exit__.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17268
___
Roundup Robot added the comment:
New changeset 124237eb5de9 by Ezio Melotti in branch '2.7':
#17255: test short-circuiting behavior of any()/all(). Patch by Wim Glenn.
http://hg.python.org/cpython/rev/124237eb5de9
New changeset 34b7240d678b by Ezio Melotti in branch '3.2':
#17255: test
Ezio Melotti added the comment:
Fixed, thanks for the report and the patch!
--
assignee: - ezio.melotti
nosy: +ezio.melotti
resolution: - fixed
stage: - committed/rejected
status: open - closed
versions: -Python 2.6, Python 3.1, Python 3.5
___
Terry J. Reedy added the comment:
Conceptual problems indeed. I never tried the 'class browser' because I mostly
write modules with functions, not classes. Nonetheless, to see what this issue
is about, I just tried it with one of my function-only files, expecting to see
an empty 'show',
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
hgrepos: -170
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14468
___
___
Python-bugs-list
Changes by Ezio Melotti ezio.melo...@gmail.com:
Removed file: http://bugs.python.org/file28628/issue14468-2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14468
___
Terry J. Reedy added the comment:
(Stefan) into tightly specialised unpacking code,
Are you suggesting that func.__call__ should be specialized to func's
signature, more than it is now (which is perhaps not at all), or
something else?
--
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
Removed file: http://bugs.python.org/file28629/committing.rst
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14468
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
Removed file: http://bugs.python.org/file28540/issue14468.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14468
___
Stefan Behnel added the comment:
Cython does that in general, sure. However, this ticket is about a specific
case where string methods (which are implemented in C) are slow when called
from Python. Antoine found out that the main overhead is not so much from the
method lookup itself but from
Changes by Ezio Melotti ezio.melo...@gmail.com:
Added file: http://bugs.python.org/file29143/2-move_two_sections.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14468
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
Added file:
http://bugs.python.org/file29144/3-update_active_branches_and_mergin_order.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14468
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
Added file: http://bugs.python.org/file29148/7-move_faq_in_two_subsections.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14468
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
Added file: http://bugs.python.org/file29142/1-add_clones_setup.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14468
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
Added file:
http://bugs.python.org/file29145/4-update_merge_within_same_version.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14468
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
Added file:
http://bugs.python.org/file29146/5-update_merge_between_major_versions.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14468
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
Added file: http://bugs.python.org/file29149/8-update_faqs.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14468
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
Added file: http://bugs.python.org/file29147/6-remove_outdated_sections.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14468
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
Added file: http://bugs.python.org/file29151/7-8-faqs.rst.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14468
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
Added file: http://bugs.python.org/file29150/1-6-committing.rst.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14468
___
Ezio Melotti added the comment:
I extracted the diffs and attached them to the issue.
The first 6 patches update committing.rst:
[1]:
https://bitbucket.org/ezio_melotti/devguide-14468/commits/c2fca99bdb7212c4815d9fe6b0c869bb4358886a
[2]:
New submission from Johan Tibell:
The following call to getaddrinfo makes Python segfault:
$ python
Python 2.7.2 (default, Jun 20 2012, 16:23:33)
[GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin
Type help, copyright, credits or license for more information.
import
STINNER Victor added the comment:
Attached patch should fix this issue.
--
keywords: +patch
versions: +Python 3.4
Added file: http://bugs.python.org/file29152/curses_get_wch_sigint.patch
___
Python tracker rep...@bugs.python.org
STINNER Victor added the comment:
Linux manual page: If AI_NUMERICSERV is specified in hints.ai_flags and
service is not NULL, then service must point to a string containing a numeric
port number.
So it looks like None is accepted on Linux. I checked: the example doesn't
crash.
Changes by STINNER Victor victor.stin...@gmail.com:
--
assignee: - ronaldoussoren
components: +Macintosh
nosy: +ronaldoussoren
versions: +Python 3.2, Python 3.3, Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17269
Chris Jerdonek added the comment:
Thanks for waiting and for posting the patches here. I think the second patch
2-move_two_sections.diff should be committed now, along with making Working
with Mercurial a higher-level header (as it is done in the aggregate patch).
This will separate the
Ned Deily added the comment:
The crash occurs in OS X's libsystem_info on 10.8.
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_info.dylib0x7fff86bacd9e mdns_addrinfo + 299
1 libsystem_info.dylib0x7fff86badae2 search_addrinfo +
New submission from Chris Jerdonek:
The documentation guidelines in the devguide list a convention for section
headers:
http://docs.python.org/devguide/documenting.html#sections
The current wording, however, can be interpreted to mean that this convention
is always (and should always) be
Ezio Melotti added the comment:
LGTM
--
stage: patch review - commit review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17270
___
___
Chris Jerdonek added the comment:
It can just be changed to being a suggestion as opposed to the convention
that we use.
I created issue 17270 for this.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17109
Roundup Robot added the comment:
New changeset fa06f733e2fe by Chris Jerdonek in branch 'default':
Issue #17270: clarify that the section header doc convention is optional.
http://hg.python.org/devguide/rev/fa06f733e2fe
--
nosy: +python-dev
___
Changes by Chris Jerdonek chris.jerdo...@gmail.com:
--
resolution: - fixed
stage: commit review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17270
Roundup Robot added the comment:
New changeset f4ccc5aab287 by Chris Jerdonek in branch '2.7':
Issue #17203: add long option names to unittest discovery docs.
http://hg.python.org/cpython/rev/f4ccc5aab287
New changeset c0581f7be196 by Chris Jerdonek in branch '3.2':
Issue #17203: add long
Changes by Chris Jerdonek chris.jerdo...@gmail.com:
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17203
Terry J. Reedy added the comment:
Looking at patch 1. On Windows, ~/.hgrc is $HOME$/mercurial.ini.
On my win7 machine, that translates to C:/Users/Terry/mercurial.ini.
I think it would be different on xp. But with TortoiseHG/Workbench, one should
better use the Settings dialogs than edit
Changes by Terry J. Reedy tjre...@udel.edu:
--
components: +IDLE
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16123
___
___
Python-bugs-list
Ezio Melotti added the comment:
I did some macro-benchmarks and the proposed changes don't seem to affect the
result (most likely because they are in _parse_doctype_element and
_parse_doctype_attlist which should be called only once per document).
I did some profiling, and this is the result:
Ezio Melotti added the comment:
I could mention mercurial.ini too, but I don't think the devguide should cover
tortoisehg. All the commands should work fine on Windows too.
I don't think that is actually used as I created the clones with
hg update rather than hg share.
Do you you mean
Chris Jerdonek added the comment:
For reasons I stated above, I think it will help to break this issue into
smaller, self-contained parts as we go -- even if some of the issues turn out
to be short-lived.
For example, an issue can be created for adding to the docs a section on how to
set up
Raymond Hettinger added the comment:
FWIW, I help a lot of people with IDLE problems and sometimes the -n option is
the only thing that saves them. ISTM that removing it is not such as a good
idea.
--
nosy: +rhettinger
___
Python tracker
Roger Serwy added the comment:
@Raymond: What is so broken about IDLE that requires using -n to fix it?
Let's try to fix those problems rather than keeping up the maintenance burden
of supporting two execution modes.
--
___
Python tracker
Kushal Das added the comment:
Following patch solves the problem.
--
keywords: +patch
nosy: +kushaldas
Added file: http://bugs.python.org/file29154/issue17256.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17256
Ezio Melotti added the comment:
The current 1-add_clones_setup.diff patch mixes things by including
info on applying, committing, and merging a patch under the section on
setting things up.
The goal of that section is to provide an overview of all the steps that a
committer has to follow,
Terry J. Reedy added the comment:
Do you you mean s/update/clone/? duh, yes
I don't think the devguide should cover tortoisehg.
Given the obnoxiousness of Command Prompt, and how foreign it is to working on
Windows, I think maybe there should be an addendum *somewhere*, but I don't
expect
Kushal Das added the comment:
Adding a patch to fix this issue.
--
keywords: +patch
nosy: +kushaldas
Added file: http://bugs.python.org/file29155/issue17227.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17227
Chris Jerdonek added the comment:
The Clones setup section is not about how to set up a clone, but how do
I do these steps depending on the specific setup I'm using (single or
multiple clones).
Then the section should be called something like Cloning approaches rather
than Clones setup.
Roundup Robot added the comment:
New changeset 30e7bc28d4f5 by Ezio Melotti in branch '2.7':
#17035: use new style classes in classmethod/staticmethod examples. Patch by
Berker Peksag.
http://hg.python.org/cpython/rev/30e7bc28d4f5
--
nosy: +python-dev
Roundup Robot added the comment:
New changeset ad55dc7de7fc by Ezio Melotti in branch '2.7':
#17256: fix syntax highlight in embedding example. Patch by Kushal Das.
http://hg.python.org/cpython/rev/ad55dc7de7fc
New changeset b42e7aeb4235 by Ezio Melotti in branch '3.2':
#17256: fix syntax
Ezio Melotti added the comment:
Fixed, thanks for the report and the patch!
--
assignee: docs@python - ezio.melotti
nosy: +ezio.melotti
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
type: - enhancement
___
Ezio Melotti added the comment:
Fixed, thanks for the patch!
--
assignee: docs@python - ezio.melotti
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
versions: +Python 3.2, Python 3.3, Python 3.4
___
Python tracker
New submission from Jason S Friedman:
Page is http://docs.python.org/3/library/tempfile.html#module-tempfile.
The code in question currently reads:
f = NamedTemporaryFile(delete=False)
f
open file 'fdopen', mode 'w+b' at 0x384698
f.name
Chris Jerdonek added the comment:
Adding a patch to fix this issue.
I had tried this, but doesn't this make the contents in the left side bar
unwieldy (and perhaps also on the devguide index page) -- is that what we want?
I was under the assumption that the purpose of the tocdepth directive
New submission from Demian Brecht:
When assigning a value to an already instantiated Request object's full_url,
unexpected results are found as a consequence in the attributes selector, type
and fragment. Selector, type and fragment are only assigned to during
instantiation. Unless you know
Demian Brecht added the comment:
I also meant to mention that of course, the obvious workaround would simply be
to instantiate a new Request object with the new URL, but in my mind, this is
something that should likely be supported by the Request object itself.
--
Kushal Das added the comment:
I had tried this, but doesn't this make the contents in the left side bar
unwieldy (and perhaps also on the devguide index page) -- is that what we
want? I was under the assumption that the purpose of the tocdepth directive
was to avoid that.
Yes, missed that
Terry J. Reedy added the comment:
As someone who previously tried but failed to setup shared clones, to avoid the
apparently senseless copying of multiple copies of .hg/store, because of the
inadequate disjointed doc, I like patch 1. I am using it now to redo my setup
and batch file. I think
Ezio Melotti added the comment:
I think it would be good to have a separate subsection dedicated just
to the setting up portion of multiple clones with the share extension
I'm not sure that's necessary though, given how simple it is (enable share
extension, hg share source dest, repeat).
New submission from Arun Babu Neelicattu:
The task/worker handler threads in the multiprocessing.pool.Pool class are (in
accordance to posix standards) not copied over when the process containing the
pool is forked.
This leads to a situation where the Pool keeps receiving tasks but the tasks
Terry J. Reedy added the comment:
I meant one pull and multiple updates (instead of the multiple 'pull -u's I
have now).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14468
___
Roundup Robot added the comment:
New changeset 82343bbf8868 by Ezio Melotti in branch '3.2':
#17271: update example in tempfile docs.
http://hg.python.org/cpython/rev/82343bbf8868
New changeset a9993d40821f by Ezio Melotti in branch '3.3':
#17271: merge with 3.2.
Ezio Melotti added the comment:
Fixed, thanks for the report!
--
assignee: docs@python - ezio.melotti
nosy: +ezio.melotti
resolution: - fixed
stage: - committed/rejected
status: open - closed
type: - enhancement
versions: +Python 3.3, Python 3.4
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file29158/issue17183.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17183
___
Ezio Melotti added the comment:
The attached patch converts the function in a real test, using proper skips and
assert methods.
--
components: +Library (Lib) -Tests
Added file: http://bugs.python.org/file29159/issue17249.diff
___
Python tracker
Ronald Oussoren added the comment:
Looks like a bug in libSystem, see mdns_addrinfo in
http://www.opensource.apple.com/source/Libinfo/Libinfo-406.17/lookup.subproj/mdns_module.c.
Its handling of AI_NUMERICSERV doesn't match that of si_getaddrinfo.c at the
same location.
I'll file a bug with
Changes by Arun Babu Neelicattu alectoly...@gmail.com:
--
nosy: +jnoller, sbt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17273
___
___
Kushal Das added the comment:
I found that http://docs.python.org/devguide/stdlibchanges.html also has left
side bar text with full index just like my patch does. For FAQ the problem is
title texts are kind of long so they look bad.
--
___
Python
Ronald Oussoren added the comment:
That's interesting... this also crashes:
socket.getaddrinfo(localhost, 0, 0, 0, 0, socket.AI_NUMERICSERV)
While using another port number does not.
The attached patches for the default branch fixes the issue for me (on OSX
10.8).
The same approach should
Ronald Oussoren added the comment:
I've filed radar #13271126 for this in Apple's tracker.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17269
___
1 - 100 of 102 matches
Mail list logo