[RELEASE] Nevow 0.11.1

2014-06-22 Thread exarkun

Hello,

I'm pleased to announce the release of Nevow 0.11.1.

Nevow is a web application construction kit written in Python and based 
on Twisted. It is designed to allow the programmer to express as much of 
the view logic as desired in Python, and includes a pure Python XML 
expression syntax named stan to facilitate this. However it also 
provides rich support for designer-edited templates, using a very small 
XML attribute language to provide bi-directional template manipulation 
capability.


This release includes a number of minor new features and bug fixes.  It 
also includes changes to modernize Nevow's packaging - installation of 
Nevow using `pip` is now supported.  This release also marks the move of 
Nevow development to Github.


You can read about all of the changes in this release in the NEWS file:

   https://github.com/twisted/nevow/blob/release-0.11.1/NEWS.txt

You can find Nevow on PyPI:

   https://pypi.python.org/pypi/Nevow

Or on Github:

   https://github.com/twisted/nevow

Enjoy!

Jean-Paul
http://as.ynchrono.us/
--
https://mail.python.org/mailman/listinfo/python-announce-list

   Support the Python Software Foundation:
   http://www.python.org/psf/donations/


Event handling for COM object with win32com (pywin32)

2014-06-22 Thread peter . balazovic
Dears,

I have a problem with firing Events and event handling on COM object.

This code works on python console but there is no event fired.

 class fmstrEvents(object):
... def OnRecroderDone(self):
... print Hello OnRecroderDone

 import win32com.client
 fm = win32com.client.Dispatch(MCB.PCM)
 fm_events = win32com.client.WithEvents(fm,fmstrEvents)

The application fmstr with COM Object MCB.PCM is freezing by events handling 
within python by pywin32.

Do I miss something in code or incorrectly handling the events or COM Object?

Thank you very much.
Peter
-- 
https://mail.python.org/mailman/listinfo/python-list


Python ORM library for distributed mostly-read-only objects?

2014-06-22 Thread smurfix
My problem: I have a large database of interconnected objects which I need to 
process with a combination of short- and long-lived workers. These objects are 
mostly read-only (i.e. any of them can be changed/marked-as-deleted, but that 
happens infrequently). The workers may or may not be within one Python process, 
or even on one system.

I've been doing this with a classic session-based SQLAlchemy ORM, approach, 
but that ends up way too slow and memory intense, as each thread gets its own 
copy of every object it needs. I don't want that.

My existing code does object loading and traversal by simple attribute access; 
I'd like to keep that if at all possible.

Ideally, what I'd like to have is an object server which mediates write access 
to the database and then sends change/invalidation notices to the workers. 
(Changes are infrequent enough that I don't care if a worker gets a notice it's 
not interested in.)

I don't care if updates are applied immediately or are only visible to the 
local process until committed. I also don't need fancy indexing or query 
abilities; if necessary I can go to the storage backend for that. (That should 
be SQL, though a NoSQL back-end would be nice to have.)

Does something like this already exist, somewhere out there, or do I need to 
write this, or does somebody know of an alternate solution?
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: How to distribute python console program

2014-06-22 Thread Jurko Gospodnetić

  Hi Nicholas.

On 22.6.2014. 4:51, Nicholas Cannon wrote:

I have a simple program that is ran in the console with
2 modules and i was wondering how i could like export it
so i could give it to someone to use as like a utlitie
in the console?


  Assumptions:
* You have one script - script.py, using two additional module - 
module1.py  module2.py.
* You want to hold the script in some generic Utility folder (on 
your system path or wherever). Let's refer to that folder as 
'D:\Utility', just to make it seem more realistic.

* Target machine already has the desired Python environment installed.


  The simplest 'all in one' solution would be to simply copy script.py, 
module1.py  module2.py into the 'D:\Utility' folder. Then you can run 
script.py as a script (using whatever Python environment you prefer) and 
its folder (i.e. 'D:\Utility') will automatically be added to the Python 
path, ergo module1.py  module2.py can be easily imported using 'import 
module1'  'import module2' respectively.


  One possible bad side to this organization is that the user does not 
necessarily know what module1.py  module2.py files are - they are 
stored together with other utility scripts but need not be runnable 
scripts by themselves. If they can be run as standalone scripts then 
that is all fine and well but if they are not - user does now know that 
they should not be and possibly what they are related to.



  A slight variation making it clear which scripts should be runnable 
