Georg Brandl ge...@python.org added the comment:
No, this is not intentional. Look at the docs for these attributes:
parser.largs
the current list of leftover arguments, ie. arguments that have been
consumed but are neither options nor option arguments. Feel free to modify
parser.largs,
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
in PC/_subprocess.c, it should be enough to use
PyErr_SetFromWindowsErrWithFilename() instead of PyErr_SetFromWindowsErr()
--
keywords: +easy
nosy: +amaury.forgeotdarc
___
Python tracker
New submission from Mark Summerfield m...@qtrac.eu:
The argparse module's ArgumentParser class has an error() method that appears
to have the same behavior as the optparse error() method, but this method is
not mentioned in the documentation.
--
assignee: d...@python
components:
Antoine Pitrou pit...@free.fr added the comment:
Well, this is not so obviously wrong as you make it sound. If you
look closer at object_new(), you will see that in sane situations it
reduces to type-tp_alloc(type, 0) call.
Today, yes. But tomorrow it may entail additional operations.
If
Georg Brandl ge...@python.org added the comment:
This should be taken to the Sphinx tracker, as the feature needs to be
implemented first.
--
nosy: +georg.brandl
status: open - closed
___
Python tracker rep...@bugs.python.org
Changes by Zsolt Cserna zsolt.cse...@morganstanley.com:
--
nosy: +csernazs
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8799
___
___
anatoly techtonik techto...@gmail.com added the comment:
http://bitbucket.org/birkenfeld/sphinx/issue/460/strip-section-numbers-from-toc-menu
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9106
New submission from Matthias Klose d...@debian.org:
string exceptions still used in a couple of places:
Tools/msi/msi.py:354
Tools/msi/msi.py:368
Tools/msi/msilib.py:238
--
components: Demos and Tools
messages: 108900
nosy: doko
priority: normal
severity: normal
status: open
title:
Matt Joiner anacro...@gmail.com added the comment:
I take it this is out for 2.7, will it be in 3.2?
--
nosy: +anacrolix
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3823
___
New submission from Mark Summerfield m...@qtrac.eu:
It appears that br (raw bytes) isn't documented, at least not along with
string and bytes literals:
http://docs.python.org/py3k/reference/lexical_analysis.html#literals
Yet they are supported:
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9114
___
___
Python-bugs-list
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9113
___
___
Python-bugs-list
Changes by Éric Araujo mer...@netwok.org:
--
resolution: - accepted
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2504
___
Éric Araujo mer...@netwok.org added the comment:
It appears that I had mistaken comments in the source and comments in the
pot/po files:
/* TRANSLATORS: The placeholder indicates etc. */
printf (_(Something.\n));
These will be extracted by ‘xgettext’, leading to a .pot file that
Changes by Éric Araujo mer...@netwok.org:
--
title: pygettext: provide comments to help translators - pygettext: extract
translators comments
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1288056
Senthil Kumaran orsent...@gmail.com added the comment:
On Mon, Jun 28, 2010 at 08:51:58PM +, ThomasH wrote:
But the urllib.rst documentation is still flawed:
Fixed now in the r82363. Did a find and grep on all instances of
HTTPMessage and verified that it is only at proper places now.
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +bethard
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9112
___
___
Python-bugs-list
R. David Murray rdmur...@bitdance.com added the comment:
If the change is confined to the left menu bar only, I'd be happy to have the
numbers go away entirely. But only putting in partial numbers strikes me as an
invitation to confusion. If other people prefer your scheme that's fine with
Nick Coghlan ncogh...@gmail.com added the comment:
Looks pretty good to me, but you may want to doublecheck some of your test
criteria.
Firstly, the two *_with_exception checks don't look quite right to me. I
would have expected to see something like the following for both of them:
Michael Foord mich...@voidspace.org.uk added the comment:
Hey Nick,
The tests are pretty much just copied from the previous version, so they aren't
all appropriate. In fact I think that the first two tests (and even the typo
tests) can just go as they really just test Python semantics and not
Éric Araujo mer...@netwok.org added the comment:
+1 for removing numbers.
--
nosy: +merwok
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9106
___
Changes by Éric Araujo mer...@netwok.org:
--
stage: - committed/rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9103
___
___
Éric Araujo mer...@netwok.org added the comment:
Feel free to assign patchcheck bugs to me. I’ll write a patch and then assign
to you for review.
--
nosy: +merwok
resolution: - accepted
___
Python tracker rep...@bugs.python.org
New submission from Zsolt Cserna zsolt.cse...@morganstanley.com:
On systems where there's no unsetenv function (for example solaris 8),
test_site fails because the PYTHONUSERBASE environment variable remains set to
xoxo (set in the previous tests).
This results a failed test_s_option test.
Nick Coghlan ncogh...@gmail.com added the comment:
On Wed, Jun 30, 2010 at 12:13 AM, Michael Foord rep...@bugs.python.org wrote:
Michael Foord mich...@voidspace.org.uk added the comment:
Hey Nick,
The tests are pretty much just copied from the previous version, so they
aren't all
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
At least part of the problem has nothing to do with subclassing from int and
instead is related to pickling objects with circular references.
I am attaching a patch that demonstrates the problem. In
Benjamin Peterson benja...@python.org added the comment:
Fixed in r82373.
--
nosy: +benjamin.peterson
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9114
New submission from Brian Curtin cur...@acm.org:
Debug and Release builds of py3k both throw up a Visual Studio debugger prompt
when running this test on Windows. I don't have much time at the moment to
investigate, but I find it odd that this isn't occurring on the two Windows
py3k
Brian Curtin cur...@acm.org added the comment:
I should also note that this doesn't appear to happen on release31-maint or
trunk.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9116
___
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
Removed file: http://bugs.python.org/file17800/issue1581183-test.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1581183
___
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
Added file: http://bugs.python.org/file17801/issue1581183-test.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1581183
___
Changes by Éric Araujo mer...@netwok.org:
--
stage: - committed/rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9114
___
___
Antoine Pitrou pit...@free.fr added the comment:
I take it this is out for 2.7, will it be in 3.2?
The patch for issue8550 has been committed. The SSLContext API should solve
this issue:
http://docs.python.org/dev/py3k/library/ssl.html#ssl.SSLContext.wrap_socket
If it doesn't, please explain
New submission from Mark Dickinson dicki...@gmail.com:
Looking at:
http://docs.python.org/dev/py3k/reference/compound_stmts.html#class-definitions
I see:
classdef::= [decorators] class classname [inheritance] : suite
inheritance ::= ( [expression_list] )
classname ::= identifier
Mark Dickinson dicki...@gmail.com added the comment:
Am working on a patch.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9117
___
___
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Upon further investigation, I conclude that the problem is in the user code. I
am attaching int_subclass_pickle_problem_fixed.py which fixes the user code as
follows:
def __getnewargs__(self):
-return
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
I believe that *args and **kwargs are now also syntactically
accepted in a class definition.
Indeed:
class a: pass
class b: pass
bases = (a, b)
class c(*bases): pass
kwds = {'metaclass':type}
class c(*bases,
Marc-Andre Lemburg m...@egenix.com added the comment:
Apart from the question of API, please also include a section on the legal
implications this move would have on Python in the PEP.
We currently only include OpenSSL in the Windows installers and (for some
reason) don't pay much attention
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
I see the following under
http://docs.python.org/dev/py3k/library/pickle.html#pickling-class-instances:
Note If __getstate__() returns a false value, the __setstate__() method will
not be called. That was added in
Antoine Pitrou pit...@free.fr added the comment:
If we are to require OpenSSL or some other crypto lib,
We already depend on OpenSSL for both hashlib and ssl, this proposal
wouldn't change anything in this regard.
--
___
Python tracker
Mark Dickinson dicki...@gmail.com added the comment:
It looks like fixing the production list is the easy part (see attached patch):
as far as I can tell, the *syntax* for class definitions is pretty much
identical to that for function calls. (The semantics are different, of
course.) It
Brett Cannon br...@python.org added the comment:
Knock yourself out!
--
assignee: - merwok
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9095
___
Marc-Andre Lemburg m...@egenix.com added the comment:
Antoine Pitrou wrote:
Antoine Pitrou pit...@free.fr added the comment:
If we are to require OpenSSL or some other crypto lib,
We already depend on OpenSSL for both hashlib and ssl, this proposal
wouldn't change anything in this
Gustavo Niemeyer gust...@niemeyer.net added the comment:
Indeed, nice use of the time machine! :-)
Thanks Lars!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9071
___
New submission from Jack Diederich jackd...@gmail.com:
ython 2.7b2+ (trunk:81337, May 19 2010, 12:16:22)
[GCC 4.4.3] on linux2
Type help, copyright, credits or license for more information.
class X(object):
... @property
... def foo(self): pass
...
help(X.foo.fset)
Welcome to Python
New submission from Marc-Andre Lemburg m...@egenix.com:
This needs to be done to protect our users (importing crypto code or using it
may be illegal in their home country, see
http://rechten.uvt.nl/koops/cryptolaw/ for a survey) and to satisfy an
attribution requirement in the OpenSSL license
Marc-Andre Lemburg m...@egenix.com added the comment:
See the OpenSSL license for details on the notice requirement:
http://www.openssl.org/source/license.html
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9119
Marc-Andre Lemburg m...@egenix.com added the comment:
Marc-Andre Lemburg wrote:
We currently only include OpenSSL in the Windows installers and (for some
reason) don't pay much attention to the implications this has (the fact is
not mentioned on the download page and the Windows installer
Changes by geremy condra debat...@gmail.com:
--
nosy: +debatem1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9119
___
___
Python-bugs-list
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
The production looks right to me, but I think it should be broken in two or
more lines. Since it is rendered pre-formatted, long line results in a
horizontal scroll bar unless the browser window is extremely wide.
Mark Dickinson dicki...@gmail.com added the comment:
The patch looks fine to me.
- Please could you add some tests, to exercise the 'not a whole number of
frames' errors?
- The patch obviously predates the grand reindenting, so its indentation needs
fixing up
PEP 7 nits:
- Please don't
R. David Murray rdmur...@bitdance.com added the comment:
It must be that the different key order only happens on the one platform
because of the quirky nature of dictionary construction. That is, there is
*something* on that platform that is changing where things get hashed when the
geremy condra debat...@gmail.com added the comment:
On Tue, Jun 29, 2010 at 2:25 PM, Marc-Andre Lemburg
rep...@bugs.python.org wrote:
Marc-Andre Lemburg m...@egenix.com added the comment:
Antoine Pitrou wrote:
Antoine Pitrou pit...@free.fr added the comment:
If we are to require OpenSSL
Mark Dickinson dicki...@gmail.com added the comment:
Yes, good plan. I'll do that.
I'm also not sure about the 'comprehension' bit; it's true that a
comprehension is syntactically valid here (e.g., class A(x for x in
range(3))), but it's also entirely useless: it has to be the sole
New submission from Alexander Belopolsky belopol...@users.sourceforge.net:
Empty sets are pickled as set([]). The pickle contains serialization of an
empty list that is passed to set constructor during unpickling:
dis(dumps(set()))
0: \x80 PROTO 3
2: cGLOBAL 'builtins
Mark Dickinson dicki...@gmail.com added the comment:
Updated patch. I've reorganized that documentation section a bit, and added a
link to PEP 3115. This isn't ideal, but it's better than nothing.
--
Added file: http://bugs.python.org/file17805/issue9117_v2.patch
Mark Dickinson dicki...@gmail.com added the comment:
And the same patch, but this time *without* the irrelevant audioop changes. :)
--
Added file: http://bugs.python.org/file17806/issue9117_v2.patch
___
Python tracker rep...@bugs.python.org
Changes by Mark Dickinson dicki...@gmail.com:
Removed file: http://bugs.python.org/file17805/issue9117_v2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9117
___
Mark Dickinson dicki...@gmail.com added the comment:
This seems a bit like premature (space) optimization to me. Is it really worth
special-casing this?
--
nosy: +mark.dickinson
___
Python tracker rep...@bugs.python.org
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
An explicit dictionary to map the Python and C implementations may be a
better approach.
Do you mean a global
optimized_module = {'pickle': '_pickle'}
in test/support.py?
I don't think I like this idea. Even with
Mark Dickinson dicki...@gmail.com added the comment:
To keep things clean, would it be possible to separate this into two patches,
one containing the refactoring and one for the newly exposed gettimeofday?
--
___
Python tracker
R. David Murray rdmur...@bitdance.com added the comment:
Given that the API is what is, then it looks like the needed doc improvements
have been done.
--
stage: - committed/rejected
status: pending - closed
___
Python tracker rep...@bugs.python.org
Mark Dickinson dicki...@gmail.com added the comment:
After discussions on IRC, I'm going to close this as rejected. Convergence of
the float and Decimal APIs is a nice idea, but in this case it's not clear that
it really works. In particular, for duck typing to be sensible, int and
Fraction
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
It is both space and time optimization.
Fred was a proponent of small pickle sizes in the past, so I am adding him to
the nosy list.
I am not too keen on this to happen, though. It just seemed more natural to me
not to
Mark Dickinson dicki...@gmail.com added the comment:
Doc patch committed in revisions r82379 through r82382.
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1789
___
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
The original patch, gettimeofday.diff was just refactoring. I unlinked it to
keep the file list clean, but it is still available:
http://bugs.python.org/file17766/gettimeofday.diff
I decided to expose
Martin v. Löwis mar...@v.loewis.de added the comment:
This is not a problem. Tools/msi is being used with Python 2.5 only.
--
nosy: +loewis
resolution: - wont fix
status: open - closed
versions: -Python 3.1, Python 3.2
___
Python tracker
New submission from Ethan Furman et...@stoneleaf.us:
It currently states Note that nested scopes work only for reference and not
for assignment which will always write to the innermost scope.
This should be updated to read, e.g. Note that unless the new nonlocal keyword
is used nested scopes
Benjamin Peterson benja...@python.org added the comment:
Already fixed.
--
nosy: +benjamin.peterson
resolution: - out of date
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9121
Changes by Mark Dickinson dicki...@gmail.com:
--
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1749662
___
___
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Will think about this one for a while. Initial reaction is that the case isn't
common enough to care about, and that the 5 byte savings isn't worth the extra
code path.
By the same logic, allowing set() as an alternative
anatoly techtonik techto...@gmail.com added the comment:
That just proves that side menu is not very useful. When I need to jump to a
sibling paragraph I usually click the rightmost entry in top bar. It takes two
clicks to get there and one page reload instead of one.
Perhaps the ToC menu
New submission from Alexander Myodov amyo...@gmail.com:
Hello,
I am using Python 2.6.5 and Cython (to embed the Python interpreter) to create
a simple launcher.exe launcher which then imports and uses the remaining logic
from the other modules, conveniently stored in a single modules.zip file
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
The case in msg76028 are probably not pointing to a bug. If subclass' __init__
passes its args to the base class __init__ (as it probably should), pickling
works:
class E(Exception):
Extension with values, init
Casey McGinty casey.mcgi...@gmail.com added the comment:
I attached a simple script that reproduces the report issue. I hope it helps.
--
Added file: http://bugs.python.org/file17807/smtp_test.py
___
Python tracker rep...@bugs.python.org
R. David Murray rdmur...@bitdance.com added the comment:
No, it just proves that I don't use the side menu. I use google and the 'find'
function of my browser :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9106
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Ellipsis and NotImplemented are different from None because they are not
pickleable themselves. The None situation is more similar to that of say
module level functions:
def f(): pass
...
dumps(f) # works
Fred L. Drake, Jr. fdr...@acm.org added the comment:
Fred was a proponent of small pickle sizes in the past,
so I am adding him to the nosy list.
Thanks!
I am a proponent of small pickle sizes, in cases where it
matters. I'm not convinced this is such a case.
The case for a small pickle
Changes by Sridhar Ratnakumar sridh...@activestate.com:
--
nosy: +srid
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9075
___
___
Python-bugs-list
Senthil Kumaran orsent...@gmail.com added the comment:
This is already handled via namedtuple in the urlparse. All the parts of the
url are available by parsing.
--
resolution: - out of date
stage: unit test needed - committed/rejected
status: open - closed
Eric Huss e...@huss.org added the comment:
Alexander, the use case I was involved with was an RPC system which allowed
exceptions to propagate over the connection. In this case, you do not have
absolute control over which exceptions may be raised, or who wrote the code
that is raising the
anatoly techtonik techto...@gmail.com added the comment:
PHP site have a very convenient feature that if you enter
http://php.net/some_func - it automatically executes function lookup for you or
shows corresponding doc page, i.e. http://php.net/sort
--
anatoly techtonik techto...@gmail.com added the comment:
Senthil, please read the proposals more attentively. From the docs of urlparse
at http://docs.python.org/library/urlparse.html
The components are not broken up in smaller parts (for example, the network
location is a single string), and
New submission from Zooko O'Whielacronx zo...@zooko.com:
os.urandom() on VMS invokes OpenSSL's RAND_pseudo_bytes(). That is documented
on:
http://www.openssl.org/docs/crypto/RAND_bytes.html
as being predictable and therefore unsuitable for many cryptographic purposes.
This is inconsistent
Zooko O'Whielacronx zo...@zooko.com added the comment:
HACK Zooko-Ofsimplegeos-MacBook-Pro:~/playground/python/release27-trunk$ svn
diff
Index: Modules/posixmodule.c
===
--- Modules/posixmodule.c (revision 82382)
+++
Zooko O'Whielacronx zo...@zooko.com added the comment:
This issue is a security vulnerability.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9123
___
anatoly techtonik techto...@gmail.com added the comment:
Even though I think that crossplatform language should normalize underlying
platform behaviour, you've convinced me. Unneeded extra code execution decides.
I also found that in another scenario it is better to return wrapper for target
87 matches
Mail list logo