[issue17172] Add turtledemo to IDLE menu

2014-06-22 Thread Terry J. Reedy

Terry J. Reedy added the comment:

In 2.7, turtledemo is in pythondir/Demo/turtle when those directories are 
present. They are not currently installed by the 2.7 Windows installer, but 
this could be requested (of Steve Dower) on another issue. A 2.7 patch would be 
slightly tricker as it would have to check for the existence of turtledemo. 
Options:
* check before installing the menu entry and dont add it if not present.
* always make menu entry and check when clicked.

Is turtledemo present on *nix/mac often enough to make a 2.7 addition 
worthwhile even without Windows?

--
dependencies: +Allow turtledemo code pane to get wider., Catch 
turtle.Terminator exceptions in turtledemo, Make turtledemo 2.7 help show file 
contents, not file name.
versions: +Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17172
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21823] Catch turtle.Terminator exceptions in turtledemo

2014-06-22 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Since hanoi do not have user interaction, once started, it does not need to be 
'special'. Like planets_and_moon, it could run until done and then return 
'Done'.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21823
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21824] Make turtledemo 2.7 help show file contents, not file name.

2014-06-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 9778d37c2d18 by Terry Jan Reedy in branch '2.7':
Issue #21824: Turtledemo 2.7 help menu entries now display help text instead
http://hg.python.org/cpython/rev/9778d37c2d18

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21824
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21824] Make turtledemo 2.7 help show file contents, not file name.

2014-06-22 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
resolution:  - fixed
stage: needs patch - resolved
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21824
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21819] Remaining buffer from socket isn't available anymore after calling socket.recv the first time

2014-06-22 Thread Charles-François Natali

Charles-François Natali added the comment:

 I'm wondering how would it be possible then to fetch packets of an unknown 
 size without using an extremely big buffer.

IP packets are limited to 64K, so just pass a 64K buffer, that's not
extremely big.
If you really wanted to avoid this, you could try the FIONREAD ioctl,
but I wouldn't advise it.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21819
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19145] Inconsistent behaviour in itertools.repeat when using negative times

2014-06-22 Thread Raymond Hettinger

Raymond Hettinger added the comment:

I'm inclined to apply Vajrasky Kok's third version (with minor cleanups).

The rule will be pretty much what Guido stated but without adding a special 
case for times=None (that could be an added enhancement at a later time if the 
need arose):  If I had complete freedom in redefining the spec I would treat 
positional and keyword the same, interpret absent or None to mean forever and 
explicit negative integers to mean the same as zero, and make repr show a 
positional integer = 0 if the repeat isn't None.

The if-absent-run-forever rule matches what the decade old positional-only API 
does and what the newer keyword form does as well.  It also matches what the 
documented rough equivalent code does.

The negative-times-means-zero rule matches the current positional-only api, it 
matches list.__mul__ and str.__mul__, and it matches the documented equivalent 
code.   However, it does change the meaning of the keyword argument when the 
value is negative (the part that conflicts with the positional API, was never 
intended, nor was promised in the docs).

Larry's false dilemmas aside, I think that takes care of the core issue that a 
negative value for a keyword times-argument does not have the same behavior as 
it would for a positional times-argument.

The use of None for an optional argument in the equivalent code is red 
herring.  As Serhiy says, the sample Python implementation is only a 
demonstration, it shouldn't be exact equivalent.  If Larry still perceives 
this to be wildly out of sync, it isn't hard to put in the usual 
times=sentinel setup in the same code, but that only adds a little precision 
at the expense of clarity (i.e. readers are more likely to be confused by the 
sentinel trick than by the conventional way of noting optional arguments with 
None).

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19145
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19145] Inconsistent behaviour in itertools.repeat when using negative times

2014-06-22 Thread Larry Hastings

Larry Hastings added the comment:

Please clarify, what is my false dilemma?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19145
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13247] under Windows, os.path.abspath returns non-ASCII bytes paths as question marks

2014-06-22 Thread Martin v . Löwis

Martin v. Löwis added the comment:

I'm -1 on the patch. The string currently returned might be useless, but the 
fundamental problem is that using bytes for filenames on Windows just isn't 
sufficient for all cases. Microsoft has chosen to return question marks in the 
API, and Python should return them as the system vendor did.

Another alternative would be to switch to UTF-8 as the file system encoding on 
Windows, but that change might be too incompatible.

--
nosy: +loewis

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13247
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6305] islice doesn't accept large stop values

2014-06-22 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Alok, overall the patch looks pretty good and you've done great work on it.

However, in working through its details, I find myself having major misgivings 
about doubling the size and complexity of the code for something that may not 
be ever benefit any real code.

Terry noted that range() supports values bigger than the word size but the 
needs there are much different.  Programs can reasonably use ranges with large 
start points, but an islice() call would have to iterate over *start* values 
before it begins returning any usable values:

  list(range(sys.maxsize+10, sys.maxsize+20))  # maybe a good idea
  list(islice(count(), sys.maxsize + 10, sys.maxsize + 20))  # probably not a 
good idea

When we finally get 64-bit everywhere (not there yet), I think the code in this 
patch would never get exercised.  Even in the 32-bit world, islicing over 2**32 
inputs doesn't seem like a great idea.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6305
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21812] turtle.shapetransform doesn't transform the turtle on the first call

2014-06-22 Thread Raymond Hettinger

Raymond Hettinger added the comment:

The looks good.  Please revise the patch to isolate the actual change in logic 
and not confound it with PEP-8 nits which make the patch harder to review.

Also, please be careful with breaking lines.  In the following part of the 
diff, the space after matrix: is lost (Hazards like this are one reason to 
avoid cosmetic changes).

-raise TurtleGraphicsError(Bad shape transform matrix: must not be 
singular)
+raise TurtleGraphicsError((Bad shape transform matrix:
+   must not be singular)

--
assignee:  - rhettinger
nosy: +rhettinger

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21812
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9012] Separate compilation of time and datetime modules

2014-06-22 Thread Martin v . Löwis

Martin v. Löwis added the comment:

This issue has been superseded by #14180. __PyTime_DoubleToTimet no longer 
exists; its successor now lives in pytime.c.

--
resolution:  - out of date
status: open - closed
superseder:  - Factorize code to convert int/float to time_t, timeval or 
timespec

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9012
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21812] turtle.shapetransform doesn't transform the turtle on the first call

