in 723903 20140617 121638 alister alister.nospam.w...@ntlworld.com wrote:
On Tue, 17 Jun 2014 08:34:13 +1000, Chris Angelico wrote:
Partly that. But also, people want to know how long that will *really*
last. For instance, 10 hours of battery life... doing what? Can I really
hop on a plane
No it's still paused after selection and only excutes when the window is closed.
On Tuesday, June 17, 2014 6:34:41 PM UTC+1, MRAB wrote:
On 2014-06-17 17:49, cutey Love wrote:
My first attempt at Python,
I'm using Tkinter and all is going well except when I'm using
On Wed, Jun 18, 2014 at 5:36 PM, cutey Love cuteywithl...@gmail.com wrote:
No it's still paused after selection and only excutes when the window is
closed.
Treat the file dialog exactly the way you would in a text editor or
word processor. Does your program continue as normal then? If not,
On Wed, 18 Jun 2014 00:36:29 -0700, cutey Love wrote:
No it's still paused after selection and only excutes when the window is
closed.
On Tuesday, June 17, 2014 6:34:41 PM UTC+1, MRAB wrote:
On 2014-06-17 17:49, cutey Love wrote:
My first attempt at Python,
I'm using Tkinter and all
I'm on windows, I'm going to uninstall python and reinstall
On Wednesday, June 18, 2014 9:32:40 AM UTC+1, alister wrote:
On Wed, 18 Jun 2014 00:36:29 -0700, cutey Love wrote:
No it's still paused after selection and only excutes when the window is
closed.
On Tuesday, June
Hi.
I'm writing some scripts with python, and I found sometimes, when I try to use
time.sleep(1) to sleep 1 sec, it would actually sleep for 9 secs or even longer.
From python document, I saw this:
time.sleep(secs)
Also, the suspension time may be longer than requested by an arbitrary
Is there a library for Python that can easily create flowcharts using a
simple API?
Maybe https://code.google.com/p/pydot/ ?
Found another one: http://pygraphviz.github.io/ - this one seems to have
better documentation. pydot may be functional but I could not find
documentation on it.
--
I am using celery in my program to invoke remote functions using a message
queueing service (RabbitMQ).
I call my function with celery with this: myfunc.apply_async(queue=cluster,
args=(chain, cluster, )), but although the call is correct and it works, in
eclipse I get the error that
On Wed, Jun 18, 2014 at 7:52 PM, crow wen...@gmail.com wrote:
So, my question: under what kind of condition, time.sleep would suspend
longer time than expected?
Anybody got interested?
There are several reasons the sleep time is always described as at
least that long. Firstly, your process
crow wen...@gmail.com:
I'm writing some scripts with python, and I found sometimes, when I
try to use time.sleep(1) to sleep 1 sec, it would actually sleep for 9
secs or even longer.
[...]
So, my question: under what kind of condition, time.sleep would
suspend longer time than expected?
My supervisor has palmed me off with a python code, written by a collaborator,
which implements an algorithm aimed at denoising the dose distribution (energy
per unit mass) output from a radiation transport Monte Carlo code.
My task is to translate the python code into a MatLab code.
A colleague
On Wed, 18 Jun 2014 05:10:03 -0700, Maura E Monville wrote:
My supervisor has palmed me off with a python code, written by a
collaborator, which implements an algorithm aimed at denoising the dose
distribution (energy per unit mass) output from a radiation transport
Monte Carlo code. My task
On Wednesday, June 18, 2014 1:50:54 PM UTC+1, Steven D'Aprano wrote:
On Wed, 18 Jun 2014 05:10:03 -0700, Maura E Monville wrote:
My supervisor has palmed me off with a python code, written by a
collaborator, which implements an algorithm aimed at denoising the dose
distribution
On 18/06/2014 10:03, cutey Love wrote:
I'm on windows, I'm going to uninstall python and reinstall
On Wednesday, June 18, 2014 9:32:40 AM UTC+1, alister wrote:
Please also see the various comments regarding top posting google groups
Please note that if you carry on top posting and
Hi, Chris Marko
Thanks for your reply.
I find the reason why my time.sleep take longer time.
In my script, I use wxPython to build up my GUI, and I open another thread to
do network communications.
It turned out that if you create a wx.Frame make it show up, then your
time.sleep may sleep
Dear Group,
I have a Python code taken from
Wikipedia.(http://en.wikipedia.org/wiki/Forward%E2%80%93backward_algorithm;)
The code is pasted below.
states = ('Healthy', 'Fever')
end_state = 'E'
observations = ('normal', 'cold', 'dizzy')
start_probability = {'Healthy': 0.6, 'Fever': 0.4}
I'm trying to read in 10 lines of text, use some functions to edit them and
then return a new list.
The problem is my program always goes not responding when the amount of lines
are a high number.
I don't care how long the program takes to work, just need it to stop crashing?
--
On Wed, Jun 18, 2014 at 1:20 PM, cutey Love cuteywithl...@gmail.com wrote:
I'm trying to read in 10 lines of text, use some functions to edit them
and then return a new list.
The problem is my program always goes not responding when the amount of lines
are a high number.
I don't care
On Wednesday, June 18, 2014 1:20:13 PM UTC-4, cutey Love wrote:
I'm trying to read in 10 lines of text, use some functions to edit them
and then return a new list.
The problem is my program always goes not responding when the amount of lines
are a high number.
I don't care how long the
In 00d330e3-fc8a-4b7e-b2bd-f1a48bc33...@googlegroups.com cutey Love
cuteywithl...@gmail.com writes:
The problem is my program always goes not responding when the amount of
lines are a high number.
I don't care how long the program takes to work, just need it to stop
crashing?
How long have
In article fa433710-0953-4b4a-96f6-2f7d1b9af...@googlegroups.com,
Maura E Monville maura.monvi...@gmail.com wrote:
My supervisor has palmed me off with a python code, written by a
collaborator, which implements an algorithm aimed at denoising the dose
distribution (energy per unit mass) output
On Wed, Jun 18, 2014 at 10:36 AM, subhabangal...@gmail.com wrote:
The questions are,
i) prev_f_sum = sum(f_prev[k]*a[k][st] for k in states)
here f_prev is called,
f_prev is assigned to f_curr [f_prev = f_curr]
f_curr[st] is again being calculated as, [f_curr[st] = e[st][x_i] *
On Wednesday, June 18, 2014 8:21:12 PM UTC+1, Maciej Dziardziel wrote:
I wasn't quiet happy with the way search on pypi works,
so I've got an idea of getting all package metadata from pypi
and do search locally. The only problem is that I can't figure out
where to get the data from. I
I wasn't quiet happy with the way search on pypi works,
so I've got an idea of getting all package metadata from pypi
and do search locally. The only problem is that I can't figure out
where to get the data from. I tried to use bandersnatch to
set up mirror, but all I've got was a mixture of egg,
On 06/18/2014 11:20 AM, cutey Love wrote:
I'm trying to read in 10 lines of text, use some functions to
edit them and then return a new list.
The problem is my program always goes not responding when the amount
of lines are a high number.
I don't care how long the program takes to
On 6/18/14, 10:20 AM, cutey Love wrote:
I'm trying to read in 10 lines of text, use some functions to edit them and
then return a new list.
How is it that you are opening the file, and iterating the contents?
The problem is my program always goes not responding when the amount of lines
On 18/06/2014 20:24, Maciej Dziardziel wrote:
On Wednesday, June 18, 2014 8:21:12 PM UTC+1, Maciej Dziardziel wrote:
I wasn't quiet happy with the way search on pypi works,
so I've got an idea of getting all package metadata from pypi
and do search locally. The only problem is that I can't
On 6/16/14, 11:20 PM, Jaydeep Patil wrote:
I have two powerpoints, which consists of images in each slide.
I need to read each powerpoint, copy images from both powerpoint paste these
images into output powerpoint side by side.
How should i do thism using python?
The repoisition of shapes
On 6/18/2014 3:24 PM, Maciej Dziardziel wrote:
On Wednesday, June 18, 2014 8:21:12 PM UTC+1, Maciej Dziardziel wrote:
I wasn't quiet happy with the way search on pypi works,
so I've got an idea of getting all package metadata from pypi
and do search locally. The only problem is that I can't
On Wednesday, June 18, 2014 9:12:46 PM UTC+1, Mark Lawrence wrote:
Why not use google and do a site specific search of pypi?
I am looking for good use of elasticsearch I have there,
rather then quick way of finding something once quickly.
Neither pypi nor google provide faceting for example.
Hi, thanks for the replies,
I mean windows displays Not responding close the program now
How can I do it asynconistrically?
It's simple code just open file, loop through line by line and do some
comparons with the string.
On Wednesday, June 18, 2014 6:20:13 PM UTC+1, cutey Love wrote:
I'm
On 6/18/14, 3:32 PM, cutey Love wrote:
Hi, thanks for the replies,
I mean windows displays Not responding close the program now
How can I do it asynconistrically?
It's simple code just open file, loop through line by line and do some
comparons with the string.
To get anything better from
I'm trying to write data to a text file
But I'm getting the error:
TypeError: invalid file: _io.TextIOWrapper
Code is
def saveFile():
file_path = filedialog.asksaveasfile(mode='w', filetypes=[('text files',
'.txt')], defaultextension=.txt)
fo = open(file_path, 'w')
for e in
On Wed, Jun 18, 2014 at 5:03 PM, cutey Love cuteywithl...@gmail.com wrote:
I'm trying to write data to a text file
But I'm getting the error:
TypeError: invalid file: _io.TextIOWrapper
Post the full traceback. By posting only the error message you're
removing useful information.
--
On 6/18/14, 4:03 PM, cutey Love wrote:
I'm trying to write data to a text file
But I'm getting the error:
TypeError: invalid file: _io.TextIOWrapper
Always better to err on posting too much context (the entire traceback)
than too little.
Code is
def saveFile():
file_path =
On Wed, Jun 18, 2014 at 4:32 PM, cutey Love cuteywithl...@gmail.com wrote:
Hi, thanks for the replies,
I mean windows displays Not responding close the program now
How can I do it asynconistrically?
It's simple code just open file, loop through line by line and do some
comparons with the
On Thu, Jun 19, 2014 at 1:24 AM, crow wen...@gmail.com wrote:
Here is a sample code that can reproduce this issue, you need to wait for it
to run for a while.
**
import time
import threading
import wx
def sleep():
while True:
t = time.time()
Hi, Chris
Thanks for the suggestion.
For my script, I want to download a picture from internet show it in a
window, that's why I use wxPython.
Well, I think I may can avoid sleep in wxPython in 2 ways:
1. Use web.py, let python do backend work, let browser show me everything. As
you
On Thu, Jun 19, 2014 at 11:41 AM, crow wen...@gmail.com wrote:
Thanks for the suggestion.
For my script, I want to download a picture from internet show it in a
window, that's why I use wxPython.
Well, I think I may can avoid sleep in wxPython in 2 ways:
1. Use web.py, let python do
On Thursday, June 19, 2014 12:45:49 AM UTC+5:30, Ian wrote:
The questions are,
i) prev_f_sum = sum(f_prev[k]*a[k][st] for k in states)
here f_prev is called,
f_prev is assigned to f_curr [f_prev = f_curr]
f_curr[st] is again being calculated as, [f_curr[st] = e[st][x_i] *
I am making a calculator and i need it to support floating point values but i
am using the function isnumeric to check if the user has entered an int value.
I need the same for floating point types so i could implement an or in the if
statement that checks the values the user has entered and
Changes by Martin v. Löwis mar...@v.loewis.de:
--
resolution: - out of date
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11736
___
Martin v. Löwis added the comment:
Closing as won't fix, then.
--
resolution: - wont fix
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9727
___
Charles-François Natali added the comment:
I'm surprised that the Python read() method doesn't handle EINTR internally.
I'm in favor of handling EINTR internally almost everywhere, I mean in the
Python modules implemented in the C, not in each call using these C methods.
handling EINTR
Demian Brecht added the comment:
Attached new patch with changes from review and a stab at an update to the docs.
--
Added file: http://bugs.python.org/file35680/refactor_http_status_codes_1.patch
___
Python tracker rep...@bugs.python.org
Martin v. Löwis added the comment:
There is a high chance that 3.5 might use an entirely different MSI generator,
possibly based on WiX. If that happens, this issue will be outdated.
--
___
Python tracker rep...@bugs.python.org
Michael Foord added the comment:
Zachary: Inheriting from TestCase in your mixin is actually an anti-pattern.
And yes, most people seem to do it (most people seem to misunderstand how to
use mixins, which is why I like this approach of having a way of explicitly
marking base classes).
Changes by Berker Peksag berker.pek...@gmail.com:
--
versions: -Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10595
___
___
Berker Peksag added the comment:
Unfortunately, Pardus is dead now. So closing this as out of date.
--
nosy: +berker.peksag
resolution: - out of date
stage: commit review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka added the comment:
Class decorator approach looks less obvious to me. Looking at current standard
mixing approach I understand what it do and why. But encountering the
unittest.base_class decorator, I need to look in the documentation and/or
sources to understand how it
Berker Peksag added the comment:
See also
http://buildbot.python.org/all/builders/AMD64%20Fedora%20without%20threads%203.x/builds/6779/steps/test/logs/stdio
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21755
Michael Foord added the comment:
To be honest, even though I understand it, I find the mixin pattern hard to
read. You derive from object, but call methods (the assert methods for example)
that don't exist in the class (or its inheritance chain).
My experience, with even experienced Python
Changes by Stefan Krah stefan-use...@bytereef.org:
Added file: http://bugs.python.org/file35681/ull_vctest.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15993
___
Kristján Valur Jónsson added the comment:
Just want to restate my +1 for Michael's idea. I'm hit by this all the time
and it is beautiful and expressive. It also does not preclude the annoying
mix-in way of doing it.
--
___
Python tracker
Stefan Krah added the comment:
The two issues were unrelated - the 'invalid filter ID'
(4611686018427387905 == 0x4000_0001) is the correct
value but the wrong branch in the switch was taken, leading
to the error message.
Unfortunately I don't have a Visual Studio setup right now.
Serhiy Storchaka added the comment:
Note that we have to use mixin approach in the Python test suite to avoid
discrepancies and merge conflicts between different versions.
--
___
Python tracker rep...@bugs.python.org
Changes by Glenn Langford glenn.langf...@gmail.com:
--
nosy: -glangford
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20319
___
___
Sebastian Kreft added the comment:
@glangford: Is that really your recommendation, to switch to celery? Python
3.4.1 should be production quality and issues like this should be addressed.
Note that I've successfully run millions of tasks using the same method, the
only difference being that
Sébastien Sablé added the comment:
I don't have any AIX environment to try to reproduce the issue, so feel free to
close it.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11191
___
New submission from Claudiu Popa:
Hello. I noticed the following behaviour while working with xmlrpc proxy
methods.
import inspect, xmlrpc.client
proxy = xmlrpc.client.ServerProxy('http://localhost:8000')
proxy.mul
xmlrpc.client._Method object at 0x03B0C890
inspect.signature(proxy.mul)
John Malmberg added the comment:
Most of the issues needed to build python3 properly on VMS involve either bugs
in the VMS C API that need to be worked around or missing libraries that
Python3 expects to have.
As none of the Python developers should need to care about this, and these
issues
R. David Murray added the comment:
Issue 19645 is an alternative way to solve the problem of calling methods on
the mixin that don't exist, and has other benefits.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14534
Dariusz Suchojad added the comment:
Hello friends,
@vinay.sajip - the use case for this feature is actually something I come
across fairly often.
In an application I have dozens and hundreds of logger instances. However, they
all fall into one of several loggers.
Most of the instances are
Jesús Cea Avión added the comment:
I think this is a good plan. Legacy platforms can me maintained by interested
parties as a friendly fork.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16136
Claudiu Popa added the comment:
os.chown is not available on Windows. But maybe pwd can't be built on any Unix
system, so not using import_module is okay.
= I can not because assertRaisesRegex can not be used with with statement.
Not true (see
Vajrasky Kok added the comment:
Here is the patch based on Claudiu's comment and Serhiy's commit
(http://hg.python.org/cpython/rev/4b187f5aa960).
Claudiu (Thanks!!!), I can not apply two of your suggestions:
You could use support.import_module here in order to skip the test if pwd
can't be
Eric V. Smith added the comment:
I agree with David. And, it already works, but uses '/', not '+':
b / _name.dat
PosixPath('/tmp/some_base/_name.dat')
-1 to using + to be the equivalent of:
pathlib.Path(str(b) + _name.dat)
PosixPath('/tmp/some_base_name.dat')
--
nosy: +eric.smith
Antoine Pitrou added the comment:
Indeed, not trying to pretend to act like a string was one of the design points
of the pathlib module, and the / operator already performs logical path
joining. I'm therefore closing this issue as rejected.
--
resolution: - rejected
status: open -
New submission from Serhiy Storchaka:
Current implementation of BufferedRWPair.close() is:
def close(self):
self.writer.close()
self.reader.close()
When self.writer.close() raises an exception, self.reader left non-closed. This
can cause file description leak unless GC
Antoine Pitrou added the comment:
Thank you Martin. I will take a look soon at the patch.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21722
___
New submission from Antoine Pitrou:
I thought this would make things less confusing to read.
--
components: Interpreter Core
files: complex_macros.patch
keywords: patch
messages: 220947
nosy: mark.dickinson, pitrou
priority: low
severity: normal
stage: patch review
status: open
title:
Mark Lawrence added the comment:
I'd intended to write a patch but got confused as msg51241 talks about
execlp() in msvcrt but execlp is in the os module. Please advise.
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
Mark Lawrence added the comment:
Is this or could this be addressed via the new pathlib module?
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3485
___
Roundup Robot added the comment:
New changeset a854d23305de by Ned Deily in branch '3.4':
Issue #3485: remove misleading comment
http://hg.python.org/cpython/rev/a854d23305de
New changeset 3edda677119e by Ned Deily in branch 'default':
Issue #3485: merge from 3.4
Ned Deily added the comment:
The misleading TODO comment has been removed.
--
resolution: accepted - fixed
stage: - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3485
R. David Murray added the comment:
os.execlp *wraps* the interface of the same name in the platform C library. On
Windows, that is execlp in the msvcrt[*]. On Linux, it is usually the execlp
in glibc.
[*] 'crt' stands for 'C runtime'.
--
___
Vinay Sajip added the comment:
they really should share the logging configuration
Well, that's easy enough to do - although there would be some duplication in
the .ini file, it is not especially onerous. While I well understand the
benefits of DRY, I still don't believe this is a very common
Zachary Ware added the comment:
I agree with Josh; I don't think there's any bug here. To confirm, I expanded
on your example, reproduced below. Have a look at and play around with this,
and if you still believe something is wrong, ask on python-list and the folks
there should be able to
Changes by Berker Peksag berker.pek...@gmail.com:
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
versions: +Python 3.5 -Python 2.7, Python 3.1, Python 3.2
___
Python tracker rep...@bugs.python.org
R. David Murray added the comment:
According to a review done at the PyCon 2014 sprints, comment and blank line
preservation has not yet been implemented.
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
New submission from Milan Oberkirch:
The poplib classes already use Unicode internally (for everything but
capability names). So to implement the UTF8 part of RFC 6856 we only need to
enable the user to switch to UTF-8 mode if supported by the server.
--
components: email
files:
Changes by Milan Oberkirch milan...@oberkirch.org:
Removed file: http://bugs.python.org/file35686/poputf8.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21804
___
Changes by Milan Oberkirch milan...@oberkirch.org:
Added file: http://bugs.python.org/file35687/poputf8.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21804
___
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21625
___
___
Python-bugs-list mailing list
Roundup Robot added the comment:
New changeset d86214c98a9c by Antoine Pitrou in branch '3.4':
Issue #21722: The distutils upload command now exits with a non-zero return
code when uploading fails.
http://hg.python.org/cpython/rev/d86214c98a9c
New changeset 979aaa08c067 by Antoine Pitrou in
Antoine Pitrou added the comment:
I've now committed the fix. Thank you for your contribution!
--
resolution: - fixed
stage: - resolved
status: open - closed
type: - behavior
versions: +Python 3.4
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset cf70f030a744 by Antoine Pitrou in branch '2.7':
Issue #21722: The distutils upload command now exits with a non-zero return
code when uploading fails.
http://hg.python.org/cpython/rev/cf70f030a744
--
New submission from d0n:
Hi,
first of all I want to thank you (bethard) for your great work and efforts on
developing argparse which is a great tool of versatile use in mostly all of my
programs.
I've faced a specific problem while implementing argparse which I have not been
able to fix by
88 matches
Mail list logo