in 682592 20121008 232126 Prasad, Ramit ramit.pra...@jpmorgan.com wrote:
Thomas Bach wrote:=0D=0A Hi there,=0D=0A =0D=0A On Sat, Oct 06, 2012 at =
03:08:38PM +, Steven D'Aprano wrote:=0D=0A =0D=0A my_tuple =3D my_=
tuple[:4]=0D=0A a,b,c,d =3D my_tuple if len(my_tuple) =3D=3D 4 else (my_=
On 10/09/2012 02:07 AM, Bob Martin wrote:
in 682592 20121008 232126 Prasad, Ramit ramit.pra...@jpmorgan.com wrote:
Thomas Bach wrote:=0D=0A Hi there,=0D=0A =0D=0A On Sat, Oct 06, 2012 at =
03:08:38PM +, Steven D'Aprano wrote:=0D=0A =0D=0A my_tuple =3D my_=
tuple[:4]=0D=0A a,b,c,d =3D
On Tue, Oct 9, 2012 at 1:14 PM, Guido van Rossum gu...@python.org wrote:
Maybe we should do something more drastic and always create a new,
unique constant whenever a literal occurs as an argument of 'is' or
'is not'? Then such code would never work, leading people to examine
their code more
Dave Angel writes:
On 10/09/2012 02:07 AM, Bob Martin wrote:
in 682592 20121008 232126 Prasad, Ramit wrote:
[snip mess]
How does one unpack this post? ;-)
Since that's not the way it arrived here, i have to ask, how do you
get these posts? Are you subscribed to individual messages by
Il giorno venerdì 21 settembre 2012 16:04:48 UTC+2, mikcec82 ha scritto:
Hallo to all,
I'm using Python 2.7.3 with Windows 7 @ 64 bit
and an Intel Core i3 -2350M CPU @2.30GHz 2.3GHz.
Sometimes, when I'm programming in Python on my screen compare this blue
screen:
Hi,
Is it possible to define an Event which should fire when a value of a variable
changes? Something like below
self.Bind(wx.EVT_ON_VAL_CHANGE, variable_to_watch, self.Callback)
I need a Text ctrl UI which continuously changes values based on external data
changes. Unfortunately I could not
On 10/09/2012 09:37 AM, mikcec82 wrote:
In my script I open and close an html (in a FOR cycle); could be this the
problem?
Unless you're running your Python script as a kernel driver (and you
can't do that accidentally), there is no way that your user-space
program should cause a bluescreen.
On 10/09/12 02:22, Jussi Piitulainen wrote:
in 682592 20121008 232126 Prasad, Ramit wrote:
[snip mess]
How does one unpack this post? ;-)
Since that's not the way it arrived here, i have to ask, how do you
get these posts?
I see a carriage return rendered as ^M at the end of every line
Does somebody know where I can get the documentation for pydelicious?
The documentation links (For code documentation
see doc/pydelicious or doc/dlcs.py.) in
http://packages.python.org/pydelicious/README.html#id3
gave me
404 Not Found
nginx/1.1.19
Prof. Dr.
Cameron Simpson c...@zip.com.au wrote:
| Because \s{6}+
| has other meanings in different regex syntaxes and the designers didn't
| want confusion?
I think Python REs are supposed to be Perl compatible; ISTR an opening
sentence to that effect...
I don't know the full history of how regex
On Tue, 09 Oct 2012 02:00:04 +1100, Chris Angelico wrote:
On Tue, Oct 9, 2012 at 1:48 AM, Dave Angel d...@davea.name wrote:
import decimal
a = decimal.Decimal(4.3)
print(a)
5.0996447286321199499070644378662109375
Ah, the delights of copy-paste :)
The Decimal class has the
mooremath...@gmail.com wrote:
What's the best way to accomplish this? Am I over-complicating it?
My gut feeling is there is a better way than the following:
import itertools
x = [1, 2, 3]
y = list(itertools.chain.from_iterable(('insertme', x[i]) for i in
range(len(x y
['insertme',
Hi Professor Soto,
Not sure what's going on with their servers', but I was able to find
the documentation on their repo:
https://pydelicious.googlecode.com/svn/trunk/doc/htmlref/index.html
https://pydelicious.googlecode.com/svn/trunk/doc/htmlref/HACKING.html
Actually it seems this project has been official abandoned.
Unofficially use this, was updated only a month ago:
https://github.com/mgan59/python-pinboard
On Tue, Oct 9, 2012 at 10:47 PM, Alec Taylor alec.tayl...@gmail.com wrote:
Hi Professor Soto,
Not sure what's going on with their
below is the text file i have How to create Facility as a key and then assign
multiple values to it
FACILITY : BACKUP
FAILED BACKUP_BEFORE
FAILED BACKUP_INTERCHANGE
Total : 34
Passed : 32
Failed : 2
Not Run : 0
FACILITY : CDU
Total : 9
Passed : 9
Failed : 0
for example Facility BACKUP is a
On Mon, 08 Oct 2012 19:34:26 -0700, rusi wrote:
How about a 2-paren version?
x = [1,2,3]
reduce(operator.add, [['insert', a] for a in x])
['insert', 1, 'insert', 2, 'insert', 3]
That works, but all those list additions are going to be slow. It will be
an O(N**2) algorithm.
If you're
Tim Chase writes:
On 10/09/12 02:22, Jussi Piitulainen wrote:
in 682592 20121008 232126 Prasad, Ramit wrote:
[snip mess]
How does one unpack this post? ;-)
Since that's not the way it arrived here, i have to ask, how do you
get these posts?
I see a carriage return rendered as ^M
Il giorno venerdì 21 settembre 2012 16:04:48 UTC+2, mikcec82 ha scritto:
Hallo to all,
I'm using Python 2.7.3 with Windows 7 @ 64 bit
and an Intel Core i3 -2350M CPU @2.30GHz 2.3GHz.
Sometimes, when I'm programming in Python on my screen compare this blue
screen:
Duncan Booth wrote:
mooremath...@gmail.com wrote:
What's the best way to accomplish this? Am I over-complicating it?
My gut feeling is there is a better way than the following:
import itertools
x = [1, 2, 3]
y = list(itertools.chain.from_iterable(('insertme', x[i]) for i in
On Tue, 09 Oct 2012 04:59:49 -0700, argbsk wrote:
below is the text file i have How to create Facility as a key and then
assign multiple values to it
To use Facility as a key in a dict:
d = {}
d['Facility'] = 'ham'
Note that keys are case-sensitive, so that 'Facility', 'facility',
In article 50741ffe$0$6574$c3e8da3$54964...@news.astraweb.com,
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote:
On Tue, 09 Oct 2012 04:59:49 -0700, argbsk wrote:
below is the text file i have How to create Facility as a key and then
assign multiple values to it
To use
Am 09.10.2012 13:59, schrieb arg...@gmail.com:
below is the text file i have How to create Facility as a key and then assign
multiple values to it
The value part of a dict element can be any kind of object, like e.g. a
tuple, namedtuple or even a dict.
Uli
--
How fast python web framework process routing (URL dispatch)?
Here is a benchmark for various web frameworks (bottle, django, flask, pyramid,
tornado and wheezy.web) running the following routing: static, dynamic, SEO and
missing... with a trivial 'hello world' application (all routes are
On 09/10/2012 14:24, D.M. Procida wrote:
What exactly is the point of a private method? Why or when would I want
to use one?
Daniele
Hardly a Python question but using a search engine could have got you
here, and rather faster :)
Mark Lawrence breamore...@yahoo.co.uk wrote:
On 09/10/2012 14:24, D.M. Procida wrote:
What exactly is the point of a private method? Why or when would I want
to use one?
Daniele
Hardly a Python question but using a search engine could have got you
here, and rather faster :)
I am trying to match a string that containing the and characters, using
the string contains function, but it never seems to find the lines containing
the string
e.g if mystring.contains(TAG) :
Do I need to escape the characters...and if so how?
--
On 12-10-09 06:59 AM, D.M. Procida wrote:
In Python, using an underscore is simply a convention to note that a
method is private - it doesn't actually hide it from other things -
correct?
Daniele
A single underscore semantically means private. A double underscore will
name mangle the
On Monday, October 8, 2012 10:06:50 PM UTC-4, Roy Smith wrote:
In article mailman.1976.1349747963.27098.python-l...@python.org,
(big snip)
y = list(itertools.chain.from_iterable(('insertme', x[i]) for i in
range(len(x
A statement ending in four close parens is usually
On 10/9/12 2:59 PM, D.M. Procida wrote:
Mark Lawrence breamore...@yahoo.co.uk wrote:
On 09/10/2012 14:24, D.M. Procida wrote:
What exactly is the point of a private method? Why or when would I want
to use one?
Daniele
Hardly a Python question but using a search engine could have got you
On 2012-10-09, Bob Martin bob.mar...@excite.com wrote:
in 682592 20121008 232126 Prasad, Ramit ramit.pra...@jpmorgan.com wrote:
Thomas Bach wrote:=0D=0A Hi there,=0D=0A =0D=0A On Sat, Oct 06, 2012 at =
03:08:38PM +, Steven D'Aprano wrote:=0D=0A =0D=0A my_tuple =3D my_=
tuple[:4]=0D=0A
On 10/09/2012 04:02 PM, loial wrote:
I am trying to match a string that containing the and characters,
using the string contains function, but it never seems to find the lines
containing the string
e.g if mystring.contains(TAG) :
Do I need to escape the characters...and if so how?
On 10/09/12 08:59, D.M. Procida wrote:
On 09/10/2012 14:24, D.M. Procida wrote:
What exactly is the point of a private method? Why or when would I want
to use one?
In Python, using an underscore is simply a convention to note that a
method is private - it doesn't actually hide it from other
On 10/09/2012 10:02 AM, loial wrote:
I am trying to match a string that containing the and characters,
using the string contains function, but it never seems to find the lines
containing the string
e.g if mystring.contains(TAG) :
Do I need to escape the characters...and if so how?
On 10/09/12 07:05, Jussi Piitulainen wrote:
Tim Chase writes:
However, it might be that there is no CR+LF on the last line,
or that one line is missing the CR, so your viewer heuristic
(vim does this) thinks it has Unix NL-only line-endings and
shows the ^M on all the lines that have the CR.
On 10/09/2012 10:23 AM, Dave Angel wrote:
On 10/09/2012 10:02 AM, loial wrote:
I am trying to match a string that containing the and characters,
using the string contains function, but it never seems to find the lines
containing the string
e.g if mystring.contains(TAG) :
Do I need to
On Tue, Oct 9, 2012 at 10:02 AM, loial jldunn2...@gmail.com wrote:
I am trying to match a string that containing the and characters,
using the string contains function, but it never seems to find the lines
containing the string
e.g if mystring.contains(TAG) :
Do I need to escape the
On 09/10/2012 15:23, Dave Angel wrote:
On 10/09/2012 10:02 AM, loial wrote:
I am trying to match a string that containing the and characters, using
the string contains function, but it never seems to find the lines containing the string
e.g if mystring.contains(TAG) :
Do I need to escape
On Tuesday, 9 October 2012 15:19:33 UTC+1, Agon Hajdari wrote:
On 10/09/2012 04:02 PM, loial wrote: I am trying to match a string that
containing the and characters, using the string contains function,
but it never seems to find the lines containing the string e.g if
I have the following module implementing a registry of functions with a
decorator:
$ cat x.py
registry = {} # global dictionary
def dec(func):
registry[func.__name__] = func
print registry, id(registry)
return func
if __name__ == '__main__':
import xlib
print registry,
Am 09.10.2012 16:02, schrieb loial:
I am trying to match a string that containing the and
characters, using the string contains function, but it never seems to
find the lines containing the string
e.g if mystring.contains(TAG) :
I can't locate a 'contains' function anywhere, what type is
Michele Simionato wrote:
I have the following module implementing a registry of functions with a
decorator:
$ cat x.py
registry = {} # global dictionary
def dec(func):
registry[func.__name__] = func
print registry, id(registry)
return func
if __name__ == '__main__':
On Tuesday, October 9, 2012 5:24:17 PM UTC+2, Peter Otten wrote:
Seriously, you shouldn't use the main script as a library; it is put into
the sys.modules cache under the __main__ key. Subsequent imports under its
real name will not find that name in the cache and import another instance
On 2012-10-09, Peter Otten __pete...@web.de wrote:
Welcome to python -- this is a trap every newbie falls into ;)
Seriously, you shouldn't use the main script as a library;
There must be something wrong with me. It never even occurred to me
to try to import a file from within that same file.
Greetings,
I'm trying to generate C++ code from an XML file. I'd like to use a template
engine, which imo produce something readable and maintainable.
My google search about this subject has been quite unsuccessful, I've been
redirected to template engine specific to html mostly.
Does anybody
Thanks indeed for your tips. Now I understand the difference between tuples and
dictionaries deeper.
--
http://mail.python.org/mailman/listinfo/python-list
On 10/09/2012 11:36 AM, Michele Simionato wrote:
On Tuesday, October 9, 2012 5:24:17 PM UTC+2, Peter Otten wrote:
Seriously, you shouldn't use the main script as a library; it is put into
the sys.modules cache under the __main__ key. Subsequent imports under its
real name will not find
Bob Martin wrote
in 682592 20121008 232126 Prasad, Ramit ramit.pra...@jpmorgan.com wrote:
Thomas Bach wrote:=0D=0A Hi there,=0D=0A =0D=0A On Sat, Oct 06, 2012 at =
03:08:38PM +, Steven D'Aprano wrote:=0D=0A =0D=0A my_tuple =3D my_=
tuple[:4]=0D=0A a,b,c,d =3D my_tuple if len(my_tuple)
On Tue, Oct 9, 2012 at 2:35 AM, Hussain, Mushabbar
mushabbar.huss...@honeywell.com wrote:
Hi,
Is it possible to define an Event which should fire when a value of a
variable changes? Something like below
self.Bind(wx.EVT_ON_VAL_CHANGE, variable_to_watch, self.Callback)
I need a Text
Grant Edwards wrote:
On 2012-10-09, Peter Otten __pete...@web.de wrote:
Welcome to python -- this is a trap every newbie falls into ;)
Seriously, you shouldn't use the main script as a library;
There must be something wrong with me. It never even occurred to me
to try to import a file
I've just managed to install ipython and get it to run by typing ipython
notebook --pylab=inline
Now I'm getting the following error when I try to plot something in ipython
notebook:
AttributeError: 'module' object has no attribute 'FigureCanvas'
I've tried using imports to make this work:
On 10/09/2012 05:00 PM, Jean-Michel Pichavant wrote:
Greetings,
I'm trying to generate C++ code from an XML file. I'd like to use a template
engine, which imo produce something readable and maintainable.
My google search about this subject has been quite unsuccessful, I've been
redirected to
On Tue, 09 Oct 2012 20:55:48 +0100
Andrea Crotti andrea.crott...@gmail.com wrote:
On 10/09/2012 05:00 PM, Jean-Michel Pichavant wrote:
Greetings,
I'm trying to generate C++ code from an XML file. I'd like to use a
template engine, which imo produce something readable and maintainable.
HotNet1
hi,
join small social bookmarking and share best links with pepole.
Please share your friends.We are waiting for you.
thank you
HotNet1 team
http://www.hotnet1.com
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, 09 Oct 2012 11:08:13 -0600, Ian Kelly wrote:
On Tue, Oct 9, 2012 at 8:08 AM, Demian Brecht demianbre...@gmail.com
wrote:
A single underscore semantically means private. A double underscore
will name mangle the function such that it's only accessible strictly
by name through the class
On 12-10-09 04:51 PM, Steven D'Aprano wrote:
Really? I tend to view name mangling as a waste of time, and complex
inheritance structures as something to avoid.
Yep, I've been coming around to this as of late.
--
Demian Brecht
@demianbrecht
http://demianbrecht.github.com
--
Hi list,
I just noticed that in /usr/lib/python2.7/threading.py
class _Condition(_Verbose):
...
def _is_owned(self):
# Return True if lock is owned by current_thread.
# This method is called only if __lock doesn't have
_is_owned().
if self.__lock.acquire(0):
On 10/9/12 11:27 AM, bkee...@gmail.com wrote:
I've tried all the usual suspect of uninstalling and reinstalling IDLE and
Python 2.7.3, but my IDLE environment always crashes unexpectedly on Mac OS X
10.8.
Where did you get Python? What version of Tcl/Tk do you have installed?
Is it the one
Hi,
Has PEP- introduced backward incompatibilities or changes in unicode
encoding
and decoding or should this updated pep require python 3 to make mod_wsgi
working with wsgi 1.0 (pep-333)
scripts ? Moreover is it possible to use python 2.7 with mod_wsgi at all
without the utf-8
encoding
On 2012-10-10 01:32, Wenhua Zhao wrote:
Hi list,
I just noticed that in /usr/lib/python2.7/threading.py
class _Condition(_Verbose):
...
def _is_owned(self):
# Return True if lock is owned by current_thread.
# This method is called only if __lock doesn't have
I have an external process, 'tralics' that emits mathml when you feed it
latex equations. I want to get that mathml into a string.
The problem for me is that tralics wants to talk to a tty and I've never
done that before; it basically starts its own subshell.
I have the following code which
Hi everyone,
it's been a while since the last stable release series appeared, so I'm
proud to announce the final release of lxml 3.0.
http://lxml.de/
http://pypi.python.org/pypi/lxml/3.0
Changelog: http://lxml.de/changes-3.0.html
In short, lxml is the most feature-rich and easy-to-use library
Roundup Robot added the comment:
New changeset 3dd012397b11 by Chris Jerdonek in branch '3.2':
Issue #16115: Improve subprocess.Popen() documentation around args, shell, and
executable arguments.
http://hg.python.org/cpython/rev/3dd012397b11
New changeset 0ef3b801ccbc by Chris Jerdonek in
Changes by Chris Jerdonek chris.jerdo...@gmail.com:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16115
Roundup Robot added the comment:
New changeset 46889b772442 by Vinay Sajip in branch 'default':
Issue #16141: replaced old-style exception handling code in logging with the
modern idiom.
http://hg.python.org/cpython/rev/46889b772442
--
nosy: +python-dev
Roundup Robot added the comment:
New changeset 6f3e48838a2d by Chris Jerdonek in branch 'default':
Issue #16161: Update link for downloading Microsoft Visual Studio 2008.
http://hg.python.org/devguide/rev/6f3e48838a2d
--
nosy: +python-dev
___
Python
Changes by Chris Jerdonek chris.jerdo...@gmail.com:
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16161
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk:
--
assignee: vinay.sajip -
title: Possible simplification for logging.StreamHandler exception handling -
Possible simplification for old-style exception handling code in stdlib
___
Python tracker
Roundup Robot added the comment:
New changeset 6e31832f8275 by Vinay Sajip in branch '2.7':
Issue #16168: Use specified socket type for domain sockets in SysLogHandler.
http://hg.python.org/cpython/rev/6e31832f8275
New changeset f41e6ef3392a by Vinay Sajip in branch '3.2':
Issue #16168: Use
Roundup Robot added the comment:
New changeset a6f37d503878 by Senthil Kumaran in branch '3.2':
Fix Issue 15922: make howto/urllib2.rst doctests pass.
http://hg.python.org/cpython/rev/a6f37d503878
New changeset a24d3e2124b6 by Senthil Kumaran in branch '3.3':
Fix Issue 15922: make
Chris Jerdonek added the comment:
BTW, the patch fails for 3.2 and 3.3 but works for 3.4
By patch do you mean test? And by works, do you mean fails or succeeds?
:)
I haven't prepared a patch yet, but I just started working on it. On my
machine, I found that the test fails as is on 3.3 and
Chris Jerdonek added the comment:
Thanks, Senthil!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15922
___
___
Python-bugs-list mailing list
Changes by Chris Jerdonek chris.jerdo...@gmail.com:
--
assignee: - chris.jerdonek
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16114
___
___
Roundup Robot added the comment:
New changeset b2f282991973 by Senthil Kumaran in branch '2.7':
Fix Issue 15922: make howto/urllib2.rst doctests pass.
http://hg.python.org/cpython/rev/b2f282991973
--
___
Python tracker rep...@bugs.python.org
Changes by Senthil Kumaran sent...@uthcode.com:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15922
___
Changes by Kushal Das kushal...@gmail.com:
--
nosy: +kushaldas
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14039
___
___
Python-bugs-list
Roundup Robot added the comment:
New changeset ce0d0d052494 by Vinay Sajip in branch 'default':
Closes #16110: fileConfig now accepts a pre-initialised ConfigParser instance.
http://hg.python.org/cpython/rev/ce0d0d052494
--
nosy: +python-dev
resolution: - fixed
stage: -
New submission from Antoine Pitrou:
unittest docs suggest the following load_tests for a __main__.py:
def load_tests(loader, standard_tests, pattern):
# top level directory cached on loader instance
this_dir = os.path.dirname(__file__)
package_tests =
Amaury Forgeot d'Arc added the comment:
Note: the error message above is mojibake (cp1253-encoded message written to a
cp737 console) for:
Δεν ήταν δυνατό να εντοπιστεί η καθορισμένη μονάδα (The specified module
could not be found)
Spiros, you closed the issue. How did you fix it exactly?
Changes by Kushal Das kushal...@gmail.com:
--
nosy: +kushaldas
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16061
___
___
Python-bugs-list
Michael Foord added the comment:
Yes the version of load_tests you show is better. However there is an
outstanding issue to fix the load_tests protocol to work with pattern=None
which is a better fix. (I think this is a bug in load_tests rather than a doc
issue really.)
Issue 11218.
Michael Foord added the comment:
Changing the docs to the following fixes the original reported issue:
def load_tests(loader, standard_tests, pattern):
# top level directory cached on loader instance
this_dir = os.path.dirname(__file__)
pattern = pattern or test_*.py
Kushal Das added the comment:
So, should I submit a new patch which will just put a warning ?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16125
___
Ned Deily added the comment:
I've been able to isolate the problem to a particular Tk checkin and have
opened an Tk issue with details here:
https://sourceforge.net/tracker/?func=detailaid=3575681group_id=12997atid=112997
--
___
Python tracker
Ned Deily added the comment:
I've been able to build Cocoa Tk and isolate the crash regression to a
particular Tk checkin. This Tk issue contains the details:
https://sourceforge.net/tracker/?func=detailatid=112997aid=3575664group_id=12997
--
___
New submission from Serhiy Storchaka:
Here are two patches written on the discussion in Python-Ideas [1].
The first patch fixes incorrect use of x is 0 or x is 'foo'. Result of this
operations is implementation details.
The second patch changes non-idiomatic use of x == None or x == True.
Changes by Serhiy Storchaka storch...@gmail.com:
Added file: http://bugs.python.org/file27504/equals_none_or_bool.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16172
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
components: +Tests
nosy: +ezio.melotti
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16172
___
Antoine Pitrou added the comment:
Try prefixing doesnotexist with the same dirname as sys.executable
(i.e. `os.path.join(os.path.dirname(sys.executable), doesnotexist)`).
Python under Unix uses its own path to determine where the standard library is,
and it does so by inspecting argv[0].
Antoine Pitrou added the comment:
If you prefer two macros instead of three then we should name them
PY_IS_LITTLE_ENDIAN and PY_IS_BIG_ENDIAN.
Fine with me. Having three macros is pointless complication.
If I understand you correctly than we can't have a configure definition
and need
New submission from Baptiste Mispelon:
When a syntax error happens, the exception that gets printed has an extra line
with a caret that helps locate the error.
If the line also contains an identifier with non-ascii characters, then this
caret is misaligned (too far on the right).
I've
Ezio Melotti added the comment:
See #2382.
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16173
___
___
Python-bugs-list
New submission from Berker Peksag:
The suggested usage should be like this:
try:
import threading
except ImportError:
import dummy_threading as threading
See:
- http://hg.python.org/cpython/file/ce0d0d052494/Lib/queue.py#l3
-
Michael Foord added the comment:
Unfortunately subclassing core components is the *intended* mechanism for
customising unittest behaviour. Changing this is possible, but is a big job
with very extensive changes.
I don't think this request is *invalid* per-se, but it isn't something that
Roundup Robot added the comment:
New changeset 7de9c620716e by Andrew Svetlov in branch '3.2':
Issue #16174: Fix suggested usage of dummy_threading module.
http://hg.python.org/cpython/rev/7de9c620716e
New changeset f02974773a71 by Andrew Svetlov in branch '3.3':
Merge issue #16174: Fix
Andrew Svetlov added the comment:
Fixed. Thanks, Berker.
--
nosy: +asvetlov
resolution: - fixed
stage: - committed/rejected
status: open - closed
versions: +Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16174
Michael Vogt added the comment:
Thanks for this detailed explaination! I will workaround this outside of python
(that is easy ;) - I just thought that it would be a good idea to be able to
change the fsencoding (and therefore send the patch), but in the light of e.g.
sys.path it seems to be
Roundup Robot added the comment:
New changeset a3d65edc3b04 by Richard Oudkerk in branch '3.3':
Issue #16169: Fix ctypes.WinError()'s confusion between errno and winerror
http://hg.python.org/cpython/rev/a3d65edc3b04
New changeset d3c4dcd9a048 by Richard Oudkerk in branch 'default':
Issue
Brett Cannon added the comment:
Finder is only documented as deprecated; actually making it work with a
reasonable warning is too much of a pain for such little gain. So it can just
stay in as there is no maintenance burden.
--
___
Python tracker
Brett Cannon added the comment:
This can get fixed in 3.3.1, which is why I left Python 3.3 as an affected
version.
Hopefully I can get to a fix this week. I need to write a test showing that a
module that doesn't exist as specified in a fromlist is silently ignored, but
if a module in a
Roundup Robot added the comment:
New changeset 79231a12567a by Eli Bendersky in branch '3.3':
Issue #12322: clarify xpath reference for cases where the path reaches
ancestors of the start element. Also add missing markup for a None. Thanks to
patrick vrijlandt and Mike Hoy for the report and
1 - 100 of 189 matches
Mail list logo