2014-06-22 Thread Raymond Hettinger

Changes by Raymond Hettinger raymond.hettin...@gmail.com:


--
Removed message: http://bugs.python.org/msg221228

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21812
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6305] islice doesn't accept large stop values

2014-06-22 Thread Martin v . Löwis

Martin v. Löwis added the comment:

I'd find it sad if we would, after 5 years of asking for contributions, and 
after somebody actually contributing, now declare that we really don't want a 
contribution.

--
nosy: +loewis

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6305
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21766] CGIHTTPServer File Disclosure

2014-06-22 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21766
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21812] turtle.shapetransform doesn't transform the turtle on the first call

2014-06-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 39b094798e14 by Raymond Hettinger in branch '3.4':
Issue #21812:  Trigger immediate transformation in turtle.shapetransform().
http://hg.python.org/cpython/rev/39b094798e14

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21812
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2574] Add RFC 3768 SSM Multicast support to socket

2014-06-22 Thread Mark Lawrence

Mark Lawrence added the comment:

Looks as if the status was inadvertently set to languishing.  Stage needs 
setting to patch review.  The patch is effectively all new C code but there are 
no doc changes or tests.

--
nosy: +BreamoreBoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2574
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21812] turtle.shapetransform doesn't transform the turtle on the first call

2014-06-22 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Thanks for noticing this and for the patch.

In the future, to make patches easier to review, please isolate the core logic 
change from inconsequential whitespace and linewrap edits.  Also note that 
breaking strings in the middle to accommodate a max line length can be 
error-prone (in this case a space was dropped between matrix: and must).

--
resolution:  - fixed
stage:  - resolved
status: open - closed
type:  - behavior
versions: +Python 3.4, Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21812
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21799] Py_SetPath() gives compile error: undefined reference to '__imp_Py_SetPath'

2014-06-22 Thread Pat Le Cat

Pat Le Cat added the comment:

Okay I tried the exact same example code from your website on the MSVC-2013 
(same OS) suite and got new errors with it and a strange warning.

Warning:
1c:\python34\include\pymath.h(22): warning C4273: 'round' : inconsistent dll 
linkage
1C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\math.h(516) : 
see previous definition of 'round'

Runtime crash:
C:\Users\xxx\Documents\Visual Studio 
2013\Projects\SnakesTest\x64\ReleaseSnakesTest.exe multiply multiply 3 2
Fatal Python error: Py_Initialize: unable to load the file system codec
ImportError: No module named 'encodings'

I linked with both the 'python3.lib' and the 'python34.lib' (what's the 
difference anyways?) with the same results.
It looks to me as if the DLL doesn't contain all the same symbols as in the 
include file, or have you done some obscure compressing with the DLL maybe? But 
the inconsistent dll linkage seems to be the leading hint here.


ADDENDUM: I forgot to mention that under mingw I do directly link to the 
python3.dll, since there is no python3.a libfile around and dlltool was unable 
to extract any symbols from the DLL.

--
Added file: http://bugs.python.org/file35720/SnakesTest.cpp

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21799
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6305] islice doesn't accept large stop values

2014-06-22 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Martin, finding it sad doesn't really help much here.

We *can* put the patch in.  Alok devoted a good chunk of time to creating the 
patch and I've already devoted a good chunk of time to reviewing it.  

However, in so doing I became concerned that it wasn't the right thing to do.  
The code size and complexity is much bigger than I expected (as compared to 
what I had to do for itertools.count for example).  The use case is much weaker 
(because unlike range() and count() we don't have an arbitrary start point).  
This thought surfaced when reading Alok's notes on the difficulty of testing 
this patch in a reasonable amount of time.

Besides feeling sad, what is your recommendation?  Would you like me to finish 
the review and check it in to make everyone feel good?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6305
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21765] Idle: make 3.x HyperParser work with non-ascii identifiers.

2014-06-22 Thread Martin v . Löwis

Martin v. Löwis added the comment:

The reason the Unicode consortium made this list (Other_ID_Start) is that they 
want to promise 100% backwards compatibility: if some programming language had 
been using UAX#31, changes to the Unicode database might break existing code. 
To avoid this, UAX#31 guarantees 100% stability.

The reason Python uses it is because it uses UAX#31, with the minimum number of 
modifications. We really shouldn't be making arbitrary changes to it. If we 
would e.g. say that we drop these four characters now, the next Unicode version 
might add more characters to Other_ID_Start, and then we would have to say that 
we include some, but not all, characters from Other_ID_Start.

So if IDLE wants to reimplement the XID_Start and XID_Continue properties, it 
should do it correctly. Note that the proposed patch only manages to replicate 
the ID_Start and ID_Continue properties. For the XID versions, see

http://www.unicode.org/reports/tr31/#NFKC_Modifications

Unfortunately, the specification doesn't explain exactly how these 
modifications are performed. For item 1, I think it is:

Characters which are in ID_Start (because they count as letters) but their NFKC 
decomposition does not start with an ID_Start character (because it starts with 
a modifier instead) are removed in XID_Start

For item 2, they unfortunately don't list all characters that get excluded. For 
the one example that they do give, the reason is clear: U+037A (GREEK 
YPOGEGRAMMENI, category Lm) decomposes to U+0020 (SPACE) U+0345 (COMBINING 
GREEK YPOGEGRAMMENI). Having a space in an identifier is clearly out of the 
question. I assume similar problems occur with certain Arabic presentation 
forms. I wish the consortium was more explicit as to what precise algorithms 
they use to derive their derived properties.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21765
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19145] Inconsistent behaviour in itertools.repeat when using negative times

2014-06-22 Thread Raymond Hettinger

Raymond Hettinger added the comment:

 Please clarify

I was referring to your first post, I see two possible choices here ... 
[changing the signature to times=-1 or to times=None].  

There was another choice, make the code work as originally intended where 
omitting the times argument repeats indefinitely and where negative values are 
treated the same as zero.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19145
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21765] Idle: make 3.x HyperParser work with non-ascii identifiers.

2014-06-22 Thread Martin v . Löwis

Martin v. Löwis added the comment:

Tal: If you want to verify your is_id_char function, you could use the code

for i in range(65536):
c = chr(i)
c2 = 'a'+c
if is_id_char(c) != c2.isidentifier():
print('\\u%.4x'%i,is_id_char(c),c2.isidentifier())

