==
BREAKING NEWS
==
The New York Times, Thrinaxodon, PhD
===
According to U.S. dictator Obama, the U.S. has recently legalized weed
to brainwash it's citizens. Millions of Americans hate the new move,
they don't want OUR KIDS GROWING UP IN A WORLD
Steven D'Aprano wrote:
I have an unexpected display error when dealing with Unicode strings, and
I cannot understand where the error is occurring. I suspect it's not
actually a Python issue, but I thought I'd ask here to start.
I suppose it is a Python issue -- where Python fails to guess an
Le samedi 25 janvier 2014 05:37:34 UTC+1, Steven D'Aprano a écrit :
I have an unexpected display error when dealing with Unicode strings, and
I cannot understand where the error is occurring. I suspect it's not
actually a Python issue, but I thought I'd ask here to start.
Using
My son is learning Python and I know nothing about computers.
He's written a simple calculator program that doesn't work. For the life of me,
I can't see why.
Any help gratefully received. Here's his code:
def a():
import sys
print(welcome to the calculation)
Hello,
On Sat, Jan 25, 2014 at 02:02:15AM -0800, justinpmull...@gmail.com wrote:
My son is learning Python and I know nothing about computers.
:)
He's written a simple calculator program that doesn't work. For the life of
me, I can't see why.
Any help gratefully received. Here's his code:
PS: At the first statement, we've also tried
op == d:
But that doesn't work either.
On Saturday, January 25, 2014 10:02:15 AM UTC, justinp...@gmail.com wrote:
My son is learning Python and I know nothing about computers.
He's written a simple calculator program that doesn't work. For
justinpmull...@gmail.com wrote:
My son is learning Python and I know nothing about computers.
He's written a simple calculator program that doesn't work.
Normally you are supposed to explain what you or your son expect and what
you get instead. If Python ends with an error you should paste
[This message has also been posted to gmane.comp.python.general.]
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 2014-01-25, 07:18 GMT, Frank Millman wrote:
I have stated that my objective is to express as little as
possible in Python code.
Yes, and I believe that it is very wrong. But
On Sat, 25 Jan 2014 02:02:15 -0800, justinpmullins wrote:
def a():
import sys print(welcome to the calculation) print(please type
a
number)
one = int(sys.stdin.readline()) print(type d for division,)
print(type m for multiplication,) print(type s for
subtraction,)
On Fri, 24 Jan 2014 20:58:50 -0800, theguy wrote:
I know. I'm kind of ashamed of the code, but it does the job I need it
to up to a certain point
OK, well first of all take a step back and look at the problem.
You have n exemplars, each from a known author.
You analyse each exemplar, and
On 1/25/14 1:37 AM, seasp...@gmail.com wrote:
take the following as an example, which could work well.
But my concern is, will list 'l' be deconstructed after function return? and
then iterator point to nowhere?
def test():
l = [1, 2, 3, 4, 5, 6, 7, 8]
return iter(l)
def main():
On 1/25/14 1:37 AM, seasp...@gmail.com wrote:
take the following as an example, which could work well.
But my concern is, will list 'l' be deconstructed after function return? and
then iterator point to nowhere?
def test():
l = [1, 2, 3, 4, 5, 6, 7, 8]
return iter(l)
def main():
Ned Batchelder wrote:
On 1/25/14 1:37 AM, seasp...@gmail.com wrote:
take the following as an example, which could work well.
But my concern is, will list 'l' be deconstructed after function return?
and then iterator point to nowhere?
def test():
l = [1, 2, 3, 4, 5, 6, 7, 8]
Thanks Peter, that did the trick.
You've got here a very happy 8-year old and a mighty relieved 46-year old!!
On Saturday, January 25, 2014 10:41:20 AM UTC, Peter Otten wrote:
justinpmull...@gmail.com wrote:
My son is learning Python and I know nothing about computers.
He's written
On Saturday, January 25, 2014 8:12:20 PM UTC+5:30, Dennis Lee Bieber wrote:
Heck, at the very least turn all those _99 variables into single
lists The posted code looks like something from 1968 KK BASIC.
Yes thats correct.
My suggestion of data-files is a second step.
A first
On Sat, 25 Jan 2014 17:08:56 +1100, Chris Angelico ros...@gmail.com wrote:
On Sat, Jan 25, 2014 at 3:37 PM, Steven D'Aprano
steve+comp.lang.pyt...@pearwood.info wrote:
But using Python 2.7, I get a really bad case of moji-bake:
[steve@ando ~]$ python2.7 -c print u'ñøλπйж'
ñøλÏйж
What's
This is my first programming pet project. I have the following script that
extracts links from specific sites and display them on the web(via django).
The script work fine but I'm unable to save any stuff in my database.
Hence if I run the code, I get the output I want but then it always
extracts
On Sun, Jan 26, 2014 at 4:56 AM, Peter Pearson ppearson@nowhere.invalid wrote:
$ python2.7 -c import sys; print(sys.stdin.encoding)
UTF-8
This isn't from stdin, though, it's about the interpretation of the
bytes of source code without a magic cookie.
According to PEP 263 [1], the default
On Sun, Jan 26, 2014 at 6:00 AM, Max Cuban edze...@gmail.com wrote:
This is my first programming pet project. I have the following script that
extracts links from specific sites and display them on the web(via django).
The script work fine but I'm unable to save any stuff in my database.
On 25 January 2014 04:37, Steven D'Aprano
steve+comp.lang.pyt...@pearwood.info wrote:
But using Python 2.7, I get a really bad case of moji-bake:
[steve@ando ~]$ python2.7 -c print u'ñøλπйж'
ñøλÏйж
However, interactively it works fine:
[steve@ando ~]$ python2.7 -E
Python 2.7.2
I have asked this question earlier but this should make more sense than the
earlier version and I don't want anyone who could potentially helped to be
put off by the initial mess even if I updated it with my cleaner version as
a reply
I want to save the links scraped to be save in my database so
Hello,
using Python 2.7.6
I try to access a sqlite database using keyword lookup instead of
position (much more easy to maintain code), but it always fail, with the
error:
Index must be int or string
I have created the database, populated it, and here is the code that
tries to retrieve the
On Sat, 25 Jan 2014 17:08:56 +1100, Chris Angelico wrote:
On Sat, Jan 25, 2014 at 3:37 PM, Steven D'Aprano
steve+comp.lang.pyt...@pearwood.info wrote:
But using Python 2.7, I get a really bad case of moji-bake:
[steve@ando ~]$ python2.7 -c print u'ñøλπйж' ñøλÏйж
What's 2.7's default
On Sun, Jan 26, 2014 at 1:04 PM, Steven D'Aprano
steve+comp.lang.pyt...@pearwood.info wrote:
If there's a bug, it is that Python 2.7 doesn't
raise SyntaxError when called with -c and there are non-ASCII literals in
the source. Instead, it seems to be defaulting to Latin-1, hence the moji-
On Sat, 25 Jan 2014 09:18:44 +0200, Frank Millman wrote:
I have realised that we unlikely to come to an agreement on this in the
near future, as our philosophies are completely different.
You [Chris Angelo] have stated that your objective is to express as
much as possible in Python code.
On 26/01/2014 02:33, Steven D'Aprano wrote:
Here's a simple programming expression, familiar to most people, common
to hundreds of programming languages:
3+4*5
Here it is written as XML:
addint3/intmultint4/intint5/int/mult/add
Source:
On 1/25/2014 2:13 PM, Chris Angelico wrote:
On Sun, Jan 26, 2014 at 4:56 AM, Peter Pearson ppearson@nowhere.invalid wrote:
$ python2.7 -c import sys; print(sys.stdin.encoding)
UTF-8
This isn't from stdin, though, it's about the interpretation of the
bytes of source code without a magic
On Sun, Jan 26, 2014 at 1:33 PM, Steven D'Aprano
steve+comp.lang.pyt...@pearwood.info wrote:
Here is your version -
mainwindow = GTK2.Window(0)-add(GTK2.Vbox(0,0)
-add(GTK2.Label(About Gypsum: big long multi-line string))
-add(GTK2.HbuttonBox()
-add(GTK2.Button(Close))
On Sun, Jan 26, 2014 at 1:45 PM, Mark Lawrence breamore...@yahoo.co.uk wrote:
If I worked as a consultant I'd much prefer the XML version as I'd be able
to charge much more on the grounds that I'd done much more, hoping that the
people paying didn't bother with design reviews or the like :)
On Sunday, January 26, 2014 9:36:15 AM UTC+5:30, Chris Angelico wrote:
Code isn't something to be afraid of. It's just text files like any
other. After all, Python code is a config file for /usr/bin/python, so
if you want to change what Python does, just edit its config file!
Windows stores
On Sun, Jan 26, 2014 at 3:47 PM, Rustom Mody rustompm...@gmail.com wrote:
On Sunday, January 26, 2014 9:36:15 AM UTC+5:30, Chris Angelico wrote:
Code isn't something to be afraid of. It's just text files like any
other. After all, Python code is a config file for /usr/bin/python, so
if you
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote in message
news:52e473fc$0$2$c3e8da3$54964...@news.astraweb.com...
On Sat, 25 Jan 2014 09:18:44 +0200, Frank Millman wrote:
I have realised that we unlikely to come to an agreement on this in the
near future, as our philosophies
Nick Coghlan added the comment:
David is correct, most PEPs are historical records of design decisions that
cease to be updated once completed. The language reference is the normative
guide for current behaviour.
The exception is informational and process PEPs, which cover things that
are
Changes by Nick Coghlan ncogh...@gmail.com:
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20317
___
Changes by Nick Coghlan ncogh...@gmail.com:
--
dependencies: +Argument Clinic should use a non-error-prone syntax to mark text
signatures
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20075
Georg Brandl added the comment:
Since the test is still failing on at least 3 stable buildbots, I've reverted
the 3.3 changes for 3.3.4rc1.
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20311
Nick Coghlan added the comment:
Having clinic work like reindent on make patchcheck would be very nice.
As a second line of defence, we should also have a server side equivalent of
the whitespace check as a repo hook in Mercurial (i.e. don't allow a push when
clinic output is out of date).
New submission from Serhiy Storchaka:
Argument Clinic generates wrong signature for module level functions.
For example for the following declaration
/*[clinic input]
binascii.a2b_uu
ascii: ascii_buffer
/
Decode a line of uuencoded data.
[clinic start generated code]*/
Argument
Changes by Serhiy Storchaka storch...@gmail.com:
--
dependencies: +Argument Clinic generates wrong signature for module level
functions
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20151
Zachary Ware added the comment:
That's by design (of #20189); inspect.Signature.from_builtin strips out the
'module' param.
--
nosy: +zach.ware
resolution: - invalid
status: open - pending
___
Python tracker rep...@bugs.python.org
Tal Einat added the comment:
I've found two bugs:
1) In the type check, a '' needs to be added before the type name.
2) Setting template_dict['self_type_object'] fails for module functions
--
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka added the comment:
What if function already has the module parameter? E.g.
_warnings.warn_explicit.
--
status: pending - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20388
Changes by Serhiy Storchaka storch...@gmail.com:
--
dependencies: +Argument Clinic: backslashes in docstrings are not escaped
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20151
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
priority: normal - high
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6083
___
___
Tal Einat added the comment:
Also, I believe the the type of the first argument passed to a method is a
pointer to the typedef object, so a '*' needs to be added after the typedef
name wherever it is used in such functions.
--
___
Python tracker
Zachary Ware added the comment:
Ahh, that is a good point, though the real problem with that is in compilation
rather than the Python signature. I believe there's a fix in the works,
somewhere in Larry's to-do list. _winapi also has a function that takes a
'module' parameter, though being
Serhiy Storchaka added the comment:
LGTM.
--
assignee: - zach.ware
stage: - commit review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20376
___
Roundup Robot added the comment:
New changeset 21f8abfe459a by Serhiy Storchaka in branch 'default':
Issue #20151: The binascii module now uses Argument Clinic.
http://hg.python.org/cpython/rev/21f8abfe459a
--
nosy: +python-dev
___
Python tracker
Zachary Ware added the comment:
Done!
--
resolution: - fixed
stage: commit review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20376
___
Roundup Robot added the comment:
New changeset 381c9d592cc8 by Zachary Ware in branch 'default':
Issue #20376: Argument Clinic now escapes backslashes in docstrings.
http://hg.python.org/cpython/rev/381c9d592cc8
--
nosy: +python-dev
___
Python
Tal Einat added the comment:
My last comment was wrong. There is a bug regarding the first argument to new
methods; It should just remain a PyTypeObject*.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20385
Larry Hastings added the comment:
1) That's not a bug, that's the API. If you used the dynamic API to create a
type it wouldn't take the . So I can't guess in advance what type it is, nor
can I assume I always add the .
2) Will fix.
--
___
Larry Hastings added the comment:
If you use a self converter you can name your first parameter anything you like.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20388
___
Nick Coghlan added the comment:
Attached patch shows the new test case I'm using to ensure that all callable
builtins have signatures, and once we get it that way, it stays that way.
Preliminary goal is signatures for all the non-type objects, and once I get to
that point, I'll propose it for
Roundup Robot added the comment:
New changeset 76a3cc6f3aca by Serhiy Storchaka in branch 'default':
Fixed converting errors in the binascii module (issue20151).
http://hg.python.org/cpython/rev/76a3cc6f3aca
--
___
Python tracker
Roundup Robot added the comment:
New changeset d4099b8a7d0f by Serhiy Storchaka in branch 'default':
Issue #20133: The audioop module now uses Argument Clinic.
http://hg.python.org/cpython/rev/d4099b8a7d0f
--
nosy: +python-dev
___
Python tracker
Changes by Serhiy Storchaka storch...@gmail.com:
--
dependencies: -Argument Clinic doesn't handle module level functions with
module parameter well
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20133
Larry Hastings added the comment:
So, are you still claiming there's a bug here? Or can we close this?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20388
___
Roundup Robot added the comment:
New changeset 0a3e02251bd6 by Serhiy Storchaka in branch 'default':
Issue #20193: The _bz2 module now uses Argument Clinic.
http://hg.python.org/cpython/rev/0a3e02251bd6
--
nosy: +python-dev
___
Python tracker
Serhiy Storchaka added the comment:
Thank you Nadeem. In committed patch fixed the docstring for
BZ2Compressor.__init__, and renamed module name bz2 in clinic declaration is
renamed to _bz2.
Here is updated patch for the _lzma module which addresses Nadeem's comment and
renames the lzma
Larry Hastings added the comment:
The logic of the patch is hard to follow. However, it's still examining the
size of args, and now it's examining the size of kwargs, and behaving
differently based on these sizes is exactly what I don't want.
I've attached an example patch of how I would
Larry Hastings added the comment:
You should only put one line of equals signs? I'll try to remember that in the
future. LGTM. Shall I commit it?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20348
Larry Hastings added the comment:
If two issues are created on the tracker for the same issue, surely it's the
*older* issue that is preserved, and the new one marked as duplicate and closed?
--
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka added the comment:
Well, if originally reported behavior is by design, and there is other open
issue for the module parameter, we can close this.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20388
Changes by Larry Hastings la...@hastings.org:
--
resolution: - invalid
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20388
___
Roundup Robot added the comment:
New changeset 7ba9642fc800 by Serhiy Storchaka in branch 'default':
Issue #20193: The _lzma module now uses Argument Clinic.
http://hg.python.org/cpython/rev/7ba9642fc800
--
___
Python tracker rep...@bugs.python.org
Georg Brandl added the comment:
Only if the older issue actually has more relevant content, which is not always
the case.
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20346
Serhiy Storchaka added the comment:
Patch for _lzma was applied without converting LZMACompressor.__init__.
Here is a patch for zlib, which doesn't use neither optional groups, nor
unspecified defaults. Three builtins, decompress(), decompressobj() and
Decompress.flush() are left not
New submission from Julian Taylor:
the pvariance and variance functions take the argument mu and xbar to pass the
population and sample mean to avoid some recomputation.
I assume the keyword arguments are different because the two means accepted are
different, but the docstring does not
Julian Taylor added the comment:
xbar is the *sample* mean of course
maybe with proper docstrings the two functions could also use the same keyword
argument?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20389
Serhiy Storchaka added the comment:
Sorry, previous patch didn't contain generated file.
--
Added file: http://bugs.python.org/file33700/zlib_clinic_2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20193
Changes by Serhiy Storchaka storch...@gmail.com:
Removed file: http://bugs.python.org/file33699/zlib_clinic_2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20193
___
Mark Lawrence added the comment:
msg209063 from Larry states My concern is that itertools.repeat doesn't parse
its arguments like other Python functions. From my viewpoint the only long
term option is to bring repeat (and other functions that you may have found
exhibiting this behaviour
Larry Hastings added the comment:
I think you've understood it.
The problem is, in order to deprecate the behavior, we first must provide the
new behavior. (That's official policy, in PEP 5.) It's untenable to say
you'll have to stop using 'times=-1' in the future, but you can't use
Roundup Robot added the comment:
New changeset 900a1ff323bb by Victor Stinner in branch '3.3':
Issue #20311: Revert 033137c12d88, select.epoll.poll() rounds again the timeout
http://hg.python.org/cpython/rev/900a1ff323bb
New changeset caab3e191485 by Victor Stinner in branch 'default':
(Merge
Roundup Robot added the comment:
New changeset 90354a4c9dde by Victor Stinner in branch 'default':
Issue #20311: Revert e042ea77a152 and 7ce7295393c2, PollSelector.select() and
http://hg.python.org/cpython/rev/90354a4c9dde
--
___
Python tracker
Roundup Robot added the comment:
New changeset 3b8a2281d323 by Victor Stinner in branch 'default':
Issue #20311: selectors: Add a resolution attribute to BaseSelector.
http://hg.python.org/cpython/rev/3b8a2281d323
New changeset 4bc550c66228 by Victor Stinner in branch 'default':
Issue #20311:
STINNER Victor added the comment:
I reverted my changes on poll and epoll: the kernel may round the timeout
differently because it uses a different clock, so Python cannot guarantee that
it will wait at least timeout seconds.
My initial concern was a performance issue in asyncio, I fixed the
STINNER Victor added the comment:
I revert all changes in select an selectors, the timeout is rounded again
towards zero, as it was before.
I applied my asyncio_granularity.patch:
- selectors.BaseSelector has a new abstract resolution property
- asyncio.BaseEventLoop has a new granularity
Larry Hastings added the comment:
You didn't give me a test case, and I can't reproduce this. Either it was
accidentally fixed already, or there's something else going on in your test
case.
I'm closing this for now as unreproducable. If you see the problem again,
please reopen this issue.
Nick Coghlan added the comment:
More comprehensive patch uploaded - all the non-type callables implemented in
bltinmodule.c have been converted or classified with a reason for not being
converted yet (see the new test in test_inspect.py for details, as well as the
AC 3.4 and AC 3.5 comments
Roundup Robot added the comment:
New changeset 1eec62cf3675 by Ezio Melotti in branch 'default':
#20348: fix headers markup in Argument Clinic howto. Patch by Moritz Neeb.
http://hg.python.org/cpython/rev/1eec62cf3675
--
nosy: +python-dev
___
Python
Ezio Melotti added the comment:
Fixed, thanks for the patch!
--
assignee: larry - ezio.melotti
nosy: +ezio.melotti
resolution: - fixed
stage: - committed/rejected
status: open - closed
type: - enhancement
___
Python tracker rep...@bugs.python.org
New submission from Larry Hastings:
Rollup patch with a bunch of small fixes in it. Can I get a quick turnaround
review on this? I'd like it to go in before today's beta is cut. Definitely
the core change has to go in, but that's uncontroversial.
Core:
* _PyType_GetDocFromInternalDoc()
Larry Hastings added the comment:
The bug you cited is fixed in today's rollup patch, #20390. (I don't know how
to denote the dependency between the two issues, maybe someone else can do that
for me?)
--
___
Python tracker rep...@bugs.python.org
Larry Hastings added the comment:
The bug you cited is fixed in today's rollup patch, #20390. (I don't know how
to denote the dependency between the two issues, maybe someone else can do that
for me?)
--
___
Python tracker rep...@bugs.python.org
Mark Lawrence added the comment:
From a user perspective the docs say this itertools.repeat(object[, times]) -
Make an iterator that returns object over and over again. Runs indefinitely
unless the times argument is specified. So to me the use of Times=None in
the equivalent to section is
Nick Coghlan added the comment:
LGTM, but I'm not familiar with Clinic's own code...
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20390
___
Adam Knight added the comment:
Can someone add this in? What needs to be done to make it happen? Kind of need
this for a project I'm working on...
--
nosy: +ahknight
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19023
Tal Einat added the comment:
You're right, this issue does indeed seem to have been resolved since I created
this issue. I just checked this on Objects/bytesobject.c with the latest
version and get the desired output. So you've done right to close this issue.
I'd like to note that I most
Charles-François Natali added the comment:
If the patch is accepted, my changes on Python 3.3 should also be
reverted.
I'm sorry, but I'm not convinced.
The selector's granularity is an implementation detail, and I don't think
it should be exposed.
Furthermore, it's not a mere function of the
Larry Hastings added the comment:
You didn't supply a test case, nor is there any code checked in that reproduced
the issue. I had to make a test case by hand.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20325
New submission from Thomas Heller:
The windows python launcher supports the '-3.3' resp. '-3.3-32' command line
switches to ask for 'the best 3.3' version resp. 'the 32-bit 3.3' version, but
does not support a '-3.3-64' switch to explicitely request the 64-bit version
of Python.
I suggest
Charles-François Natali added the comment:
LGTM.
--
nosy: +neologix
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20331
___
___
Python-bugs-list
Serhiy Storchaka added the comment:
Don't forget to use hg mv to rename existing side files.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20390
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20331
___
___
New submission from Rodrigo Parra:
The functions looks up for the file extension in three maps: types_map,
suffix_map and encodings_map.
Lookup in types_map is case insensitive (by calling lower() first).
Lookup in both suffix_map and encodings_map is case sensitive.
These can lead to some
Tal Einat added the comment:
I'm still seeing the first argument to a __new__ function as groupbyobject *
instead of PyTypeObject *. This causes the following error (for example):
./Modules/itertoolsmodule.c:112:34: error: no member named 'tp_alloc' in
'groupbyobject'
gbo = (groupbyobject
Tal Einat added the comment:
To clarify my previous comment, I was referring to the first argument passed to
the generated 'impl' function.
Context: I'm attempting to convert 'itertools.groupby' in
Modules/itertoolsmodule.c.
--
___
Python tracker
1 - 100 of 179 matches
Mail list logo