[issue3177] implement os.startfile on posix and MacOSX

2011-07-10 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3177 ___ ___ Python-bugs-list

[issue12524] change httplib docs POST example

2011-07-10 Thread Georg Brandl
New submission from Georg Brandl ge...@python.org: 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

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

2011-07-10 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com 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

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

2011-07-10 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

[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 rdmur...@bitdance.com: -- components: +Library (Lib) -None nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12523 ___

[issue12525] Unable to run a thread

2011-07-10 Thread Amandeep Singh
New submission from Amandeep Singh newtodiswo...@gmail.com: 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

[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 rdmur...@bitdance.com: -- type: crash - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12523 ___ ___

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

2011-07-10 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

[issue12525] Unable to run a thread

2011-07-10 Thread Eric V. Smith
Eric V. Smith e...@trueblade.com 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:

[issue12525] Unable to run a thread

2011-07-10 Thread Amandeep Singh
Amandeep Singh newtodiswo...@gmail.com 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

[issue12525] Unable to run a thread

2011-07-10 Thread Amandeep Singh
Amandeep Singh newtodiswo...@gmail.com 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 rep...@bugs.python.org

[issue12525] Unable to run a thread

2011-07-10 Thread Georg Brandl
Georg Brandl ge...@python.org 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

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

2011-07-10 Thread Michael Mulich
New submission from Michael Mulich michael.mul...@gmail.com: 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 =

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

2011-07-10 Thread Brian Jones
New submission from Brian Jones bkjo...@gmail.com: 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

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

2011-07-10 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: You're not getting this? .FFE == ERROR: test_intfail4 (__main__.TestInt) -- Traceback (most recent

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

2011-07-10 Thread Brian Jones
Brian Jones bkjo...@gmail.com 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,

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

2011-07-10 Thread Brian Jones
Brian Jones bkjo...@gmail.com 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

[issue12528] Implement configurable bitfield allocation strategy

2011-07-10 Thread Vlad Riscutia
New submission from Vlad Riscutia riscutiav...@gmail.com: 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

[issue11920] ctypes: Strange bitfield structure sizing issue

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

[issue6069] casting error from ctypes array to structure

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

[issue12528] Implement configurable bitfield allocation strategy

2011-07-10 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12528 ___ ___

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

2011-07-10 Thread Ben Darnell
New submission from Ben Darnell ben.darn...@gmail.com: 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')

[issue12528] Implement configurable bitfield allocation strategy

2011-07-10 Thread Vlad Riscutia
Vlad Riscutia riscutiav...@gmail.com 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

[issue12528] Implement configurable bitfield allocation strategy

2011-07-10 Thread Vlad Riscutia
Changes by Vlad Riscutia riscutiav...@gmail.com: Removed file: http://bugs.python.org/file22617/cfield_bitfield_refactoring.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12528 ___

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

2011-07-10 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12491 ___

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

2011-07-10 Thread Roundup Robot
Roundup Robot devnull@devnull 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':

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

2011-07-10 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

[issue8161] inconsistency behavior in ctypes.c_char_p dereferencing

2011-07-10 Thread Vlad Riscutia
Vlad Riscutia riscutiav...@gmail.com 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

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

2011-07-10 Thread Vlad Riscutia
Vlad Riscutia riscutiav...@gmail.com 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,

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

2011-07-10 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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 rep...@bugs.python.org

[issue12142] Reference cycle when importing ctypes

2011-07-10 Thread Vlad Riscutia
Vlad Riscutia riscutiav...@gmail.com 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: [(class '_ctypes._SimpleCData',), class 'ctypes.c_longdouble',

[issue12530] cpython 3.3, __class__ missing.

2011-07-10 Thread Campbell Barton
New submission from Campbell Barton ideasma...@gmail.com: In python 3.2 this works and prints class '__main__.Test', 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

[issue12530] cpython 3.3, __class__ missing.

2011-07-10 Thread Campbell Barton
Campbell Barton ideasma...@gmail.com added the comment: checked for docs here: http://docs.python.org/dev/whatsnew/3.3.html -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12530 ___

[issue12530] cpython 3.3, __class__ missing.

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

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

2011-07-10 Thread Alec Koumjian
Alec Koumjian akoumj...@gmail.com 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