Alex Gaynor added the comment:
Turns out this was a subtle bug in some raw memory manipulation code, which
amaury spotted.
--
resolution: -> invalid
status: open -> closed
___
Python tracker
<http://bugs.python.org/i
New submission from Alex Gaynor :
In 2.7 ast.literal_eval blows up with a set for input:
>>> import ast
>>> ast.literal_eval("{1}")
--
messages: 148897
nosy: alex
priority: low
severity: normal
status: open
title: ast.literal_eval fails
Alex Gaynor added the comment:
Patch with tests
--
keywords: +patch
Added file: http://bugs.python.org/file23859/x.diff
___
Python tracker
<http://bugs.python.org/issue13
Alex Gaynor added the comment:
There's no support for comprehensions of any sort, and confusingly limited
support for arithmetic ops, I'd like to keep the scope of this issue small,
basically backporting 90bf0631bfb8 and adding the tests (which I can also add
Alex Gaynor added the comment:
I'll chip in my 2 cents as well and say this also seems too domain specific and
not useful enough for the stdlib.
--
nosy: +alex
___
Python tracker
<http://bugs.python.org/is
Alex Gaynor added the comment:
Raymond, Antoine: I don't see your claims as contradictory, it's definitely
true that the Python standardlib has historically tried to keep reprs as being
eval-able, I think Antoine's correct that the vast majority of 3rd-party code
does not
Alex Gaynor added the comment:
For what it's worth I proposed this on -ideas a while ago, the sticking points
were what does `not in` do (no one had an answer anyone was happy with for
this), and do we need a way to override it from the other perspective (e.g. if
I want to do `Speci
Changes by Alex Gaynor :
--
nosy: +alex
___
Python tracker
<http://bugs.python.org/issue13704>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
Changes by Alex Gaynor :
--
nosy: +alex
___
Python tracker
<http://bugs.python.org/issue13703>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
Changes by Alex Gaynor :
--
nosy: +alex
___
Python tracker
<http://bugs.python.org/issue13707>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
Changes by Alex Gaynor :
--
nosy: +alex
___
Python tracker
<http://bugs.python.org/issue13697>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
Alex Gaynor added the comment:
Except, it's a totally non-scalable approach. People have vulnerabilities all
over their sites which they don't realize. Some examples:
django-taggit (an application I wrote for handling tags) parses tags out an
input, it stores these in a set to
Alex Gaynor added the comment:
Perl is so paranoid they obscure their variable names! In all seriousness,
both Perl and Ruby are vulnerable to the timing attacks, and as far as I know
the JVM is not patching this themselves, but telling applications to fix it
themselves (I know JRuby
Changes by Alex Gaynor :
--
nosy: +alex
___
Python tracker
<http://bugs.python.org/issue13723>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
Alex Gaynor added the comment:
You're seriously underestimating the number of vulnerable dicts. It has
nothing to do with the module, and everything to do with the origin of the
data. There's tons of user code that's
Alex Regueiro added the comment:
That's great, thanks.
--
___
Python tracker
<http://bugs.python.org/issue6727>
___
___
Python-bugs-list mailing list
Unsubsc
Alex Gaynor added the comment:
I don't see why this is incorrect, type(a) -> type, and object is a superclass
of type.
--
nosy: +alex
___
Python tracker
<http://bugs.python.org
Alex Leach added the comment:
I got the same test_commands fail when building a Python2.7.1 which I
downloaded yesterday; it's on an FC13 x86_64 server.
I've built python2.7 before using a similar machine, but it's not picking up my
external libraries on a Sun Grid Engine,
Alex Leach added the comment:
Hey Jason,
Thanks for replying so quickly, and on a bank holiday! :)
This has completely diverged from the original bug, but whatever..
Thanks for the C wrapper too! It's not appropriate for my build environment,
and I know no C, having only got so f
Changes by Alex Gaynor :
--
nosy: +alex
___
Python tracker
<http://bugs.python.org/issue12370>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
New submission from Alex Gaynor :
All storing immutable objects in the memo dict does is slow stuff down, due to
having a larger hash table, and on some other Python's causing hilarious levels
of GC pressure. Using http://paste.pocoo.org/show/421310/ as a benchmark,
CPython get
Alex Gaynor added the comment:
A slightly cleverer version (or less clever, depending on how you approach the
issue) that also works with tuples of immutable content.
--
Added file: http://bugs.python.org/file22499/d.diff
___
Python tracker
<h
Alex Gaynor added the comment:
Switched to using assertIs, as merwok suggested.
--
Added file: http://bugs.python.org/file22500/d.diff
___
Python tracker
<http://bugs.python.org/issue12
Alex Gaynor added the comment:
Amaury points out: this is not strictly about immutable objects, but rather
objects who's deepcopy is themselves (identity-wise), in some (rare I think)
cases this could provide a slowdown. Specifically a case of [(1, 2, 3)] *
1 would be slower, becau
Alex Garel added the comment:
May I just add that I also ran into this and give my +1 for any fix :-)
--
nosy: +alexgarel
___
Python tracker
<http://bugs.python.org/issue7
New submission from Alex Leon :
It looks like some servers using basic authentication don't include quotes
around the realm (example https://api.connect2field.com) as required by rfc
2617. urllib wont handle these requests and silently fails, but a simple change
to the reg
Changes by Alex Gaynor :
--
nosy: +alex
___
Python tracker
<http://bugs.python.org/issue12575>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
New submission from Alex Gaynor :
>From python-ideas:
introduce array.zeroes, a new classmethod that provides an alternative
constructor, its signature is zeroes(typecode, length), which allows for
preallocating an array, with a lower overhead than methods such as
array(typecode,
Alex Gaynor added the comment:
1) Yes, it address a real concern that arose during Armin's GSOC project which
has been developing a unified template compilation architecture (via the AST
module) for Django and Jinja2.
2) Asking speed questions about this is silly IMO, if compiling func
Alex Leon added the comment:
For some reason a caret went missing in the regex fix.
It should read
'realm=(["\']?)([^"\']*)\\2', re.I)
--
___
Python tracker
<
Alex Leon added the comment:
It could have a 2 phase regex match. We match the first one, and if it fails,
match the second and produce a warning.
I think producing a warning is a good idea, as it allows the programmer to know
that the implementation of basic auth they are trying to connect
Changes by Alex Gaynor :
--
nosy: +alex
___
Python tracker
<http://bugs.python.org/issue12957>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
New submission from Alex Roitman :
Importing the module with the following contents results in RuntimeError:
==
import os
pid = os.fork()
if pid == 0:
print "In the child"
else:
print "In the parent"
print "Done\n"
==
R
Alex Roitman added the comment:
I guess I am missing something here. In a complex program, everything will be
executed in some module or another. Consequently, the module that contains the
fork() call will cause the interpreter to quit.
How can this be worked around, short of placing the
Alex Roitman added the comment:
I can place it in a function. But if I execute that function from anything
other than main module, the fork() will be called while import lock is held,
one way or another. It will just happen in another module. So what
Alex Roitman added the comment:
1. If fork should not be called during import, it could raise an exception when
invoked from import. But it does not. Is that a bug then? BTW, fork during
import worked with python 2.4 just fine.
2. The whole issue7242 was devoted to work out import locks
Alex Willmer added the comment:
On 14 August 2010 21:24, Matthew Barnett wrote:
> Over to you, Alex. :-)
Et voilà, an exciting Saturday evening
http://pypi.python.org/pypi/regex/0.1.20100814
Matthew, I'm currently keeping regex in a private bzr repository. Do
you have yours in source
Alex Roitman added the comment:
gregory.p.smith: This is my use case: we had the following situation with the
test scripts at work. Each script is required to import TestApi module in
order to run the tests. That module in turn imported the module that forks,
and in the parent waits for
Alex Roitman added the comment:
I already worked around this for my use case.
For the future, it would be nice if fork() raised an exception if called during
the import, and if the documentation mentioned that forking while in import is
not allowed
Alex Roitman added the comment:
Will starting a thread while in import also be disallowed? If so, issue 7242
will also become moot...
--
___
Python tracker
<http://bugs.python.org/issue9
Changes by Alex Quinn :
--
nosy: -Alex Quinn
___
Python tracker
<http://bugs.python.org/issue4661>
___
___
Python-bugs-list mailing list
Unsubscribe:
Alex Willmer added the comment:
The re module throws an exception for re.compile(r'[\A\w]'). latest
regex doesn't, but I don't think the pattern is matching correctly.
Shouldn't findall(r'[\A]\w', 'a b c') return ['a'] and
findall(r'
Alex Willmer added the comment:
On Thu, Nov 11, 2010 at 10:20 PM, Vlastimil Brom wrote:
> Maybe I am missing something, but the result in regex seem ok to me:
> \A is treated like A in a character set;
I think it's me who missed something. I'd assumed that all backslash
patter
New submission from Alex Leach :
Hi,
I'm trying to parse the contents of tar archives (.tgz) on the fly, and failing
to do so. The tar archives in question have directory hierarchies, and only if
a TarInfo object is a file (.isreg() ) will I try and read it's contents.
I figured
Alex Leach added the comment:
Thanks! =D
On Thu, Mar 10, 2011 at 3:46 AM, R. David Murray wrote:
>
> R. David Murray added the comment:
>
> I believe you are looking for mode 'r|'.
>
> --
> nosy: +r.david.murray
> resolution: -> works for me
>
Changes by Alex Gaynor :
--
nosy: +alex
___
Python tracker
<http://bugs.python.org/issue11549>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
Changes by Alex Gaynor :
--
nosy: +alex
___
Python tracker
<http://bugs.python.org/issue11477>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
Alex Gaynor added the comment:
Yes, this is known as catastrophic backtracking, and there isn't really a
solution for it, some regexps can't be efficiently matched.
--
nosy: +alex
___
Python tracker
<http://bugs.python.o
Changes by Alex Gaynor :
--
nosy: +alex
___
Python tracker
<http://bugs.python.org/issue11682>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
New submission from Alex Gaynor :
This is related to the discussion we had at the PyCon language summit about C
vs Python function binding. If you create a partial instance and put it on a
class it doesn't create bound instances. This behavior is a tad surprising in
my view. At a mi
Alex Gaynor added the comment:
Indeed I completely missed the section at the bottom. A note in the above
section would be a useful addition.
--
___
Python tracker
<http://bugs.python.org/issue11
Changes by Alex Gaynor :
--
nosy: +alex
___
Python tracker
<http://bugs.python.org/issue11743>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
Alex Gaynor added the comment:
FWIW in PyPy we have
https://bitbucket.org/pypy/pypy/src/default/lib_pypy/disassembler.py which we
use for some of our tools.
--
nosy: +alex
___
Python tracker
<http://bugs.python.org/issue11
Changes by Alex Gaynor :
--
nosy: +alex
___
Python tracker
<http://bugs.python.org/issue9269>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
Changes by Alex Gaynor :
--
nosy: +alex
___
Python tracker
<http://bugs.python.org/issue1062277>
___
___
Python-bugs-list mailing list
Unsubscribe:
Alex Gaynor added the comment:
The C standard (and/or the POSIX one, I forget) says sqrt(-0.0) returns -0.0.
--
nosy: +alex
___
Python tracker
<http://bugs.python.org/issue11
New submission from Alex Lai :
Hi experts,
I’m wondering if anyone would look into this issue. We recently
installed Python 3.1.2 on a Solaris 10 machine. While testing numpy package,
Python crashed with the following error:
sbtorsvr391:~ $ cd /home/dcottr/local/tests
sbtorsvr391
Alex Gaynor added the comment:
It returns "PyPy" on pypy.
--
nosy: +alex
___
Python tracker
<http://bugs.python.org/issue11985>
___
___
Python-bugs-l
New submission from Alex Lai :
Hi guys,
I was knocked down by a error related to a socket library _socket.so when I
was trying to compile distribute-0.6.14:
# python3 setup.py install
Before install bootstrap.
Scanning installed packages
No setuptools distribution found
running install
Alex Gaynor added the comment:
Why not use Py_EnterRecursiveCall?
--
nosy: +alex
___
Python tracker
<http://bugs.python.org/issue12017>
___
___
Python-bugs-list m
Alex Lai added the comment:
Hi Eric,
Thank you for the reply. I installed Python 3.1.2 pre-compiled by
sunfreeware.com on one of our sparc servers.
Would you please let me know what command I should run to test the
installation?
Regard,
Alex
Alex Lai added the comment:
The test fialed on my workstation while successul on another server. Both
server has the same Pyton installation but different libc and libm version. I
plan to reinstall the OS(solaris 10 pre-release) on my workstation next week
and see how it goes.
Regards
New submission from Alex Lai :
Hi experts,
I'm new to Python. I've just successfully compiled and installed NumPy and
SciPy. When I run the tests, Numpy shows no issues:
# python3 -c "import numpy; numpy.test()"
Running unit tests for numpy
NumPy version 1.5.1
NumPy
Alex Gaynor added the comment:
This bug tracker is for filing bugs in Python itself, for support with 3rd
party libraries you should try their mailing lists or IRC channels.
--
nosy: +alex
resolution: -> invalid
status: open -> closed
___
Alex Lai added the comment:
I've installed it successfully on another server. That is enough. I haven't got
time to upgrade my workstation from s10 pre-release to latest s10 release yet.
Thanks for the information,
Alex
--
___
Pyth
Alex Lai added the comment:
I haven't get time to upgarde my workstation yet. I don't know when I'm going
to do it. I compile the software successfully on the other server. and that's
enough for me.
Thanks,
Alex
--
___
P
Alex Lai added the comment:
No bugs.
--
___
Python tracker
<http://bugs.python.org/issue12013>
___
___
Python-bugs-list mailing list
Unsubscribe:
Alex Lai added the comment:
I install the Python package compiled by sunfreeware.
Alex Lai
Senior System Support Specialist
TAG-IPM Application Support, Scotia Capital,
720 King St. West, 6th Floor,
Toronto, Ontario M5V 2T3
Tel: (416) 607-4789
-Original Message-
From: dario frascatani
Alex Rodriguez added the comment:
I didn't see this issue resolved in the changelog for 2.7.1 release. Are we
going to wait until 2.7.2 now??
--
nosy: +Alex.Rodriguez
___
Python tracker
<http://bugs.python.org/i
New submission from Alex Earl :
in test_csv.py, the follow test is declared.
def test_register_kwargs(self):
name = 'fedcba'
csv.register_dialect(name, delimiter=';')
try:
self.assertTrue(csv.get_dialect(name).delimiter, '\t')
self.ass
Alex Earl added the comment:
The internal _csv module which actually implements the reader method expects
the first parameter to be an iterable object. Since strings are iterated by
character, that is why this is occuring. So, the fix would need to be made in
the _csv module, which is a C
Alex Earl added the comment:
The patch looks good to me. The only question I have is that the previous test
that was passing a string, is the expected behavior what was being returned
before, or would it be useful to turn the string into an iterable over "
Alex Earl added the comment:
Excellent. As long as it's documented, it works for me.
--
___
Python tracker
<http://bugs.python.org/issue10602>
___
___
Pytho
Alex Rodriguez added the comment:
I downloaded "python-2.7.1-macosx10.6.dmg" file and tested if Tkinter and IDLE
still have same issue reported here and I did not find anymore this issue.
I was able to launch IDLE and create a Tkinter GUI. From my side we can resolve
and close
New submission from Alex Leone :
When using the '#' to prefix a numeric argument in format() with a '0x' or
others, the 0-width padding takes into account the '0x' characters. This is
unexpected - the 0-width should NOT take into account the prefix.
Current Be
New submission from Alex Raitz :
Clients can overwrite 'REMOTE_USER' header variable value with an arbitrary
'Remote-User' value by specifying the later after the former.
This has tricky implications when a proxy server is being used, namely that if
the proxy passes a re
Alex Raitz added the comment:
Yes, I was referring to REMOTE_USER, apologies for the conflation with
HTTP_REMOTE_USER, which was one of the HTTP headers that a proxy which we were
testing was setting.
The customer that reported this issue to us was using FireFox with Tamper Data
to set
Alex Raitz added the comment:
Per the first line of my previous comment, please ignore HTTP_REMOTE_USER.
The risk is that if the proxy does not place the user-supplied
'remote-user=VALUE1' before the proxy-supplied 'REMOTE_USER=VALUE2', wsgiref
will overload REMOTE_US
Alex Raitz added the comment:
I had previously tested it against simple_server. However, in reviewing my
test, I realized that you are correct that wsgiref headers is not misbehaving.
It appears that in simple_server, the values of remote-user and remote_user
both end up in
New submission from Alex McNerney :
Info: I have Python 2.7.1:86832 (32-bit) installed using ActiveState Tcl/Tk
8.5.9 on Mac OS X 10.6
Problem:
Whenever I try to run (from the IDLE) a Python script using the turtle module,
the window that shows up will draw anything passed to it, but it will
Alex McNerney added the comment:
It may be because the program that I am trying to run automatically exits, I do
not know yet how to keep a turtle program running (waiting for input). The only
way I know so far is to use the function "exitonclick()," but when using that,
my I cann
Alex McNerney added the comment:
Sorry to keep bothering, but running Python 2.7.1:88286 (maintenance) on
ActiveState Tcl/Tk 8.5.9 causes the idle to hang when a simple script like:
"
x = raw_input("x: ")
print x
"
is run. Is this a bug in Tcl/Tk? Looking in the logs I see
Alex McNerney added the comment:
Thank you so much for pointing out the -n option!
Hopefully the Tk 8.5.9 input issue will be solved soon enough.
Thank you both again.
I'm not sure if I'm supposed to or not, but I am marking this as closed –
seeing as the main issue has b
Alex McNerney added the comment:
solved* or rather, a workaround has been found.
--
___
Python tracker
<http://bugs.python.org/issue11075>
___
___
Python-bug
New submission from Alex McNerney :
In Python 2.7 and 2.6 (only ones I have tried), there is a bug in the turtle
module's tracer() function, when applying it to multiple turtles using the same
value.
When two turtles are defined (to draw simultaneously), and both turtles'
tracers
Alex McNerney added the comment:
To be more clear, in the sample code, the drawing animation of the red
star-spiral is smooth, whereas the drawing animation of the black star-spiral
is spasmodic.
--
___
Python tracker
<http://bugs.python.
New submission from Alex Coventry :
I feel like I must be on crack, here. I apologize if so. English version:
sorting this long list leaves in place element 580395, which is less than
element 0. Restricting to a list of just those two elements, sorting does what
I'd expect.
Alex Coventry added the comment:
No. It's 10M, gzipped. It's constructed from genome-wide association
data, which is also huge, intrinsically complex, and protected by rules
regarding research on humans. If the bug tracker won't take it do I
have an
Alex Coventry added the comment:
Oh, I guess I could make it a gzipped text file. Hang on.
--
___
Python tracker
<http://bugs.python.org/issue7915>
___
___
Pytho
Alex Coventry added the comment:
Ah, I guess I *was* on crack. Thanks for the explanation.
--
___
Python tracker
<http://bugs.python.org/issue7915>
___
___
Pytho
Alex Willmer added the comment:
I've packaged this latest revision and uploaded to PyPI
http://pypi.python.org/pypi/regex
--
___
Python tracker
<http://bugs.python.org/i
Alex Willmer added the comment:
On 17 February 2010 19:35, Matthew Barnett wrote:
> The main text at http://pypi.python.org/pypi/regex appears to have lost its
> backslashes, for example:
>
> Â Â The Unicode escapes u and U are supported.
>
> instead of:
&g
Alex Willmer added the comment:
On 22 Feb 2010, at 21:24, Matthew Barnett
wrote:
> issue2636-20100222.zip is a new version of the regex module.
>
> This new version adds reverse searching.
>
> The 'features' now come in ReStructuredText (.rst) and HTML
Thank you
Alex Willmer added the comment:
On 26 February 2010 03:20, Matthew Barnett wrote:
> Added file: http://bugs.python.org/file16375/issue2636-20100226.zip
This is now uploaded to PyPI http://pypi.python.org/pypi/regex/0.1.20100226
--
Alex Willmer
http://moreati.org.uk/b
Alex Willmer added the comment:
I've adapted the Python 2.6.5 test_re.py as follows,
from test.test_support import verbose, run_unittest
-import re
-from re import Scanner
+import regex as re
+from regex import Scanner
and run it against regex-2010305. Three tests failed, and the repo
Alex Willmer added the comment:
On 13 April 2010 03:21, Matthew Barnett wrote:
> issue2636-20100413.zip is a new version of the regex module.
Matthew, When I run test_regex.py 6 tests are failing, with Python
2.6.5 on Ubuntu Lucid and my setup.py. Attached is the output, do all
the tests p
Alex Willmer added the comment:
On 13 April 2010 18:10, Matthew Barnett wrote:
> Anyway, do:
>
> Â Â regex.match(ur"\p{Ll}", u"a")
> Â Â regex.match(ur'(?u)\w', u'\xe0')
>
> really return None? Your results suggest that they won'
Alex Willmer added the comment:
On 14 April 2010 00:33, Matthew Barnett wrote:
> I think I might have identified the cause of the problem, although I still
> haven't been able to reproduce it, so I can't be certain.
Performed 76
Passed
Looks
New submission from Alex Stapleton :
Normal files throw exceptions if you mix methods.
>>> f = open("words")
>>> for l in f:
... break
...
>>> f.tell()
8192L
>>> f.readline()
Traceback (most recent call last):
File "", line 1, in
New submission from Alex Quinn :
After using subprocess.Popen(...).communicate(), the session hangs.
c:\>python31
Python 3.1.2 (r312:79149, Mar 21 2010, 00:41:52) [MSC v.1500 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license"
401 - 500 of 1613 matches
Mail list logo