En Tue, 26 Aug 2008 11:50:04 -0300, [EMAIL PROTECTED]
[EMAIL PROTECTED] escribi�:
Hi !
I want use many comands in same python script .
I want to use openoffice and pyuno .
I try this
cmdoo=openoffice.org -accept='socket,host=localhost,port=2002;urp;'
subprocess.call(cmdoo, shell=True)
but i
En Tue, 26 Aug 2008 23:27:45 -0300, Kevin McKinley [EMAIL PROTECTED]
escribi�:
So i've complete my first program with a GUI interface. I've noticed
that everytime i click a tab or button the amount of memory the program
takes up goes up by 50-200 kb. The program will start off at 4.5mb
[EMAIL PROTECTED] wrote:
I have a list that starts with zeros, has sporadic data, and then has
good data. I define the point at which the data turns good to be the
first index with a non-zero entry that is followed by at least 4
consecutive non-zero data items (i.e. a week's worth of non-zero
En Tue, 26 Aug 2008 18:11:30 -0300, fred8865 [EMAIL PROTECTED] escribi�:
I understand that due to different arithmetic used in floating points
they are just approximations. Hence, 180/100=1 in my python interpreter.
How can I tackle this problem of inaccurate floating point numbers?
thank you
Hello everyone,
I'm trying to create custom Tkinter/Pmw widgets for my project.
After testing my widgets under Unix (Solaris), I have tried them under
Windows and I got a surprise.
The widgets came out differently.
The following simple code snippet demonstrates the difference:
root = Tk()
En Wed, 27 Aug 2008 01:15:58 -0300, aditya shukla
[EMAIL PROTECTED] escribi�:
I wanna know how can i extract path of a program whose path i have added
to
the PATH variable.
This is what i have done
import os
x=os.getenv(PATH)
print x
On Aug 23, 2:33 pm, Paddy [EMAIL PROTECTED] wrote:
Hi,
I am am falling at the first hurdle when trying to access a library
using ctypes.
I have a file libucdb.so which the file command says is shared object,
but I cannot get it to load:
Any help would be appreciated:
dmccarthy: file
On Aug 26, 12:41 am, castironpi [EMAIL PROTECTED] wrote:
On Aug 25, 11:47 pm, Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote:
On Mon, 25 Aug 2008 14:49:14 -0700, castironpi wrote:
I'm interested in the speed benefit, so you don't have to reconstruct
the entire 'record' just to
On Aug 26, 5:56 pm, Diez B. Roggisch [EMAIL PROTECTED] wrote:
Alexandru Mosoi wrote:
how can i do an atomic read+increment? something like
with lock:
old = atomic_int
atomic_int += 1
but in one operation
As above - the lock (under the assumption that it is actually a
On Aug 27, 12:03 am, Paddy [EMAIL PROTECTED] wrote:
On Aug 23, 2:33 pm, Paddy [EMAIL PROTECTED] wrote:
Hi,
I am am falling at the first hurdle when trying to access a library
using ctypes.
I have a file libucdb.so which the file command says is shared object,
but I cannot get it to
Frank Millman [EMAIL PROTECTED] writes:
Just out of interest, would the following, without a lock, be safe?
old, atomic_int = atomic_int, atomic_int+1
No I don't think so. But I'm told that in CPython, you can say
counter = iter(xrange(1000)) # some number that exceeds what
New submission from Henry Precheur [EMAIL PROTECTED]:
I tried to compile Python 3000 under OpenBSD and the compilation fails
because of a 'MemoryError':
Fatal Python error: can't create sys.path
object : MemoryError()
type: MemoryError
refcount: 4
address : 0x20abfbd08
lost sys.stderr
Henry Precheur [EMAIL PROTECTED] added the comment:
I forgot to mention, I made to following modification to configure.in so
I could compile Python 3000 on OpenBSD 4.4
--- configure.in(revision 66037)
+++ configure.in(working copy)
@@ -250,7 +250,7 @@
# On OpenBSD, select(2)
New submission from Marc-Andre Lemburg [EMAIL PROTECTED]:
The PKG-INFO file currently only provides an Authors field which is
mapped to the DistributionMetadata.get_contact() information.
However, the latter method is really meant to provide access to contact
information and not authorship,
Tarek Ziadé [EMAIL PROTECTED] added the comment:
ok I will ask for this on the ML
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2562
___
___
Python-bugs-list
Barry A. Warsaw [EMAIL PROTECTED] added the comment:
Well, if I figured out how to use Rietveld correctly, I've left some
questions for you in the review. It looks basically pretty good, so if
you could answer those questions, you can commit the change.
Should __bytes__ support be backported
Changes by Barry A. Warsaw [EMAIL PROTECTED]:
--
priority: deferred blocker - release blocker
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3663
___
Barry A. Warsaw [EMAIL PROTECTED] added the comment:
Benjamin's reviewed it, so please commit it. Is there a test for this
crasher?
--
nosy: +barry
resolution: - accepted
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3663
Antoine Pitrou [EMAIL PROTECTED] added the comment:
Should __bytes__ support be backported to 2.6?
Isn't it already there in __str__?
Or do you mean just add support for the alternate method name?
___
Python tracker [EMAIL PROTECTED]
Changes by Antoine Pitrou [EMAIL PROTECTED]:
--
components: +Interpreter Core
priority: - release blocker
type: - crash
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3685
___
Antoine Pitrou [EMAIL PROTECTED] added the comment:
Here is the same patch, but backported to 2.6.
Added file: http://bugs.python.org/file11261/isinstance26-2.patch
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2534
Barry A. Warsaw [EMAIL PROTECTED] added the comment:
yep, that's all i meant. it might not be worth it though.
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2415
___
Vincent Legoll [EMAIL PROTECTED] added the comment:
Hello,
I was searching for a bug in subprocess
module when I saw your patch.
I was implementing the exact same functionality
and mixed some of your ideas in what I use now,
which is attached...
Feel free to use it
--
nosy:
Changes by Anders J. Munch [EMAIL PROTECTED]:
--
nosy: +andersjm
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1759845
___
___
Python-bugs-list mailing
Vincent Legoll [EMAIL PROTECTED] added the comment:
Here's a clean version with doc test
enjoy !
Added file: http://bugs.python.org/file11263/pipeline.py
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3548
Changes by Antoine Pitrou [EMAIL PROTECTED]:
--
priority: - normal
versions: +Python 2.7, Python 3.1 -Python 2.6, Python 3.0
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3548
___
Raymond Hettinger [EMAIL PROTECTED] added the comment:
+1 on applying this patch right away.
For 2.6 and 3.0 to be successful, we need people to prefer to upgrade
rather than stay with 2.5. A systemic slowdown in not in the best
interests of the language moving forward.
--
nosy:
Benjamin Peterson [EMAIL PROTECTED] added the comment:
Both patches look correct to me, and I think they can be applied.
--
assignee: - pitrou
resolution: - accepted
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2534
Antoine Pitrou [EMAIL PROTECTED] added the comment:
Amaury, assuming you have tested it :-), the patch is ok to me. You can
commit.
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3651
___
New submission from Vincent Legoll [EMAIL PROTECTED]:
The subprocess.Popen() object documentation should indicate
that the stdout attribute should not be modified after
object construction. Because that won't work.
Or the attribute may be rendered read-only
from subprocess import Popen, PIPE
Antoine Pitrou [EMAIL PROTECTED] added the comment:
This is a duplicate of #3110.
--
nosy: +pitrou
resolution: - duplicate
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3149
Antoine Pitrou [EMAIL PROTECTED] added the comment:
FWIW, this is what I find on a Solaris box.
./sys/param.h:#define _SEM_VALUE_MAX INT_MAX
./sys/sysconfig.h:#define _CONFIG_SEM_VALUE_MAX 21 /* max.
value a semaphore may have */
./sys/unistd.h:#define _SC_SEM_VALUE_MAX
Changes by Dwayne Litzenberger [EMAIL PROTECTED]:
--
nosy: +dlitz
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2384
___
___
Python-bugs-list mailing
New submission from Dwayne Litzenberger [EMAIL PROTECTED]:
On Linux/ext3, filenames are stored natively as sequences of octets. On
Win32/NTFS, they are stored natively as sequences of Unicode code points.
In Python 2.x, the way to unambiguously open a particular file was to
pass the filename
Changes by Dwayne Litzenberger [EMAIL PROTECTED]:
--
components: +Library (Lib) -Windows
type: - behavior
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3688
___
Benjamin Peterson [EMAIL PROTECTED] added the comment:
Thanks for the review, Barry! Committed in r66038. Sort of backported in
r66039 by aliasing PyObject_Bytes to PyObject_Str.
--
resolution: - fixed
status: open - closed
___
Python tracker [EMAIL
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:
This is actively being discussed (and developed) in issue3187
--
nosy: +amaury.forgeotdarc
resolution: - duplicate
status: open - closed
superseder: - os.listdir can return byte strings
___
Changes by Dwayne Litzenberger [EMAIL PROTECTED]:
--
nosy: +dlitz
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3187
___
___
Python-bugs-list mailing
Ismail Donmez [EMAIL PROTECTED] added the comment:
Still fails with beta2:
import imaplib
mail=imaplib.IMAP4(mail.rtmq.infosathse.com)
Traceback (most recent call last):
File stdin, line 1, in module
File /usr/local/lib/python3.0/imaplib.py, line 185, in __init__
self.welcome =
Facundo Batista [EMAIL PROTECTED] added the comment:
Gregory... I tried to fill the path in urlunparse, and other functions
that use this started to fail.
As we're so close to final releases, I'll leave this as it's right now,
that actually fixed the bug...
Dwayne Litzenberger [EMAIL PROTECTED] added the comment:
I think Guido already understands this, but I haven't seen it stated
very clearly here:
** Different systems use different things to identify files. **
On Linux/ext3, all filenames are *octet strings* (i.e. bytes), and
*only* the
Neal Norwitz [EMAIL PROTECTED] added the comment:
This may not be a real release blocker, but I want to raise the
priority. It is a regression and we should try to fix it, especially if
it's easy.
--
priority: normal - release blocker
___
Python
New submission from Jeff Hall [EMAIL PROTECTED]:
reversed() built in is not functioning correctly with list (specifically
with len() )
l = [1,2,3,4]
rl = reversed(l)
type(rl)
type 'listreverseiterator'
vs. strings and tuples which just return 'reverse' objects
listreverseiterators apparently
Changes by Georg Brandl [EMAIL PROTECTED]:
--
assignee: - rhettinger
nosy: +rhettinger
title: reversed() not working as intended on lists - listreverseiterator has a
decreasing len()
versions: +Python 2.6, Python 3.0 -Python 2.5
___
Python tracker
Armin Ronacher [EMAIL PROTECTED] added the comment:
Just for the record. This original discussion for this bug is here:
http://article.gmane.org/gmane.comp.python.devel/96925
--
nosy: +aronacher
___
Python tracker [EMAIL PROTECTED]
New submission from Robert Schuppenies [EMAIL PROTECTED]:
sys.getsizeof returns wrong results for bool objects in Python 3000.
Although bool objects use the same datatype as long objects, they are
allocated differently. Thus, the inherited long_sizeof implementation is
incorrect. The applied
David Jones [EMAIL PROTECTED] added the comment:
I agree, longs should be correctly rounded when coerced to floats.
There is an ugly (but amusing) workaround while people wait for this
patch: Go via a string:
int(float(repr(295147905179352891391)[:-1]))
Though I assume this relies on the
New submission from Tim Hemming [EMAIL PROTECTED]:
The following line is referencing a variable d, but it should be dict:
logging.warning(Protocol problem: %s, connection reset, extra=d)
Page:- http://www.python.org/doc/2.5/lib/module-logging.html
--
assignee: georg.brandl
Benjamin Peterson [EMAIL PROTECTED] added the comment:
This has been fixed in the trunk.
--
nosy: +benjamin.peterson
resolution: - out of date
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3691
Antoine Pitrou [EMAIL PROTECTED] added the comment:
Committed in r66041. Thanks everyone.
--
resolution: accepted - fixed
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3663
Antoine Pitrou [EMAIL PROTECTED] added the comment:
Committed in r66042 and r66043.
--
resolution: accepted - fixed
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2534
___
New submission from kai zhu [EMAIL PROTECTED]:
in 3rd line, list comprehension tries to access class_attribute1 as a
global variable (code is valid in python 2.5)
class Foo(object):
... class_attribute1 = 1
... class_attribute2 = [class_attribute1 for x in range(8)]
...
Traceback (most
Changes by Nicolas Grilly [EMAIL PROTECTED]:
--
nosy: +ngrilly
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3006
___
___
Python-bugs-list mailing list
Benjamin Peterson [EMAIL PROTECTED] added the comment:
Fixed in r66047.
--
resolution: - fixed
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3651
___
New submission from Terry J. Reedy [EMAIL PROTECTED]:
In 2.5
import array
a = array.array('b', 'fox')
In 3.0
import array
a = array.array('b', 'fox')
Traceback (most recent call last):
File pyshell#2, line 1, in module
a = array.array('b', 'fox')
TypeError: an integer is required
New submission from Daniel Diniz [EMAIL PROTECTED]:
The following code leads to XXX Undetected errors in debug builds of
trunk and 3.0:
import _struct
_struct.pack_into(b8, bytearray(1), None)
Besides that, there's something fishy happening in non-debug builds:
2.6:
_struct.pack_into(b8,
New submission from Michel Salim [EMAIL PROTECTED]:
Sphinx's website stated that 0.4.3 has been released; however, the
download site only has 0.4.2. Is 0.4.2 still the latest version, or has
the source upload been accidentally omitted?
--
assignee: georg.brandl
components: Documentation
Daniel Diniz [EMAIL PROTECTED] added the comment:
I believe the problem is that list comprehensions in 3.0 have scope like
that of genexprs in 2.5, but the change was deliberate (as it also
avoids leaking of temp variables).
Compare to 2.5:
class Foo(object):
...class_attribute1 = 1
...
Henry Precheur [EMAIL PROTECTED] added the comment:
Indeed it looks like it is the source of the problem.
I created a patch to fix it.
But it looks like there is another problem, instead of crashing the
Python interpreter goes into interactive mode instead of executing the
'setup.py' script
201 - 259 of 259 matches
Mail list logo