Changes by HiroakiKawai ka...@apache.org:
--
nosy: +kawai
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4769
___
___
Python-bugs-list mailing list
Changes by HiroakiKawai ka...@apache.org:
--
nosy: +kawai
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3613
___
___
Python-bugs-list mailing list
Martin v. Löwis mar...@v.loewis.de added the comment:
We should really start maintaining a specification of the pickle
format(s). Pickle is designed to be independent of the Python version,
although protocol extensions may be added over time. In such a
specification, it would say that the format
Cédric BRINER bri...@infomaniak.ch added the comment:
Do you encounter any errors or weird behaviors while using nfs url?
Do you mean: Do I have problem using the python module in conjunction of
urlparse ?
No, because, I'm not yet using it. But I would like to do it. And I find
it strange that
Marc-Andre Lemburg m...@egenix.com added the comment:
On 2009-01-18 22:59, Mark Dickinson wrote:
Mark Dickinson dicki...@gmail.com added the comment:
Looks good to me.
I'm not in a position to test with 16-bit wchar_t, but I can't see why
anything would go wrong. I think we can take
New submission from HiroakiKawai ka...@apache.org:
The documentation says io.TextIOWrapper wraps io.BufferedIOBase raw
stream. In the code, io.TextIOWrapper.read(),
io.TextIOWrapper._read_chunk() calls buffer.read1() which seems
expecting buffer to be an instance of io.BufferedReader. I'm not
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
Note, this has been ported to py3k in http://svn.python.org/view?
view=revrev=68543
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3582
New submission from HiroakiKawai ka...@apache.org:
xml.sax.saxutils.XMLGenerator._write tests the argument by
isinstance(text, str), but this is problematic in Python 3.0.
XMLGenerator accepts encoding and the produced file is encoded by that
encoding, i.e., the XML is a binary sequence. So
Mark Hammond mhamm...@users.sourceforge.net added the comment:
Given bug 4120, this seems the most appropriate resolution...
--
resolution: - out of date
status: open - closed
___
Python tracker rep...@bugs.python.org
Tarek Ziadé ziade.ta...@gmail.com added the comment:
positive feedbacks on python-ideas, so I'll start to write the patches.
targets :
- smtplib.SMTP
- imaplib.IMAP4
- ftplib.FTP
first patch : smtplib
(will do ftplib and imaplib as well, then propose this enhancement to
python-dev)
Muayyad Alsadi als...@ojuba.org added the comment:
same thing
[als...@pc1 ~]$ python
Python 2.5.2 (r252:60911, Sep 30 2008, 15:41:38)
[GCC 4.3.2 20080917 (Red Hat 4.3.2-4)] on linux2
Type help, copyright, credits or license for more information.
import sqlite3
cn=sqlite3.connect(':memory:')
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
note, this has been ported to Py3k in http://svn.python.org/view?
view=revrev=68458
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4336
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
Note, this has been ported to py3k in http://svn.python.org/view?
view=revrev=68736
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4929
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
Hi,
I'm reawakening this because http://bugs.python.org/issue4879 needs to
be ported to py3k.
In py3k, a socket.fileobject() is still created with bufsize(0),
although now the reasoning is different:
def __init__(self, sock,
New submission from Somelauw somel...@yahoo.com:
f = Fraction()
f.a = 5
f.__slots__
('_numerator', '_denominator')
f.a
5
f.__dict__
{}
When I create my own object, this doesn't happen.
class Slots:
__slots__ = (slot1, slot2)
a = Slots()
a.slot3 = 6
Traceback (most
New submission from Frédéric Sagnes speedup+pyt...@gmail.com:
Objects contained in a multiprocessing.Queue object are not comming out
of the queue in the same order as they went in. For instance, if I put
in object1, object2 and object3 in this very time sequence from multiple
processes, they
Antoine Pitrou pit...@free.fr added the comment:
Ok, I've just tried. While it fails in Python 2.5.2, it works in 2.6.1
and in trunk (what will become 2.7). So I suggest you upgrade to 2.6.1,
or simply drop the BEGIN TRANSACTION statement in this particular case.
--
resolution: -
Antoine Pitrou pit...@free.fr added the comment:
Indeed, read1() is not documented as a standard method of either IOBase,
RawIOBase or BufferedIOBase. I suggest that it becomes a standard method
of IOBase, with a default implementation simply calling read(n).
It also means unbuffered stdio as
Changes by Antoine Pitrou pit...@free.fr:
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4996
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from 0x666 vasiliauskas.agn...@gmail.com:
I think something wrong with implementation of multiprocessing module.
I`ve run this very simple test on my machine (core 2, vista):
import multiprocessing as mul
from time import time
def f(x):
return x*x
if __name__ == '__main__':
Changes by Jesse Noller jnol...@gmail.com:
--
assignee: - jnoller
nosy: +jnoller
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4999
___
___
Jesse Noller jnol...@gmail.com added the comment:
Attached is a patch+test for this condition, which is not used if we're
running on windows.
Added file: http://bugs.python.org/file12794/issue_3321.patch
___
Python tracker rep...@bugs.python.org
Changes by Jesse Noller jnol...@gmail.com:
Removed file: http://bugs.python.org/file10861/_multiprocessing_connection.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3321
___
Changes by Jesse Noller jnol...@gmail.com:
Removed file: http://bugs.python.org/file11007/test_multiprocessing.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3321
___
Changes by Jesse Noller jnol...@gmail.com:
Removed file: http://bugs.python.org/file11485/another_solution.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3321
___
Jesse Noller jnol...@gmail.com added the comment:
Curse you hard-tabs. Here's the new patch w/ fixed comment
Added file: http://bugs.python.org/file12795/issue_3321.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3321
Changes by Jesse Noller jnol...@gmail.com:
Removed file: http://bugs.python.org/file12794/issue_3321.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3321
___
Javen Wang jave...@gmail.com added the comment:
I'm quite certain that the makefile is generated before the make
program is launched in separated process. Follow is the original code
where the makefile is created (line 14) and a task is put in queue (line
19). It's executed in the main thread
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
Okay, here is a second patch.
open now verifies the 'mode' string properly, and all uses of a 'fp'
turn off the CRT error handling temporarily, while holding the GIL
Added file: http://bugs.python.org/file12796/crterror.patch
Jesse Noller jnol...@gmail.com added the comment:
Removed raise TestSkip per code review from bpeterson
Added file: http://bugs.python.org/file12797/issue_3321.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3321
Changes by Jesse Noller jnol...@gmail.com:
Removed file: http://bugs.python.org/file12795/issue_3321.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3321
___
Jesse Noller jnol...@gmail.com added the comment:
Committed patch as r68768 to python-trunk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3321
___
___
Benjamin Peterson benja...@python.org added the comment:
Well, the Windows bot is failing but not from test_fileio, so I'll go
ahead and merge it. r68767.
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4991
Changes by Jesse Noller jnol...@gmail.com:
--
assignee: - jnoller
nosy: +jnoller
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5000
___
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
@jnoller: Hey, you removed my patch! My patch used fstat() in
Connection constructor, whereas your just check file descriptor bounds
in the poll() method. And what is the save new argument? Is it
related to this issue?
Jesse Noller jnol...@gmail.com added the comment:
The save was needed for the Py_BLOCK_THREADS call.
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3321
___
Jesse Noller jnol...@gmail.com added the comment:
Ugh, I didn't mean to chuck your original patch, but it also wasn't
correct for win32
Additionally, if you close the handle from underneath it, it behaves
properly:
obj.poll()
Traceback (most recent call last):
File stdin, line 1, in
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
The multiprocessing module indeed has some overhead:
- the processes are spawned when needed. Before you perform performance
timings, you should warm up the Pool with a line like
pool.map(f, range(mul.cpu_count()))
(starting a
Jesse Noller jnol...@gmail.com added the comment:
My results don't match yours. (8 cores, Mac OS/X):
testing multiprocessing on 8 cores --
10 elements map() time 0.0444118976593 s
10 elements pool.map() time 0.0366489887238 s
10 elements pool.apply_async() time
Jesse Noller jnol...@gmail.com added the comment:
Closing as not an issue.
--
resolution: - invalid
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5000
___
Benjamin Peterson benja...@python.org added the comment:
The problem is that Fraction inherits from a class without __slots__
(Rationale), so it's useless. I suggest that the __slots__ be removed or
Rationale.register() is used instead of inheritance.
--
assignee: - jyasskin
nosy:
Changes by Benjamin Peterson benja...@python.org:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5000
___
___
Changes by Jesse Noller jnol...@gmail.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3321
___
Changes by Jesse Noller jnol...@gmail.com:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4065
___
___
Python-bugs-list
STINNER Victor victor.stin...@haypocalc.com added the comment:
Why don't you check the file descriptor directly in connection_new()?
conn-handle is read only and so can't be changed before the call to
poll(). So other methods will also be protected and the error will
be raised earlier.
Jesse Noller jnol...@gmail.com added the comment:
That's an enhancement - not a bad idea, I just noticed that this issue is
pretty close to issue http://bugs.python.org/issue3311 as well.
___
Python tracker rep...@bugs.python.org
STINNER Victor victor.stin...@haypocalc.com added the comment:
jnoller issue #3311
Oh, I forgot this issue :-) But the fix doesn't solve #3311, because
it is disabled on Windows and only protect poll() method.
___
Python tracker rep...@bugs.python.org
Jesse Noller jnol...@gmail.com added the comment:
Oh, I agree - I think we should update 3311 with the enhancement to move
the check to connection_new
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3321
Benjamin Peterson benja...@python.org added the comment:
IOBase doesn't even define read(), though! I think we should make it
part of BufferIOBase.
--
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4996
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4996
___
___
Zlm zemari...@gmail.com added the comment:
I reinstalled Python to C:\Program Files\Python\ (I wrote this path in
the installer) and IDLE works fine. I can access the Python folder by
going to C:\Programas\Python.
Then, I unninstalled and installed again to C:\Programas\Python. IDLE
doesn't
Antoine Pitrou pit...@free.fr added the comment:
Reopening, since sys.stdin is actually broken in unbuffered mode:
$ ./python -u
Python 3.1a0 (py3k:68756, Jan 19 2009, 01:17:26)
[GCC 4.3.2] on linux2
Type help, copyright, credits or license for more information.
import sys
sys.stdin.read(1)
Martin v. Löwis mar...@v.loewis.de added the comment:
Kristjan, please understanding that setting the CRT error handling is
not thread-safe, and trying to do it in a fine-grained way can cause all
kinds of crazy races. With your patch, the following sequencce of events
is possible if two threads
New submission from Jesse Noller jnol...@gmail.com:
Right now, the multiprocessing code is littered with statements like:
assert self._popen is None, 'cannot start a process twice'
assert self._parent_pid == os.getpid(), \
'can only start a process object created
Changes by Jesse Noller jnol...@gmail.com:
--
nosy: +jnoller
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4708
___
___
Python-bugs-list mailing
Changes by Jesse Noller jnol...@gmail.com:
--
assignee: - jnoller
nosy: +jnoller
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3807
___
___
Changes by Jesse Noller jnol...@gmail.com:
--
assignee: - jnoller
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3272
___
___
Python-bugs-list
Changes by Jesse Noller jnol...@gmail.com:
--
assignee: - jnoller
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3273
___
___
Python-bugs-list
Changes by Jesse Noller jnol...@gmail.com:
--
assignee: - jnoller
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3283
___
___
Python-bugs-list
Antoine Pitrou pit...@free.fr added the comment:
Here is a patch.
Added file: http://bugs.python.org/file12798/unbuffered-stdin.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4705
___
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
I understand thread-safe. This usage is safe from Python threads
because it is all done in the context of the GIL.
It is, however, unsafe if some other random thread is also modifying
these settings during runtime.
In your
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
Ooops, ignore my last comment.
I just realized the point you were making Martin, and it doesn't
involve rogue threads at all.
Hmm, back to the drawing board, I suppose.
___
Python tracker
STINNER Victor victor.stin...@haypocalc.com added the comment:
Short example to reproduce the problem:
---
import io, os
fd = os.open(/etc/issue, os.O_RDONLY)
raw = open(fd, rb, buffering=0)
text = io.TextIOWrapper(raw, line_buffering=False)
print(text.read(1))
---
Traceback (most recent call
Benjamin Peterson benja...@python.org added the comment:
On Mon, Jan 19, 2009 at 11:59 AM, STINNER Victor rep...@bugs.python.org wrote:
STINNER Victor victor.stin...@haypocalc.com added the comment:
Short example to reproduce the problem:
---
import io, os
fd = os.open(/etc/issue,
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
The patch works when the unicode contains only ascii, but crashes with
the following input:
def f(hehe): return 42
...
f(**{u'hehe': 1})
42
f(**{u'héhé': 1})
Segmentation fault
The two PyString_AsString(keyword) calls are now wrong
STINNER Victor victor.stin...@haypocalc.com added the comment:
I don't understand the motivation of having two different methods
for raw streams: read1() and read(). I would prefer to have only a
method read() (because read is the most common name, whereas read1()
is only used on Python3),
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
What is the rationale for swallowing all socket exceptions except
Connection reset by peer in __exit__? In any case, it is better to use
errno.ECONNRESET instead of literal 54.
Note that SMTP.quit() calls SMTP.close(),
Tarek Ziadé ziade.ta...@gmail.com added the comment:
What is the rationale for swallowing all socket exceptions except
Connection reset by peer in __exit__?
I am catching just the error that raises if the connection is closed
when calling quit()
In any case, it is better to use
Changes by Tarek Ziadé ziade.ta...@gmail.com:
Added file: http://bugs.python.org/file12799/ftplib.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4972
___
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp:
I got compiler warning conn_poll takes too many arguments.
I hope the attached patch is right fix.
--
components: Library (Lib)
files: pipe_connection_c.patch
keywords: patch
messages: 80204
nosy: ocean-city
severity:
0x666 vasiliauskas.agn...@gmail.com added the comment:
Thanks for quick response and for informative answers, especially
thanks to Antoine Pitrou/Amaury Forgeot.
p.s.
By seting bigger range - range(15) and elements = 1000, I was able to
get speed-up factor up to 1.8. Wow, I`m amazed :-)
Good
Antoine Pitrou pit...@free.fr added the comment:
I support Amaury's suggestion (actually I implemented it in the io-c
branch). Resetting the decoder when seeking to the beginning of the
stream is a reasonable way to deal with those incremental decoders for
which the start state is something else
Mark Dickinson dicki...@gmail.com added the comment:
I believe that __slots__ was used for performance (memory, speed) reasons
here rather than for preventing random attribute assignments. But maybe
inheriting from Rational invalidates those reasons as well...
--
nosy:
Mark Dickinson dicki...@gmail.com added the comment:
The Decimal class has the same issue in py3k (but not in the trunk).
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4998
___
Changes by Gabriel Genellina gagsl-...@yahoo.com.ar:
--
nosy: +gagenellina
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4448
___
___
Martin v. Löwis mar...@v.loewis.de added the comment:
I understand thread-safe. This usage is safe from Python threads
because it is all done in the context of the GIL.
No, it is not. See below.
In your example, T2 doesn't hold the GIL and so, this is the scenario
that I believe you are
Martin v. Löwis mar...@v.loewis.de added the comment:
Ooops, ignore my last comment.
(sorry, too late - I only read this after responding to the earlier one)
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4804
Changes by Georg Brandl ge...@python.org:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4922
___
___
Python-bugs-list
New submission from Daniel Frnake dfra...@wellohorld.com:
On Linux and presumably on other POSIX-like systems, socket.getfqdn()
doesn't work if a system resolves its own FQDN using DNS rather than
/etc/hosts.
My system's FQDN is 'fugue.tank.wellohorld.com'. My /etc/hosts is empty
except for
Changes by Daniel Franke dfra...@wellohorld.com:
--
components: +Extension Modules -Library (Lib)
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5004
___
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Sorry, but _PyUnicode_AsDefaultEncodedString returns either a borrowed
reference (if
errors==NULL) or a new reference (if errors!=NULL).
In either case it's wrong to DECREF the string when you simply take the
buffer's
address:
New submission from Terry J. Reedy tjre...@udel.edu:
1. Several examples start with
from pysqlite2 import dbapi2 as sqlite3
Traceback (most recent call last):
File pyshell#23, line 1, in module
from pysqlite2 import dbapi2 as sqlite3
ImportError: No module named pysqlite2
I presume that
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
On Windows only, since r68768. Patch seems OK to me.
--
assignee: - jnoller
nosy: +amaury.forgeotdarc, jnoller
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5002
Muayyad Alsadi als...@ojuba.org added the comment:
can you please tell me how to detect the version so that my application
will not crash on Python 2.5.2 (r252:60911, Sep 30 2008, 15:41:38)
which of these values should I use
apilevel = '2.0'
sqlite_version = '3.5.9'
New submission from STINNER Victor victor.stin...@haypocalc.com:
Copy/paste of message79330 from the issue #4862:
--
f = open('utf16.txt', 'w', encoding='utf-16')
f.write('abc')
3
f.close()
f = open('utf16.txt', 'a', encoding='utf-16')
f.write('def')
3
f.close()
STINNER Victor victor.stin...@haypocalc.com added the comment:
I opened a different issue (#5006) for the duplicate BOM in append
mode.
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4862
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
Bug is reproductible with:
* Python 2.5 : charset utf-8-sig and utf-16 for codecs.open()
* trunk : charset utf-8-sig, utf-16 and utf-32 for codecs.open()
* py3k : charset utf-8-sig, utf-16 and utf-32 for open()
With utf-7 or
New submission from ak akte...@gmail.com:
https://www.orange.sk/ is served by an Oracle HTTPS server, and works
with firefox or opera but not urllib2.
code snippet:
import cookiejar
import urllib2
cookiejar = cookielib.LWPCookieJar()
opener =
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Arghh! Decimal is NOT supposed to inherit or register with numbers.
Guido has pronounced on this and we've discussed it multiple times. See
the comments in numbers.py which were supposed to serve as a reminder.
Decimals
Jesse Noller jnol...@gmail.com added the comment:
checked in, trunk, r68787 tests pass. Sorry about that, don't have a
windows machine handy and I hadn't had a chance to check the buildbots
___
Python tracker rep...@bugs.python.org
Jesse Noller jnol...@gmail.com added the comment:
r68788 on py3k
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5002
___
New submission from STINNER Victor victor.stin...@haypocalc.com:
The following code must display 3 instead of 0:
---
with open(x, w) as f:
f.write(xxx)
with open(x, a) as f:
print(f.tell())
---
The example works with Python 2.x, because file object is implemented
using the FILE
Changes by Antoine Pitrou pit...@free.fr:
--
priority: - release blocker
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5008
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
Patch _including a test_:
+ if (append)
+ lseek(self-fd, 0, SEEK_END);
--
keywords: +patch
Added file: http://bugs.python.org/file12803/fileio_append.patch
___
Python
Changes by STINNER Victor victor.stin...@haypocalc.com:
Removed file: http://bugs.python.org/file12803/fileio_append.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5008
___
Changes by Terry J. Reedy tjre...@udel.edu:
--
title: 3.0 sqlite doc: most refers to pysqlite2, use 2.x syntax. - 3.0 sqlite
doc: most examples refer to pysqlite2, use 2.x syntax.
___
Python tracker rep...@bugs.python.org
Gregory P. Smith g...@krypto.org added the comment:
backported to release30-maint in r68796.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3826
Changes by Gregory P. Smith g...@krypto.org:
Removed file: http://bugs.python.org/file12157/issue4428-io-bufwrite-gps02.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4428
___
Changes by Gregory P. Smith g...@krypto.org:
Added file: http://bugs.python.org/file12806/issue4428-io-bufwrite-gps04.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4428
___
Changes by Gregory P. Smith g...@krypto.org:
Removed file: http://bugs.python.org/file12158/issue4428-io-bufwrite-gps03.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4428
___
1 - 100 of 101 matches
Mail list logo