directly and which should not would be to move module1.py  module.py 
under some 'D:\Utility\script_details' folder and add an empty 
__init__.py file to that folder as well.


  Then module1.py  module2.py can be imported as:
'import script_details.module1'
  and:
'import script_details.module2'
  respectively.


  Another addition is to prepare a packaged installer that installs your
files in one of the aforementioned structures as any other application, 
e.g. under '/usr/bin', 'C:\Program Files' or whatever, but that's 
strictly an addition to what was described earlier.



  If the script and the modules you mention are self-contained and are 
not intended to be reused elsewhere, then I don't think you need 
anything more complex than that. If they are not then you have an option 
to place the implementation module in some shared Python environment 
folder, e.g. a specific Python environment's 'site-packages' folder. 
That would allow you to easily reuse those modules from other scripts 
located in other folders, but it would also introduce additional 
complications - with it you need to make sure the folder you placed them 
on has indeed been configured to be located on the used Python 
environment's Python path.



  Another variation is to package an installer that basically installs 
a stand-alone Python distribution together with your script, e.g. like 
something done by cx_Freeze or similar projects. Then your target 
machine does not need to have Python installed separately, but on the 
other hand, the installation is much larger and you risk getting 
multiple Python installations all over the same machine. :-)



  Hope this helps.

  Best regards,
Jurko Gospodnetić


--
https://mail.python.org/mailman/listinfo/python-list


Re: How to distribute python console program

2014-06-22 Thread Nicholas Cole
On Sun, Jun 22, 2014 at 3:51 AM, Nicholas Cannon
nicholascann...@gmail.com wrote:
 I have a simple program that is ran in the console with 2 modules and i was 
 wondering how i could like export it so i could give it to someone to use as 
 like a utlitie in the console?

I'm assuming that the 'someone' you want to give it to has python
installed (if they are running any kind of linux or OS X they should
do).

If so, you can use something like

https://pypi.python.org/pypi/ncdistribute/

to make single zip file that contains your code and all its
dependencies.  There is no need to unpack the zip file - python can
run it without unpacking, so you simply put the your_utility_name.pyz
file somewhere in the user's path and it can be run easily.  You can
even rename it so that it doesn't have the .pyz filename.

If you want to send your application to someone who doesn't have
python installed, things are trickier.

http://cx-freeze.sourceforge.net

aims to help you do that kind of thing.

Hope that helps,

Nicholas
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Event handling for COM object with win32com (pywin32)

2014-06-22 Thread Chris Angelico
On Sun, Jun 22, 2014 at 7:15 PM,  peter.balazo...@emspin.com wrote:
 This code works on python console but there is no event fired.

 class fmstrEvents(object):
 ... def OnRecroderDone(self):
 ... print Hello OnRecroderDone

Is that supposed to say OnRecroderDone or OnRecorderDone? I can't
find any Google hits for the former, other than this exact question
(which you seem to have also posted to StackOverflow - I'm counting
that as the same), and the latter would be a much more obvious
spelling.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Event handling for COM object with win32com (pywin32)

2014-06-22 Thread peter . balazovic
On Sunday, June 22, 2014 12:09:51 PM UTC+2, Chris Angelico wrote:
 On Sun, Jun 22, 2014 at 7:15 PM,  peter.balazo...@emspin.com wrote:
 
  This code works on python console but there is no event fired.
 
 
 
  class fmstrEvents(object):
 
  ... def OnRecroderDone(self):
 
  ... print Hello OnRecroderDone
 
 
 
 Is that supposed to say OnRecroderDone or OnRecorderDone? I can't
 
 find any Google hits for the former, other than this exact question
 
 (which you seem to have also posted to StackOverflow - I'm counting
 
 that as the same), and the latter would be a much more obvious
 
 spelling.
 
 
 
 ChrisA

You right, this is a typo here - I am sorry for this but event handler does not 
work... fmstr application is freezing and event handler does not work. I need 
to restart python to unfreeze my application.
Peter 
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Event handling for COM object with win32com (pywin32)

2014-06-22 Thread Chris Angelico
On Sun, Jun 22, 2014 at 9:55 PM,  peter.balazo...@emspin.com wrote:
 You right, this is a typo here - I am sorry for this but event handler does 
 not work... fmstr application is freezing and event handler does not work. I 
 need to restart python to unfreeze my application.


