Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
--
assignee: - belopolsky
nosy: +belopolsky
versions: +Python 3.2 -Python 2.6, Python 3.0
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5907
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
--
assignee: - belopolsky
dependencies: +No obvious and correct way to get the time zone offset
nosy: +belopolsky
___
Python tracker rep...@bugs.python.org
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
Removed file: http://bugs.python.org/file13373/unnamed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1520662
___
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
%O is used by POSIX spec to indicate alternative locale format.
Gnu date uses %:z
%:z+hh:mm numeric timezone (e.g., -04:00)
%::z +hh:mm:ss numeric time zone (e.g., -04:00:00) %:::z numeric
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Mark, reassigning this to you for commit review.
--
assignee: belopolsky - mark.dickinson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6280
Georg Brandl ge...@python.org added the comment:
Five comments:
* I would list them all in one directive, like this:
.. data:: FOO
BAR
BAZ
which makes the display more compact.
* There is no description in that directive. Best move part of the
description above them
Georg Brandl ge...@python.org added the comment:
Hmm, I thought the Doc/README covered this?
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8904
___
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
--
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7463
___
Georg Brandl ge...@python.org added the comment:
Fixed in 2.7 r81933, 2.6 r81934.
--
nosy: +georg.brandl
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8960
Éric Araujo mer...@netwok.org added the comment:
Thanks for your report and your ideas for Python :)
Some remarks:
1) New features have to target 3.2; 2.6 is the current stable version (only
security and documentation fixes) and 2.7 is to be released really soon (end of
the 2.x line);
2)
Éric Araujo mer...@netwok.org added the comment:
I can’t reproduce with current svn checkout.
--
nosy: +merwok
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8980
___
Mark Dickinson dicki...@gmail.com added the comment:
Yes, I agree that _struct.__version__ can die. Removed in r81937.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8981
Changes by Éric Araujo mer...@netwok.org:
--
assignee: anthonybaxter - tarek
nosy: +merwok, tarek
versions: +Python 3.2 -Python 2.7, Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1492704
Éric Araujo mer...@netwok.org added the comment:
Is this bug still relevant?
--
assignee: - tarek
nosy: +merwok, tarek
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1076515
___
Tal Einat talei...@users.sourceforge.net added the comment:
Apparently so. Those instructions are thorough and to the point, just what I
was looking for.
Adding a mention of this somewhere obvious, such as the links I mentioned
earlier, would be very helpful (this would have save me 30
Mark Dickinson dicki...@gmail.com added the comment:
py3k patch committed (by Alexander) in r81895. Closing this; I would ideally
like to see this change go into trunk too, but it's not essential and we're too
close to the 2.7 release.
--
resolution: accepted - fixed
status: open -
Éric Araujo mer...@netwok.org added the comment:
Confirmed in trunk (2.7rc2), py3k (3.2), irrelevant for distutils2. Is it too
late for 2.7?
--
nosy: +merwok
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2236
Georg Brandl ge...@python.org added the comment:
Agreed. Added a building section to Documenting Python in r81393, will port
to the other branches.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
Lars Gustäbel l...@gustaebel.de added the comment:
If you pass an explicit mode, the error message is more or less what you want:
tarfile.open(uga.tgz, mode=r:gz)
[...]
tarfile.CompressionError: gzip module is not available
The way mode=r detects which compression format is used is to open
Christian Boos cb...@neuf.fr added the comment:
Hello Vinay,
I recently installed Python 2.6.5, and I see this buglet is also present there.
When I reported the issue, I said 2.6 worked and IIRC it must have been 2.6 or
2.6.1.
I don't know if it's worth to backport the fix for 2.6.6, but
Éric Araujo mer...@netwok.org added the comment:
Only security fixes and documentation fixes are allowed to go into stable
branches.
--
nosy: +merwok
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7470
Jean-Paul Calderone exar...@twistedmatrix.com added the comment:
Thanks for reporting this issue. Can you attach a patch which adds a unit test
covering this behavior and fixing the quoting rules? It would be very helpful
in resolving this ticket. If implementing the whole thing is too much
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment:
You would have to install docutils.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8980
___
Changes by Éric Araujo mer...@netwok.org:
--
keywords: -easy
nosy: +merwok
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8572
___
___
Éric Araujo mer...@netwok.org added the comment:
After converting docutils through 2to3 *sigh* and making it visible to 3.2, I
get only one failure: NameError: global name 'RawInputs' is not defined
The DistutilsSetupError (“The docutils package is needed.”) also happens with
2.7, although
Éric Araujo mer...@netwok.org added the comment:
Is this still relevant for 3.2?
--
nosy: +merwok
versions: +Python 3.3 -Python 2.6, Python 3.0
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3075
Changes by Éric Araujo mer...@netwok.org:
--
versions: +Python 3.2 -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3075
___
___
Changes by Éric Araujo mer...@netwok.org:
--
assignee: georg.brandl - d...@python
nosy: +d...@python
versions: +Python 3.2 -Python 3.0
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue459007
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment:
'python3.2 setup.py build' automatically uses 2to3. You should use docutils
trunk. docutils-0.6 has many bugs in support for Python 3.
I have docutils installed (using Portage, Gentoo's package manager) for Python
Nick Coghlan ncogh...@gmail.com added the comment:
Grr, in doing the Py3k forward port I found the hack based on the -c entry
that I remembered (I had mentioned it *right there* in a comment in main.c, so
I don't know how I missed it when first updating 2.7 - I suspect I got lost in
the ifdef
Éric Araujo mer...@netwok.org added the comment:
Since I already had docutils for my system 2.6 version, I just copied it
all and converted it for 3.2. I prefer not to use software that’s not
available through my system package manager, but that’s hardly relevant
here :)
So, if the io import is
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
stage: - unit test needed
versions: +Python 2.7 -Python 2.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8972
___
Changes by Éric Araujo mer...@netwok.org:
--
keywords: +easy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8572
___
___
Python-bugs-list mailing
Changes by Shashwat Anand anand.shash...@gmail.com:
--
nosy: +l0nwlf
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8572
___
___
Python-bugs-list
New submission from R. David Murray rdmur...@bitdance.com:
I wanted to find out if Namespace supported lookup by subscripting
(args['someopt']), but the docs are silent on what Namespace is. (The answer,
by the way, appears to be no; there is a feature request for this in issue
8979).
Nick Coghlan ncogh...@gmail.com added the comment:
And done for 3.2 in r81944 (that checkin included a correction to the docs
example which I backported to 2.7 in r81945)
--
status: pending - closed
___
Python tracker rep...@bugs.python.org
Mark Dickinson dicki...@gmail.com added the comment:
Here's a patch. Alexander, do you want to check it for sanity?
--
keywords: +patch
Added file: http://bugs.python.org/file17642/issue8973.patch
___
Python tracker rep...@bugs.python.org
Mark Dickinson dicki...@gmail.com added the comment:
N.B. The patch doesn't fix the missing struct.Struct documentation issue; I'll
look at that separately.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8973
Changes by Mark Dickinson dicki...@gmail.com:
Added file: http://bugs.python.org/file17643/issue8973.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8973
___
Changes by Mark Dickinson dicki...@gmail.com:
Removed file: http://bugs.python.org/file17642/issue8973.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8973
___
Mark Dickinson dicki...@gmail.com added the comment:
The docstrings need to be rewrapped to 72 characters; I'll do this once the
wording is settled.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8973
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
calcsize() still does not have signature in docstring.
A nit: maybe follow calcsize() lead and say format string fmt rather than
just fmt.
One more __doc__ mention: in Struct docstring,
| __init__(...)
|
Mark Dickinson dicki...@gmail.com added the comment:
r81947 fixes the missing struct.Struct entry in struct.help. (pydoc was
relying on the inspect module to correctly guess the module for struct.Struct,
and inspect was getting it wrong. Adding __all__ to the struct module saves
inspect
Mark Dickinson dicki...@gmail.com added the comment:
I also accidentally included the docstring changes in r81947; those were
reverted in r81948.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8973
New submission from Alexander Belopolsky belopol...@users.sourceforge.net:
Inspired by issue issue8973, I did
$ grep -in see.*\.__doc__ Modules/*.c
Surprisingly, there were not as many results as I feared.
As I explained in the referenced issue, See name.__doc__, while technically
correct,
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
A couple more:
$ grep -in see.*\.__doc__ Lib/*.py
Lib/doctest.py:1782:See doctest.__doc__ for an overview.
Lib/inspect.py:162:See isfunction.__doc__ for attributes listing.
an a really problematic
Mark Dickinson dicki...@gmail.com added the comment:
Committed patch (with additional changes suggested by Alexander) in r81949.
Only the __init__ doc issue remains.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8973
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
See issue #8983 for the the __init__ doc discussion since it is not specific to
the struct module.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8973
Demur Rumed junkm...@hotmail.com added the comment:
I've modified the patch to be less aggressive, as suggested by Nick at
http://mail.python.org/pipermail/python-ideas/2010-June/007428.html
As an aside, runtests.sh should have executable permissions
--
Added file:
Mark Dickinson dicki...@gmail.com added the comment:
Apart from the pydoc __init__ issue, the Struct class documentation should
probably be expanded a bit. At the moment, it's just:
PyDoc_STRVAR(s__doc__, Compiled struct object);
Alexander, interested in producing a patch?
--
Georg Brandl ge...@python.org added the comment:
I agree, help(obj) is the better advice. Would you prepare a patch?
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8983
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
I have made my mind on subclassing timezone issue. I believe subclassing
should not be allowed and here is the reason:
The new datetime.timezone class is a very specific implementation of tzinfo
interface. It
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Will do.
--
assignee: d...@python - belopolsky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8983
___
Mark Dickinson dicki...@gmail.com added the comment:
I agree it seems fine to disallow subclassing of timezone. (And if we decide,
in the light of new information, that that was wrong, then it's easy to allow
subclassing later; harder to disallow it.)
+1 for 'UTC±HH:MM' for both tzname and
Mark Dickinson dicki...@gmail.com added the comment:
As an aside, runtests.sh should have executable permissions.
Doesn't it already? On my system (without having ever messed with any
permissions as far as I can recall), I have:
newton:py3k dickinsm$ ls -l runtests.sh
-rwxr-xr-x 1
shypike shyp...@sabnzbd.org added the comment:
Added patch file for subprocess.py and test_subprocess.py.
--
keywords: +patch
Added file: http://bugs.python.org/file17645/list2cmdline_ampersand_fix.patch
___
Python tracker rep...@bugs.python.org
Mark Dickinson dicki...@gmail.com added the comment:
Here's a patch.
--
keywords: +patch
Added file: http://bugs.python.org/file17646/issue7261.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7261
Terry J. Reedy tjre...@udel.edu added the comment:
If you think of this as this as a bug fix, it could go into 2.7.1. If you think
of it as an ambiguity elimination that should only go into a new version, fine
with me. My main concern is getting 3.2 as clear, clear, and consistent as
Changes by Mark Dickinson dicki...@gmail.com:
--
stage: needs patch - commit review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7261
___
___
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
This is borderline enough that I am not comfortable making a call. If anyone
speaks in support of backporting I'll do it. For 2.7 or 2.7.1.
--
status: closed - pending
___
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
+1 for 'UTC±HH:MM' for both tzname and __str__, too.
It looks like I subconsciently allocated enough characters for this in the
string buffer, so now this is a single character change. I'll do it with other
changes (if
Antoine Pitrou pit...@free.fr added the comment:
Testing the patch under a Windows XP Qemu virtual machine gives the following
error. Works fine under 64-bit Linux.
==
ERROR: testGetaddrinfo
Mark Dickinson dicki...@gmail.com added the comment:
I don't think it's a good idea to make a change like this in a bugfix release,
since it could break existing code (though admittedly code that probably isn't
doing anything useful).
It's not a huge thing: both the risk and the gain from
Jean-Paul Calderone exar...@twistedmatrix.com added the comment:
Thanks.
I'm not sure this is a correct change. And in fact, I would say that the
current quoting of | is also incorrect.
and | (and ^ and perhaps several others) have special meaning to cmd.exe.
list2cmdline is documented as
Changes by Jean-Paul Calderone exar...@twistedmatrix.com:
--
components: +Library (Lib)
stage: unit test needed -
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8972
___
Changes by Brian Curtin cur...@acm.org:
--
nosy: +brian.curtin
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8972
___
___
Python-bugs-list mailing
Jean-Paul Calderone exar...@twistedmatrix.com added the comment:
http://www.autohotkey.net/~deleyd/parameters/parameters.htm#WINCRULES is a
helpful reference, by the way.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8972
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Attaching issue8983.diff patch. I am a bit unsure about __init__ docstring
change:
1. Are cases when help(type(x)) differs from help(x) important enough to
distinguish in docstring?
2. Do we need a default docstring
Mark Dickinson dicki...@gmail.com added the comment:
I've added sizes to the table, reordered some of the sections, and made a
couple of other tweaks (like renaming the 'Objects' section to 'Classes') in
r81957 (trunk) and r81955-81956 (py3k).
I'll backport these changes to release26-maint
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Attaching issue5094f.diff which implements 'UTC±HH:MM' and adds unit tests for
more error cases.
--
Added file: http://bugs.python.org/file17648/issue5094f.diff
___
Python
Giampaolo Rodola' g.rod...@gmail.com added the comment:
Does that mean has_ipv6() is broken maybe?
I've just tested it against a Windows XP sp3 without IPv6 installed
(socket.has_ipv6 returns True thought) and it doesn't fail.
--
___
Python tracker
Mark Dickinson dicki...@gmail.com added the comment:
Merged to maintenance branches in r81959 (release26-maint) and r81960
(release31-maint). Closing.
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
versions: +Python 2.7, Python 3.1, Python 3.2
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
How does issue8973-Struct.diff look?
--
Added file: http://bugs.python.org/file17649/issue8973-Struct.diff
___
Python tracker rep...@bugs.python.org
Mark Dickinson dicki...@gmail.com added the comment:
Looks fine. I'd probably call the argument 'fmt' rather than 'format', for
consistency. Please commit, with or without the 'format' - 'fmt' change, as
you choose.
--
___
Python tracker
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Committed in r81961. Yes, I used format for consistency with the manual,
but on the second thought consistency within help() is more important.
--
___
Python tracker
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
--
resolution: - accepted
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8973
Éric Araujo mer...@netwok.org added the comment:
1. For old-style class instances, both help(i) and help(type(i)) give the help
for the instance type, which is highly unhelpful IMO. Otherwise it seems than
both C class instances and regular Python new-style class instances give the
class doc
New submission from Sworddragon sworddrag...@aol.com:
Python 3.1.2 hasn't any arguments except the file name in sys.argv[0]. For
example: build.py test
sys.argv[1] will be empty. I tried even the first example from the
documentation 15.4 (optparse) but the filename is None. In Python 2.6.5 all
New submission from Germán L. Osella Massa gose...@gmail.com:
The str.format() method allows index lookup on an object that supports
__getitem__(). However, negative indexes are not supported.
Examples (using Python 2.6.5):
{0[0]}.format([0, 1, 2])
'0'
{0[-1]}.format([0, 1, 2])
Traceback
Mark Dickinson dicki...@gmail.com added the comment:
It's not entirely clear to me what issue you're reporting here: could you
provide a short example script that exhibits the problem, and list the exact
steps necessary to reproduce, along with actual and expected results?
--
nosy:
Mark Dickinson dicki...@gmail.com added the comment:
The behaviour is by design (I think), though perhaps the error messages could
be improved.
Are you asking for negative indices and extra space to be accepted? In that
case this should be a feature request rather than a bug report.
Steven Bethard steven.beth...@gmail.com added the comment:
Given that the one obvious way of using dict-style syntax given a Python object
is to call vars(), I thing adding a __getitem__ is probably a bad idea.
--
___
Python tracker
Steven Bethard steven.beth...@gmail.com added the comment:
That's right, it doesn't support subscripting. The docs are silent on what
namespace is mainly because I don't want to commit to anything other than an
object with attributes. But that could be made clearer in the docs.
--
Sworddragon sworddrag...@aol.com added the comment:
Examplescript test.py:
import sys
print(sys.argv[1])
Call this script now with an argument, for exmaple: test.py 1234
I expect to see the string 1234 in the console but Python 3 says IndexError:
list index out of range. With Python 2.6.5 I
Bryan Ward bwa...@gmail.com added the comment:
Thanks for your help and I apologize for the unnecessary ticket. I was
unfamiliar with vars() which seems to accomplish what I wanted.
--
status: open - closed
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
Don’t hesitate to propose future ideas to the python-ideas mailing list
http://mail.python.org/mailman/listinfo/python-ideas
--
resolution: - rejected
stage: - committed/rejected
___
Python tracker
Éric Araujo mer...@netwok.org added the comment:
FYI, the version field is used to note versions where the bug will be fixed,
not versions where it’s found. New features and bug fixes go to the dev branch
(3.2), security and documentation fixes go to the stable branches (2.6 and
3.1). (2.7 is
Éric Araujo mer...@netwok.org added the comment:
Can’t reproduce here:
$ python3.1 -c import sys; print(sys.argv[1]) 1234
1234
$ python3.1 --version
Python 3.1.2
--
components: +Interpreter Core -Library (Lib)
nosy: +merwok
___
Python tracker
Mark Dickinson dicki...@gmail.com added the comment:
Hmm. I don't see any difference between the two here (OS X 10.6). What
platform are you on, and where did your copy of Python 3.1.2 come from?
newton:~ dickinsm$ cat test.py
import sys
print(sys.argv[1])
newton:~ dickinsm$ python3.1
Sworddragon sworddrag...@aol.com added the comment:
I'm using Windows XP Professional SP3. I downloaded Python 3.1.2 from this
site. Even Python 3.0.1 hasn't worked.
--
components: +Library (Lib) -Interpreter Core
___
Python tracker
Éric Araujo mer...@netwok.org added the comment:
3.0 should not be used and does not get fixes.
Can you try downloading Python again and testing?
P.S. please do not change the component; Lib means “Python files under Lib/ in
the source checkout”, but sys is a module built by the interpreter
Sworddragon sworddrag...@aol.com added the comment:
I have already installed Python 3.1.2 a second time. I have selected during the
installation that the files shall be compiled into bytecode.
--
components: +Library (Lib) -Interpreter Core
___
Eric Smith e...@trueblade.com added the comment:
get_integer uses the narrowest possible definition for integer indexes, in
order to pass all other strings to mappings.
'{0[ 0 ]} {0[-1]}'.format({' 0 ': 'foo', '-1': 'bar'})
'foo bar'
Remember, it has to guess what type of lookup to do based
Sworddragon sworddrag...@aol.com added the comment:
assoc .py
.py=Python.File
I tried this now with Ubuntu and Python 3.1.2 and all works fine. But under
Windows XP it doesn't work.
--
___
Python tracker rep...@bugs.python.org
Mark Dickinson dicki...@gmail.com added the comment:
Okay, thanks. What does
ftype Python.File
give?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8984
___
Sworddragon sworddrag...@aol.com added the comment:
ftype Python.File
Python.File=E:\Python31\python.exe %1 %*
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8984
___
Mark Dickinson dicki...@gmail.com added the comment:
I've just found issue #7936, which looks like the same problem. I'm going to
close this issue as a duplicate of that one; further discussion should be
moved there.
--
resolution: - duplicate
status: open - closed
superseder: -
Mark Dickinson dicki...@gmail.com added the comment:
Closed issue 8984 as a duplicate of this; merging nosy lists.
Tom, did you ever find a solution to this problem?
--
nosy: +Sworddragon, loewis, mark.dickinson, merwok
___
Python tracker
Mark Dickinson dicki...@gmail.com added the comment:
Here's a link to a similar discussion about Perl on Windows:
http://community.activestate.com/forum-topic/problem-passing-arguments
--
___
Python tracker rep...@bugs.python.org
shypike shyp...@sabnzbd.org added the comment:
A work-around could be that the caller puts double quotes around the individual
elements of the sequence that need it.
However, this won't work because list2cmdline doesn't handle backslash quoting
properly. An element like r'foo' is translated to
1 - 100 of 109 matches
Mail list logo