Alternatively, you could use the strategy taken in that code for is_id_char 
itself:

def is_id_char(c):
  return ('a'+c).isidentifier()

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21765
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8343] improve re parse error messages for named groups

2014-06-22 Thread Mark Lawrence

Mark Lawrence added the comment:

I understand that the patch cannot be used as the OP refuses to sign the CLA.

--
nosy: +BreamoreBoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8343
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21799] Py_SetPath() gives compile error: undefined reference to '__imp_Py_SetPath'

2014-06-22 Thread Pat Le Cat

Pat Le Cat added the comment:

**Missing Python34.dll in installation**

Okay it's getting more interesting. I downloaded Python 3.4 windows x64 binary 
and extracted the DLLs and suddenly I discovered that release 3.4.1 is missing 
the Python34.dll !! :-O

Once I link against the python34.dll from mingw/gcc then it compiles fine :D 
(the 77kb from the python3.dll seemed too small anyhow ;) )

Now I have the similar error at runtime as with MSVC-2013:
C:\Development\xxx\Testo1\Snakes\ReleaseSnakes.exe multiply multiply 3 2
Fatal Python error: Py_Initialize: unable to load the file system codec
ImportError: No module named 'encodings'


Now the question remains what unicode module python is complaining about?!?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21799
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8908] friendly errors for UAC misbehavior in windows installers

2014-06-22 Thread Mark Lawrence

Mark Lawrence added the comment:

The patches cannot be used as the OP hasn't signed the CLA.

--
components:  -Distutils2
nosy: +BreamoreBoy, dstufft

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8908
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4714] print opcode stats at the end of pybench runs

2014-06-22 Thread Mark Lawrence

Mark Lawrence added the comment:

@Antoine/Marc-Andre are either of you interested in taking this forward?

--
nosy: +BreamoreBoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4714
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5800] make wsgiref.headers.Headers accept empty constructor

2014-06-22 Thread Mark Lawrence

Mark Lawrence added the comment:

This shouldn't be languishing, work has been committed against revision 86742 
and there's another patch that apparently just needs a little tweak.

--
nosy: +BreamoreBoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5800
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16976] Asyncore/asynchat hangs when used with ssl sockets

2014-06-22 Thread Giampaolo Rodola'

Giampaolo Rodola' added the comment:

Yes.

--
resolution:  - wont fix
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16976
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21799] Py_SetPath() gives compile error: undefined reference to '__imp_Py_SetPath'

2014-06-22 Thread Pat Le Cat

Pat Le Cat added the comment:

Update on mingw: When I comment out the Py_SetPath() function call, then the 
code runs up to the 4th test print and then crashes again, possibly at: 
Py_XDECREF(pArgs). So apart from the 'encoding' module that cannot be found 
there is still a crash. I installed Python 3.4.1 again for this.
BTW: The multiply.py runs fine when called with py -3 directly.

Output:
C:\Development\xxx\Testo1\Snakes\ReleaseSnakes.exe multiply multiply 3 2
Number of arguments 5
Will compute 3 times 2
Result:  6
***Test1***Test2***Test3Will compute 3 times 2
***Test4

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21799
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6916] Remove deprecated items from asynchat

2014-06-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset aeeb385e61e4 by Giampaolo Rodola' in branch 'default':
#6916: attempt to fix BB failure
http://hg.python.org/cpython/rev/aeeb385e61e4

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6916
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5800] make wsgiref.headers.Headers accept empty constructor

2014-06-22 Thread Berker Peksag

Berker Peksag added the comment:

The patch is not committed yet.

$ ./python
Python 3.5.0a0 (default:979aaa08c067+, Jun 19 2014, 13:01:36) 
[GCC 4.6.3] on linux
Type help, copyright, credits or license for more information.
 from wsgiref.headers import Headers
 h = Headers()
Traceback (most recent call last):
  File stdin, line 1, in module
TypeError: __init__() missing 1 required positional argument: 'headers'

Here's an updated patch that addresses Éric's review (and without cosmetic 
changes to make review easier).

--
nosy: +berker.peksag
status: languishing - open
versions: +Python 3.5 -Python 3.3
Added file: http://bugs.python.org/file35721/issue5800.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5800
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5800] make wsgiref.headers.Headers accept empty constructor

2014-06-22 Thread Mark Lawrence

Mark Lawrence added the comment:

Just for the record clicking on revision 86742 gives Specified revision 
r86742 not found.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5800
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2459] speedup for / while / if with better bytecode

2014-06-22 Thread Mark Lawrence

Mark Lawrence added the comment:

As a lot of work has gone into this it saddens me to see it languishing.  
Surely if Python performance is to be improved the bytecode for conditionals 
and loops is one of the places if not the place to do it?  Are there any names 
missing from the nosy list that ought to be there?

--
nosy: +BreamoreBoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2459
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2506] Add mechanism to disable optimizations

2014-06-22 Thread Pedro Gimeno

Pedro Gimeno added the comment:

I consider peephole optimization when no optimization was requested a bug.

Documentation for -O says it Turns on basic optimizations. Peephole 
optimization is a basic optimization, yet it is performed even when no basic 
optimizations were requested.

No need to add a switch. Just don't optimize if not requested.

--
nosy: +pgimeno

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2506
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9175] ctypes doesn't build on hp-ux

2014-06-22 Thread Mark Lawrence

Mark Lawrence added the comment:

Was this ever a Python issue if the compiler isn't supported by ctypes?  If it 
is a Python issue what is the likelihood of a fix being put in place for the 
2.7 series?

--
nosy: +BreamoreBoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9175
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15745] Numerous utime ns tests fail on FreeBSD w/ ZFS (update: and NetBSD w/ FFS, Solaris w/ UFS)

2014-06-22 Thread Mark Lawrence

Mark Lawrence added the comment:

Could we have a formal review of the patch please as Victor seemed fairly happy 
with it in msg176881.  Note that #16287 also refers to this issue.

--
nosy: +BreamoreBoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15745
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1299] distutils.sysconfig is not cross-platform compatible

2014-06-22 Thread Mark Lawrence

Mark Lawrence added the comment:

From https://docs.python.org/3/library/distutils.html Most Python users will 
not want to use this module directly, but instead use the cross-version tools 
maintained by the Python Packaging Authority. Refer to the Python Packaging 
User Guide for more information..  So can this be closed as out of date?

