Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
But what if I want to pass a tuple through xmlrpc?
The function in the test case:
+def execute(server, methodname, *args):
+r = getattr(server, methodname)(args) # params become a tuple
+return r
looks
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
This fileLineIter function looks like a good recipe to me. Can we close the
issue then?
--
nosy: +amaury.forgeotdarc
resolution: - works for me
status: open - pending
___
Python tracker
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
I also like the idea; 3 remarks though:
- the patch introduces a new function that returns a PyObject*, but returns
NULL when the attribute is not found, and the caller should raise
AttributeError.
This convention is not standard
Changes by Brett Cannon br...@python.org:
--
nosy: -brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9012
___
___
Python-bugs-list
Changes by Brett Cannon br...@python.org:
--
nosy: -brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6975
___
___
Python-bugs-list
Ronald Oussoren ronaldousso...@mac.com added the comment:
The current behaviour on OSX for IDLE.app is to always open a shell window, and
open edit windows for any files that should be opened during launch.
IDLE.app does not open an empty edit window, and I agree that this is sane
behaviour.
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
The two example classes are used exactly the same way, and don't show the
differences between them. How about a simple change like:
Replace:
If the class defines
:meth:`next`, then :meth:`__iter__` can just return ``self``
with
It may
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
All patches seems already applied. Should we close this issue?
--
status: open - pending
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1578269
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Patch looks good to me.
(Some day the pprint module should grow some way to register repr for user
types, so we can stop adding special cases; but defaultdict() is a builtin)
--
nosy: +amaury.forgeotdarc
resolution: - accepted
Changes by Matthieu Labbé bugs.python@mattlabbe.com:
--
nosy: +matthieu.labbe
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5673
___
___
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
The patch should be amended for python3, then:
- PyType_Ready() should be used instead of ob_type = PyType_Type;
- The demo contains Option choisie : which should be translated :-)
- the call::
PyErr_SetString(PyExc_RuntimeError,
zenyatta j...@journey.sk added the comment:
I work in sidux and my Mercurial currently doesn't work. The python version
already contains the fix for this issue (revision 81637) and it crashes
Mercurial (authorization failed) whenever a command involves more than 5
requests to the repository.
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
test_xml_etree.py has some tests about bytes input (check_issue6233) but these
are only working cases. Tests with wrong encodings should be added.
--
nosy: +amaury.forgeotdarc
___
Python
Mads Kiilerich m...@kiilerich.com added the comment:
zenyatta: Which Mercurial version? We thought we had implemented a sufficiently
ugly workaround in Mercurial. Please file an issue in
http://mercurial.selenic.com/bts/ .
--
___
Python tracker
anatoly techtonik techto...@gmail.com added the comment:
I have to debug CGIHTTPServer test case that apparently uses threads, and I
expected to find at least some pointer about what exactly a thread in Python
is. I hope Python Manual is not only for system programmers. They do not need
the
Stefan Krah stefan-use...@bytereef.org added the comment:
I agree with Eric, Konstantin, Amaury and Georg. Closing for the third time.
--
nosy: +skrah
status: pending - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9320
Changes by Stefan Krah stefan-use...@bytereef.org:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9320
___
___
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
The extra space in Grammar was already removed in r82624.
The remaining part of the patch looks good to me.
The lambda thing is not important, if you get an error when trying to compile
the resulting st.
--
nosy:
Georg Brandl ge...@python.org added the comment:
Anatoly, I don't think it is a good idea to use signatures in tracker comments.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9320
___
Juan Javier jjdomingu...@gmail.com added the comment:
I've applied the enhancement to the three parsers, actually I've made the
change to RawconfigParser with a small change to ConfigParser.
I've also created some unit tests.
--
keywords: +patch
Added file:
Changes by Juan Javier jjdomingu...@gmail.com:
Added file: http://bugs.python.org/file18123/test_cfgparser.py.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6751
___
Paul Moore p.f.mo...@gmail.com added the comment:
I don't propose to raise a PEP myself. The issue with ABCs seems to me to be a
fundamental design issue, and I think it's better to leave raising any PEP, and
managing the subsequent discussion, to someone with a deeper understanding of,
and
Nick Coghlan ncogh...@gmail.com added the comment:
A recipe in the comments on a tracker item isn't enough reason to close the
RFE, no.
An entry on the cookbook with a pointer from the docs might be sufficient,
although I'm still not averse to the idea of an actual readrecords method (with
Antoine Pitrou pit...@free.fr added the comment:
Generic functions are a lesser-known paradigm than OO, and nowhere do common
Python documents (including the official docs) try to teach them. That means
the first public appearance of generic functions in the stdlib should really be
well
Ronald Oussoren ronaldousso...@mac.com added the comment:
Mark: maybe, why don't you test this?
--
assignee: - ronaldoussoren
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5120
___
Ray.Allen ysj@gmail.com added the comment:
Amaury:
Thanks for reviewing! I quite appreciate your ideas. I was not quite familiar
with python source code convention at that time. Here I worked out a new patch
based on your ideas.
Since py2.7 has released, this feature can only go to
zenyatta j...@journey.sk added the comment:
See http://mercurial.selenic.com/bts/issue2299
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8797
___
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Profiling only works on functions that actually return; maybe we could
add something about this fact in the documentation
--
nosy: +amaury.forgeotdarc
___
Python tracker
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Please rename sam to something readable, access for example.
And the reserved parameter should really go, at least not be documented.
--
nosy: +amaury.forgeotdarc
___
Python tracker
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment:
+1 on better names, -1 on removing the reserved parameter
The parameters of OpenKey mirror those of the underlying RegOpenKey call. If
we remove the reserved parameter, then:
1) Any code currently using the sam parameter
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
The proposed code may be useful sometimes, but is not generic enough for the
standard library. For example, the f() function can only take one argument,
when g() can accept any number.
Implementations of this kind are so easy to
Changes by Amaury Forgeot d'Arc amaur...@gmail.com:
--
resolution: - works for me
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1506122
___
Ray.Allen ysj@gmail.com added the comment:
I think it's a good idea adding a keyword argument to specify the separator of
readlines().
I believe most people can accept the universal meaning of line, which has
similar meaning of record, that is a chunk data, maybe from using line
Changes by Ray.Allen ysj@gmail.com:
--
nosy: +ysj.ray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1723038
___
___
Python-bugs-list mailing
Barry A. Warsaw ba...@python.org added the comment:
Updated patch.
--
Added file: http://bugs.python.org/file18125/diff.txt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9193
___
Matt Fleming mattjflem...@googlemail.com added the comment:
I'm not really tracking this anymore but i can certainly try to
recreate the issue sometime this week if required?
On 17 July 2010 14:37, Stefan Krah rep...@bugs.python.org wrote:
Stefan Krah stefan-use...@bytereef.org added the
Mark Lawrence breamore...@yahoo.co.uk added the comment:
The py3k stuff is fine on Windows but the 2.7 maintainance branch now fails.
1 items had failures:
1 of 6 in doctest_testfile.txt
***Test Failed*** 1 failures.
--
___
Python
Mark Lawrence breamore...@yahoo.co.uk added the comment:
Ran new unit test before and after patching subprocess on Windows Vista against
3.1 debug maintenance release, all ok apart from this at end of latter.
File test\test_subprocess.py, line 568, in test_encoded_stderr
Changes by Mark Lawrence breamore...@yahoo.co.uk:
--
assignee: georg.brandl - d...@python
nosy: +d...@python
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7579
___
Mark Lawrence breamore...@yahoo.co.uk added the comment:
@Antoine could you respond to msg97699, thanks.
--
nosy: +BreamoreBoy
versions: -Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7523
Changes by Mark Lawrence breamore...@yahoo.co.uk:
--
assignee: georg.brandl - d...@python
nosy: +d...@python
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7699
___
Antoine Pitrou pit...@free.fr added the comment:
@Antoine could you respond to msg97699, thanks.
Well my comments and the patch itself are outdated now that 2.7 is in bugfix
mode. The socket implementation in 3.2 is slightly different, which means the
patch should be updated (it isn't
Mark Lawrence breamore...@yahoo.co.uk added the comment:
Maksim could you please respond to the comments on Rietveld, thanks.
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5609
Mark Lawrence breamore...@yahoo.co.uk added the comment:
Can be closed unless someone can justify this change.
--
nosy: +BreamoreBoy
status: open - pending
versions: +Python 3.2 -Python 2.7
___
Python tracker rep...@bugs.python.org
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
The documentation should mention somewhere that timeout can be a float. For
example, as in time.sleep docstring:
sleep(seconds)
Delay execution for a given number of seconds. The argument may be
a
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
s/Note that a result Fraction/Note that as a result, Fraction/
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5673
Changes by Brian Curtin cur...@acm.org:
--
assignee: d...@python - brian.curtin
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7579
___
___
New submission from Sam Saint-Pettersen s.stpetter...@gmail.com:
Freeze tool can generate Makefile and C code for Python programs using the JSON
module. The code can be compiled fine, but when a program using the JSON module
is run, this is returned:
Traceback (most recent call last):
2
Douglas Alan darkwate...@gmail.com added the comment:
Personally, I think that this functionality should be built into Python's
readlines. That's where a typical person would expect it to be, and this is
something that is supported by most other scripting language I've used. E.g.,
awk has the
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Confirmed here:
python setup.py build_clib -b/some/dir returns
error: option -/ not recognized
All other files (build_ext.py, clean.py) have a '=' after these options names.
Patch is inlined:
Index: Lib/distutils/command/build_clib.py
Éric Araujo mer...@netwok.org added the comment:
Thanks for the report. It is indeed a stupid typo. Can someone produce a patch
against current py3k?
Confirmed in distutils2 too, I can fix it there.
--
components: +Distutils2
nosy: +merwok
resolution: - accepted
Mark Lawrence breamore...@yahoo.co.uk added the comment:
@Michael: do you intend putting in a new patch for review as hinted at in
msg98071?
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7742
New submission from Brian Curtin cur...@acm.org:
A recent sysconfig test which should have been skipped on Windows (now fixed)
exposed a bug in the assertIn/assertNotIn methods. If the container you are
testing doesn't support membership testing or iteration, such as None value
when a
Mark Dickinson dicki...@gmail.com added the comment:
There was one place that needed to be changed in ast.c: namely, the check to
make sure that there are keyword-only arguments following a bare star.
Here's a new patch, that fixes that issue, updates the grammar in the ast.c
comment to
Daniel Urban urban.dani...@gmail.com added the comment:
Sorry, the previous patch has a reference leak. I'm attaching the fixed patch
as issue9213a.diff (I also added a few tests with really big ranges).
--
Added file: http://bugs.python.org/file18128/issue9213a.diff
Changes by Mark Dickinson dicki...@gmail.com:
Added file: http://bugs.python.org/file18129/trailing_commas2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9232
___
Changes by Mark Dickinson dicki...@gmail.com:
Removed file: http://bugs.python.org/file18127/trailing_commas2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9232
___
Anders Kaseorg ande...@mit.edu added the comment:
I don’t think that small change is good enough, if it is still the case that
the only provided example is the dangerous one.
It would be easy to clarify the differences between the classes:
rl = test.ReverseList('spam')
[c for c in rl]
['m',
Antoine Pitrou pit...@free.fr added the comment:
At least equally useful would be the mention that __iter__ can be a generator,
eliminating the need for intermediate objects:
class C:
... def __iter__(self):
... yield 1
... yield 2
...
list(C())
[1, 2]
--
nosy:
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Why do you call this dangerous? because the object can be iterated only once?
But reversed() does the same thing.
And all iterators objects must also implement the __iter__ method that return
themselves, otherwise they cannot be used
New submission from Alexander Belopolsky belopol...@users.sourceforge.net:
Unlike sys.settrace, sys.setprofile is not described as CPython implementation
detail in Doc/library/sys.rst.
--
assignee: d...@python
components: Documentation
messages: 99
nosy: belopolsky, d...@python
Daniel Urban urban.dani...@gmail.com added the comment:
According to PEP 7 [1], all declarations must be at the top of a block. So you
probably should move the char *mod_name_str and PyModuleObject *module
declarations to the beginning of the function's body.
[1]
Anders Kaseorg ande...@mit.edu added the comment:
Antoine: That’s true.
Amaury: See my original bug description (“This is reasonable advice for writing
an iterator class, but terrible advice for writing a container class…”), and my
other comments.
There is nothing wrong with explaining how
Antoine Pitrou pit...@free.fr added the comment:
Personally, I think that this functionality should be built into
Python's readlines. That's where a typical person would expect it to
be, and this is something that is supported by most other scripting
language I've used.
Adding it to
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Is anyone interested in reviewing this patch before it is committed? Since
there are no user-visible changes and the only non-trivial change simply adds
new tests, I think this can go in. Any refinements can be done
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
It looks like OP has lost interest and I don't have time to move it forward.
--
assignee: belopolsky -
priority: normal - low
stage: needs patch - patch review
___
Python
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
--
assignee: belopolsky -
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1738
___
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Mark,
Do you agree that conditions mentioned in msg109329 and msg109340 are never
triggered?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9005
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
This looks like something that can become part of PEP 3151.
--
assignee: belopolsky -
nosy: -Alexander.Belopolsky
stage: - patch review
___
Python tracker
Changes by Robert Cronk cron...@gmail.com:
--
nosy: +rcronk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1652
___
___
Python-bugs-list mailing
New submission from Brian Curtin cur...@acm.org:
#1578269 introduced os.symlink support for Windows 6.0, but it requires the
SeCreateSymbolicLinkPrivilege privilege to be enabled for the calling user,
which is not always the case. Documentation needs to be added on the specific
details here,
Brian Curtin cur...@acm.org added the comment:
Closed. I created #9332 for the remaining side issues.
--
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1578269
___
Stefan Krah stefan-use...@bytereef.org added the comment:
I'm not sure this should be changed:
1) Why is .cshrc sourced? It should only get sourced for a login
shell.
2) If the user sets a PATH that excludes the compiler, then `which`
will also not find the compiler on other
Changes by Eric Smith e...@trueblade.com:
--
nosy: +eric.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9332
___
___
Python-bugs-list mailing
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
[datetime.c] needs to be renamed in Modules/Setup.dist, and most
importantly in PC/config.c
Fixed in issue7989d.diff, thanks.
In order to commit this patch I need an SVN advise. I would like to copy
datetime.py from
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
s/strictly necessary/not strictly necessary/
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7989
___
Ryan Freckleton ryan.freckle...@gmail.com added the comment:
An elaborate PEP for generic functions already exists, PEP 3124 [
http://www.python.org/dev/peps/pep-3124/]. Also note the reasons for
deferment. I'd be interested in creating a more limited generic function
implementation based on
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
Removed file: http://bugs.python.org/file17913/issue9206a.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7989
___
New submission from Brian Curtin cur...@acm.org:
As it currently stands, the possibility exists that some users might not have
the SeCreateSymbolicLinkPrivilege privilege enabled (depending on security
settings, corporate policy, etc). There should be some method of enabling that
privilege
Stefan Krah stefan-use...@bytereef.org added the comment:
This is now being addressed in issue 5673, so closing this as a duplicate.
astrand, please let me know if I'm wrong about this.
--
nosy: +skrah
resolution: - duplicate
stage: - committed/rejected
status: open - closed
Changes by Stefan Krah stefan-use...@bytereef.org:
--
nosy: +gd2shoe, ragnar
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5673
___
___
Peter Donis peterdo...@alum.mit.edu added the comment:
I don't normally run Windows, so it will take a little time
for me to set up a Windows build environment. However, I've
made a number of other improvements as a result of further testing
on Linux, and I've uploaded the improved patch as
Michael Foord mich...@voidspace.org.uk added the comment:
No, assertIn is for testing for membership in a container. If you pass it
something that isn't a container then it indicates an error in the test (or
misuse of the assert!).
--
___
Python
Brian Curtin cur...@acm.org added the comment:
I knew there was a reason I was thinking my whole idea was slightly
ridiculous...duh.
--
resolution: - rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Peter Donis peterdo...@alum.mit.edu added the comment:
Uploaded revised diff against py3k branch, doctest-fixes6-py3k.diff,
with same improvements as doctest-fixes6.diff. Tests still pass on
my Linux box.
--
Added file: http://bugs.python.org/file18134/doctest-fixes6-py3k.diff
Stefan Krah stefan-use...@bytereef.org added the comment:
This thread contains a feature request for __int128_t support in icc and
a workaround:
http://software.intel.com/en-us/forums/showthread.php?t=56652
--
nosy: +skrah
___
Python tracker
Nick Coghlan ncogh...@gmail.com added the comment:
On Fri, Jul 23, 2010 at 3:54 AM, Antoine Pitrou rep...@bugs.python.org wrote:
Antoine Pitrou pit...@free.fr added the comment:
Personally, I think that this functionality should be built into
Python's readlines. That's where a typical
New submission from Anders Kaseorg ande...@mit.edu:
Porting the a2x program to argparse from the now-deprecated optparse subtly
breaks it when certain options are passed:
$ a2x --asciidoc-opts --safe gitcli.txt
$ ./a2x.argparse --asciidoc-opts --safe gitcli.txt
usage: a2x [-h] [--version] [-a
Jason R. Coombs jar...@jaraco.com added the comment:
I think we should consider simply calling this function before running
os.symlink. It would be nice if the API were as compatible as possible on both
unix and Windows.
My worry is that where code that works on unix systems is simply:
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Should the change also apply to Windows?
on Windows, there is no configure phase, but the file PC/pyconfig.h is
maintained manually.
--
nosy: +amaury.forgeotdarc
___
Python tracker
Changes by Eric Smith e...@trueblade.com:
--
nosy: +eric.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9334
___
___
Python-bugs-list mailing
R. David Murray rdmur...@bitdance.com added the comment:
It seems like reasonable request to me to be able to allow such arguments,
especially since optparse did and we want people to be able to use argparse as
a replacement. Though in general I find argparse's default behavior more
useful.
Brian Curtin cur...@acm.org added the comment:
That's a way better idea. It would also cut down some of the code in
Lib/test/symlink_support.py. I'll take a whack at that and see how it looks.
--
___
Python tracker rep...@bugs.python.org
Eric Smith e...@trueblade.com added the comment:
Wouldn't you have to set this, then restore it? This would then open a non
thread-safe race condition, assuming this is a per-process setting, not a
thread-local setting.
Not that I'm necessarily opposed, but it's an issue.
--
Nelson Elhage nelh...@nelhage.com added the comment:
For what it's worth, I have trouble seeing this as anything but a bug. I
understand the motivation of trying to catch user errors, but in doing so,
you're breaking with the behavior of every other option parsing library that
I'm aware of,
Anders Kaseorg ande...@mit.edu added the comment:
Though in general I find argparse's default behavior more useful.
I’m not sure I understand. Why is it useful for an option parsing library to
heuristically decide, by default, that I didn’t actually want to pass in the
valid option that I
Fred L. Drake, Jr. fdr...@acm.org added the comment:
Patch looks good, but needs a test.
--
keywords: +easy
nosy: +fdrake
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9173
___
Changes by Greg Brockman g...@ksplice.com:
--
nosy: +gdb
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9334
___
___
Python-bugs-list mailing list
R. David Murray rdmur...@bitdance.com added the comment:
Well, even if you call it a bug, it would be an argparse design bug, and design
bug fixes are feature requests from a procedural point of view.
--
___
Python tracker rep...@bugs.python.org
Sam Saint-Pettersen s.stpetter...@gmail.com added the comment:
Problem occurs with frozen programs if:
from encodings import hex_codec
...is not explicitly written in the script.
--
status: open - pending
___
Python tracker rep...@bugs.python.org
1 - 100 of 119 matches
Mail list logo