I just released the first BETA of GOZERBOT version 0.9.2
Please test this release if you can.
Best is to run of the mercurial repo:
hg clone http://core.gozerbot.org/hg/dev/0.9
or run easy_install -U gozerbot gozerplugs (make sure there is no
gozerbot dir in your working directory.)
docs are
expy is an express way to extend python.
I have been using this in a big project and the outcome is quite satisfying.
What's New:
1. now generated header files are separate from implementation files.
2. bug fixes.
3. updated documentation.
For more information: http://expy.sourceforge.net/
On 4/25/2010 11:36 PM, Keith wrote:
I am considering writing a PEP for the inclusion of an engineering
format specifier, and would appreciate input from others.
I tested that input is no problem, so the only question is output.
Do you think this idea has enough merit to make it to PEP
On Apr 24, 6:53 pm, Alex Hall mehg...@gmail.com wrote:
Hello all,
I have a compiled version of my project, but the wx functions do not
work. When run from the python source, instead of the compiled .exe
file, wx works as expected. I am including msvcr90.dll in the dist
folder. I looked for
expy is an express way to extend python.
It is written in pure python and very light weight.
I have been using this in a big project and the outcome is quite satisfying.
What's New:
1. now generated header files are separate from implementation files.
2. bug fixes.
3. updated documentation.
Hello,
is there a way to get the GUID from a Network Device?
Kind Regard,
Richi
--
http://mail.python.org/mailman/listinfo/python-list
On 26/04/2010 09:06, Richard Lamboj wrote:
is there a way to get the GUID from a Network Device?
Are you talking about the MAC address? If so, here's
one way:
code
import wmi
for nic in wmi.WMI ().Win32_NetworkAdapterConfiguration ():
print nic.caption, =, nic.MACAddress
/code
If you're
On 04/25/10 08:32, jacky wang wrote:
could anyone help me?
On Apr 21, 2:55 pm, jacky wang bugking.w...@gmail.com wrote:
Hello
recently, I met a problem with one python application running with
python2.5 | debian/lenny adm64 system: it crashed occasionally in our
production
Am Monday 26 April 2010 10:14:24 schrieb Tim Golden:
On 26/04/2010 09:06, Richard Lamboj wrote:
is there a way to get the GUID from a Network Device?
Are you talking about the MAC address? If so, here's
one way:
code
import wmi
for nic in wmi.WMI ().Win32_NetworkAdapterConfiguration
Chris Rebert c...@rebertia.com wrote:
c = decimal.Context(prec=5)
decimal.Decimal(1234567).to_eng_string(c)
'1234567'
That is not an engineering notation string.
Apparently either you and the General Decimal Arithmetic spec differ
on what constitutes engineering notation, there's a
It doesn’t seem to mention in the documentation for os.walk
http://docs.python.org/library/os.html that symlinks to directories are
returned in the list of directories, not the list of files. This will lead
to an error in the os.rmdir call in the example directory-deletion routine
on that
Keith keith.braff...@gmail.com wrote:
Even though this uses the to_eng_string() function, and even though I
am using the decimal.Context class:
c = decimal.Context(prec=5)
decimal.Decimal(1234567).to_eng_string(c)
'1234567'
That is not an engineering notation string.
To clarify
===
www.workpartorfulltime.blogspot.com
===
--
http://mail.python.org/mailman/listinfo/python-list
Just been looking at this review of Visual Studio 2010
http://www.theregister.co.uk/2010/04/26/blowing_bubbtles/:
... the 2GB ISO was quicker to download than it was to install - not
even counting the several reboots required.
Since when do you need to REBOOT just to install a
On 26/04/2010 09:49, Richard Lamboj wrote:
thanks for your response. No, i don't mean the MAC Address. I mean the GUID -
Sample: {1E2428C1-9F2C-48D7-AB53-3229DFB7E217}
I want to change TcpAckFrequency and TcpDelTicks of a Network Interface. I Try
to change it over the Registry, but maybe there
Sorry guys, the problem seems to be less general.
Actually, the error is triggered when I try to import numpy before
PyQt4. It imports without any problems after PyQt4.
I still don't know what the problem actually is, but at least my
scripts work.
Thanks,
Tim.
--
On 26/04/2010 11:47, Tim Golden wrote:
OK; I'm going to hope that Tim Roberts or someone equally knowledgeable can
kick in here as devices really isn't my area. However this looks like it *might*
be doing what you want:
code
import wmi
for nic in c.Win32_NetworkAdapter
2010/4/25 sanam singh sanamsi...@hotmail.com:
Hi,
I want to debug my c++blocks which are dynamically loaded into python for
execution. I am using wingide for debugging python. But its limitation is
that when c++module is called in python script it doent take me into c++
module. What I want is
Op 2010-04-23, Chris Rebert schreef c...@rebertia.com:
On Fri, Apr 23, 2010 at 2:41 AM, Antoon Pardon apar...@forel.vub.ac.be
wrote:
test()
--
The result I get is:
5
8
15
Traceback (most recent call last):
File
On Mon, Apr 26, 2010 at 3:57 AM, Antoon Pardon apar...@forel.vub.ac.be wrote:
Op 2010-04-23, Chris Rebert schreef c...@rebertia.com:
On Fri, Apr 23, 2010 at 2:41 AM, Antoon Pardon apar...@forel.vub.ac.be
wrote:
The result I get is:
5
8
15
Traceback (most recent call last):
File
for fits and giggles, to show what's possible in only 400
lines of python, here is a game of asteroids, written by joe rumsey.
yes, it runs under pyjamas-desktop too.
http://pyjs.org/examples/asteroids/public/Space.html
This URL returns a blank page for me on firefox 3.3.5 (linux) with
I just released the first BETA of GOZERBOT version 0.9.2
Please test this release if you can.
Best is to run of the mercurial repo:
hg clone http://core.gozerbot.org/hg/dev/0.9
or run easy_install -U gozerbot gozerplugs (make sure there is no
gozerbot dir in your working directory.)
docs are
Luke Kenneth Casson Leighton wrote:
[snip]
Am I the only one getting this error ?
easy_install --prefix /home/jeanmichel -m pyjamas
Searching for pyjamas
Reading http://pypi.python.org/simple/pyjamas/
Reading http://pyjs.org
Best match: pyjamas 0.7
Downloading
On Apr 26, 12:45 pm, Jean-Michel Pichavant jeanmic...@sequans.com
wrote:
Luke Kenneth Casson Leighton wrote:
[snip]
Am I the only one getting this error ?
yes, because you're the only one using easy_install. you'll need to
read and follow the instructions in README and INSTALL.txt
the
On Apr 25, 8:38 pm, Patrick Maupin pmau...@gmail.com wrote:
On Apr 25, 8:49 am, Luke Kenneth Casson Leighton l...@lkcl.net
wrote:
pyjamas- the stand-alone python-to-javascript compiler, and separate
GUI Widget Toolkit, has its 0.7 release, today. this has been much
delayed, in order to
On Apr 25, 9:37 pm, Wolfgang Strobl ne...@mystrobl.de wrote:
Daniel Fetchinson fetchin...@googlemail.com:
for fits and giggles, to show what's possible in only 400
lines of python, here is a game of asteroids, written by joe rumsey.
yes, it runs underpyjamas-desktop too.
-Original Message-
From: Stefan Behnel [mailto:stefan...@behnel.de]
Sent: Sunday, April 25, 2010 6:42 PM
To: python-list@python.org
Subject: Re: Need help with basic DOM XML tree traversing
Barak, Ron, 25.04.2010 17:06:
This is my first try at XML with Python, and though I tried
HOLLYWOOD ACTRESS BRITENY SPEARS ANGLIANA JOLI KATE VINSLATE
NICOLE KIDMAN HOLLYWOOD ACTRESS BOLLYWOOD ACTRESS LOLLYWOOD
ACTRES SEXY HOLLYWOOD ACTRESS GIRLS WITHOUT CLOTHSON
http://hollywood6y.blogspot.com/ HOLLYWOOD ACTRESS
BRITENY SPEARS ANGLIANA JOLI KATE VINSLATE NICOLE KIDMAN
On 2010-04-26, Keith keith.braff...@gmail.com wrote:
I am considering writing a PEP for the inclusion of an engineering
format specifier, and would appreciate input from others.
I very regularly do something similar in various apps, though I often
want to specify the exponent (e.g. I always
Dear all,
I am new in python, can anyone help me that how can I select two column out of
6 column from a file.
For example if I have file like:
a1 a2 a3 a4 a5 a6
b1 b2 b3 b4 b5 b6
c1 c2 c3 c4 c5 c6
d1 d2 d3 d4 d5 d6
and I want output like:
a1 a4
b1 b4
c1 c4
d1 d4
then how to do
Thanks --
Since the last Java update, I get the error, undefined variable from
import in Pydev in the Eclipse editor. I can still run the program in
Eclipse. If I add a blank line and save the program, the error goes
away, but that screws up the revision with SVN. Has anyone else seen
this or have a fix.
mannu jha wrote:
Dear all,
I am new in python, can anyone help me that how can I select two
column out of 6 column from a file.
For example if I have file like:
a1 a2 a3 a4 a5 a6
b1 b2 b3 b4 b5 b6
c1 c2 c3 c4 c5 c6
d1 d2 d3 d4 d5 d6
and I want output like:
a1 a4
b1 b4
c1 c4
d1 d4
then how
It depends on what you mean by a column. I assume your data is more
complex than what you've shown us.
If your data is really single words separated by spaces, you can do:
for line in open('file'):
columns = line.split()
return columns[0], columns[3]
If your columns can
Hi,
I am python novice, trying to convert a boost::gregorian::date out to
python using PyDateTime C-api interface. I was coring because the C-
API failed to initialize. The error was:
AttributeError: module object has not attribute datetime_CAPI
As indicated by the error, a dir(datetime) gives
Two comments:
1) Should delete_dir not be called instead of os.rmdir in this line
(os.rmdir, os.remove)[os.path.islink(item)](item)
2) Function rmtree in the shutil module considers symlinks to a
directory an error http://docs.python.org/library/shutil.html#module-
shutil since
'tren' Version 1.217 is now released and available for download at:
http://www.tundraware.com/Software/tren
-
What's New In This Release?
---
This is the initial public release.
What Is
On Apr 26, 8:21 am, rk kadambi...@gmail.com wrote:
Hi,
I am python novice, trying to convert a boost::gregorian::date out to
python using PyDateTime C-api interface. I was coring because the C-
API failed to initialize. The error was:
AttributeError: module object has not attribute
Dear Officer,
I downloaded a C code packet which contains many .py files. When I try to
run these.py files on my computer with Linux system, for every .py file the
following error occurs:
hantingt...@tityro:~/Downloads/triMC3D/python$ python
Python 2.6.4 (r264:75706, Dec 7 2009, 18:43:55)
[GCC
The answer to 1) is no, due to topdown = False in the call to os.walk.
/Jean
On Apr 26, 8:31 am, MrJean1 mrje...@gmail.com wrote:
Two comments:
1) Should delete_dir not be called instead of os.rmdir in this line
(os.rmdir, os.remove)[os.path.islink(item)](item)
2) Function
Dear Sir,
Thanks for your help..but yes my files are having column like:
# RESIDUE AA STRUCTURE BP1 BP2 ACC N-H--OO--H-NN-H--O
O--H-NTCO KAPPA ALPHA PHI PSIX-CA Y-CA Z-CA
12 A I 0 0 91 0, 0.038,-0.1 0, 0.0
Hi,
I'm working in several helper tools to parse, simulate, etc. propietary
binary serial port protocols. I'm trying to find out which is the best
internal data representation. Bytearrays seem to be the best choice, but I'd
like some feedback from more experienced developers; because I took a look
make sure the tar, zip or package you downloaded isn't corrupt. verify it
with a md5sum and then extract it. just a thought.
Thank you,
-Alex Goretoy
http://launchpad.net/~a1g
On Mon, Apr 26, 2010 at 11:05 AM, Tingting HAN hihigh...@gmail.com wrote:
Dear Officer,
I downloaded a C code packet
I'm new to Python, so I'll try to be clear about my problem.
I'm using Python 3.1 (latest stable version from python.org) on
Windows 7.
I have a program using tkinter for UI, and it works properly from both
pything GUI shell, and running from command prompt, EXCEPT that I have
a menu command to
Shane wrote:
I'm new to Python, so I'll try to be clear about my problem.
I'm using Python 3.1 (latest stable version from python.org) on
Windows 7.
I have a program using tkinter for UI, and it works properly from both
pything GUI shell, and running from command prompt, EXCEPT that I have
When I give a dictionary with key and value in order how can get back iy in
same order
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, Apr 26, 2010 at 2:04 PM, gopi krishna dasarathulag...@gmail.comwrote:
When I give a dictionary with key and value in order how can get back iy
in same order
You can't using the standard dict type. If you're using Python 3.1, you can
use collections.OrderedDict instead. Otherwise,
gopi krishna wrote:
When I give a dictionary with key and value in order how can get back iy
in same order
You can't. You either have to maintain a list of the keys in parallel, or
use an ordered dictionary like the following:
http://code.activestate.com/recipes/576693/
It will be included
On Apr 26, 8:44 am, lkcl luke.leigh...@googlemail.com wrote:
the purpose of browsers is to isolate the application, restrict its
access to the rest of the desktop and OS, so that random applications
cannot go digging around on your private data.
Well, I would agree that a requirement for the
On Apr 26, 4:09 am, Lawrence D'Oliveiro l...@geek-
central.gen.new_zealand wrote:
It doesn’t seem to mention in the documentation for os.walk
http://docs.python.org/library/os.html that symlinks to directories are
returned in the list of directories, not the list of files. This will lead
to an
On 04/27/10 03:50, Peter Otten wrote:
It is a bit unfortunate that your editor has side effects on your program,
and I recommend that you never trust the result of importing a module from
within idle's shell completely.
In fact, never trust IDLE. IDLE is a nice IDE when the alternative is
getting following error message when trying to run my setup file
...\py2exe\build_exe.py:16: DeprecationWarning: the sets module is deprecated
import sets
Removing files in directory :./dist,keeping protedted files...
python 2.65 new install.
Any work arounds(Hacks)??
--
Ron Adelman wrote:
getting following error message when trying to run my setup file
...\py2exe\build_exe.py:16: DeprecationWarning: the sets module is deprecated
import sets
Removing files in directory :./dist,keeping protedted files...
python 2.65 new install.
Any work arounds(Hacks)??
new2Cocos bchk...@gmail.com wrote:
Hi everyone,
I posted this in the cocos2d and pyglet discussion group, I thought
I'll get a response right away since my problem is quite general but I
got no response. I hope you will help me!!! this is the original post
Hi all,
Under python 2.6, chr() Return a string of one character whose ASCII
code is the integer i. (quoted from docs.python.org)
Under python 3.1, chr() Return the string of one character whose
Unicode codepoint is the integer i.
I want to convert a ASCII code back to a character under
On 26.04.2010 22:12, * Dodo:
Hi all,
Under python 2.6, chr() Return a string of one character whose ASCII
code is the integer i. (quoted from docs.python.org)
Under python 3.1, chr() Return the string of one character whose
Unicode codepoint is the integer i.
I want to convert a ASCII code back
Le 26/04/2010 22:26, Alf P. Steinbach a écrit :
On 26.04.2010 22:12, * Dodo:
Hi all,
Under python 2.6, chr() Return a string of one character whose ASCII
code is the integer i. (quoted from docs.python.org)
Under python 3.1, chr() Return the string of one character whose
Unicode codepoint is
On Apr 26, 6:52 pm, Patrick Maupin pmau...@gmail.com wrote:
On Apr 26, 8:44 am, lkcl luke.leigh...@googlemail.com wrote:
the purpose of browsers is to isolate the application, restrict its
access to the rest of the desktop and OS, so that random applications
cannot go digging around on
Tim Golden wrote:
On 26/04/2010 09:49, Richard Lamboj wrote:
thanks for your response. No, i don't mean the MAC Address. I mean
the GUID -
Sample: {1E2428C1-9F2C-48D7-AB53-3229DFB7E217}
I want to change TcpAckFrequency and TcpDelTicks of a Network
Interface. I Try
to change it over the
On Apr 26, 12:16 pm, Lawrence D'Oliveiro l...@geek-
central.gen.new_zealand wrote:
Just been looking at this review of Visual Studio 2010
http://www.theregister.co.uk/2010/04/26/blowing_bubbtles/:
... the 2GB ISO was quicker to download than it was to install - not
even counting the
On 26.04.2010 22:26, * Dodo:
Le 26/04/2010 22:26, Alf P. Steinbach a écrit :
On 26.04.2010 22:12, * Dodo:
Hi all,
Under python 2.6, chr() Return a string of one character whose ASCII
code is the integer i. (quoted from docs.python.org)
Under python 3.1, chr() Return the string of one character
On Apr 26, 4:12 pm, lkcl luke.leigh...@googlemail.com wrote:
and, given that you can use AJAX (e.g. JSONRPC) to communicate with a
server-side component, installed on 127.0.0.1 and effectively do the
exact same thing, nobody bothers.
I suppose, but again, that pushes off the security thing.
On Mon, Apr 26, 2010 at 12:08 PM, Wanderer wande...@dialup4less.com wrote:
Since the last Java update, I get the error, undefined variable from
import in Pydev in the Eclipse editor. I can still run the program in
Eclipse. If I add a blank line and save the program, the error goes
away, but
In message
86bb4820-ab5a-49cc-9e64-7f7e609e4...@y6g2000prk.googlegroups.com, MrJean1
wrote:
2) Function rmtree in the shutil module considers symlinks to a
directory an error
http://docs.python.org/library/shutil.html#module-shutil since Python
2.6.
I don’t think that applies to
On Apr 26, 4:36 am, Keith keith.braff...@gmail.com wrote:
I am considering writing a PEP for the inclusion of an engineering
format specifier, and would appreciate input from others.
[...]
I am thinking that if we simply added something like %n (for eNgineer)
to the list of format
On Apr 26, 6:47 am, Keith keith.braff...@gmail.com wrote:
From that document it appears that my decimal.Decimal(1234567) example
shows that the module has a bug:
Doc says:
[0,123,3] === 123E+3
But Python does: import decimal
decimal.Decimal(123000).to_eng_string()
'123000'
That's not
Apparently either you and the General Decimal Arithmetic spec differ
on what constitutes engineering notation, there's a bug in the Python
decimal library,
You've distilled it precisely, and as you've shown in a different
post, it's the former.
The Python decimal module seems to implement
On Apr 26, 5:33 am, Stefan Krah stefan-use...@bytereef.org wrote:
Keith keith.braff...@gmail.com wrote:
Even though this uses the to_eng_string() function, and even though I
am using the decimal.Context class:
c = decimal.Context(prec=5)
decimal.Decimal(1234567).to_eng_string(c)
Mark Dickinson wrote:
On Apr 26, 4:36 am, Keith keith.braff...@gmail.com wrote:
I am considering writing a PEP for the inclusion of an engineering
format specifier, and would appreciate input from others.
[...]
I am thinking that if we simply added something like %n (for eNgineer)
to the
On Apr 26, 7:56 pm, Mark Dickinson dicki...@gmail.com wrote:
On Apr 26, 6:47 am, Keith keith.braff...@gmail.com wrote:
From that document it appears that my decimal.Decimal(1234567) example
shows that the module has a bug:
Doc says:
[0,123,3] === 123E+3
But Python does: import
On Apr 26, 8:47 pm, MRAB pyt...@mrabarnett.plus.com wrote:
t for powers of a thousand, perhaps? (Or m?)
Both of those letters are fine. I kinda like m for the whole Greco-
Roman angle, now that you point it out :-)
--Keith Brafford
--
http://mail.python.org/mailman/listinfo/python-list
Is there a OS portable way to have a Python script detect when
its operating system is shutting down or a user is logging out?
If not, any Windows specific tips on how to detect these events?
Thank you,
Malcolm
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, Apr 27, 2010 at 12:09 PM, pyt...@bdurham.com wrote:
Is there a OS portable way to have a Python script detect when its operating
system is shutting down or a user is logging out?
In the Linux world, you would normally create an rc/init style script
that is invoked
at boot and shutdown
On Apr 26, 11:58 am, Lie Ryan lie.1...@gmail.com wrote:
On 04/27/10 03:50, Peter Otten wrote:
It is a bit unfortunate that your editor has side effects on your program,
and I recommend that you never trust the result of importing a module from
within idle's shell completely.
In fact,
hollywood sexiest scenes hollywood blue films hollywood actress
hollywood actress wallpapers hollywood actress hot bed scene
hollywood actress pictures hollywood actress angelina jolie ON
http://hollywood6y.blogspot.com/ hollywood sexiest scenes
hollywood blue films hollywood actress
Changes by Francesco Del Degan f.delde...@ngi.it:
Added file: http://bugs.python.org/file17085/timemodule-gmtime-r265.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6280
___
Changes by Francesco Del Degan f.delde...@ngi.it:
Added file: http://bugs.python.org/file17086/timemodule-gmtime-r27b1.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6280
___
Changes by Francesco Del Degan f.delde...@ngi.it:
Added file: http://bugs.python.org/file17087/timemodule-gmtime-r312.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6280
___
Changes by Francesco Del Degan f.delde...@ngi.it:
Added file: http://bugs.python.org/file17088/timemodule-gmtime-3-trunk.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6280
___
Changes by Francesco Del Degan f.delde...@ngi.it:
Removed file: http://bugs.python.org/file16351/timemodule-gmtime-2-trunk.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6280
___
Changes by Francesco Del Degan f.delde...@ngi.it:
Removed file: http://bugs.python.org/file16352/timemodule-gmtime-2-r27a3.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6280
___
Changes by Francesco Del Degan f.delde...@ngi.it:
Removed file: http://bugs.python.org/file16353/timemodule-gmtime-2-r311.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6280
___
Changes by Francesco Del Degan f.delde...@ngi.it:
Removed file: http://bugs.python.org/file16354/timemodule-gmtime-2-r264.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6280
___
Francesco Del Degan f.delde...@ngi.it added the comment:
Fixed typos, new patches added
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6280
___
Changes by Antoine Pitrou pit...@free.fr:
--
resolution: - duplicate
status: open - closed
superseder: - Convoy effect with I/O bound threads and New GIL
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8532
Charles-Francois Natali neolo...@free.fr added the comment:
That's what I thought at first too. But the user's sockets were set to
blocking.
That's one broken networking stack...
In fact, I think it's a little silly that OS X raises the error rather than
just saying that 0 bytes were
Antoine Pitrou pit...@free.fr added the comment:
Dave,
In the current implementation, threads perform a timed-wait on a
condition variable. If time expires and no thread switches have
occurred, the currently running thread is forced to drop the GIL.
A problem, as far as I can see, is that
Antoine Pitrou pit...@free.fr added the comment:
That's what I thought at first too. But the user's sockets were set to
blocking.
If you set a timeout on a socket, it is really non-blocking internally (from
the OS' point of view). So perhaps this is what you are witnessing.
By the way,
Antoine Pitrou pit...@free.fr added the comment:
What is the mnemonic corresponding to errno 35 under OS X?
(under Linux I get EDEADLOCK, which probably isn't the right one)
--
___
Python tracker rep...@bugs.python.org
Antoine Pitrou pit...@free.fr added the comment:
Ok, so I think we can close the issue then. Thank you!
--
resolution: - out of date
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4171
Antoine Pitrou pit...@free.fr added the comment:
Actually, DNS resolution should be disabled by default, as in most HTTP servers
probably.
--
nosy: +pitrou
stage: - unit test needed
___
Python tracker rep...@bugs.python.org
STINNER Victor victor.stin...@haypocalc.com added the comment:
My patch changes:
* os._execvpe(): support bytes type for the file argument (program name)
* os.get_exec_path(): support bytes type for the PATH environment variable
* Popen._execute_child(): decode the executable name before
Senthil Kumaran orsent...@gmail.com added the comment:
And for this specific request, it fdqn is looked up only for logging to
sys.stderr. Either removing the fqdn call or just caching per connection it as
the patch does is both fine. I doubt if someone is relying this logging
anywhere in the
STINNER Victor victor.stin...@haypocalc.com added the comment:
They're also useful for dealing with environment variables
which are not strictly filesystem (fs) related but also suffer
from the same issue requiring surrogate escape.
Yes, Python3 decodes environment variables using
Sean Reifschneider j...@tummy.com added the comment:
I believe I have the first function implemented. See the attached patch for
that code and feel free to review.
--
keywords: +patch
nosy: -haypo
Added file: http://bugs.python.org/file17089/logexception.diff
New submission from STINNER Victor victor.stin...@haypocalc.com:
If a test fails, regrtest writes the backtrace to sys.stdout. If the backtrace
contains a non-ASCII characters, it's encoded using sys.stdout encoding.
In some conditions, sys.stdout is unable to encode some or all non-ASCII
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
components: +Tests, Unicode
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8533
___
___
Antoine Pitrou pit...@free.fr added the comment:
And for this specific request, it fdqn is looked up only for logging
to sys.stderr. Either removing the fqdn call or just caching per
connection it as the patch does is both fine. I doubt if someone is
relying this logging anywhere in the
STINNER Victor victor.stin...@haypocalc.com added the comment:
Oh! In Python3, ntpath.expanduser() supports bytes path and uses
sys.getfilesystemencoding() to encode an unicode environment variable to a byte
string.
Should we remove bytes path support in ntpath.expanduser(), or support bytes
New submission from simon ext-simon.stei...@nokia.com:
testmultiprocessing.py:
def main():
import multiprocessing
proc = multiprocessing.Process(target=runhi)
proc.start()
proc.join()
def runhi():
print 'hi'
if __name__ == __main__:
main()
Senthil Kumaran orsent...@gmail.com added the comment:
On Mon, Apr 26, 2010 at 10:45:56AM +, Antoine Pitrou wrote:
What do you mean? BaseHTTPRequestHandler is tested in test_httpservers.
I meant specifically for that function which is logging to sys.stderr.
No return values, state changes
1 - 100 of 196 matches
Mail list logo