--
nosy: +BreamoreBoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1299
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21799] Py_SetPath() gives compile error: undefined reference to '__imp_Py_SetPath'

2014-06-22 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
nosy: +loewis, steve.dower, tim.golden, zach.ware

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21799
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10978] Add optional argument to Semaphore.release for releasing multiple threads

2014-06-22 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
nosy: +neologix

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10978
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21799] Py_SetPath() gives compile error: undefined reference to '__imp_Py_SetPath'

2014-06-22 Thread Martin v . Löwis

Martin v. Löwis added the comment:

Pat Le Cat: Please focus on one issue at a time. I'm tempted to close this 
issue as works for me, and let you start over reporting one single issue that 
we then try to resolve.

In any case, ignore python3.dll. It's meant for a different use case than yours.

As for your initial report: Please report the exact version of mingw64 that you 
have been using, and the exact command line that you were trying to use.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21799
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6916] Remove deprecated items from asynchat

2014-06-22 Thread Berker Peksag

Berker Peksag added the comment:

Would using assertWarns be more suitable here? Attached a patch.

--
keywords: +patch
nosy: +berker.peksag
Added file: http://bugs.python.org/file35722/use-assertwarns.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6916
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17535] IDLE: Add an option to show line numbers along the left side of the editor window, and have it enabled by default.

2014-06-22 Thread Saimadhav Heblikar

Saimadhav Heblikar added the comment:

List of additions/changes
1. EditorWindow uses LineNumber.Text instead of tkinter.Text.
2. Added linenumber canvas to IDLE windows except PyShell
3. Some info about LineNumber.Text
a) Inherits tk.Text
b) Generates Changed virtual event, when insert, delete, replace,
   cursor changes position, window resized, scrolled etc. Nothing else
   is affected. The result of the original call is returned.
4. LineNumber.LineNumberCanvas info
a) font_color and breakpoint_color have default values
b) Linenumber and breakpoints disabled by default. Instantiating
   a LineNumberCanvas object does not pack it.
c) Pack it programmatically by calling its attach method.
   Compulsorily supply the text widget to attach to.
   Supply other parameters like font_color, background, 
   breakpoint_color as necessary.
d) Unpack using detach method.
e) Breakpoint feature is enabled only if LineNumberCanvas can 
   see an EditorWindow instance called editwin as its attribute.
   It(editwin) should implement set_breakpoint(linenumber) and 
   clear_breakpoint(linenumber) methods. EditorWindow responsible
   for binding breakpoint action on the canvas to LineNumberCanvas'
   toggle_breakpoint method.
f) Contains a htest for GUI testing linenumbering and breakpoints.
g) Any valid color can be set for linenumber canvas' background,
   its font color and breakpoint color. NS: Breakpoint does not have
   a background color.
h) Linenumber canvas enabled by default.
5. Linenumber preferences in configDialog's General tab.
   Highlight preferences in  configDialog's Highlight tab.
6. Other changes
   a) Refactoring of PyShell's set_breakpoint_here, set_breakpoint,
  clear_breakpoint_here and clear_breakpoint to make more consistent.

--
Added file: http://bugs.python.org/file35723/line-numbering-v2.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17535
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17535] IDLE: Add an option to show line numbers along the left side of the editor window, and have it enabled by default.

2014-06-22 Thread Saimadhav Heblikar

Changes by Saimadhav Heblikar saimadhavhebli...@gmail.com:


--
nosy: +taleinat

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17535
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21799] Py_SetPath() gives compile error: undefined reference to '__imp_Py_SetPath'

2014-06-22 Thread Pat Le Cat

Pat Le Cat added the comment:

Yes I'm sorry, this evolved as I investigated further. So the initial case has 
become this:

Bug:
Python 3.4 Windows installation contains python34.dll but does not install it. 
Both: python-3.4.1.amd64.msi and python-3.4.0.amd64.msi (maybe the 32bit too?)

Negligence:
Documentation should mention that to embed Python it is necessary to use 
python34.dll (at least under Windows) and that with MingW one can directly link 
to the DLL and doesn't need an .a file.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21799
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21799] Py_SetPath() gives compile error: undefined reference to '__imp_Py_SetPath'

2014-06-22 Thread Pat Le Cat

Pat Le Cat added the comment:

Plus the MSVC-2013 compiler warning noted earlier of course:

Warning:
1c:\python34\include\pymath.h(22): warning C4273: 'round' : inconsistent dll 
linkage
1C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\math.h(516) : 
see previous definition of 'round'

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21799
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1742205] ZipFile.writestr writes incorrect extended local headers

2014-06-22 Thread Zachary Ware

Changes by Zachary Ware zachary.w...@gmail.com:


--
versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1742205
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1742205] ZipFile.writestr writes incorrect extended local headers

2014-06-22 Thread Zachary Ware

Changes by Zachary Ware zachary.w...@gmail.com:


--
nosy: +zach.ware

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1742205
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21825] Embedding-Python example code from documentation crashes

2014-06-22 Thread Pat Le Cat

New submission from Pat Le Cat:

When I comment out the Py_SetPath() function call (Line 56), then the code runs 
up to the 4th test print and then crashes again, possibly at: 
Py_XDECREF(pArgs) else it crashes at Py_Initalize. The same behavior can be 
observed under Python 3.4.0 and 3.4.1 and on both the MSVC and GCC compiler.
BTW: The multiply.py runs fine when called with py -3 directly.

Output without Py_SetPath:
C:\Development\xxx\Testo1\Snakes\ReleaseSnakes.exe multiply multiply 3 2
Number of arguments 5
Will compute 3 times 2
Result:  6
***Test1***Test2***Test3Will compute 3 times 2
***Test4

Output with Py_SetPath:
C:\Development\xxx\Testo1\Snakes\ReleaseSnakes.exe multiply multiply 3 2
Fatal Python error: Py_Initialize: unable to load the file system codec
ImportError: No module named 'encodings'


**Dev-Environment:
Windows 8.1 64bit, MSVC-2013 and MingW (installed with mingw-w64-install.exe 
downloaded in June 2014).

**Microsoft Visual Studio Professional 2013: v12.0.30501.00 Update2

