baykus wrote:
Hi
I am looking for one of those experimental languages that might be
combination of python+basic. Now thta sounds weird and awkward I know.
The reason I am asking is that I always liked how I could reference-
call certain line number back in the days. It would be interesting to
Saul Spatz wrote:
W. eWatson wrote:
I'm looking a program that I'm not real familiar with that uses an
after_cancel method and after_id variable. Are they related to some
particular widget and what is there function? Perhaps they are related
to a Cancel button on a widget?
Saul Spatz wrote:
W. eWatson wrote:
I'm looking a program that I'm not real familiar with that uses an
after_cancel method and after_id variable. Are they related to some
particular widget and what is there function? Perhaps they are related
to a Cancel button on a widget?
Stef Mientki wrote:
BJörn Lindqvist wrote:
SCREEN 13
PSET 160,100,255
Maybe, who is able to understand such nosense without a lot of apriori
knowledge ?
You already needed that sort of knowledge to be able to use a computer back
then... ;-)
--
JanC
--
En Sat, 18 Apr 2009 19:39:24 -0300, Pavel Panchekha
pavpanche...@gmail.com escribió:
On Apr 18, 4:01 pm, Piet van Oostrum p...@cs.uu.nl wrote:
But you can give each object its own class and then put the special
methods in that class:
def create_special_object(bases, *args):
... if not
On Apr 18, 2:25 pm, KoolD sourya...@gmail.com wrote:
Hey all,
I need to convert a C code to python please help me figure out how to
do
it.
Suppose the C program's like:
typedef struct _str
{
int a;
char *b;
int c;}str;
int main()
{
str mbr;
On Apr 17, 9:41 pm, Steven D'Aprano st...@remove-this-
cybersource.com.au wrote:
On Fri, 17 Apr 2009 18:22:49 -0700, Pavel Panchekha wrote:
I've got an object which has a method, __nonzero__ The problem is, that
method is attached to that object not that class
a = GeneralTypeOfObject()
On Apr 18, 7:48 am, Filip Gruszczyński grusz...@gmail.com wrote:
So, do you know some good methods to prevent myself from just starting
coding (which I like very much) and do some thinking about the problem
(which I like a little less ;-))?
There are a lot of ideas, some you've seen earlier
in
grocery_stocker wrote:
I'm just really not seeing how something like x63 and/or x61 gets
converted by 'print' to the corresponding chars in the following
output...
[cdal...@localhost oakland]$ python
Python 2.4.3 (#1, Oct 1 2006, 18:00:19)
[GCC 4.1.1 20060928 (Red Hat 4.1.1-28)] on linux2
Type
Trip Technician wrote:
although it's not homework (how can i prove that...?) i am still happy
with just hints
+++
we want to express integers as sums of squares. (repeated squares are
allowed)
most numbers have one minimal representation e.g. 24=16+4+4, some have
two or more e.g. 125 = 121+4
Aaron Brady wrote:
On Apr 18, 2:25 pm, KoolD sourya...@gmail.com wrote:
Hey all,
I need to convert a C code to python please help me figure out how to
do
it.
Suppose the C program's like:
typedef struct _str
{
int a;
char *b;
int c;}str;
int main()
{
On Sat, 2009-04-18 at 13:48 +0200, Filip Gruszczyński wrote:
So, do you know some good methods to prevent myself from just starting
coding (which I like very much) and do some thinking about the problem
(which I like a little less ;-))?
The Method (If you can call it that) that I use is to
On Fri, 2009-04-17 at 21:16 +0100, Martin P. Hellwig wrote:
So in other words, just lay out the data which makes the most sense
to
you, the pain of recreating SQL like logic is there no matter what
layout you choose.
I have to say that given the amount of pain most people seem to go
through
On Fri, 17 Apr 2009 16:07:10 -0600, Michael Torrie wrote:
Aahz wrote:
Why do you want to do that? Before you answer, make sure to read this:
http://www.u.arizona.edu/~rubinson/copyright_violations/
Go_To_Considered_Harmful.html
Somebody better tell the Linux kernel developers about that!
On Sun, 2009-04-19 at 05:08 +, Zaphod wrote:
Well, most of the Linux kernel is written in C and while there *is* a
jump (often JMP) in most asms, you should only do so if you really
need
to. JSR (jump sub routine) is a better idea in many (most?) cases.
Have to say that I feel jump is
I've done a writeup on some of the basic routines I frequently use here
http://codecodex.com/wiki/index.php?title=Useful_MySQL_Routines.
--
http://mail.python.org/mailman/listinfo/python-list
Hello, I use Ubuntu 8.10 and the latest version of Python.
I started programming wxPython on my Windows computer,
but now I have access to my ubuntu box, and want wxPython for 2.6
All the debs in the package manager are for 2.5, not 2.6
How can I Install wxPython for Python 2.6 without
Terry J. Reedy tjre...@udel.edu added the comment:
I was surprised when this came up with another issue.
Why does CPython behave that way? Accident or justified decision?
--
nosy: +tjreedy
___
Python tracker rep...@bugs.python.org
Terry J. Reedy tjre...@udel.edu added the comment:
As I said on the python-ideas discussion, which definitely did *not*
come to consensus, I disagree with this suggestion. To repeat and
expand on what I said there:
1. 'unsubscriptable' could instead be changed to 'not subscriptable'.
2.
Terry J. Reedy tjre...@udel.edu added the comment:
You should have searched for sys argv since sys.argv is not 'a
word'. However, that would not have worked since multiple word
searching seems to be broken, at least sometimes. In particular,
searching for 'argv' gives several hits, including
Brian Quinlan br...@sweetapp.com added the comment:
http://codereview.appspot.com/40126/diff/1/2
File Lib/_pyio.py (left):
http://codereview.appspot.com/40126/diff/1/2#oldcode370
Line 370: def _checkReadable(self, msg=None):
On 2009/04/17 21:11:15, Antoine Pitrou wrote:
Not sure why you're
Georg Brandl ge...@python.org added the comment:
Thanks for the report, searching for dotted identifiers is implemented
now in the trunk version of Sphinx.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
Thomas Heller thel...@ctypes.org added the comment:
Correction: The patch has 3000 lines, not 300.
And I think that the 'My_Unicode_...' functions can be removed because
they are not used anywhere. I have to check this.
--
___
Python tracker
Georg Brandl ge...@python.org added the comment:
I concur. I changed unsubscriptable to not subscriptable in r71696.
--
nosy: +georg.brandl
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
Trundle andysmu...@hammerhartes.de added the comment:
The problem is that `type_setattro()` sets the new __new__ attribute
in the type's dict (through `PyObject_GenericSetAttr()`), but the
corresponding slot will never be updated if the new __new__ is a
PyCFunction.
The affected code in
Mark Dickinson dicki...@gmail.com added the comment:
Fixed in r71698.
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5781
Nick Coghlan ncogh...@gmail.com added the comment:
Guido didn't actually say whether or not this was originally just an
implementation accident or a deliberate design choice - he just
indicated that this was a case where caching the bound method should be
disallowed because it could change the
Mark Dickinson dicki...@gmail.com added the comment:
Fixed in py3k in r71701.
Some of this fix can be backported to 2.7.
--
versions: -Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1869
Mark Dickinson dicki...@gmail.com added the comment:
Closing this. I think 2.7 is fine as it is.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1869
Lorenz Quack d...@amberfisharts.com added the comment:
In addition to the above mentioned functions I found these to be
undocumented:
PyUnicode_DecodeUTF7
PyUnicode_DecodeUTF7Stateful
PyUnicode_EncodeDecimal
PyUnicode_EncodeUTF7
PyUnicode_FromFormat
PyUnicode_FromString
Mark Dickinson dicki...@gmail.com added the comment:
I take that back. The 2.7 round still has some problems.
Here's one example:
x = 5e15 + 1 # exactly representable as an IEEE 754 double
x
5001.0
round(x)
5002.0
Another nit:
round(-0.0, 0) # should retain the
New submission from Stéphane stephane.bisin...@gmail.com:
I have an issue with the wait() method of Condition which doesn't seem
to respect the timeout it is given: I couldn't create a simple example
to reproduce the bug, because if I try to do something small and simple
everything works as
Robin Bryce robinbr...@gmail.com added the comment:
In the upstream 1.0.6, the ParseError exception has a position attribute
that contains a (line, column) tuple.
That's fine for errors in the xml domain. Its not enough if I'm
reporting errors in the application domain - where I wont have a
Lorenz Quack d...@amberfisharts.com added the comment:
Ok, here is my shot at a patch for at least some of the undocumented
functions. Namely the following functions are being documented in the patch:
PyUnicode_FromFormat
PyUnicode_FromFormatV
PyUnicode_FromString
New submission from seesee cthe...@gmail.com:
It seems python 2.6.2 (at least under Windows, I have not tested other
platforms) does break the len function on the reversed iterator:
Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit
(Intel)] on
win32
Type help, copyright,
Mark Dickinson dicki...@gmail.com added the comment:
Unassigning myself.
Does anyone beside Raymond and me have strong opinions about how/whether
this problem should be fixed?
--
___
Python tracker rep...@bugs.python.org
Changes by Mark Dickinson dicki...@gmail.com:
--
assignee: marketdickinson -
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2531
___
___
Changes by Martin v. Löwis mar...@v.loewis.de:
--
components: -Windows
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5786
___
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
I cannot see any remarks about masking behavior. :-(
I asked on a french Windows developer channel. The answer is that the
Windows terminal uses ANSI charset even if it's possible to use
unicode. So it's a bug in Microsoft msvcrt
STINNER Victor victor.stin...@haypocalc.com added the comment:
MSDN says _ungetwch returns WEOF instead of EOF when error occurs.
Ok, I updated my patch (to use WEOF).
--
Added file: http://bugs.python.org/file13718/msvcrt_wchar-2.patch
___
Python
New submission from Aleksi Torhamo alexerion+pythonb...@gmail.com:
object.__getattribute__(super, '__bases__') crashes the interpreter.
It seems to happen at Objects/typeobject.c in type_get_bases(), when
tp_bases is NULL.
Crashing types in __builtins__ per version would seem to be:
python2.4:
Antoine Pitrou pit...@free.fr added the comment:
Hello folks,
IIUC, autoconf tries to enable SSE2 by default without asking. Isn't it
a problem for people distributing Python binaries (e.g. Linux vendors)
and expecting these binaries to work on legacy systems even though the
system on which the
Mark Dickinson dicki...@gmail.com added the comment:
A postscript: looking back at this from afar, the original error was
almost certainly due to a missing Py_CHARMASK around the arguments
to isdigit and isxdigit, and nothing to do with Unicode fullwidth digits
at all.
--
Mark Dickinson dicki...@gmail.com added the comment:
Yes, I think you're right.
Perhaps the SSE2 support should be turned into an --enable-sse2 configure
option, that's disabled by default? One problem with this is that I don't
know how to enable SSE2 instructions for compilers other than
Changes by Benjamin Peterson benja...@python.org:
--
assignee: - rhettinger
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5786
___
Georg Brandl ge...@python.org added the comment:
Raymond, this was your change in r67478 (backported to trunk in r67498).
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5786
Mark Dickinson dicki...@gmail.com added the comment:
Perhaps better to drop the SSE2 bits completely. Anybody who
actually wants SSE2 instructions in their binary can do a
CC=gcc -msse2 -mfpmath=sse configure ...
Unless there are objections, I'll drop everything involving SSE2 from
the
New submission from Brian Quinlan br...@sweetapp.com:
...in seconds-based library functions (e.g. time.sleep) and calculations
(e.g. distance = velocity * ?).
--
components: Library (Lib)
messages: 86132
nosy: bquinlan
severity: normal
status: open
title: datetime.timedelta is
Changes by Brian Quinlan br...@sweetapp.com:
--
keywords: +patch
Added file: http://bugs.python.org/file13719/totalseconds.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5788
___
Georg Brandl ge...@python.org added the comment:
Please include a proper description of your problem, and a patch
description when you post a patch.
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5788
Benjamin Peterson benja...@python.org added the comment:
Fixed in r71721.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5771
___
Brian Quinlan br...@sweetapp.com added the comment:
I did add a patch description: Adds a datetime.total_seconds attribute
- is that unclear?
The idea is that you should be able to extract the total number of
seconds in the duration i.e.
dt = datetime.timedelta(seconds=1234567.89)
Georg Brandl ge...@python.org added the comment:
I saw the patch description as well, but usually you put that
description, and perhaps a motivation as well, in the comment. That way
it's easier for people to directly see what an issue is about.
--
Benjamin Peterson benja...@python.org added the comment:
Should be fixed in r71722.
--
nosy: +benjamin.peterson
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5787
Brian Quinlan br...@sweetapp.com added the comment:
OK, a bit on motivation:
1. datetime.timedelta instances are a convenient way of representing
durations
2. datetime.timedelta instances cannot be conveniently used in many
calculations e.g. calculating distance based on velocity and time
Aarni Koskela a...@iki.fi added the comment:
The r71722 patch has several typos (replace initalize with initialize).
--
nosy: +akx
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5787
___
Aleksi Torhamo alexerion+pythonb...@gmail.com added the comment:
Just verified that r71722 fixes all the builtins, however i just noticed
that some types under module types cause segfaults too.
Under python2.7 those are: CodeType BuiltinMethodType DictProxyType
GeneratorType
Mark Dickinson dicki...@gmail.com added the comment:
SSE2 detection and flags removed in r71723. We'll see how the buildbots
fare...
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1580
Benjamin Peterson benja...@python.org added the comment:
The rest should be fixed in r71734.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5787
___
Changes by Benjamin Peterson benja...@python.org:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5787
___
___
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Guido decided that iterators should not support len() because he wanted
bool(it) to always be True.
--
resolution: - invalid
status: open - closed
___
Python tracker
Antoine Pitrou pit...@free.fr added the comment:
Uh, perhaps the behaviour wasn't optimal but breaking compatibility
between two bugfix releases isn't developer-friendly either.
While we could keep it in trunk, it sounds like the change should be
reverted in 2.6.
The backport to 2.6 was done by
Antoine Pitrou pit...@free.fr added the comment:
Is there a way to use SSE when available and x86 when it's not.
Probably, but I don't think there is any point doing so. The main
benefit of SSE2 is to get higher performance on floating point intensive
code, which no pure Python code could be
Antoine Pitrou pit...@free.fr added the comment:
The addition looks quite legitimate to me.
The only thing is that it may be better as a method (total_seconds())
rather than an attribute, given the other APIs in the datetime module.
Also, the patch lacks some unit tests.
--
nosy:
Changes by Antoine Pitrou pit...@free.fr:
--
priority: - normal
stage: - patch review
type: - feature request
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5788
___
Antoine Pitrou pit...@free.fr added the comment:
Sorry for the last comment about unit tests, they are here actually :-)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5788
___
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
The advantage is accuracy. No double rounding. This will also help the
math.fsum() function that is also susceptible to double rounding.
--
___
Python tracker
Antoine Pitrou pit...@free.fr added the comment:
The patch looks ok, thanks.
--
resolution: - accepted
stage: patch review - commit review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5734
Changes by Elliot Murphy elliot.mur...@gmail.com:
--
nosy: +statik
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1424152
___
___
Python-bugs-list
Antoine Pitrou pit...@free.fr added the comment:
Committed in r71736.
--
resolution: accepted - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5734
___
Aleksi Torhamo alexerion+pythonb...@gmail.com added the comment:
Stumbled upon a few more.
python2.4/2.5: socket.SSLType re._pattern_type weakref.ProxyType
weakref.CallableProxyType
python2.6/2.7: weakref.ProxyType weakref.CallableProxyType
python3.0: weakref.ProxyType weakref.CallableProxyType
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
It's up to you guys. I had thought to change it only for Py2.7 but
Guido probably considers it to be a bug, so possibly the backport was
justified.
--
assignee: rhettinger -
status: closed - open
Benjamin Peterson benja...@python.org added the comment:
Fixed the ones applicable to 2.7/2.6 in r71738. These fixes won't be
backported to 2.4/2.5.
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5787
New submission from Steven D'Aprano st...@pearwood.info:
In the itertools recipes section of the docs, powerset() is listed
twice.
http://docs.python.org/library/itertools.html#recipes
--
assignee: georg.brandl
components: Documentation
messages: 86155
nosy: georg.brandl, stevenjd
New submission from Steven D'Aprano st...@pearwood.info:
In the documentation for itertools, the Python equivalent to izip has
a typo:
yield yield tuple(map(next, iterables))
Obviously should only have a single yield.
http://docs.python.org/library/itertools.html#itertools.izip
--
Changes by Raymond Hettinger rhettin...@users.sourceforge.net:
--
assignee: georg.brandl - rhettinger
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5790
___
Matthew Iversen teh@gmail.com added the comment:
Skip, you were arguing in another csv issue on a NamedTupleReader that
the Reader and Writer should work in concert together.
Certainly, making this default functionality for DictWriter would
definitely make it work more in concert with
101 - 177 of 177 matches
Mail list logo