On Wednesday, September 11, 2013 5:11:23 PM UTC+12, John Gordon wrote:
> In William Bryant
> writes:
>
>
>
> > Hey, I am very new to python, I am 13 years old. I want to be able to make =
>
> > a program the caculates the mean, meadian and mode. When i run the program,=
>
> > an input fiel
In William Bryant
writes:
> Hey, I am very new to python, I am 13 years old. I want to be able to make =
> a program the caculates the mean, meadian and mode. When i run the program,=
> an input field pops up and says 'Does your list contain, a number or a str=
> ing?' like I want it to, but w
Hey, I am very new to python, I am 13 years old. I want to be able to make a
program the caculates the mean, meadian and mode. When i run the program, an
input field pops up and says 'Does your list contain, a number or a string?'
like I want it to, but when I type in something that is not one o
On Wed, Sep 11, 2013 at 11:46 AM, Chris Rebert wrote:
> * The value of the loop variable at call-time for functions defined
> within a loop trips people up.
Related: The confusion of 'with' vs __del__ vs del wrt open files etc.
Using 'with' does not guarantee the object's destruction, but the
des
Steven,
i think you got on the right track with your proposal,
although i am not going after the "visual" represenatation that you were able
to create, rather a structural one, i think this might work for me,
instead of printing, i could be using my commands to make elements (instances
of API obj
Guys,
i appreciate the effort put in here, i guess i should've started a little wider
on description.
sorry for confusion, here it goes:
I am developing a script/application that uses adobe Scene7 API. the idea here
is mass process a ton of files (hundreds of thousands), we generate image files
On Wed, 11 Sep 2013 02:24:44 +, Dave Angel wrote:
> On 10/9/2013 22:14, Steven D'Aprano wrote:
>
>> On Tue, 10 Sep 2013 14:08:45 -0700, stas poritskiy wrote:
>>
>>> Greetings to all!
>>>
>>> i ran into a little logic problem and trying to figure it out.
>>>
>>> my case is as follows:
>>>
>
On 10/9/2013 22:14, Steven D'Aprano wrote:
> On Tue, 10 Sep 2013 14:08:45 -0700, stas poritskiy wrote:
>
>> Greetings to all!
>>
>> i ran into a little logic problem and trying to figure it out.
>>
>> my case is as follows:
>>
>> i have a list of items each item represents a Group
>> i need to
On Tue, 10 Sep 2013 14:08:45 -0700, stas poritskiy wrote:
> Greetings to all!
>
> i ran into a little logic problem and trying to figure it out.
>
> my case is as follows:
>
> i have a list of items each item represents a Group
> i need to create a set of nested groups,
> so, for example:
>
>
* No explicit variable declarations (modulo `global`+`nonlocal`) means
that variable name typos can't be reliably detected at compile-time.
* The value of the loop variable at call-time for functions defined
within a loop trips people up.
* No self-balancing tree datatype of any kind is included in
On Wed, 11 Sep 2013 01:03:48 +0100, Nobody wrote:
> On Tue, 10 Sep 2013 17:07:09 +1000, Ben Finney wrote:
>
>> * Python requires every programmer to know, or quickly learn, the
>> basics
>> of Unicode: to know that text is not, and never will be again,
>> synonymous with a sequence of bytes.
On 09/04/2013 05:41 AM, James Harris wrote:
> Naturally, all of these are centred on curses. I have been reading up on it
> and must say that the whole curses approach seems rather antiquated. I
> appreciate the suggestions and they may be what I need to do but from what I
> have seen of curses
On Tue, 10 Sep 2013 17:07:09 +1000, Ben Finney wrote:
> * Python requires every programmer to know, or quickly learn, the basics
> of Unicode: to know that text is not, and never will be again,
> synonymous with a sequence of bytes.
If only the Python developers would learn the same lesson ..
Have you looked at Blessings?
I never tried it, but the API seems much cleaner than Curses.
https://pypi.python.org/pypi/blessings/
--
Joost Molenaar
--
https://mail.python.org/mailman/listinfo/python-list
In article <3d1eaccc-cf89-4eb0-b96c-b22a0a2f7...@googlegroups.com>,
stas poritskiy wrote:
> So head is parent of neck, while neck is parent of arms and so on.
The head bone's connected to the neck bone. The neck bone's connected
to the arm bone...
--
https://mail.python.org/mailman/listinfo
On 10/9/2013 18:11, stas poritskiy wrote:
Please include some quotation from the message you're replying to. We
can't tell who this was responding to until the very last line, where
you mention my name. But since you're using buggy googlegroups, you'd
better also read
http://wiki.python.org/mo
Those simbols are just for visual representation.
I need to store each of the first elements of a par, so I can reference to them
as to a parent of another group.
So head is parent of neck, while neck is parent of arms and so on.
I'm not sure I understand how to apply your chop list example, d
On 10/9/2013 17:08, stas poritskiy wrote:
> Greetings to all!
>
> i ran into a little logic problem and trying to figure it out.
>
> my case is as follows:
>
> i have a list of items each item represents a Group
>
> i need to create a set of nested groups,
>
> so, for example:
>
> myGroups = ["he
What you're asking is a Ragged Hierarchy.
On Tuesday, September 10, 2013 5:08:45 PM UTC-4, stas poritskiy wrote:
> Greetings to all!
>
>
>
> i ran into a little logic problem and trying to figure it out.
>
>
>
> my case is as follows:
>
>
>
> i have a list of items each item represents a
Greetings to all!
i ran into a little logic problem and trying to figure it out.
my case is as follows:
i have a list of items each item represents a Group
i need to create a set of nested groups,
so, for example:
myGroups = ["head", "neck", "arms", "legs"]
i need to get them to be represen
there is a little bit more to this, but i think when i will be able to process
the list the way i need it i can continue on my own.
--
https://mail.python.org/mailman/listinfo/python-list
> Every time you go on the Internet, you download other people's code
> and execute it. Javascript, Flash, HTML5, PDF are all either
> executable, or they include executable components.
That's why I deactivate all of these by default. And why I *hate*
so-called "web designers" who *require* activa
Found a solution. For query string you have to add it to both the http_headers
dictionary AND to the URL when making the Request.
old line:
http_headers = {}
http_headers['oauth_version'] = '1.0'
new line:
http_headers = {}
http_headers['date'] = 'ddmm' #add this line
http_headers['oaut
Found a solution. For query string you have to add it to both the http_headers
dictionary AND to the URL when making the Request.
old line:
http_headers = {}
http_headers['oauth_version'] = '1.0'
new line:
http_headers = {}
http_headers['date'] = 'ddmm' #add this line
http_headers['oauth_v
On Mon, Sep 9, 2013, at 10:28, wxjmfa...@gmail.com wrote:
*time performance differences*
>
> Comment: Such differences never happen with utf.
Why is this bad? Keeping in mind that otherwise they would all be almost
as slow as the UCS-4 case.
> >>> sys.getsizeof('a')
> 26
> >>> sys.getsizeof('€')
On Tue, 10 Sep 2013 10:45:16 +0100, Oscar Benjamin wrote:
> On 10 September 2013 01:06, Steven D'Aprano
> wrote:
[rant about executing code over the internet]
> You could have also mentioned pip/PyPI in that. 'pip install X'
> downloads and runs arbitrary code from a largely unmonitored and
>
On Tue, 10 Sep 2013 07:01:20 +, Steven D'Aprano wrote:
> On Tue, 10 Sep 2013 00:40:59 +0430, Mohsen Pahlevanzadeh wrote:
>> My question is , do you have reverse of this function?
>> persianToInteger?
>
> The Python built-in int function already supports that:
>
>
> py> int('۳۴۵۵')
> 3455
Sorry about the typo I meant append the date to the URL. So at the end of the
current URL adding ?date=ddmm. But I will go through the documentation to
see if I missed anything, but as far as I remember it said to just append the
date in that format.
--
https://mail.python.org/mailman/listi
On 2013-09-09, eamonn...@gmail.com wrote:
> Is there a way to detect if the user presses a key in Python that
> works on most OS's?
No. Unless by "most OSes" you mean "most Unixes" or "most Windows".
> I've only seen 1 method, and that only works in
> Python 2.6 and less.
> If you get the key
On Tue, Sep 10, 2013, at 3:01, Steven D'Aprano wrote:
> def integerToPersian(number):
> """Convert positive integers to Persian.
>
> >>> integerToPersian(3455)
> '۳۴۵۵'
>
> Does not support negative numbers.
> """
> digit_map = dict(zip('0123456789', '۰۱۲۳۴۵۶۷۸۹'))
> d
On Tue, Sep 10, 2013 at 10:06 AM, Steven D'Aprano
wrote:
> Of course, Linux is a much
> harder target than the average unpatched Windows box, and there are
> probably easier ways to get access to your files if they really need to.
Plus "Linux" isn't a single target. You can search the internet fo
On 10.09.2013 11:45, Oscar Benjamin wrote:
On 10 September 2013 01:06, Steven D'Aprano
wrote:
On Mon, 09 Sep 2013 12:19:11 +, Fattburger wrote:
But really, we've learned *nothing* from the viruses of the 1990s.
Remember when we used to talk about how crazy it was to download code
from untr
On 10 September 2013 03:27, Jason Friedman wrote:
>>
>> OK, you're well inside the "finite" domain. Also, you probably want less
>> than the "natural" randomness. I'd probably shuffle the potential
>> quarterbacks and the others in independent lists, and then pick one half of
>> each to form a tea
On Tue, Sep 10, 2013 at 4:09 PM, Steven D'Aprano wrote:
> What design mistakes, traps or gotchas do you think Python has? Gotchas
> are not necessarily a bad thing, there may be good reasons for it, but
> they're surprising.
Significant indentation. It gets someone every day, it seems.
The fact
On 10 September 2013 01:06, Steven D'Aprano
wrote:
> On Mon, 09 Sep 2013 12:19:11 +, Fattburger wrote:
>
> But really, we've learned *nothing* from the viruses of the 1990s.
> Remember when we used to talk about how crazy it was to download code
> from untrusted sites on the Internet and execu
Op 10-09-13 08:09, Steven D'Aprano schreef:
> Some time ago, Tom Christiansen wrote about the "Seven Deadly Sins of
> Perl":
>
> http://www.perl.com/doc/FMTEYEWTK/versus/perl.html
>
>
> What design mistakes, traps or gotchas do you think Python has? Gotchas
> are not necessarily a bad thing, t
Mohsen Pahlevanzadeh wrote:
> I completed my two functions, i say may be poeple can use them:
> ##33
> def integerToPersian(number):
> listedPersian = ['۰','۱','۲','۳','۴','۵','۶','۷','۸','۹']
> listedEnglish = ['0','1','2','3','4','5','6','7','8','9']
>
Op 10-09-13 04:27, Jason Friedman schreef:
>>> I coach a flag football team of 11-year-olds. A stated goal of the
>>> league is that every player should get nearly equal playing time and
>>> that winning is of secondary importance. That said, some players just
>>> can't throw the ball at all, and
Steven D'Aprano writes:
> What design mistakes, traps or gotchas do you think Python has?
* Imports are fiendishly complex, hidden below deceptively simple
syntax.
It's a reasonable expectation that one can import a module from a
source code file given its path on the filesystem, but this
On Tue, 10 Sep 2013 00:40:59 +0430, Mohsen Pahlevanzadeh wrote:
> Dear all,
>
> I have a gift for mailing list:
>
>
> def integerToPersian(number):
> listedPersian = ['۰','۱','۲','۳','۴','۵','۶','۷','۸','۹']
> listedEnglish = ['0','1','2','3','4','5','6',
No exactly bad, but can suprise
>>> foo=([],)
>>> foo[0] += ['bar']
Traceback (most recent call last):
File "", line 1, in
TypeError: 'tuple' object does not support item assignment
>>> foo
(['bar'],)
Dne úterý, 10. září 2013 8:09:25 UTC+2 Steven D'Aprano napsal(a):
> Some time ago, Tom Chri
41 matches
Mail list logo