**GCC/G++ Version:
C:\Development\xxx\Testo1\Snakes\Releaseg++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=C:/MingW64/bin/../libexec/gcc/x86_64-w64-mingw32/4.9.0/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../../../src/gcc-4.9.0/configure --host=x86_64-w64-mingw32 
--build=x86_64-w64-mingw32 --targe
t=x86_64-w64-mingw32 --prefix=/mingw64 
--with-sysroot=/c/mingw490/x86_64-490-win32-seh-rt_v3-rev1/mingw64 --wi
th-gxx-include-dir=/mingw64/x86_64-w64-mingw32/include/c++ --enable-shared 
--enable-static --disable-multilib
--enable-languages=ada,c,c++,fortran,objc,obj-c++,lto 
--enable-libstdcxx-time=yes --enable-threads=win32 --ena
ble-libgomp --enable-libatomic --enable-lto --enable-graphite 
--enable-checking=release --enable-fully-dynamic
-string --enable-version-specific-runtime-libs --disable-isl-version-check 
--disable-cloog-version-check --dis
able-libstdcxx-pch --disable-libstdcxx-debug --enable-bootstrap --disable-rpath 
--disable-win32-registry --dis
able-nls --disable-werror --disable-symvers --with-gnu-as --with-gnu-ld 
--with-arch=nocona --with-tune=core2 -
-with-libiconv --with-system-zlib 
--with-gmp=/c/mingw490/prerequisites/x86_64-w64-mingw32-static --with-mpfr=/
c/mingw490/prerequisites/x86_64-w64-mingw32-static 
--with-mpc=/c/mingw490/prerequisites/x86_64-w64-mingw32-sta
tic --with-isl=/c/mingw490/prerequisites/x86_64-w64-mingw32-static 
--with-cloog=/c/mingw490/prerequisites/x86_
64-w64-mingw32-static --enable-cloog-backend=isl 
--with-pkgversion='x86_64-win32-seh-rev1, Built by MinGW-W64
project' --with-bugurl=http://sourceforge.net/projects/mingw-w64 CFLAGS='-O2 
-pipe -I/c/mingw490/x86_64-490-wi
n32-seh-rt_v3-rev1/mingw64/opt/include 
-I/c/mingw490/prerequisites/x86_64-zlib-static/include -I/c/mingw490/pr
erequisites/x86_64-w64-mingw32-static/include' CXXFLAGS='-O2 -pipe 
-I/c/mingw490/x86_64-490-win32-seh-rt_v3-re
v1/mingw64/opt/include -I/c/mingw490/prerequisites/x86_64-zlib-static/include 
-I/c/mingw490/prerequisites/x86_
64-w64-mingw32-static/include' CPPFLAGS= LDFLAGS='-pipe 
-L/c/mingw490/x86_64-490-win32-seh-rt_v3-rev1/mingw64/
opt/lib -L/c/mingw490/prerequisites/x86_64-zlib-static/lib 
-L/c/mingw490/prerequisites/x86_64-w64-mingw32-stat
ic/lib'
Thread model: win32
gcc version 4.9.0 (x86_64-win32-seh-rev1, Built by MinGW-W64 project)

--
components: Build, Demos and Tools
files: main.cpp
messages: 221259
nosy: Pat.Le.Cat
priority: normal
severity: normal
status: open
title: Embedding-Python example code from documentation crashes
type: crash
versions: Python 3.4
Added file: http://bugs.python.org/file35724/main.cpp

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21825
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21825] Embedding-Python example code from documentation crashes

2014-06-22 Thread Pat Le Cat

Pat Le Cat added the comment:

Crash Error Window (pic)

--
Added file: http://bugs.python.org/file35725/snakes_bug.jpg

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21825
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21031] [patch] Add AlpineLinux to the platform module's supported distributions list

2014-06-22 Thread Mark Lawrence

Mark Lawrence added the comment:

Why has this been set to languishing as it's only three months old?

--
nosy: +BreamoreBoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21031
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6305] islice doesn't accept large stop values

2014-06-22 Thread Alok Singhal

Alok Singhal added the comment:

Hi Raymond, Martin,

I won't feel bad about this patch not making it into the final Python 
distribution.  I worked on this bug because it was the only core C bug at 
PyCon US sprints for CPython.  I learned a bit more about CPython while working 
on it and I don't consider the time I spent on this bug as wasted.

Other than symmetry arguments, I can't think of any other argument for islice 
to accept large values.

  a = []
  a[sys.maxsize+2:] # gives: []
  islice(a, None, sys.maxsize+2) # raises exception

But because islice has to go through the elements of the iterable from the 
current value to start, while the first example doesn't, I don't think the 
symmetry argument is that strong here.

So, I think it's fine if we close this bug without accepting this patch.

Thanks for your time in reviewing it!

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6305
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21818] cookielib documentation references Cookie module, not cookielib.Cookie class

2014-06-22 Thread Demian Brecht

Changes by Demian Brecht demianbre...@gmail.com:


--
nosy: +dbrecht

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21818
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21714] Path.with_name can construct invalid paths

2014-06-22 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 should path.with_name('foo/') be allowed?

For sanity, I think path separators should be disallowed.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21714
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21799] Py_SetPath() gives compile error: undefined reference to '__imp_Py_SetPath'

2014-06-22 Thread Martin v . Löwis

Martin v. Löwis added the comment:

Your report is difficult to believe, since it would mean that Python 3.4 cannot 
work at all, for anybody. We would have received hundreds of reports if this 
was actually true.

I just tried again, and it indeed correctly installed python34.dll:

C:\dir c:\Windows\System32\python34.dll
 Datenträger in Laufwerk C: ist Packard Bell
 Volumeseriennummer: 7AFF-FF59

 Verzeichnis von c:\Windows\System32

18.05.2014  10:45 4.047.872 python34.dll
   1 Datei(en),  4.047.872 Bytes

Closing this as works for me. You may reopen it if you insist that it didn't 
install python34.dll on your system. If you want to report a different issue, 
please open a new one. If you need help in your Python project, please contact 
one of the Python support forums, such as python-l...@python.org.

--
resolution:  - works for me
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21799
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6362] multiprocessing: handling of errno after signals in sem_acquire()

2014-06-22 Thread Tumer Topcu

Tumer Topcu added the comment:

Looks like the suggested fix is there in v2.7.6:

