[issue6040] bdist_msi does not deal with pre-release version

2009-07-05 Thread Roger Binns

Roger Binns  added the comment:

This issue is highly annoying.  The ultimate cause is the msi code using
the StrictVersion class to get the version number.  StrictVersion is
documented to be constrained to numerical dot separated versions, and
there doesn't appear to be a way of providing that.  My extension has a
human readable version and I'm happy to also provide a different mangled
version to keep this command working.  I suspect the strictversion
doesn't actually matter than much and is only used to identify an
identical version of the installer so there is no reason why it can't be
automatically derived from the human readable version.

--
nosy: +rogerbinns

___
Python tracker 

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



[issue2356] fixer for sys.exitfunc -> atexit

2009-07-05 Thread Alexandre Vassalotti

Alexandre Vassalotti  added the comment:

Here is an attempt to add a Py3K warning when sys.exitfunc is modified.

--
nosy: +alexandre.vassalotti
Added file: http://bugs.python.org/file14453/sys_exitfunc_warning.diff

___
Python tracker 

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



[issue2733] mmap resize fails on anonymous memory

2009-07-05 Thread Hirokazu Yamamoto

Hirokazu Yamamoto  added the comment:

I still think we should forbid to resize anonymous memory map because
this operation is really problematic. I think original poster's purpose
can be fulfilled with creation of another mmap object with same tagname.

Here is a patch for it.

--
components:  -Windows
stage: commit review -> 
title: mmap resize fails on anonymous memory (Windows) -> mmap resize fails on 
anonymous memory
versions: +Python 3.2 -Python 2.6, Python 3.0, Python 3.1
Added file: http://bugs.python.org/file14454/mmap_disable_anonymous_resize.patch

___
Python tracker 

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



[issue6333] logging: ValueError: I/O operation on closed file

2009-07-05 Thread Vinay Sajip

Vinay Sajip  added the comment:

Can you submit a short script which demonstrates the bug? Your fix is
unfortunately not suitable to use as-is, since the StreamHandler
operates on file-like objects, and these are not guaranteed to have the
"closed" attribute.

--
assignee:  -> vsajip
nosy: +vsajip
status: open -> pending

___
Python tracker 

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



[issue1741130] struct.pack("I", "foo"); struct.pack("L", "foo") should fail

2009-07-05 Thread Mark Dickinson

Mark Dickinson  added the comment:

Strange TypeError message fixed in r73858: those pack operations now raise 
struct.error, like they do for all other integer codes.

--
resolution:  -> fixed
stage: patch review -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue1530559] struct.pack raises TypeError where it used to convert

2009-07-05 Thread Mark Dickinson

Mark Dickinson  added the comment:

This is now fixed in the trunk in r73858.  The failing test has been 
reenabled.

--
resolution:  -> fixed
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue1523] xdrlib fails to detect overflow (struct bug?)

2009-07-05 Thread Mark Dickinson

Mark Dickinson  added the comment:

I think there's nothing we can do about this in 2.6: there's probably code 
out there that depends on the overflow behaviour.

However, 2.6 should have been issuing DeprecationWarnings for overflow 
handling, so it would be safe to remove the overflow wrapping for 2.7.

--

___
Python tracker 

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



[issue6343] TimedRotatingFileHandler permission denied rename failure on Windows

2009-07-05 Thread Vinay Sajip

Vinay Sajip  added the comment:

I'm running your test script (WinXP, Python 2.5) and am unable to
reproduce the error, after running the script for a couple of hours.

Is it possible that you have e.g. anti-virus software or backup software
or some other application (e.g. a service) running in the background
which could temporarily be locking the log files? If the failure happens
repeatably on your system, try running filemon (Microsoft sysinternals)
to see system-wide file activity which could be causing the problem.

--
nosy: +vsajip
resolution:  -> works for me
status: open -> pending

___
Python tracker 

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



[issue6343] TimedRotatingFileHandler permission denied rename failure on Windows

2009-07-05 Thread Vinay Sajip

Vinay Sajip  added the comment:

See http://img15.imageshack.us/img15/5909/screenshotcpc.png which shows
the script being run.

--
status: pending -> open

___
Python tracker 

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



[issue6377] distutils compiler switch ignored

2009-07-05 Thread Tarek Ziadé

Tarek Ziadé  added the comment:

Here's the patch. There's no simple way to deprecate the usage of
"compiler" as an attribute, so I have just fixed Python setup.py.
Using it as an attribute is just wrong.

I have put Benjamin in the loop and I'll wait for his greenlight to
commit this change.

--
nosy: +benjamin.peterson
Added file: http://bugs.python.org/file14455/compiler.diff

___
Python tracker 

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



[issue6377] distutils compiler switch ignored

2009-07-05 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

I think the patch is fine. (Did you try using the descriptor protocol to
add a deprecation warning?)

--

___
Python tracker 

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



[issue6377] distutils compiler switch ignored

2009-07-05 Thread Tarek Ziadé

Tarek Ziadé  added the comment:

Right, turning compiler into a property and adding a warning on the set
would be good enough I guess. Then turn it back into a simple string for
python 3.3 and ... 2.8 :)

I'll add that

--

