Steven Bethard steven.beth...@gmail.com added the comment:
Yes, definitely `vars` deserves some description and an example in the
documentation. This isn't the first time this question has come up. =)
--
___
Python tracker rep...@bugs.python.org
Steven Bethard steven.beth...@gmail.com added the comment:
Yeah, I agree it's not ideal, though note that basic unix commands have trouble
with arguments staring with dashes:
$ cd -links-/
-bash: cd: -l: invalid option
cd: usage: cd [-L|-P] [dir]
If you're working with a file on a filesystem,
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
nosy: +brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10971
___
___
New submission from July Tikhonov july.t...@gmail.com:
july@julynote:~/test ls -R
.:
c.py subdir
./subdir:
a.py b.py
july@julynote:~/test python3
Python 3.2rc2+ (py3k, Feb 6 2011, 13:06:04)
[GCC 4.5.0 20100604 [gcc-4_5-branch revision 160292]] on linux2
Type help, copyright, credits or
July Tikhonov july.t...@gmail.com added the comment:
Patch added.
--
Added file:
http://bugs.python.org/file20697/compileall.compile_dir.optimize.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11132
Daniel Urban urban.dani...@gmail.com added the comment:
In the abc.abstractclassmethod
example(http://docs.python.org/dev/py3k/whatsnew/3.2.html#abc), the methods
probably should use cls as the name of the first parameter, not self, because
they are classmethods.
--
nosy: +durban
Stefan Krah stefan-use...@bytereef.org added the comment:
EXTRA_CFLAGS were removed in r38848. Is it necessary to configure
OPT, BASECFLAGS and EXTRA_CFLAGS via the environment? I think it
might be sufficient to take CFLAGS from the Makefile and append
the environment CFLAGS.
Chris, would the
Éric Araujo mer...@netwok.org added the comment:
Thanks for volunteering. I will review and apply when the py3k branch is
unfrozen.
I'll write a docs and script patch for this next week...
Note that I proposed to patch the docs only.
--
assignee: tarek - eric.araujo
Éric Araujo mer...@netwok.org added the comment:
BTW, it may be useful to point people to http://pypi.python.org/pypi/pypi2rpm,
which contains an updated command, bdist_rpm2.
--
___
Python tracker rep...@bugs.python.org
Daniel Urban urban.dani...@gmail.com added the comment:
In the shutil example
(http://docs.python.org/dev/py3k/whatsnew/3.2.html#shutil) the function
argument of shutil.register_archive_format is a string, but according to
Éric Araujo mer...@netwok.org added the comment:
Documenting “--extra-args=--foo” or “--extra-args -- --foo” (untested, but
should work) seems good.
--
nosy: +eric.araujo
stage: unit test needed - needs patch
versions: +Python 2.7, Python 3.1, Python 3.2
Éric Araujo mer...@netwok.org added the comment:
Patch looks good.
--
keywords: +needs review
nosy: +eric.araujo, georg.brandl, r.david.murray
stage: - patch review
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
FWIW, I just tested svnmerging the revision, the patch applied with minor merge
conflicts and the test suite passes.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10042
Éric Araujo mer...@netwok.org added the comment:
Welcome to Python 3.2! This is the online help utility.
which could be changed to
Welcome to Python help utility
Agreed. I assume this dates back to a time where “online help” meant available
on this computer, not on some global network.
Terry J. Reedy tjre...@udel.edu added the comment:
Georg Eric, I believe this simple patch is correct, and should go in 3.2.
Westley, thanks for the patch. Numbers are right-aligned because that is the
traditional default.
The committer should add Westley Martinez to misc/ACKS
--
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10971
___
___
Python-bugs-list mailing
Chris Lambacher ch...@kateandchris.net added the comment:
I am not convinced that the minimal patch would work for my original issue. I
wanted to be able to override the -march option which shows up in OPT on
Fedora. I was cross-compiling to a target architecture that does not support
the
Changes by yeswanth swamiyeswa...@yahoo.com:
Removed file: http://bugs.python.org/file20686/pydoc.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9364
___
Changes by yeswanth swamiyeswa...@yahoo.com:
Added file: http://bugs.python.org/file20699/pydoc.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9364
___
yeswanth swamiyeswa...@yahoo.com added the comment:
Completely agreed with you on having Welcome to python 3.2 help!.. made the
changes. Uploaded site.py as suggested by you . I will try to create the patch
for the links , but i am not sure how to .Could use some help if you can
provide me
Eric Smith e...@trueblade.com added the comment:
-- won't work. Traditionally, this has been used to separate optional
arguments from positional arguments. Continuing the cd example, that's what
would let you cd into a directory whose name starts with a hyphen:
$ cd -links-/
-bash: cd: -l:
Nick Coghlan ncogh...@gmail.com added the comment:
My fix for the issues with reloading of the _ssl module meant that a couple of
temporary modules weren't getting cleared out of sys.modules properly, thus
confusing the second and later runs of affected tests.
Attached patch adds explicit
Nick Coghlan ncogh...@gmail.com added the comment:
Helps to add the patch rather than the whole file...
--
Added file: http://bugs.python.org/file20702/issue10971_temp_module_cleanup
___
Python tracker rep...@bugs.python.org
Changes by Nick Coghlan ncogh...@gmail.com:
Removed file: http://bugs.python.org/file20701/test_zipimport_support.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10971
___
Antoine Pitrou pit...@free.fr added the comment:
I am not convinced that the minimal patch would work for my original
issue. I wanted to be able to override the -march option which shows
up in OPT on Fedora. I was cross-compiling to a target architecture
that does not support the -march
Éric Araujo mer...@netwok.org added the comment:
See http://docs.python.org/dev/documenting/ (see also
http://docs.python.org/devguide/patch for process guidelines).
Note about site.diff:
-Define the builtin 'help'.
-This is a wrapper around pydoc.help (with a twist).
+Class used
Changes by Éric Araujo mer...@netwok.org:
--
assignee: docs@python - eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9364
___
___
Changes by yeswanth swamiyeswa...@yahoo.com:
Removed file: http://bugs.python.org/file20700/site.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9364
___
Changes by yeswanth swamiyeswa...@yahoo.com:
Added file: http://bugs.python.org/file20703/site.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9364
___
New submission from Daniel Urban urban.dani...@gmail.com:
The documentation of getattr_static says:
The only known case that can cause getattr_static to trigger code execution,
and cause it to return incorrect results (or even break), is where a class uses
__slots__ and provides a __dict__
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment:
Thanks for spending your free time, almost alone in such a widespread area like
this.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6
Éric Araujo mer...@netwok.org added the comment:
Or to Doc/ACKS.txt, which I’ve recently discovered.
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8691
___
Mark Dickinson dicki...@gmail.com added the comment:
Nice catch! Please could you test the attached patch (against py3k)?
I'll apply it after 3.2 is out. The fix should also go into the 2.7
maintenance branch, I think.
--
assignee: - mark.dickinson
keywords: +patch
versions:
Changes by Éric Araujo mer...@netwok.org:
--
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue940286
___
___
Python-bugs-list
Anders Kaseorg ande...@mit.edu added the comment:
There are some problems that ‘=’ can’t solve, such as options with nargs ≥ 2.
optparse has no trouble with this:
parser = optparse.OptionParser()
parser.add_option('-a', nargs=2)
parser.parse_args(['-a', '-first', '-second'])
(Values at
Eric Smith e...@trueblade.com added the comment:
Good point, I hadn't thought of that. Maybe ArgumentParser needs a don't try
to be so helpful, parse like optparse option. Which is what Steven suggested
earlier, I believe.
I'd take a crack at this if there's general consensus on that
Michael Foord mich...@voidspace.org.uk added the comment:
The fix is to use dict methods rather than accessing members through the
instance. It will have to wait until 3.2 is out now though.
--
___
Python tracker rep...@bugs.python.org
Changes by Michael Foord mich...@voidspace.org.uk:
--
assignee: - michael.foord
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11133
___
___
Éric Araujo mer...@netwok.org added the comment:
Hm, my patch removes too much. The part that was mistakenly added by me is the
command-line interface doc, but I also removed other parts for things noted
with versionadded: 3.2. Those indications are wrong: They were noted added in
2.7
New submission from Martin v. Löwis mar...@v.loewis.de:
Three slots in type objects are missing in PEP 384. This patch adds them to the
ABI.
--
files: typeslots.diff
keywords: patch
messages: 128075
nosy: georg.brandl, loewis
priority: release blocker
severity: normal
status: open
Anders Kaseorg ande...@mit.edu added the comment:
That would be a good first step.
I continue to advocate making that mode the default, because it’s consistent
with how every other command line program works[1], and backwards compatible
with the current argparse behavior.
As far as
New submission from Martin v. Löwis mar...@v.loewis.de:
There are currently two ways to specify a type doc string in PyType_FromSpec;
either through the doc field (which is not actually processed), or through
Py_tp_doc (which works correctly).
The original concern for adding doc into the
Eric Smith e...@trueblade.com added the comment:
I'd also like to see this as the default. After all, presumably we'd like
Python scripts to work like all other command line programs, and I too am
unaware of any other option parsing library that works the way argparse does.
But changing
Antoine Pitrou pit...@free.fr added the comment:
Given the recent multiple additions of forgotten things in the ABI, wouldn't
it be better to mark the ABI experimental so that things can get ironed out in
3.2.1? (especially with user feedback after the release)
--
nosy: +pitrou
Eric Smith e...@trueblade.com added the comment:
I don't see the need for a parameter to support different sets of entities.
Just supporting the ones from HTML 5 seems like the right thing.
--
nosy: +eric.smith
___
Python tracker
Éric Araujo mer...@netwok.org added the comment:
To make my intent explicit: an updated mapping could generate references
invalid for 4.01.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3
Eric Smith e...@trueblade.com added the comment:
Ah. I hadn't thought of generating them, only parsing them. In that case, then
yes, it's an issue for generation.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3
Martin v. Löwis mar...@v.loewis.de added the comment:
Given the recent multiple additions of forgotten things in the ABI,
wouldn't it be better to mark the ABI experimental so that things can
get ironed out in 3.2.1? (especially with user feedback after the
release)
I don't know what would
Antoine Pitrou pit...@free.fr added the comment:
Given the recent multiple additions of forgotten things in the ABI,
wouldn't it be better to mark the ABI experimental so that things can
get ironed out in 3.2.1? (especially with user feedback after the
release)
I don't know what would
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
My understanding is that Martin can add, but not subtract. Martin, is that
correct? At this point, I'm not sure we know that the limited API is
sufficient.
--
nosy: +rhettinger
Éric Araujo mer...@netwok.org added the comment:
It looks like the doc snippets are actually new in 3.1, so we should not remove
them but just fix the versionadded.
The change I wrongly added is the part about command-line use. That can go.
--
___
Changes by Éric Araujo mer...@netwok.org:
Removed file: http://bugs.python.org/file20657/fix-11090.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11090
___
Martin v. Löwis mar...@v.loewis.de added the comment:
No, the point of the proposal is to allow you to make further changes in
response to user feedback. I assume you can't add things anymore once
the ABI is declared stable. Can you?
Adding things would be possible, although undesirable.
Martin v. Löwis mar...@v.loewis.de added the comment:
My understanding is that Martin can add, but not subtract. Martin,
is that correct?
Correct (see the elaboration I just sent).
At this point, I'm not sure we know that the
limited API is sufficient.
It's certainly not possible to
Giampaolo Rodola' g.rod...@gmail.com added the comment:
You're right, that line is certainly wrong as it should compare for bytes but
the trailer data still doesn't get appended.
Do you have a BSD box in order to figure out what's wrong?
--
___
Steven Bethard steven.beth...@gmail.com added the comment:
I don't think there's any sense in un-deprecating optparse because:
(1) It's only deprecated in the documentation - there is absolutely nothing in
the code to keep you from continuing to use it, and there are no plans to
remove it
Éric Araujo mer...@netwok.org added the comment:
s/2.4/3.4/
s/2.5/3.5/
obviously :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9334
___
___
New submission from John jh45...@gmail.com:
windows vista
Python 3.2 rc2
situation:
connected to gmail with IMAP4_SSL, did stuff, and finally IMAP4_SSL.close()
IMAP4_SSL.logout()
IMAP4_SSL.shutdown()
shutdown() gets this error:
socket.error: [Errno 10038] An operation was attempted on
Antoine Pitrou pit...@free.fr added the comment:
IMAP4_SSL.close()
IMAP4_SSL.logout()
IMAP4_SSL.shutdown()
logout() already calls shutdown() for you and closes the socket, so you don't
have to do it yourself.
--
nosy: +pitrou
resolution: - invalid
status: open - pending
Changes by David Benjamin david...@mit.edu:
--
nosy: +davidben
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9334
___
___
Python-bugs-list mailing
Anders Kaseorg ande...@mit.edu added the comment:
(1) It's only deprecated in the documentation
Which is why I suggested un-deprecating it in the documentation. (I want to
avoid encouraging programmers to switch away from optparse until this bug is
fixed.)
# proposed behavior
parser =
Ned Deily n...@acm.org added the comment:
In the paragraph on OS X builds, suggest changing OS X to Mac OS X.
Also, instead of the direct recommendation to install ActiveState Tcl, a
recommendation that could very well change over the lifetime of the 3.2 release
and the released copies of
New submission from John jh45...@gmail.com:
Attempting IMAP4_SSL.shutdown() after IMAP4_SSL.logout() throws an error
because the socket is already closed. (I cannot test with plain IMAP4.)
Please add appropriate notice, perhaps under IMAP4.shutdown().
Perhaps something like If you do not use
Westley Martínez aniko...@gmail.com added the comment:
Perhaps we should say something regarding that shutdown, and similar methods,
must be called after open.
--
nosy: +anikom15
___
Python tracker rep...@bugs.python.org
Ross Lagerwall rosslagerw...@gmail.com added the comment:
With no changes, I get:
==
FAIL: test_trailers (test.test_os.TestSendfile)
--
Traceback (most recent
New submission from Urago Keisuke br...@resourcez.org:
Nesting arguments and more complex examples
at http://docs.python.org/library/string.html#format-examples
Below example code is no errors:
for align, text in zip('^', ['left', 'center', 'right']):
... '{0:{align}{fill}16}'.format(text,
Rob Lourens roblour...@gmail.com added the comment:
I agree with R. David Murray's suggestions, and have implemented it in the
attached patch.
--
keywords: +patch
nosy: +rob.lourens
Added file: http://bugs.python.org/file20707/errors.patch
___
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Ned, thanks for the Mac correction. I prefer to leave the Tcl/Tk
recommendation in place for several reasons:
* for right now, it is needed to get tkinter to work and if we're too indirect
about the fix, no one will find it
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Victor, I added more imports and fixed the ones that were mismatched with the
sample code. I've left a few out in a couple places where I thought the
imports got in the way of the narrative.
--
Ned Deily n...@acm.org added the comment:
I understand your point and it is not a huge issue but let me make an attempt
to expand on the rationale.
* for right now, it is needed to get tkinter to work and if we're too
indirect about the fix, no one will find it and their install won't work.
Steven Bethard steven.beth...@gmail.com added the comment:
@Éric: yes, thanks!
@Anders: The reason the current implementation gives you the behavior you don't
want is that the first thing it does is scan the args list for things that look
like flags (based on prefix_chars). It assumes that
71 matches
Mail list logo