do {
Py_BEGIN_ALLOW_THREADS
if (blocking  timeout_obj == Py_None)
res = sem_wait(self-handle);
else if (!blocking)
res = sem_trywait(self-handle);
else
res = sem_timedwait(self-handle, deadline);
Py_END_ALLOW_THREADS
err = errno;
if (res == MP_EXCEPTION_HAS_BEEN_SET)
break;
} while (res  0  errno == EINTR  !PyErr_CheckSignals());

if (res  0) {
errno = err;
if (errno == EAGAIN || errno == ETIMEDOUT)
Py_RETURN_FALSE;
else if (errno == EINTR)
return NULL;
else
return PyErr_SetFromErrno(PyExc_OSError);
}


But I am still able to reproduce the issue following the exact same steps 
written.

--
nosy: +trent, tumert

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6362
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21799] python34.dll is not installed

2014-06-22 Thread Martin v . Löwis

Changes by Martin v. Löwis mar...@v.loewis.de:


--
title: Py_SetPath() gives compile error: undefined reference to 
'__imp_Py_SetPath' - python34.dll is not installed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21799
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21826] Performance issue (+fix) AIX ctypes.util with no /sbin/ldconfig present

2014-06-22 Thread tw.bert

New submission from tw.bert:

Preample: This is my first post to the python issue tracker, I included a fix.

This issue is probably related to http://bugs.python.org/issue11063 .

The problem:

After upgrading a package on AIX 7.1 x64 that started using the uuid module, we 
experienced serious performance issues.

The culprit (found after a day of debugging) is here:

File: ctypes/util.py
Note: The file /sbin/ldconfig does *not* exist, so no useful information is 
collected here.
The statement: 

`f = os.popen('/sbin/ldconfig -p 2/dev/null')`

To be more specific about the performace at popen(), the performance 
degradation happens in it's close() method. It takes 300 ms, which is 
unacceptable. In a larger scope, statements that took 200ms now take 1400ms 
(because the above is called several times.

If I simply check for os.path.exists before the popen, the performance is fine 
again. See the included simple patch. It's a simple unix diff, we don't have 
git on that machine. Git can handle those diffs easily to my knowledge.

More information:

Small scope, culprit identified:

import os, time, traceback
print os.__file__
print time.clock(),'pre'
f = None
try:
  #if os.path.exists('/sbin/ldconfig'):
  f = os.popen('/sbin/ldconfig -p 2/dev/null')
except:
  print traceback.format_exc()
finally:
  print time.clock(),'post close'
  if f: f.close()
  print time.clock(),'post finally'

This takes 300ms (post finally) without the check for exists.

Large scope, before patch:
time python -c import hiredis;import redis;print 'redis-py version: %s , 
hiredis-py version: %s' %(redis.VERSION,hiredis.__ver
sion__,)
redis-py version: (2, 10, 1) , hiredis-py version: 0.1.3

real0m1.409s
user0m0.416s
sys 0m0.129s

Large scope, after patch:
time python -c import hiredis;import redis;print 'redis-py version: %s , 
hiredis-py version: %s' %(redis.VERSION,hiredis.__ver
sion__,)
redis-py version: (2, 10, 1) , hiredis-py version: 0.1.3

real0m0.192s
user0m0.056s
sys 0m0.050s

--
components: ctypes
files: patch_ctypes_util_py.diff
keywords: patch
messages: 221266
nosy: tw.bert
priority: normal
severity: normal
status: open
title: Performance issue (+fix) AIX ctypes.util with no /sbin/ldconfig present
versions: Python 2.7
Added file: http://bugs.python.org/file35726/patch_ctypes_util_py.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21826
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21765] Idle: make 3.x HyperParser work with non-ascii identifiers.

2014-06-22 Thread Tal Einat

Tal Einat added the comment:

 Note that the proposed patch only manages to replicate the
 ID_Start and ID_Continue properties.

Is this just because of the mishandling of the Other_ID_Start and 
Other_ID_Continue properties, or something else as well? I based my code on the 
definitions in:

https://docs.python.org/3/reference/lexical_analysis.html#identifiers

Are those actually wrong?


Note that my code uses category(normalize(char)[0]), so it's always making sure 
that the first character is valid. Actually, though, I now realize that it 
should check all of the values returned by normalize().

Regarding testing ('a'+something).isidentifier(), Terry already suggested 
something along those lines. I think I'll end up using something of the sort, 
to avoid adding additional complex Unicode-related code to maintain in the 
future.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21765
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21799] python34.dll is not installed

2014-06-22 Thread Pat Le Cat

Pat Le Cat added the comment:

Ah it installs it in Windows/Sytem32 okay I had no clue, another undocumented 
behavior :)

Still it is missing in the DLLs folder. And you haven't explained the warning 
under MSVC. And the documentation should be enhanced as I suggested to be more 
clear.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21799
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21799] python34.dll is not installed

2014-06-22 Thread Pat Le Cat

Pat Le Cat added the comment:

Well?

--
resolution: works for me - 
status: closed - open

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21799
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3451] Asymptotically faster divmod and str(long)

2014-06-22 Thread Mark Lawrence

Mark Lawrence added the comment:

As issue18107 has been closed as a duplicate of this, should this be moved to 
open from languishing?

--
nosy: +BreamoreBoy, serhiy.storchaka

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3451
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

2014-06-22 Thread Eli Bendersky

Eli Bendersky added the comment:

Nosy-ing myself since I just ran into it. Annoying issue that precludes from 
using argparse's builtin '-' recognition for reading binary data.

I'll try to carve some time later to look at the patches.

--
nosy: +eli.bendersky
versions: +Python 3.3, Python 3.4, Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14156
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6362] multiprocessing: handling of errno after signals in sem_acquire()

2014-06-22 Thread Tumer Topcu

Tumer Topcu added the comment:

Nevermind the last comment (curse of using a loaner laptop), tried again after 
compiling against the latest repo all works as expected. I believe this issue 
can be closed.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6362
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17170] string method lookup is too slow

2014-06-22 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Indeed keeping this issue open wouldn't be very productive since it relates to 
the more general problem of Python's slow interpretation.

--
resolution:  - rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17170
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21799] python34.dll is not installed

2014-06-22 Thread Martin v . Löwis

Martin v. Löwis added the comment:

The issue you have reported is that python34.dll is not being installed. I  
closed this report as invalid (and will reclose it again now). That the DLL 
isn't installed into the DLLs folder is by design: it either installs into 
system32, or into the DLLs folder. It would be harmful to install it twice.

