Dave Angel wrote:
m.reddy prasad reddy wrote:
can any one tell me how to write assembly language programs in
python...if
no is there any other way to write the programs in python
Reddi prasad reddy
ph.no:09958083797
Assembly language is a different programming language than Python. You
On Thu, 09 Jul 2009 17:06:45 +0100, Tom Kermode tkerm...@gmail.com wrote:
Hi,
Do you know a good way to avoid running into this problem? It
makes sense to suggest not calling variables the same names as
built-in functions, but that's hard for a new python programmer who
doesn't already
superpollo wrote:
Lie Ryan wrote:
superpollo wrote:
Lie Ryan wrote:
AFAIK, no major linux distributions have officially ported to python
3.x.
http://packages.debian.org/experimental/python3.1
Note the word experimental
i noticed. isn't experimental official? i thought it was...
Lacrima lacrima.ma...@gmail.com (L) wrote:
L Thank you for really useful and detailed explanation. Now I can test
L my code using Emacs.
L But I think it works for me in a little bit different way.
L My file contains only the print 'hello world'.
L If I have no python shell running, then:
L a)
Paul Simon wrote:
Peter Otten __pete...@web.de wrote in message
news:h3481q$d95$0...@news.t-online.com...
Paul Simon wrote:
Im using Mandriva 2008.1. I have to tell you honestly that I'm not sure
exactly how I installed Python. Originally I had installed 2.5 from RPM
but 2.6 was not
Hi,
I would like to learn a way of changing the colour of a particular
part of the output text. I've tried the following:
import os
os.system(color 17)
print This should be white on blue
But that command changes the colour of ALL the text and the whole
background. What i'm trying to do is
On 2009-07-09, DuaneKaufman duane.kauf...@gmail.com wrote:
On Jul 9, 12:18 pm, Tim Harig user...@ilthio.net wrote:
On 2009-07-09, TheSeeker duane.kauf...@gmail.com wrote:
Specifically, I have a WinForms application I will be wanting to
automate. Does anyone have some Python examples of
On 2009-07-09, Alex Rosslyn black.line...@gmail.com wrote:
I would like to learn a way of changing the colour of a particular
part of the output text. I've tried the following
http://catb.org/esr/faqs/smart-questions.html
import os
os.system(color 17)
print This should be white on blue
I
On 2009-07-09 12:34, Sebastian Schabe wrote:
Hello everybody,
I want to concatenate 2 numpy array which in fact are RGB images:
def concat_images(im1,im2):
rows1 = im1.shape[0]
rows2 = im2.shape[0]
if rows1 rows2:
im1 = concatenate((im1,zeros((rows2-rows1,im1.shape[1],3), int)), axis=0)
elif
On Jul 9, 12:45 pm, Tim Harig user...@ilthio.net wrote:
On 2009-07-09, DuaneKaufman duane.kauf...@gmail.com wrote:
On Jul 9, 12:18 pm, Tim Harig user...@ilthio.net wrote:
On 2009-07-09, TheSeeker duane.kauf...@gmail.com wrote:
Specifically, I have a WinForms application I will be wanting
On Jul 9, 8:42 pm, Piet van Oostrum p...@cs.uu.nl wrote:
Lacrima lacrima.ma...@gmail.com (L) wrote:
L Thank you for really useful and detailed explanation. Now I can test
L my code usingEmacs.
L But I think it works for me in a little bit different way.
L My file contains only the print
On Jul 9, 1:09 pm, DuaneKaufman duane.kauf...@gmail.com wrote:
The application I wish to interact with is not my own, but an ERP
system GUI front-end.
I have used pywinauto to drive a Flash game running inside of an
Internet Explorer browser - that's pretty GUI!
-- Paul
--
On Wed, 08 Jul 2009 22:05:57 -0700, Simon Forman wrote:
persistent idea out there that programming is a very accessible
skill, like cooking or gardening, anyone can do it, and even profit
from it, monetarily or otherwise, etc., and to some extent I am
Programming is not like any other human
On Jul 9, 1:29 pm, Paul McGuire pt...@austin.rr.com wrote:
On Jul 9, 1:09 pm, DuaneKaufman duane.kauf...@gmail.com wrote:
The application I wish to interact with is not my own, but an ERP
system GUI front-end.
I have used pywinauto to drive a Flash game running inside of an
Internet
Hi Rhodri,
It's only really a pitfall if you try to use the built-in after you've
redefined it. That's the thing to keep an eye open for.
You're right, but in cases where you're editing a codebase which you
didn't author entirely by yourself you may not be aware of that.
That said, if
Paul Simon wrote:
Peter Otten __pete...@web.de wrote in message
news:h3481q$d95$0...@news.t-online.com...
Paul Simon wrote:
Chris Rebert c...@rebertia.com wrote in message
news:mailman.2863.1247095339.8015.python-l...@python.org...
On Wed, Jul 8, 2009 at 4:18 PM, Paul Simonpsi...@sonic.net
On Jul 9, 1:16 pm, Sean sberr...@gmail.com wrote:
I have a huge list, 10,000,000+ items. Each item is a dictionary with
fields used to sort the list. When I have completed sorting I want to
grab a page of items, say 1,000 of them which I do easily by using
list_data[x:x+1000]
Now I want to
On Thu, 2009-07-09 at 18:10 +, Steven D'Aprano wrote:
If programming is symbol manipulation, then you should remember that
the
user interface is also symbol manipulation, and it is a MUCH harder
problem than databases, sorting, searching, and all the other
problems
you learn about in
On Jul 9, 1:16 pm, Sean sberr...@gmail.com wrote:
I have a huge list, 10,000,000+ items. Each item is a dictionary with
fields used to sort the list. When I have completed sorting I want to
grab a page of items, say 1,000 of them which I do easily by using
list_data[x:x+1000]
Now I want to
On Jul 9, 1:16 pm, Sean sberr...@gmail.com wrote:
I have a huge list, 10,000,000+ items. Each item is a dictionary with
fields used to sort the list. When I have completed sorting I want to
grab a page of items, say 1,000 of them which I do easily by using
list_data[x:x+1000]
Now I want to
DuaneKaufman wrote:
With MS utilities like UISpy and the like, I can 'see' the controls in
the application, but I
do not seem to be able to manipulate them programatically, and I
believe it us simply due
to my not understanding of the UI Automation API.
You're probably better off using a
TheSeeker wrote:
Alternatives to Microsoft's UI Automation are welcome too, but I have
tried using winguiauto and watsup (along with AutoIt), and there seems
to be severe limitations when using these tools with WinForm
applications.
http://www.autoitscript.com/forum/index.php?showtopic=96752
On Jul 9, 7:30 pm, Lie Ryan lie.1...@gmail.com wrote:
brasse wrote:
Hello!
I have been thinking about how write exception safe constructors in
Python. By exception safe I mean a constructor that does not leak
resources when an exception is raised within it. The following is an
example
On Jul 10, 3:54 am, Robert Kern robert.k...@gmail.com wrote:
On 2009-07-09 01:27, Helvin wrote:
On Jul 9, 11:29 am, Robert Kernrobert.k...@gmail.com wrote:
On 2009-07-08 18:10, Helvin wrote:
Thanks for the fast replies! I will look into how to use VTK now.
Where would I find VTK's
On Jul 9, 4:12 pm, Michael Torrie torr...@gmail.com wrote:
TheSeeker wrote:
Alternatives to Microsoft's UI Automation are welcome too, but I have
tried using winguiauto and watsup (along with AutoIt), and there seems
to be severe limitations when using these tools with WinForm
Steven D'Aprano wrote:
There is some evidence that 30-60% of people simply cannot learn to
program, no matter how you teach them:
http://www.codinghorror.com/blog/archives/000635.html
http://www.cs.mdx.ac.uk/research/PhDArea/saeed/
I'm sympathetic to the idea, but not entirely convinced.
tt-industries wrote:
Hi,
I am programming a oscilloscope module in Python. For this reason, I
want to plot very many data points as fast as possible. This can be
more than 100 000 at once.
At once is impossible ;-)
So far I have been using the ploting module
of wxPython.
which plotting
Hi,
I am programming a oscilloscope module in Python. For this reason, I
want to plot very many data points as fast as possible. This can be
more than 100 000 at once. So far I have been using the ploting module
of wxPython. However, it becomes unstable for more than 25000 points.
Can someone
Or maybe he meant if you can have both Python and assembler code in
the same source file, but I haven't heard of it. If what you are
trying to do is write a faster version of some part of your code, try
SWIG: http://www.swig.org/
Playing the guessing game is a time sink, and since nobody has
On Jul 9, 2009, at 9:20 AM, Lie Ryan wrote:
Michael Mossey wrote:
I want to understand better what the secret is to responding to a
ctrl-C in any shape or form.
Are you asking: when would the python interpreter process
KeyboardInterrupt?
...
In single threaded python program, the currently
On Thu, Jul 9, 2009 at 3:17 AM, m.reddy prasad reddyreddy@gmail.com wrote:
can any one tell me how to write assembly language programs in python...if
no is there any other way to write the programs in python
Reddi prasad reddy
ph.no:09958083797
--
Hi,
There is a behaviour I do not understand of PyRun_SimpleFileExFlags(),
normally when it executes a python script containing a sys.exit(), it
results by ending the calling application.
I have got this behaviour with PyRun_SimpleFileExFlags() when I call it
from the main thread of a GUI
Simon Forman:
Examine CorePyhttp://www.corepy.org
CorePy is a complete system for developing machine-level programs in
Python. CorePy lets developers build and execute assembly-level
programs interactively from the Python command prompt, embed them
directly in Python applications, or export
On Thu, Jul 9, 2009 at 3:03 PM,
tt-industriesmail.to.daniel.pl...@googlemail.com wrote:
Hi,
I am programming a oscilloscope module in Python. For this reason, I
want to plot very many data points as fast as possible. This can be
more than 100 000 at once. So far I have been using the ploting
On Thu, Jul 9, 2009 at 9:42 AM, Nicknleio...@gmail.com wrote:
snip
fields = line.split()
for i in range(len(fields)):
fields[i] = float(fields[i])
instead of the above code you could say:
fields = [float(n) for n in in line.split()]
Have fun getting back into python! :] (A lot
Nick nleio...@gmail.com writes:
text = file.readlines()
len = len(text)
fields = text[1].split()
Is that intended to split the first line of the file? Remember
that arrays in python begin at index 0.
--
http://mail.python.org/mailman/listinfo/python-list
Los Angeles (AP) --MeAmI.org now has users in 50 countries following
its adopted use in Pakistan. The search engine has grown in
popularity 10,000 fold following its Beta test launch three months ago
in April, 2009. Supporters of the site claim it is better than rival
Google upon which platform
In message h3291j$mf...@reader1.panix.com, kj wrote:
.., Lundh writes:
Assignment statements modify namespaces, not objects.
counterexample
a = [3]
b = a
These may indeed modify a namespace, not any object. However:
a[:] = [4]
a
[4]
b
[4]
What change
Tony Houghton h...@realh.co.uk writes:
I've looked through the manual but I can't find any hooks in distutils
for generating files at install time other than extension modules and
.pyc files. Should I just run the script from somewhere in my setup.py
before calling distutils' setup function?
On Jul 9, 6:03 pm, Musatov marty.musa...@gmail.com wrote:
Los Angeles (AP) -- MeAmI.org now has users in 50 countries following
its adopted use in Pakistan. The search engine has grown in
popularity 10,000 fold following its Beta test launch three months ago
in April, 2009. Supporters of the
tt-industries mail.to.daniel.pl...@googlemail.com writes:
I am programming a oscilloscope module in Python. For this reason, I
want to plot very many data points as fast as possible. This can be
more than 100 000 at once.
I think you will find good results using Numpy for your arrays of data
In article
0734dc45-d8a0-4f28-b945-f9e179f30...@h11g2000yqb.googlegroups.com,
tt-industries mail.to.daniel.pl...@googlemail.com wrote:
I am programming a oscilloscope module in Python.
Sigh. I guess I'm showing my age, but I still can't get used to the idea
that the right tool to build an
Hi all,
For one of my projects, I came across the need to check if one of many
items from a list of strings could be found in a long string. I came
up with a pretty quick helper function to check this, but I just want
to find out if there's something a little more elegant than what I've
cooked
On Thu, Jul 9, 2009 at 6:36 PM, inkhornmatt.dub...@sympatico.ca wrote:
Hi all,
For one of my projects, I came across the need to check if one of many
items from a list of strings could be found in a long string. I came
up with a pretty quick helper function to check this, but I just want
to
Musatov wrote:
Los Angeles (AP) --MeAmI.org now has users in 50 countries following
its adopted use in Pakistan. The search engine has grown in
popularity 10,000 fold following its Beta test launch three months ago
in April, 2009. Supporters of the site claim it is better than rival
Google upon
I'll be the first to admit it. The point of writing a fake story by
Associated Press and publishing it on a programming mailing list is
totally beyond me.
Confoundedly yours,
Friðrik Már
--
http://mail.python.org/mailman/listinfo/python-list
On Jul 9, 6:41 pm, David Bernier david...@videotron.ca wrote:
Musatov wrote:
Los Angeles (AP) --MeAmI.org now has users in 50 countries following
its adopted use in Pakistan. The search engine has grown in
popularity 10,000 fold following its Beta test launch three months ago
in April,
In article mailman.2905.1247159861.8015.python-l...@python.org,
Joshua Kugler jos...@joshuakugler.com wrote:
Joshua Kugler wrote:
Sorry about that...since pysqlite and APSW are both discusses on the
pysqlite list, I had made an incorrect assumption. Oops.
are both discusses? Yeef, I must
Hello, I administer the Informatica ETL tool at my company. Part of
that role involves creating and enforcing standards. I want the
Informatica developers to add comments to certain key objects and I want
to be able to verify (in an automated fashion) that they have done so.
I cannot merely
Thank you.
Martin Musatov
2009/7/9 Friðrik Már Jónsson frid...@pyth.net
I'll be the first to admit it. The point of writing a fake story by
Associated Press and publishing it on a programming mailing list is totally
beyond me.
Confoundedly yours,
Friðrik Már
--
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
jacopo mondi wrote:
Hi all, I need to patch socketmodule.c (the _socket module) in order to
add support to an experimental socket family.
You may find it considerably easier to use ctypes since that will avoid
the need for any patching. You'll
On Thu, 09 Jul 2009 04:57:15 -0300, Gabriel Genellina wrote:
Nobody says you shouldn't check your data. Only that assert is not the
right way to do that.
assert is not the right way to check your *inputs*. It's a perfectly
reasonable way to check data which should be valid, as well as a way
On Fri, 10 Jul 2009 02:06:35 +, Jason S. Friedman wrote:
Hello, I administer the Informatica ETL tool at my company. Part of
that role involves creating and enforcing standards. I want the
Informatica developers to add comments to certain key objects and I want
to be able to verify (in
Where do you get this beta? I heard that Psyco V2 is coming out but
can't find anything on their site to support this.
--
Zachary Burns
(407)590-4814
Aim - Zac256FL
Production Engineer (Digital Overlord)
Zindagi Games
On Sat, Jul 4, 2009 at 5:26 AM, larudwerlarud...@freenet.de wrote:
just out
Fred Atkinson fatkin...@mishmash.com wrote:
I wonder why they don't just have a function to return it instead of
putting you through all of that?
In CGI, EVERYTHING gets communicated through environment variables. That
(and the stdin stream) is really the only option, since you get a new
Musatov wrote:
Los Angeles (AP) --MeAmI.org now has users in 50 countries following
its adopted use in Pakistan. The search engine has grown in
popularity 10,000 fold following its Beta test launch three months ago
in April, 2009. Supporters of the site claim it is better than rival
Google upon
On Thu, 09 Jul 2009 18:36:05 -0700, inkhorn wrote:
For one of my projects, I came across the need to check if one of many
items from a list of strings could be found in a long string.
If you need to match many strings or very long strings against the same
list of items, the following should
On Fri, 10 Jul 2009 03:28:04 +0100, Nobody wrote:
On Thu, 09 Jul 2009 04:57:15 -0300, Gabriel Genellina wrote:
Nobody says you shouldn't check your data. Only that assert is not
the right way to do that.
assert is not the right way to check your *inputs*. It's a perfectly
reasonable way
Steven D'Aprano wrote:
And speaking of binary search:
[quote]
I was shocked to learn that the binary search program that Bentley PROVED
CORRECT and SUBSEQUENTLY TESTED [emphasis added] in Chapter 5 of
Programming Pearls contains a bug. Once I tell you what the it is, you
will understand why
On Jul 9, 7:54 pm, David Bernier david...@videotron.ca wrote:
Musatov wrote:
Los Angeles (AP) --MeAmI.org now has users in 50 countries following
its adopted use in Pakistan. The search engine has grown in
popularity 10,000 fold following its Beta test launch three months ago
in April,
Jason S. Friedman ja...@powerpull.net wrote in message
news:mailman.2927.1247192026.8015.python-l...@python.org...
Hello, I administer the Informatica ETL tool at my company. Part of that
role involves creating and enforcing standards. I want the Informatica
developers to add comments to
On Jul 10, 1:25 pm, scribe...@yahoo.com wrote:
On Jul 9, 7:54 pm, David Bernier david...@videotron.ca wrote:
Musatov wrote:
Los Angeles (AP) --MeAmI.org now has users in 50 countries following
its adopted use in Pakistan. The search engine has grown in
popularity 10,000 fold
scribe...@yahoo.com wrote in message
news:defacf35-6149-485a-8f03-15472d63d...@a39g2000pre.googlegroups.com...
ka-snip
Oh, puh-LEEZ, Martin! A two-year-old wouldn't be fooled by this!
--
http://mail.python.org/mailman/listinfo/python-list
Hello Daniel,
Can someone recommend me a faster plotting library?
I found out gnuplot to be blazing fast for many many points.
I usually just call it using subprocess but there are Python bindings
to it somewhere as well.
HTH,
--
Miki miki.teb...@gmail.com
http://pythonwise.blogspot.com
--
inkhorn matt.dub...@sympatico.ca writes:
def list_items_in_string(list_items, string):
for item in list_items:
if item in string:
return True
return False
You could write that as (untested):
def list_items_in_string(list_items, string):
return any(item in
On Thu, 09 Jul 2009 18:36:05 -0700, inkhorn wrote:
def list_items_in_string(list_items, string):
for item in list_items:
if item in string:
return True
return False
...
Any ideas how to make that function look nicer? :)
Change the names. Reverse the order of the
On Jul 10, 12:53 pm, Nobody nob...@nowhere.com wrote:
On Thu, 09 Jul 2009 18:36:05 -0700, inkhorn wrote:
For one of my projects, I came across the need to check if one of many
items from a list of strings could be found in a long string.
If you need to match many strings or very long
On Thu, 09 Jul 2009 23:07:34 -0400, Terry Reedy wrote:
Steven D'Aprano wrote:
And speaking of binary search:
[quote]
I was shocked to learn that the binary search program that Bentley
PROVED CORRECT and SUBSEQUENTLY TESTED [emphasis added] in Chapter 5 of
Programming Pearls contains a
On Jul 9, 7:54 pm, David Bernier david...@videotron.ca wrote:
Musatov wrote:
Los Angeles (AP) --MeAmI.org now has users in 50 countries following
its adopted use in Pakistan. The search engine has grown in
popularity 10,000 fold following its Beta test launch three months ago
in April,
Peter peter.milli...@gmail.com wrote:
Any help would be appreciated :-)
I want to write an auction sniping tool in Python.
Please don't.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
TheSeeker duane.kauf...@gmail.com wrote:
I am embarking on teaching myself Microsoft UI Automation using Python
as the scripting language.
The University of North Carolina at Chapel Hill has a great Python package
called pyAA that does exactly this:
I am trying to implement a simple client that can do the following:
1)to send the following kinds of HTTP requests and validate responses
1.1 GET
1.2 POST with application/x-www-form-urlencoded encoding
1.3 POST with multipart/form-data encoding
2)to set any number of (even duplicate) headers.
Musatov wrote:
On Jul 9, 7:54 pm, David Bernier david...@videotron.ca wrote:
Musatov wrote:
Los Angeles (AP) --MeAmI.org now has users in 50 countries following
its adopted use in Pakistan. The search engine has grown in
popularity 10,000 fold following its Beta test launch three months ago
On Jul 9, 8:33 pm, Bruce C. Baker b...@undisclosedlocation.net
wrote:
scribe...@yahoo.com wrote in message
news:defacf35-6149-485a-8f03-15472d63d...@a39g2000pre.googlegroups.com...
ka-snip
Oh, puh-LEEZ, Martin! A two-year-old wouldn't be fooled by this!
Any reason ka-snip?
Binomial
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
I fail to follow your logic, in the following respects:
1. The exception text cannot be cached in the formatter because a
formatter will format lots and lots of records. Formatters live for a
long time, records do not.
2. The exception text
Sridhar Ratnakumar sridh...@activestate.com added the comment:
On Wed, 08 Jul 2009 23:59:17 -0700, Vinay Sajip rep...@bugs.python.org
wrote:
1. The exception text cannot be cached in the formatter because a
formatter will format lots and lots of records. Formatters live for a
long time,
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
Not thoroughly .. as I missed the point 1. on formatter processing
multiple records.
But what do you say to points 2, 3 and 4? Of course they may not apply
to your use case, but are they not valid points?
--
New submission from Max Arnold lwa...@gmail.com:
I use syslog message routing mechanism to log high-priority messages
from my python code to separate file. When exceptions are logged, only
first line routed to specified file, and the rest goes in /var/log/messages.
Such problem exists when
Mark Dickinson dicki...@gmail.com added the comment:
One *could* add a check in pythonrun.c to substitute some suitable
default (UTF-8) if nl_langinfo(CODESET) returns an empty value.
While googling for the source of this problem, I found other software
projects that take this approach. It
Marc-Andre Lemburg m...@egenix.com added the comment:
Tarek Ziadé wrote:
Tarek Ziadé ziade.ta...@gmail.com added the comment:
I'll set back the compiler attribute when compiler_obj is set too,
so third-party code will be able to work with it as before.
The current code will deprecate
Ronald Oussoren ronaldousso...@mac.com added the comment:
The manpage says that nl_langinfo returns an empty string when there is
an invalid setting.
There is validity in saying that 'LANG=utf-8' is an invalid setting, the
LANG variable is supposed to a locale name, which would be a language
Sridhar Ratnakumar sridh...@activestate.com added the comment:
2. The exception text needs to be stored in the record, because in some
instances (e.g. pickling and sending over a socket) this information
will not be available at the other end in any other way.
Caching in the record object is
Mark Dickinson dicki...@gmail.com added the comment:
There is validity in saying that 'LANG=utf-8' is an invalid setting
Agreed. But that doesn't really explain why e.g. LANG=en_US also
produces , while LANG=invalid produces US-ASCII.
I do wonder how the user ended up with LANG=utf-8 in
Tarek Ziadé ziade.ta...@gmail.com added the comment:
The build_ext command cannot be run twice, because the first time, the
compiler option may be set to unix for example, or left to None, and
then is transformed into a compiler object. That's the bug.
If you call it again, it'll break because
Ronald Oussoren ronaldousso...@mac.com added the comment:
The attached patch (issue6393-fix.patch) seems to fix the issue.
Could you please test and have a look at the patch? It basicly tests if
the output of nl_langinfo(CODESET) is the empty string and defaults to
'UTF-8' in that case (but
Marc-Andre Lemburg m...@egenix.com added the comment:
Tarek Ziadé wrote:
Tarek Ziadé ziade.ta...@gmail.com added the comment:
The build_ext command cannot be run twice, because the first time, the
compiler option may be set to unix for example, or left to None, and
then is transformed into
Marc-Andre Lemburg m...@egenix.com added the comment:
FWIW: I've changed our mxSetup code to use a method for accessing
the compiler instance.
Perhaps that's the better way to go for standard distutils commands
as well ?! E.g. .get_compiler_object()
--
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
The double null is supposed to mark the end of the whole sequence; the
content you show under PendingFileRenameOperations is a invalid
REG_MULTI_SZ value to me.
How does regedit display it?
--
nosy: +amaury.forgeotdarc
Changes by OG7 ony...@users.sourceforge.net:
--
nosy: +OG7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5870
___
___
Python-bugs-list mailing
New submission from OG7 ony...@users.sourceforge.net:
communicate is often used in one-liners, but becomes a four-liner if you
want to check the process exit status. Adding a check parameter would
make it more convenient to get things right and write non-buggy code.
The CalledProcessError
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
It seems that regedit itself cannot handle these values, see how users
have to edit data in binary mode to enter empty strings:
http://www.pcreview.co.uk/forums/thread-1715654.php
Here is a script that shows the problem: the value is
Mark Dickinson dicki...@gmail.com added the comment:
Thanks, Ronald! The patch fixes the problem for me.
(I directly patched the locale.py file installed from
the Python dmg, since I still haven't figured out how
to build a python executable that exhibits this
problem.)
The patch doesn't look
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
But the cache needs to be invalidated when `exc_info` is changed -
as in set to None when it was a traceback object.
When does the exc_info change for a record? AFAIK it's set when you
create a LogRecord, and that's it.
To be honest,
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
Shouldn't the logging module be reliable in such cases?
It tries to be, but it's neither omnipotent nor omniscient. It doesn't
expect streams which it's using to be closed out from under it.
See my comments about your ConsoleHandler
Ronald Oussoren ronaldousso...@mac.com added the comment:
Good catch, the code in the else is indeed in the wrong order.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6393
___
holger krekel holger.kre...@gmail.com added the comment:
I think the issue is unrelated to py.test - it just presents a use case
as it wants to run 1000's of tests and capture stdout/stderr per each
test function, cannot guess about a test's logging-usage yet wants to
minimize memory/resource
New submission from Julian Andres Klode j...@jak-linux.org:
The given example function initspam fails if an
Based on some experience with my own code, I have found out that the
function import_spam() fails when the module is not importable. In this
case, it returns 0, although it should return
Alexey Shamrin sham...@gmail.com added the comment:
Good suggestions, Mark! We should do both, I think. I didn't know about
sys.byteorder before your message ;-) Thanks for education!
How about this:
Native byte order is big-endian or little-endian, depending on the host
system. For example,
Alexey Shamrin sham...@gmail.com added the comment:
Little style:
Native byte order is big-endian or little-endian, depending on the host
system. For example, Intel x86 and AMD64 (x86-64) are little-endian;
Motorola 68000 and PowerPC G5 are big-endian; ARM and DEC Alpha feature
switchable
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
Is it a problem to have the logging module be a bit more defensive and
only try a flush/close if the stream isn't already closed?
Not particularly, but it would be better if the following approach were
taken:
import logging
import
101 - 200 of 255 matches
Mail list logo