On Sat, 4 Jan 2025 at 09:22, aotto1968 via Python-list
wrote:
>
> On 30.12.24 18:29, Michael Torrie wrote:
> > On 12/26/24 12:34 AM, aotto1968 via Python-list wrote:
> >> sorry you don't understand the problem…
> >>
> >> > You managed to make a build of Python that attempts to link to a DLL
> >>
On 30.12.24 18:29, Michael Torrie wrote:
On 12/26/24 12:34 AM, aotto1968 via Python-list wrote:
sorry you don't understand the problem…
> You managed to make a build of Python that attempts to link to a DLL
I never touch the OpenSUSE python. the OpenSUSE python try to use my
sqalite3.
The
On 12/26/24 12:34 AM, aotto1968 via Python-list wrote:
> sorry you don't understand the problem…
>
> > You managed to make a build of Python that attempts to link to a DLL
>
> I never touch the OpenSUSE python. the OpenSUSE python try to use my
> sqalite3.
The *only* mechanism that would cause
On Mon, 30 Dec 2024 at 15:02, aotto1968 via Python-list
wrote:
> > You managed to make a build of Python that attempts to link to a DLL
>
> I never touch the OpenSUSE python. the OpenSUSE python try to use my
> sqalite3.
You keep saying this, but do you even know what "make install" does?
Are y
On 26.12.24 19:33, Michael Torrie wrote:
On 12/25/24 10:46 PM, Chris Angelico wrote:
Right. That's exactly what would happen if he'd built Python using
absolute paths to libraries, which is the normal way to do it. And so
the solution is to rebuild Python using absolute paths to libraries.
You
a
security issue. If you can figure out what's happening you might want to
open a ticket with the OpenSUSE developers. This is Python related, but
it's not necessarily python's fault per se.
You don't understand the problem if you think "/usr/bin/env" will solve the
a
security issue. If you can figure out what's happening you might want to
open a ticket with the OpenSUSE developers. This is Python related, but
it's not necessarily python's fault per se.
Yes I using with *my* user *my* environment but never touch the *root*
environment at all.
On 26.12.24 06:46, Chris Angelico wrote:
On Thu, 26 Dec 2024 at 14:57, Michael Torrie via Python-list
wrote:
On 12/25/24 3:55 PM, Chris Angelico via Python-list wrote:
On Thu, 26 Dec 2024 at 09:27, aotto1968 via Python-list
wrote:
It is not only an *usage* error it is also an *security* err
On 25.12.24 23:55, Chris Angelico wrote:
On Thu, 26 Dec 2024 at 09:27, aotto1968 via Python-list
wrote:
It is not only an *usage* error it is also an *security* error because:
1) "cnf" is using OS python
2) os "root" python
3) using **my** local non-root library
Yes. And YOU were the one who
On 12/25/24 10:46 PM, Chris Angelico wrote:
> Right. That's exactly what would happen if he'd built Python using
> absolute paths to libraries, which is the normal way to do it. And so
> the solution is to rebuild Python using absolute paths to libraries.
You're right. Definitely appears to be a p
On Thu, 26 Dec 2024 at 14:57, Michael Torrie via Python-list
wrote:
>
> On 12/25/24 3:55 PM, Chris Angelico via Python-list wrote:
> > On Thu, 26 Dec 2024 at 09:27, aotto1968 via Python-list
> > wrote:
> >> It is not only an *usage* error it is also an *security* error because:
> >>
> >> 1) "cnf"
On 12/25/24 8:55 PM, Michael Torrie wrote:
> This is Python related, but
> it's not necessarily python's fault per se.
It's also a good reminder to use venv. Then there's no way of
activating your custom python with its custom sqlite3 library unless you
explicitly ac
could be a
security issue. If you can figure out what's happening you might want to
open a ticket with the OpenSUSE developers. This is Python related, but
it's not necessarily python's fault per se.
--
https://mail.python.org/mailman/listinfo/python-list
On Thu, 26 Dec 2024 at 09:27, aotto1968 via Python-list
wrote:
> It is not only an *usage* error it is also an *security* error because:
>
> 1) "cnf" is using OS python
> 2) os "root" python
> 3) using **my** local non-root library
Yes. And YOU were the one who installed a new root Python. This i
On 25.12.24 12:05, aotto1968 wrote:
I get angry…
next python error…
1) The OpenSUSE command "cnf" checks if a special package feature is installed.
2) I recently compiled **my** SQLite3 library specifically tailored to **my** requirement and installed it in **my** SQLite3
project directory and
I get angry…
next python error…
1) The OpenSUSE command "cnf" checks if a special package feature is installed.
2) I recently compiled **my** SQLite3 library specifically tailored to **my** requirement and installed it in **my** SQLite3
project directory and never changed the OpenSUSE installat
On 12/16/24 12:08 AM, aotto1968 via Python-list wrote:
> If I read the answers I come to the conclusion that the "supporters" at
> python doesn't ever understand the problem.
Sorry you feel that way. Various people gave the best advice they could
based on what you had provided. You were given s
On 2024-12-16, aotto1968 via Python-list wrote:
> If I read the answers I come to the conclusion that the "supporters"
> at python doesn't ever understand the problem.
You should definitely demand to speak to the manager and request your
money back.
--
Grant
--
https://mail.python.org/mailman
On 2024-12-16 08:08:46 +0100, aotto1968 via Python-list wrote:
> On 13.12.24 11:36, aotto1968 wrote:
> > it's a shame...
> > almost every tool I touch that uses "python" in some way has some
> > configuration error because apparently a __private__ python
On 13.12.24 11:36, aotto1968 wrote:
it's a shame...
almost every tool I touch that uses "python" in some way has some configuration error because apparently a __private__ python
installation __isn't__ properly "understood".
-> I think after ~30 years *python*
On 12/14/24 10:31 AM, aotto1968 via Python-list wrote:
> The CORE problem is that python3 works well in *my* environment but the
> installation is done as root and root does not use *my* environment.
>
> the mono build search for a working python3 and find *my*
> > HOME/ext/x86_64-suse-linux-gnu/
On Sun, 15 Dec 2024 at 06:05, aotto1968 via Python-list
wrote:
> The CORE problem is that python3 works well in *my* environment but the
> installation is done as root and root does not use *my* environment.
>
So, it's an environment problem, NOT a Python problem. You messed up
you
On 14.12.24 10:56, Peter J. Holzer wrote:
On 2024-12-13 11:36:01 +0100, aotto1968 via Python-list wrote:
it's a shame...
almost every tool I touch that uses "python" in some way has some
configuration error because apparently a __private__ python installation
__isn't__
On 12/14/24 2:56 AM, Peter J. Holzer via Python-list wrote:
> So it might be because it's in a different directory ("HOME/ext/..." is
> a relative path. That will not work in a different directory. Also
> "HOME" is a strange choice for a directory name. Did
On 12/13/24 1:56 PM, aotto1968 via Python-list wrote:
> the problem is *not* to setup an environment variable, the problem is that
> python is *not*
> able to setup the *python* environment by it self.
You're mistaken in this case. Nothing you've posted indicates the
problem is in Python itself.
On 2024-12-13 11:36:01 +0100, aotto1968 via Python-list wrote:
> it's a shame...
> almost every tool I touch that uses "python" in some way has some
> configuration error because apparently a __private__ python installation
> __isn't__ properly "understood"
On 13.12.24 19:24, Barry wrote:
On 13 Dec 2024, at 15:54, aotto1968 via Python-list
wrote:
HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared
libraries: libpython3.12d.so.1.0: cannot open shared object file: No such file
or directory
This is a debug build?
Try
> On 13 Dec 2024, at 15:54, aotto1968 via Python-list
> wrote:
>
> HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared
> libraries: libpython3.12d.so.1.0: cannot open shared object file: No such
> file or directory
This is a debug build?
Try setting LD_LIBRARY_PAT
On 13.12.24 11:44, aotto1968 wrote:
On 13.12.24 11:36, aotto1968 wrote:
it's a shame...
almost every tool I touch that uses "python" in some way has some configuration error because apparently a __private__ python
installation __isn't__ properly "understood"
On 13.12.24 11:36, aotto1968 wrote:
it's a shame...
almost every tool I touch that uses "python" in some way has some configuration error because apparently a __private__ python
installation __isn't__ properly "understood".
-> I think after ~30 years *python*
it's a shame...
almost every tool I touch that uses "python" in some way has some configuration error because apparently a __private__ python
installation __isn't__ properly "understood".
-> I think after ~30 years *python* should be able to handle a shared-l
tware or interest.
-Original Message-
From: Tutor On Behalf Of
Alan Gauld via Tutor
Sent: Tuesday, September 3, 2024 4:41 AM
To: tu...@python.org
Cc: python-list@python.org
Subject: Re: [Tutor] Getting a Process.start() error pickle.PicklingError:
Can't pickle : it's not found
On 9/2/24 11:36, Barry Scott wrote:
On 2 Sep 2024, at 15:00, marc nicole via Python-list
wrote:
I am using Python 2.7 on Windows 10
Why? Install Python 3.12 and it will be easier to get help and support.
If you have legacy that still needs porting then you can install 3.12 along side
the
ore or after the error message? It might make things easier to
> debug(clearer error traceback) if you put the code to create the thread
> into a separate function?
>
> def do_Something(text)...
>
> def start(fn):
> q = Process
>q.start()
>
> if __name_
>
> On 2 Sep 2024, at 15:00, marc nicole via Python-list
> wrote:
>
> I am using Python 2.7 on Windows 10
Why? Install Python 3.12 and it will be easier to get help and support.
If you have legacy that still needs porting then you can install 3.12 along side
the unsupported 3.12.
Barry
--
PicklingError: Can't pickle : it's not found as
__builtin__.module
anybody could provide an alternative to call the function do_something() in
a separate thread ?
--
https://mail.python.org/mailman/listinfo/python-list
On Sun, Nov 13, 2022 at 4:45 PM DFS wrote:
> In code, list.clear is just ignored.
> At the terminal, list.clear shows
>
>
>
> in code:
> x = [1,2,3]
> x.clear
> print(len(x))
> 3
>
> at terminal:
> x = [1,2,3]
> x.clear
>
> print(len(x))
> 3
>
>
> Caused me an hour of frustration before I notic
On Thu, 24 Nov 2022 at 06:26, Stefan Ram wrote:
>
> Jon Ribbens writes:
> >If you want to catch this sort of mistake automatically then you need
> >a linter such as pylint:
>
> output
>
> , line 1
> list.clear
> Warning: Attribute used as statement.
>
> , line 5
> list.clear
> Warning: Attribut
: Python-list On
Behalf Of Chris Angelico
Sent: Tuesday, November 15, 2022 6:16 PM
To: python-list@python.org
Subject: Re: In code, list.clear doesn't throw error - it's just ignored
On Wed, 16 Nov 2022 at 10:11, wrote:
>
> That is clear, Cameron, but on my python interpreter values
On Wed, 16 Nov 2022 at 10:11, wrote:
>
> That is clear, Cameron, but on my python interpreter values evaluated on the
> command line ARE saved:
>
> >>> numb = 5
> >>> 5 + numb
> 10
> >>> numb
> 5
> >>> _ + _ + 1
> 11
That's a REPL feature.
ChrisA
--
https://mail.python.org/mailman/listinfo/pyth
I grant generally a naked evaluation is generally an error. LOL!
-Original Message-
From: Python-list On
Behalf Of Cameron Simpson
Sent: Tuesday, November 15, 2022 4:13 AM
To: python-list@python.org
Subject: Re: In code, list.clear doesn't throw error - it's just ignored
On 15Nov
On 15Nov2022 00:45, avi.e.gr...@gmail.com wrote:
What would be the meaning of an ordering relation determining what is
MORE VALID?
Are you asking what criterion would rate:
clearx = x.clear
as "more" valid than:
x.clear
on its own?
I don't want to speak for the OP, but I'd think t
22 9:34 PM
To: python-list@python.org
Subject: Re: In code, list.clear doesn't throw error - it's just ignored
On 14Nov2022 19:15, Dennis Lee Bieber wrote:
> There is also the minor facet that "x.clear" can be bound to a
>different name...
>
>>>&g
On 14Nov2022 19:15, Dennis Lee Bieber wrote:
There is also the minor facet that "x.clear" can be bound to a
different name...
x = [1, 2, 3.145926536, "Pie"]
clearx = x.clear
x
[1, 2, 3.145926536, 'Pie']
clearx()
x
[]
I think the OP would take the stance that this:
clearx =
On Tue, 15 Nov 2022 09:11:10 +1100, Cameron Simpson
declaimed the following:
>On 13Nov2022 22:23, DFS wrote:
>>This is an easy check for the interpreter to make.
>
>It really isn't, given that (a) this isn't known by the interpreter to
>be a `list` until runtime and (b) that would need embeddin
On 13Nov2022 22:23, DFS wrote:
On 11/13/2022 9:11 PM, Chris Angelico wrote:
[ ... `x.clear` ... ]
No part of it is invalid, so nothing causes a problem. For instance,
you can write this:
If it wastes time like that it's invalid.
It's a valid expression.
It looks to your eye li
On Tue, 15 Nov 2022 at 05:57, Stefan Ram wrote:
>
> Michael Speer writes:
> >Python doesn't care what an expression returns.
>
> In my English, functions return values,
> expression are being evaluated to a value.
> The evaluation of a function yields or
> produces a value. Expressions do
On 2022-11-14, Stefan Ram wrote:
> Jon Ribbens writes:
>>"""Create an array and print its length"""
>>array = [1, 2, 3]
>>array.clear
>
> BTW: Above, there are /two/ expression statements
> with no effect; the other one is
>
> """Create an array and print its length"""
>
> . Apparently, lin
you don’t:
“Statement seems to have no effect and can be replaced with a function call to
have effect”
From: Python-list on
behalf of DFS
Date: Sunday, November 13, 2022 at 7:46 PM
To: python-list@python.org
Subject: In code, list.clear doesn't throw error - it's just ignored
***
Am Mon, Nov 14, 2022 at 02:13:34AM + schrieb MRAB:
> But if it's an expression where it's expecting a statement and it's not a
> call, then
> it's probably a bug.
That "probably" makes it suitable for a linter, as was pointed out.
Karsten
--
GPG 4
tance,
you can write this:
If it wastes time like that it's invalid.
It's not invalid. In the REPL for example, it does something useful:
>>> x = [1, 2, 3]
>>> x.clear
Others have shown instances where writing a method or function without
calling it are useful in
On 14/11/2022 12.12, DFS wrote:
On 11/13/2022 5:20 PM, Jon Ribbens wrote:
On 2022-11-13, DFS wrote:
In code, list.clear is just ignored.
At the terminal, list.clear shows
in code:
x = [1,2,3]
x.clear
print(len(x))
3
at terminal:
x = [1,2,3]
x.clear
print(len(x))
3
Caused me an hour of f
On Mon, 14 Nov 2022 at 18:00, Greg Ewing wrote:
>
> On 14/11/22 3:13 pm, MRAB wrote:
> > But if it's an expression where it's expecting a statement and it's not
> > a call, then it's probably a bug.
>
> The key word there is "probably". If t
On 14/11/22 3:13 pm, MRAB wrote:
But if it's an expression where it's expecting a statement and it's not
a call, then it's probably a bug.
The key word there is "probably". If there's any chance it
could be not a bug, it can't be an error. At most
t; $ cat test.py
> >>> """Create an array and print its length"""
> >>>
> >>> array = [1, 2, 3]
> >>> array.clear
> >>> print(len(array))
> >>> $ pylint -s n test.py
> >
why is it allowed in the first place?
I stared at list.clear and surrounding code a dozen times and said
"Looks right! Why isn't it clearing the list?!?!"
2 parens later and I'm golden!
No part of it is invalid, so nothing causes a problem. For instance,
you can write this:
On 2022-11-14, Greg Ewing wrote:
> On 14/11/22 1:31 pm, Jon Ribbens wrote:
>> On 2022-11-13, DFS wrote:
>>> But why is it allowed in the first place?
>>
>> Because it's an expression, and you're allowed to execute expressions.
>
> To put it a bit
On Mon, 14 Nov 2022 at 13:18, MRAB wrote:
>
> On 2022-11-14 00:55, Greg Ewing wrote:
> > On 14/11/22 1:31 pm, Jon Ribbens wrote:
> >> On 2022-11-13, DFS wrote:
> >>> But why is it allowed in the first place?
> >>
> >> Because it's
On 2022-11-14 00:55, Greg Ewing wrote:
On 14/11/22 1:31 pm, Jon Ribbens wrote:
On 2022-11-13, DFS wrote:
But why is it allowed in the first place?
Because it's an expression, and you're allowed to execute expressions.
To put it a bit more clearly, you're allowed to evaluat
On Mon, 14 Nov 2022 at 11:53, DFS wrote:
>
> On 11/13/2022 5:20 PM, Jon Ribbens wrote:
> > On 2022-11-13, DFS wrote:
> >> In code, list.clear is just ignored.
> >> At the terminal, list.clear shows
> >>
> >>
> >>
> >> in code:
> >> x = [1,2,3]
> >> x.clear
> >> print(len(x))
> >> 3
> >>
> >> at
On 14/11/22 1:31 pm, Jon Ribbens wrote:
On 2022-11-13, DFS wrote:
But why is it allowed in the first place?
Because it's an expression, and you're allowed to execute expressions.
To put it a bit more clearly, you're allowed to evaluate
an expression and ignore the r
>"""Create an array and print its length"""
>>
>>array = [1, 2, 3]
>>array.clear
>>print(len(array))
>>$ pylint -s n test.py
>>* Module test
>>test.py:4:0: W0104: Statement seems to have no effect
>> (pointless-statement)
>
>
> Thanks, I should use linters more often.
>
> But why is it allowed in the first place?
Because it's an expression, and you're allowed to execute expressions.
--
https://mail.python.org/mailman/listinfo/python-list
On 11/13/2022 5:20 PM, Jon Ribbens wrote:
On 2022-11-13, DFS wrote:
In code, list.clear is just ignored.
At the terminal, list.clear shows
in code:
x = [1,2,3]
x.clear
print(len(x))
3
at terminal:
x = [1,2,3]
x.clear
print(len(x))
3
Caused me an hour of frustration before I noticed list.
On 2022-11-13, DFS wrote:
> In code, list.clear is just ignored.
> At the terminal, list.clear shows
>
>
>
> in code:
> x = [1,2,3]
> x.clear
> print(len(x))
> 3
>
> at terminal:
> x = [1,2,3]
> x.clear
>
> print(len(x))
> 3
>
>
> Caused me an hour of frustration before I noticed list.clear() was
In code, list.clear is just ignored.
At the terminal, list.clear shows
in code:
x = [1,2,3]
x.clear
print(len(x))
3
at terminal:
x = [1,2,3]
x.clear
print(len(x))
3
Caused me an hour of frustration before I noticed list.clear() was what
I needed.
x = [1,2,3]
x.clear()
print(len(x))
0
--
On 9/20/22 09:36, asika wrote:
Sent from [1]Mail for Windows
References
Visible links
1. https://go.microsoft.com/fwlink/?LinkId=550986
dunno if you were trying to send screenshots or something, that doesn't
work here.
Try:
https://docs.python.org/3/libra
Sent from [1]Mail for Windows
References
Visible links
1. https://go.microsoft.com/fwlink/?LinkId=550986
--
https://mail.python.org/mailman/listinfo/python-list
py2 now, gotta fix that one
--
https://mail.python.org/mailman/listinfo/python-list
when the new version of XPN py2 newsreader src-tarball hits
alt.binaries, the world will hold it's breath.
major usability overhaul is ongoing.
release will be in style in usenet binary newsgroup.
full autoconfigure, no bs asked.
--
https://mail.python.org/mailman/listinfo/python-list
Stefan Behnel writes:
> https://docs.python.org/devguide/committing.html#what-s-new-and-news-entries
>
> https://github.com/larryhastings/blurb
Also of interest is the more general-use Town Crier tool:
towncrier is a utility to produce useful, summarised news files for
your project. Rat
Hartmut Goebel schrieb am 21.09.2017 um 10:59:
> I just discovered that CPython now uses Misc/NEWS.d/next to collect
> changes an there are a lot of Misc/NEWS/*.rst files for the respective
> released version. I'm investigating whether to adopt this for PyInstaller.
>
> What is the tooling for thi
On 21 September 2017 at 09:59, Hartmut Goebel
wrote:
> Hello,
>
> I just discovered that CPython now uses Misc/NEWS.d/next to collect
> changes an there are a lot of Misc/NEWS/*.rst files for the respective
> released version. I'm investigating whether to adopt this for PyInstaller.
>
> What is th
> I just discovered that CPython now uses Misc/NEWS.d/next to collect
> changes an there are a lot of Misc/NEWS/*.rst files for the respective
> released version. I'm investigating whether to adopt this for PyInstaller.
>
> What is the tooling for this? Is there some documentation, maybe a
> mailin
Hello,
I just discovered that CPython now uses Misc/NEWS.d/next to collect
changes an there are a lot of Misc/NEWS/*.rst files for the respective
released version. I'm investigating whether to adopt this for PyInstaller.
What is the tooling for this? Is there some documentation, maybe a
mailingsl
Hello,
I'm messing around with the embedded python and I can get parts to work. What
I'm having a hard time is getting my head around calling a function in the
python string and getting it's result.
Question, how do I load the python script and call runMe() and get it's valu
Receipt from websocket server audio raw and I want to encode ogg
help! :(
from websocket_server import WebsocketServer
# Called when a client sends a messagedef data_received(client, server, datos):
#HERE encoder "datos" to ogg and save data
PORT=9001
server = WebsocketServer(PORT)
server.s
you could do
worse than deposit him somewhere in the Western Australian desert.
It's kinda like sending him to hell, only the postage is cheaper.
ChrisA
--
https://mail.python.org/mailman/listinfo/python-list
Steven D'Aprano writes:
> The Aussie replies “Ah yes, I had a car like that once. American-made, is
> it?”
Is it true that in Australia, the number of the beast is 999?
--
https://mail.python.org/mailman/listinfo/python-list
Dennis Lee Bieber wrote:
> Well... when we've got states bigger than some countries...
A Texan farmer goes to Australia on vacation. There he meets an Aussie
farmer and gets to talking. They walk around the farm a little, and the
Aussie shows off his herd of cattle. The Texan immediately replie
===
A TOUCHY SUBJECT...
===
>
A WILY THRINAXODON SUED THE SMITHSONIAN FIVE HUNDRED DOLLARS FOR
SUPPRESSION OF FREEDOM OF EXPRESSION.
>
"This is a blow to evolutionism," SAID RICHARD DAWKINS.
>
ONE WHOM THRINAXODON HAS HAD SEVERAL *long* RUNNING FEUDS OVER
On Wed, May 29, 2013 at 2:53 AM, Peter Otten <__pete...@web.de> wrote:
> Chris Angelico wrote:
>
>> On Wed, May 29, 2013 at 2:19 AM, Peter Otten <__pete...@web.de> wrote:
>>> Solution: configure your editor to use four spaces for indentation.
>>
>> ITYM eight spaces.
>
> I meant: one hit of the Tab
Chris Angelico wrote:
> On Wed, May 29, 2013 at 2:19 AM, Peter Otten <__pete...@web.de> wrote:
>> Solution: configure your editor to use four spaces for indentation.
>
> ITYM eight spaces.
I meant: one hit of the Tab key should add spaces up to the next multiple of
four. Which implies
> But t
On Wed, May 29, 2013 at 2:19 AM, Peter Otten <__pete...@web.de> wrote:
> Solution: configure your editor to use four spaces for indentation.
ITYM eight spaces. But the real solution is to not mix tabs and
spaces. Stick to one or the other and you're safe.
ChrisA
--
http://mail.python.org/mailman
JackM wrote:
> Having a problem getting a py script to execute. Got this error:
>
> File "/scripts/blockIPv4.py", line 19
> ip = line.split(';')[0]
> ^
> IndentationError: expected an indented block
>
>
> I'm perplexed because the code that the error refers to *is* indented:
>
>
>
On Tue, 28 May 2013 11:32:06 -0400, JackM wrote:
> Having a problem getting a py script to execute. Got this error:
>
> File "/scripts/blockIPv4.py", line 19
> ip = line.split(';')[0]
> ^
> IndentationError: expected an indented block
>
>
> I'm perplexed because the code that the err
On 05/28/2013 09:32 AM, JackM wrote:
> Having a problem getting a py script to execute. Got this error:
>
> File "/scripts/blockIPv4.py", line 19
> ip = line.split(';')[0]
> ^
> IndentationError: expected an indented block
> I'm perplexed because the code that the error refers to *is* i
Having a problem getting a py script to execute. Got this error:
File "/scripts/blockIPv4.py", line 19
ip = line.split(';')[0]
^
IndentationError: expected an indented block
I'm perplexed because the code that the error refers to *is* indented:
with open('/var/www/html/mydomain.com/
On 26 March 2013 14:41, Arnaud Delobelle wrote:
> On 26 March 2013 10:07, Sven wrote:
> > Hello,
> >
> > Is there a way (ideally cross platform but a *nix OS solution would be
> > great) to process user input as they type?
> > What I aim to achieve is to count the number of characters a user has
On 26 March 2013 10:07, Sven wrote:
> Hello,
>
> Is there a way (ideally cross platform but a *nix OS solution would be
> great) to process user input as they type?
> What I aim to achieve is to count the number of characters a user has
> entered and display it while they are typing. The entered t
Hello,
Is there a way (ideally cross platform but a *nix OS solution would be
great) to process user input as they type?
What I aim to achieve is to count the number of characters a user has
entered and display it while they are typing. The entered text will also
need to be captured once the user
tring to a number. Can this be decoded
> > back? I gues that can also be decoded-converted back because its not losing
> > any information. Its encoding, not compressing.
>
> >
>
> > But it's the % modulo that breaks the forth/back association
( string ) ) can encode a string to a number. Can this be decoded
back? I gues that can also be decoded-converted back because its not losing any
information. Its encoding, not compressing.
But it's the % modulo that breaks the forth/back association.
So, the question is:
HOW to map both
n this be decoded
back? I gues that can also be decoded-converted back because its not losing any
information. Its encoding, not compressing.
But it's the % modulo that breaks the forth/back association.
So, the question is:
HOW to map both ways, in a one to one relation, (5-digit-intege
please don't feed the troll.
cu,
Kurt
--
http://mail.python.org/mailman/listinfo/python-list
Ferrous Cranus writes:
> pin = int( htmlpage.encode("hex"), 16 ) % 10
>
> Now i need the opposite procedure.
As already said several times by different persons in this thread, there
is no way you can get the original string that originated a particular
“pin”: the function you are using is “l
Now my website finally works as intended. Just visit the following links plz.
--
1. http://superhost.gr
2. http://superhost.gr/?show=log
3. http://i.imgur.com/89Eqmtf.png (this displays the database's column 'pin',
On Tue, Aug 14, 2012 at 10:07 PM, levi nie wrote:
> ok,what does "start, stop = 0, start" in the code mean?
> it's really strange.how does it work?
It's just parallel assignment
(http://en.wikipedia.org/wiki/Assignment_%28computer_science%29#Parallel_assignment
).
Even I got confused a bit:
explaination: this is called iterable unpacking
`start, stop = 0, start` is the same as:
temp = start
start = 0
stop = temp
On 15 August 2012 10:37, levi nie wrote:
> ok,what does "start, stop = 0, start" in the code mean?
> it's really str
ok,what does "start, stop = 0, start" in the code mean?
it's really strange.how does it work?
code:
def interval(start, stop=None, step=1):
'Imitates range() for step > 0'
if stop is None:
start, stop = 0, start
result = []
http://123maza.com/65/beauty147/
--
http://mail.python.org/mailman/listinfo/python-list
1 - 100 of 351 matches
Mail list logo