New submission from
Andrew Gaul
:
Documentation claims int, API uses Py_ssize_t.
--
components: Documentation
files: pytuple_size.patch
messages: 55718
nosy: gaul
severity: minor
status: open
title: PyTuple_Size
New submission from Andrew Nissen:
Revision 53293 appears to have missed some of the logic inherent in the
previous code. There also appears to be problems with the way that the
dup2 calls are made that can result in a behavior different then
intended under a number of circumstances
Andrew Nissen added the comment:
This patch (subprocess.fix_fileno.udiff) made against subprocess.py
(Revision 55604)appears to give the desired behavior
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/
New submission from Andrew Stromnov:
Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pstats
>>> ps = pstats.Stats(&quo
New submission from Andrew Moise:
I expected subprocess.list2cmdline() to convert my list of arguments
into a command line which results in behavior equivalent to the Unix
exec() functions -- that is, that I can safely pass arbitrary characters
to it and it'll make it such that those chara
Andrew McNamara added the comment:
Seems okay to me. I had a quick look at the examples section, and it
shows a use like the one I mention, but I wonder if the section on
dialects should quote the specific examples I mention?
_
Tracker <[EMAIL PROTEC
Changes by Andrew Grover :
--
nosy: -Andrew.Grover
___
Python tracker
<http://bugs.python.org/issue6560>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andrew Jewett added the comment:
Proposed solution and patch to follow. Please let me know if I am posting it
in the wrong place.
The main problem with shlex is that the shlex interface is inadequate to handle
unicode. Specifically it is no longer feasible to provide a list of every
Andrew Jewett added the comment:
Not to get side-tracked, but on a related note, it would be nice if there was a
python module which defined sets of unicode characters corresponding to
different categories (similar to the categories listed here:
http://www.fileformat.info/info/unicode
Andrew Jewett added the comment:
> That can be done programmatically using the unicodedata module.
> The regex module (that will hopefully be include in 3.3) is
> also able to match characters that belongs to specific categories.
Ezio: Thanks. (New to me, actually) Is this what
New submission from Andrew Wilkins :
I've written an extension using Py_LIMITED_API, and I've created a type using
PyType_FromSpec with the slot "Py_sq_length" defined. The slot is not being
picked up, i.e. len(MyType()) fails. I can see that tp_as_sequence has not been
New submission from Andrew Dalke :
In Issue3069, Arnaud Delobelle proposed support for multiple values to
set.intersection() and set.union(), writing "Intersection is optimized by
sorting all sets/frozensets/dicts in increasing order of size and only
iterating over elements in the sma
Andrew Dalke added the comment:
My belief is that the people who use set.intersection with more than two terms
are 1) going to pass in a list of sets, and 2) don't care about the specific
order.
To check the validity of my belief, I did a Google Code Search to find cases of
people usin
Changes by Andrew Svetlov :
--
nosy: +asvetlov
___
Python tracker
<http://bugs.python.org/issue11682>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andrew Dalke added the comment:
I confirm that under Python 2.7.2 while trying to build a 3rd-party package
(from rdkit.org) I get the error
Linking CXX shared library ../../lib/libRDBoost.dylib
ld: warning: path '/usr/local/lib/libpython2.7.a' following -L not a directory
Undefin
Andrew Bennetts added the comment:
You may be interested an existing, unittest-compatible library that provides
this: http://pypi.python.org/pypi/testscenarios
--
nosy: +spiv
___
Python tracker
<http://bugs.python.org/issue7
Changes by Andrew Svetlov :
--
nosy: +asvetlov
___
Python tracker
<http://bugs.python.org/issue10044>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Andrew Luzin :
Steps to reproduce:
1. Open IDLE
2. File -> New Window
3. Just press +
4. IDLE crashes
IDLE version: 3.2
Python version: 3.2
Tk version 8.5
Thanks!
--
components: IDLE
messages: 141620
nosy: Andrew.Luzin
priority: normal
severity: normal
status: o
Changes by Andrew Luzin :
--
type: -> crash
___
Python tracker
<http://bugs.python.org/issue12689>
___
___
Python-bugs-list mailing list
Unsubscri
Andrew Wilkins added the comment:
In _pickle.c, the load_put function calls _Unpickler_Readline, which may
prefetch data and place it after the line read in with "readline". load_put
then calls PyLong_FromString, which doesn't like the trailing data after the
'
Changes by Andrew Svetlov :
--
nosy: +asvetlov
___
Python tracker
<http://bugs.python.org/issue12850>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from andrew cooke :
http://stackoverflow.com/questions/7306522/combining-itertools-and-multiprocessing/7307078
suggests (and the idea itself seems reasonable) that it would sometimes be
useful for multiprocessing to operate correctly (ie lazily) with lazy input
(iterables
New submission from Andrew Bennetts :
ython 2.6.6 (r266:84292, Aug 24 2010, 21:47:18)
[GCC 4.4.5 20100816 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket, ssl
>&g
Changes by Andrew Bennetts :
--
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue9729>
___
___
Python-bugs-list mailing list
Unsubscri
Changes by Andrew Svetlov :
--
nosy: +asvetlov
___
Python tracker
<http://bugs.python.org/issue9609>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Andrew Svetlov :
--
nosy: +asvetlov
___
Python tracker
<http://bugs.python.org/issue9622>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andrew Bennetts added the comment:
Here's a conservative fix for Python 2.7. It replaces the attempts to call
baseclass.method with direct calls to the decorated object (i.e. replace
socket.meth(self, ...) with self._sock.meth(...)).
It also corrects a bunch of incorrect arguments
Andrew Bennetts added the comment:
> Yes, but such a rearchitecting to the socket module is out of question
> for 2.x, which is in bugfix mode.
Yes of course, which is why I made the conservative fix instead :)
--
___
Python tracker
Changes by Andrew Ziem :
--
nosy: +AndrewZiem
___
Python tracker
<http://bugs.python.org/issue7519>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Grant Andrew :
I'm attempting to use Python for the first time and am running into issues
before I'm out the door. I started with 3.2 and have worked backward
installing older versions in hopes that IDLE would load on my xp pro laptop.
After reading several th
Changes by Andrew Boettcher :
--
nosy: +Andrew.Boettcher
___
Python tracker
<http://bugs.python.org/issue1191964>
___
___
Python-bugs-list mailing list
Unsub
Changes by Andrew Svetlov :
--
nosy: +asvetlov
___
Python tracker
<http://bugs.python.org/issue10194>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andrew Vant added the comment:
At Antoine's suggestion I've written a new patch for this for 3.2, adding
support for both SSL on 563 and STARTTLS on a normal connection. A NNTP_SSL
class supports the former and a NNTP.starttls() method supports the latter. As
a side effect
Andrew Vant added the comment:
Also, Julien: Thanks for mentioning the 563-discouraged thing. I added a note
about it to the new documentation before submitting.
--
___
Python tracker
<http://bugs.python.org/issue1
Andrew Vant added the comment:
On 2 Nov 2010 at 17:05, Antoine Pitrou wrote:
> * the command-line option for the SSLContext won't work, since a
> context is a custom object, not a string; I would rework this part
> anyway, since I don't think separate options for the &quo
Andrew Vant added the comment:
On 2 Nov 2010 at 23:22, Antoine Pitrou wrote:
> I'm talking about the code under "if __name__ == '__main__'".
> Specifically the "-c" option for specifying an SSL context.
Now I feel silly. Partly because of the mista
Andrew Vant added the comment:
Here's a second version of the previous patch taking into account the errors
Antoine noticed and some odds and ends from the other comments. Specifically:
Comments fixed and tabs (I think...I hope...) all removed.
Added explicit skip to test_nntplib
Andrew Vant added the comment:
On 6 Nov 2010 at 11:48, Antoine Pitrou wrote:
> I would rename setreadermode to _setreadermode (there's no reason to
> make it public IMO). Also, I would not explicitly check "STARTTLS" in
> the capabilities. It the server doesn't
Andrew Vant added the comment:
On 6 Nov 2010 at 17:23, StevenJ wrote:
> As it stands, the nntplib can cause the cached capabilities to be
> refreshed at certain points automatically (as it should), but I think
> it should be possible for the caller of the method to also specify
>
Andrew Vant added the comment:
On 9 Nov 2010 at 18:59, Antoine Pitrou wrote:
> I have committed the patch in r86365, and I've made usenetrc
> False by default in r86366. Thanks for contributing!
Woot. I thank you.
Regarding usenetrc, the NNTP.login and NNTP.starttls documentati
New submission from Andrew Lih :
"Run Module" causes the IDLE to freeze when I start "Run Module" by pressing F5
on the keyboard. But clicking "Run Module" via "Run" on the menu bar have no
freezing issue.
Mac 10.6.6
--
components: IDLE
m
Changes by Andrew Lih :
--
title: Python 3.2 (r32:88452) F5 crashes -> Python 3.2 (r32:88452) F5 "Run
Module" freezes IDLE
___
Python tracker
<http://bugs.pytho
Andrew Lih added the comment:
I'm using the Python 3.2 Mac OS X 64-bit/32-bit x86-64/i386 Installer.
Python 3.2 (r32:88452, Feb 20 2011, 11:12:31)
[GCC 4.2.1 (Apple Inc. build 5664)] on darwin
It just freezes every time I try to paste the lines u gave me.
But I mange to edit the .py fil
Andrew Lih added the comment:
Thanks a lot Ned!
My problem is solved! Awesome!
--
status: pending -> closed
___
Python tracker
<http://bugs.python.org/issu
Changes by Andrew Svetlov :
--
nosy: +asvetlov
___
Python tracker
<http://bugs.python.org/issue3080>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andrew Svetlov added the comment:
As I see Victor has dropped OS/2 support from Python/import.c
Perhaps file Python/dynload_os2.c should be removed also.
Not sure about other dynload_* files.
--
___
Python tracker
<http://bugs.python.org/issue3
Andrew Svetlov added the comment:
Understood. Sorry.
I thought Python support only Windows and posix (Linux, BSD, MacOSX etc)
systems now, all other OSes are not maintained.
Anyway please don't care about that.
--
___
Python tracker
Changes by Andrew Svetlov :
--
nosy: +asvetlov -Christophe Simonis
___
Python tracker
<http://bugs.python.org/issue6715>
___
___
Python-bugs-list mailin
Changes by Andrew Svetlov :
--
versions: +Python 3.3 -Python 3.2
___
Python tracker
<http://bugs.python.org/issue6715>
___
___
Python-bugs-list mailing list
Unsub
Changes by Andrew Svetlov :
--
nosy: +Christophe Simonis
___
Python tracker
<http://bugs.python.org/issue6715>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Andrew Svetlov :
--
nosy: +asvetlov
___
Python tracker
<http://bugs.python.org/issue11236>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Andrew Svetlov :
--
nosy: +asvetlov
___
Python tracker
<http://bugs.python.org/issue7839>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Andrew Svetlov :
--
nosy: +asvetlov
___
Python tracker
<http://bugs.python.org/issue5863>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andrew Svetlov added the comment:
As I can see cygwin's unlink_nt uses Nt* functions family (NtSetInformationFile
etc) which are part of Windows DDK.
Do you like to use them or prefer SDK ones (say SetFileInformationByHandle)?
In second case python unlink can borrow deletion schema
Changes by Andrew Svetlov :
--
versions: +Python 3.3 -Python 2.7, Python 3.2
___
Python tracker
<http://bugs.python.org/issue7443>
___
___
Python-bugs-list mailin
Andrew Svetlov added the comment:
FYI: implementation of unlink already has multiple calls for unicode version to
process symlinks. Ansi version is the simple DeleteFileA call.
Now we have different behavior for unicode and ansi variants as I can see.
Now I'm working on unlink implementa
New submission from Andrew Sommerville :
Around line 1509 in Python/import.c, function "find_module", the importer is
trying to fail with "No module named...". It is possible for "fp" to be NULL
and "fdp" (the return value) to be non-NULL, which call
Changes by Andrew Svetlov :
--
nosy: +asvetlov
___
Python tracker
<http://bugs.python.org/issue11703>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from andrew cooke :
Hi,
In general, registering a class with an ABC is equivalent to making it a
subclass (isinstance and issubclass are patched through ABCMeta). However,
this does not work for exceptions (see example below, where exception is not
caught).
This doesn't
Andrew Schaaf added the comment:
This patch (to 86665)...
* adds buffering to send_response_only
* adds flush_headers and uses it in end_headers and
CGIHTTPRequestHandler.run_cgi
* tests {send_error,send_response_only,send_header} using a write-counting wfile
* improves the docs
Also, I
Changes by Andrew McNamara :
--
nosy: +andrewmcnamara
___
Python tracker
<http://bugs.python.org/issue10515>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Andrew Svetlov :
--
nosy: +asvetlov
___
Python tracker
<http://bugs.python.org/issue10576>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Andrew Svetlov :
--
nosy: +asvetlov
___
Python tracker
<http://bugs.python.org/issue10667>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Andrew Dalke :
doctest.html Section 24.2.5 "Unittest API" says:
def load_tests(loader, tests, ignore):
tests.addTests(doctest.DocTestSuite(my_module_with_doctests))
return test
That last line should be "return tests"
--
assignee: d.
Changes by Andrew Svetlov :
--
nosy: +asvetlov
___
Python tracker
<http://bugs.python.org/issue10740>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Andrew Dalke :
complex("nan") raises "ValueError: complex() arg is a malformed string" while
complex(float("nan")) returns (nan+0j). This was reported in
http://bugs.python.org/issue2121 with the conclusion "wont fix".
com
Andrew Dalke added the comment:
Well that's ... interesting. While I compiled 2.7 and was looking at the 2.7
code my tests were against 2.6.
Python 2.7 (trunk:74969:87651M, Jan 2 2011, 21:58:12)
[GCC 4.2.1 (Apple Inc. build 5664)] on darwin
Type "help", "copyright&quo
Andrew Brown added the comment:
This bug trigger can be simplified down, see my attached bug_simplified.py
The problem seems to be in deque_count(). What's happening is that after the
rotations, the 16 items reside in the last 16 slots of one block.
In deque_count()'s for loop,
Changes by Andrew Svetlov :
--
nosy: +asvetlov
___
Python tracker
<http://bugs.python.org/issue11067>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Andrew Dunbar :
--
nosy: +hippietrail
___
Python tracker
<http://bugs.python.org/issue1602>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andrew Nissen <[EMAIL PROTECTED]> added the comment:
In reference to Dustin's entry: That's the point; the expected behavior
is that subprocess should write data to the named files, without the
fix, it doesn't. With the subprocess module as it stands, there are a
number o
Andrew Azarov <[EMAIL PROTECTED]> added the comment:
tested:
Python 2.5.2 (r252:60911, Jun 24 2008, 16:40:26)
[GCC 4.2.1 20070719 [FreeBSD]] on freebsd7
FreeBSD tomcat 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52
UTC 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC
New submission from Andrew Dalke <[EMAIL PROTECTED]>:
I wrote a buggy PNG parser which ended up doing several file.read(large
value). It causes a MemoryError, which was strange because the file was
only a few KB long.
I tracked it down to the implementation of read(). When given
Andrew Dalke <[EMAIL PROTECTED]> added the comment:
I tested it with Python 2.5 on a Mac, Python 2.5 on FreeBSD, and Python
2.6b2+ (from SVN as of this morning) on a Mac.
Perhaps the memory allocator on your machine is making a promise it can
Andrew Dalke <[EMAIL PROTECTED]> added the comment:
You're right. I mistook the string implementation for the list one
which does keep a preallocated section in case of growth. Strings of
course don't grow so there's no need for that.
I tracked the memory allocatio
Andrew Dalke <[EMAIL PROTECTED]> added the comment:
FreeBSD is why my hosting provider uses. Freebsd.org calls 2.6 "legacy"
but the latest update was earlier this year.
There is shared history with Macs. I don't know the details though. I
just point out that the
New submission from Andrew R. <[EMAIL PROTECTED]>:
I am confused by the socket docs for Python 3000. It says to pass a
string through socket.send or socket.sendall, however, it does not seem
to account for the ASCII to Unicode transition. Trying to send an
ordinary Python 3k string t
Andrew R. <[EMAIL PROTECTED]> added the comment:
http://docs.python.org/dev/3.0/library/socket.html
The examples at the bottom also add to the confusion.
Also, changed title to be friendlier (failure? Mistake, more likely) and
changed type to no selection.
--
title: Socket Pyt
Andrew Trick <[EMAIL PROTECTED]> added the comment:
Mercurial will not work for anyone in a large company without this
fix. I appreciate the patch, but hope its released soon. I did try the
patch with Mercurial, but now I'm getting different error. I'm not
sure if its related
Andrew Dalke <[EMAIL PROTECTED]> added the comment:
I also have this problem. (2.5 msi installer under Win2K with a non-
admin account granted admin privs). Python installs just fine under
C:\ (instead of C:\Python25) but then I run into problems installing
the win32 extensions.
Sea
Andrew Dalke <[EMAIL PROTECTED]> added the comment:
Yes, that installed Python 2.6 into the correct location (C:\Python26
instead of into the root directory).
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.pytho
New submission from Andrew McNamara <[EMAIL PROTECTED]>:
In python 2, re.escape() works with either str or unicode, but in
python 3, re.escape() no longer works correctly with the bytes type.
--
components: Regular Expressions
messages: 72309
nosy: andrewmcnamara
severity:
Andrew McNamara <[EMAIL PROTECTED]> added the comment:
The attached "re_escape.py" is a (somewhat crappy) fix for re.escape()
Added file: http://bugs.python.org/file11340/re_escape.py
___
Python tracker <[EMAIL PROTECTED]>
<http://
Changes by Andrew McNamara <[EMAIL PROTECTED]>:
--
nosy: +andrewmcnamara
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3747>
___
_
Andrew McNamara <[EMAIL PROTECTED]> added the comment:
Will do, although I'm slightly concerned that my "bytes" version of the
function is about 50% slower than the "str" version. I can see why, I
just can't think of a way to do it any faster. There's
Changes by Andrew McNamara <[EMAIL PROTECTED]>:
Added file: http://bugs.python.org/file11352/re_escape-patch
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.pytho
Andrew McNamara <[EMAIL PROTECTED]> added the comment:
On further testing, sometimes the str version is faster, sometimes the
bytes version is faster. Never more than about 50% one way or the
other, so probably not worth worrying about, although I still don't
really like the imp
Andrew McNamara <[EMAIL PROTECTED]> added the comment:
I don't think it's possible to say whether it's preformance critical -
I can certainly image use cases such as parser generators where its
speed could be noticed.
I tried building a version using regular expressio
Andrew McNamara <[EMAIL PROTECTED]> added the comment:
I meant "I can certainly imagine use cases..."
In case it's not clear, I think the implementation in the patch is
"good enough" (unless someone can suggest any obvious optimisations).
If someone can prove
Andrew McNamara <[EMAIL PROTECTED]> added the comment:
>Looks fine, except I used frozenset for the _alphanum* variables and
>reverted to double quotes like the rest of the file. Submitted as r66366.
All good. Thankyou.
___
Python tracker <[
Andrew Dalke <[EMAIL PROTECTED]> added the comment:
I'm still undecided on if this is a bug or not. The problem occurs even
when I'm not reading "data from a file of an unknown size." My example
causes a MemoryError on my machine even though the file I'm
New submission from Andrew Bennetts <[EMAIL PROTECTED]>:
http://bugs.python.org/issue1683368 changed object.__init__ so that
rejects args/kwargs. This change should be mentioned in the "What's New
in Python 2.6" document, probably under the "Porting to Python 2.6&
New submission from Andrew Stribblehill <[EMAIL PROTECTED]>:
When I partially apply a function using functools.partial(), the
resultant function doesn't have the same name as the original function
(it has no __name__) and its docstring is that of functools.partial()
rather than
New submission from Andrew Grover :
RDS is a reliable datagram protocol used by Oracle clusters for inter-process
communication. It is in the Linux kernel, and has a defined address family
number. Its use is identical to UDP, except the address family is 21, and the
type is SOCK_SEQPACKET
New submission from andrew cooke :
There are two related issues here. The first is, I think, a simple bug:
When I try to register a function as a subclass of an ABC I get the error:
TypeError: issubclass() arg 2 must be a class or tuple of classes
Looking at the code -
http
New submission from Andrew Hays :
[{}]*3 should produce a list of dictionaries that are 3 length long, which it
does. However, one would expect that if you assign something to the keyword
'abc' in the first dicitonary (e.g., x[0]['abc'] = 'def') that the other
d
New submission from Andrew Dalke :
In Python 2.6 and Python 2.7a2+, I can't socket.recv_into(a byte array
instance).
I get a TypeError which complains about a "pinned buffer". I have only an
inkling of what that means. Since an array.array("b") works there, and
Andrew Hays added the comment:
Ah, my apolgogies, I didn't realize that. I suppose I didn't look deeply
enough into the situation. I just realized that it worked that way with
dictionaries, but by the same right, x=[[]]*3 would create [[], [], []] and if
I said x[0][0]=1 then it
Andrew Dalke added the comment:
Since I see the change to "test needed", I've attached a diff against Python
2.6's test_socket.py. I would have generated one against the 2.7 version in
subversion but that test doesn't exit.
--
keywords: +patch
Added fil
New submission from Andrew Clegg :
The fnmatch module has a cache of translation between glob patterns and
compiled regular expressions. However this cache is never emptied; only added
to. I am writing a python program which as part of its execution checks
millions of unique globs - this
201 - 300 of 3160 matches
Mail list logo