Marc-Andre Lemburg added the comment:
[In the light of the current discussion on python-ideas regarding adding
support for the Unicode minus sign]
I'm +1 on adding support for the minus code point, since
it's the correct correspondent to the plus code point in Unicode.
The traditional ASCII -
Marc-Andre Lemburg added the comment:
I've changed my mind :-)
Restricting the decimal encoder to only accept code points from one of the
possible decimal digit ranges is a good idea. Let's do that.
--
___
Python tracker rep...@bugs.python.org
Ronald Oussoren added the comment:
The fifth version of the patch should be much cleaner.
Changes:
* Coding style cleanup, the new code uses PEP8 conformant names for
methods and variables.
* Explicitly make private classes private by prefixing their name with
an underscore (including the
Amaury Forgeot d'Arc added the comment:
I prefer the new version without PYMEM_TRACE_MALLOC :-)
Can we rename API and api_id to something more specific? maybe DOMAIN and
domain_id?
--
___
Python tracker rep...@bugs.python.org
Daniel Farina added the comment:
Hello folks,
After long delay, I can confirm this issue reproduces in a similar way inside
of init_socket in 2.7.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14903
Changes by Daniel Farina dan...@heroku.com:
--
versions: +Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14903
___
___
Python-bugs-list
New submission from Daniel Farina:
I was vendoring subprocess to pick up the change for #16327 when I noticed I
could not import it on 2.6. The backwards compatibility claim at the top is
2.2.
Included is a tiny patch that uses a semantically equivalent form.
--
components: Library
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +benjamin.peterson, rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14903
___
Armin Rigo added the comment:
A slightly more complete example that I tested:
http://stackoverflow.com/a/16077568/1556290
--
nosy: +arigo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18033
Berker Peksag added the comment:
Python 2.6 only receives security fixes. You can also look at the subprocess32
module: https://pypi.python.org/pypi/subprocess32
--
nosy: +berker.peksag
resolution: - invalid
stage: - committed/rejected
status: open - closed
Daniel Farina added the comment:
Then most assuredly the message at the top is out of date. It seems a pity
that for this small change that older python versions cannot use the same code
verbatim.
It reads:
# This module should remain compatible with Python 2.2, see PEP 291.
--
Daniel Farina added the comment:
Also, this fix would be for 2.7. My mistake, even though the goal was to
import on older Pythons.
--
status: closed - open
versions: +Python 2.7 -Python 2.6
___
Python tracker rep...@bugs.python.org
New submission from Berker Peksag:
The correct location of the venv module is Lib/venv, not Lib/venv.py.
Attaching a simple patch that fixes the location.
--
assignee: docs@python
components: Documentation
files: venv-location.diff
keywords: patch
messages: 190958
nosy: berker.peksag,
New submission from Shlomi Fish:
After I build Python-3.3.2 from the .tar.xz using the following script (on
Mageia Linux Cauldron x86-64):
#!/bin/bash
./configure --prefix=$HOME/apps/python3 --with-threads \
--enable-ipv6 --with-dbmliborder=gdbm \
New submission from R. Jayakrishnan:
Continuing the IDLE unittest framework initiated in
http://bugs.python.org/issue15392.
A small unit test for IDLE Delegator.py module. This patch introduces a test
module named test_delegator.py inside Lib/idlelib/idle_test, considering the
points README
Changes by R. Jayakrishnan raaj...@gmail.com:
--
versions: +Python 2.7, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18189
___
___
R. David Murray added the comment:
This looks related to issue 14443, which was supposed to be fixed in 3.3.0.
Can you do some of the same debugging that was done in that issue and see if it
reveals any more about the problem?
Also, I notice from that issue that Antoine was (is?) running
STINNER Victor added the comment:
Amaury Forgeot d'Arc added the comment:
I prefer the new version without PYMEM_TRACE_MALLOC :-)
Well, py_setallocators-filename.patch is more a proof-of-concept
showing how to use my Py_SetAllocators() API to pass the C trace
(filename/line number), than a
Changes by Todd Rovito rovit...@gmail.com:
--
nosy: +Todd.Rovito
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18189
___
___
Python-bugs-list
Changes by Todd Rovito rovit...@gmail.com:
--
nosy: +philwebster
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18189
___
___
Python-bugs-list
Changes by Todd Rovito rovit...@gmail.com:
--
nosy: +terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18189
___
___
Python-bugs-list
Shlomi Fish added the comment:
Hi,
I don't understand the issue in questioned - it's too wordy and unclear. I
don't know how to do the debugging in question - please guide me. I should note
that after I do «unset PYTHONDONTWRITEBYTECODE» then all tests pass except for
test_ftp.py, which
Pierrick Koch added the comment:
sorry for the delay, here is the updated patch,
shall I add a new class in Lib/test/test_asynchat.py ?
--
Added file: http://bugs.python.org/file30545/cpython.asyncore.patch
___
Python tracker rep...@bugs.python.org
Ronald Oussoren added the comment:
I've attached a first very rough patch to demonstrate what I was rambling about.
With this patch and a patched version of PyObjC I can use the builtin super
class with the proxy classes for Objective-C classes.
Open issues:
* Does this need a pep?
* The
New submission from Harry Bock:
In Python 2.7.5, running re.search on regular expressions beginning with '.+'
will raise RuntimeError if:
* the string being matched is empty
* the flags include re.DOTALL/re.S
re.search(.+a, , flags=re.S)
File
Antoine Pitrou added the comment:
I don't really use Mageia anymore, that said:
I should note that after I do «unset PYTHONDONTWRITEBYTECODE» [snip]
Yep, this is a long-lasting Mageia issue. See:
https://qa.mandriva.com/show_bug.cgi?id=50484
https://bugs.mageia.org/show_bug.cgi?id=3348
You
New submission from Julien Danjou:
import urllib.parse
urllib.parse.splitport(::1)
(':', '1')
This is obviously invalid.
--
components: Library (Lib)
messages: 190968
nosy: jd
priority: normal
severity: normal
status: open
title: urllib2/urllib.parse.splitport does not handle IPv6
R. David Murray added the comment:
Benjamin fixed the ftp error message, one commit after the 3.3.2 tag. Not sure
if that is enough to make the test pass, though.
So, it sounds like 18142 should be closed as works for me? That is, the
remaining test failures are do to the poor system
Shlomi Fish added the comment:
I see regarding test_ftp.py and the verbosity of the tests and the absence of
bdist_rpm in the output - however, shouldn't the test suite handle the presence
of the PYTHONDONTWRITEBYTECODE=1 flag better? (E.g: refuse to run the tests to
begin with (with an
Ronald Oussoren added the comment:
Second version of the poc adds a way to implement the hook in Python code, and
supers_updated.py uses that hook.
Still no tests, no documentation and with awfull naming :-)
--
Added file: http://bugs.python.org/file30547/supers_updated.py
Ronald Oussoren added the comment:
.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18181
___
___
Python-bugs-list mailing list
Unsubscribe:
Ronald Oussoren added the comment:
The buildbot seems to be happy right now (at least as far as getaddrinfo is
concerned).
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17269
Matthew Barnett added the comment:
Also in Python 3.3.2, but not Python 3.2.
I haven't tested Python 3.3.1 or Python 3.3.0.
--
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18190
R. David Murray added the comment:
Given that we introduced the flag to support read-only file systems, I think
one can argue that the test suite should support running on one. However, the
right thing to do would be to set up a buildbot where that was true so that it
doesn't get re-broken
Christian Tismer added the comment:
I would like to make an additional suggestion.
(and I implemented this yesterday):
Native namedtuple (not a derived class) can be made much simpler to handle
when no module and class machinery is involved at all.
The way I implemented it has no need for
Amaury Forgeot d'Arc added the comment:
Is it possible to avoid a new slot?
for example, super() could walk the tp_base- chain and call tp_getattro each
time the value changes.
--
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka added the comment:
Thank you for your report. This is a duplicate of issue17998.
--
nosy: +serhiy.storchaka
resolution: - duplicate
stage: - committed/rejected
status: open - closed
superseder: - internal error in regular expression engine
Ronald Oussoren added the comment:
I don't think it is possible to avoid adding a new slot. The default
implementation of tp_getattro (PyObject_GenericGetAttr) looks in the instance
dict, while super does not (because it wants a less specific implementation).
PyObject_GenericGetAttr will
Ethan Furman added the comment:
Final (hopefully! ;) patch.
I stuck the toc reference in datatypes.
If no more edits are necessary I'll commit on Friday (three days from now).
--
Added file: http://bugs.python.org/file30548/pep-0435.12.stoneleaf.patch
Changes by Brett Cannon br...@python.org:
--
assignee: - brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17907
___
___
New submission from Brett Cannon:
As part of deprecating imp, need to move imp.get_magic() to importlib where it
now belongs. Will be exposed as an attribute instead of a function, though.
--
components: Library (Lib)
messages: 190981
nosy: brett.cannon
priority: normal
severity:
Changes by Brett Cannon br...@python.org:
--
dependencies: +Move imp.get_magic() to importlib
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17177
___
Changes by Brett Cannon br...@python.org:
--
dependencies: +Move imp.reload() to importlib
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17177
___
New submission from Brett Cannon:
For convenience it should live directly off of importlib and not importlib.util.
--
components: Library (Lib)
messages: 190982
nosy: brett.cannon
priority: normal
severity: normal
stage: test needed
status: open
title: Move imp.reload() to importlib
New submission from Brett Cannon:
To facilitate deprecating imp, need to move imp.source_from_cache() and
cache_from_source() to importlib.util or as static methods on
importlib.machinery.SourceLoader.
--
components: Library (Lib)
messages: 190983
nosy: brett.cannon
priority: normal
Brett Cannon added the comment:
There should now be issues for each of the required relocations to make imp
redundant.
--
dependencies: +Move imp.source_from_cache/cache_from_source to importlib
___
Python tracker rep...@bugs.python.org
Changes by Brett Cannon br...@python.org:
--
assignee: brett.cannon -
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17907
___
___
Brett Cannon added the comment:
This could be an attribute on importlib.machinery.SourceLoader instead of an
attribute in importlib.util.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18192
Barry A. Warsaw added the comment:
On Jun 11, 2013, at 08:47 PM, Brett Cannon wrote:
To facilitate deprecating imp, need to move imp.source_from_cache() and
cache_from_source() to importlib.util or as static methods on
importlib.machinery.SourceLoader.
+1 for importlib.util. They should be
Barry A. Warsaw added the comment:
On Jun 11, 2013, at 08:44 PM, Brett Cannon wrote:
As part of deprecating imp, need to move imp.get_magic() to importlib where
it now belongs. Will be exposed as an attribute instead of a function,
though.
so, importlib.magic ?
--
nosy: +barry
Barry A. Warsaw added the comment:
I'd like to see it be more easily accessible.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18192
___
___
Roundup Robot added the comment:
New changeset 2c747be20d05 by Brett Cannon in branch 'default':
Issue #18157: stop using imp.load_module() in imp.
http://hg.python.org/cpython/rev/2c747be20d05
--
nosy: +python-dev
___
Python tracker
Changes by Brett Cannon br...@python.org:
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18157
___
Roundup Robot added the comment:
New changeset 176fe1f8496f by Brett Cannon in branch 'default':
Issue #18158: delete test_importhooks. Redundant in the face of
http://hg.python.org/cpython/rev/176fe1f8496f
--
nosy: +python-dev
___
Python tracker
Changes by Brett Cannon br...@python.org:
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14797
___
Changes by Brett Cannon br...@python.org:
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18158
___
Ned Deily added the comment:
Your proposed change would still not make the source compatible with Python 2.2
(released over a decade ago) as set() was introduced in 2.4. When the
subprocess module was introduced back then, it made sense to maintain
compatibility with then-recent releases but
Daniel Farina added the comment:
Okay, fair enough, in that case, here's a patch to fix the documentation as to
not make incorrect statements.
--
status: closed - open
Added file:
http://bugs.python.org/file30549/fix-subprocess-compat-documentation-v1.patch
Roundup Robot added the comment:
New changeset b1eeda9db91d by Ned Deily in branch '3.3':
Issue #18187: Fix broken link in venv documentation. Patch by Berker Peksag.
http://hg.python.org/cpython/rev/b1eeda9db91d
New changeset e6fc120012e5 by Ned Deily in branch 'default':
Issue #18187: merge
Ned Deily added the comment:
Thanks for the patch!
--
nosy: +ned.deily
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18187
Roundup Robot added the comment:
New changeset 4b2fdd4dd700 by Ned Deily in branch '2.7':
Issue #18186: remove obsolete 2.2 compatibility comment.
http://hg.python.org/cpython/rev/4b2fdd4dd700
--
nosy: +python-dev
___
Python tracker
Changes by Ned Deily n...@acm.org:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18186
___
___
Python-bugs-list mailing
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18192
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18193
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18194
___
New submission from mrjbq7:
If you have a simple module (say foo.py):
$ cat foo.py
bar = 1
You get weird errors when trying to deep copy them (which I did by accident,
not intentionally trying to deep copy modules):
Python 2.7.2:
import foo
import copy
copy.deepcopy(foo)
Traceback (most
Brandon Craig Rhodes added the comment:
Kristján, your patch is a wonderful idea—I am about to commit production code
that will have to create tens of thousands of temporary files during operation,
one file each time SSL is started up on a socket, which could be avoided if
something like this
Christian Heimes added the comment:
New patch
* method has been renamed to get_ca_list() and returns only CA certs
* get_ca_list(binary_form=True) returns CA certs in DER format
* cert_store_stats() returns three elements: X.509 CA cert count, X.509 non-CA
count and CRL count
--
Added
Raymond Hettinger added the comment:
Since the key is already accessible via the args attribute, what is the point
of a new attribute?
d = {}
try:
d['roger']
except KeyError as e:
print(e.args)
('roger',)
--
nosy: +rhettinger
tahnoon pasha added the comment:
I'll log this at the davmail forums too and report back if I get a response
there.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18153
___
R. David Murray added the comment:
Making it unambiguous what piece of data is being retrieved, and allowing new
code to have a more complex message than just 'Keyerror: ' and still be
able to get at only the missing key.
--
___
Python tracker
R. David Murray added the comment:
Well, we don't generally complicate the code to handle edge cases. That said,
it might not be too complicated to add copy protocol methods to the module
object which just raise a more useful error.
--
nosy: +r.david.murray
Roger Serwy added the comment:
I'm closing this issue as the original problem reported has been resolved.
--
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17838
Roger Serwy added the comment:
I noticed that the tracebacks didn't occur in 2.7 due to 872a3aca2120, but that
patch was not grafted onto the 3.x branches. I'll take care of that.
With #13495 fixed, the two errors mentioned in msg187323 do not occur with the
_rev1 patch applied.
--
Roundup Robot added the comment:
New changeset ca8e86711403 by Roger Serwy in branch '2.7':
#5492: Avoid traceback when exiting IDLE caused by a race condition.
http://hg.python.org/cpython/rev/ca8e86711403
New changeset da852f5250af by Roger Serwy in branch '3.3':
#5492: Avoid traceback when
Roger Serwy added the comment:
This issue is now fixed. Thank you everyone for helping!
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5492
New submission from Roger Serwy:
As a formality, I opened this issue to apply 872a3aca2120 to the 3.x branch.
This addresses a concern brought up by Terry in msg187323 from issue5492.
Here's the relevant part of the message:
Without or with patch, quit() or exit brings up TK box
(?) The
Roundup Robot added the comment:
New changeset 0e56d4e3 by Roger Serwy in branch '3.3':
#18196: Avoid displaying spurious SystemExit tracebacks.
http://hg.python.org/cpython/rev/0e56d4e3
New changeset 479aad3bb122 by Roger Serwy in branch 'default':
#18196: merge with 3.3
Changes by Ben Hearsum bhear...@gmail.com:
--
nosy: +Ben.Hearsum
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18167
___
___
Python-bugs-list
Roger Serwy added the comment:
And it's applied.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18196
Alexander Belopolsky added the comment:
This is essentially a duplicate of #10581, so I am closing this and will
summarize the situation there.
--
resolution: - duplicate
status: open - closed
superseder: - Review and document string format accepted in numeric data type
constructors
Alexander Belopolsky added the comment:
It looks like we a approaching consensus on some points:
1. Mixed script numerals should be disallowed.
2. '\N{MINUS SIGN}' should be accepted as an alternative to '\N{HYPHEN-MINUS}'
Open question: should we accept fullwidth + and -, sub/superscript
82 matches
Mail list logo