Hi Kevin,
Am 04.08.13 02:38, schrieb kevin4f...@gmail.com:
Sorry for the repeated messages. I have no idea why I have such a
long time delay. My messages didn't appear until just now after a few
minutes (thought I was having some issues).
you are posting to newsgroups from the USENET. It is
Le samedi 3 août 2013 13:35:29 UTC+2, Nicholas a écrit :
On Friday, 2 August 2013, Chris “Kwpolska” Warrick wrote:
[snip]
So, what are you feasting for? Nothing?
I have long since ceased to be amazed at the number of people who would like
their personal and arbitrary
ok so now i import the module like this:
from time import strftime, time
i made the write statement like this:
self.logfile.write('%s\t'%(str(strftime(%Y-%m-%d,
self.logfile.write('%s\t'%(str(strftime(%H:%M:%S,
self.logfile.write('%s\t'%(str(time(
(oh and btw,i know
matt.doolittl...@gmail.com writes:
self.logfile.write('%s\t'%(str(time(
[...]
2013-08-0323:59:341375588774.89
[...]
Why is it only giving me the centisecond precision? the docs say i
should get microsecond precision with the code i put together.
Because of str()'s default
This statement might be more true than you realize.
I can't speak for the tools Blue Sky uses for their films, but when the
studio I worked at created the Minion Mayem ride for Universal Orlando we
used a number of tools that relied heavily on Python for everything from
character rigging to
matt.doolittl...@gmail.com wrote:
ok so now i import the module like this:
from time import strftime, time
i made the write statement like this:
self.logfile.write('%s\t'%(str(strftime(%Y-%m-%d,
self.logfile.write('%s\t'%(str(strftime(%H:%M:%S,
In article d2e561f1-f5ba-4242-941d-6989abd1a...@googlegroups.com,
wxjmfa...@gmail.com wrote:
I have always found, computer scientists are funny scientists.
I have always found that sciences which contain the word science in
their name tend to not be very scientific.
Biology, Chemistry,
Let's say computer science isn't science.
--
http://mail.python.org/mailman/listinfo/python-list
What about Earth Science? But in this case, it is indeed science,
because in its name the word science is applied to the object of its
study. But in the case of computer science, the word science is
applied to the word which describes the tool this science uses!! It's
like it was Telescope Science
You basically have, currently, widgets,data,data manipulation through
variables and widget utilization to call the functions,and data
visualization.
Next step would be algorithm, and pseudo code, plus a prototyped mockup of
the GUI.
--
http://mail.python.org/mailman/listinfo/python-list
In article 07f6b1c7-069d-458b-a9fe-ff30c09f2...@googlegroups.com,
matt.doolittl...@gmail.com wrote:
self.logfile.write('%s\t'%(str(time(
[...]
1375588774.89
[...]
Why is it only giving me the centisecond precision? the docs say i should
get microsecond precision
When citing
On Saturday, August 03, 2013 10:57:32 AM Aseem Bansal wrote:
I was writing a Python script for getting the user stats of a
website(Specifically codereview.stackexchange). I wanted to store the
stats
in a database. I found Python3's sqlite3 library. I found that I needed sql
commands for using
I understand I did not ask the question correctly, but is there any chance you
can help me put together this code? I know that you all do this for fun and
enjoy it and that is why I asked you guys instead of asking some one who will
charge me for a very simple line of code.
I would appreciate
Hi, Guys!
I created a thread class based QThread, and defined some signals to update UI
through main thread.
the UI used a stackedWidget,someone page named 'progressPage' have a
progressBar and a Label, the next page named 'resultsPage' shows results(some
Labels).
When the window showed
Oh hai - as I was reading the documentation, look what I found:
http://docs.python.org/2/library/logging.html#filter
Methinks that should do exactly what you want.
Hi Wayne,
I was too hasty when I looked at filters as I didn't think they could do
what I wanted. Turns out a logging object sent
On Sun, Aug 4, 2013 at 4:57 PM, cool1...@gmail.com wrote:
I understand I did not ask the question correctly, but is there any chance
you can help me put together this code? I know that you all do this for fun
and enjoy it and that is why I asked you guys instead of asking some one who
will
@ Terry Jan Reedy
If there is an issue in place for improving the lambda forms then that's good.
I wanted a link about functional programming because it is mentioned as if it
were a household word.
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, Aug 4, 2013 at 3:07 PM, Roy Smith r...@panix.com wrote:
In article d2e561f1-f5ba-4242-941d-6989abd1a...@googlegroups.com,
wxjmfa...@gmail.com wrote:
I have always found, computer scientists are funny scientists.
I have always found that sciences which contain the word science in
In article mailman.186.1375639877.1251.python-l...@python.org,
Chris Angelico ros...@gmail.com wrote:
programmers, like engineers, have to deal with the
possibility (or certainty) of idiots using their products.
As a programmer, I'm OK with the idea that idiots are using my programs.
What
Le 04/08/2013 18:06, Jacknaruto a écrit :
Hi, Guys!
I created a thread class based QThread, and defined some signals to
update UI through main thread.
the UI used a stackedWidget,someone page named 'progressPage' have a
progressBar and a Label, the next page named 'resultsPage' shows
After 5 year of no Python programming I decided that I needed to brush
up my skills. Started writing on a reasonably complicated problem.
Unfortunately my basic Python skill are gone.
I present the bare-bore problem. This code does not produce the expected
result: can anyone tell me why? As you
On Sun, Aug 4, 2013 at 7:18 PM, Roy Smith r...@panix.com wrote:
In article mailman.186.1375639877.1251.python-l...@python.org,
Chris Angelico ros...@gmail.com wrote:
programmers, like engineers, have to deal with the
possibility (or certainty) of idiots using their products.
As a
On Sun, Aug 4, 2013 at 12:30 PM, Aseem Bansal asmbans...@gmail.com wrote:
@ Terry Jan Reedy
If there is an issue in place for improving the lambda forms then that's
good. I wanted a link about functional programming because it is mentioned as
if it were a household word.
It depends on your
On Sun, Aug 4, 2013 at 7:20 PM, JohnD j...@nowhere.com wrote:
#~/usr/bin/python
If this is meant to be a Unix-style shebang, the second character
needs to be ! not ~. This has no effect on Python though.
import random
class boys:
state={}
class boy:
state={
'name':'',
On 2013-08-04, Chris Angelico ros...@gmail.com wrote:
[...]
Thank you very much. The dust is slowly starting to move.
The code posted is nothing like the real thing, but I tried
to capture the essence.
From your commants I think I see my mistake.
Thank you very much for your reply!
--
On Sun, Aug 4, 2013 at 8:21 PM, JohnD j...@nowhere.com wrote:
On 2013-08-04, Chris Angelico ros...@gmail.com wrote:
[...]
Thank you very much. The dust is slowly starting to move.
The code posted is nothing like the real thing, but I tried
to capture the essence.
From your commants I think
Hello,
The following behaviour seen in 3.2 seems very strange to me:
As expected:
() == []
False
However:
().__eq__([])
NotImplemented
[].__eq__(())
NotImplemented
And:
bool(NotImplemented)
True
Hence:
bool(().__eq__([]))
True
( () == [] ) != ( ().__eq__([]) )
True
How/why can this be
On 08/02/2013 03:46 AM, cool1...@gmail.com wrote:
I do know some Python programming, I just dont know enough to put
together the various scripts I need...I would really really
appreciate if some one can help me with that...
Seems like your first task, then, is to become proficient at python so
On 04/08/2013 23:35, Markus Rother wrote:
Hello,
The following behaviour seen in 3.2 seems very strange to me:
As expected:
() == []
False
However:
().__eq__([])
NotImplemented
[].__eq__(())
NotImplemented
And:
bool(NotImplemented)
True
Hence:
bool(().__eq__([]))
True
( ()
On Sun, Aug 4, 2013 at 11:35 PM, Markus Rother pyt...@markusrother.de wrote:
Hello,
The following behaviour seen in 3.2 seems very strange to me:
As expected:
() == []
False
However:
().__eq__([])
NotImplemented
[].__eq__(())
NotImplemented
You don't normally want to be calling
On Mon, Aug 5, 2013 at 8:58 AM, Michael Torrie torr...@gmail.com wrote:
On 08/02/2013 03:46 AM, cool1...@gmail.com wrote:
I do know some Python programming, I just dont know enough to put
together the various scripts I need...I would really really
appreciate if some one can help me with
On 2013/8/5 2:20, Vincent Vande Vyvre wrote:
Le 04/08/2013 18:06, Jacknaruto a écrit :
Hi, Guys!
I created a thread class based QThread, and defined some signals to
update UI through main thread.
the UI used a stackedWidget,someone page named 'progressPage' have a
progressBar and a Label,
Hello,
Up. ;-)
Le 04/08/2013 04:10, Francois Lafont a écrit :
Is it possible with argparse to have this syntax for a script?
my-script (-a -b VALUE-B | -c -d VALUE-D)
I would like to do this with the argparse module.
Thanks in advance.
I have found this post:
On 5 August 2013 03:05, Francois Lafont francois.lafont@nospam.invalidwrote:
Hello,
Up. ;-)
Le 04/08/2013 04:10, Francois Lafont a écrit :
Is it possible with argparse to have this syntax for a script?
my-script (-a -b VALUE-B | -c -d VALUE-D)
I would like to do this with the
I'm on chapter 9 of this guide to python:
http://inventwithpython.com/chapter9.html but I don't quite understand why
line 79 is what it is (blanks = blanks[:i] + secretWord[i] + blanks[i+1:]). I
particularly don't get the [i+1:] part. Any additional information and help
would be greatly
Mark Dickinson added the comment:
Alexander: applying this is fine by me. As a user-visible change, yes, I
think it should have a Misc/NEWS entry. (It's too small a change to be worth
mentioning in the 'whatsnew' documents though.)
--
___
Python
Mark Dickinson added the comment:
Okay, I'm closing this for now. Al Korgun and mrDoctorWho0 .: if you think
this idea deserves wider discussion, you should feel free to bring it up again
on the python-ideas mailing list; that's a better forum to discuss these sorts
of language changes
Ethan Furman added the comment:
I don't understand.
Type checks are already performed throughout the code (int, float, True, False,
NaN, Inf, etc.).
What will opereator.index buy us?
--
___
Python tracker rep...@bugs.python.org
Mark Dickinson added the comment:
With that fixed, I am inclined to close this.
Agreed. I'll try to find some time for a PEP at some point in the next few
weeks.
I had thought of a set-mode function (method), but anticipate objection
to such modal action-at-distance behavior.
Yes; I'm
Changes by Mark Dickinson dicki...@gmail.com:
--
resolution: - postponed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18570
___
Brendan O'Connor added the comment:
Sure, go ahead and close it. I was just trying to be helpful and report a bug
in the Python standard library. I don't use Python 3.3 so cannot test it.
--
nosy: +Brendan.OConnor
___
Python tracker
Nick Coghlan added the comment:
The two isinstance checks that bother me are the ones for int and float.
However, given that the JSON serialiser *already* includes those explicit
checks, I now think it makes sense to just do the minimal fix of coercing
subclasses to the base type for both of
Serhiy Storchaka added the comment:
Here is a patch which replace the open ... close idiom to the with open
idiom in IDLE.
--
stage: commit review - patch review
Added file: http://bugs.python.org/file31144/idle_with_open.patch
___
Python tracker
Serhiy Storchaka added the comment:
Here is a patch which replace the open ... close idiom to the with open
idiom in IDLE.
--
Added file: http://bugs.python.org/file31145/idle_with_open.patch
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka added the comment:
Here is updated for 3.4 patch.
--
Added file: http://bugs.python.org/file31146/tarfile-misc-bugs-3.4.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14012
Serhiy Storchaka added the comment:
Gregory, could you commit the patch or allow me to do this?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8865
___
Mark Dickinson added the comment:
See the related python-dev discussion started by Mark Shannon here:
http://mail.python.org/pipermail/python-dev/2013-March/125022.html
and continuing well into April here:
http://mail.python.org/pipermail/python-dev/2013-April/125042.html
The consensus that
New submission from Matthias Klose:
Some tests fail on KFreeBSD, attaching a first patch from Petr Salinger.
see http://bugs.debian.org/708653 for further issues.
Ronald, could you check if that this works for OSX too?
--
components: Tests
files: kfreebsd.diff
keywords: patch
Mark Dickinson added the comment:
New patch that replaces the TypeErrors with warnings and fixes a refleak in the
original patch.
--
Added file: http://bugs.python.org/file31149/issue17576_v2.patch
___
Python tracker rep...@bugs.python.org
New submission from Hynek Schlawack:
Let met try to get you sold on adding the “first” function I released on PyPI
roughly a year ago:
https://github.com/hynek/first
It’s a very nice complement to functions like `any()` or itertools. I consists
effectively of 9 lines of code but it proved
Roundup Robot added the comment:
New changeset e2ba4592ce3a by Serhiy Storchaka in branch '2.7':
Issue #18647: Temporary disable the nothing to repeat check to make buildbots
happy.
http://hg.python.org/cpython/rev/e2ba4592ce3a
--
___
Python tracker
Serhiy Storchaka added the comment:
Here is a patch for 2.7.
--
Added file: http://bugs.python.org/file31150/expat_buffer_overflow-2.7.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13612
Serhiy Storchaka added the comment:
The function name looks a little misleading. I expected first([0, None, False,
[], (), 42]) returns 0.
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18652
Michał Górny added the comment:
Oh, sorry. I've looked throughout the code again and it seems that distutils is
doing the right thing. It's setuptools/distribute that is broken.
--
resolution: - invalid
status: open - closed
___
Python tracker
Nick Coghlan added the comment:
It's a direct counterpart to any() and all() - first([0, [], ()]) is None for
the same reason that any([0, [], ()]) and all([0, [], ()]) are both False.
If first returned the actual first item in the iterable (regardless of truth
value), then it would just be
Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:
--
nosy: +piotr.dobrogost
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13238
___
___
Martin v. Löwis added the comment:
Charles-Francois: why did you commit this to default only, and not to 3.3?
(see also issue18651)
--
nosy: +loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17684
Martin v. Löwis added the comment:
Note that 3.4 will need a different patch, due to issue17684.
--
nosy: +loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18651
___
Serhiy Storchaka added the comment:
In this case it would be pointless too. It is just
next(filter(key, iterable), default)
Are you need a special function for combination of two builtins?
--
___
Python tracker rep...@bugs.python.org
Nick Coghlan added the comment:
The deprecation warning version looks good to me.
Something I'll mention explicitly (regarding the PyCon discussions that Eric
mentioned above), is that we unfortunately couldn't do something like this for
the various concrete APIs with overly permissive
Hynek Schlawack added the comment:
`filter()` exhausts the full iterator which is potentially very expensive –
like in conduction with regular expressions.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18652
Martin v. Löwis added the comment:
I also think it should go to itertools.
I also found the name first confusing, in particular since it means what
Serhiy assumes in LISP, which might be familiar to people interested in
functional list processing. Also, Ruby and Smalltalk use first in that
Nick Coghlan added the comment:
Serhiy, Hynek covered the issue with the status quo in the original
proposal.The existing alternative are painful to try and decipher by
comparison with the named function:
filterednext([0, None, False, [], (), 42])
vs
next(filter(None, [0, None, False,
Hynek Schlawack added the comment:
Ah ok sorry. Anyhow, it’s just a very common idiom that should be easy and
readable.
As said, I’m not married to any names at all and would happily add a
compatibility package to PyPI with the new names/parameters.
--
Martin v. Löwis added the comment:
Nick: that the code is difficult to decipher is really the fault of functional
programming, which is inherently difficult to decipher (since last function
applied is written first).
Explicit iteration is easier to read. I would write Hynek's example as
for
Nick Coghlan added the comment:
Regarding the key parameter name, I believe this is closer to itertools.groupby
(which uses key= as an optional argument, akin to min, max and sorted) than
it is to filterfalse, dropwhile or takewhile (which use pred as the first
positional argument)
The only
Hynek Schlawack added the comment:
Martin, I don’t find the loop easier to read because you have to *remember* the
`break` otherwise “weird stuff happens”.
Coalesce seems common enough, I would +1 on that too.
--
title: Add a “first” function to the stdlib - Add a “first”-like
Nick Coghlan added the comment:
(Updated the issue title to reflect the currently proposed name and location
for the functionality)
While I'm a fan of explicit iteration as well (inside every reduce is a loop
trying to get out), I think the fact Martin's explicit loop is buggy (it will
never
Martin v. Löwis added the comment:
Simplicity is in the eye of the beholder, yet... you need to remember the break
when *writing* the code, so the loop might be more difficult to write (but
then, I need to remember/lookup the function name and parameters for
coalesce)... when reading the
Piotr Dobrogost added the comment:
Maybe the solution is to make what I was trying to do easier without
fooling with the shell instead of playing the fool's game of trying to
improve the ability to deal with the shell so we can pass things
through it unnecessarily.
You are too harsh for
New submission from Roumen Petrov:
split of issue3871 - this is meta issue only for part related to build core.
Remark: build of interpreter core is in issue17605 .
Now split is:
- 01 issue13756 : Python make fail on cygwin
- 02 issue17219 : add current dir in library path if building python
Mark Dickinson added the comment:
[Nick]
Regarding the key parameter name, I believe this is closer to
itertools.groupby ...
Isn't this mostly about the return type? `pred` is an indication that a
boolean is being returned (or that the return value will be interpreted in a
boolean
Eli Bendersky added the comment:
I also think that exchanging the explicit type checks by __index__ merits more
thought and is outside the scope of this local fix. The proposed patch does not
add any new type checks, but acts within the bounds of code for which the type
is already
Nick Coghlan added the comment:
Mark's rationale makes sense to me. I believe that would make the
latest version of the proposed API (in the itertools module):
def coalesce(iterable, default=None, pred=None):
...
--
___
Python tracker
Dan Søndergaard added the comment:
Is it satisfactory to just add the -i and -e variants to ALIASES in charset.py?
Or don't they qualify as Aliases for other commonly-used names for character
sets?
--
nosy: +das
___
Python tracker
New submission from Roumen Petrov:
Python mingw and cygwin compiler classes tests for outdated features. Also
python code set some flags like zero optimization level and etc. that prevent
users to build optimized python or even worse build to fail.
This issue is part of split of issue3871
Eli Bendersky added the comment:
Thanks, Serhiy.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13612
Roundup Robot added the comment:
New changeset b3efc140d8a6 by Eli Bendersky in branch '2.7':
Issue #13612: Fix a buffer overflow in case of a multi-byte encoding.
http://hg.python.org/cpython/rev/b3efc140d8a6
--
___
Python tracker
Eli Bendersky added the comment:
Would it not be better to temporarily-fix the test rather than the code?
--
nosy: +eli.bendersky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18647
___
Roumen Petrov added the comment:
Proposed customization allow users to build extension module for windows with
GNU compiler in all environments:
- native with installed official build of python for windows
- native either MSYS or CYGWIN enviroment and python build with GCC
- cross-build in
Roumen Petrov added the comment:
This patch require modernize mingwcygwin compiler classes now opened as
separate issue18654 .
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18653
___
Serhiy Storchaka added the comment:
def coalesce(iterable, default=None, pred=None):
return next(filter(pred, iterable), default)
Are you sure you want add this one-line function to the itertools module rather
then to recipes?
--
___
Python
Serhiy Storchaka added the comment:
All doctests affected.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18647
___
___
Python-bugs-list mailing
Roundup Robot added the comment:
New changeset b7d764807343 by Charles-Francois Natali in branch '3.3':
Issue #17684: Fix some test_socket failures due to limited FD passing support
http://hg.python.org/cpython/rev/b7d764807343
--
___
Python tracker
Eli Bendersky added the comment:
Wonderfully terse, as usual. Can you be so kind to elaborate just a tiny bit
more? Is the amount of doctests this affects so large that it's better to
change the implementation? What are the plans for this temporary stage - is
there an intention to fix the
Charles-François Natali added the comment:
Charles-Francois: why did you commit this to default only, and not
to 3.3?
I overlooked it (apparently, the issue was tagged 3.4 only, and I didn't
double-check that the code was present in 3.3 as well).
Should be better now!
--
versions:
New submission from netrick:
On both Python 2 or 3, when you have GUI app (for example something in pygame
or pyside or tk), when you launch it on Windows it takes about 4-6 seconds to
display the Window for the first run. The next runs are faster, but only untill
you reboot the PC.
The
Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:
--
nosy: +piotr.dobrogost
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9148
___
___
Roumen Petrov added the comment:
please follow build of core modules - issue18653 .
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17605
___
___
Richard Oudkerk added the comment:
Firstly, list2cmdline() takes a list as its argument, not a string:
import subprocess
print subprocess.list2cmdline([r'\1|2\'])
\\\1|2\\\
But the problem with passing arguments to a batch file is that cmd.exe parses
arguments differently from how
Roumen Petrov added the comment:
I would like to config that path to this issue is one of those for issue3871 -
my patch for 2.6/2.7 enhanced by ?? (sorry I forgot user :( ) for 3.0 .
Now as requested all in one patch is split and first set is listed in
issue17605 build interpeter core,
Changes by Matt Joiner anacro...@gmail.com:
--
nosy: +anacrolix
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9148
___
___
Python-bugs-list
Martin v. Löwis added the comment:
Thanks!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17684
___
___
Python-bugs-list mailing list
Changes by Roumen Petrov bugtr...@roumenpetrov.info:
--
nosy: +rpetrov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9098
___
___
Python-bugs-list
Hynek Schlawack added the comment:
def coalesce(iterable, default=None, pred=None):
return next(filter(pred, iterable), default)
Are you sure you want add this one-line function to the itertools module
rather then to recipes?
Well, for many – including me – it would mean to have
Changes by Roumen Petrov bugtr...@roumenpetrov.info:
--
nosy: +rpetrov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15315
___
___
Changes by Roumen Petrov bugtr...@roumenpetrov.info:
--
nosy: +rpetrov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4709
___
___
Python-bugs-list
Piotr Dobrogost added the comment:
This is unexpected and makes people wonder what's going on. See
http://stackoverflow.com/q/7004687/95735 and
http://stackoverflow.com/q/7264571/95735.
--
___
Python tracker rep...@bugs.python.org
Piotr Dobrogost added the comment:
I think you're missing the point. The implementation is wrong as it does not do
what documentation says which is A double quotation mark preceded by a
backslash is interpreted as a literal double quotation mark. How the output of
list2cmdline interacts with
Ramchandra Apte added the comment:
Can you provide a short script that reproduces this problem?
AFAIK, Python doesn't display windows, the tcl/pygame libraries' C code creates
the windows.
--
nosy: +Ramchandra Apte
___
Python tracker
1 - 100 of 180 matches
Mail list logo