If you have another issue to report, please submit a new bug report. One issue 
at a time, please. When reporting a documentation bug, please also include in 
the report which documentation you have been looking at. Preferably propose a 
specific wording for a specific section you want to see changed.

--
resolution:  - works for me
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21799
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21799] python34.dll is not installed

2014-06-22 Thread Pat Le Cat

Pat Le Cat added the comment:

Cheesas you are really making it hard by design to report things to Python. 
Maybe a bit more common sense could help the project, or should I file a new 
bug-report for that too?  :-/

--
resolution: works for me - rejected

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21799
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6362] multiprocessing: handling of errno after signals in sem_acquire()

2014-06-22 Thread Martin v . Löwis

Martin v. Löwis added the comment:

Thanks, closing as fixed.

--
nosy: +loewis
resolution:  - fixed
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6362
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21827] textwrap.dedent() fails when largest common whitespace is a substring of smallest leading whitespace

2014-06-22 Thread Robert Li

New submission from Robert Li:

Failing test case:   \tboo\n \tghost

expected:   \tboo\n\tghost
returns: \tboo\n \tghost

--
components: Library (Lib)
messages: 221277
nosy: pitrou, r.david.murray, robertjli, yjchen
priority: normal
severity: normal
status: open
title: textwrap.dedent() fails when largest common whitespace is a substring of 
smallest leading whitespace
type: behavior
versions: Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21827
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21826] Performance issue (+fix) AIX ctypes.util with no /sbin/ldconfig present

2014-06-22 Thread R. David Murray

R. David Murray added the comment:

How does this interact with issue 11063?

--
nosy: +r.david.murray

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21826
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21765] Idle: make 3.x HyperParser work with non-ascii identifiers.

2014-06-22 Thread Martin v . Löwis

Martin v. Löwis added the comment:

I think you are misinterpreting the grammar. Your code declares that U+00B2 
(SUPERSCRIPT TWO, ²) is an identifier character. Its category is No, so it is 
actually not. However, its normalization is U+0032 (DIGIT TWO, 2), which is an 
identifier character - but that doesn't make SUPERSCRIPT TWO a member of 
XID_Continue.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21765
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21827] textwrap.dedent() fails when largest common whitespace is a substring of smallest leading whitespace

2014-06-22 Thread Raymond Hettinger

Changes by Raymond Hettinger raymond.hettin...@gmail.com:


--
assignee:  - rhettinger
nosy: +rhettinger

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21827
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8192] SQLite3 PRAGMA table_info doesn't respect database on Win32

2014-06-22 Thread Amadu Durham

Amadu Durham added the comment:

Tested in both versions 2.7 and 3.4 this sqlite3 inconsistency has been 
corrected and no longer exists.

--
nosy: +amadu
type:  - behavior
versions: +Python 2.7, Python 3.4 -Python 2.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8192
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21827] textwrap.dedent() fails when largest common whitespace is a substring of smallest leading whitespace

2014-06-22 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Confirmed that the test case fails on 2.7, 3.4, and 3.5

--
priority: normal - high
stage:  - needs patch
versions: +Python 2.7, Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21827
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21827] textwrap.dedent() fails when largest common whitespace is a substring of smallest leading whitespace

2014-06-22 Thread Raymond Hettinger

Raymond Hettinger added the comment:

This one isn't hard.  Would you like to make a patch?  If not, I get to it this 
evening.

--
keywords: +easy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21827
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3423] DeprecationWarning message applies to wrong context with exec()

2014-06-22 Thread Zachary Ware

Changes by Zachary Ware zachary.w...@gmail.com:


--
resolution: rejected - 
versions: +Python 2.7, Python 3.4, Python 3.5 -Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3423
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21827] textwrap.dedent() fails when largest common whitespace is a substring of smallest leading whitespace

2014-06-22 Thread YJ Chen

YJ Chen added the comment:

Hi Raymond- Rob and I have a patch ready. We are figuring out how to 
upload/submit it. New to this... :)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21827
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21826] Performance issue (+fix) AIX ctypes.util with no /sbin/ldconfig present

2014-06-22 Thread tw.bert

tw.bert added the comment:

Hi David, thank you for looking into this.
Issue 11063 starts with When the uuid.py module is simply imported it has the 
side effect of forking a subprocess (/sbin/ldconfig) and doing a lot of stuff 
find a uuid implementation by ctypes..

My fix is specific about solving the AIX performance problem I encounter in the 
exact same condition as above. My guess is, that if 11063 is picked up (not 
using external tools), the AIX performance problem will be addressed 
automatically, rendering the new issue 21826 obsolete.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21826
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21827] textwrap.dedent() fails when largest common whitespace is a substring of smallest leading whitespace

2014-06-22 Thread Zachary Ware

Changes by Zachary Ware zachary.w...@gmail.com:


--
nosy: +zach.ware

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21827
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8192] SQLite3 PRAGMA table_info doesn't respect database on Win32

2014-06-22 Thread Martin v . Löwis

Martin v. Löwis added the comment:

Thanks for the check.

--
nosy: +loewis
resolution:  - fixed
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8192
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21427] cannot register 64 bit component

2014-06-22 Thread Martin v . Löwis

Martin v. Löwis added the comment:

Peter: as it turns out, Uwe actually reported two separate issue. In this 
tracker, we have a one issue at a time policy, and I'm relabelling the issue 
as the one that Uwe initially reported (cannot register 64bit component).

So I'm quite certain that *your* (Peter's) issue is not the same as the one 
reported here. Please report it in a separate issue. People following up to 
this, please only follow-up if you want to contribute to the original problem 
(namely, cannot register 64 bit component).

Uwe: thanks for your investigation. I understand that the problem you were 
concerned about (installation failed) is solved with a work-around. If you want 
to see it properly resolved/investigated, please submit a new bug report, 
providing detailed steps to reproduce the issue. 

Without such steps, I'm tempted to declare that this was a problem with a 
third-party library, and not a problem with Python, or a misconfiguration of 
your machine. It is not plausible that the 3.4 installation would access the 
3.3 installation directory, so if it did, it's either because some extension 
library, or some system administrator, has messed with the configuration 
(registry or environment variables).

--
title: installer not working - cannot register 64 bit component

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21427
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1690201] Added support for custom readline functions

2014-06-22 Thread John Cherian