I can't help further, then. I'm not experienced with the COM interface
in any language, so I couldn't tell you what's going on.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python ORM library for distributed mostly-read-only objects?

2014-06-22 Thread Roy Smith
In article 85659fdd-511b-4aea-9c4b-17a4bbb88...@googlegroups.com,
 smur...@gmail.com wrote:

 My problem: I have a large database of interconnected objects which I need to 
 process with a combination of short- and long-lived workers. These objects 
 are mostly read-only (i.e. any of them can be changed/marked-as-deleted, but 
 that happens infrequently). The workers may or may not be within one Python 
 process, or even on one system.
 
 I've been doing this with a classic session-based SQLAlchemy ORM, approach, 
 but that ends up way too slow and memory intense, as each thread gets its own 
 copy of every object it needs. I don't want that.
 
 My existing code does object loading and traversal by simple attribute 
 access; I'd like to keep that if at all possible.
 
 Ideally, what I'd like to have is an object server which mediates write 
 access to the database and then sends change/invalidation notices to the 
 workers. (Changes are infrequent enough that I don't care if a worker gets a 
 notice it's not interested in.)
 
 I don't care if updates are applied immediately or are only visible to the 
 local process until committed. I also don't need fancy indexing or query 
 abilities; if necessary I can go to the storage backend for that. (That 
 should be SQL, though a NoSQL back-end would be nice to have.)
 
 Does something like this already exist, somewhere out there, or do I need to 
 write this, or does somebody know of an alternate solution?

If you want to go NoSQL, I think what you're describing is a MongoDB 
replica set (http://docs.mongodb.org/manual/replication/).  One of the 
replicas is the primary, to which all writes are directed.  You can have 
some number of secondaries, which get all the changes applied to the 
primary, and spread out the load for read access.  If you want a vaguely 
SQLAlchemy flavored ORM, there's mongoengine (http://mongoengine.org/).

On the other hand, this may be overkill for what you're trying to do.  
Can you give us some more quantitative idea of your requirements?  How 
many objects?  How much total data is being stored?  How many queries 
per second, and what is the acceptable latency for a query?
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Event handling for COM object with win32com (pywin32)

2014-06-22 Thread Kevin Walzer

On 6/22/14, 5:15 AM, peter.balazo...@emspin.com wrote:

Do I miss something in code or incorrectly handling the events or COM Object?


There is a pywin32 mailing list that may be able to offer more help here.

--
Kevin Walzer
Code by Kevin/Mobile Code by Kevin
http://www.codebykevin.com
http://www.wtmobilesoftware.com
--
https://mail.python.org/mailman/listinfo/python-list


Are there performance concerns with popping from front of long lists vs. the end of long lists?

2014-06-22 Thread python
Should I have any performance concerns with the index position used to
pop() values off of large lists?



In other words, should pop(0) and pop() be time equivalent operations
with long lists?
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Are there performance concerns with popping from front of long lists vs. the end of long lists?

2014-06-22 Thread MRAB

On 2014-06-22 19:03, pyt...@bdurham.com wrote:

Should I have any performance concerns with the index position used
to pop() values off of large lists?

In other words, should pop(0) and pop() be time equivalent operations
 with long lists?


When an item is popped from a list, all of the later items (they are
actually references to each item) are moved down. Therefore, popping
the last item is fast, but popping the first item is slow.

If you want to pop efficiently from both ends, then a deque is the
correct choice of container.
--
https://mail.python.org/mailman/listinfo/python-list


Islam is not a Religion of Extremism

2014-06-22 Thread bv4bv4bv4
Islam is not a Religion of Extremism
Allah says:
...Whosoever kills an innocent human being, it shall be as if he has killed 
all mankind, and whosoever saves the life of one, it shall be as if he had 
saved the life of all mankind... Qur'an 5:32
Islam... an extreme religion?
Islamic terrorists! Muslim fundamentalists! Extremists! Radical 
Islamists! These are just some labels that have been wrongly applied to 
Muslims and certain Muslim groups in recent years.
The media's portrayal of Islam often misleads those whose knowledge of the 
religion is limited, into making negative assumptions about this very peaceful 
and tolerant way of life.
Peter Manning, a journalist of over 30 years, states in his book, Us and 
Them: My experience tells me there's a vast gulf between the realities of the 
daily lives of Arab and Muslim Australians and how they are represented in our 
[Australian] media.
In more than 60 percent of cases [from the coverage of 2 major newspapers], the 
words 'violent', 'death', 'attack', 'kill', 'suicide' or 'gunmen' were in close 
proximity to the words 'Arab', 'Palestinian', 'Muslim' or 'Islam'. 
Is it then, any wonder that most people associate Islam with terrorism?
The problem of ignorance is highlighted by a survey which revealed that more 
than one in three Australians admit to knowing nothing about Islam and its 
followers.
Those with the least knowledge and personal contact with Muslims were the most 
likely to feel threatened by Islam, said Dr Dunn, who was commissioned by the 
Australia-Indonesia Institute to carry out the study.
The prevalence of media bias and ignorance regarding Islam can be countered by 
understanding Islam through its proper teachings. That means referring to the 
Qur'an (which Muslims believe to be the word of God) and the authentic sayings 
of the Prophet Muhammad (peace be upon him). Through the proper understanding 
of these teachings, one will discover Islam to be completely against any form 
of extremism.
How the Qur'an can be misunderstood
When reading through the Qur'an or the sayings of the Prophet (peace be upon 
him), one must understand the context in which the wording applies. The 
following verse of the Qur'an is a favourite amongst those seeking to mislead 
people about Islam:
And kill them wherever you find them, and expel them from where they expelled 
you, as persecuting people to sway them from God's Religion is worse than 
killing. But do not fight them at the Sacred Mosque, unless they fight you 
there. But if they do fight you, then slay them; This is the recompense of the 
disbelievers. Qur'an 2:191
On occasions, this verse has been dangerously trimmed down to the following:
And kill them wherever you find them... Qur'an 2:191
The obvious question is, Kill who?. To answer this question, one should read 
the verses before and after verse 2:191.
And fight in the way of Allah those who fight with you, and do not exceed the 
limits, surely Allah does not love those who exceed the limits. Qur'an 2:190
The above verse mentions fighting as a means of self defence (i.e. with those 
who fight you). The verse after 2:191 is:
But if they cease, Allah is Oft-forgiving, Most Merciful. Qur'an 2:192
These verses were revealed at a time when the Muslims had been expelled from 
their homes on account of their faith. They endured more than ten years of 
persecution and eventually had to flee to a safe land.
The above verses were referring to the Arab pagans of Mecca during the 
Prophet's time, who oppressed the Muslims and planned to attack them where the 
Muslims sought refuge.
Hence, the above verse can only be applied in such circumstances.
This example demonstrates that verses in the Qur'an should be understood in 
their proper context since verses were revealed in stages in relation to 
particular situations, over a period of 23 years. It is also important to note 
that the Qur'an was revealed in Arabic. Therefore, translations into different 
languages may be misleading and/or inaccurate.
Permissible Warfare/Fighting
There can be no doubt that Muslims (like anybody else) have a legitimate right 
to fight against aggression or when oppressed.
Islam teaches that warfare is permitted in order to preserve the wellbeing of 
the community or to prevent oppression from spreading - this may be in the 
context of defensive or offensive warfare depending on the particular 
situation. Islam, just like any 'way of life' that wants to ensure its 
survival, has the right to defend itself when war is declared against it. In 
the Qur'an (22:39) we read:
To those against whom war is made, permission is given to fight, because they 
are wronged.
However, when the enemy ceases its hostility, Muslims are commanded to cease 
fighting.
And if they incline to peace, then incline to it and trust in God; surely He 
is the All-Hearer, the All-Knower. Qur'an 8:61
Abu Bakr (may God be pleased with him), Prophet Mohammad's closest friend and 
first successor, spoke of the 

Re: How to distribute python console program

2014-06-22 Thread Terry Reedy

On 6/22/2014 5:56 AM, Jurko Gospodnetić wrote:

   Hi Nicholas.

On 22.6.2014. 4:51, Nicholas Cannon wrote:

I have a simple program that is ran in the console with
2 modules and i was wondering how i could like export it
so i could give it to someone to use as like a utlitie
in the console?



   One possible bad side to this organization is that the user does not
necessarily know what module1.py  module2.py files are - they are
stored together with other utility scripts but need not be runnable
scripts by themselves. If they can be run as standalone scripts then
that is all fine and well but if they are not - user does now know that
they should not be and possibly what they are related to.


The support modules could end with

if __name__ == '__main__':
  print(y.py is strictly a support module for x.py. When run 
by itself, it does not do anything except to print this.

However, I prefer the solution of bundling all into a zip.

--
Terry Jan Reedy


--
https://mail.python.org/mailman/listinfo/python-list


Re: Are there performance concerns with popping from front of long lists vs. the end of long lists?

2014-06-22 Thread Terry Reedy

On 6/22/2014 2:03 PM, pyt...@bdurham.com wrote:

Should I have any performance concerns with the index position used to
pop() values off of large lists?


Yes. While performance is generally not part of the language 
specification, in CPython seq.pop(i) is O(len(seq)-i)



In other words, should pop(0) and pop() be time equivalent operations
with long lists?


No. If you want this, use collections.deque.


--
Terry Jan Reedy

--
https://mail.python.org/mailman/listinfo/python-list


Re: Are there performance concerns with popping from front of long lists vs. the end of long lists?

2014-06-22 Thread Ethan Furman

On 06/22/2014 11:03 AM, pyt...@bdurham.com wrote:


Should I have any performance concerns with the index position used
to pop() values off of large lists? In other words, should pop(0) and
 pop() be time equivalent operations with long lists?


I believe lists are optimized for adding and removing items from the end, so anywhere else will have an impact.  You'll 
have to do measurements to see if the impact is worth worrying about in your code.


--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list


Re: Are there performance concerns with popping from front of long lists vs. the end of long lists?

2014-06-22 Thread python
MRAB, Terry, Ethan, and others ...

Thank you - collections.deque is exactly what I was looking for.

Malcolm
-- 
https://mail.python.org/mailman/listinfo/python-list


old python

2014-06-22 Thread arbautjc
If anybody is interested...

I think it's the same as the version unearthed recently [1], but here is a 
rather old version of Python on ftp:

ftp://ftp.uni-duisburg.de/local/systems/unix/old_stuff/


[1] http://legacy.python.org/download/releases/early/


Jean-Claude Arbaut
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: old python

2014-06-22 Thread Terry Reedy

On 6/22/2014 4:18 PM, arbau...@gmail.com wrote:

If anybody is interested...

I think it's the same as the version unearthed recently [1], but here is a 
rather old version of Python on ftp:

ftp://ftp.uni-duisburg.de/local/systems/unix/old_stuff/


Does not accept anonymous logins (or my email), it says to me.


[1] http://legacy.python.org/download/releases/early/


--
Terry Jan Reedy

--
https://mail.python.org/mailman/listinfo/python-list


Re: Islam is not a Religion of Extremism

2014-06-22 Thread Terry Reedy

On 6/22/2014 2:16 PM, bv4bv4...@gmail.com wrote:
[more repeated off topic religious spam]

Google-goups users: if you would prefer not to see more of this, please 
send or forward short

Complaints-To: groups-ab...@google.com

--
Terry Jan Reedy

--
https://mail.python.org/mailman/listinfo/python-list


Re: Islam is not a Religion of Extremism

2014-06-22 Thread Warren Post

On 06/22/2014 03:53 PM, Terry Reedy wrote:

On 6/22/2014 2:16 PM, bv4bv4...@gmail.com wrote:
[more repeated off topic religious spam]

Google-goups users: if you would prefer not to see more of this, please
send or forward short
Complaints-To: groups-ab...@google.com


And if you're not a Google Gropes user and would prefer not to see more 
of this, try:


http://twovoyagers.com/improve-usenet.org/

--
Warren Post
https://warrenpost.wordpress.com/
--
https://mail.python.org/mailman/listinfo/python-list


Re: Python ORM library for distributed mostly-read-only objects?

2014-06-22 Thread smurfix
On Sunday, June 22, 2014 3:49:53 PM UTC+2, Roy Smith wrote:

 Can you give us some more quantitative idea of your requirements?  How 
 many objects?  How much total data is being stored?  How many queries 
 per second, and what is the acceptable latency for a query?

Not yet, A whole lot, More than fits in memory, That depends.

To explain. The data is a network of diverse related objects. I can keep the 
most-used objects in memory but not all of them. Indeed, I _need_ to keep them, 
otherwise this will be too slow, even when using Mongo instead of SQLAlchemy. 
Which objects are most-used changes over time.

I could work with MongoEngine by judicious hacking (augment DocumentField 
dereferencing with a local cache), but that leaves the update problem.
-- 
https://mail.python.org/mailman/listinfo/python-list


[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



  1   2   >