___
Python tracker 

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



[issue6422] timeit called from within Python should allow autoranging

2009-07-05 Thread Scott David Daniels

New submission from Scott David Daniels :

timeit.main has a _very_ handy autoranging facility to pick an
appropriate number of repetitions when not specified.  The autoranging
code should be lifted to a method on Timer instances (so non-main code
can use it).  If number is specified as 0 or None, I would like to use
the results of that autoranging code in Timer.repeat and Timer.timeit.

Patch to follow.

--
components: Library (Lib)
messages: 90157
nosy: scott_daniels
severity: normal
status: open
title: timeit called from within Python should allow autoranging
type: feature request
versions: Python 2.7, Python 3.2

___
Python tracker 

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



[issue6418] unittest.TestProgram change breaks nose

2009-07-05 Thread Tarek Ziadé

Changes by Tarek Ziadé :


--
nosy: +tarek

___
Python tracker 

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



[issue6423] The cgi docs should advertize using "in" instead of "has_key"

2009-07-05 Thread Christoph Zwerschke

New submission from Christoph Zwerschke :

The cgi.Fieldstorage class supports the __contains__ method since Py
2.2, but the documentation of Py 2.6 still only mentions the old
fashioned has_key method. See patch.

--
assignee: georg.brandl
components: Documentation
files: cgi.patch
keywords: patch
messages: 90158
nosy: cito, georg.brandl
severity: normal
status: open
title: The cgi docs should advertize using "in" instead of "has_key"
versions: Python 2.6
Added file: http://bugs.python.org/file14456/cgi.patch

___
Python tracker 

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



[issue6424] Idle3 crashing when using completion

2009-07-05 Thread Thomas Courbon

New submission from Thomas Courbon :

Configuration : fedora 11, python3.1 manually compiled and installed
along python 2.6 (provided by the distribution).

Reproducibility : seems to be happening any time

Description : When you try to use the auto-completion (ctrl + space) on
anything (tested with module and custom class), the idle crash with the
message :
Traceback (most recent call last):
  File "/usr/local/bin/idle3", line 5, in 
main()
  File "/usr/local/lib/python3.1/idlelib/PyShell.py", line 1420, in main
root.mainloop()
  File "/usr/local/lib/python3.1/tkinter/__init__.py", line 1009, in
mainloop
self.tk.mainloop(n)
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 0-1:
illegal encoding

--
components: IDLE
messages: 90159
nosy: tcourbon
severity: normal
status: open
title: Idle3 crashing when using completion
type: crash
versions: Python 3.1

___
Python tracker 

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



[issue1581182] Definition of a "character" is wrong

2009-07-05 Thread Ezio Melotti

Changes by Ezio Melotti :


--
nosy: +ezio.melotti

___
Python tracker 

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



[issue6382] test_socketserver fails on trunk in test_ForkingTCPServer

2009-07-05 Thread Kristján Valur Jónsson

Kristján Valur Jónsson  added the comment:

submitted revision 73863.  Please test for me on gentoo.

--

___
Python tracker 

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



[issue6424] Idle3 crashing when using completion

2009-07-05 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc  added the comment:

Duplicate of issue6144

--
nosy: +amaury.forgeotdarc
resolution:  -> duplicate
status: open -> closed
superseder:  -> [IDLE] UnicodeDecodeError when invoking force-open-completions

___
Python tracker 

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



[issue2389] Array pickling exposes internal memory representation of elements

2009-07-05 Thread Alexandre Vassalotti

Alexandre Vassalotti  added the comment:

I would like to commit my patch later this week. So if you see any issue
with the patch, please speak up.

--

___
Python tracker 

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



[issue2389] Array pickling exposes internal memory representation of elements

2009-07-05 Thread Alexandre Vassalotti

Changes by Alexandre Vassalotti :


Removed file: http://bugs.python.org/file11096/fix_array_pickling.patch

___
Python tracker 

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



[issue3410] platform.version() don't work as expected in Vista in portuguese

2009-07-05 Thread Ezio Melotti

Ezio Melotti  added the comment:

Here are the results.
Windows Vista SP2 in English
  Python 3.0.1:
  >>> platform.platform()
  'Windows-Vista-6.0.6002-SP2'
  >>> platform.version()
  '6.0.6002'
  >>> platform.win32_ver()
  ('Vista', '6.0.6002', 'SP2', 'Multiprocessor Free')

  Python 2.6.2:
  >>> platform.platform()
  'Windows-Vista-6.0.6002-SP2'
  >>> platform.version()
  '6.0.6002'
  >>> platform.win32_ver()
  ('Vista', '6.0.6002', 'SP2', u'Multiprocessor Free')

Windows 2003 Server SP2 in English
  Python 3.1
  >>> platform.platform()
  'Windows-2003Server-5.2.3790-SP2'
  >>> platform.version()
  '5.2.3790'
  >>> platform.win32_ver()
  ('2003Server', '5.2.3790', 'SP2', 'Uniprocessor Free')

Everything seems fine, however I don't have any non-English Windows
here. Do you know if it's possible to download and install language
packs and if they may affect the text in the version? If so, I could try
to do it and see if I can reproduce the original issue.

--

___
Python tracker 

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