James Lu added the comment:
well, filter() could take the function not lambda x:not x
james
On Tue, Jul 23, 2013 at 12:23 PM, Eric V. Smith rep...@bugs.python.orgwrote:
Eric V. Smith added the comment:
Since it would be the same as not value, I can't imagine this would be
added
New submission from James Lu:
dis.dis fails on one letter strings.
dis.dis(t)
Traceback (most recent call last):
File pyshell#26, line 1, in module
dis.dis(t)
File C:\python 25\lib\dis.py, line 44, in dis
disassemble_string(x)
File C:\python 25\lib\dis.py, line 111
New submission from James Lu:
if you assign a lambda to a object and call it,you get this:
Traceback (most recent call last):
File pyshell#21, line 1, in module
n.__div__(3)
TypeError: lambda() takes exactly 2 arguments (1 given)
The full test is here:
n = num()
n.__div__
function lambda
Changes by James Lu jam...@gmail.com:
--
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18474
___
___
Python-bugs-list mailing
James Lu added the comment:
2.5,new-style
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18474
___
___
Python-bugs-list mailing list
Unsubscribe
James Lu added the comment:
instance,assinged during __init__
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18474
___
___
Python-bugs-list
James Lu added the comment:
Also,there were some bugs, but after I fixed them, it would only work if I did
this:
n.__div__(n,3)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18474
James Bennet added the comment:
I have observed this bug under CentOS 5.9 using the version of
python-setuptools from the official CentOS repository. -ba is not a valid
option for that version of RPM. I am able to get further by installing the
rpm-build package.
--
nosy
New submission from James Lu:
http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/SFMT/index.html#dSFMT
You might want to use a better algorithm
--
components: Library (Lib)
files: dSFMT-src-2.2.1.zip
messages: 192469
nosy: James.Lu
priority: normal
severity: normal
status: open
title
Changes by James Lu jam...@gmail.com:
--
nosy: -James.Lu
type: - enhancement
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18386
___
___
Python
Changes by James Socol me+pyb...@jamessocol.com:
--
nosy: +jamessocol
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9883
___
___
Python-bugs-list
James Saryerwinnie added the comment:
I confirmed the issue in tip. One of the issues with the original patch is
that it modifies the tokeneater method used by getblock which won't work
if the first token is any of the special cased tokens in the original patch
('@', 'def', 'class'). I've
James O'Cull added the comment:
We have more information on this bug here. It's SSL v2 related when pushing to
IIS.
http://stackoverflow.com/a/16486104/97964
Here's a paste from the StackOverflow answer:
I found a few ways of dealing with this issue:
To fix this server-side
James O'Cull added the comment:
I appreciate the response all the same. Thanks for taking the time to look at
it, Antoine.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17948
James Pye added the comment:
Thinking about this again.. perhaps a better approach would be to force the
embedder to define the symbol in their binary.
That is, libpython.x doesn't define Py_FatalError. The binary that links in
libpython defines it.
(and a me too on Jonathan's comments
James Pye added the comment:
Considering the API changes necessary for adding qualname, perhaps a better
solution would be to just start using the qualname instead of the function's
basename--co_name is the qualname. This would offer an automatic improvement
to the readability of coverage
New submission from David James:
Lib/argparse.py [1] doesn't mention a license in it. Could you please add a
license to it?
According to the argparse project [2], argparse is licensed under the Python
license. Chromium OS uses argparse. If you would add information about the
license
James Kesser added the comment:
My approach was just as outlined in the first few paragraphs here, just naming
loggers for each module using __name__:
http://docs.python.org/2/howto/logging.html#logging-advanced-tutorial
If this is not recommended the documentation should be updated
James Kesser added the comment:
Thanks for quick response!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17407
___
___
Python-bugs-list mailing
New submission from James Kesser:
I believe I have come across a bug with RotatingFileHandler in
logging/handlers.py
The attached script shows that when you are logging using RotatingFileHandler
pointed at the same file from multiple logger instances, it works at first
showing logging events
New submission from James Lu:
x=y
y=x
x=y
print x
x
print y
x
It should raise a RuntimeError
--
components: None
messages: 174086
nosy: James.Lu
priority: normal
severity: normal
status: open
title: Error call
type: performance
versions: Python 2.6
Changes by James Lu jam...@gmail.com:
--
versions: -Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16352
___
___
Python-bugs-list
James Lu added the comment:
srry
--
resolution: invalid - rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16352
___
___
Python-bugs-list
James Teh added the comment:
This issue is much nastier than it seems when dealing with character sets that
contain multi-byte characters in Python 2.7 on Windows. For example, on a
Japanese system:
1. The ANSI code page is cp932 and Python 2.7 will return the TEMP environment
variable
Changes by James Lu jam...@gmail.com:
--
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14667
___
___
Python-bugs-list
Changes by James Lu jam...@gmail.com:
--
resolution: - works for me
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14667
___
___
Python-bugs-list
James Salt added the comment:
This diff shows a correction of the documentation to reflect the name for the
csv file used in the implementation - this change seemed like the easiest and
simplest thing to do and avoids potential backwards incompatibility issues.
--
nosy: +James.Salt
New submission from James Hutchison:
This might even be a bug I've stumbled upon but I'm listing it as an
enhancement for now.
I really feel that relative imports in Python should just work. Regardless of
the __name__, I should be able to import below me. Likewise, it should work
even
James added the comment:
It turns out I don't really understand how frame objects work. My patch can
crash python if you do this:
class A:
... def f(*args):
... args = 1
... print(super())
...
A().f()
python: Objects/typeobject.c:6516: super_init: Assertion
James added the comment:
Sorry, I wasn't very clear. super() currently works by assuming that self is
the first entry in f_localsplus, which is defeated, for example, by doing:
class A:
... def f(self):
... del self
... super()
...
A().f()
Traceback (most recent
New submission from James Hutchison:
Windows 7 64-bit, Python 3.2.3
This is a very odd issue and I haven't figured out what caused it. I have a
python script that runs continuously. When it receives a request to do a task,
it creates a new thread (not a new process), does the task, then sends
James Hutchison added the comment:
This is the traceback I was getting where it was just a script that simply made
an SMTP connection then closed it. This fails before it attempts to connect to
the server.
Traceback (most recent call last):
File C:\tmp\manysmtptest.py, line 8, in module
James Hutchison added the comment:
That makes no sense. Why does:
s = socket.socket()
s.bind(('',50007))
s.listen(1);
s.close();
fix the issue then?
Re-opening, this issue should be understood because having such an operation
randomly fail is unacceptable for a production system. How does
New submission from James Hutchison:
One issue I've encountered is someone else's software setting PYTHONPATH to
their install directory of python. We have some old software that installs and
uses python 2.3 scripts and unfortunately this prevents the IDLE shortcuts for
newer versions
James Hutchison added the comment:
It's from the example.
http://docs.python.org/library/socket.html#example
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15779
James Hutchison added the comment:
The firewall is disabled for my machine.
So the options are:
1. Port was in-use: possible except that is normally a different error
2. Port was firewalled: firewall was disabled
3. Port mis-use: not likely because this wouldn't be random
4. Port
James Hutchison added the comment:
I can connect to all of the IPs for my server without issue.
Found this:
Another possible reason for the WSAEACCES error is that when the bind function
is called (on Windows NT 4.0 with SP4 and later), another application, service,
or kernel mode driver
Changes by James Hutchison jamesghutchi...@gmail.com:
--
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15779
___
___
Python
James Hutchison added the comment:
Looks to me like python grabs an outgoing port number via unrandom means and if
it happens to map to a port taken by a service that demands exclusive access,
then it returns the WSAEACCESS error instead of WSAEADDRINUSE. Because this is
a fairly new feature
Changes by James Hutchison jamesghutchi...@gmail.com:
--
components: +Windows
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15779
___
___
Python
James added the comment:
I've attached a patch that I think fixes the variable arguments problem, and
changes the SystemErrors that can be obtained by misusing super() into
RuntimeErrors (I assume that's more appropriate?). There are three more
SystemErrors I'm not sure about: super
New submission from James:
For example:
Python 3.2.2 (default, Feb 10 2012, 09:23:17)
[GCC 4.4.5 20110214 (Red Hat 4.4.5-6)] on linux2
Type help, copyright, credits or license for more information.
class A:
... def f(*args):
... print(super().__repr__())
...
A().f
New submission from James Hutchison:
Following code deadlocks on Windows 7 64-bit, Python 3.2.3
If you have a pool issue a map operation over an empty iterable then try to
join later, it will deadlock. If there is no map operation or blah in the code
below isn't empty, it does not deadlock
James King ja...@agentultra.com added the comment:
How about a working test instead? Let me know if it looks right.
--
Added file: http://bugs.python.org/file26267/set_abc_coverage.patch
___
Python tracker rep...@bugs.python.org
http
New submission from James King ja...@agentultra.com:
I'm working on increasing the line-coverage of the tests for the Set ABC in the
collections.abc module.
I encountered something a little funky IMO that I'm not sure is an issue or
bug... but the __and__ method passes a generator object
James Kyle b...@jameskyle.org added the comment:
I think Ned does have some good points regarding the minimal impact a reversion
would have.
The most poignant point is that /Library/ on OS X is not a user controlled
directory whereas ~/.local is. If ~/.local exists and has packages installed
New submission from James Kyle b...@jameskyle.org:
This behavior is present on OS X 10.7 and framework builds.
In this case, the /Library/Python/version paths are included in every
install.
I would consider this behavior non-standard as in most manual python installs
only that installations
James Kyle b...@jameskyle.org added the comment:
Am I missing something or were the problems delineated in issue #4865 solvable
by simply sys.path.append(/Library/Python/2.7/site-packages)?
What would the process be for reopening this issue for discussion?
I'm not sure this is the right way
James Kyle b...@jameskyle.org added the comment:
Fair enough. Thanks!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15048
___
___
Python-bugs
James Henstridge ja...@jamesh.id.au added the comment:
One problem I can see with using a fixed offset tzinfo for localtime is that it
might confuse people when doing date arithmetic. For example:
d = datetime.localtime() + timedelta(days=7)
While it will give a correct answer
James Oakley jf...@funktronics.ca added the comment:
Ok, here's a patch with a test and documentation updates.
--
Added file:
http://bugs.python.org/file25617/cpython-urllib_urlopen_cadefault.patch
___
Python tracker rep...@bugs.python.org
http
James Oakley jf...@funktronics.ca added the comment:
Ok, perfect. I submitted a copy of the agreement.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14780
James Lu jam...@gmail.com added the comment:
thanks!
james
On Thu, Apr 26, 2012 at 1:02 AM, Brian Curtin rep...@bugs.python.orgwrote:
Brian Curtin br...@python.org added the comment:
James, since you attached a Windows executable I'll assume that's the
platform you're on.
Try
James Oakley jf...@funktronics.ca added the comment:
load_verify_locations() is not available in Python 2.x. It was added in 3.x.
Also, there is no way to load a directory-based certificate store at all in
Python 2.x, which is why the bug was opened
James Oakley jf...@funktronics.ca added the comment:
Fair enough. What about a patch to handle a directory store passed through the
ca_certs parameter? As it stands now, it's impossible to load the
distribution-supplied cert store on openSUSE
James Oakley jf...@funktronics.ca added the comment:
Something like this perhaps?
--- a/Lib/urllib/request.py Fri May 11 13:11:02 2012 -0400
+++ b/Lib/urllib/request.py Fri May 11 11:03:02 2012 -0700
@@ -135,16 +135,19 @@
_opener = None
def urlopen(url, data=None, timeout=socket
James Henstridge ja...@jamesh.id.au added the comment:
Benjamin: if you are after a use case for this feature, see
https://code.djangoproject.com/ticket/15901
In Django, there are multiple database backends, each of which currently catch
the adapter's DatabaseError and reraise it as Django's
Changes by James Henstridge ja...@jamesh.id.au:
--
type: behavior - enhancement
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12029
___
___
Python
New submission from James Oakley jf...@funktronics.ca:
OpenSSL provides a method, SSL_CTX_set_default_verify_paths(), for loading a
default certificate store, which is used by many distributions.
In openSUSE, the default store is not a bundle, but a directory-based store,
which
James Oakley jf...@funktronics.ca added the comment:
Here's the patch for Python 3.
--
Added file:
http://bugs.python.org/file25534/python-3.2.3-ssl_default_certs.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14780
James Henstridge ja...@jamesh.id.au added the comment:
The documentation for ABCMeta.register() says that it makes the other class a
virtual subclass. That would make the ABC a virtual base class.
So whether the current behaviour is correct depends on whether you consider a
virtual base
James Hutchison jamesghutchi...@gmail.com added the comment:
See attached, which will open a zipfile that contains one file and reads it a
bunch of times using unbuffered and buffered idioms. This was tested on windows
using python 3.2
You're in charge of coming up with a file to test
James Lu jam...@gmail.com added the comment:
1,looked for python IDLE
2.NO python
#.use text editor (hard)
james
On Wed, Apr 25, 2012 at 2:17 AM, Martin v. Löwis rep...@bugs.python.orgwrote:
Martin v. Löwis mar...@v.loewis.de added the comment:
Please structure your bug report as follows
New submission from James Lu jam...@gmail.com:
No IDLE 3.26
need badly!
High prriority
--
components: IDLE
files: python.exe
messages: 159243
nosy: James.Lu
priority: normal
severity: normal
status: open
title: No IDLE
type: resource usage
versions: Python 3.2
Added file: http
James Hutchison jamesghutchi...@gmail.com added the comment:
In the patch:
This:
+except AttributeError:
+pass
should be:
+except:
everything inside except statement
Checking for the AttributeError is very slightly slower. Not by a lot, but I
think if we're going
James Hutchison jamesghutchi...@gmail.com added the comment:
@pitrou
You can just delete my original post. I'll repost an edited version here for
reference
original post with paths removed:
This is an issue for me (Python 3.2). I have a custom pool that sends arguments
for a function call
James Hutchison jamesghutchi...@gmail.com added the comment:
Shouldn't reduce_pipe_connection just be an alias for reduce_connection in unix
so that using reduce_pipe_connection would work for both win and unix? My
understanding after looking at the code is that reduce_pipe_connection isn't
James Hutchison jamesghutchi...@gmail.com added the comment:
This is an issue for me (Python 3.2). I have a custom pool that sends arguments
for a function call over a pipe. I cannot send another pipe as an argument.
Tim's workaround also does not work for me (win xp 32bit and 64bit)
From
James Hutchison jamesghutchi...@gmail.com added the comment:
err, is it possible to edit out those file paths? I didn't intend them to be in
the message. I'd appreciate it if someone with the privileges to do so could
remove them.
--
___
Python
James Hutchison jamesghutchi...@gmail.com added the comment:
I presume you mean in 3.2? Have you looked at the source code for that
decorator? It's fundamentally a try/except but with a lot more unnecessary
bloat than is needed for caching a single int result from a function with no
arguments
New submission from James Hutchison jamesghutchi...@gmail.com:
Tested on 3.2
Note that I noticed that Decimal is supposed to be faster in 3.3 but I thought
I would bring this to light just in case its still relevant
Decimal hashing is very slow, even for simple numbers. I found by caching
James Hutchison jamesghutchi...@gmail.com added the comment:
If I increase the cycles increased 10x with 3.2 I get:
int: 0.421313354492
Decimal: 24.20299983024597
CachingDecimal: 1.7809998989105225
The sample you have provided is basically what I'm using. See attached
What about worst
James Hutchison jamesghutchi...@gmail.com added the comment:
100x should be e100
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14478
New submission from James Pickering jamespi...@googlemail.com:
If you run pkgutil.iter_zipimport_modules with a prefix parameter, and the
module in question is a package, then the prefix parameter is ignored.
The most visible symptom of this is when running pkgutil.walk_packages for a
zipfile
New submission from James Lekas le...@sonic.net:
logging.Formatter.format() creates a cache called exc_text with a copy of the
traceback text which it uses for all log handlers (I think). When this cache
is set, format() does not call formatException to format the
exception/traceback data
James Sanders bistromath...@gmail.com added the comment:
I've submitted a patch that just uses save_global to pickle Ellipsis and
NotImplemented, so the resulting pickle should be unpicklable anywhere. I'm
completely new to the C API so not sure if the way I am building python strings
New submission from James Sanders bistromath...@gmail.com:
At present, the built-in constants Ellipsis (...) and NotImplemented cannot be
pickled. Perhaps there is a good reason for this, but the only discussion I
can find is at msg108957, where it is stated that these values (along
New submission from James Hutchison jamesghutchi...@gmail.com:
In python is currently there a way to elegantly throw an error if a variable is
already in the current scope?
For example:
def longfunc(self, filename):
FILE = open(filename);
header = FILE.readline();
... bunch
James Hutchison jamesghutchi...@gmail.com added the comment:
For starters, this would be most efficient implementation:
def unique(varname, value, scope):
assert(not varname in scope);
scope[varname] = value;
Usage:
unique('b', 1, locals());
print(b);
But you can't put that in a loop
James B skilletau...@gmail.com added the comment:
I have encountered this issue(python 2.7) with respect to positional arguments
that begin with a dash (linux/ bash).
In the following example, the parser requires three positional arguments. I
attempted to encase the arguments in single-quotes
James C. Ahlstrom jahl...@gmail.com added the comment:
For completeness, I checked other versions of Python. The example zip file
fails in Python 3.1, but succeeds in Python 3.2.2. The patch for 3.2.2 removed
the check for correct comment length, but substituted no further check
New submission from James Classen jclas...@gmail.com:
I notice that, in versions 2.7 and 3.2 on Windows XP (haven't tested any other
versions or platforms), the following statements in the interpreter work as
documented:
'%x' % 17
'%o' % 17
and output '11' and '21' respectively, as I expect
James Classen jclas...@gmail.com added the comment:
I didn't see section 4.6.2 of the library for 3.2 documentation, only section
5.6.2 of the 2.7 docs. So this is an invalid issue.
--
resolution: - invalid
status: open - closed
___
Python tracker
James C. Ahlstrom jahl...@gmail.com added the comment:
Problem was reported on 2.7. I will check in detail this weekend. Please
stand by.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1757072
James C. Ahlstrom jahl...@gmail.com added the comment:
I grabbed a 2.7.2 zipfile.py, and my original comments stand. If there is a
garbage at end of file patch, I can't find it; please provide a line number
or a hint. The user at yale.edu reports that the patch works. Here is a diff
of my
James C. Ahlstrom ahlstro...@users.sourceforge.net added the comment:
I received a bug report from a user. He had a zip file created by Mac OS
10.5.8 that the zipfile module claimed was not a valid zip file. The traceback
went to function _EndRecData(fpin). The file had a valid comment
James Polley jamezpol...@gmail.com added the comment:
It looks like the first release that had epub support was 1.0; docs.python.org
is still using 0.6.7, according to the footer on the bottom of the page.
I suspect that this is (A) pending the upgrade to 1.0.0, which is (B) more
difficult
James Polley jamezpol...@gmail.com added the comment:
So http://bitbucket.org/birkenfeld/sphinx/issue/140/ has now been closed;
sphinx happily builds epub.
However, the python docs are still not available for download in epub format
from http://docs.python.org/download.html, which
James C. McPherson j...@opensolaris.org added the comment:
While using LD_LIBRARY_PATH might be ok for a quick run by hand,
it's preferable to use an RPATH when linking for more long term
usages.
--
nosy: +jmcp
___
Python tracker rep
James Burgess jamestreborburg...@gmail.com added the comment:
Can't Fix that is not true.
I've just fixed this in 2.7 with a trivial change to subprocesss.py, I think
it'd work in over versions too.
Note that type shenanigans are already in play in _get_handles, it's looking at
the types
James Y Knight f...@users.sourceforge.net added the comment:
YAGNI. Nobody has needed sys.build_platform yet. (And no, sys.platform isn't
it, since that's been fixed at linux2 approximately forever). Why do you think
people would suddenly start needing to know the build-time kernel version now
James Y Knight f...@users.sourceforge.net added the comment:
configure_linux2.python3.2.patch
It would probably be more future-proof to use linux*), not linux3) in the
case expression.
--
___
Python tracker rep...@bugs.python.org
http
James Y Knight f...@users.sourceforge.net added the comment:
Well, except maybe if you plan to write applications working only on Python
= 2.7.3? ... this version is not released yet.
No, of course I don't plan on writing new code that checks sys.platform ==
'linux2'. That's ridiculous.
I
James Y Knight f...@users.sourceforge.net added the comment:
M.A., your comments do not make sense in the context of Linux. It does not
actually require porting -- Linux 2.6.39 to Linux 3.0 is no more disruptive
than Linux 2.6.38 to Linux 2.6.39. *Except* that python ill-advisedly exported
James Y Knight f...@users.sourceforge.net added the comment:
Sure, you can compile and run Python on both versions of Linux, but
what if your application uses features that are only present in Linux
3.0 and later ?
This comment is making me think you've missed just how irrelevant kernel
James Y Knight f...@users.sourceforge.net added the comment:
I will backport the fix to 2.7 and 3.2.
Uh, wait, so does that mean you're *not* going to do the
compatibility-preserving thing and force sys.platform to stay linux2 even when
python is built (BUILT! not run!) on a machine where
James Y Knight f...@users.sourceforge.net added the comment:
Oh wow, so it depends on the *build* time major version? That's really not
useful at all for linux 2.x and 3.x; there is nothing useful anyone can
possibly do with the distinction between platform == linux2 and platform ==
linux3
James Hutchison jamesghutchi...@gmail.com added the comment:
I would like to add in windows, input now adds a \r at the end which wasn't
in 3.1. It doesn't do it in idle. This is using just the regular console window
that opens up when you double click. I'm guessing this is related
New submission from James Hutchison jamesghutchi...@gmail.com:
When upgrading from Python 3.1 to Python 3.2 I noticed that when my program
closed it printed out a non-consequential AttributeError Exception. My program
had a custom class that replaced stdout and stderr for use in a piped
James Hutchison jamesghutchi...@gmail.com added the comment:
You are right, when I add:
def flush(self):
pass;
the error goes away.
When I have this:
def flush():
pass;
I get:
Exception TypeError: 'flush() takes no arguments (1 given)' in
__main__.FlushFile object
301 - 400 of 572 matches
Mail list logo