Łukasz Langa luk...@langa.pl added the comment:
The documentation should promote RawConfigParser, and note
SafeConfigParser and ConfigParser as remaining for backward
compatibility for existing software.
That is another way to go around this. Anyway, ConfigParser is the least
predictable
Daniel Urban urban.dani...@gmail.com added the comment:
Unless there is a reason I have missed, I would iterate through the
smaller set, which might even be empty or nearly so, rather than
either in particular.
You're right, here is a new patch. Pseudocode:
def isdisjoint(self, other):
Ronald Oussoren ronaldousso...@mac.com added the comment:
This issue only seems to be relevant for OSX, and then only for OSX releases
before 10.5, because in that release Apple made sure that the LANG variable and
simular LC_* ones specify a UTF-8 encoding and we're back at the common case
New submission from Kay Hayen kayha...@gmx.de:
Hello,
I have created tests that check the reference counting and found that the
following simple function leaks references in CPython:
def simpleFunction39():
class Parent( object ):
pass
I have attached a test that needs to be run
New submission from Darren Worrall d...@darrenworrall.co.uk:
In my checkout of py3k (r83123), test_getgroups in test_posix fails - the right
elements are returned but the ordering is different:
$ ./python -m test.regrtest test_posix
test_posix
test test_posix failed -- Traceback (most recent
New submission from Armin Ronacher armin.ronac...@active-4.com:
The following patch changes some parts of the public C API for const
correctness which would help C++ programmers.
The original patch was provided by neXyon on irc.freenode.net.
It does not produce any compiler warnings on GCC
Richard Jones richardjo...@optushome.com.au added the comment:
Committed in revision 83125.
--
assignee: - richard
resolution: - fixed
stage: - committed/rejected
status: open - closed
type: - feature request
___
Python tracker
New submission from Jörg Müller nex...@gmail.com:
Patch attached
--
components: Interpreter Core
files: patch.diff
keywords: patch
messages: 111437
nosy: neXyon
priority: normal
severity: normal
status: open
title: const char* for PyObject_CallMethod and PyObject_CallFunction
type:
Martin v. Löwis mar...@v.loewis.de added the comment:
Actually, in Python 2.x, string.letters *does* contain the letters based on the
locale. Just make sure to call locale.setlocale.
--
nosy: +loewis
___
Python tracker rep...@bugs.python.org
Jörg Müller nex...@gmail.com added the comment:
I've merged the patch with the changes from Armin in issue9368.
--
type: feature request - behavior
Added file: http://bugs.python.org/file18176/patch.diff
___
Python tracker rep...@bugs.python.org
Changes by Jörg Müller nex...@gmail.com:
Removed file: http://bugs.python.org/file18175/patch.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9369
___
Jörg Müller nex...@gmail.com added the comment:
Uhm, while I reported this Armin was faster than me :) However, I've merged our
patches in issue9369.
--
nosy: +neXyon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9368
Ronald Oussoren ronaldousso...@mac.com added the comment:
2.7: r83124
2.6: r83126
The fix is now in all active branches, and I therefore close the issue.
--
stage: patch review - committed/rejected
status: open - closed
___
Python tracker
Martin v. Löwis mar...@v.loewis.de added the comment:
Can somebody please point to a current version of the Apache documentation? The
link in msg106322 does not work anymore.
I'm tempted to close this as invalid: Apache is clearly violating the XML-RPC
specification, so the bug is theirs.
As
Changes by Ronald Oussoren ronaldousso...@mac.com:
--
assignee: - ronaldoussoren
components: +Macintosh
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7041
___
Martin v. Löwis mar...@v.loewis.de added the comment:
I just noticed that I only need to strip the comma from the URL.
So I now see it's not an Apache bug, but explicitly marked as an extension. So
I'm reclassifying this as a feature request. As a new feature, it can only go
into 3.2.
Ronald Oussoren ronaldousso...@mac.com added the comment:
We talked about this at the language summit at EuroPython 2010. We'll resolve
the installer issue by moving the 64-bit capable installer to Tk 8.5 (with a
minimal OSX version of 10.6).
The 32-bit installer will still use Tk 8.4
Darren Worrall d...@darrenworrall.co.uk added the comment:
After a quick chat with Ronald at the EP sprint he says the ordering didnt
matter, so here's a quick patch to check only for deltas.
--
keywords: +patch
Added file: http://bugs.python.org/file18177/py3k-issue9367.diff
Ronald Oussoren ronaldousso...@mac.com added the comment:
This issue is no longer valid, the current search order from setup.py:
def detect_tkinter_darwin(self, inc_dirs, lib_dirs):
# The _tkinter module, using frameworks. Since frameworks are quite
# different the UNIX
Martin v. Löwis mar...@v.loewis.de added the comment:
If an application uses .isalpha for a security-relevant check, this is a
security issue in the application, not in Python.
--
___
Python tracker rep...@bugs.python.org
Anthony Long antl...@gmail.com added the comment:
I disagree. It's expected that the function will return valid data. This
doesn't return valid data so isalpha() is compromised.
--
___
Python tracker rep...@bugs.python.org
Ronald Oussoren ronaldousso...@mac.com added the comment:
I agree with Martin that the security problem would be in the application, not
python itself.
Testing with isalpha is generally not the right thing to do anyway, it is much
better to restrict input to a know-good set of data, such as
New submission from Nick Coghlan ncogh...@gmail.com:
Brett updated the docs for the test package to (correctly) point out that it is
our internal testing package and isn't subject to the same stringent backwards
compatibility rules as the rest of the standard library.
A see also link pointing
Petras Zdanavičius petra...@gmail.com added the comment:
I have written a patch thats makes these strange error messages go away.
What actually I have done was something like this:
randint = _inst.randint
Was replaced with:
def randint(a, b):
return _inst.randint(a, b)
But I do not
Ronald Oussoren ronaldousso...@mac.com added the comment:
(changing subject to better tell what this issue is about)
--
title: subprocess module causing crash - Crash when importer an extension
after Py_Initialize, Py_Finalize and Py_Initialize
___
Ralph Corderoy ralph-pythonb...@inputplus.co.uk added the comment:
fileLineIter() is not a solution that allows this bug to be closed, no.
readline() needs modifying and if that means python-dev discussion then
that's what it needs. Things to consider include changing the record
separator as
Ronald Oussoren ronaldousso...@mac.com added the comment:
This issue was fixed in the repository a while back by disabling these tests on
64-bit systems.
As Ned notes the code uses APIs that aren't available for 64-bit processes.
--
status: open - closed
Changes by Éric Araujo mer...@netwok.org:
--
resolution: - duplicate
stage: patch review - committed/rejected
status: open - closed
superseder: - const char* for PyObject_CallMethod and PyObject_CallFunction
___
Python tracker
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +aronacher
stage: - commit review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9369
___
___
Mark Lawrence breamore...@yahoo.co.uk added the comment:
I assume that this is on *nix boxes, on Windows it's:-
quit
Use quit() or Ctrl-Z plus Return to exit
exit
Use exit() or Ctrl-Z plus Return to exit
--
nosy: +BreamoreBoy
___
Python tracker
Martin v. Löwis mar...@v.loewis.de added the comment:
It seems that everybody now agrees to close this issue as won't fix.
--
resolution: - wont fix
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8775
Martin v. Löwis mar...@v.loewis.de added the comment:
I disagree. It's expected that the function will return valid data. This
doesn't return valid data so isalpha() is compromised.
What is valid data? The function (isalpha) should return a boolean,
and it does. So the result is certainly
Mark Lawrence breamore...@yahoo.co.uk added the comment:
Can this be committed please. In msg110796 I over-emphasised the technical
aspects, the patch is actually against 2to3.
--
___
Python tracker rep...@bugs.python.org
Mark Smith mark.sm...@practicalpoetry.co.uk added the comment:
I have a patch that provides full documentation for pulldom, and adds sensible
docstrings to the pulldom module. I have unfortunately created the patch on the
py3k branch -- please let me know what I should do regarding porting
Éric Araujo mer...@netwok.org added the comment:
Minor nit: I suggest naming the fixer fix_hashlib, since the name fix_hash
could easily be understood as something fixing __hash__ (even if such a fix is
impossible for a machine to do).
This fix could also go into fix_imports, but it’s useful
Mark Lawrence breamore...@yahoo.co.uk added the comment:
msg110657 recommends close - wontfix. Does anybody want this kept open or can
it be closed?
--
status: open - pending
___
Python tracker rep...@bugs.python.org
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +ezio.melotti, haypo
status: pending - open
versions: +Python 3.2 -Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2927
___
Ronald Oussoren ronaldousso...@mac.com added the comment:
The attached patch makes sure that os.path.join(sys.prefix, 'lib') isn't added
to the link path when using a framework build.
This fixes the issue at hand in that I can then build a 3-way build of 2.7 when
the default 32-bit is already
Mark Lawrence breamore...@yahoo.co.uk added the comment:
Can we have the patch committed to 2.7 and 3.1 please.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3704
___
Mark Lawrence breamore...@yahoo.co.uk added the comment:
Hum, I think I spoke too soon. @Brian: @Tim: what do you think about this?
--
nosy: +brian.curtin, tim.golden
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4485
Ronald Oussoren ronaldousso...@mac.com added the comment:
The root cause of having the flags twice is that the Makefile explicitly sets
LDFLAGS in the environment before when running setup.py, and that distutils
appens the value of $(LDFLAGS) to $(LDSHARED) when LDFLAGS is set in the
Mark Lawrence breamore...@yahoo.co.uk added the comment:
In 2.7 and py3k test_subprocess has a class BaseTestCase which has a
assertStderrEqual method. These don't exist in 3.1. I believe that the py3k
code will need to be backported to 3.1. Can this be done on this issue, or do
we need a
Anthony Long antl...@gmail.com added the comment:
The locale is set incorrectly though - so it is not valid data. Valid data is
a-Z. nothing more nothing less, and the locale and the alphabet should not be
changed.
--
___
Python tracker
Ronald Oussoren ronaldousso...@mac.com added the comment:
I don't think the Tk framework that is used by Tkinter is actually localized,
but I don't know enough of Tcl/Tk to know for sure.
EasyDialogs isn't explicitly localized either, and I guess the system doesn't
do automatic localization
Eli Bendersky eli...@gmail.com added the comment:
I'm attaching a file with some unit tests for Lib/trace.py module in Python
2.7. Currently the unit tests check the API only, for line counting, func call
counting and function caller relationships, because these can be tested through
the API,
Ronald Oussoren ronaldousso...@mac.com added the comment:
Using the CF API to fetch the system encoding won't work:
Using PyObjC:
CFStringConvertEncodingToIANACharSetName(CFStringGetSystemEncoding())
u'macintosh'
There doesn't seem to be another way to extract the prefered encoding from the
Ronald Oussoren ronaldousso...@mac.com added the comment:
Ned: could you please check if the issue is present in Python 2.7?
I don't have access to machines that are capable of running OSX 10.3.
--
___
Python tracker rep...@bugs.python.org
Fred L. Drake, Jr. fdr...@acm.org added the comment:
We're in agreement; I was specifically adding weight to *not*
selecting the second optoin Łukasz Langa presented:
2. We deprecate ConfigParser in the code and in the documentation.
--
___
Python
Éric Araujo mer...@netwok.org added the comment:
Working off py3k is the thing to do. If the patch is trivial to apply to the
other branches, the committer will probably use svnmerge to do it, else it may
be useful to adapt your patch to 2.7. I’d recommend waiting for feedback before
doing
New submission from Mark Smith mark.sm...@practicalpoetry.co.uk:
I've been developing unit tests to increase the code coverage for pulldom, and
have discovered that comments and end_document do not appear to result in
events being obtained from the DOMEventStream.
I've attached a failing
New submission from Mark Smith mark.sm...@practicalpoetry.co.uk:
DOMEventStream implements __getitem__, but ignores the index/key that is passed
in and simply returns the next item from the stream. This is seriously
unexpected behaviour.
I don't believe this functionality can be sensibly
New submission from Mark Smith mark.sm...@practicalpoetry.co.uk:
pulldom has poor code coverage, so I am currently implementing thorough unit
tests for it.
--
components: XML
messages: 111476
nosy: mark.smith
priority: normal
severity: normal
status: open
title: pulldom has low code
Éric Araujo mer...@netwok.org added the comment:
You may want to keep existing functionality, this time in the proper method
(__iter__).
--
nosy: +merwok
stage: - unit test needed
type: - behavior
___
Python tracker rep...@bugs.python.org
Changes by Ronald Oussoren ronaldousso...@mac.com:
--
versions: +Python 3.3 -Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4199
___
___
Brian Curtin cur...@acm.org added the comment:
msg77014 could bring startup time down significantly so I'm -1 on that.
Overall I've never found difficulty in running scripts with the right version
so I don't have a strong enough opinion on any of it. I think it's probably
something which
Mark Smith mark.sm...@practicalpoetry.co.uk added the comment:
I should have mentioned: __iter__ is already implemented, and works as expected.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9372
Changes by Ronald Oussoren ronaldousso...@mac.com:
--
assignee: - ronaldoussoren
nosy: +ronaldoussoren
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9367
___
R. David Murray rdmur...@bitdance.com added the comment:
This is not a bug in Python. Your link implies you are building things from
scratch, so it is your responsibility to resolve the dependencies.
sqlite3 support is implemented via an extension module (compiled C code). That
extension
Ronald Oussoren ronaldousso...@mac.com added the comment:
Committed a fix in:
3.2: r83133
3.1: r83134
2.7: r83135
2.6: r83136
I ended up committing a slightly different patch than attached here, the test
now calls sorted to sort both lists before comparing, which IMO makes it
slightly
Changes by Mark Dickinson dicki...@gmail.com:
--
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9277
___
___
R. David Murray rdmur...@bitdance.com added the comment:
Except for the 2.6 backport, you could also have used assertItemsEqual, which
is a smart wrapper around the idiom you implemented.
--
nosy: +r.david.murray
status: pending - open
___
Python
Changes by R. David Murray rdmur...@bitdance.com:
--
resolution: accepted - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9367
___
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
I assume that this is on *nix boxes
It's a bit of a stretch to call OSX unix, but yes:
Laptop = a MacBook Air
If you have not seen one of these, the control key is marked control on its
keyboard.
--
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Now, as I look at it, the windows message is probably even worse. What is
plus? Is Ctrl-Z control *minus* z?
For a novice, you really have to say: press Ctrl and Z keys together and then
press Return or Enter key. Of
R. David Murray rdmur...@bitdance.com added the comment:
Ah, right. I was misled by examples from another ticket and did not verify.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9336
Éric Araujo mer...@netwok.org added the comment:
I tried looking at the doc to see if this was by design, and well, pulldom docs
:) So I looked at the code, same thing, and finally read the commit history. It
appears that pulldom is supposed to be DOM-compliant, so go ahead in adding
unit
Guido van Rossum gu...@python.org added the comment:
Hm. This seems an old bug, probably introduced when closures where first
introduced (2.1 ISTR, by Jeremy Hylton).
Class scopes *do* behave differently from function scopes; outside a nested
function, this should work:
x = 1
class
Guido van Rossum gu...@python.org added the comment:
I meant, of course,
assert C.x == 1
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9226
___
Bhargav bhar...@bluejeansnet.com added the comment:
What I do is not a possible solution, because some other machine might add
e:nil, what we need is XML namespace parsing.
Also I can't really use my solution, as it makes my client non-portable, I cant
move it from my dev machine to
Mark Lawrence breamore...@yahoo.co.uk added the comment:
@Art: @David: A lot of changes have been made to test_zipfile since the last
patch was produced. I'm unsure as to whether the patch could be applied to 2.7
as is, or it would be simpler to rework the patch for 2.7 and the py3k
Mark Lawrence breamore...@yahoo.co.uk added the comment:
The patch is small and easily applied, but no point me trying it as I've only a
Windows box. Also note that my earlier comment was incorrect as I misread the
original post.
--
___
Python
Mark Lawrence breamore...@yahoo.co.uk added the comment:
minidom.patch had the new file listed before the old, so I've uploaded
minidom.diff. The patch is tiny and looks clean. Tests have been repeated on
Windows against 2.7 and are fine, so I believe this can be committed.
--
Added
Mark Lawrence breamore...@yahoo.co.uk added the comment:
I've double checked this and still all tests pass before patching message.py.
Could somebody else please pick this one up, thanks.
--
___
Python tracker rep...@bugs.python.org
Mark Lawrence breamore...@yahoo.co.uk added the comment:
@Łukasz: I patched the unit test file only and ran it and all tests passed, I
assume that this behaviour is incorrect.
--
nosy: +BreamoreBoy
stage: - patch review
___
Python tracker
Mark Lawrence breamore...@yahoo.co.uk added the comment:
Tests failed after patching test file, all passed after patching the code on
Windows against 3.2. The patch looks simple and clean so I don't see why it
can't be committed. As this is a behaviour issue the code should also be
Łukasz Langa luk...@langa.pl added the comment:
Thanks, Mark. The tests should pass for both the old version and the patched
one.
The change in the code involves performance, not functionality. I didn't want
to set assertions that are time based so naturally the new test also runs on
the
Łukasz Langa luk...@langa.pl added the comment:
Thanks, Mark. Should I do the backporting or do you have some
technology/process for this?
I can do the backport as well if it doesn't require SVN commit access. I would
need some help because it would be my first backport :)
--
Mark Lawrence breamore...@yahoo.co.uk added the comment:
Łukasz, no problem. It would be my first backport too! :) I think that it's
best left to the committers as they've well used to doing things like this.
--
___
Python tracker
Mark Lawrence breamore...@yahoo.co.uk added the comment:
Łukasz in that case I think we should get this committed as the patch is small
and looks clean. I assume that this will be backported as 2.7 and 3.1 are
likely to be around for some years yet.
--
Mark Lawrence breamore...@yahoo.co.uk added the comment:
Łukasz please attach your patch and I'll run with it, while you're at it could
you also provide a unit test patch for #5412, thanks.
--
___
Python tracker rep...@bugs.python.org
Mark Lawrence breamore...@yahoo.co.uk added the comment:
Could somebody with an OS X system please try out the py3k patch, thanks.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1706039
David Watson bai...@users.sourceforge.net added the comment:
Unit tests were in the patch! However, none of the patches
applied any more, so I've updated them and also improved the
tests a bit. Again, I haven't tried them on Windows.
Unsetting a nonexistent variable isn't supposed to be an
Changes by David Watson bai...@users.sourceforge.net:
Added file: http://bugs.python.org/file18186/putenv-empty-2.x.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4926
___
Changes by David Watson bai...@users.sourceforge.net:
Added file: http://bugs.python.org/file18187/putenv-equals-3.x.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4926
___
Changes by David Watson bai...@users.sourceforge.net:
Added file: http://bugs.python.org/file18188/putenv-empty-3.x.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4926
___
Changes by David Watson bai...@users.sourceforge.net:
Added file: http://bugs.python.org/file18189/visibility-2.x.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4926
___
Changes by David Watson bai...@users.sourceforge.net:
Added file: http://bugs.python.org/file18190/visibility-3.x.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4926
___
R. David Murray rdmur...@bitdance.com added the comment:
Well, you could try applying the patch and see if it applies cleanly and passes
the tests. But it would be helpful to have it reworked for py3k, since we now
commit first to py3k and then backport to 2.7.
I have not reviewed the
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Hmm. Still no luck
$ ./python.exe -m pydoc -g
Server ready at: http://localhost:7464/
Segmentation fault
The Segmentation fault happens after I enter pydoc in the search window and
press the Search! button.
BTW,
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
OK, the crash is due to issue9319, but as far as I understand, the faulty code
is in the error handling branch, so there must be a bug in your code as well.
--
___
Python
Terry J. Reedy tjre...@udel.edu added the comment:
Thank you for the patch. I can now imagine using the module. Comments:
+ :synopsis: Iterative XML parsing with DOM nodes.
seem a bit too terse and confusing. Would
+ :synopsis: Iterative parsing of XML to event, DOM node pairs, with option
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
FWIW, I agree with Antoine. You cannot know in advance whether a
partial-subclass has semantics that need to be preserved when
flattening.
Raymond,
I have actually conceded this point to Antoine. See msg108980 above.
Terry J. Reedy tjre...@udel.edu added the comment:
Guido clarified:
Class scopes *do* behave differently from function scopes;
outside a nested function, this should work:
x = 1
class C(object):
x = x
assert C.x == 1
And I think it should work that way inside a function too.
I take
Ron Adam ron_a...@users.sourceforge.net added the comment:
Ok, on the ! marks.
The Segmentation fault exits python and isn't catchable as far as I know. It's
happens in the compiled tokenize.c file. The python side error detection
doesn't get a chance to catch it.
The problem is present
New submission from Nick Welch mackst...@gmail.com:
While the netloc/path parts of URLs are scheme-specific, and urlparse can be
forgiven for refusing to parse them for unknown schemes, the query and fragment
parts are standardized, and should be parsed for unrecognized schemes.
According to
Guido van Rossum gu...@python.org added the comment:
On Sat, Jul 24, 2010 at 3:21 PM, Terry J. Reedy rep...@bugs.python.org wrote:
Terry J. Reedy tjre...@udel.edu added the comment:
Guido clarified:
Class scopes *do* behave differently from function scopes;
outside a nested function, this
Martin v. Löwis mar...@v.loewis.de added the comment:
Adding it to 2.7 is really out of the question. Assuming somebody would
implement (which might not happen in the next three years or so), it can only
go into 3.x, so you'ld have to port your code to 3.x to use it.
--
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment:
I suggest to raise exception when target regular file exists:
try:
mkdir(name, mode)
except OSError as e:
if not (exist_ok and e.errno == errno.EEXIST and path.isdir(name)):
raise
--
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
title: os.mkdir() and os.makedirs() add a keyword argument to suppress File
exists exception. - os.makedirs(): Add a keyword argument to suppress File
exists exception
___
ipatrol ipatrol6...@yahoo.com added the comment:
Yeah, I'll say. I prefer bytearray to back-and-forth mapping with chr and ord.
I use it particularly as a mid-step in working with binary representations of
strings. Please backport these docs with changes reflecting 2.x's paradigms.
--
1 - 100 of 105 matches
Mail list logo