[issue3177] implement os.startfile on posix and MacOSX

2011-07-10 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue12524] change httplib docs POST example

2011-07-10 Thread Georg Brandl
New submission from Georg Brandl : The POST example in the httplib docs references musi-cal.mojam.com, which is now defunct. -- assignee: docs@python components: Documentation keywords: easy messages: 140074 nosy: docs@python, georg.brandl priority: low severity: normal status: open tit

[issue12491] Update glossary documentation for the term 'attribute'

2011-07-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: The current glossary entry is fine and encompasses was is ordinarily meant by attribute as distinct from a method. We sometimes use the term loosely to mean any value whether callable or not. And sometimes it is used loosely to mean anything that can be l

[issue12491] Update glossary documentation for the term 'attribute'

2011-07-10 Thread R. David Murray
R. David Murray added the comment: As an experienced Python programmer, I think of 'attribute' as meaning any attribute (method or non-method) of an object or class. I sometimes do use it imprecisely (to my mind) to mean "non-method attribute", and it is usually clear from context what I mea

[issue12523] 'str' object has no attribute 'more' [/usr/lib/python3.2/asynchat.py|initiate_send|245]

2011-07-10 Thread R. David Murray
Changes by R. David Murray : -- components: +Library (Lib) -None nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list m

[issue12525] Unable to run a thread

2011-07-10 Thread Amandeep Singh
New submission from Amandeep Singh : I created a thread, and started it and then called its run method. It raised an AttributeError exception from threading import Thread def func(): print 'abc' t = Thread(None, func) t.start() t.run() here t.run() raises an exception. -- compone

[issue12523] 'str' object has no attribute 'more' [/usr/lib/python3.2/asynchat.py|initiate_send|245]

2011-07-10 Thread R. David Murray
Changes by R. David Murray : -- type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue12491] Update glossary documentation for the term 'attribute'

2011-07-10 Thread R. David Murray
R. David Murray added the comment: OK, I found the other issue and it looks like we agreed to use 'attributes and methods' where the reference was inclusive. I still think that it is less precise to think this way, but it is clearer exposition given the lack of a good term for non-method att

[issue12525] Unable to run a thread

2011-07-10 Thread Eric V. Smith
Eric V. Smith added the comment: Don't call both start() and run(). From the documentation, start() arranges for run() to be called. After the call to start(), 'abc' is printed. -- components: +Extension Modules -Build nosy: +eric.smith resolution: -> invalid status: open -> pending

[issue12525] Unable to run a thread

2011-07-10 Thread Amandeep Singh
Amandeep Singh added the comment: I am also not able to call run() twice. I have python 2.5.2 with me, in which I am able to call run method twice and calling run after start is working. -- status: pending -> open ___ Python tracker

[issue12525] Unable to run a thread

2011-07-10 Thread Amandeep Singh
Amandeep Singh added the comment: May be this is a behavior change, that a thread can not be run again. I think documentation needs to be changed in this case. -- ___ Python tracker __

[issue12525] Unable to run a thread

2011-07-10 Thread Georg Brandl
Georg Brandl added the comment: While it's not explicitly documented that run() also shouldn't be called multiple times, it does not need to be supported. Threads can be started exactly once -- this is already mentioned in the docs. Note that run() simply calls the thread target with the giv

[issue12526] packaging.pypi.Crawler and resulting objects have a circular API

2011-07-10 Thread Michael Mulich
New submission from Michael Mulich : The issue, as best I can describe it, is in how the a release list (packaging.pypi.dist.ReleaseList) looks up releases. Here is a simple example using a random package on PyPI. >>> crawler = Crawler() >>> projects = crawler.search_projects('snimpy') >>> pro

[issue12527] assertRaisesRegex doc'd with 'msg' arg, but it's not implemented?

2011-07-10 Thread Brian Jones
New submission from Brian Jones : The documentation here: http://docs.python.org/dev/library/unittest.html#unittest.TestCase.assertRaisesRegex Indicates that, when used as a context manager, assertRaisesRegex should accept a keyword argument 'msg'. However, that doesn't appear to actually be i

[issue12527] assertRaisesRegex doc'd with 'msg' arg, but it's not implemented?

2011-07-10 Thread Benjamin Peterson
Benjamin Peterson added the comment: You're not getting this? .FFE == ERROR: test_intfail4 (__main__.TestInt) -- Traceback (most recent call last): File "x.p

[issue12527] assertRaisesRegex doc'd with 'msg' arg, but it's not implemented?

2011-07-10 Thread Brian Jones
Brian Jones added the comment: No, I'm not. I'm sorry for not including this output initially. Here's what I get (and I've added a sys.version_info line just to be double sure the right executable is being invoked at runtime): sys.version_info(major=3, minor=3, micro=0, releaselevel='alpha',

[issue12527] assertRaisesRegex doc'd with 'msg' arg, but it's not implemented?

2011-07-10 Thread Brian Jones
Brian Jones added the comment: If there's some reason, based on the source snippet I posted from case.py, that my msg should be making it to the output, can someone explain why/how it should get there? I don't see any reason, from looking at the source, that 'msg' should even be expected to m

[issue12528] Implement configurable bitfield allocation strategy

2011-07-10 Thread Vlad Riscutia
New submission from Vlad Riscutia : Opened this issue to track configurable bitfield allocation strategy. This will address issues like http://bugs.python.org/issue6069, http://bugs.python.org/issue11920. Summary: the way bitfields are allocated is up to the compiler not defined by standard.

[issue11920] ctypes: Strange bitfield structure sizing issue

2011-07-10 Thread Vlad Riscutia
Vlad Riscutia added the comment: Opened http://bugs.python.org/issue12528 to address this. -- nosy: +vladris ___ Python tracker ___ _

[issue6069] casting error from ctypes array to structure

2011-07-10 Thread Vlad Riscutia
Vlad Riscutia added the comment: Opened http://bugs.python.org/issue12528 to address this. -- versions: +Python 3.3 ___ Python tracker ___ ___

[issue12528] Implement configurable bitfield allocation strategy

2011-07-10 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue12529] cgi.parse_header fails on double quotes and semicolons

