John Posner added the comment:
Georg, your change (r79587) makes this the main definition:
generator
A function which returns an iterator.
I'm concerned that this definition does not fit well with the occurrence of
"generator object" in the following:
Python 2.6.5 (
John Posner added the comment:
Fair enough, Georg. Case closed.
--
___
Python tracker
<http://bugs.python.org/issue8012>
___
___
Python-bugs-list mailin
John Ehresman added the comment:
I'm trying to port an existing C extension to py3k and find myself wanting
something like PyUnicode_AsString so I don't need to introduce other objects to
do memory management. PyUnicode_AsString is equivalent to PyArg_Parse w/ a 's'
New submission from John Machin :
According to the following references, the bytes 80, A0, FD, FE, and FF are not
defined in cp932:
http://msdn.microsoft.com/en-au/goglobal/cc305152.aspx
http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP932.TXT
http://demo.icu-project.org/icu-bin
John Machin added the comment:
Thanks, Martin. Issue closed as far as I'm concerned.
--
___
Python tracker
<http://bugs.python.org/issue8308>
___
___
Pytho
John Marter added the comment:
You may want to add another space before the comment, otherwise it will be the
only one not aligned with the others.
--
___
Python tracker
<http://bugs.python.org/issue4
John Smith added the comment:
What's in a name? :p
Done, anyway.
_
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1706039>
_
___
Python-bugs-
John Stowers added the comment:
Hello,
I recently tried this in combination with jhbuild, cross compiling with
mingw (to built some python gtk extensions). I tried you patch against
the 2.5.1 version and recieved the following error:
checking for /dev/ptmx... yes
checking for /dev/ptc... no
John Stowers added the comment:
Sorry, I should have clarified further in my last comment. Looking over
the configure script I don't recognize the %zd test as one that could be
circumvented by supplying a config.cache file with the appropriate values.
How do I escape this limit
John Stowers added the comment:
I created config.cache and populated it with
ac_cv_printf_zd_format=yes
before executing the following
./configure --prefix /home/john/jhbuild/win32/build/
--build=i686-pc-linux-gnuaout --host=i586-pc-mingw32msvc
--target=i586-pc-mingw32msvc --disable-docs
Changes by John Nagle:
--
components: Library (Lib)
nosy: nagle
severity: normal
status: open
title: urlparse.urlparse misparses URLs with query but no path
type: behavior
versions: Python 2.4, Python 2.5
__
Tracker <[EMAIL PROTECTED]>
New submission from John Nagle:
urlparse.urlparse will mis-parse URLs which have a "/" after a "?".
>>
>> sa1 = 'http://example.com?blahblah=/foo'
>> sa2 = 'http://example.com?blahblah=foo'
>> print urlparse.urlparse(sa1)
>>
John Nagle added the comment:
I tried downloading the latest rev of urlparse.py (59480) and it flunked
its own unit test, "urlparse.test()" Two test cases fail. So I don't
want to try to fix the module until the last people to change it fix
their unit test problems.
The fix I
John Lenton added the comment:
This was fixed in r57389 by georg.brandl by changing the replacement
string '' to ' ' (turning the option into a non-option).
Steps to reproduce this on Ubuntu Feisty, before that revision, were:
$ mkdir banana
$ sudo mv /usr/include/sqlite3.h
John Lenton added the comment:
Attached patch adds two things: an 'end' argument to find, and an
'rfind' method. This includes minimal tests for rfind, but as I actually
refactored find and rfind into a single method, tests covering find also
cover most of rfind :). I added
John Lenton added the comment:
New patch, with small change after being reviewed by amk. Still against
revision 60082.
Added file: http://bugs.python.org/file9223/mmap.rfind.patch
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/is
John Lenton added the comment:
Ran the regression test with this patch, all ok (on Ubuntu Gutsy).
Attached diff is the same, with the addition of the NEWS entry.
--
nosy: +Chipaca
Added file: http://bugs.python.org/file9443/mmap3.diff
__
Tracker <[EM
John Lenton added the comment:
Copied documentation from the py3k branch for the functions mentioned in
the .h's (those were: PyLong_FromSsize_t, PyLong_FromSize_t,
PyLong_AsSsize_t, PyUnicode_FromStringAndSize, PyUnicode_FromString,
PyUnicode_FromFormat, and PyUnicode_FromFormatV). Test
John Lenton added the comment:
This is the same as the previous patch, but I added the "versionadded"
notation in the rst, and the info in refcounts.dat to get the "return
value" info in the docs.
Added file: http://bugs.python.org/
John Krukoff <[EMAIL PROTECTED]> added the comment:
I was just bit by this today in converting a proxy class from old style
to new style. The official documentation was of no help in discoverting
that neither __getattr__ or __getattribute__ are used to look up magic
attribute names. Ev
New submission from John Buckley <[EMAIL PROTECTED]>:
Cannot import macerrors due to non-ascii characters appearing in comments.
Patch attached.
--
components: Library (Lib), Macintosh
files: macerrors.patch
keywords: patch
messages: 64783
nosy: thecube
severity: normal
status
John Krukoff <[EMAIL PROTECTED]> added the comment:
I assume when you say that the documentation has already been updated,
you mean something other than what's shown at:
http://docs.python.org/dev/reference/datamodel.html#new-style-and-
classic-classes
or
http://docs.python.
New submission from John Millikin <[EMAIL PROTECTED]>:
According to
<http://docs.python.org/dev/3.0/reference/lexical_analysis.html#id9>,
raw strings with \u and \U escape sequences should have these sequences
parsed as usual. However, they are currently escaped.
>>&g
New submission from John Millikin <[EMAIL PROTECTED]>:
Sphinx seems to need tabs expanded in reST, but the autodoc extension
doesn't do so. The following patch is very small, and fixes the issue on
my system.
Oddly, I can reproduce this on a Linux system with doctools and docutils
Changes by John Millikin <[EMAIL PROTECTED]>:
--
type: -> behavior
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2545>
__
___
Python-b
New submission from John Jackson <[EMAIL PROTECTED]>:
In email.message.py there are two import errors:
line 128 from email.Generator import Generator
should be
from email.generator import Generator
line 784 from email.Iterators import walk
should be
from email.iterators impor
John Jackson <[EMAIL PROTECTED]> added the comment:
Yes. If the code is used to build a standalone application with py2app
on the Mac, here's the end of the stack trace:
File "controller.pyo", line 17, in
File "readMail.pyo", line 15, in
File "mailbo
John Jackson <[EMAIL PROTECTED]> added the comment:
I'll put one together.
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2622>
__
___
Python
John Jackson <[EMAIL PROTECTED]> added the comment:
Attached is a sample code that reproduces the problem under python 2.5 on
Mac OS 10.4.11. See file for instructions on how to reproduce the issue.
Added file: http://bugs.python.org/file10030/test_mail
New submission from John Millikin <[EMAIL PROTECTED]>:
Using the following class layout:
class A (object):
def a (self):
"A.a"
pass
class B (A):
def b (self):
"B.b"
pass
If sphinx.ext.
John Krukoff <[EMAIL PROTECTED]> added the comment:
I've been following the py3k maliing list disscussion for this issue,
and wanted to add a note about the proposed solution described here:
http://mail.python.org/pipermail/python-3000/2008-April/013004.html
The reason I think this
Changes by John Levon <[EMAIL PROTECTED]>:
--
nosy: +movement
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4434>
___
___
Python
John Levon <[EMAIL PROTECTED]> added the comment:
Besides, .so files should always declare their dependencies.
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.pytho
John Levon <[EMAIL PROTECTED]> added the comment:
If Ubuntu wants to deliver a static libpython, it also needs to deliver
static versions of the Python modules, or accept that they're not usable
from a static libpython.
It makes no sense at all to mix libpython.a with these .so fil
John Smith <[EMAIL PROTECTED]> added the comment:
Hi, when will this patch be checkedin?
--
versions: +Python 2.5.3, Python 2.6, Python 3.0
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.o
New submission from John Weldon <[EMAIL PROTECTED]>:
Traceback (most recent call last):
File "", line 1, in
File "c:\Python30\lib\site.py", line 427, in __call__
return pydoc.help(*args, **kwds)
File "c:\Python30\lib\pydoc.py", line 1675, in __
New submission from John Marter <[EMAIL PROTECTED]>:
On http://docs.python.org/3.0/tutorial/datastructures.html#sets there is
the following section in the section on sets
>>> basket = {'apple', 'orange', 'apple', 'pear', 'orange',
John Marter <[EMAIL PROTECTED]> added the comment:
Also, I see banana is misspelled on the first output line (line 3).
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.pytho
New submission from John Machin <[EMAIL PROTECTED]>:
Problem in the newline handling in io.py, class
IncrementalNewlineDecoder, method decode. It reads text files in 128-
byte chunks. Converting CR LF to \n requires special case handling
when '\r' is detected at the end of the
New submission from John Stracke <[EMAIL PROTECTED]>:
I downloaded the source to Python 3.0 onto my Nokia N810, an ARM-based
Linux machine. The native gcc is 3.4.4 (upgrading might be possible,
but would certainly be a pain). I was able to build only by switching
from -O3 to -O2; -O3 ca
John Stracke <[EMAIL PROTECTED]> added the comment:
The OPT env var is good. Maybe it could be documented in configure --help?
And, yeah, recognizing the platform is messy. I'll dig and see whether
gcc3 does the same thing on x86, though; if so, some logic to say "us
John Stracke <[EMAIL PROTECTED]> added the comment:
OK, nope, gcc 3.4.6 on x86-64 builds fine. So, please, just have
configure --help mention OPT.
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.pytho
John Stracke <[EMAIL PROTECTED]> added the comment:
You may be right; I haven't used autoconf before, so I don't know.
But I'll give it a shot.
___
Python tracker <[EMAIL PROTECTED]>
<ht
New submission from John Machin :
These methods are parallel to str.join, seem to work as expected, and
have "help" entries. However there is nothing in the Library Reference
Manual about them.
>>> help(bytearray.join)
Help on method_descriptor:
join(...)
B.joi
Changes by John Shue :
--
nosy: +johnshue
___
Python tracker
<http://bugs.python.org/issue4566>
___
___
Python-bugs-list mailing list
Unsubscribe:
John Machin added the comment:
Terry, you are right. I missed that. My report was based on looking via
the index and finding only "(str method)", no "(byte[sarray] method)".
___
Python tracker
<http://bu
John Smith added the comment:
Sorry for inconvenience caused with the patch.
I should've got more reviews before asking it checked in.
I verified eof2.diff-applied-python gets "Bus error"
and Scott Dial's fileobject.diff fixes this.
(Test was on 9.6.0 Darwin
New submission from John Machin :
File foo3.py is [cut down (orig 87Kb)] output of 2to3 conversion tool
and (coincidentally) is still valid 2.x syntax. There are no syntax
errors reported by any of the following:
\python26\python -c "import foo3"
\python26\python foo3.py
John Machin added the comment:
A clue:
>>> print(ascii(b'\xa0\x93\x94\xb7'.decode('cp1252')))
'\xa0\u201c\u201d\xb7'
Could be that it only happens where there's a cp1252 character that's
not in latin1; see files x93.py and x94.py (have problem)
Changes by John Machin :
Removed file: http://bugs.python.org/file12445/py3encbug.zip
___
Python tracker
<http://bugs.python.org/issue4742>
___
___
Python-bugs-list mailin
New submission from John Machin :
In a package, "import local1, local2" is not fixed. Here's some real
live 2to3 output showing the problem and the workaround:
import ExcelFormulaParser, ExcelFormulaLexer
-import ExcelFormulaParser
-import ExcelFormulaLexer
+from . import Exc
New submission from John Robinson :
When using the socket module and performing a socket.send('hello
world'), the error returned is:
Traceback (most recent call last):
File "C:\Python30\testclient.py", line 12, in
s.send('Hello world') #
John Machin added the comment:
TWO POINTS:
(1) I am not very concerned about chars like \x9d which are not valid in
the declared encoding; I am more concerned with chars like \x93 and \x94
which *ARE* valid in the declared encoding. Please ensure that these
cases are included in tests.
(2
John Machin added the comment:
(1) what am I supposed to infer from "Yup"?? That all of that \x9d stuff
was a mistake?
(2)
+def tearDown(self):
+pyc_file = os.path.join(os.path.dirname(__file__), 'cp1252.pyc')
+if os.path.exists(pyc_file):
+
Changes by John Machin :
--
nosy: +sjmachin
___
Python tracker
<http://bugs.python.org/issue4626>
___
___
Python-bugs-list mailing list
Unsubscribe:
John Levon added the comment:
This issue also affects Solaris (and in particular xend is broken). Is
there a reason bamby's fix isn't yet applied?
--
nosy: +movement
title: signals in thread problem -> signals not always delivered to main
thread, since other threads ha
John Levon added the comment:
Yes, Python guarantees the behaviour under discussion:
http://docs.python.org/library/signal.html
___
Python tracker
<http://bugs.python.org/issue1
John Machin added the comment:
Martin:"""Considering this note, the simple titlecase of U+01C5 *is*
U+01C4: the titlecase value is omitted, hence it is the same as
uppercase, hence it is U+01C4."""
Perhaps we are looking at different files; in the Unicode 5.1
Uni
Changes by John Levon :
--
nosy: +movement
___
Python tracker
<http://bugs.python.org/issue4111>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from John Machin :
Docs say """The default encoding is platform dependent""" but don't say
how to find out what that is, or how it is determined. On my Windows XP
SP3 setup, the default is cp1252, but the best/only guess at finding out
witho
John Ehresman added the comment:
Commenting because this was brought up on python-dev -- I'd like this,
primarily for the string method & itertools optimization. It's ugly,
but it would be better than writing C code. The alternative might be to
somehow optimize trivial functi
John Levon added the comment:
I haven't seen "shorter than expected" message before, sounds like a Mac
OS X specific thing.
As for never getting any probes out, this is where it gets fun.
Debugging this is very tricky indeed: it involves you dropping into the
kernel debugger and
New submission from John DeLuca :
In Interpreted Mode, when enter long strings, such as ofile.write ("
this is a long string...") or print ("this is a long string..."), the
keyboard entry is delayed - sometimes for 20+ seconds. If one completes
the string (typing bl
John DeLuca added the comment:
(pyJohn)... additional information since this is a performance issue:
Lenovo s10; Win XP; 1GB; Intel Atom 1.66 Mhz
___
Python tracker
<http://bugs.python.org/issue5
Changes by John Levon :
--
nosy: +movement
___
Python tracker
<http://bugs.python.org/issue4609>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by John Levon :
--
nosy: +movement
___
Python tracker
<http://bugs.python.org/issue3928>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by John Levon :
--
nosy: +movement
___
Python tracker
<http://bugs.python.org/issue3265>
___
___
Python-bugs-list mailing list
Unsubscribe:
John Levon added the comment:
Just came across this bug.
_XOPEN_SOURCE_EXTENDED isn't the only sticking point here: neither XPG3
nor XPG4 have C99 either: _XOPEN_SOURCE (at least with a value below
600) is definitely wrong. To quote the header:
"346 * It is invalid to compile an
John Levon added the comment:
Yep, this is an annoying misfeature of Sun Studio. There is no way to
affect this behaviour. There is a Sun Studio bug filed for this
(-errwarn should affect this behaviour, but it doesn't).
Here's some example m4 that libvirt uses to check this cas
Changes by John Levon :
--
nosy: +movement
___
Python tracker
<http://bugs.python.org/issue976613>
___
___
Python-bugs-list mailing list
Unsubscribe:
John Levon added the comment:
Python should define *only* __EXTENSIONS__, not the others, as Zooko
already mentioned, for the reasons he mentioned. I'm not sure how you
got a different impression from what I or he said.
___
Python tracker
John Levon added the comment:
Zooko, the patches are available here:
http://src.opensolaris.org/source/xref/jds/spec-files/trunk/patches/
> Then you were arguing that defining _XOPEN_SOURCE is wrong if the value
Actually, I was saying that below that value simply won't work
New submission from John K. :
map(f, itr) is supposed to be the lazy way to do [f(val) for val in itr].
However, when unpacking and zipping a list of maps, I get a different result
from when evaluating eagerly. More precisely:
Python 3.10.2 | packaged by conda-forge | (main, Mar 8 2022, 15
New submission from John Hagen :
multiprocessing.set_start_method() has a `force` argument that is not
documented:
https://docs.python.org/3.10/library/multiprocessing.html#multiprocessing.set_start_method
--
assignee: docs@python
components: Documentation
messages: 416451
nosy: John
Change by John Levon :
--
nosy: +movement
___
Python tracker
<https://bugs.python.org/issue37790>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from John Daily :
My apologies if this is a duplicate; there are more than a few bug reports on
time and strftime, but I wasn't able to locate any reporting this specifically.
I'd be happy to do more in-depth tests with some guidance. I see that this is
l
New submission from John Midgett :
Per PEP 8, equality comparisons to None should use the "is" or "is not"
keywords. However, if x is a {QVariant}NULL, the equality statement with the
"is" keyword returns FALSE whereas the "==" comparison returns TR
New submission from John Belmonte :
I would like Flag class instances to have more set-like abilities:
1. iteration, to walk through each set bit of the value
2. len corresponding to #1
3. subset operator
I may be told "implement it yourself as instance methods", or that #3 has
New submission from John Parejko :
Dataclasses provide a very straightforward way to specify structured data. One
can trivally document a dataclass's attributes via triple-quoted attribute
docstrings per PEP 257. However, those docstrings are not accessible to pydoc,
so they are lo
New submission from John Lennon :
Given the file `example.py` with the following contents:
```python
from typing import Generic, TypeVar
KT = TypeVar("KT")
VT = TypeVar("VT")
class GenericMapping(Generic[KT, VT]):
pass
class SomeImplMapping(GenericMa
John Lennon added the comment:
However, if I change the signature to:
```python
class SomeImplMapping(GenericMapping[KT, VT]):
```
Everything works just fine. And that's not really clear for me: we already have
declared the generic types, we can not change the amount of those argu
John Lennon added the comment:
BTW I don't mind creating a PR for that issue if there will be an agreement on
what is the desired behavior here.
--
___
Python tracker
<https://bugs.python.org/is
John Muth added the comment:
I ran into the same issue. This patch fixed it for me.
diff --git a/Modules/makesetup b/Modules/makesetup
index eac97ad134..0fbac03833 100755
--- a/Modules/makesetup
+++ b/Modules/makesetup
@@ -133,6 +133,7 @@ sed -e 's/[ ]*#.*//' -e '/
John Private added the comment:
I am enclosing a PNG showing the difference between 3.9.1 and 3.9.2
In 3.9.2 the pop-up opens as a new window complete with minimise and maximise
buttons, and the position is unrelated to the turtle screen.
--
nosy: +jwmp5051
Added file: https
John Ehresman added the comment:
The original idea was to not use kill on win32 because developers often assume
it will work like it does on unix-like OS's -- my claim is while kill could be
improved on win32, it still won't support all the things kill can do elsewhere.
I d
John Cena added the comment:
You are actually creating 4 references to the same list(See the ending *4).
This is how python behaves. See the below link as well
https://stackoverflow.com/questions/240178/list-of-lists-changes-reflected-across-sublists-unexpectedly
--
nosy
New submission from John Hagen :
The example for StringIO currently manually closes the object rather than using
a context manager. Since this is likely the first code that a new user
encounters and context managers reduce error-prone situations, I think it would
be helpful to show usage as
Change by John Hagen :
--
keywords: +patch
pull_requests: +24133
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/25401
___
Python tracker
<https://bugs.python.org/issu
New submission from John Mish :
A1
>>> sorted([12.001, 2, 1.999, 2.1, 4, 12])
[1.999, 2, 2.1, 4, 12, 12.002]
A2
>>> sorted([12.0001, 2, 1.999, 2.1, 4, 12])
[1.999, 2, 2.1, 4, 12.0, 12]
B1
>>> sorted([11.999, 2, 1.999,
John Mish added the comment:
Thanks, I should go deeper with it before filing. Wish You have great day
Steven.
--
___
Python tracker
<https://bugs.python.org/issue43
Change by John Florian :
--
nosy: -John Florian
___
Python tracker
<https://bugs.python.org/issue14243>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from John Nelson :
The symbol "PyStructSequence_UnnnamedField" is not *explicitly* marked for
export, causing it to be omitted from python3x.dll on Windows -- and thus
unavailable to Windows extension modules.
Attempting to use this symbol then fails at link time:
John Belmonte added the comment:
A PR was opened over a year ago, but the author never signed CLA.
How can we proceed with this doc fix?
--
nosy: +John Belmonte
___
Python tracker
<https://bugs.python.org/issue42
Change by John Belmonte :
--
nosy: +jbelmonte
nosy_count: 6.0 -> 7.0
pull_requests: +24938
pull_request: https://github.com/python/cpython/pull/26348
___
Python tracker
<https://bugs.python.org/issu
John Belmonte added the comment:
I've opened a new PR, please review.
--
___
Python tracker
<https://bugs.python.org/issue42194>
___
___
Python-bugs-list m
John Belmonte added the comment:
To clarify, it's caused by these mask entries in the enum:
NPTS_MASK = 0xF
DEL_S_MASK = 0xF0
AZIS_MASK = 0xF00
Since the masks are not an aggregation of individual bits defined in the enum,
it's an error.
> I'm inclined to go with [
John Belmonte added the comment:
I wonder if CONFORM could tolerate these, since it's ultimately going to
discard invalid bits. And then perhaps CONFORM is the default.
--
___
Python tracker
<https://bugs.python.org/is
John Belmonte added the comment:
Rather than make such masks containing unknown bits, this would be best
practice if you want to use STRICT, correct?
NPTS_ROUND = 0x0
NPTS_CEIL = 0x1
NPTS_TRUNC = 0x2
NPTS_MASK = NPTS_ROUND | NPTS_CEIL | NPTS_TRUNC
Otherwise, if your input may have unknown
John Belmonte added the comment:
> However, if the user is interfacing with other software/hardware, they may
> not have a choice on which bits make up the mask.
I think it's the same as saying "unknown bits may come on the input". An
important use case is for forward
John Belmonte added the comment:
> Do you agree that simply removing the unnamed member check that takes place
> at Flag creation is a good way forward?
It's uncomfortable, because then STRICT is not actually strict, and it's going
to be show raw values in str/repr.
>
201 - 300 of 1249 matches
Mail list logo