On 3/17/2011 1:42 AM, Astan Chee wrote:
Hi,
I have 2 points in 3D space and a bunch of points in-between them. I'm
trying to fit a polynomial curve on it. Currently I'm looking through
numpy but I don't think the function exists to fit a function like this:
y = ax**4 + bx**3 + cx**2 + dx + e
Thanks Dan for the detailed reply. I suspect it is related to FreeBSD
malloc/free as you suggested. Here is the output of running your
script:
[16-bsd01 ~/work]$ python strm.py --first
USERPID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND
amdev 6899 3.0 6.9 111944 107560 p0
On Wed, Mar 16, 2011 at 10:36 PM, moijes12 moije...@gmail.com wrote:
Hi
I am unable to create RAW sockets using python.
Traceback (most recent call last):
File getsockopt_handler.py, line 6, in ?
send = socket(AF_INET,SOCK_RAW,IPPROTO_IP)
socket.error: (94, 'Socket type not supported')
On Wed, 16 Mar 2011 22:36:07 -0700, moijes12 wrote:
Traceback (most recent call last):
File getsockopt_handler.py, line 7, in ?
send.bind((gethostbyname(gethostname()),5))
socket.error: (99, 'Cannot assign requested address')
Specifying a port number isn't meaningful for a raw
On Mar 17, 11:14 am, Nobody nob...@nowhere.com wrote:
On Wed, 16 Mar 2011 22:36:07 -0700, moijes12 wrote:
Traceback (most recent call last):
File getsockopt_handler.py, line 7, in ?
send.bind((gethostbyname(gethostname()),5))
socket.error: (99, 'Cannot assign requested address')
On Mar 17, 11:28 am, moijes12 moije...@gmail.com wrote:
On Mar 17, 11:14 am, Nobody nob...@nowhere.com wrote:
On Wed, 16 Mar 2011 22:36:07 -0700, moijes12 wrote:
Traceback (most recent call last):
File getsockopt_handler.py, line 7, in ?
I have things like:
file1:
class aaa:
def __init__(self):
self.variable1='a1'
self.variable2='a2'
self.varable3='a3'
in main proc:
import file1
b=file1.aaa()
c={'variable1':'value1','variable2':'value2','variable3':'value3'}
for key in c:
b.key=c[key] Problem is
On Thu, Mar 17, 2011 at 3:31 AM, Hans hans...@gmail.com wrote:
I have things like:
file1:
class aaa:
def __init__(self):
self.variable1='a1'
self.variable2='a2'
self.varable3='a3'
in main proc:
import file1
b=file1.aaa()
Hi,
After computation of few array, when I am using plot(x,y) command I get
following error
'latex' is not recognized as an internal or external command,
operable program or batch file.
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or
file_list = []
for root, _, filenames in os.walk(root_path):
for filename in filenames:
file_list.append(os.path.join(root, filename))
What does the notation _ stands for ? Is it a sort of /dev/null ?
I know that in the terminal it represents the last printed text.
Laurent
On 17/03/2011 08:58, Laurent Claessens wrote:
file_list = []
for root, _, filenames in os.walk(root_path):
for filename in filenames:
file_list.append(os.path.join(root, filename))
What does the notation _ stands for ? Is it a sort of /dev/null ?
I know that in the terminal it represents
Laurent Claessens writes:
file_list = []
for root, _, filenames in os.walk(root_path):
for filename in filenames:
file_list.append(os.path.join(root, filename))
What does the notation _ stands for ? Is it a sort of /dev/null ?
x, _, y = 1, hukairs, 3
x, y
On Wednesday, March 16, 2011 9:03:19 PM UTC-4, bukzor wrote:
I finally understand. You mean something along the lines of `kde-
config`: an executable to help figure out the configuration at
runtime. This requires either installation or control of the $PATH
environment variable to work well,
PyPDF (and others) provide a very nice mechanism for creating and
manipulating PDF documents. Is there any *Python* module or technique
to turn a PDF document into Postscript [to print, for example]?
--
http://mail.python.org/mailman/listinfo/python-list
I have a dll that to communicate with I need to send numeric codes. So
I created a dictionary. It works in one direction in that I can
address the key and get the value. But when the program returns the
value I can't get the key. This code is very simple and I could use a
list and the index except
Wanderer wrote:
I have a dll that to communicate with I need to send numeric codes. So
I created a dictionary. It works in one direction in that I can
address the key and get the value. But when the program returns the
value I can't get the key. This code is very simple and I could use a
Tim Johnson wrote:
I need to be better informed on naming conventions for modules. For
instance, I need to create a new module and I want to make sure that
the module name will not conflict with any future or current python
system module names.
COBOL in its golden years had a practice that
Steven,
Thanks for the info of itertools. It is a great start for me. Overall,
I agree with you that it is really the user data needs to be sorted
out. However, novice users may need help on certain patterns such as
a=[1,[2,3],4], b=[5,[6,7,8],9,10]. We could just draw our line
saying that
In 2f4a08df-55ea-4a4e-9cc0-24e6b9f81...@f15g2000pro.googlegroups.com Wanderer
wande...@dialup4less.com writes:
But when the program returns the value I can't get the key.
What happens when two keys have the same value? How would you know which
key to return?
In your sample code all the
On Thu, Mar 17, 2011 at 6:55 AM, Adam Tauno Williams
awill...@whitemice.org wrote:
PyPDF (and others) provide a very nice mechanism for creating and
manipulating PDF documents. Is there any *Python* module or technique
to turn a PDF document into Postscript [to print, for example]?
On Mar 17, 11:44 am, John Gordon gor...@panix.com wrote:
In 2f4a08df-55ea-4a4e-9cc0-24e6b9f81...@f15g2000pro.googlegroups.com
Wanderer wande...@dialup4less.com writes:
But when the program returns the value I can't get the key.
What happens when two keys have the same value? How would you
In 7546e476-d10f-46e5-8b20-5d9b42345...@r6g2000vbo.googlegroups.com Wanderer
wande...@dialup4less.com writes:
I guess two keys having the same value is why dictionaries don't
return keys for values, but this is a code. Each value has a unique
meaning to both sender and receiver. The text part
On Friday, March 11, 2011 4:52:57 PM UTC-5, Tim Johnson wrote:
I need to be better informed on naming conventions for modules. For
instance, I need to create a new module and I want to make sure that
the module name will not conflict with any future or current python
system module names.
Do
I tried the following
22/7.0
3.1428571428571428
import math
math.pi
3.1415926535897931
Why is the difference is so much ?is pi =22/7 or something ?
--
winning regards
kracekumar
--
http://mail.python.org/mailman/listinfo/python-list
On Donnerstag 17 März 2011, kracekumar ramaraju wrote:
22/7.0
3.1428571428571428
import math
math.pi
3.1415926535897931
Why is the difference is so much ?is pi =22/7 or something ?
https://secure.wikimedia.org/wikipedia/en/wiki/Pi
--
Wolfgang
--
On Thu, Mar 17, 2011 at 10:46 AM, kracekumar ramaraju
kracethekingma...@gmail.com wrote:
I tried the following
22/7.0
3.1428571428571428
import math
math.pi
3.1415926535897931
Why is the difference is so much ?is pi =22/7 or something ?
Pi is not 22/7. That is just a commonly-used
On Thu, Mar 17, 2011 at 10:57 AM, Ian Kelly ian.g.ke...@gmail.com wrote:
On Thu, Mar 17, 2011 at 10:46 AM, kracekumar ramaraju
kracethekingma...@gmail.com wrote:
I tried the following
22/7.0
3.1428571428571428
import math
math.pi
3.1415926535897931
Why is the difference is so much ?is
On Thu, 2011-03-17 at 08:53 -0700, Chris Rebert wrote:
On Thu, Mar 17, 2011 at 6:55 AM, Adam Tauno Williams
awill...@whitemice.org wrote:
PyPDF (and others) provide a very nice mechanism for creating and
manipulating PDF documents. Is there any *Python* module or technique
to turn a PDF
My favorite approximation is: 355/113 (visualize 113355 split into two 113 355
and then do the division). The first 6 decimal places are the same.
3.141592920353982 = 355/113
vs
3.1415926535897931
Kee Nethery
--
http://mail.python.org/mailman/listinfo/python-list
I have found this approach problematic if you have packages separately
developed and maintained in different directory trees, resulting in
more than one PYTHONPATH entry with the same root metapackage name.
What happens is that only the first entry in the PYTHONPATH containing
the metapackage name
(pulls out doctorate in Math.) Take a circle and measure its diameter, then
circumference (coffee cans and string are helpful). Then
pi = Circumference/diameter
approximating that is hard. It turns out that even though it *looks* like a
nice fraction, the value that results is not (fractions
On Thu, Mar 17, 2011 at 11:36 AM, Jeffrey Gaynor jgay...@ncsa.uiuc.edu wrote:
There are fun math questions, for instance, is there a run of a million 1's
someplace in the decimal expansion of pi? Maybe so, but we just don't know,
since we've only computed the first trillion or so digits.
There are a few long strings, but have fun yourself with the pi digit searcher:
http://www.angio.net/pi/bigpi.cgi
Longest string I heard of was nine 6's in a row, so search for 6 and
see what you get.
- Original Message -
From: Ian Kelly ian.g.ke...@gmail.com
To: Jeffrey Gaynor
On 17/03/2011 18:49, Ian Kelly wrote:
On Thu, Mar 17, 2011 at 11:36 AM, Jeffrey Gaynorjgay...@ncsa.uiuc.edu wrote:
There are fun math questions, for instance, is there a run of a million 1's
someplace in the decimal expansion of pi? Maybe so, but we just don't know,
since we've only computed
Jeffrey Gaynor wrote:
It is the simple fractional look about pi vs. how hard it is to compute that drives most
of the confusion about pi. The digits of pi are in effectively random order (each digit occur
roughly 10% of the time), ...
This is equivalent to stating that pi is normal, something
My favorite approximation is: 355/113 (visualize 113355 split into two 113
355 and then do the division). The first 6 decimal places are the same.
3.141592920353982 = 355/113
vs
3.1415926535897931
Another, rather funny, approximation of the first 15 digits of pi is
to take the length of
No responses? Nobody with knowledge of modifying styles etc?
On Mar 14, 2:08 pm, Peter peter.milli...@gmail.com wrote:
Hi I'm struggling to get a good understanding of styles as used in
ttk. I have read the tutorial section on using styles but haven't been
able to solve this problem.
I
Peter,
Sorry I can't be of much help, but I share the same interest as you.
There may be some teaser info here although I can't claim to understand
the technique.
http://www.java2s.com/Open-Source/Python/3.1.2-Python/Demo/Demo/tkinter/ttk/notebook_closebtn.py.htm
If you have any
In article 753e9884-60eb-43cf-a647-12b29ed28...@y31g2000prd.googlegroups.com,
Santiago Caracol santiago.cara...@gmail.com wrote:
Don't do that. =A0;-) =A0I suggest using exec instead. =A0However, I wo=
uld be
surprised if import worked faster than, say, JSON (more precisely, I
doubt that it's
Thanks for the link Malcolm, I'll have a look at it. What is
particularly interesting (at first glance), is that the author has
mixed Tkinter with ttk as it suited i.e. look at this line:
f1 = tkinter.Frame(nb, background=red)
If ttk was being used purely (from tkinter import *; from ttk import
Peter wrote:
Thanks for the link Malcolm, I'll have a look at it. What is
particularly interesting (at first glance), is that the author has
mixed Tkinter with ttk as it suited i.e. look at this line:
f1 = tkinter.Frame(nb, background=red)
If ttk was being used purely (from tkinter import *;
Hi all,
I'm trying to build the debug version of Python 3.2. I downloaded the py3k
folder from the python SVN. Then I opened the pcbuild.sln and tried to build
the python project. However the build failed when I got an error from the
project pythoncore which I think python depends on? The error
On 3/17/2011 6:54 PM, Willis Cheung wrote:
Hi all,
I'm trying to build the debug version of Python 3.2. I downloaded the
py3k folder from the python SVN.
Just so you know, Python SVN is now a read-only historical arifact.
Development now happens in the hg repository. If you build x.y docs,
On Thu, 17 Mar 2011 08:07:28 -0700, Wanderer wrote:
I have a dll that to communicate with I need to send numeric codes. So I
created a dictionary. It works in one direction in that I can address
the key and get the value. But when the program returns the value I
can't get the key.
If you
In article
e0ad8fb5-3147-4ec5-ae9c-def507a75...@i35g2000prd.googlegroups.com,
Peter peter.milli...@gmail.com wrote:
No responses? Nobody with knowledge of modifying styles etc?
You might also want to ask on the tkinter mailing list:
http://mail.python.org/pipermail/tkinter-discuss/
WHIFF 1.1 RELEASED
WHIFF [WSGI HTTP Integrated Filesystem Frames]
is a collection of support services
for Python/WSGI Web applications which
allows applications to be composed by
dropping dynamic pages into container
directories.
This mode of development will be familiar
to developers who have
This gives a particularly nasty abend in Windows - Python.exe has
stopped working, rather than a regular exception stack error. I've
fixed it, after I figured out the cause, which took a while, but maybe
someone will benefit from this.
Python 2.6.5 on Windows 7.
class Foo(object):
pass
On Thu, 17 Mar 2011 08:31:28 -0700, Patrick wrote:
Steven,
Thanks for the info of itertools. It is a great start for me. Overall, I
agree with you that it is really the user data needs to be sorted out.
However, novice users may need help on certain patterns such as
a=[1,[2,3],4],
On Mar 17, 12:47 am, Benjamin Kaplan benjamin.kap...@case.edu wrote:
On Thu, Mar 17, 2011 at 3:31 AM, Hans hans...@gmail.com wrote:
I have things like:
file1:
class aaa:
def __init__(self):
self.variable1='a1'
self.variable2='a2'
self.varable3='a3'
in main
On Thu, Mar 17, 2011 at 5:09 PM, Terry Reedy tjre...@udel.edu wrote:
Look at scipy.
--
Thanks for the info. I realized I made some mistakes. Anyway, what I'm
trying to do is in maya (python), fit selected vertices on a curve. Here is
what I have so far:
import maya.cmds as cmds
import numpy
Looks like something tripped over whitespaces in path names for svn tools.
Try checking out a working copy from the hg repository?
~/santa
On Thu, Mar 17, 2011 at 3:54 PM, Willis Cheung wche...@pdftron.com wrote:
Hi all,
I'm trying to build the debug version of Python 3.2. I downloaded the
In article 87bp1a3g59@benfinney.id.au,
Ben Finney ben+pyt...@benfinney.id.au wrote:
a...@pythoncraft.com (Aahz) writes:
(I always recommend people to use PostgreSQL, though; which is
superior in almost every way, especially the C client library and the
wire protocol.)
Can you point at a
On Thu, Mar 17, 2011 at 5:44 PM, Astan Chee astan.c...@gmail.com wrote:
On Thu, Mar 17, 2011 at 5:09 PM, Terry Reedy tjre...@udel.edu wrote:
Look at scipy.
Thanks for the info. I realized I made some mistakes. Anyway, what I'm
trying to do is in maya (python), fit selected vertices on a
On Wed, 16 Mar 2011 23:50:03 -0700, moijes12 wrote:
Now,please can someone guide(as in what should I read and NOT as in
give me the code) me in decoding the IP header of packets using python
3.0.1.
The struct module is the usual approach for decoding binary data
structures. Fields which
On 3/17/2011 8:24 PM, J Peyret wrote:
This gives a particularly nasty abend in Windows - Python.exe has
stopped working, rather than a regular exception stack error. I've
fixed it, after I figured out the cause, which took a while, but maybe
someone will benefit from this.
Python 2.6.5 on
On Thu, 17 Mar 2011 17:24:36 -0700, J Peyret wrote:
This gives a particularly nasty abend in Windows - Python.exe has
stopped working, rather than a regular exception stack error. I've
fixed it, after I figured out the cause, which took a while, but maybe
someone will benefit from this.
On 3/17/2011 10:00 PM, Terry Reedy wrote:
On 3/17/2011 8:24 PM, J Peyret wrote:
This gives a particularly nasty abend in Windows - Python.exe has
stopped working, rather than a regular exception stack error. I've
fixed it, after I figured out the cause, which took a while, but maybe
someone
On Mar 17, 9:37 pm, Terry Reedy tjre...@udel.edu wrote:
On 3/17/2011 10:00 PM, Terry Reedy wrote:
On 3/17/2011 8:24 PM, J Peyret wrote:
This gives a particularly nasty abend in Windows - Python.exe has
stopped working, rather than a regular exception stack error. I've
fixed it, after I
On Mar 18, 6:20 am, Nobody nob...@nowhere.com wrote:
On Wed, 16 Mar 2011 23:50:03 -0700, moijes12 wrote:
Now,please can someone guide(as in what should I read and NOT as in
give me the code) me in decoding the IP header of packets using python
3.0.1.
The struct module is the usual
On Mar 16, 10:19 am, a...@pythoncraft.com (Aahz) wrote:
In article fdjt28-flo@wilbur.25thandclement.com,
always recommend people to use PostgreSQL, though; which is superior in
almost every way, especially the C client library and the wire protocol.)
Can you point at a reference for the
Gregory P. Smith g...@krypto.org added the comment:
yeah i figured importing io from os at the top level might be a problem. it is
not important for the default to be that exact value, even something safely on
the small side like 512 will work. but we could just have the default be set
in
Gennadiy Zlobin gennad.zlo...@gmail.com added the comment:
Hi guys, this is my first patch for the Python interpreter.
Hope it is ok, but if it is not, be sure to comment and I'll fix it ASAP
--
keywords: +patch
Added file: http://bugs.python.org/file21262/11567.patch
Roundup Robot devnull@devnull added the comment:
New changeset e9724d7abbc2 by Senthil Kumaran in branch '2.5':
Fix issue11442 - Add a charset parameter to the Content-type to avoid XSS
attacks.
http://hg.python.org/cpython/rev/e9724d7abbc2
--
nosy: +python-dev
New submission from Senthil Kumaran orsent...@gmail.com:
When pushed a change to 2.5 branch, I got an error, which I think has
to do with buildbot not available for 2.5 codeline.
It asked me to notify the tracker and here it is.
remote: state = method(*args, **kw)
remote: File
New submission from knickerkicker knicker.kic...@gmail.com:
Replaced boilerplate implementations of several BINARY_* and INPLACE_* opcodes
with two macros. The result shaves off 154 lines from Python/ceval.c.
--
components: Interpreter Core
files: 20110317_ceval.patch
keywords: patch
Senthil Kumaran orsent...@gmail.com added the comment:
Fixed in all the relevant code lines.
--
assignee: - orsenthil
priority: release blocker -
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker
Ned Deily n...@acm.org added the comment:
I don't have any better suggestions at the moment so let's go with it. Perhaps
we'll get more insight to the root cause later.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11088
Ned Deily n...@acm.org added the comment:
The actual unwanted event is being generated as a result of the menu add
command accelerator. You can see that by playing with Wish.
set w .menu
catch {destroy $w}
toplevel $w
wm title $w Menu Shift
menu $w.menu -tearoff 0
set m $w.menu.basic
$w.menu
Mark Dickinson dicki...@gmail.com added the comment:
I don't think this needs to be documented beyond the limitations of
floating-point that are already documented in the tutorial. It's the obvious
behaviour: double to float (when packing) converts to the nearest float; the
float to double
Mark Dickinson dicki...@gmail.com added the comment:
[Robert]
I have to disagree. It seems entirely reasonable to expect that
unpack should return the same value passed to pack.
Robert: notice that a *Python* float (a *64-bit* C double internally) is here
being stored as a *32-bit* float,
Roundup Robot devnull@devnull added the comment:
New changeset db4967095f10 by Senthil Kumaran in branch '3.2':
Fix issue11567: http.server DEFAULT_ERROR_MESSAGE format. Patch by Gennadiy
Zlobin.
http://hg.python.org/cpython/rev/db4967095f10
--
nosy: +python-dev
Senthil Kumaran orsent...@gmail.com added the comment:
Fixed in 3.3 and 3.2.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11567
___
New submission from Eli Bendersky eli...@gmail.com:
Report here:
http://stackoverflow.com/questions/5316928/python-os-path-isdir-is-slow-on-windows
It could be a problem with Windows itself, but I'm opening this to keep track
of the issue, just to be on the safe side.
--
components:
Changes by Gennadiy Zlobin gennad.zlo...@gmail.com:
--
nosy: +gennad
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11557
___
___
Python-bugs-list
Changes by Gennadiy Zlobin gennad.zlo...@gmail.com:
--
nosy: +gennad
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4492
___
___
Python-bugs-list
Martin v. Löwis mar...@v.loewis.de added the comment:
How do you expect this to be resolved? Or will it stay open until Microsoft
improves the NTFS performance?
--
nosy: +loewis
___
Python tracker rep...@bugs.python.org
Changes by Gennadiy Zlobin gennad.zlo...@gmail.com:
--
assignee: - docs@python
components: +Documentation
nosy: +docs@python
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11568
Gennadiy Zlobin gennad.zlo...@gmail.com added the comment:
The patch fixes the docstring
--
keywords: +patch
nosy: +gennad
Added file: http://bugs.python.org/file21265/11568.patch
___
Python tracker rep...@bugs.python.org
Eli Bendersky eli...@gmail.com added the comment:
On Thu, Mar 17, 2011 at 12:46, Martin v. Löwis rep...@bugs.python.orgwrote:
I opened this in order not to forget to look at the implementation of isdir
on windows, making sure it's the most optimal thing we can do. If you know
it is, the issue
Changes by SilentGhost ghost@gmail.com:
Removed file: http://bugs.python.org/file21266/unnamed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11583
___
New submission from Steffen Daode Nurpmeso sdao...@googlemail.com:
My minimal failing test case dragged yet another EMAIL
error to the light!!!
Man, man, man - it's really great that QNX fund money
so that you have the time to fix this broken thing!
It's got washed away, but
Changes by Amaury Forgeot d'Arc amaur...@gmail.com:
--
assignee: - haypo
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11580
___
___
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1628484
___
___
Python-bugs-list mailing
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1676121
___
___
Python-bugs-list mailing
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1733484
___
___
Python-bugs-list mailing
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue847812
___
___
Python-bugs-list mailing list
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1294959
___
___
Python-bugs-list mailing
R. David Murray rdmur...@bitdance.com added the comment:
Yes, I can well understand that feeling. I've only relatively recently taken
over maintaining the email package. I'm working my way through the old bug
queue, and I can only deal with them in the context in which I find them.
R. David Murray rdmur...@bitdance.com added the comment:
I don't see a test case here, did you forget to attatch something?
Also, in this:
elf._msg[n] = email.header.make_header(email.header.decode_header(b))
unless 'b' is an ASCII-only string, it isn't going to work.
--
Changes by R. David Murray rdmur...@bitdance.com:
--
assignee: - r.david.murray
stage: - test needed
type: - behavior
versions: +Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11584
SilentGhost ghost@gmail.com added the comment:
100k is, apparently, not enough on my system (linux2). test_crashers now fails.
Are any system-specific details needed?
--
nosy: +SilentGhost
___
Python tracker rep...@bugs.python.org
New submission from Clive Darke clive.da...@qa.com:
Python 3.2 version attached
--
assignee: docs@python
components: Documentation
files: parrot.c
messages: 131246
nosy: cdarke, docs@python
priority: normal
severity: normal
status: open
title: Documentation 1.8 shows Python 2 example
Clive Darke clive.da...@qa.com added the comment:
1.8. Keyword Parameters for Extension Functions
Here is an example module which uses keywords, based on an example by Geoff
Philbrick (philbr...@hks.com):
The example which follows will not compile on Python 3.
--
SilentGhost ghost@gmail.com added the comment:
10**6 on the other hand seem to do the job
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11383
___
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Hmm, this kind of macros make it difficult to step line by line in a debugger.
From this point of view, an inlined function would be better, I'm not sure if
this can have a performance impact though.
--
nosy:
Brian Curtin br...@python.org added the comment:
I'm not seeing those warnings anymore, so I think the patch can be ignored.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10535
___
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11582
___
___
Python-bugs-list mailing
New submission from Ray.Allen ysj@gmail.com:
I guess there is a typo in the source of this function:
Python/pythonrun.c: get_codec_name()
diff -r 48970d754841 Python/pythonrun.c
--- a/Python/pythonrun.cThu Mar 17 17:06:27 2011 +0800
+++ b/Python/pythonrun.cThu Mar 17
New submission from Clive Darke clive.da...@qa.com:
In the PyMethodDef struct, METH_VARARGS | METH_KEYWORDS works fine.
METH_KEYWORDS on its own gives:
SystemError: Bad call flags in PyCFunction_Call. METH_OLDARGS is no longer
supported!
METH_KEYWORDS on its own tested OK on 2.6 and 2.7,
Changes by Antoine Pitrou pit...@free.fr:
--
assignee: - haypo
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11586
___
___
1 - 100 of 184 matches
Mail list logo