2011-07-10 Thread Ben Darnell
New submission from Ben Darnell : cgi.parse_header doesn't work on headers that contain combinations of double quotes and semicolons (although it works with either type of character individually). >>> cgi.parse_header('form-data; name="files"; filename="fo\\"o;bar"') ('form-data', {'name': '

[issue12528] Implement configurable bitfield allocation strategy

2011-07-10 Thread Vlad Riscutia
Vlad Riscutia added the comment: Removed previously attached partial patch, this is complete patch. Summary: Added following 3 constants in ctypes: ctypes.BITFIELD_ALLOCATION_NATIVE ctypes.BITFIELD_ALLOCATION_GCC ctypes.BITFIELD_ALLOCATION_MSVC Setting _bitfield_allocation_ attribute to one of

[issue12528] Implement configurable bitfield allocation strategy

2011-07-10 Thread Vlad Riscutia
Changes by Vlad Riscutia : Removed file: http://bugs.python.org/file22617/cfield_bitfield_refactoring.diff ___ Python tracker ___ ___ Python-b

[issue12491] Update glossary documentation for the term 'attribute'

2011-07-10 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> rejected status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue12343] ssl documentation needs comments about non-blocking behaviour

2011-07-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset b763c1ba5589 by Antoine Pitrou in branch '3.2': Issue #12343: Add some notes on behaviour of non-blocking SSL sockets. http://hg.python.org/cpython/rev/b763c1ba5589 New changeset 77334eb5038d by Antoine Pitrou in branch 'default': Issue #12343: Add

[issue12343] ssl documentation needs comments about non-blocking behaviour

2011-07-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'd say this is fixed now. Tell me if there are any precisions you would like to see added. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed versions: -Python 2.7 ___ Python

[issue8161] inconsistency behavior in ctypes.c_char_p dereferencing

2011-07-10 Thread Vlad Riscutia
Vlad Riscutia added the comment: Looks like this was implemented by design at some point. In cfield.c, we have specific code to treat character array fields as strings: /* Field descriptors for 'c_char * n' are be scpecial cased to return a Python string instead of an Array object

[issue6493] Can not set value for structure members larger than 32 bits

2011-07-10 Thread Vlad Riscutia
Vlad Riscutia added the comment: I have a similar patch for issue 6068. I wasn't aware of this issue when I looked into it. I believe both patches fix the same thing (please take a look and correct me if I'm wrong). My fix: we don't need to treat Windows differently, just remove #ifdef and

[issue12529] cgi.parse_header fails on double quotes and semicolons

2011-07-10 Thread R. David Murray
R. David Murray added the comment: The email module header parser handles this correctly (if you make it a real header). For whatever that's worth :) -- nosy: +r.david.murray ___ Python tracker _

[issue12142] Reference cycle when importing ctypes

2011-07-10 Thread Vlad Riscutia
Vlad Riscutia added the comment: I ran full test suit after making the _array_type = type(Array) change and everything passes. I also took a look at this and found additional leak. gc shows this as garbage: [(,), , , , (, , , ), {'__dict__': , '_type_': 'g', '__module__': 'ctypes', '__weakref

[issue12530] cpython 3.3, __class__ missing.

2011-07-10 Thread Campbell Barton
New submission from Campbell Barton : In python 3.2 this works and prints , in cpython hg: 71296:ab162f925761 it fails with: NameError: global name '__class__' is not defined Since this change is not documented I assume its a bug. --- snip --- class Test: def __init__(self): print(__class__)

[issue12530] cpython 3.3, __class__ missing.

2011-07-10 Thread Campbell Barton
Campbell Barton added the comment: checked for docs here: http://docs.python.org/dev/whatsnew/3.3.html -- ___ Python tracker ___ ___

[issue12530] cpython 3.3, __class__ missing.

2011-07-10 Thread Benjamin Peterson
Benjamin Peterson added the comment: No, this is consistent (again) with Python 2. -- nosy: +benjamin.peterson resolution: -> invalid status: open -> closed ___ Python tracker

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2011-07-10 Thread Alec Koumjian
Alec Koumjian added the comment: I apologize if this is the wrong place for this message. I did not see the link to a separate list. First let me explain what I am trying to accomplish. I would like to be able to take an unknown regular expression that contains both named and unnamed groups

[issue874900] malloc

2011-07-10 Thread Nir Aides
Changes by Nir Aides : -- title: threading module can deadlock after fork -> malloc ___ Python tracker ___ ___ Python-bugs-list maili

[issue874900] threading module can deadlock after fork

2011-07-10 Thread Nir Aides
Changes by Nir Aides : -- title: malloc -> threading module can deadlock after fork ___ Python tracker ___ ___ Python-bugs-list maili

[issue12530] cpython 3.3, __class__ missing.

2011-07-10 Thread Campbell Barton
Campbell Barton added the comment: Shouldn't it be documented that it changes still? - since people are using pytjon3.2 and its a stable release, _any_ breaking change should be documented IMHO -- ___ Python tracker