Change by Serhiy Storchaka :
--
resolution: -> duplicate
stage: -> resolved
status: open -> closed
superseder: -> re functions never release GIL
___
Python tracker
On Friday, September 1, 2017 at 9:32:16 AM UTC-4, SS wrote:
> Check out the following simple code:
>
> #!/bin/python
>
> print "1 - echo 1"
> print "2 - echo 2"
>
> answer = input("Enter your choice - ")
>
> if answer == 1:
> print "1"
> elif answer == 2:
> print "2"
> else:
> print
On 01/09/17 14:30, SS wrote:
Check out the following simple code:
#!/bin/python
print "1 - echo 1"
print "2 - echo 2"
answer = input("Enter your choice - ")
if answer == 1:
print "1"
elif answer == 2:
print "2"
else:
print "Invalid choice!"
The else statement noted above works
On Fri, 1 Sep 2017 11:30 pm, SS wrote:
> Check out the following simple code:
[...]
Did you read the documentation for the `input` function?
In Python 2, `input` should be avoided, because it evaluates whatever the user
types. Watch this:
py> answer = input('type a number ')
type a number
Era el Fri, 1 Sep 2017 06:30:43 -0700 (PDT) en comp.lang.python,
cuando de repente SS
dijo lo siguiente acerca de
python logic:
> Check out the following simple code:
>
> #!/bin/python
>
> print "1 - echo 1"
> print "2 - echo 2"
>
> answer = i
Check out the following simple code:
#!/bin/python
print "1 - echo 1"
print "2 - echo 2"
answer = input("Enter your choice - ")
if answer == 1:
print "1"
elif answer == 2:
print "2"
else:
print "Invalid choice!"
The else statement noted above works fine for numeric values other then 1
R. David Murray added the comment:
If you re-post your bug information in a plain text and/or test program format
it might get faster attention.
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24555
bee13oy added the comment:
#Python logic error when deal with re and muti-threading
##Bug Description
When use re and multi-threading it will trigger the bug.
Bug type: `Logic Error`
Test Enviroment:
* `Windows 7 SP1 x64 + python 3.4.3`
* `Linux kali 3.14-kali1-amd64
Matthew Barnett added the comment:
Your regex is a pathological case: it suffers from catastrophic backtracking
and can take a long time to finish.
The other problem is that the re module never releases the GIL, so while it's
performing the search in the low-level C code, other Python threads
title: Python logic error when deal with re and muti-threading
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.5
Added file: http://bugs.python.org/file39850/python_logic_error.pdf
___
Python tracker rep...@bugs.python.org
http
On Tue, 09 Feb 2010 07:35:51 -, Gary Herron gher...@digipen.edu
wrote:
spike wrote:
On Feb 8, 1:35 pm, Gary Herron gher...@islandtraining.com wrote:
spike wrote:
Has anyone been able to come across a Python logic map or Python logic
flow chart?
An example can be seen
Carl Banks wrote:
On Feb 8, 12:20 pm, spike pwashingto...@gmail.com wrote:
Has anyone been able to come across a Python logic map or Python logic
flow chart?
An example can be seen on the right under
History:http://en.wikipedia.org/wiki/Usenet#History
This would be very helpful for all
I use this one:
Begin
|
|
V
Start Mail client
|
|
V
Ask python-list -+
| |
| |
Vwhat a bunch of dumbass wait 2 min|
| |
| | No.
V |
Did you get any answer
spike wrote:
On Feb 8, 1:35 pm, Gary Herron gher...@islandtraining.com wrote:
spike wrote:
Has anyone been able to come across a Python logic map or Python logic
flow chart?
An example can be seen on the right under History:
http://en.wikipedia.org/wiki/Usenet#History
This would be very
Has anyone been able to come across a Python logic map or flow chart?
An example can be seen here on the right: http://en.wikipedia.org/wiki/Usenet
This would be very helpful for users.
--
http://mail.python.org/mailman/listinfo/python-list
Has anyone been able to come across a Python logic map or Python logic
flow chart?
An example can be seen on the right under History:
http://en.wikipedia.org/wiki/Usenet#History
This would be very helpful for all users.
--
http://mail.python.org/mailman/listinfo/python-list
spike wrote:
Has anyone been able to come across a Python logic map or Python logic
flow chart?
An example can be seen on the right under History:
http://en.wikipedia.org/wiki/Usenet#History
This would be very helpful for all users.
Huh??? What aspect of Python were you thinking
On Feb 8, 12:20 pm, spike pwashingto...@gmail.com wrote:
Has anyone been able to come across a Python logic map or Python logic
flow chart?
An example can be seen on the right under
History:http://en.wikipedia.org/wiki/Usenet#History
This would be very helpful for all users.
Begin
On Feb 8, 1:35 pm, Gary Herron gher...@islandtraining.com wrote:
spike wrote:
Has anyone been able to come across a Python logic map or Python logic
flow chart?
An example can be seen on the right under History:
http://en.wikipedia.org/wiki/Usenet#History
This would be very helpful
On Feb 8, 1:35 pm, Gary Herron gher...@islandtraining.com wrote:
spike wrote:
Has anyone been able to come across a Python logic map or Python logic
flow chart?
An example can be seen on the right under History:
http://en.wikipedia.org/wiki/Usenet#History
This would be very helpful
spike wrote:
On Feb 8, 1:35 pm, Gary Herron gher...@islandtraining.com wrote:
spike wrote:
Has anyone been able to come across a Python logic map or Python logic
flow chart?
An example can be seen on the right under History:
http://en.wikipedia.org/wiki/Usenet#History
Tim Chase wrote:
I have a file containing following data. But the dimension can be
different.
A B C D E F G
3 4 1 5 6 2 4
7 2 4 1 6 9 3
3 4 1 5 6 2 4
7 2 4 1 6 9 3
.
.
.
.
What is the best approach to make a column vector with the name such
as A B, etc?
There are a couple
I have a file containing following data. But the dimension can be
different.
A B C D E F G
3 4 1 5 6 2 4
7 2 4 1 6 9 3
3 4 1 5 6 2 4
7 2 4 1 6 9 3
.
.
.
.
What is the best approach to make a column vector with the name such
as A B, etc?
There are a couple different ways to go
On Oct 12, 11:32 am, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
I have a file containing following data. But the dimension can be
different.
A B C D E F G
3 4 1 5 6 2 4
7 2 4 1 6 9 3
3 4 1 5 6 2 4
7 2 4 1 6 9 3
.
.
.
.
What is the best approach to make a column vector with the name
I have a file containing following data. But the dimension can be
different.
A B C D E F G
3 4 1 5 6 2 4
7 2 4 1 6 9 3
3 4 1 5 6 2 4
7 2 4 1 6 9 3
.
.
.
.
What is the best approach to make a column vector with the name such
as A B, etc?
--
http://mail.python.org/mailman/listinfo/python-list
25 matches
Mail list logo