Changes by John Cherian john.jch...@gmail.com:


--
nosy: +John.Cherian

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1690201
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6305] islice doesn't accept large stop values

2014-06-22 Thread Terry J. Reedy

Terry J. Reedy added the comment:

All contributions are subject to final commit review. I looked at the patch and 
it is a *lot* of code for little benefit. I think the better solution would be 
an informative error message: Currently, islice arguments must be less than {} 
on {}-bit systems.format(n, k).

Since I posted nearly 4 years ago, I have become more aware of the important 
differences between 3.x range as a sequence class whose instances are 
non-iterator *(re)iterables* and count as an iterator class whose instances are 
one-time *iterators*. To me, arbitrarily large indices now seem more 
appropriate for virtual sequences that can do O[1] indexing rather than 
iterators where indexing is O[n].

A recent proposal on python-ideas, which as I remember amounted to enhancing 
count to be more like range, tripped over this difference. I suggested that a 
new infinite sequence class Count (like range but without necessarily having a 
stop value) was a more sensible idea for what the OP wanted to do.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6305
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6588] insert cookies into cookie jar - cookielib.py

2014-06-22 Thread SHIRLEY LU

SHIRLEY LU added the comment:

Is this issue still relevant? Adding new cookies is supported in the 
cookiejar.py lib now. There does not seem to be an issue with null version.

--
nosy: +shirllu
versions: +Python 2.7 -Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6588
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21827] textwrap.dedent() fails when largest common whitespace is a substring of smallest leading whitespace

2014-06-22 Thread Robert Li

Robert Li added the comment:

YJ and I are adding a patch and an additional test.

--
hgrepos: +258
versions:  -Python 2.7, Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21827
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21827] textwrap.dedent() fails when largest common whitespace is a substring of smallest leading whitespace

2014-06-22 Thread Robert Li

Changes by Robert Li li.robertj+pythonb...@gmail.com:


--
keywords: +patch
Added file: http://bugs.python.org/file35727/cb18733ce8f1.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21827
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20928] xml.etree.ElementInclude does not include nested xincludes

2014-06-22 Thread Blake Hartstein

Blake Hartstein added the comment:

This patch incorporates nested includes and a testcase that shows how it 
handles infinite include by throwing an exception.

--
nosy: +urule99
Added file: http://bugs.python.org/file35728/issue20928_fixed.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20928
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8630] Keepends param in codec readline(s)

2014-06-22 Thread Jeffrey Falgout

Jeffrey Falgout added the comment:

Wrote tests

--
hgrepos: +259
nosy: +jeffrey.falgout

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8630
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8630] Keepends param in codec readline(s)

2014-06-22 Thread Jeffrey Falgout

Changes by Jeffrey Falgout jeffrey.falg...@gmail.com:


Added file: http://bugs.python.org/file35729/45139b30afef.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8630
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21297] csv.skipinitialspace only skips spaces, not whitespace in general

2014-06-22 Thread Andy Almonte

Changes by Andy Almonte andy.almo...@gmail.com:


--
nosy: +Andy.Almonte

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21297
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11974] Class definition gotcha.. should this be documented somewhere?

2014-06-22 Thread Berker Peksag

Changes by Berker Peksag berker.pek...@gmail.com:


--
nosy: +berker.peksag

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11974
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21827] textwrap.dedent() fails when largest common whitespace is a substring of smallest leading whitespace

2014-06-22 Thread Zachary Ware

Zachary Ware added the comment:

Raymond confirmed that the issue exists on 2.7 and 3.4, so we'll keep those in 
the version list.  Whoever makes the commit will take care of backporting the 
patch, though.

--
versions: +Python 2.7, Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21827
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3353] make built-in tokenizer available via Python C API

2014-06-22 Thread Andrew C

Andrew C added the comment:

The previously posted patch has become outdated due to signature changes 
staring with revision 89f4293 on Nov 12, 2009.  Attached is an updated patch.

Can it also be confirmed what are the outstanding items for this patch to be 
applied?  Based on the previous logs it's not clear if it's waiting for 
documentation on the struct tok_state or if there is another change requested.  
Thanks.

--
hgrepos: +260
nosy: +Andrew.C

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3353
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3353] make built-in tokenizer available via Python C API

2014-06-22 Thread Andrew C

Changes by Andrew C andrew.carr...@gmail.com:


Added file: http://bugs.python.org/file35730/82706ea73ada.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3353
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21827] textwrap.dedent() fails when largest common whitespace is a substring of smallest leading whitespace

2014-06-22 Thread Robert Li

Changes by Robert Li li.robertj+pyt...@gmail.com:


Added file: http://bugs.python.org/file35731/34e88a05562f.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21827
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15045] Make textwrap.dedent() consistent with str.splitlines(True) and str.strip()

2014-06-22 Thread YJ Chen

Changes by YJ Chen chen.yanj...@gmail.com:


--
nosy: +robertjli, yjchen

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15045
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3423] DeprecationWarning message applies to wrong context with exec()

2014-06-22 Thread Michael Wu

Changes by Michael Wu michael.yixuan...@gmail.com:


Removed file: http://bugs.python.org/file35732/testfile.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3423
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3423] DeprecationWarning message applies to wrong context with exec()

2014-06-22 Thread Michael Wu

Michael Wu added the comment:

I ran the examples in this thread with Python 3.5, and it appears to print out 
the correct line that exec() occurs on (http://codepad.org/M5CevRwT). It might 
be time to close this issue.

--
nosy: +Michael.Wu
Added file: http://bugs.python.org/file35732/testfile.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3423
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15983] multiprocessing JoinableQueue's join function with timeout

2014-06-22 Thread Tumer Topcu

Changes by Tumer Topcu tum...@gmail.com:


--
nosy: +tumert, zach.ware

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15983
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15851] Lib/robotparser.py doesn't accept setting a user agent string, instead it uses the default.

2014-06-22 Thread Mark Lawrence

Mark Lawrence added the comment:

The code given in msg183579 works perfectly in 3.4.1 and 3.5.0.  Is there 
anything to fix here whether code or docs?

--
nosy: +BreamoreBoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15851
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17594] mingw: preset configure defaults

2014-06-22 Thread Mark Lawrence

Mark Lawrence added the comment:

Can someone comment on this please as I know nothing about the build system or 
mingw.

--
nosy: +BreamoreBoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17594
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   >